taskchef 7.26.0 → 7.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- function c2(n,l){for(var r=0;r<l.length;r++){const o=l[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in n)){const u=Object.getOwnPropertyDescriptor(o,s);u&&Object.defineProperty(n,s,u.get?u:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=r(s);fetch(s.href,u)}})();function Db(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var fd={exports:{}},Zr={};/**
1
+ function f2(n,l){for(var r=0;r<l.length;r++){const o=l[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in n)){const u=Object.getOwnPropertyDescriptor(o,s);u&&Object.defineProperty(n,s,u.get?u:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=r(s);fetch(s.href,u)}})();function $b(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dd={exports:{}},Qr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ function c2(n,l){for(var r=0;r<l.length;r++){const o=l[r];if(typeof o!="string"&
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 wy;function u2(){if(wy)return Zr;wy=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(o,s,u){var f=null;if(u!==void 0&&(f=""+u),s.key!==void 0&&(f=""+s.key),"key"in s){u={};for(var d in s)d!=="key"&&(u[d]=s[d])}else u=s;return s=u.ref,{$$typeof:n,type:o,key:f,ref:s!==void 0?s:null,props:u}}return Zr.Fragment=l,Zr.jsx=r,Zr.jsxs=r,Zr}var Cy;function f2(){return Cy||(Cy=1,fd.exports=u2()),fd.exports}var y=f2(),dd={exports:{}},Re={};/**
9
+ */var wy;function d2(){if(wy)return Qr;wy=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(o,s,u){var f=null;if(u!==void 0&&(f=""+u),s.key!==void 0&&(f=""+s.key),"key"in s){u={};for(var m in s)m!=="key"&&(u[m]=s[m])}else u=s;return s=u.ref,{$$typeof:n,type:o,key:f,ref:s!==void 0?s:null,props:u}}return Qr.Fragment=l,Qr.jsx=r,Qr.jsxs=r,Qr}var Cy;function m2(){return Cy||(Cy=1,dd.exports=d2()),dd.exports}var y=m2(),md={exports:{}},Re={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ function c2(n,l){for(var r=0;r<l.length;r++){const o=l[r];if(typeof o!="string"&
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ty;function d2(){if(Ty)return Re;Ty=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function w(M){return M===null||typeof M!="object"?null:(M=v&&M[v]||M["@@iterator"],typeof M=="function"?M:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,T={};function A(M,Y,J){this.props=M,this.context=Y,this.refs=T,this.updater=J||E}A.prototype.isReactComponent={},A.prototype.setState=function(M,Y){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,Y,"setState")},A.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function N(){}N.prototype=A.prototype;function _(M,Y,J){this.props=M,this.context=Y,this.refs=T,this.updater=J||E}var j=_.prototype=new N;j.constructor=_,C(j,A.prototype),j.isPureReactComponent=!0;var L=Array.isArray;function k(){}var D={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function te(M,Y,J){var ae=J.ref;return{$$typeof:n,type:M,key:Y,ref:ae!==void 0?ae:null,props:J}}function le(M,Y){return te(M.type,Y,M.props)}function oe(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function ee(M){var Y={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(J){return Y[J]})}var F=/\/+/g;function V(M,Y){return typeof M=="object"&&M!==null&&M.key!=null?ee(""+M.key):Y.toString(36)}function ce(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(k,k):(M.status="pending",M.then(function(Y){M.status==="pending"&&(M.status="fulfilled",M.value=Y)},function(Y){M.status==="pending"&&(M.status="rejected",M.reason=Y)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function O(M,Y,J,ae,se){var de=typeof M;(de==="undefined"||de==="boolean")&&(M=null);var ge=!1;if(M===null)ge=!0;else switch(de){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(M.$$typeof){case n:case l:ge=!0;break;case S:return ge=M._init,O(ge(M._payload),Y,J,ae,se)}}if(ge)return se=se(M),ge=ae===""?"."+V(M,0):ae,L(se)?(J="",ge!=null&&(J=ge.replace(F,"$&/")+"/"),O(se,Y,J,"",function(Me){return Me})):se!=null&&(oe(se)&&(se=le(se,J+(se.key==null||M&&M.key===se.key?"":(""+se.key).replace(F,"$&/")+"/")+ge)),Y.push(se)),1;ge=0;var pe=ae===""?".":ae+":";if(L(M))for(var he=0;he<M.length;he++)ae=M[he],de=pe+V(ae,he),ge+=O(ae,Y,J,de,se);else if(he=w(M),typeof he=="function")for(M=he.call(M),he=0;!(ae=M.next()).done;)ae=ae.value,de=pe+V(ae,he++),ge+=O(ae,Y,J,de,se);else if(de==="object"){if(typeof M.then=="function")return O(ce(M),Y,J,ae,se);throw Y=String(M),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ge}function B(M,Y,J){if(M==null)return M;var ae=[],se=0;return O(M,ae,"","",function(de){return Y.call(J,de,se++)}),ae}function H(M){if(M._status===-1){var Y=M._result;Y=Y(),Y.then(function(J){(M._status===0||M._status===-1)&&(M._status=1,M._result=J)},function(J){(M._status===0||M._status===-1)&&(M._status=2,M._result=J)}),M._status===-1&&(M._status=0,M._result=Y)}if(M._status===1)return M._result.default;throw M._result}var Z=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},P={map:B,forEach:function(M,Y,J){B(M,function(){Y.apply(this,arguments)},J)},count:function(M){var Y=0;return B(M,function(){Y++}),Y},toArray:function(M){return B(M,function(Y){return Y})||[]},only:function(M){if(!oe(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return Re.Activity=g,Re.Children=P,Re.Component=A,Re.Fragment=r,Re.Profiler=s,Re.PureComponent=_,Re.StrictMode=o,Re.Suspense=p,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Re.__COMPILER_RUNTIME={__proto__:null,c:function(M){return D.H.useMemoCache(M)}},Re.cache=function(M){return function(){return M.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(M,Y,J){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ae=C({},M.props),se=M.key;if(Y!=null)for(de in Y.key!==void 0&&(se=""+Y.key),Y)!U.call(Y,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&Y.ref===void 0||(ae[de]=Y[de]);var de=arguments.length-2;if(de===1)ae.children=J;else if(1<de){for(var ge=Array(de),pe=0;pe<de;pe++)ge[pe]=arguments[pe+2];ae.children=ge}return te(M.type,se,ae)},Re.createContext=function(M){return M={$$typeof:f,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:u,_context:M},M},Re.createElement=function(M,Y,J){var ae,se={},de=null;if(Y!=null)for(ae in Y.key!==void 0&&(de=""+Y.key),Y)U.call(Y,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(se[ae]=Y[ae]);var ge=arguments.length-2;if(ge===1)se.children=J;else if(1<ge){for(var pe=Array(ge),he=0;he<ge;he++)pe[he]=arguments[he+2];se.children=pe}if(M&&M.defaultProps)for(ae in ge=M.defaultProps,ge)se[ae]===void 0&&(se[ae]=ge[ae]);return te(M,de,se)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(M){return{$$typeof:d,render:M}},Re.isValidElement=oe,Re.lazy=function(M){return{$$typeof:S,_payload:{_status:-1,_result:M},_init:H}},Re.memo=function(M,Y){return{$$typeof:h,type:M,compare:Y===void 0?null:Y}},Re.startTransition=function(M){var Y=D.T,J={};D.T=J;try{var ae=M(),se=D.S;se!==null&&se(J,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(k,Z)}catch(de){Z(de)}finally{Y!==null&&J.types!==null&&(Y.types=J.types),D.T=Y}},Re.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Re.use=function(M){return D.H.use(M)},Re.useActionState=function(M,Y,J){return D.H.useActionState(M,Y,J)},Re.useCallback=function(M,Y){return D.H.useCallback(M,Y)},Re.useContext=function(M){return D.H.useContext(M)},Re.useDebugValue=function(){},Re.useDeferredValue=function(M,Y){return D.H.useDeferredValue(M,Y)},Re.useEffect=function(M,Y){return D.H.useEffect(M,Y)},Re.useEffectEvent=function(M){return D.H.useEffectEvent(M)},Re.useId=function(){return D.H.useId()},Re.useImperativeHandle=function(M,Y,J){return D.H.useImperativeHandle(M,Y,J)},Re.useInsertionEffect=function(M,Y){return D.H.useInsertionEffect(M,Y)},Re.useLayoutEffect=function(M,Y){return D.H.useLayoutEffect(M,Y)},Re.useMemo=function(M,Y){return D.H.useMemo(M,Y)},Re.useOptimistic=function(M,Y){return D.H.useOptimistic(M,Y)},Re.useReducer=function(M,Y,J){return D.H.useReducer(M,Y,J)},Re.useRef=function(M){return D.H.useRef(M)},Re.useState=function(M){return D.H.useState(M)},Re.useSyncExternalStore=function(M,Y,J){return D.H.useSyncExternalStore(M,Y,J)},Re.useTransition=function(){return D.H.useTransition()},Re.version="19.2.0",Re}var Ry;function im(){return Ry||(Ry=1,dd.exports=d2()),dd.exports}var x=im();const kd=Db(x),$b=c2({__proto__:null,default:kd},[x]);var md={exports:{}},Qr={},pd={exports:{}},hd={};/**
17
+ */var Ty;function p2(){if(Ty)return Re;Ty=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function w(M){return M===null||typeof M!="object"?null:(M=v&&M[v]||M["@@iterator"],typeof M=="function"?M:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,T={};function A(M,Y,J){this.props=M,this.context=Y,this.refs=T,this.updater=J||E}A.prototype.isReactComponent={},A.prototype.setState=function(M,Y){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,Y,"setState")},A.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function N(){}N.prototype=A.prototype;function _(M,Y,J){this.props=M,this.context=Y,this.refs=T,this.updater=J||E}var j=_.prototype=new N;j.constructor=_,C(j,A.prototype),j.isPureReactComponent=!0;var L=Array.isArray;function k(){}var D={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function te(M,Y,J){var ae=J.ref;return{$$typeof:n,type:M,key:Y,ref:ae!==void 0?ae:null,props:J}}function le(M,Y){return te(M.type,Y,M.props)}function oe(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function ee(M){var Y={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(J){return Y[J]})}var F=/\/+/g;function V(M,Y){return typeof M=="object"&&M!==null&&M.key!=null?ee(""+M.key):Y.toString(36)}function ce(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(k,k):(M.status="pending",M.then(function(Y){M.status==="pending"&&(M.status="fulfilled",M.value=Y)},function(Y){M.status==="pending"&&(M.status="rejected",M.reason=Y)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function O(M,Y,J,ae,se){var de=typeof M;(de==="undefined"||de==="boolean")&&(M=null);var ge=!1;if(M===null)ge=!0;else switch(de){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(M.$$typeof){case n:case l:ge=!0;break;case S:return ge=M._init,O(ge(M._payload),Y,J,ae,se)}}if(ge)return se=se(M),ge=ae===""?"."+V(M,0):ae,L(se)?(J="",ge!=null&&(J=ge.replace(F,"$&/")+"/"),O(se,Y,J,"",function(Me){return Me})):se!=null&&(oe(se)&&(se=le(se,J+(se.key==null||M&&M.key===se.key?"":(""+se.key).replace(F,"$&/")+"/")+ge)),Y.push(se)),1;ge=0;var pe=ae===""?".":ae+":";if(L(M))for(var he=0;he<M.length;he++)ae=M[he],de=pe+V(ae,he),ge+=O(ae,Y,J,de,se);else if(he=w(M),typeof he=="function")for(M=he.call(M),he=0;!(ae=M.next()).done;)ae=ae.value,de=pe+V(ae,he++),ge+=O(ae,Y,J,de,se);else if(de==="object"){if(typeof M.then=="function")return O(ce(M),Y,J,ae,se);throw Y=String(M),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ge}function B(M,Y,J){if(M==null)return M;var ae=[],se=0;return O(M,ae,"","",function(de){return Y.call(J,de,se++)}),ae}function U(M){if(M._status===-1){var Y=M._result;Y=Y(),Y.then(function(J){(M._status===0||M._status===-1)&&(M._status=1,M._result=J)},function(J){(M._status===0||M._status===-1)&&(M._status=2,M._result=J)}),M._status===-1&&(M._status=0,M._result=Y)}if(M._status===1)return M._result.default;throw M._result}var Z=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},P={map:B,forEach:function(M,Y,J){B(M,function(){Y.apply(this,arguments)},J)},count:function(M){var Y=0;return B(M,function(){Y++}),Y},toArray:function(M){return B(M,function(Y){return Y})||[]},only:function(M){if(!oe(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return Re.Activity=g,Re.Children=P,Re.Component=A,Re.Fragment=r,Re.Profiler=s,Re.PureComponent=_,Re.StrictMode=o,Re.Suspense=p,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Re.__COMPILER_RUNTIME={__proto__:null,c:function(M){return D.H.useMemoCache(M)}},Re.cache=function(M){return function(){return M.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(M,Y,J){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ae=C({},M.props),se=M.key;if(Y!=null)for(de in Y.key!==void 0&&(se=""+Y.key),Y)!H.call(Y,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&Y.ref===void 0||(ae[de]=Y[de]);var de=arguments.length-2;if(de===1)ae.children=J;else if(1<de){for(var ge=Array(de),pe=0;pe<de;pe++)ge[pe]=arguments[pe+2];ae.children=ge}return te(M.type,se,ae)},Re.createContext=function(M){return M={$$typeof:f,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:u,_context:M},M},Re.createElement=function(M,Y,J){var ae,se={},de=null;if(Y!=null)for(ae in Y.key!==void 0&&(de=""+Y.key),Y)H.call(Y,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(se[ae]=Y[ae]);var ge=arguments.length-2;if(ge===1)se.children=J;else if(1<ge){for(var pe=Array(ge),he=0;he<ge;he++)pe[he]=arguments[he+2];se.children=pe}if(M&&M.defaultProps)for(ae in ge=M.defaultProps,ge)se[ae]===void 0&&(se[ae]=ge[ae]);return te(M,de,se)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(M){return{$$typeof:m,render:M}},Re.isValidElement=oe,Re.lazy=function(M){return{$$typeof:S,_payload:{_status:-1,_result:M},_init:U}},Re.memo=function(M,Y){return{$$typeof:h,type:M,compare:Y===void 0?null:Y}},Re.startTransition=function(M){var Y=D.T,J={};D.T=J;try{var ae=M(),se=D.S;se!==null&&se(J,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(k,Z)}catch(de){Z(de)}finally{Y!==null&&J.types!==null&&(Y.types=J.types),D.T=Y}},Re.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Re.use=function(M){return D.H.use(M)},Re.useActionState=function(M,Y,J){return D.H.useActionState(M,Y,J)},Re.useCallback=function(M,Y){return D.H.useCallback(M,Y)},Re.useContext=function(M){return D.H.useContext(M)},Re.useDebugValue=function(){},Re.useDeferredValue=function(M,Y){return D.H.useDeferredValue(M,Y)},Re.useEffect=function(M,Y){return D.H.useEffect(M,Y)},Re.useEffectEvent=function(M){return D.H.useEffectEvent(M)},Re.useId=function(){return D.H.useId()},Re.useImperativeHandle=function(M,Y,J){return D.H.useImperativeHandle(M,Y,J)},Re.useInsertionEffect=function(M,Y){return D.H.useInsertionEffect(M,Y)},Re.useLayoutEffect=function(M,Y){return D.H.useLayoutEffect(M,Y)},Re.useMemo=function(M,Y){return D.H.useMemo(M,Y)},Re.useOptimistic=function(M,Y){return D.H.useOptimistic(M,Y)},Re.useReducer=function(M,Y,J){return D.H.useReducer(M,Y,J)},Re.useRef=function(M){return D.H.useRef(M)},Re.useState=function(M){return D.H.useState(M)},Re.useSyncExternalStore=function(M,Y,J){return D.H.useSyncExternalStore(M,Y,J)},Re.useTransition=function(){return D.H.useTransition()},Re.version="19.2.0",Re}var Ry;function im(){return Ry||(Ry=1,md.exports=p2()),md.exports}var x=im();const Hd=$b(x),Lb=f2({__proto__:null,default:Hd},[x]);var pd={exports:{}},Kr={},hd={exports:{}},vd={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ function c2(n,l){for(var r=0;r<l.length;r++){const o=l[r];if(typeof o!="string"&
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 Ey;function m2(){return Ey||(Ey=1,(function(n){function l(O,B){var H=O.length;O.push(B);e:for(;0<H;){var Z=H-1>>>1,P=O[Z];if(0<s(P,B))O[Z]=B,O[H]=P,H=Z;else break e}}function r(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var B=O[0],H=O.pop();if(H!==B){O[0]=H;e:for(var Z=0,P=O.length,M=P>>>1;Z<M;){var Y=2*(Z+1)-1,J=O[Y],ae=Y+1,se=O[ae];if(0>s(J,H))ae<P&&0>s(se,J)?(O[Z]=se,O[ae]=H,Z=ae):(O[Z]=J,O[Y]=H,Z=Y);else if(ae<P&&0>s(se,H))O[Z]=se,O[ae]=H,Z=ae;else break e}}return B}function s(O,B){var H=O.sortIndex-B.sortIndex;return H!==0?H:O.id-B.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var f=Date,d=f.now();n.unstable_now=function(){return f.now()-d}}var p=[],h=[],S=1,g=null,v=3,w=!1,E=!1,C=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function j(O){for(var B=r(h);B!==null;){if(B.callback===null)o(h);else if(B.startTime<=O)o(h),B.sortIndex=B.expirationTime,l(p,B);else break;B=r(h)}}function L(O){if(C=!1,j(O),!E)if(r(p)!==null)E=!0,k||(k=!0,ee());else{var B=r(h);B!==null&&ce(L,B.startTime-O)}}var k=!1,D=-1,U=5,te=-1;function le(){return T?!0:!(n.unstable_now()-te<U)}function oe(){if(T=!1,k){var O=n.unstable_now();te=O;var B=!0;try{e:{E=!1,C&&(C=!1,N(D),D=-1),w=!0;var H=v;try{t:{for(j(O),g=r(p);g!==null&&!(g.expirationTime>O&&le());){var Z=g.callback;if(typeof Z=="function"){g.callback=null,v=g.priorityLevel;var P=Z(g.expirationTime<=O);if(O=n.unstable_now(),typeof P=="function"){g.callback=P,j(O),B=!0;break t}g===r(p)&&o(p),j(O)}else o(p);g=r(p)}if(g!==null)B=!0;else{var M=r(h);M!==null&&ce(L,M.startTime-O),B=!1}}break e}finally{g=null,v=H,w=!1}B=void 0}}finally{B?ee():k=!1}}}var ee;if(typeof _=="function")ee=function(){_(oe)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,V=F.port2;F.port1.onmessage=oe,ee=function(){V.postMessage(null)}}else ee=function(){A(oe,0)};function ce(O,B){D=A(function(){O(n.unstable_now())},B)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(O){switch(v){case 1:case 2:case 3:var B=3;break;default:B=v}var H=v;v=B;try{return O()}finally{v=H}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(O,B){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var H=v;v=O;try{return B()}finally{v=H}},n.unstable_scheduleCallback=function(O,B,H){var Z=n.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?Z+H:Z):H=Z,O){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=H+P,O={id:S++,callback:B,priorityLevel:O,startTime:H,expirationTime:P,sortIndex:-1},H>Z?(O.sortIndex=H,l(h,O),r(p)===null&&O===r(h)&&(C?(N(D),D=-1):C=!0,ce(L,H-Z))):(O.sortIndex=P,l(p,O),E||w||(E=!0,k||(k=!0,ee()))),O},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(O){var B=v;return function(){var H=v;v=B;try{return O.apply(this,arguments)}finally{v=H}}}})(hd)),hd}var Ay;function p2(){return Ay||(Ay=1,pd.exports=m2()),pd.exports}var vd={exports:{}},$t={};/**
25
+ */var Ey;function h2(){return Ey||(Ey=1,(function(n){function l(O,B){var U=O.length;O.push(B);e:for(;0<U;){var Z=U-1>>>1,P=O[Z];if(0<s(P,B))O[Z]=B,O[U]=P,U=Z;else break e}}function r(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var B=O[0],U=O.pop();if(U!==B){O[0]=U;e:for(var Z=0,P=O.length,M=P>>>1;Z<M;){var Y=2*(Z+1)-1,J=O[Y],ae=Y+1,se=O[ae];if(0>s(J,U))ae<P&&0>s(se,J)?(O[Z]=se,O[ae]=U,Z=ae):(O[Z]=J,O[Y]=U,Z=Y);else if(ae<P&&0>s(se,U))O[Z]=se,O[ae]=U,Z=ae;else break e}}return B}function s(O,B){var U=O.sortIndex-B.sortIndex;return U!==0?U:O.id-B.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var f=Date,m=f.now();n.unstable_now=function(){return f.now()-m}}var p=[],h=[],S=1,g=null,v=3,w=!1,E=!1,C=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function j(O){for(var B=r(h);B!==null;){if(B.callback===null)o(h);else if(B.startTime<=O)o(h),B.sortIndex=B.expirationTime,l(p,B);else break;B=r(h)}}function L(O){if(C=!1,j(O),!E)if(r(p)!==null)E=!0,k||(k=!0,ee());else{var B=r(h);B!==null&&ce(L,B.startTime-O)}}var k=!1,D=-1,H=5,te=-1;function le(){return T?!0:!(n.unstable_now()-te<H)}function oe(){if(T=!1,k){var O=n.unstable_now();te=O;var B=!0;try{e:{E=!1,C&&(C=!1,N(D),D=-1),w=!0;var U=v;try{t:{for(j(O),g=r(p);g!==null&&!(g.expirationTime>O&&le());){var Z=g.callback;if(typeof Z=="function"){g.callback=null,v=g.priorityLevel;var P=Z(g.expirationTime<=O);if(O=n.unstable_now(),typeof P=="function"){g.callback=P,j(O),B=!0;break t}g===r(p)&&o(p),j(O)}else o(p);g=r(p)}if(g!==null)B=!0;else{var M=r(h);M!==null&&ce(L,M.startTime-O),B=!1}}break e}finally{g=null,v=U,w=!1}B=void 0}}finally{B?ee():k=!1}}}var ee;if(typeof _=="function")ee=function(){_(oe)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,V=F.port2;F.port1.onmessage=oe,ee=function(){V.postMessage(null)}}else ee=function(){A(oe,0)};function ce(O,B){D=A(function(){O(n.unstable_now())},B)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(O){switch(v){case 1:case 2:case 3:var B=3;break;default:B=v}var U=v;v=B;try{return O()}finally{v=U}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(O,B){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var U=v;v=O;try{return B()}finally{v=U}},n.unstable_scheduleCallback=function(O,B,U){var Z=n.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?Z+U:Z):U=Z,O){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=U+P,O={id:S++,callback:B,priorityLevel:O,startTime:U,expirationTime:P,sortIndex:-1},U>Z?(O.sortIndex=U,l(h,O),r(p)===null&&O===r(h)&&(C?(N(D),D=-1):C=!0,ce(L,U-Z))):(O.sortIndex=P,l(p,O),E||w||(E=!0,k||(k=!0,ee()))),O},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(O){var B=v;return function(){var U=v;v=B;try{return O.apply(this,arguments)}finally{v=U}}}})(vd)),vd}var Ay;function v2(){return Ay||(Ay=1,hd.exports=h2()),hd.exports}var gd={exports:{}},$t={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ function c2(n,l){for(var r=0;r<l.length;r++){const o=l[r];if(typeof o!="string"&
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 _y;function h2(){if(_y)return $t;_y=1;var n=im();function l(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)h+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(p,h,S){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:p,containerInfo:h,implementation:S}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return $t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,$t.createPortal=function(p,h){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(l(299));return u(p,h,null,S)},$t.flushSync=function(p){var h=f.T,S=o.p;try{if(f.T=null,o.p=2,p)return p()}finally{f.T=h,o.p=S,o.d.f()}},$t.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(p,h))},$t.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},$t.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var S=h.as,g=d(S,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;S==="style"?o.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:w}):S==="script"&&o.d.X(p,{crossOrigin:g,integrity:v,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},$t.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var S=d(h.as,h.crossOrigin);o.d.M(p,{crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(p)},$t.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var S=h.as,g=d(S,h.crossOrigin);o.d.L(p,S,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},$t.preloadModule=function(p,h){if(typeof p=="string")if(h){var S=d(h.as,h.crossOrigin);o.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(p)},$t.requestFormReset=function(p){o.d.r(p)},$t.unstable_batchedUpdates=function(p,h){return p(h)},$t.useFormState=function(p,h,S){return f.H.useFormState(p,h,S)},$t.useFormStatus=function(){return f.H.useHostTransitionStatus()},$t.version="19.2.0",$t}var Ny;function Lb(){if(Ny)return vd.exports;Ny=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),vd.exports=h2(),vd.exports}/**
33
+ */var _y;function g2(){if(_y)return $t;_y=1;var n=im();function l(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)h+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(p,h,S){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:p,containerInfo:h,implementation:S}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return $t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,$t.createPortal=function(p,h){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(l(299));return u(p,h,null,S)},$t.flushSync=function(p){var h=f.T,S=o.p;try{if(f.T=null,o.p=2,p)return p()}finally{f.T=h,o.p=S,o.d.f()}},$t.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(p,h))},$t.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},$t.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var S=h.as,g=m(S,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;S==="style"?o.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:w}):S==="script"&&o.d.X(p,{crossOrigin:g,integrity:v,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},$t.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var S=m(h.as,h.crossOrigin);o.d.M(p,{crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(p)},$t.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var S=h.as,g=m(S,h.crossOrigin);o.d.L(p,S,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},$t.preloadModule=function(p,h){if(typeof p=="string")if(h){var S=m(h.as,h.crossOrigin);o.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(p)},$t.requestFormReset=function(p){o.d.r(p)},$t.unstable_batchedUpdates=function(p,h){return p(h)},$t.useFormState=function(p,h,S){return f.H.useFormState(p,h,S)},$t.useFormStatus=function(){return f.H.useHostTransitionStatus()},$t.version="19.2.0",$t}var Ny;function Bb(){if(Ny)return gd.exports;Ny=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),gd.exports=g2(),gd.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,24 +38,24 @@ function c2(n,l){for(var r=0;r<l.length;r++){const o=l[r];if(typeof o!="string"&
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var My;function v2(){if(My)return Qr;My=1;var n=p2(),l=im(),r=Lb();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(u(e)!==e)throw Error(o(188))}function h(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,i=t;;){var c=a.return;if(c===null)break;var m=c.alternate;if(m===null){if(i=c.return,i!==null){a=i;continue}break}if(c.child===m.child){for(m=c.child;m;){if(m===a)return p(c),e;if(m===i)return p(c),t;m=m.sibling}throw Error(o(188))}if(a.return!==i.return)a=c,i=m;else{for(var b=!1,R=c.child;R;){if(R===a){b=!0,a=c,i=m;break}if(R===i){b=!0,i=c,a=m;break}R=R.sibling}if(!b){for(R=m.child;R;){if(R===a){b=!0,a=m,i=c;break}if(R===i){b=!0,i=m,a=c;break}R=R.sibling}if(!b)throw Error(o(189))}}if(a.alternate!==i)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),_=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var F=Symbol.for("react.client.reference");function V(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===F?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case A:return"Profiler";case T:return"StrictMode";case L:return"Suspense";case k:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case _:return e.displayName||"Context";case N:return(e._context.displayName||"Context")+".Consumer";case j:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case D:return t=e.displayName||null,t!==null?t:V(e.type)||"Memo";case U:t=e._payload,e=e._init;try{return V(e(t))}catch{}}return null}var ce=Array.isArray,O=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},Z=[],P=-1;function M(e){return{current:e}}function Y(e){0>P||(e.current=Z[P],Z[P]=null,P--)}function J(e,t){P++,Z[P]=e.current,e.current=t}var ae=M(null),se=M(null),de=M(null),ge=M(null);function pe(e,t){switch(J(de,t),J(se,e),J(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Xg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Xg(t),e=Ig(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(ae),J(ae,e)}function he(){Y(ae),Y(se),Y(de)}function Me(e){e.memoizedState!==null&&J(ge,e);var t=ae.current,a=Ig(t,e.type);t!==a&&(J(se,e),J(ae,a))}function Se(e){se.current===e&&(Y(ae),Y(se)),ge.current===e&&(Y(ge),Vr._currentValue=H)}var Ce,ie;function ye(e){if(Ce===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||"",ie=-1<a.stack.indexOf(`
41
+ */var My;function y2(){if(My)return Kr;My=1;var n=v2(),l=im(),r=Bb();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(u(e)!==e)throw Error(o(188))}function h(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,i=t;;){var c=a.return;if(c===null)break;var d=c.alternate;if(d===null){if(i=c.return,i!==null){a=i;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===a)return p(c),e;if(d===i)return p(c),t;d=d.sibling}throw Error(o(188))}if(a.return!==i.return)a=c,i=d;else{for(var b=!1,R=c.child;R;){if(R===a){b=!0,a=c,i=d;break}if(R===i){b=!0,i=c,a=d;break}R=R.sibling}if(!b){for(R=d.child;R;){if(R===a){b=!0,a=d,i=c;break}if(R===i){b=!0,i=d,a=c;break}R=R.sibling}if(!b)throw Error(o(189))}}if(a.alternate!==i)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),_=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var F=Symbol.for("react.client.reference");function V(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===F?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case A:return"Profiler";case T:return"StrictMode";case L:return"Suspense";case k:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case _:return e.displayName||"Context";case N:return(e._context.displayName||"Context")+".Consumer";case j:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case D:return t=e.displayName||null,t!==null?t:V(e.type)||"Memo";case H:t=e._payload,e=e._init;try{return V(e(t))}catch{}}return null}var ce=Array.isArray,O=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},Z=[],P=-1;function M(e){return{current:e}}function Y(e){0>P||(e.current=Z[P],Z[P]=null,P--)}function J(e,t){P++,Z[P]=e.current,e.current=t}var ae=M(null),se=M(null),de=M(null),ge=M(null);function pe(e,t){switch(J(de,t),J(se,e),J(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Xg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Xg(t),e=Ig(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(ae),J(ae,e)}function he(){Y(ae),Y(se),Y(de)}function Me(e){e.memoizedState!==null&&J(ge,e);var t=ae.current,a=Ig(t,e.type);t!==a&&(J(se,e),J(ae,a))}function Se(e){se.current===e&&(Y(ae),Y(se)),ge.current===e&&(Y(ge),Gr._currentValue=U)}var Ce,ie;function ye(e){if(Ce===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||"",ie=-1<a.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ce+e+ie}var Ne=!1;function Te(e,t){if(!e||Ne)return"";Ne=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(Q){var I=Q}Reflect.construct(e,[],re)}else{try{re.call()}catch(Q){I=Q}e.call(re.prototype)}}else{try{throw Error()}catch(Q){I=Q}(re=e())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(Q){if(Q&&I&&typeof Q.stack=="string")return[Q.stack,I.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=i.DetermineComponentFrameRoot(),b=m[0],R=m[1];if(b&&R){var z=b.split(`
43
+ `+Ce+e+ie}var Ne=!1;function Te(e,t){if(!e||Ne)return"";Ne=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(Q){var I=Q}Reflect.construct(e,[],re)}else{try{re.call()}catch(Q){I=Q}e.call(re.prototype)}}else{try{throw Error()}catch(Q){I=Q}(re=e())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(Q){if(Q&&I&&typeof Q.stack=="string")return[Q.stack,I.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=i.DetermineComponentFrameRoot(),b=d[0],R=d[1];if(b&&R){var z=b.split(`
44
44
  `),X=R.split(`
45
45
  `);for(c=i=0;i<z.length&&!z[i].includes("DetermineComponentFrameRoot");)i++;for(;c<X.length&&!X[c].includes("DetermineComponentFrameRoot");)c++;if(i===z.length||c===X.length)for(i=z.length-1,c=X.length-1;1<=i&&0<=c&&z[i]!==X[c];)c--;for(;1<=i&&0<=c;i--,c--)if(z[i]!==X[c]){if(i!==1||c!==1)do if(i--,c--,0>c||z[i]!==X[c]){var W=`
46
46
  `+z[i].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),W}while(1<=i&&0<=c);break}}}finally{Ne=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ye(a):""}function Ve(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye("Lazy");case 13:return e.child!==t&&t!==null?ye("Suspense Fallback"):ye("Suspense");case 19:return ye("SuspenseList");case 0:case 15:return Te(e.type,!1);case 11:return Te(e.type.render,!1);case 1:return Te(e.type,!0);case 31:return ye("Activity");default:return""}}function ut(e){try{var t="",a=null;do t+=Ve(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
47
47
  Error generating stack: `+i.message+`
48
- `+i.stack}}var jt=Object.prototype.hasOwnProperty,fn=n.unstable_scheduleCallback,dn=n.unstable_cancelCallback,zt=n.unstable_shouldYield,Pt=n.unstable_requestPaint,je=n.unstable_now,Bl=n.unstable_getCurrentPriorityLevel,yt=n.unstable_ImmediatePriority,Sa=n.unstable_UserBlockingPriority,Ye=n.unstable_NormalPriority,kl=n.unstable_LowPriority,ol=n.unstable_IdlePriority,Dt=n.log,En=n.unstable_setDisableYieldValue,Wt=null,St=null;function en(e){if(typeof Dt=="function"&&En(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Wt,e)}catch{}}var Ee=Math.clz32?Math.clz32:xi,Gn=Math.log,Si=Math.LN2;function xi(e){return e>>>=0,e===0?32:31-(Gn(e)/Si|0)|0}var Ka=256,Fa=262144,nt=4194304;function Pe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ul(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var c=0,m=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var R=i&134217727;return R!==0?(i=R&~m,i!==0?c=Pe(i):(b&=R,b!==0?c=Pe(b):a||(a=R&~e,a!==0&&(c=Pe(a))))):(R=i&~m,R!==0?c=Pe(R):b!==0?c=Pe(b):a||(a=i&~e,a!==0&&(c=Pe(a)))),c===0?0:t!==0&&t!==c&&(t&m)===0&&(m=c&-c,a=t&-t,m>=a||m===32&&(a&4194048)!==0)?t:c}function nr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function FS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ep(){var e=nt;return nt<<=1,(nt&62914560)===0&&(nt=4194304),e}function Pc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function lr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function JS(e,t,a,i,c,m){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var R=e.entanglements,z=e.expirationTimes,X=e.hiddenUpdates;for(a=b&~a;0<a;){var W=31-Ee(a),re=1<<W;R[W]=0,z[W]=-1;var I=X[W];if(I!==null)for(X[W]=null,W=0;W<I.length;W++){var Q=I[W];Q!==null&&(Q.lane&=-536870913)}a&=~re}i!==0&&Ap(e,i,0),m!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=m&~(b&~t))}function Ap(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Ee(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function _p(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Ee(a),c=1<<i;c&t|e[i]&t&&(e[i]|=t),a&=~c}}function Np(e,t){var a=t&-t;return a=(a&42)!==0?1:Wc(a),(a&(e.suspendedLanes|t))!==0?0:a}function Wc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function eu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Mp(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:hy(e.type))}function Op(e,t){var a=B.p;try{return B.p=e,t()}finally{B.p=a}}var Hl=Math.random().toString(36).slice(2),Tt="__reactFiber$"+Hl,Ht="__reactProps$"+Hl,Ja="__reactContainer$"+Hl,tu="__reactEvents$"+Hl,PS="__reactListeners$"+Hl,WS="__reactHandles$"+Hl,jp="__reactResources$"+Hl,ar="__reactMarker$"+Hl;function nu(e){delete e[Tt],delete e[Ht],delete e[tu],delete e[PS],delete e[WS]}function Pa(e){var t=e[Tt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ja]||a[Tt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Wg(e);e!==null;){if(a=e[Tt])return a;e=Wg(e)}return t}e=a,a=e.parentNode}return null}function Wa(e){if(e=e[Tt]||e[Ja]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function or(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function eo(e){var t=e[jp];return t||(t=e[jp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[ar]=!0}var zp=new Set,Dp={};function xa(e,t){to(e,t),to(e+"Capture",t)}function to(e,t){for(Dp[e]=t,e=0;e<t.length;e++)zp.add(t[e])}var ex=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$p={},Lp={};function tx(e){return jt.call(Lp,e)?!0:jt.call($p,e)?!1:ex.test(e)?Lp[e]=!0:($p[e]=!0,!1)}function wi(e,t,a){if(tx(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ci(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function rl(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nx(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,m=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(b){a=""+b,m.call(this,b)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lu(e){if(!e._valueTracker){var t=Bp(e)?"checked":"value";e._valueTracker=nx(e,t,""+e[t])}}function kp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Bp(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var lx=/[\n"\\]/g;function pn(e){return e.replace(lx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function au(e,t,a,i,c,m,b,R){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mn(t)):e.value!==""+mn(t)&&(e.value=""+mn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?ou(e,b,mn(t)):a!=null?ou(e,b,mn(a)):i!=null&&e.removeAttribute("value"),c==null&&m!=null&&(e.defaultChecked=!!m),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+mn(R):e.removeAttribute("name")}function Up(e,t,a,i,c,m,b,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),t!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||t!=null)){lu(e);return}a=a!=null?""+mn(a):"",t=t!=null?""+mn(t):a,R||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=R?e.checked:!!i,e.defaultChecked=!!i,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),lu(e)}function ou(e,t,a){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function no(e,t,a,i){if(e=e.options,t){t={};for(var c=0;c<a.length;c++)t["$"+a[c]]=!0;for(a=0;a<e.length;a++)c=t.hasOwnProperty("$"+e[a].value),e[a].selected!==c&&(e[a].selected=c),c&&i&&(e[a].defaultSelected=!0)}else{for(a=""+mn(a),t=null,c=0;c<e.length;c++){if(e[c].value===a){e[c].selected=!0,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Hp(e,t,a){if(t!=null&&(t=""+mn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+mn(a):""}function Yp(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(o(92));if(ce(i)){if(1<i.length)throw Error(o(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=mn(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),lu(e)}function lo(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ax=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function qp(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||ax.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Vp(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var c in t)i=t[c],t.hasOwnProperty(c)&&a[c]!==i&&qp(e,c,i)}else for(var m in t)t.hasOwnProperty(m)&&qp(e,m,t[m])}function ru(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ox=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ri(e){return rx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function il(){}var iu=null;function su(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ao=null,oo=null;function Gp(e){var t=Wa(e);if(t&&(e=t.stateNode)){var a=e[Ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(au(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+pn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var c=i[Ht]||null;if(!c)throw Error(o(90));au(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&kp(i)}break e;case"textarea":Hp(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&no(e,!!a.multiple,t,!1)}}}var cu=!1;function Xp(e,t,a){if(cu)return e(t,a);cu=!0;try{var i=e(t);return i}finally{if(cu=!1,(ao!==null||oo!==null)&&(ds(),ao&&(t=ao,e=oo,oo=ao=null,Gp(t),e)))for(t=0;t<e.length;t++)Gp(e[t])}}function rr(e,t){var a=e.stateNode;if(a===null)return null;var i=a[Ht]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var sl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uu=!1;if(sl)try{var ir={};Object.defineProperty(ir,"passive",{get:function(){uu=!0}}),window.addEventListener("test",ir,ir),window.removeEventListener("test",ir,ir)}catch{uu=!1}var Yl=null,fu=null,Ei=null;function Ip(){if(Ei)return Ei;var e,t=fu,a=t.length,i,c="value"in Yl?Yl.value:Yl.textContent,m=c.length;for(e=0;e<a&&t[e]===c[e];e++);var b=a-e;for(i=1;i<=b&&t[a-i]===c[m-i];i++);return Ei=c.slice(e,1<i?1-i:void 0)}function Ai(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _i(){return!0}function Zp(){return!1}function Yt(e){function t(a,i,c,m,b){this._reactName=a,this._targetInst=c,this.type=i,this.nativeEvent=m,this.target=b,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(a=e[R],this[R]=a?a(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?_i:Zp,this.isPropagationStopped=Zp,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=_i)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ni=Yt(wa),sr=g({},wa,{view:0,detail:0}),ix=Yt(sr),du,mu,cr,Mi=g({},sr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cr&&(cr&&e.type==="mousemove"?(du=e.screenX-cr.screenX,mu=e.screenY-cr.screenY):mu=du=0,cr=e),du)},movementY:function(e){return"movementY"in e?e.movementY:mu}}),Qp=Yt(Mi),sx=g({},Mi,{dataTransfer:0}),cx=Yt(sx),ux=g({},sr,{relatedTarget:0}),pu=Yt(ux),fx=g({},wa,{animationName:0,elapsedTime:0,pseudoElement:0}),dx=Yt(fx),mx=g({},wa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),px=Yt(mx),hx=g({},wa,{data:0}),Kp=Yt(hx),vx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gx={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"},yx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yx[e])?!!t[e]:!1}function hu(){return bx}var Sx=g({},sr,{key:function(e){if(e.key){var t=vx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ai(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hu,charCode:function(e){return e.type==="keypress"?Ai(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ai(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xx=Yt(Sx),wx=g({},Mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fp=Yt(wx),Cx=g({},sr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hu}),Tx=Yt(Cx),Rx=g({},wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ex=Yt(Rx),Ax=g({},Mi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),_x=Yt(Ax),Nx=g({},wa,{newState:0,oldState:0}),Mx=Yt(Nx),Ox=[9,13,27,32],vu=sl&&"CompositionEvent"in window,ur=null;sl&&"documentMode"in document&&(ur=document.documentMode);var jx=sl&&"TextEvent"in window&&!ur,Jp=sl&&(!vu||ur&&8<ur&&11>=ur),Pp=" ",Wp=!1;function eh(e,t){switch(e){case"keyup":return Ox.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function th(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ro=!1;function zx(e,t){switch(e){case"compositionend":return th(t);case"keypress":return t.which!==32?null:(Wp=!0,Pp);case"textInput":return e=t.data,e===Pp&&Wp?null:e;default:return null}}function Dx(e,t){if(ro)return e==="compositionend"||!vu&&eh(e,t)?(e=Ip(),Ei=fu=Yl=null,ro=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Jp&&t.locale!=="ko"?null:t.data;default:return null}}var $x={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 nh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$x[e.type]:t==="textarea"}function lh(e,t,a,i){ao?oo?oo.push(i):oo=[i]:ao=i,t=bs(t,"onChange"),0<t.length&&(a=new Ni("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var fr=null,dr=null;function Lx(e){Ug(e,0)}function Oi(e){var t=or(e);if(kp(t))return e}function ah(e,t){if(e==="change")return t}var oh=!1;if(sl){var gu;if(sl){var yu="oninput"in document;if(!yu){var rh=document.createElement("div");rh.setAttribute("oninput","return;"),yu=typeof rh.oninput=="function"}gu=yu}else gu=!1;oh=gu&&(!document.documentMode||9<document.documentMode)}function ih(){fr&&(fr.detachEvent("onpropertychange",sh),dr=fr=null)}function sh(e){if(e.propertyName==="value"&&Oi(dr)){var t=[];lh(t,dr,e,su(e)),Xp(Lx,t)}}function Bx(e,t,a){e==="focusin"?(ih(),fr=t,dr=a,fr.attachEvent("onpropertychange",sh)):e==="focusout"&&ih()}function kx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oi(dr)}function Ux(e,t){if(e==="click")return Oi(t)}function Hx(e,t){if(e==="input"||e==="change")return Oi(t)}function Yx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:Yx;function mr(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var c=a[i];if(!jt.call(t,c)||!tn(e[c],t[c]))return!1}return!0}function ch(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uh(e,t){var a=ch(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ch(a)}}function fh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ti(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ti(e.document)}return t}function bu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var qx=sl&&"documentMode"in document&&11>=document.documentMode,io=null,Su=null,pr=null,xu=!1;function mh(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;xu||io==null||io!==Ti(i)||(i=io,"selectionStart"in i&&bu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),pr&&mr(pr,i)||(pr=i,i=bs(Su,"onSelect"),0<i.length&&(t=new Ni("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=io)))}function Ca(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var so={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},wu={},ph={};sl&&(ph=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function Ta(e){if(wu[e])return wu[e];if(!so[e])return e;var t=so[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in ph)return wu[e]=t[a];return e}var hh=Ta("animationend"),vh=Ta("animationiteration"),gh=Ta("animationstart"),Vx=Ta("transitionrun"),Gx=Ta("transitionstart"),Xx=Ta("transitioncancel"),yh=Ta("transitionend"),bh=new Map,Cu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Cu.push("scrollEnd");function An(e,t){bh.set(e,t),xa(t,[e])}var ji=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},hn=[],co=0,Tu=0;function zi(){for(var e=co,t=Tu=co=0;t<e;){var a=hn[t];hn[t++]=null;var i=hn[t];hn[t++]=null;var c=hn[t];hn[t++]=null;var m=hn[t];if(hn[t++]=null,i!==null&&c!==null){var b=i.pending;b===null?c.next=c:(c.next=b.next,b.next=c),i.pending=c}m!==0&&Sh(a,c,m)}}function Di(e,t,a,i){hn[co++]=e,hn[co++]=t,hn[co++]=a,hn[co++]=i,Tu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Ru(e,t,a,i){return Di(e,t,a,i),$i(e)}function Ra(e,t){return Di(e,null,null,t),$i(e)}function Sh(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var c=!1,m=e.return;m!==null;)m.childLanes|=a,i=m.alternate,i!==null&&(i.childLanes|=a),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(c=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,c&&t!==null&&(c=31-Ee(a),e=m.hiddenUpdates,i=e[c],i===null?e[c]=[t]:i.push(t),t.lane=a|536870912),m):null}function $i(e){if(50<Lr)throw Lr=0,$f=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var uo={};function Ix(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,a,i){return new Ix(e,t,a,i)}function Eu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cl(e,t){var a=e.alternate;return a===null?(a=nn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function xh(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Li(e,t,a,i,c,m){var b=0;if(i=e,typeof e=="function")Eu(e)&&(b=1);else if(typeof e=="string")b=Jw(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=nn(31,a,t,c),e.elementType=te,e.lanes=m,e;case C:return Ea(a.children,c,m,t);case T:b=8,c|=24;break;case A:return e=nn(12,a,t,c|2),e.elementType=A,e.lanes=m,e;case L:return e=nn(13,a,t,c),e.elementType=L,e.lanes=m,e;case k:return e=nn(19,a,t,c),e.elementType=k,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:b=10;break e;case N:b=9;break e;case j:b=11;break e;case D:b=14;break e;case U:b=16,i=null;break e}b=29,a=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=nn(b,a,t,c),t.elementType=e,t.type=i,t.lanes=m,t}function Ea(e,t,a,i){return e=nn(7,e,i,t),e.lanes=a,e}function Au(e,t,a){return e=nn(6,e,null,t),e.lanes=a,e}function wh(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function _u(e,t,a){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ch=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var a=Ch.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ut(t)},Ch.set(e,t),t)}return{value:e,source:t,stack:ut(t)}}var fo=[],mo=0,Bi=null,hr=0,gn=[],yn=0,ql=null,Xn=1,In="";function ul(e,t){fo[mo++]=hr,fo[mo++]=Bi,Bi=e,hr=t}function Th(e,t,a){gn[yn++]=Xn,gn[yn++]=In,gn[yn++]=ql,ql=e;var i=Xn;e=In;var c=32-Ee(i)-1;i&=~(1<<c),a+=1;var m=32-Ee(t)+c;if(30<m){var b=c-c%5;m=(i&(1<<b)-1).toString(32),i>>=b,c-=b,Xn=1<<32-Ee(t)+c|a<<c|i,In=m+e}else Xn=1<<m|a<<c|i,In=e}function Nu(e){e.return!==null&&(ul(e,1),Th(e,1,0))}function Mu(e){for(;e===Bi;)Bi=fo[--mo],fo[mo]=null,hr=fo[--mo],fo[mo]=null;for(;e===ql;)ql=gn[--yn],gn[yn]=null,In=gn[--yn],gn[yn]=null,Xn=gn[--yn],gn[yn]=null}function Rh(e,t){gn[yn++]=Xn,gn[yn++]=In,gn[yn++]=ql,Xn=t.id,In=t.overflow,ql=e}var Rt=null,We=null,ke=!1,Vl=null,bn=!1,Ou=Error(o(519));function Gl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vr(vn(t,e)),Ou}function Eh(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Tt]=e,t[Ht]=i,a){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(a=0;a<kr.length;a++)De(kr[a],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Up(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Yp(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||Vg(t.textContent,a)?(i.popover!=null&&(De("beforetoggle",t),De("toggle",t)),i.onScroll!=null&&De("scroll",t),i.onScrollEnd!=null&&De("scrollend",t),i.onClick!=null&&(t.onclick=il),t=!0):t=!1,t||Gl(e,!0)}function Ah(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:bn=!1;return;case 27:case 3:bn=!0;return;default:Rt=Rt.return}}function po(e){if(e!==Rt)return!1;if(!ke)return Ah(e),ke=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ff(e.type,e.memoizedProps)),a=!a),a&&We&&Gl(e),Ah(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Pg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Pg(e)}else t===27?(t=We,aa(e.type)?(e=td,td=null,We=e):We=t):We=Rt?xn(e.stateNode.nextSibling):null;return!0}function Aa(){We=Rt=null,ke=!1}function ju(){var e=Vl;return e!==null&&(Xt===null?Xt=e:Xt.push.apply(Xt,e),Vl=null),e}function vr(e){Vl===null?Vl=[e]:Vl.push(e)}var zu=M(null),_a=null,fl=null;function Xl(e,t,a){J(zu,t._currentValue),t._currentValue=a}function dl(e){e._currentValue=zu.current,Y(zu)}function Du(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function $u(e,t,a,i){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var m=c.dependencies;if(m!==null){var b=c.child;m=m.firstContext;e:for(;m!==null;){var R=m;m=c;for(var z=0;z<t.length;z++)if(R.context===t[z]){m.lanes|=a,R=m.alternate,R!==null&&(R.lanes|=a),Du(m.return,a,e),i||(b=null);break e}m=R.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(o(341));b.lanes|=a,m=b.alternate,m!==null&&(m.lanes|=a),Du(b,a,e),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===e){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function ho(e,t,a,i){e=null;for(var c=t,m=!1;c!==null;){if(!m){if((c.flags&524288)!==0)m=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(o(387));if(b=b.memoizedProps,b!==null){var R=c.type;tn(c.pendingProps.value,b.value)||(e!==null?e.push(R):e=[R])}}else if(c===ge.current){if(b=c.alternate,b===null)throw Error(o(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Vr):e=[Vr])}c=c.return}e!==null&&$u(t,e,a,i),t.flags|=262144}function ki(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Na(e){_a=e,fl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Et(e){return _h(_a,e)}function Ui(e,t){return _a===null&&Na(e),_h(e,t)}function _h(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},fl===null){if(e===null)throw Error(o(308));fl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fl=fl.next=t;return a}var Zx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Qx=n.unstable_scheduleCallback,Kx=n.unstable_NormalPriority,ft={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lu(){return{controller:new Zx,data:new Map,refCount:0}}function gr(e){e.refCount--,e.refCount===0&&Qx(Kx,function(){e.controller.abort()})}var yr=null,Bu=0,vo=0,go=null;function Fx(e,t){if(yr===null){var a=yr=[];Bu=0,vo=Yf(),go={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Bu++,t.then(Nh,Nh),t}function Nh(){if(--Bu===0&&yr!==null){go!==null&&(go.status="fulfilled");var e=yr;yr=null,vo=0,go=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Jx(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(c){a.push(c)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var c=0;c<a.length;c++)(0,a[c])(t)},function(c){for(i.status="rejected",i.reason=c,c=0;c<a.length;c++)(0,a[c])(void 0)}),i}var Mh=O.S;O.S=function(e,t){mg=je(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Fx(e,t),Mh!==null&&Mh(e,t)};var Ma=M(null);function ku(){var e=Ma.current;return e!==null?e:Fe.pooledCache}function Hi(e,t){t===null?J(Ma,Ma.current):J(Ma,t.pool)}function Oh(){var e=ku();return e===null?null:{parent:ft._currentValue,pool:e}}var yo=Error(o(460)),Uu=Error(o(474)),Yi=Error(o(542)),qi={then:function(){}};function jh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function zh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(il,il),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$h(e),e;default:if(typeof t.status=="string")t.then(il,il);else{if(e=Fe,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=i}},function(i){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$h(e),e}throw ja=t,yo}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ja=a,yo):a}}var ja=null;function Dh(){if(ja===null)throw Error(o(459));var e=ja;return ja=null,e}function $h(e){if(e===yo||e===Yi)throw Error(o(483))}var bo=null,br=0;function Vi(e){var t=br;return br+=1,bo===null&&(bo=[]),zh(bo,e,t)}function Sr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Gi(e,t){throw t.$$typeof===v?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Lh(e){function t(q,$){if(e){var G=q.deletions;G===null?(q.deletions=[$],q.flags|=16):G.push($)}}function a(q,$){if(!e)return null;for(;$!==null;)t(q,$),$=$.sibling;return null}function i(q){for(var $=new Map;q!==null;)q.key!==null?$.set(q.key,q):$.set(q.index,q),q=q.sibling;return $}function c(q,$){return q=cl(q,$),q.index=0,q.sibling=null,q}function m(q,$,G){return q.index=G,e?(G=q.alternate,G!==null?(G=G.index,G<$?(q.flags|=67108866,$):G):(q.flags|=67108866,$)):(q.flags|=1048576,$)}function b(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function R(q,$,G,ne){return $===null||$.tag!==6?($=Au(G,q.mode,ne),$.return=q,$):($=c($,G),$.return=q,$)}function z(q,$,G,ne){var xe=G.type;return xe===C?W(q,$,G.props.children,ne,G.key):$!==null&&($.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===U&&Oa(xe)===$.type)?($=c($,G.props),Sr($,G),$.return=q,$):($=Li(G.type,G.key,G.props,null,q.mode,ne),Sr($,G),$.return=q,$)}function X(q,$,G,ne){return $===null||$.tag!==4||$.stateNode.containerInfo!==G.containerInfo||$.stateNode.implementation!==G.implementation?($=_u(G,q.mode,ne),$.return=q,$):($=c($,G.children||[]),$.return=q,$)}function W(q,$,G,ne,xe){return $===null||$.tag!==7?($=Ea(G,q.mode,ne,xe),$.return=q,$):($=c($,G),$.return=q,$)}function re(q,$,G){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=Au(""+$,q.mode,G),$.return=q,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case w:return G=Li($.type,$.key,$.props,null,q.mode,G),Sr(G,$),G.return=q,G;case E:return $=_u($,q.mode,G),$.return=q,$;case U:return $=Oa($),re(q,$,G)}if(ce($)||ee($))return $=Ea($,q.mode,G,null),$.return=q,$;if(typeof $.then=="function")return re(q,Vi($),G);if($.$$typeof===_)return re(q,Ui(q,$),G);Gi(q,$)}return null}function I(q,$,G,ne){var xe=$!==null?$.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return xe!==null?null:R(q,$,""+G,ne);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case w:return G.key===xe?z(q,$,G,ne):null;case E:return G.key===xe?X(q,$,G,ne):null;case U:return G=Oa(G),I(q,$,G,ne)}if(ce(G)||ee(G))return xe!==null?null:W(q,$,G,ne,null);if(typeof G.then=="function")return I(q,$,Vi(G),ne);if(G.$$typeof===_)return I(q,$,Ui(q,G),ne);Gi(q,G)}return null}function Q(q,$,G,ne,xe){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return q=q.get(G)||null,R($,q,""+ne,xe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case w:return q=q.get(ne.key===null?G:ne.key)||null,z($,q,ne,xe);case E:return q=q.get(ne.key===null?G:ne.key)||null,X($,q,ne,xe);case U:return ne=Oa(ne),Q(q,$,G,ne,xe)}if(ce(ne)||ee(ne))return q=q.get(G)||null,W($,q,ne,xe,null);if(typeof ne.then=="function")return Q(q,$,G,Vi(ne),xe);if(ne.$$typeof===_)return Q(q,$,G,Ui($,ne),xe);Gi($,ne)}return null}function ve(q,$,G,ne){for(var xe=null,Ue=null,be=$,_e=$=0,Be=null;be!==null&&_e<G.length;_e++){be.index>_e?(Be=be,be=null):Be=be.sibling;var He=I(q,be,G[_e],ne);if(He===null){be===null&&(be=Be);break}e&&be&&He.alternate===null&&t(q,be),$=m(He,$,_e),Ue===null?xe=He:Ue.sibling=He,Ue=He,be=Be}if(_e===G.length)return a(q,be),ke&&ul(q,_e),xe;if(be===null){for(;_e<G.length;_e++)be=re(q,G[_e],ne),be!==null&&($=m(be,$,_e),Ue===null?xe=be:Ue.sibling=be,Ue=be);return ke&&ul(q,_e),xe}for(be=i(be);_e<G.length;_e++)Be=Q(be,q,_e,G[_e],ne),Be!==null&&(e&&Be.alternate!==null&&be.delete(Be.key===null?_e:Be.key),$=m(Be,$,_e),Ue===null?xe=Be:Ue.sibling=Be,Ue=Be);return e&&be.forEach(function(ca){return t(q,ca)}),ke&&ul(q,_e),xe}function we(q,$,G,ne){if(G==null)throw Error(o(151));for(var xe=null,Ue=null,be=$,_e=$=0,Be=null,He=G.next();be!==null&&!He.done;_e++,He=G.next()){be.index>_e?(Be=be,be=null):Be=be.sibling;var ca=I(q,be,He.value,ne);if(ca===null){be===null&&(be=Be);break}e&&be&&ca.alternate===null&&t(q,be),$=m(ca,$,_e),Ue===null?xe=ca:Ue.sibling=ca,Ue=ca,be=Be}if(He.done)return a(q,be),ke&&ul(q,_e),xe;if(be===null){for(;!He.done;_e++,He=G.next())He=re(q,He.value,ne),He!==null&&($=m(He,$,_e),Ue===null?xe=He:Ue.sibling=He,Ue=He);return ke&&ul(q,_e),xe}for(be=i(be);!He.done;_e++,He=G.next())He=Q(be,q,_e,He.value,ne),He!==null&&(e&&He.alternate!==null&&be.delete(He.key===null?_e:He.key),$=m(He,$,_e),Ue===null?xe=He:Ue.sibling=He,Ue=He);return e&&be.forEach(function(s2){return t(q,s2)}),ke&&ul(q,_e),xe}function Ke(q,$,G,ne){if(typeof G=="object"&&G!==null&&G.type===C&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case w:e:{for(var xe=G.key;$!==null;){if($.key===xe){if(xe=G.type,xe===C){if($.tag===7){a(q,$.sibling),ne=c($,G.props.children),ne.return=q,q=ne;break e}}else if($.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===U&&Oa(xe)===$.type){a(q,$.sibling),ne=c($,G.props),Sr(ne,G),ne.return=q,q=ne;break e}a(q,$);break}else t(q,$);$=$.sibling}G.type===C?(ne=Ea(G.props.children,q.mode,ne,G.key),ne.return=q,q=ne):(ne=Li(G.type,G.key,G.props,null,q.mode,ne),Sr(ne,G),ne.return=q,q=ne)}return b(q);case E:e:{for(xe=G.key;$!==null;){if($.key===xe)if($.tag===4&&$.stateNode.containerInfo===G.containerInfo&&$.stateNode.implementation===G.implementation){a(q,$.sibling),ne=c($,G.children||[]),ne.return=q,q=ne;break e}else{a(q,$);break}else t(q,$);$=$.sibling}ne=_u(G,q.mode,ne),ne.return=q,q=ne}return b(q);case U:return G=Oa(G),Ke(q,$,G,ne)}if(ce(G))return ve(q,$,G,ne);if(ee(G)){if(xe=ee(G),typeof xe!="function")throw Error(o(150));return G=xe.call(G),we(q,$,G,ne)}if(typeof G.then=="function")return Ke(q,$,Vi(G),ne);if(G.$$typeof===_)return Ke(q,$,Ui(q,G),ne);Gi(q,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,$!==null&&$.tag===6?(a(q,$.sibling),ne=c($,G),ne.return=q,q=ne):(a(q,$),ne=Au(G,q.mode,ne),ne.return=q,q=ne),b(q)):a(q,$)}return function(q,$,G,ne){try{br=0;var xe=Ke(q,$,G,ne);return bo=null,xe}catch(be){if(be===yo||be===Yi)throw be;var Ue=nn(29,be,null,q.mode);return Ue.lanes=ne,Ue.return=q,Ue}finally{}}}var za=Lh(!0),Bh=Lh(!1),Il=!1;function Hu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ql(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(qe&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=$i(e),Sh(e,null,a),t}return Di(e,i,t,a),$i(e)}function xr(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,_p(e,a)}}function qu(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var c=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?c=m=b:m=m.next=b,a=a.next}while(a!==null);m===null?c=m=t:m=m.next=t}else c=m=t;a={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:m,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Vu=!1;function wr(){if(Vu){var e=go;if(e!==null)throw e}}function Cr(e,t,a,i){Vu=!1;var c=e.updateQueue;Il=!1;var m=c.firstBaseUpdate,b=c.lastBaseUpdate,R=c.shared.pending;if(R!==null){c.shared.pending=null;var z=R,X=z.next;z.next=null,b===null?m=X:b.next=X,b=z;var W=e.alternate;W!==null&&(W=W.updateQueue,R=W.lastBaseUpdate,R!==b&&(R===null?W.firstBaseUpdate=X:R.next=X,W.lastBaseUpdate=z))}if(m!==null){var re=c.baseState;b=0,W=X=z=null,R=m;do{var I=R.lane&-536870913,Q=I!==R.lane;if(Q?(Le&I)===I:(i&I)===I){I!==0&&I===vo&&(Vu=!0),W!==null&&(W=W.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var ve=e,we=R;I=t;var Ke=a;switch(we.tag){case 1:if(ve=we.payload,typeof ve=="function"){re=ve.call(Ke,re,I);break e}re=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=we.payload,I=typeof ve=="function"?ve.call(Ke,re,I):ve,I==null)break e;re=g({},re,I);break e;case 2:Il=!0}}I=R.callback,I!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=c.callbacks,Q===null?c.callbacks=[I]:Q.push(I))}else Q={lane:I,tag:R.tag,payload:R.payload,callback:R.callback,next:null},W===null?(X=W=Q,z=re):W=W.next=Q,b|=I;if(R=R.next,R===null){if(R=c.shared.pending,R===null)break;Q=R,R=Q.next,Q.next=null,c.lastBaseUpdate=Q,c.shared.pending=null}}while(!0);W===null&&(z=re),c.baseState=z,c.firstBaseUpdate=X,c.lastBaseUpdate=W,m===null&&(c.shared.lanes=0),Wl|=b,e.lanes=b,e.memoizedState=re}}function kh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Uh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)kh(a[e],t)}var So=M(null),Xi=M(0);function Hh(e,t){e=xl,J(Xi,e),J(So,t),xl=e|t.baseLanes}function Gu(){J(Xi,xl),J(So,So.current)}function Xu(){xl=Xi.current,Y(So),Y(Xi)}var ln=M(null),Sn=null;function Kl(e){var t=e.alternate;J(st,st.current&1),J(ln,e),Sn===null&&(t===null||So.current!==null||t.memoizedState!==null)&&(Sn=e)}function Iu(e){J(st,st.current),J(ln,e),Sn===null&&(Sn=e)}function Yh(e){e.tag===22?(J(st,st.current),J(ln,e),Sn===null&&(Sn=e)):Fl()}function Fl(){J(st,st.current),J(ln,ln.current)}function an(e){Y(ln),Sn===e&&(Sn=null),Y(st)}var st=M(0);function Ii(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Wf(a)||ed(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ml=0,Ae=null,Ze=null,dt=null,Zi=!1,xo=!1,Da=!1,Qi=0,Tr=0,wo=null,Px=0;function ot(){throw Error(o(321))}function Zu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!tn(e[a],t[a]))return!1;return!0}function Qu(e,t,a,i,c,m){return ml=m,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Tv:uf,Da=!1,m=a(i,c),Da=!1,xo&&(m=Vh(t,a,i,c)),qh(e),m}function qh(e){O.H=Ar;var t=Ze!==null&&Ze.next!==null;if(ml=0,dt=Ze=Ae=null,Zi=!1,Tr=0,wo=null,t)throw Error(o(300));e===null||mt||(e=e.dependencies,e!==null&&ki(e)&&(mt=!0))}function Vh(e,t,a,i){Ae=e;var c=0;do{if(xo&&(wo=null),Tr=0,xo=!1,25<=c)throw Error(o(301));if(c+=1,dt=Ze=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}O.H=Rv,m=t(a,i)}while(xo);return m}function Wx(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Rr(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(Ae.flags|=1024),t}function Ku(){var e=Qi!==0;return Qi=0,e}function Fu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ju(e){if(Zi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zi=!1}ml=0,dt=Ze=Ae=null,xo=!1,Tr=Qi=0,wo=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?Ae.memoizedState=dt=e:dt=dt.next=e,dt}function ct(){if(Ze===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=dt===null?Ae.memoizedState:dt.next;if(t!==null)dt=t,Ze=e;else{if(e===null)throw Ae.alternate===null?Error(o(467)):Error(o(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},dt===null?Ae.memoizedState=dt=e:dt=dt.next=e}return dt}function Ki(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rr(e){var t=Tr;return Tr+=1,wo===null&&(wo=[]),e=zh(wo,e,t),t=Ae,(dt===null?t.memoizedState:dt.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Tv:uf),e}function Fi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rr(e);if(e.$$typeof===_)return Et(e)}throw Error(o(438,String(e)))}function Pu(e){var t=null,a=Ae.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Ae.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ki(),Ae.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=le;return t.index++,a}function pl(e,t){return typeof t=="function"?t(e):t}function Ji(e){var t=ct();return Wu(t,Ze,e)}function Wu(e,t,a){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=a;var c=e.baseQueue,m=i.pending;if(m!==null){if(c!==null){var b=c.next;c.next=m.next,m.next=b}t.baseQueue=c=m,i.pending=null}if(m=e.baseState,c===null)e.memoizedState=m;else{t=c.next;var R=b=null,z=null,X=t,W=!1;do{var re=X.lane&-536870913;if(re!==X.lane?(Le&re)===re:(ml&re)===re){var I=X.revertLane;if(I===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),re===vo&&(W=!0);else if((ml&I)===I){X=X.next,I===vo&&(W=!0);continue}else re={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},z===null?(R=z=re,b=m):z=z.next=re,Ae.lanes|=I,Wl|=I;re=X.action,Da&&a(m,re),m=X.hasEagerState?X.eagerState:a(m,re)}else I={lane:re,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},z===null?(R=z=I,b=m):z=z.next=I,Ae.lanes|=re,Wl|=re;X=X.next}while(X!==null&&X!==t);if(z===null?b=m:z.next=R,!tn(m,e.memoizedState)&&(mt=!0,W&&(a=go,a!==null)))throw a;e.memoizedState=m,e.baseState=b,e.baseQueue=z,i.lastRenderedState=m}return c===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function ef(e){var t=ct(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var i=a.dispatch,c=a.pending,m=t.memoizedState;if(c!==null){a.pending=null;var b=c=c.next;do m=e(m,b.action),b=b.next;while(b!==c);tn(m,t.memoizedState)||(mt=!0),t.memoizedState=m,t.baseQueue===null&&(t.baseState=m),a.lastRenderedState=m}return[m,i]}function Gh(e,t,a){var i=Ae,c=ct(),m=ke;if(m){if(a===void 0)throw Error(o(407));a=a()}else a=t();var b=!tn((Ze||c).memoizedState,a);if(b&&(c.memoizedState=a,mt=!0),c=c.queue,lf(Zh.bind(null,i,c,e),[e]),c.getSnapshot!==t||b||dt!==null&&dt.memoizedState.tag&1){if(i.flags|=2048,Co(9,{destroy:void 0},Ih.bind(null,i,c,a,t),null),Fe===null)throw Error(o(349));m||(ml&127)!==0||Xh(i,t,a)}return a}function Xh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ae.updateQueue,t===null?(t=Ki(),Ae.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Ih(e,t,a,i){t.value=a,t.getSnapshot=i,Qh(t)&&Kh(e)}function Zh(e,t,a){return a(function(){Qh(t)&&Kh(e)})}function Qh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!tn(e,a)}catch{return!0}}function Kh(e){var t=Ra(e,2);t!==null&&It(t,e,2)}function tf(e){var t=Lt();if(typeof e=="function"){var a=e;if(e=a(),Da){en(!0);try{a()}finally{en(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:e},t}function Fh(e,t,a,i){return e.baseState=a,Wu(e,Ze,typeof i=="function"?i:pl)}function ew(e,t,a,i,c){if(es(e))throw Error(o(485));if(e=t.action,e!==null){var m={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){m.listeners.push(b)}};O.T!==null?a(!0):m.isTransition=!1,i(m),a=t.pending,a===null?(m.next=t.pending=m,Jh(t,m)):(m.next=a.next,t.pending=a.next=m)}}function Jh(e,t){var a=t.action,i=t.payload,c=e.state;if(t.isTransition){var m=O.T,b={};O.T=b;try{var R=a(c,i),z=O.S;z!==null&&z(b,R),Ph(e,t,R)}catch(X){nf(e,t,X)}finally{m!==null&&b.types!==null&&(m.types=b.types),O.T=m}}else try{m=a(c,i),Ph(e,t,m)}catch(X){nf(e,t,X)}}function Ph(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Wh(e,t,i)},function(i){return nf(e,t,i)}):Wh(e,t,a)}function Wh(e,t,a){t.status="fulfilled",t.value=a,ev(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Jh(e,a)))}function nf(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,ev(t),t=t.next;while(t!==i)}e.action=null}function ev(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function tv(e,t){return t}function nv(e,t){if(ke){var a=Fe.formState;if(a!==null){e:{var i=Ae;if(ke){if(We){t:{for(var c=We,m=bn;c.nodeType!==8;){if(!m){c=null;break t}if(c=xn(c.nextSibling),c===null){c=null;break t}}m=c.data,c=m==="F!"||m==="F"?c:null}if(c){We=xn(c.nextSibling),i=c.data==="F!";break e}}Gl(i)}i=!1}i&&(t=a[0])}}return a=Lt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tv,lastRenderedState:t},a.queue=i,a=xv.bind(null,Ae,i),i.dispatch=a,i=tf(!1),m=cf.bind(null,Ae,!1,i.queue),i=Lt(),c={state:t,dispatch:null,action:e,pending:null},i.queue=c,a=ew.bind(null,Ae,c,m,a),c.dispatch=a,i.memoizedState=e,[t,a,!1]}function lv(e){var t=ct();return av(t,Ze,e)}function av(e,t,a){if(t=Wu(e,t,tv)[0],e=Ji(pl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Rr(t)}catch(b){throw b===yo?Yi:b}else i=t;t=ct();var c=t.queue,m=c.dispatch;return a!==t.memoizedState&&(Ae.flags|=2048,Co(9,{destroy:void 0},tw.bind(null,c,a),null)),[i,m,e]}function tw(e,t){e.action=t}function ov(e){var t=ct(),a=Ze;if(a!==null)return av(t,a,e);ct(),t=t.memoizedState,a=ct();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function Co(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=Ki(),Ae.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function rv(){return ct().memoizedState}function Pi(e,t,a,i){var c=Lt();Ae.flags|=e,c.memoizedState=Co(1|t,{destroy:void 0},a,i===void 0?null:i)}function Wi(e,t,a,i){var c=ct();i=i===void 0?null:i;var m=c.memoizedState.inst;Ze!==null&&i!==null&&Zu(i,Ze.memoizedState.deps)?c.memoizedState=Co(t,m,a,i):(Ae.flags|=e,c.memoizedState=Co(1|t,m,a,i))}function iv(e,t){Pi(8390656,8,e,t)}function lf(e,t){Wi(2048,8,e,t)}function nw(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=Ki(),Ae.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function sv(e){var t=ct().memoizedState;return nw({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function cv(e,t){return Wi(4,2,e,t)}function uv(e,t){return Wi(4,4,e,t)}function fv(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dv(e,t,a){a=a!=null?a.concat([e]):null,Wi(4,4,fv.bind(null,t,e),a)}function af(){}function mv(e,t){var a=ct();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Zu(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function pv(e,t){var a=ct();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Zu(t,i[1]))return i[0];if(i=e(),Da){en(!0);try{e()}finally{en(!1)}}return a.memoizedState=[i,t],i}function of(e,t,a){return a===void 0||(ml&1073741824)!==0&&(Le&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=hg(),Ae.lanes|=e,Wl|=e,a)}function hv(e,t,a,i){return tn(a,t)?a:So.current!==null?(e=of(e,a,i),tn(e,t)||(mt=!0),e):(ml&42)===0||(ml&1073741824)!==0&&(Le&261930)===0?(mt=!0,e.memoizedState=a):(e=hg(),Ae.lanes|=e,Wl|=e,t)}function vv(e,t,a,i,c){var m=B.p;B.p=m!==0&&8>m?m:8;var b=O.T,R={};O.T=R,cf(e,!1,t,a);try{var z=c(),X=O.S;if(X!==null&&X(R,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var W=Jx(z,i);Er(e,t,W,sn(e))}else Er(e,t,i,sn(e))}catch(re){Er(e,t,{then:function(){},status:"rejected",reason:re},sn())}finally{B.p=m,b!==null&&R.types!==null&&(b.types=R.types),O.T=b}}function lw(){}function rf(e,t,a,i){if(e.tag!==5)throw Error(o(476));var c=gv(e).queue;vv(e,c,t,H,a===null?lw:function(){return yv(e),a(i)})}function gv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:H},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yv(e){var t=gv(e);t.next===null&&(t=e.alternate.memoizedState),Er(e,t.next.queue,{},sn())}function sf(){return Et(Vr)}function bv(){return ct().memoizedState}function Sv(){return ct().memoizedState}function aw(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=sn();e=Zl(a);var i=Ql(t,e,a);i!==null&&(It(i,t,a),xr(i,t,a)),t={cache:Lu()},e.payload=t;return}t=t.return}}function ow(e,t,a){var i=sn();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},es(e)?wv(t,a):(a=Ru(e,t,a,i),a!==null&&(It(a,e,i),Cv(a,t,i)))}function xv(e,t,a){var i=sn();Er(e,t,a,i)}function Er(e,t,a,i){var c={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(es(e))wv(t,c);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=t.lastRenderedReducer,m!==null))try{var b=t.lastRenderedState,R=m(b,a);if(c.hasEagerState=!0,c.eagerState=R,tn(R,b))return Di(e,t,c,0),Fe===null&&zi(),!1}catch{}finally{}if(a=Ru(e,t,c,i),a!==null)return It(a,e,i),Cv(a,t,i),!0}return!1}function cf(e,t,a,i){if(i={lane:2,revertLane:Yf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},es(e)){if(t)throw Error(o(479))}else t=Ru(e,a,i,2),t!==null&&It(t,e,2)}function es(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function wv(e,t){xo=Zi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Cv(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,_p(e,a)}}var Ar={readContext:Et,use:Fi,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot};Ar.useEffectEvent=ot;var Tv={readContext:Et,use:Fi,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:iv,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Pi(4194308,4,fv.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){Pi(4,2,e,t)},useMemo:function(e,t){var a=Lt();t=t===void 0?null:t;var i=e();if(Da){en(!0);try{e()}finally{en(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Lt();if(a!==void 0){var c=a(t);if(Da){en(!0);try{a(t)}finally{en(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=ow.bind(null,Ae,e),[i.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=tf(e);var t=e.queue,a=xv.bind(null,Ae,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:af,useDeferredValue:function(e,t){var a=Lt();return of(a,e,t)},useTransition:function(){var e=tf(!1);return e=vv.bind(null,Ae,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Ae,c=Lt();if(ke){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Fe===null)throw Error(o(349));(Le&127)!==0||Xh(i,t,a)}c.memoizedState=a;var m={value:a,getSnapshot:t};return c.queue=m,iv(Zh.bind(null,i,m,e),[e]),i.flags|=2048,Co(9,{destroy:void 0},Ih.bind(null,i,m,a,t),null),a},useId:function(){var e=Lt(),t=Fe.identifierPrefix;if(ke){var a=In,i=Xn;a=(i&~(1<<32-Ee(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Qi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Px++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:sf,useFormState:nv,useActionState:nv,useOptimistic:function(e){var t=Lt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=cf.bind(null,Ae,!0,a),a.dispatch=t,[e,t]},useMemoCache:Pu,useCacheRefresh:function(){return Lt().memoizedState=aw.bind(null,Ae)},useEffectEvent:function(e){var t=Lt(),a={impl:e};return t.memoizedState=a,function(){if((qe&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},uf={readContext:Et,use:Fi,useCallback:mv,useContext:Et,useEffect:lf,useImperativeHandle:dv,useInsertionEffect:cv,useLayoutEffect:uv,useMemo:pv,useReducer:Ji,useRef:rv,useState:function(){return Ji(pl)},useDebugValue:af,useDeferredValue:function(e,t){var a=ct();return hv(a,Ze.memoizedState,e,t)},useTransition:function(){var e=Ji(pl)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:Rr(e),t]},useSyncExternalStore:Gh,useId:bv,useHostTransitionStatus:sf,useFormState:lv,useActionState:lv,useOptimistic:function(e,t){var a=ct();return Fh(a,Ze,e,t)},useMemoCache:Pu,useCacheRefresh:Sv};uf.useEffectEvent=sv;var Rv={readContext:Et,use:Fi,useCallback:mv,useContext:Et,useEffect:lf,useImperativeHandle:dv,useInsertionEffect:cv,useLayoutEffect:uv,useMemo:pv,useReducer:ef,useRef:rv,useState:function(){return ef(pl)},useDebugValue:af,useDeferredValue:function(e,t){var a=ct();return Ze===null?of(a,e,t):hv(a,Ze.memoizedState,e,t)},useTransition:function(){var e=ef(pl)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:Rr(e),t]},useSyncExternalStore:Gh,useId:bv,useHostTransitionStatus:sf,useFormState:ov,useActionState:ov,useOptimistic:function(e,t){var a=ct();return Ze!==null?Fh(a,Ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Pu,useCacheRefresh:Sv};Rv.useEffectEvent=sv;function ff(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var df={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=sn(),c=Zl(i);c.payload=t,a!=null&&(c.callback=a),t=Ql(e,c,i),t!==null&&(It(t,e,i),xr(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=sn(),c=Zl(i);c.tag=1,c.payload=t,a!=null&&(c.callback=a),t=Ql(e,c,i),t!==null&&(It(t,e,i),xr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=sn(),i=Zl(a);i.tag=2,t!=null&&(i.callback=t),t=Ql(e,i,a),t!==null&&(It(t,e,a),xr(t,e,a))}};function Ev(e,t,a,i,c,m,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,m,b):t.prototype&&t.prototype.isPureReactComponent?!mr(a,i)||!mr(c,m):!0}function Av(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&df.enqueueReplaceState(t,t.state,null)}function $a(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=g({},a));for(var c in e)a[c]===void 0&&(a[c]=e[c])}return a}function _v(e){ji(e)}function Nv(e){console.error(e)}function Mv(e){ji(e)}function ts(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Ov(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function mf(e,t,a){return a=Zl(a),a.tag=3,a.payload={element:null},a.callback=function(){ts(e,t)},a}function jv(e){return e=Zl(e),e.tag=3,e}function zv(e,t,a,i){var c=a.type.getDerivedStateFromError;if(typeof c=="function"){var m=i.value;e.payload=function(){return c(m)},e.callback=function(){Ov(t,a,i)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Ov(t,a,i),typeof c!="function"&&(ea===null?ea=new Set([this]):ea.add(this));var R=i.stack;this.componentDidCatch(i.value,{componentStack:R!==null?R:""})})}function rw(e,t,a,i,c){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&ho(t,a,c,!0),a=ln.current,a!==null){switch(a.tag){case 31:case 13:return Sn===null?ms():a.alternate===null&&rt===0&&(rt=3),a.flags&=-257,a.flags|=65536,a.lanes=c,i===qi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),kf(e,i,c)),!1;case 22:return a.flags|=65536,i===qi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),kf(e,i,c)),!1}throw Error(o(435,a.tag))}return kf(e,i,c),ms(),!1}if(ke)return t=ln.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,i!==Ou&&(e=Error(o(422),{cause:i}),vr(vn(e,a)))):(i!==Ou&&(t=Error(o(423),{cause:i}),vr(vn(t,a))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,i=vn(i,a),c=mf(e.stateNode,i,c),qu(e,c),rt!==4&&(rt=2)),!1;var m=Error(o(520),{cause:i});if(m=vn(m,a),$r===null?$r=[m]:$r.push(m),rt!==4&&(rt=2),t===null)return!0;i=vn(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=c&-c,a.lanes|=e,e=mf(a.stateNode,i,e),qu(a,e),!1;case 1:if(t=a.type,m=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ea===null||!ea.has(m))))return a.flags|=65536,c&=-c,a.lanes|=c,c=jv(c),zv(c,e,a,i),qu(a,c),!1}a=a.return}while(a!==null);return!1}var pf=Error(o(461)),mt=!1;function At(e,t,a,i){t.child=e===null?Bh(t,null,a,i):za(t,e.child,a,i)}function Dv(e,t,a,i,c){a=a.render;var m=t.ref;if("ref"in i){var b={};for(var R in i)R!=="ref"&&(b[R]=i[R])}else b=i;return Na(t),i=Qu(e,t,a,b,m,c),R=Ku(),e!==null&&!mt?(Fu(e,t,c),hl(e,t,c)):(ke&&R&&Nu(t),t.flags|=1,At(e,t,i,c),t.child)}function $v(e,t,a,i,c){if(e===null){var m=a.type;return typeof m=="function"&&!Eu(m)&&m.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=m,Lv(e,t,m,i,c)):(e=Li(a.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(m=e.child,!wf(e,c)){var b=m.memoizedProps;if(a=a.compare,a=a!==null?a:mr,a(b,i)&&e.ref===t.ref)return hl(e,t,c)}return t.flags|=1,e=cl(m,i),e.ref=t.ref,e.return=t,t.child=e}function Lv(e,t,a,i,c){if(e!==null){var m=e.memoizedProps;if(mr(m,i)&&e.ref===t.ref)if(mt=!1,t.pendingProps=i=m,wf(e,c))(e.flags&131072)!==0&&(mt=!0);else return t.lanes=e.lanes,hl(e,t,c)}return hf(e,t,a,i,c)}function Bv(e,t,a,i){var c=i.children,m=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(m=m!==null?m.baseLanes|a:a,e!==null){for(i=t.child=e.child,c=0;i!==null;)c=c|i.lanes|i.childLanes,i=i.sibling;i=c&~m}else i=0,t.child=null;return kv(e,t,m,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Hi(t,m!==null?m.cachePool:null),m!==null?Hh(t,m):Gu(),Yh(t);else return i=t.lanes=536870912,kv(e,t,m!==null?m.baseLanes|a:a,a,i)}else m!==null?(Hi(t,m.cachePool),Hh(t,m),Fl(),t.memoizedState=null):(e!==null&&Hi(t,null),Gu(),Fl());return At(e,t,c,a),t.child}function _r(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function kv(e,t,a,i,c){var m=ku();return m=m===null?null:{parent:ft._currentValue,pool:m},t.memoizedState={baseLanes:a,cachePool:m},e!==null&&Hi(t,null),Gu(),Yh(t),e!==null&&ho(e,t,i,!0),t.childLanes=c,null}function ns(e,t){return t=as({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Uv(e,t,a){return za(t,e.child,null,a),e=ns(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function iw(e,t,a){var i=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ke){if(i.mode==="hidden")return e=ns(t,i),t.lanes=536870912,_r(null,e);if(Iu(t),(e=We)?(e=Jg(e,bn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ql!==null?{id:Xn,overflow:In}:null,retryLane:536870912,hydrationErrors:null},a=wh(e),a.return=t,t.child=a,Rt=t,We=null)):e=null,e===null)throw Gl(t);return t.lanes=536870912,null}return ns(t,i)}var m=e.memoizedState;if(m!==null){var b=m.dehydrated;if(Iu(t),c)if(t.flags&256)t.flags&=-257,t=Uv(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(mt||ho(e,t,a,!1),c=(a&e.childLanes)!==0,mt||c){if(i=Fe,i!==null&&(b=Np(i,a),b!==0&&b!==m.retryLane))throw m.retryLane=b,Ra(e,b),It(i,e,b),pf;ms(),t=Uv(e,t,a)}else e=m.treeContext,We=xn(b.nextSibling),Rt=t,ke=!0,Vl=null,bn=!1,e!==null&&Rh(t,e),t=ns(t,i),t.flags|=4096;return t}return e=cl(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ls(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function hf(e,t,a,i,c){return Na(t),a=Qu(e,t,a,i,void 0,c),i=Ku(),e!==null&&!mt?(Fu(e,t,c),hl(e,t,c)):(ke&&i&&Nu(t),t.flags|=1,At(e,t,a,c),t.child)}function Hv(e,t,a,i,c,m){return Na(t),t.updateQueue=null,a=Vh(t,i,a,c),qh(e),i=Ku(),e!==null&&!mt?(Fu(e,t,m),hl(e,t,m)):(ke&&i&&Nu(t),t.flags|=1,At(e,t,a,m),t.child)}function Yv(e,t,a,i,c){if(Na(t),t.stateNode===null){var m=uo,b=a.contextType;typeof b=="object"&&b!==null&&(m=Et(b)),m=new a(i,m),t.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=df,t.stateNode=m,m._reactInternals=t,m=t.stateNode,m.props=i,m.state=t.memoizedState,m.refs={},Hu(t),b=a.contextType,m.context=typeof b=="object"&&b!==null?Et(b):uo,m.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(ff(t,a,b,i),m.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(b=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),b!==m.state&&df.enqueueReplaceState(m,m.state,null),Cr(t,i,m,c),wr(),m.state=t.memoizedState),typeof m.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){m=t.stateNode;var R=t.memoizedProps,z=$a(a,R);m.props=z;var X=m.context,W=a.contextType;b=uo,typeof W=="object"&&W!==null&&(b=Et(W));var re=a.getDerivedStateFromProps;W=typeof re=="function"||typeof m.getSnapshotBeforeUpdate=="function",R=t.pendingProps!==R,W||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R||X!==b)&&Av(t,m,i,b),Il=!1;var I=t.memoizedState;m.state=I,Cr(t,i,m,c),wr(),X=t.memoizedState,R||I!==X||Il?(typeof re=="function"&&(ff(t,a,re,i),X=t.memoizedState),(z=Il||Ev(t,a,z,i,I,X,b))?(W||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=X),m.props=i,m.state=X,m.context=b,i=z):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{m=t.stateNode,Yu(e,t),b=t.memoizedProps,W=$a(a,b),m.props=W,re=t.pendingProps,I=m.context,X=a.contextType,z=uo,typeof X=="object"&&X!==null&&(z=Et(X)),R=a.getDerivedStateFromProps,(X=typeof R=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(b!==re||I!==z)&&Av(t,m,i,z),Il=!1,I=t.memoizedState,m.state=I,Cr(t,i,m,c),wr();var Q=t.memoizedState;b!==re||I!==Q||Il||e!==null&&e.dependencies!==null&&ki(e.dependencies)?(typeof R=="function"&&(ff(t,a,R,i),Q=t.memoizedState),(W=Il||Ev(t,a,W,i,I,Q,z)||e!==null&&e.dependencies!==null&&ki(e.dependencies))?(X||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(i,Q,z),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(i,Q,z)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||b===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=Q),m.props=i,m.state=Q,m.context=z,i=W):(typeof m.componentDidUpdate!="function"||b===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),i=!1)}return m=i,ls(e,t),i=(t.flags&128)!==0,m||i?(m=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:m.render(),t.flags|=1,e!==null&&i?(t.child=za(t,e.child,null,c),t.child=za(t,null,a,c)):At(e,t,a,c),t.memoizedState=m.state,e=t.child):e=hl(e,t,c),e}function qv(e,t,a,i){return Aa(),t.flags|=256,At(e,t,a,i),t.child}var vf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gf(e){return{baseLanes:e,cachePool:Oh()}}function yf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=rn),e}function Vv(e,t,a){var i=t.pendingProps,c=!1,m=(t.flags&128)!==0,b;if((b=m)||(b=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),b&&(c=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(c?Kl(t):Fl(),(e=We)?(e=Jg(e,bn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ql!==null?{id:Xn,overflow:In}:null,retryLane:536870912,hydrationErrors:null},a=wh(e),a.return=t,t.child=a,Rt=t,We=null)):e=null,e===null)throw Gl(t);return ed(e)?t.lanes=32:t.lanes=536870912,null}var R=i.children;return i=i.fallback,c?(Fl(),c=t.mode,R=as({mode:"hidden",children:R},c),i=Ea(i,c,a,null),R.return=t,i.return=t,R.sibling=i,t.child=R,i=t.child,i.memoizedState=gf(a),i.childLanes=yf(e,b,a),t.memoizedState=vf,_r(null,i)):(Kl(t),bf(t,R))}var z=e.memoizedState;if(z!==null&&(R=z.dehydrated,R!==null)){if(m)t.flags&256?(Kl(t),t.flags&=-257,t=Sf(e,t,a)):t.memoizedState!==null?(Fl(),t.child=e.child,t.flags|=128,t=null):(Fl(),R=i.fallback,c=t.mode,i=as({mode:"visible",children:i.children},c),R=Ea(R,c,a,null),R.flags|=2,i.return=t,R.return=t,i.sibling=R,t.child=i,za(t,e.child,null,a),i=t.child,i.memoizedState=gf(a),i.childLanes=yf(e,b,a),t.memoizedState=vf,t=_r(null,i));else if(Kl(t),ed(R)){if(b=R.nextSibling&&R.nextSibling.dataset,b)var X=b.dgst;b=X,i=Error(o(419)),i.stack="",i.digest=b,vr({value:i,source:null,stack:null}),t=Sf(e,t,a)}else if(mt||ho(e,t,a,!1),b=(a&e.childLanes)!==0,mt||b){if(b=Fe,b!==null&&(i=Np(b,a),i!==0&&i!==z.retryLane))throw z.retryLane=i,Ra(e,i),It(b,e,i),pf;Wf(R)||ms(),t=Sf(e,t,a)}else Wf(R)?(t.flags|=192,t.child=e.child,t=null):(e=z.treeContext,We=xn(R.nextSibling),Rt=t,ke=!0,Vl=null,bn=!1,e!==null&&Rh(t,e),t=bf(t,i.children),t.flags|=4096);return t}return c?(Fl(),R=i.fallback,c=t.mode,z=e.child,X=z.sibling,i=cl(z,{mode:"hidden",children:i.children}),i.subtreeFlags=z.subtreeFlags&65011712,X!==null?R=cl(X,R):(R=Ea(R,c,a,null),R.flags|=2),R.return=t,i.return=t,i.sibling=R,t.child=i,_r(null,i),i=t.child,R=e.child.memoizedState,R===null?R=gf(a):(c=R.cachePool,c!==null?(z=ft._currentValue,c=c.parent!==z?{parent:z,pool:z}:c):c=Oh(),R={baseLanes:R.baseLanes|a,cachePool:c}),i.memoizedState=R,i.childLanes=yf(e,b,a),t.memoizedState=vf,_r(e.child,i)):(Kl(t),a=e.child,e=a.sibling,a=cl(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=a,t.memoizedState=null,a)}function bf(e,t){return t=as({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function as(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function Sf(e,t,a){return za(t,e.child,null,a),e=bf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gv(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Du(e.return,t,a)}function xf(e,t,a,i,c,m){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:c,treeForkCount:m}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=i,b.tail=a,b.tailMode=c,b.treeForkCount=m)}function Xv(e,t,a){var i=t.pendingProps,c=i.revealOrder,m=i.tail;i=i.children;var b=st.current,R=(b&2)!==0;if(R?(b=b&1|2,t.flags|=128):b&=1,J(st,b),At(e,t,i,a),i=ke?hr:0,!R&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gv(e,a,t);else if(e.tag===19)Gv(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(a=t.child,c=null;a!==null;)e=a.alternate,e!==null&&Ii(e)===null&&(c=a),a=a.sibling;a=c,a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null),xf(t,!1,c,a,m,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Ii(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}xf(t,!0,a,null,m,i);break;case"together":xf(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function hl(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Wl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ho(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=cl(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=cl(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function wf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ki(e)))}function sw(e,t,a){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Xl(t,ft,e.memoizedState.cache),Aa();break;case 27:case 5:Me(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Xl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Iu(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Kl(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Vv(e,t,a):(Kl(t),e=hl(e,t,a),e!==null?e.sibling:null);Kl(t);break;case 19:var c=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(ho(e,t,a,!1),i=(a&t.childLanes)!==0),c){if(i)return Xv(e,t,a);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),J(st,st.current),i)break;return null;case 22:return t.lanes=0,Bv(e,t,a,t.pendingProps);case 24:Xl(t,ft,e.memoizedState.cache)}return hl(e,t,a)}function Iv(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)mt=!0;else{if(!wf(e,a)&&(t.flags&128)===0)return mt=!1,sw(e,t,a);mt=(e.flags&131072)!==0}else mt=!1,ke&&(t.flags&1048576)!==0&&Th(t,hr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e=="function")Eu(e)?(i=$a(e,i),t.tag=1,t=Yv(null,t,e,i,a)):(t.tag=0,t=hf(null,t,e,i,a));else{if(e!=null){var c=e.$$typeof;if(c===j){t.tag=11,t=Dv(null,t,e,i,a);break e}else if(c===D){t.tag=14,t=$v(null,t,e,i,a);break e}}throw t=V(e)||e,Error(o(306,t,""))}}return t;case 0:return hf(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,c=$a(i,t.pendingProps),Yv(e,t,i,c,a);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var m=t.memoizedState;c=m.element,Yu(e,t),Cr(t,i,null,a);var b=t.memoizedState;if(i=b.cache,Xl(t,ft,i),i!==m.cache&&$u(t,[ft],a,!0),wr(),i=b.element,m.isDehydrated)if(m={element:i,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=m,t.memoizedState=m,t.flags&256){t=qv(e,t,i,a);break e}else if(i!==c){c=vn(Error(o(424)),t),vr(c),t=qv(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(We=xn(e.firstChild),Rt=t,ke=!0,Vl=null,bn=!0,a=Bh(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Aa(),i===c){t=hl(e,t,a);break e}At(e,t,i,a)}t=t.child}return t;case 26:return ls(e,t),e===null?(a=ly(t.type,null,t.pendingProps,null))?t.memoizedState=a:ke||(a=t.type,e=t.pendingProps,i=Ss(de.current).createElement(a),i[Tt]=t,i[Ht]=e,_t(i,a,e),xt(i),t.stateNode=i):t.memoizedState=ly(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Me(t),e===null&&ke&&(i=t.stateNode=ey(t.type,t.pendingProps,de.current),Rt=t,bn=!0,c=We,aa(t.type)?(td=c,We=xn(i.firstChild)):We=c),At(e,t,t.pendingProps.children,a),ls(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ke&&((c=i=We)&&(i=kw(i,t.type,t.pendingProps,bn),i!==null?(t.stateNode=i,Rt=t,We=xn(i.firstChild),bn=!1,c=!0):c=!1),c||Gl(t)),Me(t),c=t.type,m=t.pendingProps,b=e!==null?e.memoizedProps:null,i=m.children,Ff(c,m)?i=null:b!==null&&Ff(c,b)&&(t.flags|=32),t.memoizedState!==null&&(c=Qu(e,t,Wx,null,null,a),Vr._currentValue=c),ls(e,t),At(e,t,i,a),t.child;case 6:return e===null&&ke&&((e=a=We)&&(a=Uw(a,t.pendingProps,bn),a!==null?(t.stateNode=a,Rt=t,We=null,e=!0):e=!1),e||Gl(t)),null;case 13:return Vv(e,t,a);case 4:return pe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=za(t,null,i,a):At(e,t,i,a),t.child;case 11:return Dv(e,t,t.type,t.pendingProps,a);case 7:return At(e,t,t.pendingProps,a),t.child;case 8:return At(e,t,t.pendingProps.children,a),t.child;case 12:return At(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Xl(t,t.type,i.value),At(e,t,i.children,a),t.child;case 9:return c=t.type._context,i=t.pendingProps.children,Na(t),c=Et(c),i=i(c),t.flags|=1,At(e,t,i,a),t.child;case 14:return $v(e,t,t.type,t.pendingProps,a);case 15:return Lv(e,t,t.type,t.pendingProps,a);case 19:return Xv(e,t,a);case 31:return iw(e,t,a);case 22:return Bv(e,t,a,t.pendingProps);case 24:return Na(t),i=Et(ft),e===null?(c=ku(),c===null&&(c=Fe,m=Lu(),c.pooledCache=m,m.refCount++,m!==null&&(c.pooledCacheLanes|=a),c=m),t.memoizedState={parent:i,cache:c},Hu(t),Xl(t,ft,c)):((e.lanes&a)!==0&&(Yu(e,t),Cr(t,null,null,a),wr()),c=e.memoizedState,m=t.memoizedState,c.parent!==i?(c={parent:i,cache:i},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Xl(t,ft,i)):(i=m.cache,Xl(t,ft,i),i!==c.cache&&$u(t,[ft],a,!0))),At(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function vl(e){e.flags|=4}function Cf(e,t,a,i,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(bg())e.flags|=8192;else throw ja=qi,Uu}else e.flags&=-16777217}function Zv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sy(t))if(bg())e.flags|=8192;else throw ja=qi,Uu}function os(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ep():536870912,e.lanes|=t,Ao|=t)}function Nr(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)a|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function cw(e,t,a){var i=t.pendingProps;switch(Mu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),dl(ft),he(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(po(t)?vl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ju())),et(t),null;case 26:var c=t.type,m=t.memoizedState;return e===null?(vl(t),m!==null?(et(t),Zv(t,m)):(et(t),Cf(t,c,null,i,a))):m?m!==e.memoizedState?(vl(t),et(t),Zv(t,m)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&vl(t),et(t),Cf(t,c,e,i,a)),null;case 27:if(Se(t),a=de.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&vl(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return et(t),null}e=ae.current,po(t)?Eh(t):(e=ey(c,i,a),t.stateNode=e,vl(t))}return et(t),null;case 5:if(Se(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&vl(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return et(t),null}if(m=ae.current,po(t))Eh(t);else{var b=Ss(de.current);switch(m){case 1:m=b.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:m=b.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":m=b.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":m=b.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":m=b.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof i.is=="string"?b.createElement("select",{is:i.is}):b.createElement("select"),i.multiple?m.multiple=!0:i.size&&(m.size=i.size);break;default:m=typeof i.is=="string"?b.createElement(c,{is:i.is}):b.createElement(c)}}m[Tt]=t,m[Ht]=i;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)m.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=m;e:switch(_t(m,c,i),c){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&vl(t)}}return et(t),Cf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&vl(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=de.current,po(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,c=Rt,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||Vg(e.nodeValue,a)),e||Gl(t,!0)}else e=Ss(e).createTextNode(i),e[Tt]=t,t.stateNode=e}return et(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=po(t),a!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Tt]=t}else Aa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else a=ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(an(t),t):(an(t),null);if((t.flags&128)!==0)throw Error(o(558))}return et(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=po(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[Tt]=t}else Aa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),c=!1}else c=ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(an(t),t):(an(t),null)}return an(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool),m=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(m=i.memoizedState.cachePool.pool),m!==c&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),os(t,t.updateQueue),et(t),null);case 4:return he(),e===null&&Xf(t.stateNode.containerInfo),et(t),null;case 10:return dl(t.type),et(t),null;case 19:if(Y(st),i=t.memoizedState,i===null)return et(t),null;if(c=(t.flags&128)!==0,m=i.rendering,m===null)if(c)Nr(i,!1);else{if(rt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=Ii(e),m!==null){for(t.flags|=128,Nr(i,!1),e=m.updateQueue,t.updateQueue=e,os(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)xh(a,e),a=a.sibling;return J(st,st.current&1|2),ke&&ul(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&je()>us&&(t.flags|=128,c=!0,Nr(i,!1),t.lanes=4194304)}else{if(!c)if(e=Ii(m),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,os(t,e),Nr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!m.alternate&&!ke)return et(t),null}else 2*je()-i.renderingStartTime>us&&a!==536870912&&(t.flags|=128,c=!0,Nr(i,!1),t.lanes=4194304);i.isBackwards?(m.sibling=t.child,t.child=m):(e=i.last,e!==null?e.sibling=m:t.child=m,i.last=m)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=je(),e.sibling=null,a=st.current,J(st,c?a&1|2:a&1),ke&&ul(t,i.treeForkCount),e):(et(t),null);case 22:case 23:return an(t),Xu(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),a=t.updateQueue,a!==null&&os(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Y(Ma),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),dl(ft),et(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function uw(e,t){switch(Mu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dl(ft),he(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Se(t),null;case 31:if(t.memoizedState!==null){if(an(t),t.alternate===null)throw Error(o(340));Aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(an(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(st),null;case 4:return he(),null;case 10:return dl(t.type),null;case 22:case 23:return an(t),Xu(),e!==null&&Y(Ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return dl(ft),null;case 25:return null;default:return null}}function Qv(e,t){switch(Mu(t),t.tag){case 3:dl(ft),he();break;case 26:case 27:case 5:Se(t);break;case 4:he();break;case 31:t.memoizedState!==null&&an(t);break;case 13:an(t);break;case 19:Y(st);break;case 10:dl(t.type);break;case 22:case 23:an(t),Xu(),e!==null&&Y(Ma);break;case 24:dl(ft)}}function Mr(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){i=void 0;var m=a.create,b=a.inst;i=m(),b.destroy=i}a=a.next}while(a!==c)}}catch(R){Xe(t,t.return,R)}}function Jl(e,t,a){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var m=c.next;i=m;do{if((i.tag&e)===e){var b=i.inst,R=b.destroy;if(R!==void 0){b.destroy=void 0,c=t;var z=a,X=R;try{X()}catch(W){Xe(c,z,W)}}}i=i.next}while(i!==m)}}catch(W){Xe(t,t.return,W)}}function Kv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Uh(t,a)}catch(i){Xe(e,e.return,i)}}}function Fv(e,t,a){a.props=$a(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Xe(e,t,i)}}function Or(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(c){Xe(e,t,c)}}function Zn(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(c){Xe(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){Xe(e,t,c)}else a.current=null}function Jv(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(c){Xe(e,e.return,c)}}function Tf(e,t,a){try{var i=e.stateNode;jw(i,e.type,a,t),i[Ht]=t}catch(c){Xe(e,e.return,c)}}function Pv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&aa(e.type)||e.tag===4}function Rf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&aa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ef(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=il));else if(i!==4&&(i===27&&aa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Ef(e,t,a),e=e.sibling;e!==null;)Ef(e,t,a),e=e.sibling}function rs(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&aa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(rs(e,t,a),e=e.sibling;e!==null;)rs(e,t,a),e=e.sibling}function Wv(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);_t(t,i,a),t[Tt]=e,t[Ht]=a}catch(m){Xe(e,e.return,m)}}var gl=!1,pt=!1,Af=!1,eg=typeof WeakSet=="function"?WeakSet:Set,wt=null;function fw(e,t){if(e=e.containerInfo,Qf=As,e=dh(e),bu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var c=i.anchorOffset,m=i.focusNode;i=i.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var b=0,R=-1,z=-1,X=0,W=0,re=e,I=null;t:for(;;){for(var Q;re!==a||c!==0&&re.nodeType!==3||(R=b+c),re!==m||i!==0&&re.nodeType!==3||(z=b+i),re.nodeType===3&&(b+=re.nodeValue.length),(Q=re.firstChild)!==null;)I=re,re=Q;for(;;){if(re===e)break t;if(I===a&&++X===c&&(R=b),I===m&&++W===i&&(z=b),(Q=re.nextSibling)!==null)break;re=I,I=re.parentNode}re=Q}a=R===-1||z===-1?null:{start:R,end:z}}else a=null}a=a||{start:0,end:0}}else a=null;for(Kf={focusedElem:e,selectionRange:a},As=!1,wt=t;wt!==null;)if(t=wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,wt=e;else for(;wt!==null;){switch(t=wt,m=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)c=e[a],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,a=t,c=m.memoizedProps,m=m.memoizedState,i=a.stateNode;try{var ve=$a(a.type,c);e=i.getSnapshotBeforeUpdate(ve,m),i.__reactInternalSnapshotBeforeUpdate=e}catch(we){Xe(a,a.return,we)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Pf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Pf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,wt=e;break}wt=t.return}}function tg(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:bl(e,a),i&4&&Mr(5,a);break;case 1:if(bl(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){Xe(a,a.return,b)}else{var c=$a(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Xe(a,a.return,b)}}i&64&&Kv(a),i&512&&Or(a,a.return);break;case 3:if(bl(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Uh(e,t)}catch(b){Xe(a,a.return,b)}}break;case 27:t===null&&i&4&&Wv(a);case 26:case 5:bl(e,a),t===null&&i&4&&Jv(a),i&512&&Or(a,a.return);break;case 12:bl(e,a);break;case 31:bl(e,a),i&4&&ag(e,a);break;case 13:bl(e,a),i&4&&og(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Sw.bind(null,a),Hw(e,a))));break;case 22:if(i=a.memoizedState!==null||gl,!i){t=t!==null&&t.memoizedState!==null||pt,c=gl;var m=pt;gl=i,(pt=t)&&!m?Sl(e,a,(a.subtreeFlags&8772)!==0):bl(e,a),gl=c,pt=m}break;case 30:break;default:bl(e,a)}}function ng(e){var t=e.alternate;t!==null&&(e.alternate=null,ng(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&nu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var lt=null,qt=!1;function yl(e,t,a){for(a=a.child;a!==null;)lg(e,t,a),a=a.sibling}function lg(e,t,a){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(Wt,a)}catch{}switch(a.tag){case 26:pt||Zn(a,t),yl(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:pt||Zn(a,t);var i=lt,c=qt;aa(a.type)&&(lt=a.stateNode,qt=!1),yl(e,t,a),Hr(a.stateNode),lt=i,qt=c;break;case 5:pt||Zn(a,t);case 6:if(i=lt,c=qt,lt=null,yl(e,t,a),lt=i,qt=c,lt!==null)if(qt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(a.stateNode)}catch(m){Xe(a,t,m)}else try{lt.removeChild(a.stateNode)}catch(m){Xe(a,t,m)}break;case 18:lt!==null&&(qt?(e=lt,Kg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),$o(e)):Kg(lt,a.stateNode));break;case 4:i=lt,c=qt,lt=a.stateNode.containerInfo,qt=!0,yl(e,t,a),lt=i,qt=c;break;case 0:case 11:case 14:case 15:Jl(2,a,t),pt||Jl(4,a,t),yl(e,t,a);break;case 1:pt||(Zn(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&Fv(a,t,i)),yl(e,t,a);break;case 21:yl(e,t,a);break;case 22:pt=(i=pt)||a.memoizedState!==null,yl(e,t,a),pt=i;break;default:yl(e,t,a)}}function ag(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{$o(e)}catch(a){Xe(t,t.return,a)}}}function og(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{$o(e)}catch(a){Xe(t,t.return,a)}}function dw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new eg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new eg),t;default:throw Error(o(435,e.tag))}}function is(e,t){var a=dw(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var c=xw.bind(null,e,i);i.then(c,c)}})}function Vt(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var c=a[i],m=e,b=t,R=b;e:for(;R!==null;){switch(R.tag){case 27:if(aa(R.type)){lt=R.stateNode,qt=!1;break e}break;case 5:lt=R.stateNode,qt=!1;break e;case 3:case 4:lt=R.stateNode.containerInfo,qt=!0;break e}R=R.return}if(lt===null)throw Error(o(160));lg(m,b,c),lt=null,qt=!1,m=c.alternate,m!==null&&(m.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)rg(t,e),t=t.sibling}var _n=null;function rg(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Vt(t,e),Gt(e),i&4&&(Jl(3,e,e.return),Mr(3,e),Jl(5,e,e.return));break;case 1:Vt(t,e),Gt(e),i&512&&(pt||a===null||Zn(a,a.return)),i&64&&gl&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var c=_n;if(Vt(t,e),Gt(e),i&512&&(pt||a===null||Zn(a,a.return)),i&4){var m=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,c=c.ownerDocument||c;t:switch(i){case"title":m=c.getElementsByTagName("title")[0],(!m||m[ar]||m[Tt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=c.createElement(i),c.head.insertBefore(m,c.querySelector("head > title"))),_t(m,i,a),m[Tt]=e,xt(m),i=m;break e;case"link":var b=ry("link","href",c).get(i+(a.href||""));if(b){for(var R=0;R<b.length;R++)if(m=b[R],m.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&m.getAttribute("rel")===(a.rel==null?null:a.rel)&&m.getAttribute("title")===(a.title==null?null:a.title)&&m.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(R,1);break t}}m=c.createElement(i),_t(m,i,a),c.head.appendChild(m);break;case"meta":if(b=ry("meta","content",c).get(i+(a.content||""))){for(R=0;R<b.length;R++)if(m=b[R],m.getAttribute("content")===(a.content==null?null:""+a.content)&&m.getAttribute("name")===(a.name==null?null:a.name)&&m.getAttribute("property")===(a.property==null?null:a.property)&&m.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&m.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(R,1);break t}}m=c.createElement(i),_t(m,i,a),c.head.appendChild(m);break;default:throw Error(o(468,i))}m[Tt]=e,xt(m),i=m}e.stateNode=i}else iy(c,e.type,e.stateNode);else e.stateNode=oy(c,i,e.memoizedProps);else m!==i?(m===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):m.count--,i===null?iy(c,e.type,e.stateNode):oy(c,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Tf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Vt(t,e),Gt(e),i&512&&(pt||a===null||Zn(a,a.return)),a!==null&&i&4&&Tf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Vt(t,e),Gt(e),i&512&&(pt||a===null||Zn(a,a.return)),e.flags&32){c=e.stateNode;try{lo(c,"")}catch(ve){Xe(e,e.return,ve)}}i&4&&e.stateNode!=null&&(c=e.memoizedProps,Tf(e,c,a!==null?a.memoizedProps:c)),i&1024&&(Af=!0);break;case 6:if(Vt(t,e),Gt(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(ve){Xe(e,e.return,ve)}}break;case 3:if(Cs=null,c=_n,_n=xs(t.containerInfo),Vt(t,e),_n=c,Gt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{$o(t.containerInfo)}catch(ve){Xe(e,e.return,ve)}Af&&(Af=!1,ig(e));break;case 4:i=_n,_n=xs(e.stateNode.containerInfo),Vt(t,e),Gt(e),_n=i;break;case 12:Vt(t,e),Gt(e);break;case 31:Vt(t,e),Gt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,is(e,i)));break;case 13:Vt(t,e),Gt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(cs=je()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,is(e,i)));break;case 22:c=e.memoizedState!==null;var z=a!==null&&a.memoizedState!==null,X=gl,W=pt;if(gl=X||c,pt=W||z,Vt(t,e),pt=W,gl=X,Gt(e),i&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(a===null||z||gl||pt||La(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){z=a=t;try{if(m=z.stateNode,c)b=m.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{R=z.stateNode;var re=z.memoizedProps.style,I=re!=null&&re.hasOwnProperty("display")?re.display:null;R.style.display=I==null||typeof I=="boolean"?"":(""+I).trim()}}catch(ve){Xe(z,z.return,ve)}}}else if(t.tag===6){if(a===null){z=t;try{z.stateNode.nodeValue=c?"":z.memoizedProps}catch(ve){Xe(z,z.return,ve)}}}else if(t.tag===18){if(a===null){z=t;try{var Q=z.stateNode;c?Fg(Q,!0):Fg(z.stateNode,!1)}catch(ve){Xe(z,z.return,ve)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,is(e,a))));break;case 19:Vt(t,e),Gt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,is(e,i)));break;case 30:break;case 21:break;default:Vt(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(Pv(i)){a=i;break}i=i.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var c=a.stateNode,m=Rf(e);rs(e,m,c);break;case 5:var b=a.stateNode;a.flags&32&&(lo(b,""),a.flags&=-33);var R=Rf(e);rs(e,R,b);break;case 3:case 4:var z=a.stateNode.containerInfo,X=Rf(e);Ef(e,X,z);break;default:throw Error(o(161))}}catch(W){Xe(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ig(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ig(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tg(e,t.alternate,t),t=t.sibling}function La(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Jl(4,t,t.return),La(t);break;case 1:Zn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Fv(t,t.return,a),La(t);break;case 27:Hr(t.stateNode);case 26:case 5:Zn(t,t.return),La(t);break;case 22:t.memoizedState===null&&La(t);break;case 30:La(t);break;default:La(t)}e=e.sibling}}function Sl(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,c=e,m=t,b=m.flags;switch(m.tag){case 0:case 11:case 15:Sl(c,m,a),Mr(4,m);break;case 1:if(Sl(c,m,a),i=m,c=i.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(X){Xe(i,i.return,X)}if(i=m,c=i.updateQueue,c!==null){var R=i.stateNode;try{var z=c.shared.hiddenCallbacks;if(z!==null)for(c.shared.hiddenCallbacks=null,c=0;c<z.length;c++)kh(z[c],R)}catch(X){Xe(i,i.return,X)}}a&&b&64&&Kv(m),Or(m,m.return);break;case 27:Wv(m);case 26:case 5:Sl(c,m,a),a&&i===null&&b&4&&Jv(m),Or(m,m.return);break;case 12:Sl(c,m,a);break;case 31:Sl(c,m,a),a&&b&4&&ag(c,m);break;case 13:Sl(c,m,a),a&&b&4&&og(c,m);break;case 22:m.memoizedState===null&&Sl(c,m,a),Or(m,m.return);break;case 30:break;default:Sl(c,m,a)}t=t.sibling}}function _f(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&gr(a))}function Nf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gr(e))}function Nn(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sg(e,t,a,i),t=t.sibling}function sg(e,t,a,i){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Nn(e,t,a,i),c&2048&&Mr(9,t);break;case 1:Nn(e,t,a,i);break;case 3:Nn(e,t,a,i),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gr(e)));break;case 12:if(c&2048){Nn(e,t,a,i),e=t.stateNode;try{var m=t.memoizedProps,b=m.id,R=m.onPostCommit;typeof R=="function"&&R(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(z){Xe(t,t.return,z)}}else Nn(e,t,a,i);break;case 31:Nn(e,t,a,i);break;case 13:Nn(e,t,a,i);break;case 23:break;case 22:m=t.stateNode,b=t.alternate,t.memoizedState!==null?m._visibility&2?Nn(e,t,a,i):jr(e,t):m._visibility&2?Nn(e,t,a,i):(m._visibility|=2,To(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),c&2048&&_f(b,t);break;case 24:Nn(e,t,a,i),c&2048&&Nf(t.alternate,t);break;default:Nn(e,t,a,i)}}function To(e,t,a,i,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var m=e,b=t,R=a,z=i,X=b.flags;switch(b.tag){case 0:case 11:case 15:To(m,b,R,z,c),Mr(8,b);break;case 23:break;case 22:var W=b.stateNode;b.memoizedState!==null?W._visibility&2?To(m,b,R,z,c):jr(m,b):(W._visibility|=2,To(m,b,R,z,c)),c&&X&2048&&_f(b.alternate,b);break;case 24:To(m,b,R,z,c),c&&X&2048&&Nf(b.alternate,b);break;default:To(m,b,R,z,c)}t=t.sibling}}function jr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,c=i.flags;switch(i.tag){case 22:jr(a,i),c&2048&&_f(i.alternate,i);break;case 24:jr(a,i),c&2048&&Nf(i.alternate,i);break;default:jr(a,i)}t=t.sibling}}var zr=8192;function Ro(e,t,a){if(e.subtreeFlags&zr)for(e=e.child;e!==null;)cg(e,t,a),e=e.sibling}function cg(e,t,a){switch(e.tag){case 26:Ro(e,t,a),e.flags&zr&&e.memoizedState!==null&&Pw(a,_n,e.memoizedState,e.memoizedProps);break;case 5:Ro(e,t,a);break;case 3:case 4:var i=_n;_n=xs(e.stateNode.containerInfo),Ro(e,t,a),_n=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=zr,zr=16777216,Ro(e,t,a),zr=i):Ro(e,t,a));break;default:Ro(e,t,a)}}function ug(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Dr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];wt=i,dg(i,e)}ug(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fg(e),e=e.sibling}function fg(e){switch(e.tag){case 0:case 11:case 15:Dr(e),e.flags&2048&&Jl(9,e,e.return);break;case 3:Dr(e);break;case 12:Dr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ss(e)):Dr(e);break;default:Dr(e)}}function ss(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];wt=i,dg(i,e)}ug(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jl(8,t,t.return),ss(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ss(t));break;default:ss(t)}e=e.sibling}}function dg(e,t){for(;wt!==null;){var a=wt;switch(a.tag){case 0:case 11:case 15:Jl(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:gr(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,wt=i;else e:for(a=e;wt!==null;){i=wt;var c=i.sibling,m=i.return;if(ng(i),i===a){wt=null;break e}if(c!==null){c.return=m,wt=c;break e}wt=m}}}var mw={getCacheForType:function(e){var t=Et(ft),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Et(ft).controller.signal}},pw=typeof WeakMap=="function"?WeakMap:Map,qe=0,Fe=null,ze=null,Le=0,Ge=0,on=null,Pl=!1,Eo=!1,Mf=!1,xl=0,rt=0,Wl=0,Ba=0,Of=0,rn=0,Ao=0,$r=null,Xt=null,jf=!1,cs=0,mg=0,us=1/0,fs=null,ea=null,bt=0,ta=null,_o=null,wl=0,zf=0,Df=null,pg=null,Lr=0,$f=null;function sn(){return(qe&2)!==0&&Le!==0?Le&-Le:O.T!==null?Yf():Mp()}function hg(){if(rn===0)if((Le&536870912)===0||ke){var e=Fa;Fa<<=1,(Fa&3932160)===0&&(Fa=262144),rn=e}else rn=536870912;return e=ln.current,e!==null&&(e.flags|=32),rn}function It(e,t,a){(e===Fe&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(No(e,0),na(e,Le,rn,!1)),lr(e,a),((qe&2)===0||e!==Fe)&&(e===Fe&&((qe&2)===0&&(Ba|=a),rt===4&&na(e,Le,rn,!1)),Qn(e))}function vg(e,t,a){if((qe&6)!==0)throw Error(o(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||nr(e,t),c=i?gw(e,t):Bf(e,t,!0),m=i;do{if(c===0){Eo&&!i&&na(e,t,0,!1);break}else{if(a=e.current.alternate,m&&!hw(a)){c=Bf(e,t,!1),m=!1;continue}if(c===2){if(m=t,e.errorRecoveryDisabledLanes&m)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var R=e;c=$r;var z=R.current.memoizedState.isDehydrated;if(z&&(No(R,b).flags|=256),b=Bf(R,b,!1),b!==2){if(Mf&&!z){R.errorRecoveryDisabledLanes|=m,Ba|=m,c=4;break e}m=Xt,Xt=c,m!==null&&(Xt===null?Xt=m:Xt.push.apply(Xt,m))}c=b}if(m=!1,c!==2)continue}}if(c===1){No(e,0),na(e,t,0,!0);break}e:{switch(i=e,m=c,m){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:na(i,t,rn,!Pl);break e;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=cs+300-je(),10<c)){if(na(i,t,rn,!Pl),Ul(i,0,!0)!==0)break e;wl=t,i.timeoutHandle=Zg(gg.bind(null,i,a,Xt,fs,jf,t,rn,Ba,Ao,Pl,m,"Throttled",-0,0),c);break e}gg(i,a,Xt,fs,jf,t,rn,Ba,Ao,Pl,m,null,-0,0)}}break}while(!0);Qn(e)}function gg(e,t,a,i,c,m,b,R,z,X,W,re,I,Q){if(e.timeoutHandle=-1,re=t.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:il},cg(t,m,re);var ve=(m&62914560)===m?cs-je():(m&4194048)===m?mg-je():0;if(ve=Ww(re,ve),ve!==null){wl=m,e.cancelPendingCommit=ve(Rg.bind(null,e,t,m,a,i,c,b,R,z,W,re,null,I,Q)),na(e,m,b,!X);return}}Rg(e,t,m,a,i,c,b,R,z)}function hw(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var c=a[i],m=c.getSnapshot;c=c.value;try{if(!tn(m(),c))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function na(e,t,a,i){t&=~Of,t&=~Ba,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var c=t;0<c;){var m=31-Ee(c),b=1<<m;i[m]=-1,c&=~b}a!==0&&Ap(e,a,t)}function ds(){return(qe&6)===0?(Br(0),!1):!0}function Lf(){if(ze!==null){if(Ge===0)var e=ze.return;else e=ze,fl=_a=null,Ju(e),bo=null,br=0,e=ze;for(;e!==null;)Qv(e.alternate,e),e=e.return;ze=null}}function No(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,$w(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),wl=0,Lf(),Fe=e,ze=a=cl(e.current,null),Le=t,Ge=0,on=null,Pl=!1,Eo=nr(e,t),Mf=!1,Ao=rn=Of=Ba=Wl=rt=0,Xt=$r=null,jf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var c=31-Ee(i),m=1<<c;t|=e[c],i&=~m}return xl=t,zi(),a}function yg(e,t){Ae=null,O.H=Ar,t===yo||t===Yi?(t=Dh(),Ge=3):t===Uu?(t=Dh(),Ge=4):Ge=t===pf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,on=t,ze===null&&(rt=1,ts(e,vn(t,e.current)))}function bg(){var e=ln.current;return e===null?!0:(Le&4194048)===Le?Sn===null:(Le&62914560)===Le||(Le&536870912)!==0?e===Sn:!1}function Sg(){var e=O.H;return O.H=Ar,e===null?Ar:e}function xg(){var e=O.A;return O.A=mw,e}function ms(){rt=4,Pl||(Le&4194048)!==Le&&ln.current!==null||(Eo=!0),(Wl&134217727)===0&&(Ba&134217727)===0||Fe===null||na(Fe,Le,rn,!1)}function Bf(e,t,a){var i=qe;qe|=2;var c=Sg(),m=xg();(Fe!==e||Le!==t)&&(fs=null,No(e,t)),t=!1;var b=rt;e:do try{if(Ge!==0&&ze!==null){var R=ze,z=on;switch(Ge){case 8:Lf(),b=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(t=!0);var X=Ge;if(Ge=0,on=null,Mo(e,R,z,X),a&&Eo){b=0;break e}break;default:X=Ge,Ge=0,on=null,Mo(e,R,z,X)}}vw(),b=rt;break}catch(W){yg(e,W)}while(!0);return t&&e.shellSuspendCounter++,fl=_a=null,qe=i,O.H=c,O.A=m,ze===null&&(Fe=null,Le=0,zi()),b}function vw(){for(;ze!==null;)wg(ze)}function gw(e,t){var a=qe;qe|=2;var i=Sg(),c=xg();Fe!==e||Le!==t?(fs=null,us=je()+500,No(e,t)):Eo=nr(e,t);e:do try{if(Ge!==0&&ze!==null){t=ze;var m=on;t:switch(Ge){case 1:Ge=0,on=null,Mo(e,t,m,1);break;case 2:case 9:if(jh(m)){Ge=0,on=null,Cg(t);break}t=function(){Ge!==2&&Ge!==9||Fe!==e||(Ge=7),Qn(e)},m.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:jh(m)?(Ge=0,on=null,Cg(t)):(Ge=0,on=null,Mo(e,t,m,7));break;case 5:var b=null;switch(ze.tag){case 26:b=ze.memoizedState;case 5:case 27:var R=ze;if(b?sy(b):R.stateNode.complete){Ge=0,on=null;var z=R.sibling;if(z!==null)ze=z;else{var X=R.return;X!==null?(ze=X,ps(X)):ze=null}break t}}Ge=0,on=null,Mo(e,t,m,5);break;case 6:Ge=0,on=null,Mo(e,t,m,6);break;case 8:Lf(),rt=6;break e;default:throw Error(o(462))}}yw();break}catch(W){yg(e,W)}while(!0);return fl=_a=null,O.H=i,O.A=c,qe=a,ze!==null?0:(Fe=null,Le=0,zi(),rt)}function yw(){for(;ze!==null&&!zt();)wg(ze)}function wg(e){var t=Iv(e.alternate,e,xl);e.memoizedProps=e.pendingProps,t===null?ps(e):ze=t}function Cg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Hv(a,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=Hv(a,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:Ju(t);default:Qv(a,t),t=ze=xh(t,xl),t=Iv(a,t,xl)}e.memoizedProps=e.pendingProps,t===null?ps(e):ze=t}function Mo(e,t,a,i){fl=_a=null,Ju(t),bo=null,br=0;var c=t.return;try{if(rw(e,c,t,a,Le)){rt=1,ts(e,vn(a,e.current)),ze=null;return}}catch(m){if(c!==null)throw ze=c,m;rt=1,ts(e,vn(a,e.current)),ze=null;return}t.flags&32768?(ke||i===1?e=!0:Eo||(Le&536870912)!==0?e=!1:(Pl=e=!0,(i===2||i===9||i===3||i===6)&&(i=ln.current,i!==null&&i.tag===13&&(i.flags|=16384))),Tg(t,e)):ps(t)}function ps(e){var t=e;do{if((t.flags&32768)!==0){Tg(t,Pl);return}e=t.return;var a=cw(t.alternate,t,xl);if(a!==null){ze=a;return}if(t=t.sibling,t!==null){ze=t;return}ze=t=e}while(t!==null);rt===0&&(rt=5)}function Tg(e,t){do{var a=uw(e.alternate,e);if(a!==null){a.flags&=32767,ze=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ze=e;return}ze=e=a}while(e!==null);rt=6,ze=null}function Rg(e,t,a,i,c,m,b,R,z){e.cancelPendingCommit=null;do hs();while(bt!==0);if((qe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(m=t.lanes|t.childLanes,m|=Tu,JS(e,a,m,b,R,z),e===Fe&&(ze=Fe=null,Le=0),_o=t,ta=e,wl=a,zf=m,Df=c,pg=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ww(Ye,function(){return Mg(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=O.T,O.T=null,c=B.p,B.p=2,b=qe,qe|=4;try{fw(e,t,a)}finally{qe=b,B.p=c,O.T=i}}bt=1,Eg(),Ag(),_g()}}function Eg(){if(bt===1){bt=0;var e=ta,t=_o,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var i=B.p;B.p=2;var c=qe;qe|=4;try{rg(t,e);var m=Kf,b=dh(e.containerInfo),R=m.focusedElem,z=m.selectionRange;if(b!==R&&R&&R.ownerDocument&&fh(R.ownerDocument.documentElement,R)){if(z!==null&&bu(R)){var X=z.start,W=z.end;if(W===void 0&&(W=X),"selectionStart"in R)R.selectionStart=X,R.selectionEnd=Math.min(W,R.value.length);else{var re=R.ownerDocument||document,I=re&&re.defaultView||window;if(I.getSelection){var Q=I.getSelection(),ve=R.textContent.length,we=Math.min(z.start,ve),Ke=z.end===void 0?we:Math.min(z.end,ve);!Q.extend&&we>Ke&&(b=Ke,Ke=we,we=b);var q=uh(R,we),$=uh(R,Ke);if(q&&$&&(Q.rangeCount!==1||Q.anchorNode!==q.node||Q.anchorOffset!==q.offset||Q.focusNode!==$.node||Q.focusOffset!==$.offset)){var G=re.createRange();G.setStart(q.node,q.offset),Q.removeAllRanges(),we>Ke?(Q.addRange(G),Q.extend($.node,$.offset)):(G.setEnd($.node,$.offset),Q.addRange(G))}}}}for(re=[],Q=R;Q=Q.parentNode;)Q.nodeType===1&&re.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<re.length;R++){var ne=re[R];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}As=!!Qf,Kf=Qf=null}finally{qe=c,B.p=i,O.T=a}}e.current=t,bt=2}}function Ag(){if(bt===2){bt=0;var e=ta,t=_o,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var i=B.p;B.p=2;var c=qe;qe|=4;try{tg(e,t.alternate,t)}finally{qe=c,B.p=i,O.T=a}}bt=3}}function _g(){if(bt===4||bt===3){bt=0,Pt();var e=ta,t=_o,a=wl,i=pg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?bt=5:(bt=0,_o=ta=null,Ng(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(ea=null),eu(a),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(Wt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=O.T,c=B.p,B.p=2,O.T=null;try{for(var m=e.onRecoverableError,b=0;b<i.length;b++){var R=i[b];m(R.value,{componentStack:R.stack})}}finally{O.T=t,B.p=c}}(wl&3)!==0&&hs(),Qn(e),c=e.pendingLanes,(a&261930)!==0&&(c&42)!==0?e===$f?Lr++:(Lr=0,$f=e):Lr=0,Br(0)}}function Ng(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,gr(t)))}function hs(){return Eg(),Ag(),_g(),Mg()}function Mg(){if(bt!==5)return!1;var e=ta,t=zf;zf=0;var a=eu(wl),i=O.T,c=B.p;try{B.p=32>a?32:a,O.T=null,a=Df,Df=null;var m=ta,b=wl;if(bt=0,_o=ta=null,wl=0,(qe&6)!==0)throw Error(o(331));var R=qe;if(qe|=4,fg(m.current),sg(m,m.current,b,a),qe=R,Br(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Wt,m)}catch{}return!0}finally{B.p=c,O.T=i,Ng(e,t)}}function Og(e,t,a){t=vn(a,t),t=mf(e.stateNode,t,2),e=Ql(e,t,2),e!==null&&(lr(e,2),Qn(e))}function Xe(e,t,a){if(e.tag===3)Og(e,e,a);else for(;t!==null;){if(t.tag===3){Og(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ea===null||!ea.has(i))){e=vn(a,e),a=jv(2),i=Ql(t,a,2),i!==null&&(zv(a,i,t,e),lr(i,2),Qn(i));break}}t=t.return}}function kf(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new pw;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(a)||(Mf=!0,c.add(a),e=bw.bind(null,e,t,a),t.then(e,e))}function bw(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Fe===e&&(Le&a)===a&&(rt===4||rt===3&&(Le&62914560)===Le&&300>je()-cs?(qe&2)===0&&No(e,0):Of|=a,Ao===Le&&(Ao=0)),Qn(e)}function jg(e,t){t===0&&(t=Ep()),e=Ra(e,t),e!==null&&(lr(e,t),Qn(e))}function Sw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),jg(e,a)}function xw(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),jg(e,a)}function ww(e,t){return fn(e,t)}var vs=null,Oo=null,Uf=!1,gs=!1,Hf=!1,la=0;function Qn(e){e!==Oo&&e.next===null&&(Oo===null?vs=Oo=e:Oo=Oo.next=e),gs=!0,Uf||(Uf=!0,Tw())}function Br(e,t){if(!Hf&&gs){Hf=!0;do for(var a=!1,i=vs;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var m=0;else{var b=i.suspendedLanes,R=i.pingedLanes;m=(1<<31-Ee(42|e)+1)-1,m&=c&~(b&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,Lg(i,m))}else m=Le,m=Ul(i,i===Fe?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(m&3)===0||nr(i,m)||(a=!0,Lg(i,m));i=i.next}while(a);Hf=!1}}function Cw(){zg()}function zg(){gs=Uf=!1;var e=0;la!==0&&Dw()&&(e=la);for(var t=je(),a=null,i=vs;i!==null;){var c=i.next,m=Dg(i,t);m===0?(i.next=null,a===null?vs=c:a.next=c,c===null&&(Oo=a)):(a=i,(e!==0||(m&3)!==0)&&(gs=!0)),i=c}bt!==0&&bt!==5||Br(e),la!==0&&(la=0)}function Dg(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var b=31-Ee(m),R=1<<b,z=c[b];z===-1?((R&a)===0||(R&i)!==0)&&(c[b]=FS(R,t)):z<=t&&(e.expiredLanes|=R),m&=~R}if(t=Fe,a=Le,a=Ul(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&dn(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nr(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&dn(i),eu(a)){case 2:case 8:a=Sa;break;case 32:a=Ye;break;case 268435456:a=ol;break;default:a=Ye}return i=$g.bind(null,e),a=fn(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&dn(i),e.callbackPriority=2,e.callbackNode=null,2}function $g(e,t){if(bt!==0&&bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(hs()&&e.callbackNode!==a)return null;var i=Le;return i=Ul(e,e===Fe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(vg(e,i,t),Dg(e,je()),e.callbackNode!=null&&e.callbackNode===a?$g.bind(null,e):null)}function Lg(e,t){if(hs())return null;vg(e,t,!0)}function Tw(){Lw(function(){(qe&6)!==0?fn(yt,Cw):zg()})}function Yf(){if(la===0){var e=vo;e===0&&(e=Ka,Ka<<=1,(Ka&261888)===0&&(Ka=256)),la=e}return la}function Bg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ri(""+e)}function kg(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Rw(e,t,a,i,c){if(t==="submit"&&a&&a.stateNode===c){var m=Bg((c[Ht]||null).action),b=i.submitter;b&&(t=(t=b[Ht]||null)?Bg(t.formAction):b.getAttribute("formAction"),t!==null&&(m=t,b=null));var R=new Ni("action","action",null,i,c);e.push({event:R,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(la!==0){var z=b?kg(c,b):new FormData(c);rf(a,{pending:!0,data:z,method:c.method,action:m},null,z)}}else typeof m=="function"&&(R.preventDefault(),z=b?kg(c,b):new FormData(c),rf(a,{pending:!0,data:z,method:c.method,action:m},m,z))},currentTarget:c}]})}}for(var qf=0;qf<Cu.length;qf++){var Vf=Cu[qf],Ew=Vf.toLowerCase(),Aw=Vf[0].toUpperCase()+Vf.slice(1);An(Ew,"on"+Aw)}An(hh,"onAnimationEnd"),An(vh,"onAnimationIteration"),An(gh,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(Vx,"onTransitionRun"),An(Gx,"onTransitionStart"),An(Xx,"onTransitionCancel"),An(yh,"onTransitionEnd"),to("onMouseEnter",["mouseout","mouseover"]),to("onMouseLeave",["mouseout","mouseover"]),to("onPointerEnter",["pointerout","pointerover"]),to("onPointerLeave",["pointerout","pointerover"]),xa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xa("onBeforeInput",["compositionend","keypress","textInput","paste"]),xa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="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(" "),_w=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kr));function Ug(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],c=i.event;i=i.listeners;e:{var m=void 0;if(t)for(var b=i.length-1;0<=b;b--){var R=i[b],z=R.instance,X=R.currentTarget;if(R=R.listener,z!==m&&c.isPropagationStopped())break e;m=R,c.currentTarget=X;try{m(c)}catch(W){ji(W)}c.currentTarget=null,m=z}else for(b=0;b<i.length;b++){if(R=i[b],z=R.instance,X=R.currentTarget,R=R.listener,z!==m&&c.isPropagationStopped())break e;m=R,c.currentTarget=X;try{m(c)}catch(W){ji(W)}c.currentTarget=null,m=z}}}}function De(e,t){var a=t[tu];a===void 0&&(a=t[tu]=new Set);var i=e+"__bubble";a.has(i)||(Hg(t,e,2,!1),a.add(i))}function Gf(e,t,a){var i=0;t&&(i|=4),Hg(a,e,i,t)}var ys="_reactListening"+Math.random().toString(36).slice(2);function Xf(e){if(!e[ys]){e[ys]=!0,zp.forEach(function(a){a!=="selectionchange"&&(_w.has(a)||Gf(a,!1,e),Gf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ys]||(t[ys]=!0,Gf("selectionchange",!1,t))}}function Hg(e,t,a,i){switch(hy(t)){case 2:var c=n2;break;case 8:c=l2;break;default:c=rd}a=c.bind(null,t,a,e),c=void 0,!uu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?c!==void 0?e.addEventListener(t,a,{capture:!0,passive:c}):e.addEventListener(t,a,!0):c!==void 0?e.addEventListener(t,a,{passive:c}):e.addEventListener(t,a,!1)}function If(e,t,a,i,c){var m=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var b=i.tag;if(b===3||b===4){var R=i.stateNode.containerInfo;if(R===c)break;if(b===4)for(b=i.return;b!==null;){var z=b.tag;if((z===3||z===4)&&b.stateNode.containerInfo===c)return;b=b.return}for(;R!==null;){if(b=Pa(R),b===null)return;if(z=b.tag,z===5||z===6||z===26||z===27){i=m=b;continue e}R=R.parentNode}}i=i.return}Xp(function(){var X=m,W=su(a),re=[];e:{var I=bh.get(e);if(I!==void 0){var Q=Ni,ve=e;switch(e){case"keypress":if(Ai(a)===0)break e;case"keydown":case"keyup":Q=xx;break;case"focusin":ve="focus",Q=pu;break;case"focusout":ve="blur",Q=pu;break;case"beforeblur":case"afterblur":Q=pu;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":Q=Qp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=cx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=Tx;break;case hh:case vh:case gh:Q=dx;break;case yh:Q=Ex;break;case"scroll":case"scrollend":Q=ix;break;case"wheel":Q=_x;break;case"copy":case"cut":case"paste":Q=px;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Fp;break;case"toggle":case"beforetoggle":Q=Mx}var we=(t&4)!==0,Ke=!we&&(e==="scroll"||e==="scrollend"),q=we?I!==null?I+"Capture":null:I;we=[];for(var $=X,G;$!==null;){var ne=$;if(G=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||G===null||q===null||(ne=rr($,q),ne!=null&&we.push(Ur($,ne,G))),Ke)break;$=$.return}0<we.length&&(I=new Q(I,ve,null,a,W),re.push({event:I,listeners:we}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",I&&a!==iu&&(ve=a.relatedTarget||a.fromElement)&&(Pa(ve)||ve[Ja]))break e;if((Q||I)&&(I=W.window===W?W:(I=W.ownerDocument)?I.defaultView||I.parentWindow:window,Q?(ve=a.relatedTarget||a.toElement,Q=X,ve=ve?Pa(ve):null,ve!==null&&(Ke=u(ve),we=ve.tag,ve!==Ke||we!==5&&we!==27&&we!==6)&&(ve=null)):(Q=null,ve=X),Q!==ve)){if(we=Qp,ne="onMouseLeave",q="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(we=Fp,ne="onPointerLeave",q="onPointerEnter",$="pointer"),Ke=Q==null?I:or(Q),G=ve==null?I:or(ve),I=new we(ne,$+"leave",Q,a,W),I.target=Ke,I.relatedTarget=G,ne=null,Pa(W)===X&&(we=new we(q,$+"enter",ve,a,W),we.target=G,we.relatedTarget=Ke,ne=we),Ke=ne,Q&&ve)t:{for(we=Nw,q=Q,$=ve,G=0,ne=q;ne;ne=we(ne))G++;ne=0;for(var xe=$;xe;xe=we(xe))ne++;for(;0<G-ne;)q=we(q),G--;for(;0<ne-G;)$=we($),ne--;for(;G--;){if(q===$||$!==null&&q===$.alternate){we=q;break t}q=we(q),$=we($)}we=null}else we=null;Q!==null&&Yg(re,I,Q,we,!1),ve!==null&&Ke!==null&&Yg(re,Ke,ve,we,!0)}}e:{if(I=X?or(X):window,Q=I.nodeName&&I.nodeName.toLowerCase(),Q==="select"||Q==="input"&&I.type==="file")var Ue=ah;else if(nh(I))if(oh)Ue=Hx;else{Ue=kx;var be=Bx}else Q=I.nodeName,!Q||Q.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?X&&ru(X.elementType)&&(Ue=ah):Ue=Ux;if(Ue&&(Ue=Ue(e,X))){lh(re,Ue,a,W);break e}be&&be(e,I,X),e==="focusout"&&X&&I.type==="number"&&X.memoizedProps.value!=null&&ou(I,"number",I.value)}switch(be=X?or(X):window,e){case"focusin":(nh(be)||be.contentEditable==="true")&&(io=be,Su=X,pr=null);break;case"focusout":pr=Su=io=null;break;case"mousedown":xu=!0;break;case"contextmenu":case"mouseup":case"dragend":xu=!1,mh(re,a,W);break;case"selectionchange":if(qx)break;case"keydown":case"keyup":mh(re,a,W)}var _e;if(vu)e:{switch(e){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else ro?eh(e,a)&&(Be="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Be="onCompositionStart");Be&&(Jp&&a.locale!=="ko"&&(ro||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&ro&&(_e=Ip()):(Yl=W,fu="value"in Yl?Yl.value:Yl.textContent,ro=!0)),be=bs(X,Be),0<be.length&&(Be=new Kp(Be,e,null,a,W),re.push({event:Be,listeners:be}),_e?Be.data=_e:(_e=th(a),_e!==null&&(Be.data=_e)))),(_e=jx?zx(e,a):Dx(e,a))&&(Be=bs(X,"onBeforeInput"),0<Be.length&&(be=new Kp("onBeforeInput","beforeinput",null,a,W),re.push({event:be,listeners:Be}),be.data=_e)),Rw(re,e,X,a,W)}Ug(re,t)})}function Ur(e,t,a){return{instance:e,listener:t,currentTarget:a}}function bs(e,t){for(var a=t+"Capture",i=[];e!==null;){var c=e,m=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||m===null||(c=rr(e,a),c!=null&&i.unshift(Ur(e,c,m)),c=rr(e,t),c!=null&&i.push(Ur(e,c,m))),e.tag===3)return i;e=e.return}return[]}function Nw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yg(e,t,a,i,c){for(var m=t._reactName,b=[];a!==null&&a!==i;){var R=a,z=R.alternate,X=R.stateNode;if(R=R.tag,z!==null&&z===i)break;R!==5&&R!==26&&R!==27||X===null||(z=X,c?(X=rr(a,m),X!=null&&b.unshift(Ur(a,X,z))):c||(X=rr(a,m),X!=null&&b.push(Ur(a,X,z)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var Mw=/\r\n?/g,Ow=/\u0000|\uFFFD/g;function qg(e){return(typeof e=="string"?e:""+e).replace(Mw,`
49
- `).replace(Ow,"")}function Vg(e,t){return t=qg(t),qg(e)===t}function Qe(e,t,a,i,c,m){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||lo(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&lo(e,""+i);break;case"className":Ci(e,"class",i);break;case"tabIndex":Ci(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ci(e,a,i);break;case"style":Vp(e,i,m);break;case"data":if(t!=="object"){Ci(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Ri(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(a==="formAction"?(t!=="input"&&Qe(e,t,"name",c.name,c,null),Qe(e,t,"formEncType",c.formEncType,c,null),Qe(e,t,"formMethod",c.formMethod,c,null),Qe(e,t,"formTarget",c.formTarget,c,null)):(Qe(e,t,"encType",c.encType,c,null),Qe(e,t,"method",c.method,c,null),Qe(e,t,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Ri(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=il);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Ri(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":De("beforetoggle",e),De("toggle",e),wi(e,"popover",i);break;case"xlinkActuate":rl(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":rl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":rl(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":rl(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":rl(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":rl(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":rl(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":rl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":rl(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":wi(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=ox.get(a)||a,wi(e,a,i))}}function Zf(e,t,a,i,c,m){switch(a){case"style":Vp(e,i,m);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof i=="string"?lo(e,i):(typeof i=="number"||typeof i=="bigint")&&lo(e,""+i);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"onClick":i!=null&&(e.onclick=il);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(c=a.endsWith("Capture"),t=a.slice(2,c?a.length-7:void 0),m=e[Ht]||null,m=m!=null?m[a]:null,typeof m=="function"&&e.removeEventListener(t,m,c),typeof i=="function")){typeof m!="function"&&m!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,c);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):wi(e,a,i)}}}function _t(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var i=!1,c=!1,m;for(m in a)if(a.hasOwnProperty(m)){var b=a[m];if(b!=null)switch(m){case"src":i=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Qe(e,t,m,b,a,null)}}c&&Qe(e,t,"srcSet",a.srcSet,a,null),i&&Qe(e,t,"src",a.src,a,null);return;case"input":De("invalid",e);var R=m=b=c=null,z=null,X=null;for(i in a)if(a.hasOwnProperty(i)){var W=a[i];if(W!=null)switch(i){case"name":c=W;break;case"type":b=W;break;case"checked":z=W;break;case"defaultChecked":X=W;break;case"value":m=W;break;case"defaultValue":R=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(o(137,t));break;default:Qe(e,t,i,W,a,null)}}Up(e,m,R,z,X,b,c,!1);return;case"select":De("invalid",e),i=b=m=null;for(c in a)if(a.hasOwnProperty(c)&&(R=a[c],R!=null))switch(c){case"value":m=R;break;case"defaultValue":b=R;break;case"multiple":i=R;default:Qe(e,t,c,R,a,null)}t=m,a=b,e.multiple=!!i,t!=null?no(e,!!i,t,!1):a!=null&&no(e,!!i,a,!0);return;case"textarea":De("invalid",e),m=c=i=null;for(b in a)if(a.hasOwnProperty(b)&&(R=a[b],R!=null))switch(b){case"value":i=R;break;case"defaultValue":c=R;break;case"children":m=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(91));break;default:Qe(e,t,b,R,a,null)}Yp(e,i,c,m);return;case"option":for(z in a)if(a.hasOwnProperty(z)&&(i=a[z],i!=null))switch(z){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Qe(e,t,z,i,a,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(i=0;i<kr.length;i++)De(kr[i],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in a)if(a.hasOwnProperty(X)&&(i=a[X],i!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Qe(e,t,X,i,a,null)}return;default:if(ru(t)){for(W in a)a.hasOwnProperty(W)&&(i=a[W],i!==void 0&&Zf(e,t,W,i,a,void 0));return}}for(R in a)a.hasOwnProperty(R)&&(i=a[R],i!=null&&Qe(e,t,R,i,a,null))}function jw(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,m=null,b=null,R=null,z=null,X=null,W=null;for(Q in a){var re=a[Q];if(a.hasOwnProperty(Q)&&re!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":z=re;default:i.hasOwnProperty(Q)||Qe(e,t,Q,null,i,re)}}for(var I in i){var Q=i[I];if(re=a[I],i.hasOwnProperty(I)&&(Q!=null||re!=null))switch(I){case"type":m=Q;break;case"name":c=Q;break;case"checked":X=Q;break;case"defaultChecked":W=Q;break;case"value":b=Q;break;case"defaultValue":R=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(o(137,t));break;default:Q!==re&&Qe(e,t,I,Q,i,re)}}au(e,b,R,z,X,W,m,c);return;case"select":Q=b=R=I=null;for(m in a)if(z=a[m],a.hasOwnProperty(m)&&z!=null)switch(m){case"value":break;case"multiple":Q=z;default:i.hasOwnProperty(m)||Qe(e,t,m,null,i,z)}for(c in i)if(m=i[c],z=a[c],i.hasOwnProperty(c)&&(m!=null||z!=null))switch(c){case"value":I=m;break;case"defaultValue":R=m;break;case"multiple":b=m;default:m!==z&&Qe(e,t,c,m,i,z)}t=R,a=b,i=Q,I!=null?no(e,!!a,I,!1):!!i!=!!a&&(t!=null?no(e,!!a,t,!0):no(e,!!a,a?[]:"",!1));return;case"textarea":Q=I=null;for(R in a)if(c=a[R],a.hasOwnProperty(R)&&c!=null&&!i.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Qe(e,t,R,null,i,c)}for(b in i)if(c=i[b],m=a[b],i.hasOwnProperty(b)&&(c!=null||m!=null))switch(b){case"value":I=c;break;case"defaultValue":Q=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==m&&Qe(e,t,b,c,i,m)}Hp(e,I,Q);return;case"option":for(var ve in a)if(I=a[ve],a.hasOwnProperty(ve)&&I!=null&&!i.hasOwnProperty(ve))switch(ve){case"selected":e.selected=!1;break;default:Qe(e,t,ve,null,i,I)}for(z in i)if(I=i[z],Q=a[z],i.hasOwnProperty(z)&&I!==Q&&(I!=null||Q!=null))switch(z){case"selected":e.selected=I&&typeof I!="function"&&typeof I!="symbol";break;default:Qe(e,t,z,I,i,Q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in a)I=a[we],a.hasOwnProperty(we)&&I!=null&&!i.hasOwnProperty(we)&&Qe(e,t,we,null,i,I);for(X in i)if(I=i[X],Q=a[X],i.hasOwnProperty(X)&&I!==Q&&(I!=null||Q!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(o(137,t));break;default:Qe(e,t,X,I,i,Q)}return;default:if(ru(t)){for(var Ke in a)I=a[Ke],a.hasOwnProperty(Ke)&&I!==void 0&&!i.hasOwnProperty(Ke)&&Zf(e,t,Ke,void 0,i,I);for(W in i)I=i[W],Q=a[W],!i.hasOwnProperty(W)||I===Q||I===void 0&&Q===void 0||Zf(e,t,W,I,i,Q);return}}for(var q in a)I=a[q],a.hasOwnProperty(q)&&I!=null&&!i.hasOwnProperty(q)&&Qe(e,t,q,null,i,I);for(re in i)I=i[re],Q=a[re],!i.hasOwnProperty(re)||I===Q||I==null&&Q==null||Qe(e,t,re,I,i,Q)}function Gg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function zw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var c=a[i],m=c.transferSize,b=c.initiatorType,R=c.duration;if(m&&R&&Gg(b)){for(b=0,R=c.responseEnd,i+=1;i<a.length;i++){var z=a[i],X=z.startTime;if(X>R)break;var W=z.transferSize,re=z.initiatorType;W&&Gg(re)&&(z=z.responseEnd,b+=W*(z<R?1:(R-X)/(z-X)))}if(--i,t+=8*(m+b)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Qf=null,Kf=null;function Ss(e){return e.nodeType===9?e:e.ownerDocument}function Xg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ig(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ff(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jf=null;function Dw(){var e=window.event;return e&&e.type==="popstate"?e===Jf?!1:(Jf=e,!0):(Jf=null,!1)}var Zg=typeof setTimeout=="function"?setTimeout:void 0,$w=typeof clearTimeout=="function"?clearTimeout:void 0,Qg=typeof Promise=="function"?Promise:void 0,Lw=typeof queueMicrotask=="function"?queueMicrotask:typeof Qg<"u"?function(e){return Qg.resolve(null).then(e).catch(Bw)}:Zg;function Bw(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function Kg(e,t){var a=t,i=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(c),$o(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Hr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Hr(a);for(var m=a.firstChild;m;){var b=m.nextSibling,R=m.nodeName;m[ar]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&m.rel.toLowerCase()==="stylesheet"||a.removeChild(m),m=b}}else a==="body"&&Hr(e.ownerDocument.body);a=c}while(a);$o(t)}function Fg(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function Pf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Pf(a),nu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function kw(e,t,a,i){for(;e.nodeType===1;){var c=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[ar])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var m=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=xn(e.nextSibling),e===null)break}return null}function Uw(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=xn(e.nextSibling),e===null))return null;return e}function Jg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=xn(e.nextSibling),e===null))return null;return e}function Wf(e){return e.data==="$?"||e.data==="$~"}function ed(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Hw(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function xn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var td=null;function Pg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return xn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Wg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function ey(e,t,a){switch(t=Ss(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Hr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);nu(e)}var wn=new Map,ty=new Set;function xs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cl=B.d;B.d={f:Yw,r:qw,D:Vw,C:Gw,L:Xw,m:Iw,X:Qw,S:Zw,M:Kw};function Yw(){var e=Cl.f(),t=ds();return e||t}function qw(e){var t=Wa(e);t!==null&&t.tag===5&&t.type==="form"?yv(t):Cl.r(e)}var jo=typeof document>"u"?null:document;function ny(e,t,a){var i=jo;if(i&&typeof t=="string"&&t){var c=pn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),ty.has(c)||(ty.add(c),e={rel:e,crossOrigin:a,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),_t(t,"link",e),xt(t),i.head.appendChild(t)))}}function Vw(e){Cl.D(e),ny("dns-prefetch",e,null)}function Gw(e,t){Cl.C(e,t),ny("preconnect",e,t)}function Xw(e,t,a){Cl.L(e,t,a);var i=jo;if(i&&e&&t){var c='link[rel="preload"][as="'+pn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+pn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+pn(a.imageSizes)+'"]')):c+='[href="'+pn(e)+'"]';var m=c;switch(t){case"style":m=zo(e);break;case"script":m=Do(e)}wn.has(m)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),wn.set(m,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(Yr(m))||t==="script"&&i.querySelector(qr(m))||(t=i.createElement("link"),_t(t,"link",e),xt(t),i.head.appendChild(t)))}}function Iw(e,t){Cl.m(e,t);var a=jo;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+pn(i)+'"][href="'+pn(e)+'"]',m=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Do(e)}if(!wn.has(m)&&(e=g({rel:"modulepreload",href:e},t),wn.set(m,e),a.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(qr(m)))return}i=a.createElement("link"),_t(i,"link",e),xt(i),a.head.appendChild(i)}}}function Zw(e,t,a){Cl.S(e,t,a);var i=jo;if(i&&e){var c=eo(i).hoistableStyles,m=zo(e);t=t||"default";var b=c.get(m);if(!b){var R={loading:0,preload:null};if(b=i.querySelector(Yr(m)))R.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=wn.get(m))&&nd(e,a);var z=b=i.createElement("link");xt(z),_t(z,"link",e),z._p=new Promise(function(X,W){z.onload=X,z.onerror=W}),z.addEventListener("load",function(){R.loading|=1}),z.addEventListener("error",function(){R.loading|=2}),R.loading|=4,ws(b,t,i)}b={type:"stylesheet",instance:b,count:1,state:R},c.set(m,b)}}}function Qw(e,t){Cl.X(e,t);var a=jo;if(a&&e){var i=eo(a).hoistableScripts,c=Do(e),m=i.get(c);m||(m=a.querySelector(qr(c)),m||(e=g({src:e,async:!0},t),(t=wn.get(c))&&ld(e,t),m=a.createElement("script"),xt(m),_t(m,"link",e),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},i.set(c,m))}}function Kw(e,t){Cl.M(e,t);var a=jo;if(a&&e){var i=eo(a).hoistableScripts,c=Do(e),m=i.get(c);m||(m=a.querySelector(qr(c)),m||(e=g({src:e,async:!0,type:"module"},t),(t=wn.get(c))&&ld(e,t),m=a.createElement("script"),xt(m),_t(m,"link",e),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},i.set(c,m))}}function ly(e,t,a,i){var c=(c=de.current)?xs(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=zo(a.href),a=eo(c).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=zo(a.href);var m=eo(c).hoistableStyles,b=m.get(e);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,b),(m=c.querySelector(Yr(e)))&&!m._p&&(b.instance=m,b.state.loading=5),wn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},wn.set(e,a),m||Fw(c,e,a,b.state))),t&&i===null)throw Error(o(528,""));return b}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Do(a),a=eo(c).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function zo(e){return'href="'+pn(e)+'"'}function Yr(e){return'link[rel="stylesheet"]['+e+"]"}function ay(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function Fw(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),_t(t,"link",a),xt(t),e.head.appendChild(t))}function Do(e){return'[src="'+pn(e)+'"]'}function qr(e){return"script[async]"+e}function oy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+pn(a.href)+'"]');if(i)return t.instance=i,xt(i),i;var c=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),xt(i),_t(i,"style",c),ws(i,a.precedence,e),t.instance=i;case"stylesheet":c=zo(a.href);var m=e.querySelector(Yr(c));if(m)return t.state.loading|=4,t.instance=m,xt(m),m;i=ay(a),(c=wn.get(c))&&nd(i,c),m=(e.ownerDocument||e).createElement("link"),xt(m);var b=m;return b._p=new Promise(function(R,z){b.onload=R,b.onerror=z}),_t(m,"link",i),t.state.loading|=4,ws(m,a.precedence,e),t.instance=m;case"script":return m=Do(a.src),(c=e.querySelector(qr(m)))?(t.instance=c,xt(c),c):(i=a,(c=wn.get(m))&&(i=g({},a),ld(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),xt(c),_t(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,ws(i,a.precedence,e));return t.instance}function ws(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,m=c,b=0;b<i.length;b++){var R=i[b];if(R.dataset.precedence===t)m=R;else if(m!==c)break}m?m.parentNode.insertBefore(e,m.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function nd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ld(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cs=null;function ry(e,t,a){if(Cs===null){var i=new Map,c=Cs=new Map;c.set(a,i)}else c=Cs,i=c.get(a),i||(i=new Map,c.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),c=0;c<a.length;c++){var m=a[c];if(!(m[ar]||m[Tt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var b=m.getAttribute(t)||"";b=e+b;var R=i.get(b);R?R.push(m):i.set(b,[m])}}return i}function iy(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Jw(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function sy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Pw(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=zo(i.href),m=t.querySelector(Yr(c));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ts.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=m,xt(m);return}m=t.ownerDocument||t,i=ay(i),(c=wn.get(c))&&nd(i,c),m=m.createElement("link"),xt(m);var b=m;b._p=new Promise(function(R,z){b.onload=R,b.onerror=z}),_t(m,"link",i),a.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ts.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ad=0;function Ww(e,t){return e.stylesheets&&e.count===0&&Es(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&Es(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+t);0<e.imgBytes&&ad===0&&(ad=62500*zw());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Es(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>ad?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function Ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Es(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Rs=null;function Es(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Rs=new Map,t.forEach(e2,e),Rs=null,Ts.call(e))}function e2(e,t){if(!(t.state.loading&4)){var a=Rs.get(e);if(a)var i=a.get(null);else{a=new Map,Rs.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<c.length;m++){var b=c[m];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),i=b)}i&&a.set(null,i)}c=t.instance,b=c.getAttribute("data-precedence"),m=a.get(b)||i,m===i&&a.set(null,c),a.set(b,c),this.count++,i=Ts.bind(this),c.addEventListener("load",i),c.addEventListener("error",i),m?m.parentNode.insertBefore(c,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Vr={$$typeof:_,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function t2(e,t,a,i,c,m,b,R,z){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pc(0),this.hiddenUpdates=Pc(null),this.identifierPrefix=i,this.onUncaughtError=c,this.onCaughtError=m,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function cy(e,t,a,i,c,m,b,R,z,X,W,re){return e=new t2(e,t,a,b,z,X,W,re,R),t=1,m===!0&&(t|=24),m=nn(3,null,null,t),e.current=m,m.stateNode=e,t=Lu(),t.refCount++,e.pooledCache=t,t.refCount++,m.memoizedState={element:i,isDehydrated:a,cache:t},Hu(m),e}function uy(e){return e?(e=uo,e):uo}function fy(e,t,a,i,c,m){c=uy(c),i.context===null?i.context=c:i.pendingContext=c,i=Zl(t),i.payload={element:a},m=m===void 0?null:m,m!==null&&(i.callback=m),a=Ql(e,i,t),a!==null&&(It(a,e,t),xr(a,e,t))}function dy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function od(e,t){dy(e,t),(e=e.alternate)&&dy(e,t)}function my(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&It(t,e,67108864),od(e,67108864)}}function py(e){if(e.tag===13||e.tag===31){var t=sn();t=Wc(t);var a=Ra(e,t);a!==null&&It(a,e,t),od(e,t)}}var As=!0;function n2(e,t,a,i){var c=O.T;O.T=null;var m=B.p;try{B.p=2,rd(e,t,a,i)}finally{B.p=m,O.T=c}}function l2(e,t,a,i){var c=O.T;O.T=null;var m=B.p;try{B.p=8,rd(e,t,a,i)}finally{B.p=m,O.T=c}}function rd(e,t,a,i){if(As){var c=id(i);if(c===null)If(e,t,i,_s,a),vy(e,i);else if(o2(c,e,t,a,i))i.stopPropagation();else if(vy(e,i),t&4&&-1<a2.indexOf(e)){for(;c!==null;){var m=Wa(c);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var b=Pe(m.pendingLanes);if(b!==0){var R=m;for(R.pendingLanes|=2,R.entangledLanes|=2;b;){var z=1<<31-Ee(b);R.entanglements[1]|=z,b&=~z}Qn(m),(qe&6)===0&&(us=je()+500,Br(0))}}break;case 31:case 13:R=Ra(m,2),R!==null&&It(R,m,2),ds(),od(m,2)}if(m=id(i),m===null&&If(e,t,i,_s,a),m===c)break;c=m}c!==null&&i.stopPropagation()}else If(e,t,i,null,a)}}function id(e){return e=su(e),sd(e)}var _s=null;function sd(e){if(_s=null,e=Pa(e),e!==null){var t=u(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=f(t),e!==null)return e;e=null}else if(a===31){if(e=d(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _s=e,null}function hy(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Bl()){case yt:return 2;case Sa:return 8;case Ye:case kl:return 32;case ol:return 268435456;default:return 32}default:return 32}}var cd=!1,oa=null,ra=null,ia=null,Gr=new Map,Xr=new Map,sa=[],a2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vy(e,t){switch(e){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":ra=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":Gr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xr.delete(t.pointerId)}}function Ir(e,t,a,i,c,m){return e===null||e.nativeEvent!==m?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:m,targetContainers:[c]},t!==null&&(t=Wa(t),t!==null&&my(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function o2(e,t,a,i,c){switch(t){case"focusin":return oa=Ir(oa,e,t,a,i,c),!0;case"dragenter":return ra=Ir(ra,e,t,a,i,c),!0;case"mouseover":return ia=Ir(ia,e,t,a,i,c),!0;case"pointerover":var m=c.pointerId;return Gr.set(m,Ir(Gr.get(m)||null,e,t,a,i,c)),!0;case"gotpointercapture":return m=c.pointerId,Xr.set(m,Ir(Xr.get(m)||null,e,t,a,i,c)),!0}return!1}function gy(e){var t=Pa(e.target);if(t!==null){var a=u(t);if(a!==null){if(t=a.tag,t===13){if(t=f(a),t!==null){e.blockedOn=t,Op(e.priority,function(){py(a)});return}}else if(t===31){if(t=d(a),t!==null){e.blockedOn=t,Op(e.priority,function(){py(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ns(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=id(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);iu=i,a.target.dispatchEvent(i),iu=null}else return t=Wa(a),t!==null&&my(t),e.blockedOn=a,!1;t.shift()}return!0}function yy(e,t,a){Ns(e)&&a.delete(t)}function r2(){cd=!1,oa!==null&&Ns(oa)&&(oa=null),ra!==null&&Ns(ra)&&(ra=null),ia!==null&&Ns(ia)&&(ia=null),Gr.forEach(yy),Xr.forEach(yy)}function Ms(e,t){e.blockedOn===t&&(e.blockedOn=null,cd||(cd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,r2)))}var Os=null;function by(e){Os!==e&&(Os=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Os===e&&(Os=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],c=e[t+2];if(typeof i!="function"){if(sd(i||a)===null)continue;break}var m=Wa(a);m!==null&&(e.splice(t,3),t-=3,rf(m,{pending:!0,data:c,method:a.method,action:i},i,c))}}))}function $o(e){function t(z){return Ms(z,e)}oa!==null&&Ms(oa,e),ra!==null&&Ms(ra,e),ia!==null&&Ms(ia,e),Gr.forEach(t),Xr.forEach(t);for(var a=0;a<sa.length;a++){var i=sa[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<sa.length&&(a=sa[0],a.blockedOn===null);)gy(a),a.blockedOn===null&&sa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var c=a[i],m=a[i+1],b=c[Ht]||null;if(typeof m=="function")b||by(a);else if(b){var R=null;if(m&&m.hasAttribute("formAction")){if(c=m,b=m[Ht]||null)R=b.formAction;else if(sd(c)!==null)continue}else R=b.action;typeof R=="function"?a[i+1]=R:(a.splice(i,3),i-=3),by(a)}}}function Sy(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(b){return c=b})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function ud(e){this._internalRoot=e}js.prototype.render=ud.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,i=sn();fy(a,i,e,t,null,null)},js.prototype.unmount=ud.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fy(e.current,2,null,e,null,null),ds(),t[Ja]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mp();e={blockedOn:null,target:e,priority:t};for(var a=0;a<sa.length&&t!==0&&t<sa[a].priority;a++);sa.splice(a,0,e),a===0&&gy(e)}};var xy=l.version;if(xy!=="19.2.0")throw Error(o(527,xy,"19.2.0"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=h(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var i2={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zs.isDisabled&&zs.supportsFiber)try{Wt=zs.inject(i2),St=zs}catch{}}return Qr.createRoot=function(e,t){if(!s(e))throw Error(o(299));var a=!1,i="",c=_v,m=Nv,b=Mv;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(m=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=cy(e,1,!1,null,null,a,i,null,c,m,b,Sy),e[Ja]=t.current,Xf(e),new ud(t)},Qr.hydrateRoot=function(e,t,a){if(!s(e))throw Error(o(299));var i=!1,c="",m=_v,b=Nv,R=Mv,z=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(R=a.onRecoverableError),a.formState!==void 0&&(z=a.formState)),t=cy(e,1,!0,t,a??null,i,c,z,m,b,R,Sy),t.context=uy(null),a=t.current,i=sn(),i=Wc(i),c=Zl(i),c.callback=null,Ql(a,c,i),a=i,t.current.lanes=a,lr(t,a),Qn(t),e[Ja]=t.current,Xf(e),new js(t)},Qr.version="19.2.0",Qr}var Oy;function g2(){if(Oy)return md.exports;Oy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),md.exports=v2(),md.exports}var y2=g2();function Mt(n){return Object.keys(n)}function gd(n){return n&&typeof n=="object"&&!Array.isArray(n)}function sm(n,l){const r={...n},o=l;return gd(n)&&gd(l)&&Object.keys(l).forEach(s=>{gd(o[s])&&s in n?r[s]=sm(r[s],o[s]):r[s]=o[s]}),r}function b2(n){return n.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`)}function S2(n){var l;return typeof n!="string"||!n.includes("var(--mantine-scale)")?n:(l=n.match(/^calc\((.*?)\)$/))==null?void 0:l[1].split("*")[0].trim()}function Ud(n){const l=S2(n);return typeof l=="number"?l:typeof l=="string"?l.includes("calc")||l.includes("var")?l:l.includes("px")?Number(l.replace("px","")):l.includes("rem")?Number(l.replace("rem",""))*16:l.includes("em")?Number(l.replace("em",""))*16:Number(l):NaN}function jy(n){return n==="0rem"?"0rem":`calc(${n} * var(--mantine-scale))`}function Bb(n,{shouldScale:l=!1}={}){function r(o){if(o===0||o==="0")return`0${n}`;if(typeof o=="number"){const s=`${o/16}${n}`;return l?jy(s):s}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(u=>r(u)).join(",");if(o.includes(" "))return o.split(" ").map(u=>r(u)).join(" ");const s=o.replace("px","");if(!Number.isNaN(Number(s))){const u=`${Number(s)/16}${n}`;return l?jy(u):u}}return o}return r}const K=Bb("rem",{shouldScale:!0}),Ks=Bb("em");function cm(n){return Object.keys(n).reduce((l,r)=>(n[r]!==void 0&&(l[r]=n[r]),l),{})}function kb(n){if(typeof n=="number")return!0;if(typeof n=="string"){if(n.startsWith("calc(")||n.startsWith("var(")||n.includes(" ")&&n.trim()!=="")return!0;const l=/^[+-]?[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 n.trim().split(/\s+/).every(r=>l.test(r))}return!1}function um(n){return Array.isArray(n)||n===null?!1:typeof n=="object"?n.type!==x.Fragment:!1}function Nl(n){const l=x.createContext(null);return[l,()=>{const o=x.use(l);if(o===null)throw new Error(n);return o}]}function Fs(n,l){let r=n;for(;(r=r.parentElement)&&!r.matches(l););return r}function zy(n,l,r){for(let o=n-1;o>=0;o-=1)if(!l[o].disabled)return o;if(r){for(let o=l.length-1;o>-1;o-=1)if(!l[o].disabled)return o}return n}function Dy(n,l,r){for(let o=n+1;o<l.length;o+=1)if(!l[o].disabled)return o;if(r){for(let o=0;o<l.length;o+=1)if(!l[o].disabled)return o}return n}function x2(n,l,r){return Fs(n,r)===Fs(l,r)}function fm({parentSelector:n,siblingSelector:l,onKeyDown:r,loop:o=!0,activateOnFocus:s=!1,dir:u="rtl",orientation:f}){return d=>{var v,w,E;r==null||r(d);const p=Array.from(((v=Fs(d.currentTarget,n))==null?void 0:v.querySelectorAll(l))||[]).filter(C=>x2(d.currentTarget,C,n)),h=p.findIndex(C=>d.currentTarget===C),S=Dy(h,p,o),g=zy(h,p,o);switch(d.key){case"ArrowRight":break;case"ArrowLeft":break;case"ArrowUp":d.stopPropagation(),d.preventDefault(),p[g].focus(),s&&p[g].click();break;case"ArrowDown":d.stopPropagation(),d.preventDefault(),p[S].focus(),s&&p[S].click();break;case"Home":d.stopPropagation(),d.preventDefault(),(w=p[Dy(-1,p,!1)])==null||w.focus();break;case"End":d.stopPropagation(),d.preventDefault(),(E=p[zy(p.length,p,!1)])==null||E.focus();break}}}const w2={app:100,modal:200,popover:300,overlay:400,max:9999};function Qt(n){return w2[n]}const Ub=()=>{};function C2(n,l={active:!0}){return typeof n!="function"||!l.active?l.onKeyDown||Ub:r=>{var o;r.key==="Escape"&&(n(r),(o=l.onTrigger)==null||o.call(l))}}function Je(n,l="size",r=!0){if(n!==void 0)return kb(n)?r?K(n):n:`var(--${l}-${n})`}function ii(n){return Je(n,"mantine-spacing")}function Ut(n){return n===void 0?"var(--mantine-radius-default)":Je(n,"mantine-radius")}function Ct(n){return Je(n,"mantine-font-size")}function T2(n){return Je(n,"mantine-line-height",!1)}function dm(n){if(n)return Je(n,"mantine-shadow",!1)}function at(n,l){return r=>{n==null||n(r),l==null||l(r)}}function mm(n,l){return n in l?Ud(l[n]):Ud(n)}function $y(n,l){const r=n.map(o=>({value:o,px:mm(o,l)}));return r.sort((o,s)=>o.px-s.px),r}function R2(n,l,r){var o;return r?Array.from(((o=Fs(r,l))==null?void 0:o.querySelectorAll(n))||[]).findIndex(s=>s===r):null}function Hd(n="mantine-"){return`${n}${Math.random().toString(36).slice(2,11)}`}function E2(n,l){if(n===l||Number.isNaN(n)&&Number.isNaN(l))return!0;if(!(n instanceof Object)||!(l instanceof Object))return!1;const r=Object.keys(n),{length:o}=r;if(o!==Object.keys(l).length)return!1;for(let s=0;s<o;s+=1){const u=r[s];if(!(u in l)||n[u]!==l[u]&&!(Number.isNaN(n[u])&&Number.isNaN(l[u])))return!1}return!0}function Yo(n){const l=x.useRef(n);return x.useEffect(()=>{l.current=n}),x.useMemo(()=>((...r)=>{var o;return(o=l.current)==null?void 0:o.call(l,...r)}),[])}function rc(n,l){const{delay:r,flushOnUnmount:o,leading:s,maxWait:u}=typeof l=="number"?{delay:l,flushOnUnmount:!1,leading:!1,maxWait:void 0}:l,f=Yo(n),d=x.useRef(0),p=x.useRef(0),h=x.useRef(null),S=x.useMemo(()=>{const g=Object.assign((...v)=>{window.clearTimeout(d.current),h.current=v;const w=g._isFirstCall;g._isFirstCall=!1;function E(){window.clearTimeout(d.current),window.clearTimeout(p.current),d.current=0,p.current=0,g._isFirstCall=!0,g._hasPendingCallback=!1}function C(){u!==void 0&&p.current===0&&(p.current=window.setTimeout(()=>{if(d.current!==0){const N=h.current;E(),f(...N)}},u))}if(s&&w){f(...v);const N=()=>{E()},_=()=>{d.current!==0&&(E(),f(...v))},j=()=>{E()};g.flush=_,g.cancel=j,d.current=window.setTimeout(N,r),C();return}if(s&&!w){g._hasPendingCallback=!0;const N=()=>{d.current!==0&&(E(),f(...v))},_=()=>{E()};g.flush=N,g.cancel=_;const j=()=>{E()};d.current=window.setTimeout(j,r),C();return}g._hasPendingCallback=!0;const T=()=>{d.current!==0&&(E(),f(...v))},A=()=>{E()};g.flush=T,g.cancel=A,d.current=window.setTimeout(T,r),C()},{flush:()=>{},cancel:()=>{},isPending:()=>g._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return g},[f,r,s,u]);return x.useEffect(()=>()=>{o?S.flush():S.cancel()},[S,o]),S}const A2=["mousedown","touchstart"];function _2(n,l,r,o=!0){const s=x.useRef(null),u=l||A2,f=x.useEffectEvent(p=>{const{target:h}=p??{};if(!document.body.contains(h)&&(h==null?void 0:h.tagName)!=="HTML")return;const S=p.composedPath();Array.isArray(r)?r.every(g=>!!g&&!S.includes(g))&&n(p):s.current&&!S.includes(s.current)&&n(p)}),d=u.join(",");return x.useEffect(()=>{if(!o)return;const p=d.split(",");return p.forEach(h=>document.addEventListener(h,f)),()=>{p.forEach(h=>document.removeEventListener(h,f))}},[d,o]),s}function N2(n,l){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(n).matches:!1}function pm(n,l,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[o,s]=x.useState(r?l:N2(n));return x.useEffect(()=>{try{if("matchMedia"in window){const u=window.matchMedia(n);s(u.matches);const f=d=>s(d.matches);return u.addEventListener("change",f),()=>{u.removeEventListener("change",f)}}}catch{return}},[n]),o||!1}function Hb(n,l){return pm("(prefers-color-scheme: dark)",n==="dark",l)?"dark":"light"}const Wn=typeof document<"u"?x.useLayoutEffect:x.useEffect;function hm(n,l){const r=x.useRef(!1);x.useEffect(()=>()=>{r.current=!1},[]),x.useEffect(()=>{if(r.current)return n();r.current=!0},l)}function Yb({opened:n,shouldReturnFocus:l=!0}){const r=x.useRef(null),o=()=>{var s;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((s=r.current)==null||s.focus({preventScroll:!0}))};return hm(()=>{let s=-1;const u=f=>{f.key==="Tab"&&window.clearTimeout(s)};if(document.addEventListener("keydown",u),n)r.current=document.activeElement;else if(l){const f=document.activeElement;s=window.setTimeout(()=>{const d=document.activeElement;(d===null||d===document.body||d===f)&&o()},10)}return()=>{window.clearTimeout(s),document.removeEventListener("keydown",u)}},[n,l]),o}const M2=/input|select|textarea|button|object/,qb="a, input, select, textarea, button, object, [tabindex]";function O2(n){return n.style.display==="none"}function j2(n){if(n.getAttribute("aria-hidden")||n.getAttribute("hidden")||n.getAttribute("type")==="hidden")return!1;let l=n;for(;l&&!(l===document.body||l.nodeType===11);){if(O2(l))return!1;l=l.parentNode}return!0}function Vb(n){let l=n.getAttribute("tabindex");return l===null&&(l=void 0),parseInt(l,10)}function Yd(n){const l=n.nodeName.toLowerCase(),r=!Number.isNaN(Vb(n));return(M2.test(l)&&!n.disabled||n instanceof HTMLAnchorElement&&n.href||r)&&j2(n)}function Gb(n){const l=Vb(n);return(Number.isNaN(l)||l>=0)&&Yd(n)}function z2(n){return Array.from(n.querySelectorAll(qb)).filter(Gb)}function D2(n,l){const r=z2(n);if(!r.length){l.preventDefault();return}const o=r[l.shiftKey?0:r.length-1],s=n.getRootNode();let u=o===s.activeElement||n===s.activeElement;const f=s.activeElement;if(f.tagName==="INPUT"&&f.getAttribute("type")==="radio"&&(u=r.filter(p=>p.getAttribute("type")==="radio"&&p.getAttribute("name")===f.getAttribute("name")).includes(o)),!u)return;l.preventDefault();const d=r[l.shiftKey?r.length-1:0];d&&d.focus()}function $2(n=!0){const l=x.useRef(null),r=s=>{let u=s.querySelector("[data-autofocus]");if(!u){const f=Array.from(s.querySelectorAll(qb));u=f.find(Gb)||f.find(Yd)||null,!u&&Yd(s)&&(u=s)}u?u.focus({preventScroll:!0}):console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node",s)},o=x.useCallback(s=>{if(n){if(s===null){l.current=null;return}l.current!==s&&(setTimeout(()=>{s.getRootNode()?r(s):console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom",s)}),l.current=s)}},[n]);return x.useEffect(()=>{if(!n)return;l.current&&setTimeout(()=>{l.current&&r(l.current)});const s=u=>{u.key==="Tab"&&l.current&&D2(l.current,u)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n]),o}function kn(n){const[l,r]=x.useState(`mantine-${x.useId().replace(/:/g,"")}`),o=x.useRef(!1);return Wn(()=>{o.current||(o.current=!0,r(Hd()))},[]),typeof n=="string"?n:l}function Xb(n,l,r){const o=x.useEffectEvent(l);x.useEffect(()=>(window.addEventListener(n,o,r),()=>window.removeEventListener(n,o,r)),[n])}function qd(n,l){if(typeof n=="function")return n(l);typeof n=="object"&&n!==null&&"current"in n&&(n.current=l)}function L2(...n){const l=new Map;return r=>{if(n.forEach(o=>{const s=qd(o,r);s&&l.set(o,s)}),l.size>0)return()=>{n.forEach(o=>{const s=l.get(o);s&&typeof s=="function"?s():qd(o,null)}),l.clear()}}}function it(...n){return x.useCallback(L2(...n),n)}function el({value:n,defaultValue:l,finalValue:r,onChange:o=()=>{}}){const[s,u]=x.useState(l!==void 0?l:r),f=(d,...p)=>{u(d),o==null||o(d,...p)};return n!==void 0?[n,o,!0]:[s,f,!1]}function vm(n,l){return pm("(prefers-reduced-motion: reduce)",n,l)}function B2(n,l){if(!n||!l)return!1;if(n===l)return!0;if(n.length!==l.length)return!1;for(let r=0;r<n.length;r+=1)if(!E2(n[r],l[r]))return!1;return!0}function k2(n){const l=x.useRef([]),r=x.useRef(0);return B2(l.current,n)||(l.current=n,r.current+=1),[r.current]}function U2(n,l){x.useEffect(n,k2(l))}function H2(n,l,r={autoInvoke:!1}){const o=x.useRef(null),s=Yo(n),u=x.useCallback((...d)=>{o.current||(o.current=window.setTimeout(()=>{s(...d),o.current=null},l))},[l]),f=x.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return x.useEffect(()=>(r.autoInvoke&&u(),f),[f,u]),{start:u,clear:f}}function Y2(n){const l=x.useRef(void 0);return x.useEffect(()=>{l.current=n},[n]),l.current}function q2(n,l,r){const o=x.useRef(null);x.useEffect(()=>{o.current&&(o.current.disconnect(),o.current=null);const s=typeof r=="function"?r():r;return s&&(o.current=new MutationObserver(n),o.current.observe(s,l)),()=>{o.current&&(o.current.disconnect(),o.current=null)}},[n,l,r])}function V2(){const[n,l]=x.useState(!1);return x.useEffect(()=>l(!0),[]),n}const G2=["mouse","touch"],X2=10;function I2(n,l={}){const{threshold:r=400,events:o=G2,cancelOnMove:s=!1,onStart:u,onFinish:f,onCancel:d}=l,p=x.useRef(!1),h=x.useRef(!1),S=x.useRef(-1),g=x.useRef(null);return x.useEffect(()=>()=>window.clearTimeout(S.current),[]),x.useMemo(()=>{if(typeof n!="function")return{};const v=s!==!1,w=s===!0?X2:s===!1?0:s,E=N=>{!By(N)&&!Vd(N)||(u&&u(N),g.current=Ly(N),h.current=!0,S.current=window.setTimeout(()=>{n(N),p.current=!0},r))},C=N=>{!By(N)&&!Vd(N)||(p.current?f&&f(N):h.current&&d&&d(N),p.current=!1,h.current=!1,g.current=null,S.current!==-1&&(window.clearTimeout(S.current),S.current=-1))},T=N=>{if(!v||!h.current||p.current)return;const _=Ly(N);if(!_||!g.current)return;const j=_.x-g.current.x,L=_.y-g.current.y;Math.sqrt(j*j+L*L)>w&&C(N)},A={};return o.includes("mouse")&&(A.onMouseDown=E,A.onMouseUp=C,A.onMouseLeave=C,v&&(A.onMouseMove=T)),o.includes("touch")&&(A.onTouchStart=E,A.onTouchEnd=C,A.onTouchCancel=C,v&&(A.onTouchMove=T)),A},[n,r,d,f,u,s,o.join(",")])}function Ly(n){if(Vd(n)){const l=n.touches[0]??n.changedTouches[0];return l?{x:l.clientX,y:l.clientY}:null}return{x:n.clientX,y:n.clientY}}function Vd(n){return window.TouchEvent?n.nativeEvent instanceof TouchEvent:"touches"in n.nativeEvent}function By(n){return n.nativeEvent instanceof MouseEvent}var gm=Lb();const Z2=Db(gm);var Q2={};function K2(){return"development"}function ic(n){var r;const l=kd.version;return typeof kd.version!="string"||l.startsWith("18.")?n==null?void 0:n.ref:(r=n==null?void 0:n.props)==null?void 0:r.ref}function F2(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||typeof n=="bigint"}function Vs(n,l=document){const r=l.querySelector(n);if(r)return r;const o=l.querySelectorAll("*");for(let s=0;s<o.length;s+=1){const u=o[s];if(u.shadowRoot){const f=Vs(n,u.shadowRoot);if(f)return f}}return null}function Tl(n,l=document){const r=[],o=l.querySelectorAll(n);r.push(...Array.from(o));const s=l.querySelectorAll("*");for(let u=0;u<s.length;u+=1){const f=s[u];if(f.shadowRoot){const d=Tl(n,f.shadowRoot);r.push(...d)}}return r}function Kn(n){if(!n)return document;const l=n.getRootNode();return l instanceof ShadowRoot||l instanceof Document?l:document}function Ml(n){const l=x.Children.toArray(n);return l.length!==1||!um(l[0])?null:l[0]}function Ib(n){var l,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(l=0;l<s;l++)n[l]&&(r=Ib(n[l]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function gt(){for(var n,l,r=0,o="",s=arguments.length;r<s;r++)(n=arguments[r])&&(l=Ib(n))&&(o&&(o+=" "),o+=l);return o}const J2={};function P2(n){const l={};return n.forEach(r=>{Object.entries(r).forEach(([o,s])=>{l[o]?l[o]=gt(l[o],s):l[o]=s})}),l}function ei({theme:n,classNames:l,props:r,stylesCtx:o}){return P2((Array.isArray(l)?l:[l]).map(s=>typeof s=="function"?s(n,r,o):s||J2))}function Js({theme:n,styles:l,props:r,stylesCtx:o}){const s=Array.isArray(l)?l:[l],u={};for(const f of s)typeof f=="function"?Object.assign(u,f(n,r,o)):f&&Object.assign(u,f);return u}function ky(n){return n==="auto"||n==="dark"||n==="light"}function W2({key:n="mantine-color-scheme-value"}={}){let l;return{get:r=>{if(typeof window>"u")return r;try{const o=window.localStorage.getItem(n);return ky(o)?o:r}catch{return r}},set:r=>{try{window.localStorage.setItem(n,r)}catch(o){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",o)}},subscribe:r=>{l=o=>{o.storageArea===window.localStorage&&o.key===n&&ky(o.newValue)&&r(o.newValue)},window.addEventListener("storage",l)},unsubscribe:()=>{window.removeEventListener("storage",l)},clear:()=>{window.localStorage.removeItem(n)}}}function ti(n,l){return typeof n.primaryShade=="number"?n.primaryShade:l==="dark"?n.primaryShade.dark:n.primaryShade.light}function eC(n){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(n)}function tC(n){let l=n.replace("#","");if(l.length===3){const o=l.split("");l=[o[0],o[0],o[1],o[1],o[2],o[2]].join("")}if(l.length===8){const o=parseInt(l.slice(6,8),16)/255;return{r:parseInt(l.slice(0,2),16),g:parseInt(l.slice(2,4),16),b:parseInt(l.slice(4,6),16),a:o}}const r=parseInt(l,16);return{r:r>>16&255,g:r>>8&255,b:r&255,a:1}}function nC(n){const[l,r,o,s]=n.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:l,g:r,b:o,a:s===void 0?1:s}}function lC(n){const l=n.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!l)return{r:0,g:0,b:0,a:1};const r=parseInt(l[1],10),o=parseInt(l[2],10)/100,s=parseInt(l[3],10)/100,u=l[5]?parseFloat(l[5]):void 0,f=(1-Math.abs(2*s-1))*o,d=r/60,p=f*(1-Math.abs(d%2-1)),h=s-f/2;let S,g,v;return d>=0&&d<1?(S=f,g=p,v=0):d>=1&&d<2?(S=p,g=f,v=0):d>=2&&d<3?(S=0,g=f,v=p):d>=3&&d<4?(S=0,g=p,v=f):d>=4&&d<5?(S=p,g=0,v=f):(S=f,g=0,v=p),{r:Math.round((S+h)*255),g:Math.round((g+h)*255),b:Math.round((v+h)*255),a:u||1}}function ym(n){return eC(n)?tC(n):n.startsWith("rgb")?nC(n):n.startsWith("hsl")?lC(n):{r:0,g:0,b:0,a:1}}function yd(n){return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}function aC(n){const l=n.match(/oklch\((.*?)%\s/);return l?parseFloat(l[1]):null}function oC(n){if(n.startsWith("oklch("))return(aC(n)||0)/100;const{r:l,g:r,b:o}=ym(n),s=l/255,u=r/255,f=o/255,d=yd(s),p=yd(u),h=yd(f);return .2126*d+.7152*p+.0722*h}function Kr(n,l=.179){return n.startsWith("var(")?!1:oC(n)>l}function ga({color:n,theme:l,colorScheme:r}){if(typeof n!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof n}`);if(n==="bright")return{color:n,value:r==="dark"?l.white:l.black,shade:void 0,isThemeColor:!1,isLight:Kr(r==="dark"?l.white:l.black,l.luminanceThreshold),variable:"--mantine-color-bright"};if(n==="dimmed")return{color:n,value:r==="dark"?l.colors.dark[2]:l.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Kr(r==="dark"?l.colors.dark[2]:l.colors.gray[6],l.luminanceThreshold),variable:"--mantine-color-dimmed"};if(n==="white"||n==="black")return{color:n,value:n==="white"?l.white:l.black,shade:void 0,isThemeColor:!1,isLight:Kr(n==="white"?l.white:l.black,l.luminanceThreshold),variable:`--mantine-color-${n}`};const[o,s]=n.split("."),u=s?Number(s):void 0,f=o in l.colors;if(f){const d=u!==void 0?l.colors[o][u]:l.colors[o][ti(l,r||"light")];return{color:o,value:d,shade:u,isThemeColor:f,isLight:Kr(d,l.luminanceThreshold),variable:s?`--mantine-color-${o}-${u}`:`--mantine-color-${o}-filled`}}return{color:n,value:n,isThemeColor:f,isLight:Kr(n,l.luminanceThreshold),shade:u,variable:void 0}}function pa(n,l){const r=ga({color:n||l.primaryColor,theme:l});return r.variable?`var(${r.variable})`:n}function bm(n){return!!n&&typeof n=="object"&&"mantine-virtual-color"in n}function Ha(n,l){if(n.startsWith("var("))return`color-mix(in srgb, ${n}, black ${l*100}%)`;const{r,g:o,b:s,a:u}=ym(n),f=1-l,d=p=>Math.round(p*f);return`rgba(${d(r)}, ${d(o)}, ${d(s)}, ${u})`}function Gd(n,l){const r={from:(n==null?void 0:n.from)||l.defaultGradient.from,to:(n==null?void 0:n.to)||l.defaultGradient.to,deg:(n==null?void 0:n.deg)??l.defaultGradient.deg??0},o=pa(r.from,l),s=pa(r.to,l);return`linear-gradient(${r.deg}deg, ${o} 0%, ${s} 100%)`}function ua(n,l){if(typeof n!="string"||l>1||l<0)return"rgba(0, 0, 0, 1)";if(n.startsWith("var("))return`color-mix(in srgb, ${n}, transparent ${(1-l)*100}%)`;if(n.startsWith("oklch"))return n.includes("/")?n.replace(/\/\s*[\d.]+\s*\)/,`/ ${l})`):n.replace(")",` / ${l})`);const{r,g:o,b:s}=ym(n);return`rgba(${r}, ${o}, ${s}, ${l})`}const Uy=ua,rC=({color:n,theme:l,variant:r,gradient:o,autoContrast:s})=>{const u=ga({color:n,theme:l}),f=typeof s=="boolean"?s:l.autoContrast;if(r==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(r==="filled"){const d=u.isThemeColor&&u.shade===void 0&&bm(l.colors[u.color]),p=f?d?`var(--mantine-color-${u.color}-contrast)`:u.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)":"var(--mantine-color-white)";return u.isThemeColor?u.shade===void 0?{background:`var(--mantine-color-${n}-filled)`,hover:`var(--mantine-color-${n}-filled-hover)`,color:p,border:`${K(1)} solid transparent`}:{background:`var(--mantine-color-${u.color}-${u.shade})`,hover:`var(--mantine-color-${u.color}-${u.shade===9?8:u.shade+1})`,color:p,border:`${K(1)} solid transparent`}:{background:n,hover:Ha(n,.1),color:p,border:`${K(1)} solid transparent`}}if(r==="light"){if(u.isThemeColor){if(u.shade===void 0)return{background:`var(--mantine-color-${n}-light)`,hover:`var(--mantine-color-${n}-light-hover)`,color:`var(--mantine-color-${n}-light-color)`,border:`${K(1)} solid transparent`};const d=l.colors[u.color][u.shade];return{background:d,hover:Ha(d,.1),color:`var(--mantine-color-${u.color}-light-color)`,border:`${K(1)} solid transparent`}}return{background:ua(n,.1),hover:ua(n,.12),color:n,border:`${K(1)} solid transparent`}}if(r==="outline")return u.isThemeColor?u.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${n}-outline-hover)`,color:`var(--mantine-color-${n}-outline)`,border:`${K(1)} solid var(--mantine-color-${n}-outline)`}:{background:"transparent",hover:ua(l.colors[u.color][u.shade],.05),color:`var(--mantine-color-${u.color}-${u.shade})`,border:`${K(1)} solid var(--mantine-color-${u.color}-${u.shade})`}:{background:"transparent",hover:ua(n,.05),color:n,border:`${K(1)} solid ${n}`};if(r==="subtle"){if(u.isThemeColor){if(u.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${n}-light-hover)`,color:`var(--mantine-color-${n}-light-color)`,border:`${K(1)} solid transparent`};const d=l.colors[u.color][u.shade];return{background:"transparent",hover:ua(d,.12),color:`var(--mantine-color-${u.color}-${Math.min(u.shade,6)})`,border:`${K(1)} solid transparent`}}return{background:"transparent",hover:ua(n,.12),color:n,border:`${K(1)} solid transparent`}}return r==="transparent"?u.isThemeColor?u.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${n}-light-color)`,border:`${K(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${u.color}-${Math.min(u.shade,6)})`,border:`${K(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:n,border:`${K(1)} solid transparent`}:r==="white"?u.isThemeColor?u.shade===void 0?{background:"var(--mantine-color-white)",hover:Ha(l.white,.01),color:`var(--mantine-color-${n}-filled)`,border:`${K(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Ha(l.white,.01),color:`var(--mantine-color-${u.color}-${u.shade})`,border:`${K(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Ha(l.white,.01),color:n,border:`${K(1)} solid transparent`}:r==="gradient"?{background:Gd(o,l),hover:Gd(o,l),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:`${K(1)} solid var(--mantine-color-default-border)`}:{}};function Sm({color:n,theme:l,autoContrast:r,colorScheme:o}){return(typeof r=="boolean"?r:l.autoContrast)&&ga({color:n||l.primaryColor,theme:l,colorScheme:o}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Xd(n,l,r){return Sm({color:r==="dark"?n.dark:n.light,theme:l,colorScheme:r,autoContrast:!0})}function Hy(n,l){const r=n.colors[n.primaryColor];return bm(r)?n.autoContrast?Xd(r,n,l):"var(--mantine-color-white)":Sm({color:r[ti(n,l)],theme:n,autoContrast:null})}const xm=x.createContext(null);function ll(){const n=x.use(xm);if(!n)throw new Error("[@mantine/core] MantineProvider was not found in tree");return n}function iC(){return ll().cssVariablesResolver}function sC(){return ll().classNamesPrefix}function sc(){return ll().getStyleNonce}function cC(){return ll().withStaticClasses}function uC(){return ll().headless}function fC(){var n;return(n=ll().stylesTransform)==null?void 0:n.sx}function dC(){var n;return(n=ll().stylesTransform)==null?void 0:n.styles}function wm(){return ll().env||"default"}function mC(){return ll().deduplicateInlineStyles}function Yy(n){const l=document.createElement("style");return l.setAttribute("data-mantine-styles","inline"),l.innerHTML="*, *::before, *::after {transition: none !important;}",l.setAttribute("data-mantine-disable-transition","true"),n&&l.setAttribute("nonce",n),document.head.appendChild(l),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(o=>o.remove())}function Zb({keepTransitions:n}={}){var S;const l=x.useRef(Ub),r=x.useRef(-1),o=x.use(xm),s=x.useRef((S=sc())==null?void 0:S());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const u=g=>{o.setColorScheme(g),l.current=n?()=>{}:Yy(s.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{var v;(v=l.current)==null||v.call(l)},10)},f=()=>{o.clearColorScheme(),l.current=n?()=>{}:Yy(s.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{var g;(g=l.current)==null||g.call(l)},10)},d=Hb("light",{getInitialValueInEffect:!1}),p=o.colorScheme==="auto"?d:o.colorScheme,h=x.useCallback(()=>u(p==="light"?"dark":"light"),[u,p]);return x.useEffect(()=>()=>{var g;(g=l.current)==null||g.call(l),window.clearTimeout(r.current)},[]),{colorScheme:o.colorScheme,setColorScheme:u,clearColorScheme:f,toggleColorScheme:h}}function Lo(n,l){var s,u;const r=typeof window<"u"&&"matchMedia"in window&&((s=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:s.matches),o=n!=="auto"?n:r?"dark":"light";(u=l())==null||u.setAttribute("data-mantine-color-scheme",o)}function pC({manager:n,defaultColorScheme:l,getRootElement:r,forceColorScheme:o}){const s=x.useRef(null),[u,f]=x.useState(()=>n.get(l)),d=o||u,p=x.useCallback(S=>{o||(Lo(S,r),f(S),n.set(S))},[n.set,d,o]),h=x.useCallback(()=>{f(l),Lo(l,r),n.clear()},[n.clear,l]);return x.useEffect(()=>(n.subscribe(p),n.unsubscribe),[n.subscribe,n.unsubscribe]),Wn(()=>{Lo(n.get(l),r)},[]),x.useEffect(()=>{var g;if(o)return Lo(o,r),()=>{};o===void 0&&Lo(u,r),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const S=v=>{u==="auto"&&Lo(v.matches?"dark":"light",r)};return(g=s.current)==null||g.addEventListener("change",S),()=>{var v;return(v=s.current)==null?void 0:v.removeEventListener("change",S)}},[u,o]),{colorScheme:d,setColorScheme:p,clearColorScheme:h}}function Qb(n,l={getInitialValueInEffect:!0}){const r=Hb(n,l),{colorScheme:o}=Zb();return o==="auto"?r:o}const hC={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"]},qy="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Cm={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:hC,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:rC,autoContrast:!1,luminanceThreshold:.3,fontFamily:qy,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:"md",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:qy,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:K(34),lineHeight:"1.3"},h2:{fontSize:K(26),lineHeight:"1.35"},h3:{fontSize:K(22),lineHeight:"1.4"},h4:{fontSize:K(18),lineHeight:"1.45"},h5:{fontSize:K(16),lineHeight:"1.5"},h6:{fontSize:K(14),lineHeight:"1.5"}}},fontSizes:{xs:K(12),sm:K(14),md:K(16),lg:K(18),xl:K(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},fontWeights:{regular:"400",medium:"600",bold:"700"},radius:{xs:K(2),sm:K(4),md:K(8),lg:K(16),xl:K(32)},spacing:{xs:K(10),sm:K(12),md:K(16),lg:K(20),xl:K(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), 0 ${K(1)} ${K(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(10)} ${K(15)} ${K(-5)}, rgba(0, 0, 0, 0.04) 0 ${K(7)} ${K(7)} ${K(-5)}`,md:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(20)} ${K(25)} ${K(-5)}, rgba(0, 0, 0, 0.04) 0 ${K(10)} ${K(10)} ${K(-5)}`,lg:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(28)} ${K(23)} ${K(-7)}, rgba(0, 0, 0, 0.04) 0 ${K(12)} ${K(12)} ${K(-7)}`,xl:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(36)} ${K(28)} ${K(-7)}, rgba(0, 0, 0, 0.04) 0 ${K(17)} ${K(17)} ${K(-7)}`},other:{},components:{}},vC="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Vy="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function bd(n){return n<0||n>9?!1:parseInt(n.toString(),10)===n}function Gy(n){if(!(n.primaryColor in n.colors))throw new Error(vC);if(typeof n.primaryShade=="object"&&(!bd(n.primaryShade.dark)||!bd(n.primaryShade.light)))throw new Error(Vy);if(typeof n.primaryShade=="number"&&!bd(n.primaryShade))throw new Error(Vy)}function gC(n,l){var o;if(!l)return Gy(n),n;const r=sm(n,l);return l.fontFamily&&!((o=l.headings)!=null&&o.fontFamily)&&(r.headings={...r.headings,fontFamily:l.fontFamily}),Gy(r),r}const Tm=x.createContext(null),yC=()=>x.use(Tm)||Cm;function cn(){const n=x.use(Tm);if(!n)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return n}function Kb({theme:n,children:l,inherit:r=!0}){const o=yC(),s=x.useMemo(()=>gC(r?o:Cm,n),[n,o,r]);return y.jsx(Tm,{value:s,children:l})}Kb.displayName="@mantine/core/MantineThemeProvider";function Sd(n){return Object.entries(n).map(([l,r])=>`${l}: ${r};`).join("")}function Fb(n,l){const r=l?[l]:[":root",":host"],o=Sd(n.variables),s=o?`${r.join(", ")}{${o}}`:"",u=Sd(n.dark),f=Sd(n.light),d=p=>r.map(h=>h===":host"?`${h}([data-mantine-color-scheme="${p}"])`:`${h}[data-mantine-color-scheme="${p}"]`).join(", ");return`${s}
48
+ `+i.stack}}var jt=Object.prototype.hasOwnProperty,fn=n.unstable_scheduleCallback,dn=n.unstable_cancelCallback,zt=n.unstable_shouldYield,Pt=n.unstable_requestPaint,ze=n.unstable_now,kl=n.unstable_getCurrentPriorityLevel,yt=n.unstable_ImmediatePriority,xa=n.unstable_UserBlockingPriority,Ye=n.unstable_NormalPriority,Hl=n.unstable_LowPriority,rl=n.unstable_IdlePriority,Dt=n.log,En=n.unstable_setDisableYieldValue,Wt=null,St=null;function en(e){if(typeof Dt=="function"&&En(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Wt,e)}catch{}}var Ee=Math.clz32?Math.clz32:wi,Gn=Math.log,xi=Math.LN2;function wi(e){return e>>>=0,e===0?32:31-(Gn(e)/xi|0)|0}var Fa=256,Ja=262144,nt=4194304;function Pe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ul(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var c=0,d=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var R=i&134217727;return R!==0?(i=R&~d,i!==0?c=Pe(i):(b&=R,b!==0?c=Pe(b):a||(a=R&~e,a!==0&&(c=Pe(a))))):(R=i&~d,R!==0?c=Pe(R):b!==0?c=Pe(b):a||(a=i&~e,a!==0&&(c=Pe(a)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:c}function lr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function PS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ep(){var e=nt;return nt<<=1,(nt&62914560)===0&&(nt=4194304),e}function Wc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ar(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function WS(e,t,a,i,c,d){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var R=e.entanglements,z=e.expirationTimes,X=e.hiddenUpdates;for(a=b&~a;0<a;){var W=31-Ee(a),re=1<<W;R[W]=0,z[W]=-1;var I=X[W];if(I!==null)for(X[W]=null,W=0;W<I.length;W++){var Q=I[W];Q!==null&&(Q.lane&=-536870913)}a&=~re}i!==0&&Ap(e,i,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(b&~t))}function Ap(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Ee(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function _p(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Ee(a),c=1<<i;c&t|e[i]&t&&(e[i]|=t),a&=~c}}function Np(e,t){var a=t&-t;return a=(a&42)!==0?1:eu(a),(a&(e.suspendedLanes|t))!==0?0:a}function eu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function tu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Mp(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:hy(e.type))}function Op(e,t){var a=B.p;try{return B.p=e,t()}finally{B.p=a}}var Yl=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Yl,Ut="__reactProps$"+Yl,Pa="__reactContainer$"+Yl,nu="__reactEvents$"+Yl,ex="__reactListeners$"+Yl,tx="__reactHandles$"+Yl,jp="__reactResources$"+Yl,or="__reactMarker$"+Yl;function lu(e){delete e[Rt],delete e[Ut],delete e[nu],delete e[ex],delete e[tx]}function Wa(e){var t=e[Rt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Pa]||a[Rt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Wg(e);e!==null;){if(a=e[Rt])return a;e=Wg(e)}return t}e=a,a=e.parentNode}return null}function eo(e){if(e=e[Rt]||e[Pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function rr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function to(e){var t=e[jp];return t||(t=e[jp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[or]=!0}var zp=new Set,Dp={};function wa(e,t){no(e,t),no(e+"Capture",t)}function no(e,t){for(Dp[e]=t,e=0;e<t.length;e++)zp.add(t[e])}var nx=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$p={},Lp={};function lx(e){return jt.call(Lp,e)?!0:jt.call($p,e)?!1:nx.test(e)?Lp[e]=!0:($p[e]=!0,!1)}function Ci(e,t,a){if(lx(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ti(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function il(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ax(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(b){a=""+b,d.call(this,b)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function au(e){if(!e._valueTracker){var t=Bp(e)?"checked":"value";e._valueTracker=ax(e,t,""+e[t])}}function kp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Bp(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Ri(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ox=/[\n"\\]/g;function pn(e){return e.replace(ox,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ou(e,t,a,i,c,d,b,R){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mn(t)):e.value!==""+mn(t)&&(e.value=""+mn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?ru(e,b,mn(t)):a!=null?ru(e,b,mn(a)):i!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+mn(R):e.removeAttribute("name")}function Hp(e,t,a,i,c,d,b,R){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){au(e);return}a=a!=null?""+mn(a):"",t=t!=null?""+mn(t):a,R||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=R?e.checked:!!i,e.defaultChecked=!!i,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),au(e)}function ru(e,t,a){t==="number"&&Ri(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function lo(e,t,a,i){if(e=e.options,t){t={};for(var c=0;c<a.length;c++)t["$"+a[c]]=!0;for(a=0;a<e.length;a++)c=t.hasOwnProperty("$"+e[a].value),e[a].selected!==c&&(e[a].selected=c),c&&i&&(e[a].defaultSelected=!0)}else{for(a=""+mn(a),t=null,c=0;c<e.length;c++){if(e[c].value===a){e[c].selected=!0,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Up(e,t,a){if(t!=null&&(t=""+mn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+mn(a):""}function Yp(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(o(92));if(ce(i)){if(1<i.length)throw Error(o(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=mn(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),au(e)}function ao(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var rx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function qp(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||rx.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Vp(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var c in t)i=t[c],t.hasOwnProperty(c)&&a[c]!==i&&qp(e,c,i)}else for(var d in t)t.hasOwnProperty(d)&&qp(e,d,t[d])}function iu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ix=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),sx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ei(e){return sx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function sl(){}var su=null;function cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oo=null,ro=null;function Gp(e){var t=eo(e);if(t&&(e=t.stateNode)){var a=e[Ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(ou(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+pn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var c=i[Ut]||null;if(!c)throw Error(o(90));ou(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&kp(i)}break e;case"textarea":Up(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&lo(e,!!a.multiple,t,!1)}}}var uu=!1;function Xp(e,t,a){if(uu)return e(t,a);uu=!0;try{var i=e(t);return i}finally{if(uu=!1,(oo!==null||ro!==null)&&(ms(),oo&&(t=oo,e=ro,ro=oo=null,Gp(t),e)))for(t=0;t<e.length;t++)Gp(e[t])}}function ir(e,t){var a=e.stateNode;if(a===null)return null;var i=a[Ut]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var cl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fu=!1;if(cl)try{var sr={};Object.defineProperty(sr,"passive",{get:function(){fu=!0}}),window.addEventListener("test",sr,sr),window.removeEventListener("test",sr,sr)}catch{fu=!1}var ql=null,du=null,Ai=null;function Ip(){if(Ai)return Ai;var e,t=du,a=t.length,i,c="value"in ql?ql.value:ql.textContent,d=c.length;for(e=0;e<a&&t[e]===c[e];e++);var b=a-e;for(i=1;i<=b&&t[a-i]===c[d-i];i++);return Ai=c.slice(e,1<i?1-i:void 0)}function _i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ni(){return!0}function Zp(){return!1}function Yt(e){function t(a,i,c,d,b){this._reactName=a,this._targetInst=c,this.type=i,this.nativeEvent=d,this.target=b,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(a=e[R],this[R]=a?a(d):d[R]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Ni:Zp,this.isPropagationStopped=Zp,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ni)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),t}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mi=Yt(Ca),cr=g({},Ca,{view:0,detail:0}),cx=Yt(cr),mu,pu,ur,Oi=g({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ur&&(ur&&e.type==="mousemove"?(mu=e.screenX-ur.screenX,pu=e.screenY-ur.screenY):pu=mu=0,ur=e),mu)},movementY:function(e){return"movementY"in e?e.movementY:pu}}),Qp=Yt(Oi),ux=g({},Oi,{dataTransfer:0}),fx=Yt(ux),dx=g({},cr,{relatedTarget:0}),hu=Yt(dx),mx=g({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),px=Yt(mx),hx=g({},Ca,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vx=Yt(hx),gx=g({},Ca,{data:0}),Kp=Yt(gx),yx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bx={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"},Sx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sx[e])?!!t[e]:!1}function vu(){return xx}var wx=g({},cr,{key:function(e){if(e.key){var t=yx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vu,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Cx=Yt(wx),Tx=g({},Oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fp=Yt(Tx),Rx=g({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vu}),Ex=Yt(Rx),Ax=g({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),_x=Yt(Ax),Nx=g({},Oi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mx=Yt(Nx),Ox=g({},Ca,{newState:0,oldState:0}),jx=Yt(Ox),zx=[9,13,27,32],gu=cl&&"CompositionEvent"in window,fr=null;cl&&"documentMode"in document&&(fr=document.documentMode);var Dx=cl&&"TextEvent"in window&&!fr,Jp=cl&&(!gu||fr&&8<fr&&11>=fr),Pp=" ",Wp=!1;function eh(e,t){switch(e){case"keyup":return zx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function th(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var io=!1;function $x(e,t){switch(e){case"compositionend":return th(t);case"keypress":return t.which!==32?null:(Wp=!0,Pp);case"textInput":return e=t.data,e===Pp&&Wp?null:e;default:return null}}function Lx(e,t){if(io)return e==="compositionend"||!gu&&eh(e,t)?(e=Ip(),Ai=du=ql=null,io=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Jp&&t.locale!=="ko"?null:t.data;default:return null}}var Bx={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 nh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bx[e.type]:t==="textarea"}function lh(e,t,a,i){oo?ro?ro.push(i):ro=[i]:oo=i,t=Ss(t,"onChange"),0<t.length&&(a=new Mi("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var dr=null,mr=null;function kx(e){Hg(e,0)}function ji(e){var t=rr(e);if(kp(t))return e}function ah(e,t){if(e==="change")return t}var oh=!1;if(cl){var yu;if(cl){var bu="oninput"in document;if(!bu){var rh=document.createElement("div");rh.setAttribute("oninput","return;"),bu=typeof rh.oninput=="function"}yu=bu}else yu=!1;oh=yu&&(!document.documentMode||9<document.documentMode)}function ih(){dr&&(dr.detachEvent("onpropertychange",sh),mr=dr=null)}function sh(e){if(e.propertyName==="value"&&ji(mr)){var t=[];lh(t,mr,e,cu(e)),Xp(kx,t)}}function Hx(e,t,a){e==="focusin"?(ih(),dr=t,mr=a,dr.attachEvent("onpropertychange",sh)):e==="focusout"&&ih()}function Ux(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ji(mr)}function Yx(e,t){if(e==="click")return ji(t)}function qx(e,t){if(e==="input"||e==="change")return ji(t)}function Vx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:Vx;function pr(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var c=a[i];if(!jt.call(t,c)||!tn(e[c],t[c]))return!1}return!0}function ch(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uh(e,t){var a=ch(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ch(a)}}function fh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ri(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ri(e.document)}return t}function Su(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Gx=cl&&"documentMode"in document&&11>=document.documentMode,so=null,xu=null,hr=null,wu=!1;function mh(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;wu||so==null||so!==Ri(i)||(i=so,"selectionStart"in i&&Su(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),hr&&pr(hr,i)||(hr=i,i=Ss(xu,"onSelect"),0<i.length&&(t=new Mi("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=so)))}function Ta(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var co={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},Cu={},ph={};cl&&(ph=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function Ra(e){if(Cu[e])return Cu[e];if(!co[e])return e;var t=co[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in ph)return Cu[e]=t[a];return e}var hh=Ra("animationend"),vh=Ra("animationiteration"),gh=Ra("animationstart"),Xx=Ra("transitionrun"),Ix=Ra("transitionstart"),Zx=Ra("transitioncancel"),yh=Ra("transitionend"),bh=new Map,Tu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Tu.push("scrollEnd");function An(e,t){bh.set(e,t),wa(t,[e])}var zi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},hn=[],uo=0,Ru=0;function Di(){for(var e=uo,t=Ru=uo=0;t<e;){var a=hn[t];hn[t++]=null;var i=hn[t];hn[t++]=null;var c=hn[t];hn[t++]=null;var d=hn[t];if(hn[t++]=null,i!==null&&c!==null){var b=i.pending;b===null?c.next=c:(c.next=b.next,b.next=c),i.pending=c}d!==0&&Sh(a,c,d)}}function $i(e,t,a,i){hn[uo++]=e,hn[uo++]=t,hn[uo++]=a,hn[uo++]=i,Ru|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Eu(e,t,a,i){return $i(e,t,a,i),Li(e)}function Ea(e,t){return $i(e,null,null,t),Li(e)}function Sh(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var c=!1,d=e.return;d!==null;)d.childLanes|=a,i=d.alternate,i!==null&&(i.childLanes|=a),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-Ee(a),e=d.hiddenUpdates,i=e[c],i===null?e[c]=[t]:i.push(t),t.lane=a|536870912),d):null}function Li(e){if(50<Br)throw Br=0,Lf=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fo={};function Qx(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,a,i){return new Qx(e,t,a,i)}function Au(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ul(e,t){var a=e.alternate;return a===null?(a=nn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function xh(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Bi(e,t,a,i,c,d){var b=0;if(i=e,typeof e=="function")Au(e)&&(b=1);else if(typeof e=="string")b=Ww(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=nn(31,a,t,c),e.elementType=te,e.lanes=d,e;case C:return Aa(a.children,c,d,t);case T:b=8,c|=24;break;case A:return e=nn(12,a,t,c|2),e.elementType=A,e.lanes=d,e;case L:return e=nn(13,a,t,c),e.elementType=L,e.lanes=d,e;case k:return e=nn(19,a,t,c),e.elementType=k,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:b=10;break e;case N:b=9;break e;case j:b=11;break e;case D:b=14;break e;case H:b=16,i=null;break e}b=29,a=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=nn(b,a,t,c),t.elementType=e,t.type=i,t.lanes=d,t}function Aa(e,t,a,i){return e=nn(7,e,i,t),e.lanes=a,e}function _u(e,t,a){return e=nn(6,e,null,t),e.lanes=a,e}function wh(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function Nu(e,t,a){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ch=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var a=Ch.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ut(t)},Ch.set(e,t),t)}return{value:e,source:t,stack:ut(t)}}var mo=[],po=0,ki=null,vr=0,gn=[],yn=0,Vl=null,Xn=1,In="";function fl(e,t){mo[po++]=vr,mo[po++]=ki,ki=e,vr=t}function Th(e,t,a){gn[yn++]=Xn,gn[yn++]=In,gn[yn++]=Vl,Vl=e;var i=Xn;e=In;var c=32-Ee(i)-1;i&=~(1<<c),a+=1;var d=32-Ee(t)+c;if(30<d){var b=c-c%5;d=(i&(1<<b)-1).toString(32),i>>=b,c-=b,Xn=1<<32-Ee(t)+c|a<<c|i,In=d+e}else Xn=1<<d|a<<c|i,In=e}function Mu(e){e.return!==null&&(fl(e,1),Th(e,1,0))}function Ou(e){for(;e===ki;)ki=mo[--po],mo[po]=null,vr=mo[--po],mo[po]=null;for(;e===Vl;)Vl=gn[--yn],gn[yn]=null,In=gn[--yn],gn[yn]=null,Xn=gn[--yn],gn[yn]=null}function Rh(e,t){gn[yn++]=Xn,gn[yn++]=In,gn[yn++]=Vl,Xn=t.id,In=t.overflow,Vl=e}var Et=null,We=null,ke=!1,Gl=null,bn=!1,ju=Error(o(519));function Xl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gr(vn(t,e)),ju}function Eh(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Rt]=e,t[Ut]=i,a){case"dialog":$e("cancel",t),$e("close",t);break;case"iframe":case"object":case"embed":$e("load",t);break;case"video":case"audio":for(a=0;a<Hr.length;a++)$e(Hr[a],t);break;case"source":$e("error",t);break;case"img":case"image":case"link":$e("error",t),$e("load",t);break;case"details":$e("toggle",t);break;case"input":$e("invalid",t),Hp(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":$e("invalid",t);break;case"textarea":$e("invalid",t),Yp(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||Vg(t.textContent,a)?(i.popover!=null&&($e("beforetoggle",t),$e("toggle",t)),i.onScroll!=null&&$e("scroll",t),i.onScrollEnd!=null&&$e("scrollend",t),i.onClick!=null&&(t.onclick=sl),t=!0):t=!1,t||Xl(e,!0)}function Ah(e){for(Et=e.return;Et;)switch(Et.tag){case 5:case 31:case 13:bn=!1;return;case 27:case 3:bn=!0;return;default:Et=Et.return}}function ho(e){if(e!==Et)return!1;if(!ke)return Ah(e),ke=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Jf(e.type,e.memoizedProps)),a=!a),a&&We&&Xl(e),Ah(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Pg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Pg(e)}else t===27?(t=We,oa(e.type)?(e=nd,nd=null,We=e):We=t):We=Et?xn(e.stateNode.nextSibling):null;return!0}function _a(){We=Et=null,ke=!1}function zu(){var e=Gl;return e!==null&&(Xt===null?Xt=e:Xt.push.apply(Xt,e),Gl=null),e}function gr(e){Gl===null?Gl=[e]:Gl.push(e)}var Du=M(null),Na=null,dl=null;function Il(e,t,a){J(Du,t._currentValue),t._currentValue=a}function ml(e){e._currentValue=Du.current,Y(Du)}function $u(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function Lu(e,t,a,i){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var b=c.child;d=d.firstContext;e:for(;d!==null;){var R=d;d=c;for(var z=0;z<t.length;z++)if(R.context===t[z]){d.lanes|=a,R=d.alternate,R!==null&&(R.lanes|=a),$u(d.return,a,e),i||(b=null);break e}d=R.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(o(341));b.lanes|=a,d=b.alternate,d!==null&&(d.lanes|=a),$u(b,a,e),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===e){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function vo(e,t,a,i){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(o(387));if(b=b.memoizedProps,b!==null){var R=c.type;tn(c.pendingProps.value,b.value)||(e!==null?e.push(R):e=[R])}}else if(c===ge.current){if(b=c.alternate,b===null)throw Error(o(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Gr):e=[Gr])}c=c.return}e!==null&&Lu(t,e,a,i),t.flags|=262144}function Hi(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ma(e){Na=e,dl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function At(e){return _h(Na,e)}function Ui(e,t){return Na===null&&Ma(e),_h(e,t)}function _h(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},dl===null){if(e===null)throw Error(o(308));dl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else dl=dl.next=t;return a}var Kx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Fx=n.unstable_scheduleCallback,Jx=n.unstable_NormalPriority,ft={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bu(){return{controller:new Kx,data:new Map,refCount:0}}function yr(e){e.refCount--,e.refCount===0&&Fx(Jx,function(){e.controller.abort()})}var br=null,ku=0,go=0,yo=null;function Px(e,t){if(br===null){var a=br=[];ku=0,go=qf(),yo={status:"pending",value:void 0,then:function(i){a.push(i)}}}return ku++,t.then(Nh,Nh),t}function Nh(){if(--ku===0&&br!==null){yo!==null&&(yo.status="fulfilled");var e=br;br=null,go=0,yo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Wx(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(c){a.push(c)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var c=0;c<a.length;c++)(0,a[c])(t)},function(c){for(i.status="rejected",i.reason=c,c=0;c<a.length;c++)(0,a[c])(void 0)}),i}var Mh=O.S;O.S=function(e,t){mg=ze(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Px(e,t),Mh!==null&&Mh(e,t)};var Oa=M(null);function Hu(){var e=Oa.current;return e!==null?e:Fe.pooledCache}function Yi(e,t){t===null?J(Oa,Oa.current):J(Oa,t.pool)}function Oh(){var e=Hu();return e===null?null:{parent:ft._currentValue,pool:e}}var bo=Error(o(460)),Uu=Error(o(474)),qi=Error(o(542)),Vi={then:function(){}};function jh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function zh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(sl,sl),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$h(e),e;default:if(typeof t.status=="string")t.then(sl,sl);else{if(e=Fe,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=i}},function(i){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$h(e),e}throw za=t,bo}}function ja(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(za=a,bo):a}}var za=null;function Dh(){if(za===null)throw Error(o(459));var e=za;return za=null,e}function $h(e){if(e===bo||e===qi)throw Error(o(483))}var So=null,Sr=0;function Gi(e){var t=Sr;return Sr+=1,So===null&&(So=[]),zh(So,e,t)}function xr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xi(e,t){throw t.$$typeof===v?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Lh(e){function t(q,$){if(e){var G=q.deletions;G===null?(q.deletions=[$],q.flags|=16):G.push($)}}function a(q,$){if(!e)return null;for(;$!==null;)t(q,$),$=$.sibling;return null}function i(q){for(var $=new Map;q!==null;)q.key!==null?$.set(q.key,q):$.set(q.index,q),q=q.sibling;return $}function c(q,$){return q=ul(q,$),q.index=0,q.sibling=null,q}function d(q,$,G){return q.index=G,e?(G=q.alternate,G!==null?(G=G.index,G<$?(q.flags|=67108866,$):G):(q.flags|=67108866,$)):(q.flags|=1048576,$)}function b(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function R(q,$,G,ne){return $===null||$.tag!==6?($=_u(G,q.mode,ne),$.return=q,$):($=c($,G),$.return=q,$)}function z(q,$,G,ne){var xe=G.type;return xe===C?W(q,$,G.props.children,ne,G.key):$!==null&&($.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===H&&ja(xe)===$.type)?($=c($,G.props),xr($,G),$.return=q,$):($=Bi(G.type,G.key,G.props,null,q.mode,ne),xr($,G),$.return=q,$)}function X(q,$,G,ne){return $===null||$.tag!==4||$.stateNode.containerInfo!==G.containerInfo||$.stateNode.implementation!==G.implementation?($=Nu(G,q.mode,ne),$.return=q,$):($=c($,G.children||[]),$.return=q,$)}function W(q,$,G,ne,xe){return $===null||$.tag!==7?($=Aa(G,q.mode,ne,xe),$.return=q,$):($=c($,G),$.return=q,$)}function re(q,$,G){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=_u(""+$,q.mode,G),$.return=q,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case w:return G=Bi($.type,$.key,$.props,null,q.mode,G),xr(G,$),G.return=q,G;case E:return $=Nu($,q.mode,G),$.return=q,$;case H:return $=ja($),re(q,$,G)}if(ce($)||ee($))return $=Aa($,q.mode,G,null),$.return=q,$;if(typeof $.then=="function")return re(q,Gi($),G);if($.$$typeof===_)return re(q,Ui(q,$),G);Xi(q,$)}return null}function I(q,$,G,ne){var xe=$!==null?$.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return xe!==null?null:R(q,$,""+G,ne);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case w:return G.key===xe?z(q,$,G,ne):null;case E:return G.key===xe?X(q,$,G,ne):null;case H:return G=ja(G),I(q,$,G,ne)}if(ce(G)||ee(G))return xe!==null?null:W(q,$,G,ne,null);if(typeof G.then=="function")return I(q,$,Gi(G),ne);if(G.$$typeof===_)return I(q,$,Ui(q,G),ne);Xi(q,G)}return null}function Q(q,$,G,ne,xe){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return q=q.get(G)||null,R($,q,""+ne,xe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case w:return q=q.get(ne.key===null?G:ne.key)||null,z($,q,ne,xe);case E:return q=q.get(ne.key===null?G:ne.key)||null,X($,q,ne,xe);case H:return ne=ja(ne),Q(q,$,G,ne,xe)}if(ce(ne)||ee(ne))return q=q.get(G)||null,W($,q,ne,xe,null);if(typeof ne.then=="function")return Q(q,$,G,Gi(ne),xe);if(ne.$$typeof===_)return Q(q,$,G,Ui($,ne),xe);Xi($,ne)}return null}function ve(q,$,G,ne){for(var xe=null,He=null,be=$,_e=$=0,Be=null;be!==null&&_e<G.length;_e++){be.index>_e?(Be=be,be=null):Be=be.sibling;var Ue=I(q,be,G[_e],ne);if(Ue===null){be===null&&(be=Be);break}e&&be&&Ue.alternate===null&&t(q,be),$=d(Ue,$,_e),He===null?xe=Ue:He.sibling=Ue,He=Ue,be=Be}if(_e===G.length)return a(q,be),ke&&fl(q,_e),xe;if(be===null){for(;_e<G.length;_e++)be=re(q,G[_e],ne),be!==null&&($=d(be,$,_e),He===null?xe=be:He.sibling=be,He=be);return ke&&fl(q,_e),xe}for(be=i(be);_e<G.length;_e++)Be=Q(be,q,_e,G[_e],ne),Be!==null&&(e&&Be.alternate!==null&&be.delete(Be.key===null?_e:Be.key),$=d(Be,$,_e),He===null?xe=Be:He.sibling=Be,He=Be);return e&&be.forEach(function(ua){return t(q,ua)}),ke&&fl(q,_e),xe}function we(q,$,G,ne){if(G==null)throw Error(o(151));for(var xe=null,He=null,be=$,_e=$=0,Be=null,Ue=G.next();be!==null&&!Ue.done;_e++,Ue=G.next()){be.index>_e?(Be=be,be=null):Be=be.sibling;var ua=I(q,be,Ue.value,ne);if(ua===null){be===null&&(be=Be);break}e&&be&&ua.alternate===null&&t(q,be),$=d(ua,$,_e),He===null?xe=ua:He.sibling=ua,He=ua,be=Be}if(Ue.done)return a(q,be),ke&&fl(q,_e),xe;if(be===null){for(;!Ue.done;_e++,Ue=G.next())Ue=re(q,Ue.value,ne),Ue!==null&&($=d(Ue,$,_e),He===null?xe=Ue:He.sibling=Ue,He=Ue);return ke&&fl(q,_e),xe}for(be=i(be);!Ue.done;_e++,Ue=G.next())Ue=Q(be,q,_e,Ue.value,ne),Ue!==null&&(e&&Ue.alternate!==null&&be.delete(Ue.key===null?_e:Ue.key),$=d(Ue,$,_e),He===null?xe=Ue:He.sibling=Ue,He=Ue);return e&&be.forEach(function(u2){return t(q,u2)}),ke&&fl(q,_e),xe}function Ke(q,$,G,ne){if(typeof G=="object"&&G!==null&&G.type===C&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case w:e:{for(var xe=G.key;$!==null;){if($.key===xe){if(xe=G.type,xe===C){if($.tag===7){a(q,$.sibling),ne=c($,G.props.children),ne.return=q,q=ne;break e}}else if($.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===H&&ja(xe)===$.type){a(q,$.sibling),ne=c($,G.props),xr(ne,G),ne.return=q,q=ne;break e}a(q,$);break}else t(q,$);$=$.sibling}G.type===C?(ne=Aa(G.props.children,q.mode,ne,G.key),ne.return=q,q=ne):(ne=Bi(G.type,G.key,G.props,null,q.mode,ne),xr(ne,G),ne.return=q,q=ne)}return b(q);case E:e:{for(xe=G.key;$!==null;){if($.key===xe)if($.tag===4&&$.stateNode.containerInfo===G.containerInfo&&$.stateNode.implementation===G.implementation){a(q,$.sibling),ne=c($,G.children||[]),ne.return=q,q=ne;break e}else{a(q,$);break}else t(q,$);$=$.sibling}ne=Nu(G,q.mode,ne),ne.return=q,q=ne}return b(q);case H:return G=ja(G),Ke(q,$,G,ne)}if(ce(G))return ve(q,$,G,ne);if(ee(G)){if(xe=ee(G),typeof xe!="function")throw Error(o(150));return G=xe.call(G),we(q,$,G,ne)}if(typeof G.then=="function")return Ke(q,$,Gi(G),ne);if(G.$$typeof===_)return Ke(q,$,Ui(q,G),ne);Xi(q,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,$!==null&&$.tag===6?(a(q,$.sibling),ne=c($,G),ne.return=q,q=ne):(a(q,$),ne=_u(G,q.mode,ne),ne.return=q,q=ne),b(q)):a(q,$)}return function(q,$,G,ne){try{Sr=0;var xe=Ke(q,$,G,ne);return So=null,xe}catch(be){if(be===bo||be===qi)throw be;var He=nn(29,be,null,q.mode);return He.lanes=ne,He.return=q,He}finally{}}}var Da=Lh(!0),Bh=Lh(!1),Zl=!1;function Yu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ql(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kl(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(qe&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=Li(e),Sh(e,null,a),t}return $i(e,i,t,a),Li(e)}function wr(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,_p(e,a)}}function Vu(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var c=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?c=d=b:d=d.next=b,a=a.next}while(a!==null);d===null?c=d=t:d=d.next=t}else c=d=t;a={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Gu=!1;function Cr(){if(Gu){var e=yo;if(e!==null)throw e}}function Tr(e,t,a,i){Gu=!1;var c=e.updateQueue;Zl=!1;var d=c.firstBaseUpdate,b=c.lastBaseUpdate,R=c.shared.pending;if(R!==null){c.shared.pending=null;var z=R,X=z.next;z.next=null,b===null?d=X:b.next=X,b=z;var W=e.alternate;W!==null&&(W=W.updateQueue,R=W.lastBaseUpdate,R!==b&&(R===null?W.firstBaseUpdate=X:R.next=X,W.lastBaseUpdate=z))}if(d!==null){var re=c.baseState;b=0,W=X=z=null,R=d;do{var I=R.lane&-536870913,Q=I!==R.lane;if(Q?(Le&I)===I:(i&I)===I){I!==0&&I===go&&(Gu=!0),W!==null&&(W=W.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var ve=e,we=R;I=t;var Ke=a;switch(we.tag){case 1:if(ve=we.payload,typeof ve=="function"){re=ve.call(Ke,re,I);break e}re=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=we.payload,I=typeof ve=="function"?ve.call(Ke,re,I):ve,I==null)break e;re=g({},re,I);break e;case 2:Zl=!0}}I=R.callback,I!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=c.callbacks,Q===null?c.callbacks=[I]:Q.push(I))}else Q={lane:I,tag:R.tag,payload:R.payload,callback:R.callback,next:null},W===null?(X=W=Q,z=re):W=W.next=Q,b|=I;if(R=R.next,R===null){if(R=c.shared.pending,R===null)break;Q=R,R=Q.next,Q.next=null,c.lastBaseUpdate=Q,c.shared.pending=null}}while(!0);W===null&&(z=re),c.baseState=z,c.firstBaseUpdate=X,c.lastBaseUpdate=W,d===null&&(c.shared.lanes=0),ea|=b,e.lanes=b,e.memoizedState=re}}function kh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Hh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)kh(a[e],t)}var xo=M(null),Ii=M(0);function Uh(e,t){e=wl,J(Ii,e),J(xo,t),wl=e|t.baseLanes}function Xu(){J(Ii,wl),J(xo,xo.current)}function Iu(){wl=Ii.current,Y(xo),Y(Ii)}var ln=M(null),Sn=null;function Fl(e){var t=e.alternate;J(st,st.current&1),J(ln,e),Sn===null&&(t===null||xo.current!==null||t.memoizedState!==null)&&(Sn=e)}function Zu(e){J(st,st.current),J(ln,e),Sn===null&&(Sn=e)}function Yh(e){e.tag===22?(J(st,st.current),J(ln,e),Sn===null&&(Sn=e)):Jl()}function Jl(){J(st,st.current),J(ln,ln.current)}function an(e){Y(ln),Sn===e&&(Sn=null),Y(st)}var st=M(0);function Zi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ed(a)||td(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pl=0,Ae=null,Ze=null,dt=null,Qi=!1,wo=!1,$a=!1,Ki=0,Rr=0,Co=null,ew=0;function ot(){throw Error(o(321))}function Qu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!tn(e[a],t[a]))return!1;return!0}function Ku(e,t,a,i,c,d){return pl=d,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Tv:ff,$a=!1,d=a(i,c),$a=!1,wo&&(d=Vh(t,a,i,c)),qh(e),d}function qh(e){O.H=_r;var t=Ze!==null&&Ze.next!==null;if(pl=0,dt=Ze=Ae=null,Qi=!1,Rr=0,Co=null,t)throw Error(o(300));e===null||mt||(e=e.dependencies,e!==null&&Hi(e)&&(mt=!0))}function Vh(e,t,a,i){Ae=e;var c=0;do{if(wo&&(Co=null),Rr=0,wo=!1,25<=c)throw Error(o(301));if(c+=1,dt=Ze=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}O.H=Rv,d=t(a,i)}while(wo);return d}function tw(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Er(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(Ae.flags|=1024),t}function Fu(){var e=Ki!==0;return Ki=0,e}function Ju(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Pu(e){if(Qi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Qi=!1}pl=0,dt=Ze=Ae=null,wo=!1,Rr=Ki=0,Co=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?Ae.memoizedState=dt=e:dt=dt.next=e,dt}function ct(){if(Ze===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=dt===null?Ae.memoizedState:dt.next;if(t!==null)dt=t,Ze=e;else{if(e===null)throw Ae.alternate===null?Error(o(467)):Error(o(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},dt===null?Ae.memoizedState=dt=e:dt=dt.next=e}return dt}function Fi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Er(e){var t=Rr;return Rr+=1,Co===null&&(Co=[]),e=zh(Co,e,t),t=Ae,(dt===null?t.memoizedState:dt.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Tv:ff),e}function Ji(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Er(e);if(e.$$typeof===_)return At(e)}throw Error(o(438,String(e)))}function Wu(e){var t=null,a=Ae.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Ae.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Fi(),Ae.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=le;return t.index++,a}function hl(e,t){return typeof t=="function"?t(e):t}function Pi(e){var t=ct();return ef(t,Ze,e)}function ef(e,t,a){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=a;var c=e.baseQueue,d=i.pending;if(d!==null){if(c!==null){var b=c.next;c.next=d.next,d.next=b}t.baseQueue=c=d,i.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var R=b=null,z=null,X=t,W=!1;do{var re=X.lane&-536870913;if(re!==X.lane?(Le&re)===re:(pl&re)===re){var I=X.revertLane;if(I===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),re===go&&(W=!0);else if((pl&I)===I){X=X.next,I===go&&(W=!0);continue}else re={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},z===null?(R=z=re,b=d):z=z.next=re,Ae.lanes|=I,ea|=I;re=X.action,$a&&a(d,re),d=X.hasEagerState?X.eagerState:a(d,re)}else I={lane:re,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},z===null?(R=z=I,b=d):z=z.next=I,Ae.lanes|=re,ea|=re;X=X.next}while(X!==null&&X!==t);if(z===null?b=d:z.next=R,!tn(d,e.memoizedState)&&(mt=!0,W&&(a=yo,a!==null)))throw a;e.memoizedState=d,e.baseState=b,e.baseQueue=z,i.lastRenderedState=d}return c===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function tf(e){var t=ct(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var i=a.dispatch,c=a.pending,d=t.memoizedState;if(c!==null){a.pending=null;var b=c=c.next;do d=e(d,b.action),b=b.next;while(b!==c);tn(d,t.memoizedState)||(mt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),a.lastRenderedState=d}return[d,i]}function Gh(e,t,a){var i=Ae,c=ct(),d=ke;if(d){if(a===void 0)throw Error(o(407));a=a()}else a=t();var b=!tn((Ze||c).memoizedState,a);if(b&&(c.memoizedState=a,mt=!0),c=c.queue,af(Zh.bind(null,i,c,e),[e]),c.getSnapshot!==t||b||dt!==null&&dt.memoizedState.tag&1){if(i.flags|=2048,To(9,{destroy:void 0},Ih.bind(null,i,c,a,t),null),Fe===null)throw Error(o(349));d||(pl&127)!==0||Xh(i,t,a)}return a}function Xh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ae.updateQueue,t===null?(t=Fi(),Ae.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Ih(e,t,a,i){t.value=a,t.getSnapshot=i,Qh(t)&&Kh(e)}function Zh(e,t,a){return a(function(){Qh(t)&&Kh(e)})}function Qh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!tn(e,a)}catch{return!0}}function Kh(e){var t=Ea(e,2);t!==null&&It(t,e,2)}function nf(e){var t=Lt();if(typeof e=="function"){var a=e;if(e=a(),$a){en(!0);try{a()}finally{en(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:e},t}function Fh(e,t,a,i){return e.baseState=a,ef(e,Ze,typeof i=="function"?i:hl)}function nw(e,t,a,i,c){if(ts(e))throw Error(o(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){d.listeners.push(b)}};O.T!==null?a(!0):d.isTransition=!1,i(d),a=t.pending,a===null?(d.next=t.pending=d,Jh(t,d)):(d.next=a.next,t.pending=a.next=d)}}function Jh(e,t){var a=t.action,i=t.payload,c=e.state;if(t.isTransition){var d=O.T,b={};O.T=b;try{var R=a(c,i),z=O.S;z!==null&&z(b,R),Ph(e,t,R)}catch(X){lf(e,t,X)}finally{d!==null&&b.types!==null&&(d.types=b.types),O.T=d}}else try{d=a(c,i),Ph(e,t,d)}catch(X){lf(e,t,X)}}function Ph(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Wh(e,t,i)},function(i){return lf(e,t,i)}):Wh(e,t,a)}function Wh(e,t,a){t.status="fulfilled",t.value=a,ev(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Jh(e,a)))}function lf(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,ev(t),t=t.next;while(t!==i)}e.action=null}function ev(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function tv(e,t){return t}function nv(e,t){if(ke){var a=Fe.formState;if(a!==null){e:{var i=Ae;if(ke){if(We){t:{for(var c=We,d=bn;c.nodeType!==8;){if(!d){c=null;break t}if(c=xn(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){We=xn(c.nextSibling),i=c.data==="F!";break e}}Xl(i)}i=!1}i&&(t=a[0])}}return a=Lt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tv,lastRenderedState:t},a.queue=i,a=xv.bind(null,Ae,i),i.dispatch=a,i=nf(!1),d=uf.bind(null,Ae,!1,i.queue),i=Lt(),c={state:t,dispatch:null,action:e,pending:null},i.queue=c,a=nw.bind(null,Ae,c,d,a),c.dispatch=a,i.memoizedState=e,[t,a,!1]}function lv(e){var t=ct();return av(t,Ze,e)}function av(e,t,a){if(t=ef(e,t,tv)[0],e=Pi(hl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Er(t)}catch(b){throw b===bo?qi:b}else i=t;t=ct();var c=t.queue,d=c.dispatch;return a!==t.memoizedState&&(Ae.flags|=2048,To(9,{destroy:void 0},lw.bind(null,c,a),null)),[i,d,e]}function lw(e,t){e.action=t}function ov(e){var t=ct(),a=Ze;if(a!==null)return av(t,a,e);ct(),t=t.memoizedState,a=ct();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function To(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=Fi(),Ae.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function rv(){return ct().memoizedState}function Wi(e,t,a,i){var c=Lt();Ae.flags|=e,c.memoizedState=To(1|t,{destroy:void 0},a,i===void 0?null:i)}function es(e,t,a,i){var c=ct();i=i===void 0?null:i;var d=c.memoizedState.inst;Ze!==null&&i!==null&&Qu(i,Ze.memoizedState.deps)?c.memoizedState=To(t,d,a,i):(Ae.flags|=e,c.memoizedState=To(1|t,d,a,i))}function iv(e,t){Wi(8390656,8,e,t)}function af(e,t){es(2048,8,e,t)}function aw(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=Fi(),Ae.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function sv(e){var t=ct().memoizedState;return aw({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function cv(e,t){return es(4,2,e,t)}function uv(e,t){return es(4,4,e,t)}function fv(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dv(e,t,a){a=a!=null?a.concat([e]):null,es(4,4,fv.bind(null,t,e),a)}function of(){}function mv(e,t){var a=ct();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Qu(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function pv(e,t){var a=ct();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Qu(t,i[1]))return i[0];if(i=e(),$a){en(!0);try{e()}finally{en(!1)}}return a.memoizedState=[i,t],i}function rf(e,t,a){return a===void 0||(pl&1073741824)!==0&&(Le&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=hg(),Ae.lanes|=e,ea|=e,a)}function hv(e,t,a,i){return tn(a,t)?a:xo.current!==null?(e=rf(e,a,i),tn(e,t)||(mt=!0),e):(pl&42)===0||(pl&1073741824)!==0&&(Le&261930)===0?(mt=!0,e.memoizedState=a):(e=hg(),Ae.lanes|=e,ea|=e,t)}function vv(e,t,a,i,c){var d=B.p;B.p=d!==0&&8>d?d:8;var b=O.T,R={};O.T=R,uf(e,!1,t,a);try{var z=c(),X=O.S;if(X!==null&&X(R,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var W=Wx(z,i);Ar(e,t,W,sn(e))}else Ar(e,t,i,sn(e))}catch(re){Ar(e,t,{then:function(){},status:"rejected",reason:re},sn())}finally{B.p=d,b!==null&&R.types!==null&&(b.types=R.types),O.T=b}}function ow(){}function sf(e,t,a,i){if(e.tag!==5)throw Error(o(476));var c=gv(e).queue;vv(e,c,t,U,a===null?ow:function(){return yv(e),a(i)})}function gv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:U},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yv(e){var t=gv(e);t.next===null&&(t=e.alternate.memoizedState),Ar(e,t.next.queue,{},sn())}function cf(){return At(Gr)}function bv(){return ct().memoizedState}function Sv(){return ct().memoizedState}function rw(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=sn();e=Ql(a);var i=Kl(t,e,a);i!==null&&(It(i,t,a),wr(i,t,a)),t={cache:Bu()},e.payload=t;return}t=t.return}}function iw(e,t,a){var i=sn();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ts(e)?wv(t,a):(a=Eu(e,t,a,i),a!==null&&(It(a,e,i),Cv(a,t,i)))}function xv(e,t,a){var i=sn();Ar(e,t,a,i)}function Ar(e,t,a,i){var c={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ts(e))wv(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var b=t.lastRenderedState,R=d(b,a);if(c.hasEagerState=!0,c.eagerState=R,tn(R,b))return $i(e,t,c,0),Fe===null&&Di(),!1}catch{}finally{}if(a=Eu(e,t,c,i),a!==null)return It(a,e,i),Cv(a,t,i),!0}return!1}function uf(e,t,a,i){if(i={lane:2,revertLane:qf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ts(e)){if(t)throw Error(o(479))}else t=Eu(e,a,i,2),t!==null&&It(t,e,2)}function ts(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function wv(e,t){wo=Qi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Cv(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,_p(e,a)}}var _r={readContext:At,use:Ji,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot};_r.useEffectEvent=ot;var Tv={readContext:At,use:Ji,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:iv,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Wi(4194308,4,fv.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Wi(4194308,4,e,t)},useInsertionEffect:function(e,t){Wi(4,2,e,t)},useMemo:function(e,t){var a=Lt();t=t===void 0?null:t;var i=e();if($a){en(!0);try{e()}finally{en(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Lt();if(a!==void 0){var c=a(t);if($a){en(!0);try{a(t)}finally{en(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=iw.bind(null,Ae,e),[i.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=nf(e);var t=e.queue,a=xv.bind(null,Ae,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:of,useDeferredValue:function(e,t){var a=Lt();return rf(a,e,t)},useTransition:function(){var e=nf(!1);return e=vv.bind(null,Ae,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Ae,c=Lt();if(ke){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Fe===null)throw Error(o(349));(Le&127)!==0||Xh(i,t,a)}c.memoizedState=a;var d={value:a,getSnapshot:t};return c.queue=d,iv(Zh.bind(null,i,d,e),[e]),i.flags|=2048,To(9,{destroy:void 0},Ih.bind(null,i,d,a,t),null),a},useId:function(){var e=Lt(),t=Fe.identifierPrefix;if(ke){var a=In,i=Xn;a=(i&~(1<<32-Ee(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ki++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=ew++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:cf,useFormState:nv,useActionState:nv,useOptimistic:function(e){var t=Lt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=uf.bind(null,Ae,!0,a),a.dispatch=t,[e,t]},useMemoCache:Wu,useCacheRefresh:function(){return Lt().memoizedState=rw.bind(null,Ae)},useEffectEvent:function(e){var t=Lt(),a={impl:e};return t.memoizedState=a,function(){if((qe&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},ff={readContext:At,use:Ji,useCallback:mv,useContext:At,useEffect:af,useImperativeHandle:dv,useInsertionEffect:cv,useLayoutEffect:uv,useMemo:pv,useReducer:Pi,useRef:rv,useState:function(){return Pi(hl)},useDebugValue:of,useDeferredValue:function(e,t){var a=ct();return hv(a,Ze.memoizedState,e,t)},useTransition:function(){var e=Pi(hl)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:Er(e),t]},useSyncExternalStore:Gh,useId:bv,useHostTransitionStatus:cf,useFormState:lv,useActionState:lv,useOptimistic:function(e,t){var a=ct();return Fh(a,Ze,e,t)},useMemoCache:Wu,useCacheRefresh:Sv};ff.useEffectEvent=sv;var Rv={readContext:At,use:Ji,useCallback:mv,useContext:At,useEffect:af,useImperativeHandle:dv,useInsertionEffect:cv,useLayoutEffect:uv,useMemo:pv,useReducer:tf,useRef:rv,useState:function(){return tf(hl)},useDebugValue:of,useDeferredValue:function(e,t){var a=ct();return Ze===null?rf(a,e,t):hv(a,Ze.memoizedState,e,t)},useTransition:function(){var e=tf(hl)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:Er(e),t]},useSyncExternalStore:Gh,useId:bv,useHostTransitionStatus:cf,useFormState:ov,useActionState:ov,useOptimistic:function(e,t){var a=ct();return Ze!==null?Fh(a,Ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Wu,useCacheRefresh:Sv};Rv.useEffectEvent=sv;function df(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var mf={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=sn(),c=Ql(i);c.payload=t,a!=null&&(c.callback=a),t=Kl(e,c,i),t!==null&&(It(t,e,i),wr(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=sn(),c=Ql(i);c.tag=1,c.payload=t,a!=null&&(c.callback=a),t=Kl(e,c,i),t!==null&&(It(t,e,i),wr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=sn(),i=Ql(a);i.tag=2,t!=null&&(i.callback=t),t=Kl(e,i,a),t!==null&&(It(t,e,a),wr(t,e,a))}};function Ev(e,t,a,i,c,d,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,d,b):t.prototype&&t.prototype.isPureReactComponent?!pr(a,i)||!pr(c,d):!0}function Av(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&mf.enqueueReplaceState(t,t.state,null)}function La(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=g({},a));for(var c in e)a[c]===void 0&&(a[c]=e[c])}return a}function _v(e){zi(e)}function Nv(e){console.error(e)}function Mv(e){zi(e)}function ns(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Ov(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function pf(e,t,a){return a=Ql(a),a.tag=3,a.payload={element:null},a.callback=function(){ns(e,t)},a}function jv(e){return e=Ql(e),e.tag=3,e}function zv(e,t,a,i){var c=a.type.getDerivedStateFromError;if(typeof c=="function"){var d=i.value;e.payload=function(){return c(d)},e.callback=function(){Ov(t,a,i)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Ov(t,a,i),typeof c!="function"&&(ta===null?ta=new Set([this]):ta.add(this));var R=i.stack;this.componentDidCatch(i.value,{componentStack:R!==null?R:""})})}function sw(e,t,a,i,c){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&vo(t,a,c,!0),a=ln.current,a!==null){switch(a.tag){case 31:case 13:return Sn===null?ps():a.alternate===null&&rt===0&&(rt=3),a.flags&=-257,a.flags|=65536,a.lanes=c,i===Vi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Hf(e,i,c)),!1;case 22:return a.flags|=65536,i===Vi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Hf(e,i,c)),!1}throw Error(o(435,a.tag))}return Hf(e,i,c),ps(),!1}if(ke)return t=ln.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,i!==ju&&(e=Error(o(422),{cause:i}),gr(vn(e,a)))):(i!==ju&&(t=Error(o(423),{cause:i}),gr(vn(t,a))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,i=vn(i,a),c=pf(e.stateNode,i,c),Vu(e,c),rt!==4&&(rt=2)),!1;var d=Error(o(520),{cause:i});if(d=vn(d,a),Lr===null?Lr=[d]:Lr.push(d),rt!==4&&(rt=2),t===null)return!0;i=vn(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=c&-c,a.lanes|=e,e=pf(a.stateNode,i,e),Vu(a,e),!1;case 1:if(t=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ta===null||!ta.has(d))))return a.flags|=65536,c&=-c,a.lanes|=c,c=jv(c),zv(c,e,a,i),Vu(a,c),!1}a=a.return}while(a!==null);return!1}var hf=Error(o(461)),mt=!1;function _t(e,t,a,i){t.child=e===null?Bh(t,null,a,i):Da(t,e.child,a,i)}function Dv(e,t,a,i,c){a=a.render;var d=t.ref;if("ref"in i){var b={};for(var R in i)R!=="ref"&&(b[R]=i[R])}else b=i;return Ma(t),i=Ku(e,t,a,b,d,c),R=Fu(),e!==null&&!mt?(Ju(e,t,c),vl(e,t,c)):(ke&&R&&Mu(t),t.flags|=1,_t(e,t,i,c),t.child)}function $v(e,t,a,i,c){if(e===null){var d=a.type;return typeof d=="function"&&!Au(d)&&d.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=d,Lv(e,t,d,i,c)):(e=Bi(a.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Cf(e,c)){var b=d.memoizedProps;if(a=a.compare,a=a!==null?a:pr,a(b,i)&&e.ref===t.ref)return vl(e,t,c)}return t.flags|=1,e=ul(d,i),e.ref=t.ref,e.return=t,t.child=e}function Lv(e,t,a,i,c){if(e!==null){var d=e.memoizedProps;if(pr(d,i)&&e.ref===t.ref)if(mt=!1,t.pendingProps=i=d,Cf(e,c))(e.flags&131072)!==0&&(mt=!0);else return t.lanes=e.lanes,vl(e,t,c)}return vf(e,t,a,i,c)}function Bv(e,t,a,i){var c=i.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|a:a,e!==null){for(i=t.child=e.child,c=0;i!==null;)c=c|i.lanes|i.childLanes,i=i.sibling;i=c&~d}else i=0,t.child=null;return kv(e,t,d,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yi(t,d!==null?d.cachePool:null),d!==null?Uh(t,d):Xu(),Yh(t);else return i=t.lanes=536870912,kv(e,t,d!==null?d.baseLanes|a:a,a,i)}else d!==null?(Yi(t,d.cachePool),Uh(t,d),Jl(),t.memoizedState=null):(e!==null&&Yi(t,null),Xu(),Jl());return _t(e,t,c,a),t.child}function Nr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function kv(e,t,a,i,c){var d=Hu();return d=d===null?null:{parent:ft._currentValue,pool:d},t.memoizedState={baseLanes:a,cachePool:d},e!==null&&Yi(t,null),Xu(),Yh(t),e!==null&&vo(e,t,i,!0),t.childLanes=c,null}function ls(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Hv(e,t,a){return Da(t,e.child,null,a),e=ls(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function cw(e,t,a){var i=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ke){if(i.mode==="hidden")return e=ls(t,i),t.lanes=536870912,Nr(null,e);if(Zu(t),(e=We)?(e=Jg(e,bn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vl!==null?{id:Xn,overflow:In}:null,retryLane:536870912,hydrationErrors:null},a=wh(e),a.return=t,t.child=a,Et=t,We=null)):e=null,e===null)throw Xl(t);return t.lanes=536870912,null}return ls(t,i)}var d=e.memoizedState;if(d!==null){var b=d.dehydrated;if(Zu(t),c)if(t.flags&256)t.flags&=-257,t=Hv(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(mt||vo(e,t,a,!1),c=(a&e.childLanes)!==0,mt||c){if(i=Fe,i!==null&&(b=Np(i,a),b!==0&&b!==d.retryLane))throw d.retryLane=b,Ea(e,b),It(i,e,b),hf;ps(),t=Hv(e,t,a)}else e=d.treeContext,We=xn(b.nextSibling),Et=t,ke=!0,Gl=null,bn=!1,e!==null&&Rh(t,e),t=ls(t,i),t.flags|=4096;return t}return e=ul(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function as(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function vf(e,t,a,i,c){return Ma(t),a=Ku(e,t,a,i,void 0,c),i=Fu(),e!==null&&!mt?(Ju(e,t,c),vl(e,t,c)):(ke&&i&&Mu(t),t.flags|=1,_t(e,t,a,c),t.child)}function Uv(e,t,a,i,c,d){return Ma(t),t.updateQueue=null,a=Vh(t,i,a,c),qh(e),i=Fu(),e!==null&&!mt?(Ju(e,t,d),vl(e,t,d)):(ke&&i&&Mu(t),t.flags|=1,_t(e,t,a,d),t.child)}function Yv(e,t,a,i,c){if(Ma(t),t.stateNode===null){var d=fo,b=a.contextType;typeof b=="object"&&b!==null&&(d=At(b)),d=new a(i,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=mf,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=i,d.state=t.memoizedState,d.refs={},Yu(t),b=a.contextType,d.context=typeof b=="object"&&b!==null?At(b):fo,d.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(df(t,a,b,i),d.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(b=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),b!==d.state&&mf.enqueueReplaceState(d,d.state,null),Tr(t,i,d,c),Cr(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){d=t.stateNode;var R=t.memoizedProps,z=La(a,R);d.props=z;var X=d.context,W=a.contextType;b=fo,typeof W=="object"&&W!==null&&(b=At(W));var re=a.getDerivedStateFromProps;W=typeof re=="function"||typeof d.getSnapshotBeforeUpdate=="function",R=t.pendingProps!==R,W||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(R||X!==b)&&Av(t,d,i,b),Zl=!1;var I=t.memoizedState;d.state=I,Tr(t,i,d,c),Cr(),X=t.memoizedState,R||I!==X||Zl?(typeof re=="function"&&(df(t,a,re,i),X=t.memoizedState),(z=Zl||Ev(t,a,z,i,I,X,b))?(W||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=X),d.props=i,d.state=X,d.context=b,i=z):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{d=t.stateNode,qu(e,t),b=t.memoizedProps,W=La(a,b),d.props=W,re=t.pendingProps,I=d.context,X=a.contextType,z=fo,typeof X=="object"&&X!==null&&(z=At(X)),R=a.getDerivedStateFromProps,(X=typeof R=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b!==re||I!==z)&&Av(t,d,i,z),Zl=!1,I=t.memoizedState,d.state=I,Tr(t,i,d,c),Cr();var Q=t.memoizedState;b!==re||I!==Q||Zl||e!==null&&e.dependencies!==null&&Hi(e.dependencies)?(typeof R=="function"&&(df(t,a,R,i),Q=t.memoizedState),(W=Zl||Ev(t,a,W,i,I,Q,z)||e!==null&&e.dependencies!==null&&Hi(e.dependencies))?(X||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(i,Q,z),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(i,Q,z)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=Q),d.props=i,d.state=Q,d.context=z,i=W):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),i=!1)}return d=i,as(e,t),i=(t.flags&128)!==0,d||i?(d=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&i?(t.child=Da(t,e.child,null,c),t.child=Da(t,null,a,c)):_t(e,t,a,c),t.memoizedState=d.state,e=t.child):e=vl(e,t,c),e}function qv(e,t,a,i){return _a(),t.flags|=256,_t(e,t,a,i),t.child}var gf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yf(e){return{baseLanes:e,cachePool:Oh()}}function bf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=rn),e}function Vv(e,t,a){var i=t.pendingProps,c=!1,d=(t.flags&128)!==0,b;if((b=d)||(b=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),b&&(c=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(c?Fl(t):Jl(),(e=We)?(e=Jg(e,bn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vl!==null?{id:Xn,overflow:In}:null,retryLane:536870912,hydrationErrors:null},a=wh(e),a.return=t,t.child=a,Et=t,We=null)):e=null,e===null)throw Xl(t);return td(e)?t.lanes=32:t.lanes=536870912,null}var R=i.children;return i=i.fallback,c?(Jl(),c=t.mode,R=os({mode:"hidden",children:R},c),i=Aa(i,c,a,null),R.return=t,i.return=t,R.sibling=i,t.child=R,i=t.child,i.memoizedState=yf(a),i.childLanes=bf(e,b,a),t.memoizedState=gf,Nr(null,i)):(Fl(t),Sf(t,R))}var z=e.memoizedState;if(z!==null&&(R=z.dehydrated,R!==null)){if(d)t.flags&256?(Fl(t),t.flags&=-257,t=xf(e,t,a)):t.memoizedState!==null?(Jl(),t.child=e.child,t.flags|=128,t=null):(Jl(),R=i.fallback,c=t.mode,i=os({mode:"visible",children:i.children},c),R=Aa(R,c,a,null),R.flags|=2,i.return=t,R.return=t,i.sibling=R,t.child=i,Da(t,e.child,null,a),i=t.child,i.memoizedState=yf(a),i.childLanes=bf(e,b,a),t.memoizedState=gf,t=Nr(null,i));else if(Fl(t),td(R)){if(b=R.nextSibling&&R.nextSibling.dataset,b)var X=b.dgst;b=X,i=Error(o(419)),i.stack="",i.digest=b,gr({value:i,source:null,stack:null}),t=xf(e,t,a)}else if(mt||vo(e,t,a,!1),b=(a&e.childLanes)!==0,mt||b){if(b=Fe,b!==null&&(i=Np(b,a),i!==0&&i!==z.retryLane))throw z.retryLane=i,Ea(e,i),It(b,e,i),hf;ed(R)||ps(),t=xf(e,t,a)}else ed(R)?(t.flags|=192,t.child=e.child,t=null):(e=z.treeContext,We=xn(R.nextSibling),Et=t,ke=!0,Gl=null,bn=!1,e!==null&&Rh(t,e),t=Sf(t,i.children),t.flags|=4096);return t}return c?(Jl(),R=i.fallback,c=t.mode,z=e.child,X=z.sibling,i=ul(z,{mode:"hidden",children:i.children}),i.subtreeFlags=z.subtreeFlags&65011712,X!==null?R=ul(X,R):(R=Aa(R,c,a,null),R.flags|=2),R.return=t,i.return=t,i.sibling=R,t.child=i,Nr(null,i),i=t.child,R=e.child.memoizedState,R===null?R=yf(a):(c=R.cachePool,c!==null?(z=ft._currentValue,c=c.parent!==z?{parent:z,pool:z}:c):c=Oh(),R={baseLanes:R.baseLanes|a,cachePool:c}),i.memoizedState=R,i.childLanes=bf(e,b,a),t.memoizedState=gf,Nr(e.child,i)):(Fl(t),a=e.child,e=a.sibling,a=ul(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=a,t.memoizedState=null,a)}function Sf(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function xf(e,t,a){return Da(t,e.child,null,a),e=Sf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gv(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),$u(e.return,t,a)}function wf(e,t,a,i,c,d){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:c,treeForkCount:d}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=i,b.tail=a,b.tailMode=c,b.treeForkCount=d)}function Xv(e,t,a){var i=t.pendingProps,c=i.revealOrder,d=i.tail;i=i.children;var b=st.current,R=(b&2)!==0;if(R?(b=b&1|2,t.flags|=128):b&=1,J(st,b),_t(e,t,i,a),i=ke?vr:0,!R&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gv(e,a,t);else if(e.tag===19)Gv(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(a=t.child,c=null;a!==null;)e=a.alternate,e!==null&&Zi(e)===null&&(c=a),a=a.sibling;a=c,a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null),wf(t,!1,c,a,d,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Zi(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}wf(t,!0,a,null,d,i);break;case"together":wf(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function vl(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ea|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(vo(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ul(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ul(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Cf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Hi(e)))}function uw(e,t,a){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Il(t,ft,e.memoizedState.cache),_a();break;case 27:case 5:Me(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Il(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Zu(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Fl(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Vv(e,t,a):(Fl(t),e=vl(e,t,a),e!==null?e.sibling:null);Fl(t);break;case 19:var c=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(vo(e,t,a,!1),i=(a&t.childLanes)!==0),c){if(i)return Xv(e,t,a);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),J(st,st.current),i)break;return null;case 22:return t.lanes=0,Bv(e,t,a,t.pendingProps);case 24:Il(t,ft,e.memoizedState.cache)}return vl(e,t,a)}function Iv(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)mt=!0;else{if(!Cf(e,a)&&(t.flags&128)===0)return mt=!1,uw(e,t,a);mt=(e.flags&131072)!==0}else mt=!1,ke&&(t.flags&1048576)!==0&&Th(t,vr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ja(t.elementType),t.type=e,typeof e=="function")Au(e)?(i=La(e,i),t.tag=1,t=Yv(null,t,e,i,a)):(t.tag=0,t=vf(null,t,e,i,a));else{if(e!=null){var c=e.$$typeof;if(c===j){t.tag=11,t=Dv(null,t,e,i,a);break e}else if(c===D){t.tag=14,t=$v(null,t,e,i,a);break e}}throw t=V(e)||e,Error(o(306,t,""))}}return t;case 0:return vf(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,c=La(i,t.pendingProps),Yv(e,t,i,c,a);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var d=t.memoizedState;c=d.element,qu(e,t),Tr(t,i,null,a);var b=t.memoizedState;if(i=b.cache,Il(t,ft,i),i!==d.cache&&Lu(t,[ft],a,!0),Cr(),i=b.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=qv(e,t,i,a);break e}else if(i!==c){c=vn(Error(o(424)),t),gr(c),t=qv(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(We=xn(e.firstChild),Et=t,ke=!0,Gl=null,bn=!0,a=Bh(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(_a(),i===c){t=vl(e,t,a);break e}_t(e,t,i,a)}t=t.child}return t;case 26:return as(e,t),e===null?(a=ly(t.type,null,t.pendingProps,null))?t.memoizedState=a:ke||(a=t.type,e=t.pendingProps,i=xs(de.current).createElement(a),i[Rt]=t,i[Ut]=e,Nt(i,a,e),xt(i),t.stateNode=i):t.memoizedState=ly(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Me(t),e===null&&ke&&(i=t.stateNode=ey(t.type,t.pendingProps,de.current),Et=t,bn=!0,c=We,oa(t.type)?(nd=c,We=xn(i.firstChild)):We=c),_t(e,t,t.pendingProps.children,a),as(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ke&&((c=i=We)&&(i=Uw(i,t.type,t.pendingProps,bn),i!==null?(t.stateNode=i,Et=t,We=xn(i.firstChild),bn=!1,c=!0):c=!1),c||Xl(t)),Me(t),c=t.type,d=t.pendingProps,b=e!==null?e.memoizedProps:null,i=d.children,Jf(c,d)?i=null:b!==null&&Jf(c,b)&&(t.flags|=32),t.memoizedState!==null&&(c=Ku(e,t,tw,null,null,a),Gr._currentValue=c),as(e,t),_t(e,t,i,a),t.child;case 6:return e===null&&ke&&((e=a=We)&&(a=Yw(a,t.pendingProps,bn),a!==null?(t.stateNode=a,Et=t,We=null,e=!0):e=!1),e||Xl(t)),null;case 13:return Vv(e,t,a);case 4:return pe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Da(t,null,i,a):_t(e,t,i,a),t.child;case 11:return Dv(e,t,t.type,t.pendingProps,a);case 7:return _t(e,t,t.pendingProps,a),t.child;case 8:return _t(e,t,t.pendingProps.children,a),t.child;case 12:return _t(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Il(t,t.type,i.value),_t(e,t,i.children,a),t.child;case 9:return c=t.type._context,i=t.pendingProps.children,Ma(t),c=At(c),i=i(c),t.flags|=1,_t(e,t,i,a),t.child;case 14:return $v(e,t,t.type,t.pendingProps,a);case 15:return Lv(e,t,t.type,t.pendingProps,a);case 19:return Xv(e,t,a);case 31:return cw(e,t,a);case 22:return Bv(e,t,a,t.pendingProps);case 24:return Ma(t),i=At(ft),e===null?(c=Hu(),c===null&&(c=Fe,d=Bu(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=a),c=d),t.memoizedState={parent:i,cache:c},Yu(t),Il(t,ft,c)):((e.lanes&a)!==0&&(qu(e,t),Tr(t,null,null,a),Cr()),c=e.memoizedState,d=t.memoizedState,c.parent!==i?(c={parent:i,cache:i},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Il(t,ft,i)):(i=d.cache,Il(t,ft,i),i!==c.cache&&Lu(t,[ft],a,!0))),_t(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function gl(e){e.flags|=4}function Tf(e,t,a,i,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(bg())e.flags|=8192;else throw za=Vi,Uu}else e.flags&=-16777217}function Zv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sy(t))if(bg())e.flags|=8192;else throw za=Vi,Uu}function rs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ep():536870912,e.lanes|=t,_o|=t)}function Mr(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)a|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function fw(e,t,a){var i=t.pendingProps;switch(Ou(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),ml(ft),he(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ho(t)?gl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zu())),et(t),null;case 26:var c=t.type,d=t.memoizedState;return e===null?(gl(t),d!==null?(et(t),Zv(t,d)):(et(t),Tf(t,c,null,i,a))):d?d!==e.memoizedState?(gl(t),et(t),Zv(t,d)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&gl(t),et(t),Tf(t,c,e,i,a)),null;case 27:if(Se(t),a=de.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&gl(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return et(t),null}e=ae.current,ho(t)?Eh(t):(e=ey(c,i,a),t.stateNode=e,gl(t))}return et(t),null;case 5:if(Se(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&gl(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return et(t),null}if(d=ae.current,ho(t))Eh(t);else{var b=xs(de.current);switch(d){case 1:d=b.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:d=b.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":d=b.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":d=b.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":d=b.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?b.createElement("select",{is:i.is}):b.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?b.createElement(c,{is:i.is}):b.createElement(c)}}d[Rt]=t,d[Ut]=i;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)d.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=d;e:switch(Nt(d,c,i),c){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&gl(t)}}return et(t),Tf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&gl(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=de.current,ho(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,c=Et,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[Rt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||Vg(e.nodeValue,a)),e||Xl(t,!0)}else e=xs(e).createTextNode(i),e[Rt]=t,t.stateNode=e}return et(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=ho(t),a!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Rt]=t}else _a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else a=zu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(an(t),t):(an(t),null);if((t.flags&128)!==0)throw Error(o(558))}return et(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ho(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[Rt]=t}else _a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),c=!1}else c=zu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(an(t),t):(an(t),null)}return an(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==c&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),rs(t,t.updateQueue),et(t),null);case 4:return he(),e===null&&If(t.stateNode.containerInfo),et(t),null;case 10:return ml(t.type),et(t),null;case 19:if(Y(st),i=t.memoizedState,i===null)return et(t),null;if(c=(t.flags&128)!==0,d=i.rendering,d===null)if(c)Mr(i,!1);else{if(rt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Zi(e),d!==null){for(t.flags|=128,Mr(i,!1),e=d.updateQueue,t.updateQueue=e,rs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)xh(a,e),a=a.sibling;return J(st,st.current&1|2),ke&&fl(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&ze()>fs&&(t.flags|=128,c=!0,Mr(i,!1),t.lanes=4194304)}else{if(!c)if(e=Zi(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,rs(t,e),Mr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!ke)return et(t),null}else 2*ze()-i.renderingStartTime>fs&&a!==536870912&&(t.flags|=128,c=!0,Mr(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ze(),e.sibling=null,a=st.current,J(st,c?a&1|2:a&1),ke&&fl(t,i.treeForkCount),e):(et(t),null);case 22:case 23:return an(t),Iu(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),a=t.updateQueue,a!==null&&rs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Y(Oa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ml(ft),et(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function dw(e,t){switch(Ou(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ml(ft),he(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Se(t),null;case 31:if(t.memoizedState!==null){if(an(t),t.alternate===null)throw Error(o(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(an(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(st),null;case 4:return he(),null;case 10:return ml(t.type),null;case 22:case 23:return an(t),Iu(),e!==null&&Y(Oa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ml(ft),null;case 25:return null;default:return null}}function Qv(e,t){switch(Ou(t),t.tag){case 3:ml(ft),he();break;case 26:case 27:case 5:Se(t);break;case 4:he();break;case 31:t.memoizedState!==null&&an(t);break;case 13:an(t);break;case 19:Y(st);break;case 10:ml(t.type);break;case 22:case 23:an(t),Iu(),e!==null&&Y(Oa);break;case 24:ml(ft)}}function Or(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){i=void 0;var d=a.create,b=a.inst;i=d(),b.destroy=i}a=a.next}while(a!==c)}}catch(R){Xe(t,t.return,R)}}function Pl(e,t,a){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var d=c.next;i=d;do{if((i.tag&e)===e){var b=i.inst,R=b.destroy;if(R!==void 0){b.destroy=void 0,c=t;var z=a,X=R;try{X()}catch(W){Xe(c,z,W)}}}i=i.next}while(i!==d)}}catch(W){Xe(t,t.return,W)}}function Kv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Hh(t,a)}catch(i){Xe(e,e.return,i)}}}function Fv(e,t,a){a.props=La(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Xe(e,t,i)}}function jr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(c){Xe(e,t,c)}}function Zn(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(c){Xe(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){Xe(e,t,c)}else a.current=null}function Jv(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(c){Xe(e,e.return,c)}}function Rf(e,t,a){try{var i=e.stateNode;Dw(i,e.type,a,t),i[Ut]=t}catch(c){Xe(e,e.return,c)}}function Pv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&oa(e.type)||e.tag===4}function Ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&oa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Af(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=sl));else if(i!==4&&(i===27&&oa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Af(e,t,a),e=e.sibling;e!==null;)Af(e,t,a),e=e.sibling}function is(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&oa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(is(e,t,a),e=e.sibling;e!==null;)is(e,t,a),e=e.sibling}function Wv(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Nt(t,i,a),t[Rt]=e,t[Ut]=a}catch(d){Xe(e,e.return,d)}}var yl=!1,pt=!1,_f=!1,eg=typeof WeakSet=="function"?WeakSet:Set,wt=null;function mw(e,t){if(e=e.containerInfo,Kf=_s,e=dh(e),Su(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var c=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var b=0,R=-1,z=-1,X=0,W=0,re=e,I=null;t:for(;;){for(var Q;re!==a||c!==0&&re.nodeType!==3||(R=b+c),re!==d||i!==0&&re.nodeType!==3||(z=b+i),re.nodeType===3&&(b+=re.nodeValue.length),(Q=re.firstChild)!==null;)I=re,re=Q;for(;;){if(re===e)break t;if(I===a&&++X===c&&(R=b),I===d&&++W===i&&(z=b),(Q=re.nextSibling)!==null)break;re=I,I=re.parentNode}re=Q}a=R===-1||z===-1?null:{start:R,end:z}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ff={focusedElem:e,selectionRange:a},_s=!1,wt=t;wt!==null;)if(t=wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,wt=e;else for(;wt!==null;){switch(t=wt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)c=e[a],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,a=t,c=d.memoizedProps,d=d.memoizedState,i=a.stateNode;try{var ve=La(a.type,c);e=i.getSnapshotBeforeUpdate(ve,d),i.__reactInternalSnapshotBeforeUpdate=e}catch(we){Xe(a,a.return,we)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Wf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,wt=e;break}wt=t.return}}function tg(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(e,a),i&4&&Or(5,a);break;case 1:if(Sl(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){Xe(a,a.return,b)}else{var c=La(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Xe(a,a.return,b)}}i&64&&Kv(a),i&512&&jr(a,a.return);break;case 3:if(Sl(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Hh(e,t)}catch(b){Xe(a,a.return,b)}}break;case 27:t===null&&i&4&&Wv(a);case 26:case 5:Sl(e,a),t===null&&i&4&&Jv(a),i&512&&jr(a,a.return);break;case 12:Sl(e,a);break;case 31:Sl(e,a),i&4&&ag(e,a);break;case 13:Sl(e,a),i&4&&og(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=ww.bind(null,a),qw(e,a))));break;case 22:if(i=a.memoizedState!==null||yl,!i){t=t!==null&&t.memoizedState!==null||pt,c=yl;var d=pt;yl=i,(pt=t)&&!d?xl(e,a,(a.subtreeFlags&8772)!==0):Sl(e,a),yl=c,pt=d}break;case 30:break;default:Sl(e,a)}}function ng(e){var t=e.alternate;t!==null&&(e.alternate=null,ng(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var lt=null,qt=!1;function bl(e,t,a){for(a=a.child;a!==null;)lg(e,t,a),a=a.sibling}function lg(e,t,a){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(Wt,a)}catch{}switch(a.tag){case 26:pt||Zn(a,t),bl(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:pt||Zn(a,t);var i=lt,c=qt;oa(a.type)&&(lt=a.stateNode,qt=!1),bl(e,t,a),Yr(a.stateNode),lt=i,qt=c;break;case 5:pt||Zn(a,t);case 6:if(i=lt,c=qt,lt=null,bl(e,t,a),lt=i,qt=c,lt!==null)if(qt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(a.stateNode)}catch(d){Xe(a,t,d)}else try{lt.removeChild(a.stateNode)}catch(d){Xe(a,t,d)}break;case 18:lt!==null&&(qt?(e=lt,Kg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Lo(e)):Kg(lt,a.stateNode));break;case 4:i=lt,c=qt,lt=a.stateNode.containerInfo,qt=!0,bl(e,t,a),lt=i,qt=c;break;case 0:case 11:case 14:case 15:Pl(2,a,t),pt||Pl(4,a,t),bl(e,t,a);break;case 1:pt||(Zn(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&Fv(a,t,i)),bl(e,t,a);break;case 21:bl(e,t,a);break;case 22:pt=(i=pt)||a.memoizedState!==null,bl(e,t,a),pt=i;break;default:bl(e,t,a)}}function ag(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Lo(e)}catch(a){Xe(t,t.return,a)}}}function og(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Lo(e)}catch(a){Xe(t,t.return,a)}}function pw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new eg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new eg),t;default:throw Error(o(435,e.tag))}}function ss(e,t){var a=pw(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var c=Cw.bind(null,e,i);i.then(c,c)}})}function Vt(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var c=a[i],d=e,b=t,R=b;e:for(;R!==null;){switch(R.tag){case 27:if(oa(R.type)){lt=R.stateNode,qt=!1;break e}break;case 5:lt=R.stateNode,qt=!1;break e;case 3:case 4:lt=R.stateNode.containerInfo,qt=!0;break e}R=R.return}if(lt===null)throw Error(o(160));lg(d,b,c),lt=null,qt=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)rg(t,e),t=t.sibling}var _n=null;function rg(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Vt(t,e),Gt(e),i&4&&(Pl(3,e,e.return),Or(3,e),Pl(5,e,e.return));break;case 1:Vt(t,e),Gt(e),i&512&&(pt||a===null||Zn(a,a.return)),i&64&&yl&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var c=_n;if(Vt(t,e),Gt(e),i&512&&(pt||a===null||Zn(a,a.return)),i&4){var d=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,c=c.ownerDocument||c;t:switch(i){case"title":d=c.getElementsByTagName("title")[0],(!d||d[or]||d[Rt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(i),c.head.insertBefore(d,c.querySelector("head > title"))),Nt(d,i,a),d[Rt]=e,xt(d),i=d;break e;case"link":var b=ry("link","href",c).get(i+(a.href||""));if(b){for(var R=0;R<b.length;R++)if(d=b[R],d.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&d.getAttribute("rel")===(a.rel==null?null:a.rel)&&d.getAttribute("title")===(a.title==null?null:a.title)&&d.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(R,1);break t}}d=c.createElement(i),Nt(d,i,a),c.head.appendChild(d);break;case"meta":if(b=ry("meta","content",c).get(i+(a.content||""))){for(R=0;R<b.length;R++)if(d=b[R],d.getAttribute("content")===(a.content==null?null:""+a.content)&&d.getAttribute("name")===(a.name==null?null:a.name)&&d.getAttribute("property")===(a.property==null?null:a.property)&&d.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&d.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(R,1);break t}}d=c.createElement(i),Nt(d,i,a),c.head.appendChild(d);break;default:throw Error(o(468,i))}d[Rt]=e,xt(d),i=d}e.stateNode=i}else iy(c,e.type,e.stateNode);else e.stateNode=oy(c,i,e.memoizedProps);else d!==i?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,i===null?iy(c,e.type,e.stateNode):oy(c,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Rf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Vt(t,e),Gt(e),i&512&&(pt||a===null||Zn(a,a.return)),a!==null&&i&4&&Rf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Vt(t,e),Gt(e),i&512&&(pt||a===null||Zn(a,a.return)),e.flags&32){c=e.stateNode;try{ao(c,"")}catch(ve){Xe(e,e.return,ve)}}i&4&&e.stateNode!=null&&(c=e.memoizedProps,Rf(e,c,a!==null?a.memoizedProps:c)),i&1024&&(_f=!0);break;case 6:if(Vt(t,e),Gt(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(ve){Xe(e,e.return,ve)}}break;case 3:if(Ts=null,c=_n,_n=ws(t.containerInfo),Vt(t,e),_n=c,Gt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Lo(t.containerInfo)}catch(ve){Xe(e,e.return,ve)}_f&&(_f=!1,ig(e));break;case 4:i=_n,_n=ws(e.stateNode.containerInfo),Vt(t,e),Gt(e),_n=i;break;case 12:Vt(t,e),Gt(e);break;case 31:Vt(t,e),Gt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ss(e,i)));break;case 13:Vt(t,e),Gt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(us=ze()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ss(e,i)));break;case 22:c=e.memoizedState!==null;var z=a!==null&&a.memoizedState!==null,X=yl,W=pt;if(yl=X||c,pt=W||z,Vt(t,e),pt=W,yl=X,Gt(e),i&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(a===null||z||yl||pt||Ba(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){z=a=t;try{if(d=z.stateNode,c)b=d.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{R=z.stateNode;var re=z.memoizedProps.style,I=re!=null&&re.hasOwnProperty("display")?re.display:null;R.style.display=I==null||typeof I=="boolean"?"":(""+I).trim()}}catch(ve){Xe(z,z.return,ve)}}}else if(t.tag===6){if(a===null){z=t;try{z.stateNode.nodeValue=c?"":z.memoizedProps}catch(ve){Xe(z,z.return,ve)}}}else if(t.tag===18){if(a===null){z=t;try{var Q=z.stateNode;c?Fg(Q,!0):Fg(z.stateNode,!1)}catch(ve){Xe(z,z.return,ve)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,ss(e,a))));break;case 19:Vt(t,e),Gt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ss(e,i)));break;case 30:break;case 21:break;default:Vt(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(Pv(i)){a=i;break}i=i.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var c=a.stateNode,d=Ef(e);is(e,d,c);break;case 5:var b=a.stateNode;a.flags&32&&(ao(b,""),a.flags&=-33);var R=Ef(e);is(e,R,b);break;case 3:case 4:var z=a.stateNode.containerInfo,X=Ef(e);Af(e,X,z);break;default:throw Error(o(161))}}catch(W){Xe(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ig(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ig(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tg(e,t.alternate,t),t=t.sibling}function Ba(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pl(4,t,t.return),Ba(t);break;case 1:Zn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Fv(t,t.return,a),Ba(t);break;case 27:Yr(t.stateNode);case 26:case 5:Zn(t,t.return),Ba(t);break;case 22:t.memoizedState===null&&Ba(t);break;case 30:Ba(t);break;default:Ba(t)}e=e.sibling}}function xl(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,c=e,d=t,b=d.flags;switch(d.tag){case 0:case 11:case 15:xl(c,d,a),Or(4,d);break;case 1:if(xl(c,d,a),i=d,c=i.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(X){Xe(i,i.return,X)}if(i=d,c=i.updateQueue,c!==null){var R=i.stateNode;try{var z=c.shared.hiddenCallbacks;if(z!==null)for(c.shared.hiddenCallbacks=null,c=0;c<z.length;c++)kh(z[c],R)}catch(X){Xe(i,i.return,X)}}a&&b&64&&Kv(d),jr(d,d.return);break;case 27:Wv(d);case 26:case 5:xl(c,d,a),a&&i===null&&b&4&&Jv(d),jr(d,d.return);break;case 12:xl(c,d,a);break;case 31:xl(c,d,a),a&&b&4&&ag(c,d);break;case 13:xl(c,d,a),a&&b&4&&og(c,d);break;case 22:d.memoizedState===null&&xl(c,d,a),jr(d,d.return);break;case 30:break;default:xl(c,d,a)}t=t.sibling}}function Nf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&yr(a))}function Mf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yr(e))}function Nn(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sg(e,t,a,i),t=t.sibling}function sg(e,t,a,i){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Nn(e,t,a,i),c&2048&&Or(9,t);break;case 1:Nn(e,t,a,i);break;case 3:Nn(e,t,a,i),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yr(e)));break;case 12:if(c&2048){Nn(e,t,a,i),e=t.stateNode;try{var d=t.memoizedProps,b=d.id,R=d.onPostCommit;typeof R=="function"&&R(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(z){Xe(t,t.return,z)}}else Nn(e,t,a,i);break;case 31:Nn(e,t,a,i);break;case 13:Nn(e,t,a,i);break;case 23:break;case 22:d=t.stateNode,b=t.alternate,t.memoizedState!==null?d._visibility&2?Nn(e,t,a,i):zr(e,t):d._visibility&2?Nn(e,t,a,i):(d._visibility|=2,Ro(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Nf(b,t);break;case 24:Nn(e,t,a,i),c&2048&&Mf(t.alternate,t);break;default:Nn(e,t,a,i)}}function Ro(e,t,a,i,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,b=t,R=a,z=i,X=b.flags;switch(b.tag){case 0:case 11:case 15:Ro(d,b,R,z,c),Or(8,b);break;case 23:break;case 22:var W=b.stateNode;b.memoizedState!==null?W._visibility&2?Ro(d,b,R,z,c):zr(d,b):(W._visibility|=2,Ro(d,b,R,z,c)),c&&X&2048&&Nf(b.alternate,b);break;case 24:Ro(d,b,R,z,c),c&&X&2048&&Mf(b.alternate,b);break;default:Ro(d,b,R,z,c)}t=t.sibling}}function zr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,c=i.flags;switch(i.tag){case 22:zr(a,i),c&2048&&Nf(i.alternate,i);break;case 24:zr(a,i),c&2048&&Mf(i.alternate,i);break;default:zr(a,i)}t=t.sibling}}var Dr=8192;function Eo(e,t,a){if(e.subtreeFlags&Dr)for(e=e.child;e!==null;)cg(e,t,a),e=e.sibling}function cg(e,t,a){switch(e.tag){case 26:Eo(e,t,a),e.flags&Dr&&e.memoizedState!==null&&e2(a,_n,e.memoizedState,e.memoizedProps);break;case 5:Eo(e,t,a);break;case 3:case 4:var i=_n;_n=ws(e.stateNode.containerInfo),Eo(e,t,a),_n=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Dr,Dr=16777216,Eo(e,t,a),Dr=i):Eo(e,t,a));break;default:Eo(e,t,a)}}function ug(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function $r(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];wt=i,dg(i,e)}ug(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fg(e),e=e.sibling}function fg(e){switch(e.tag){case 0:case 11:case 15:$r(e),e.flags&2048&&Pl(9,e,e.return);break;case 3:$r(e);break;case 12:$r(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,cs(e)):$r(e);break;default:$r(e)}}function cs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];wt=i,dg(i,e)}ug(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pl(8,t,t.return),cs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,cs(t));break;default:cs(t)}e=e.sibling}}function dg(e,t){for(;wt!==null;){var a=wt;switch(a.tag){case 0:case 11:case 15:Pl(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:yr(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,wt=i;else e:for(a=e;wt!==null;){i=wt;var c=i.sibling,d=i.return;if(ng(i),i===a){wt=null;break e}if(c!==null){c.return=d,wt=c;break e}wt=d}}}var hw={getCacheForType:function(e){var t=At(ft),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return At(ft).controller.signal}},vw=typeof WeakMap=="function"?WeakMap:Map,qe=0,Fe=null,De=null,Le=0,Ge=0,on=null,Wl=!1,Ao=!1,Of=!1,wl=0,rt=0,ea=0,ka=0,jf=0,rn=0,_o=0,Lr=null,Xt=null,zf=!1,us=0,mg=0,fs=1/0,ds=null,ta=null,bt=0,na=null,No=null,Cl=0,Df=0,$f=null,pg=null,Br=0,Lf=null;function sn(){return(qe&2)!==0&&Le!==0?Le&-Le:O.T!==null?qf():Mp()}function hg(){if(rn===0)if((Le&536870912)===0||ke){var e=Ja;Ja<<=1,(Ja&3932160)===0&&(Ja=262144),rn=e}else rn=536870912;return e=ln.current,e!==null&&(e.flags|=32),rn}function It(e,t,a){(e===Fe&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Mo(e,0),la(e,Le,rn,!1)),ar(e,a),((qe&2)===0||e!==Fe)&&(e===Fe&&((qe&2)===0&&(ka|=a),rt===4&&la(e,Le,rn,!1)),Qn(e))}function vg(e,t,a){if((qe&6)!==0)throw Error(o(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||lr(e,t),c=i?bw(e,t):kf(e,t,!0),d=i;do{if(c===0){Ao&&!i&&la(e,t,0,!1);break}else{if(a=e.current.alternate,d&&!gw(a)){c=kf(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var R=e;c=Lr;var z=R.current.memoizedState.isDehydrated;if(z&&(Mo(R,b).flags|=256),b=kf(R,b,!1),b!==2){if(Of&&!z){R.errorRecoveryDisabledLanes|=d,ka|=d,c=4;break e}d=Xt,Xt=c,d!==null&&(Xt===null?Xt=d:Xt.push.apply(Xt,d))}c=b}if(d=!1,c!==2)continue}}if(c===1){Mo(e,0),la(e,t,0,!0);break}e:{switch(i=e,d=c,d){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:la(i,t,rn,!Wl);break e;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=us+300-ze(),10<c)){if(la(i,t,rn,!Wl),Ul(i,0,!0)!==0)break e;Cl=t,i.timeoutHandle=Zg(gg.bind(null,i,a,Xt,ds,zf,t,rn,ka,_o,Wl,d,"Throttled",-0,0),c);break e}gg(i,a,Xt,ds,zf,t,rn,ka,_o,Wl,d,null,-0,0)}}break}while(!0);Qn(e)}function gg(e,t,a,i,c,d,b,R,z,X,W,re,I,Q){if(e.timeoutHandle=-1,re=t.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sl},cg(t,d,re);var ve=(d&62914560)===d?us-ze():(d&4194048)===d?mg-ze():0;if(ve=t2(re,ve),ve!==null){Cl=d,e.cancelPendingCommit=ve(Rg.bind(null,e,t,d,a,i,c,b,R,z,W,re,null,I,Q)),la(e,d,b,!X);return}}Rg(e,t,d,a,i,c,b,R,z)}function gw(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var c=a[i],d=c.getSnapshot;c=c.value;try{if(!tn(d(),c))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function la(e,t,a,i){t&=~jf,t&=~ka,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var c=t;0<c;){var d=31-Ee(c),b=1<<d;i[d]=-1,c&=~b}a!==0&&Ap(e,a,t)}function ms(){return(qe&6)===0?(kr(0),!1):!0}function Bf(){if(De!==null){if(Ge===0)var e=De.return;else e=De,dl=Na=null,Pu(e),So=null,Sr=0,e=De;for(;e!==null;)Qv(e.alternate,e),e=e.return;De=null}}function Mo(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Bw(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Cl=0,Bf(),Fe=e,De=a=ul(e.current,null),Le=t,Ge=0,on=null,Wl=!1,Ao=lr(e,t),Of=!1,_o=rn=jf=ka=ea=rt=0,Xt=Lr=null,zf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var c=31-Ee(i),d=1<<c;t|=e[c],i&=~d}return wl=t,Di(),a}function yg(e,t){Ae=null,O.H=_r,t===bo||t===qi?(t=Dh(),Ge=3):t===Uu?(t=Dh(),Ge=4):Ge=t===hf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,on=t,De===null&&(rt=1,ns(e,vn(t,e.current)))}function bg(){var e=ln.current;return e===null?!0:(Le&4194048)===Le?Sn===null:(Le&62914560)===Le||(Le&536870912)!==0?e===Sn:!1}function Sg(){var e=O.H;return O.H=_r,e===null?_r:e}function xg(){var e=O.A;return O.A=hw,e}function ps(){rt=4,Wl||(Le&4194048)!==Le&&ln.current!==null||(Ao=!0),(ea&134217727)===0&&(ka&134217727)===0||Fe===null||la(Fe,Le,rn,!1)}function kf(e,t,a){var i=qe;qe|=2;var c=Sg(),d=xg();(Fe!==e||Le!==t)&&(ds=null,Mo(e,t)),t=!1;var b=rt;e:do try{if(Ge!==0&&De!==null){var R=De,z=on;switch(Ge){case 8:Bf(),b=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(t=!0);var X=Ge;if(Ge=0,on=null,Oo(e,R,z,X),a&&Ao){b=0;break e}break;default:X=Ge,Ge=0,on=null,Oo(e,R,z,X)}}yw(),b=rt;break}catch(W){yg(e,W)}while(!0);return t&&e.shellSuspendCounter++,dl=Na=null,qe=i,O.H=c,O.A=d,De===null&&(Fe=null,Le=0,Di()),b}function yw(){for(;De!==null;)wg(De)}function bw(e,t){var a=qe;qe|=2;var i=Sg(),c=xg();Fe!==e||Le!==t?(ds=null,fs=ze()+500,Mo(e,t)):Ao=lr(e,t);e:do try{if(Ge!==0&&De!==null){t=De;var d=on;t:switch(Ge){case 1:Ge=0,on=null,Oo(e,t,d,1);break;case 2:case 9:if(jh(d)){Ge=0,on=null,Cg(t);break}t=function(){Ge!==2&&Ge!==9||Fe!==e||(Ge=7),Qn(e)},d.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:jh(d)?(Ge=0,on=null,Cg(t)):(Ge=0,on=null,Oo(e,t,d,7));break;case 5:var b=null;switch(De.tag){case 26:b=De.memoizedState;case 5:case 27:var R=De;if(b?sy(b):R.stateNode.complete){Ge=0,on=null;var z=R.sibling;if(z!==null)De=z;else{var X=R.return;X!==null?(De=X,hs(X)):De=null}break t}}Ge=0,on=null,Oo(e,t,d,5);break;case 6:Ge=0,on=null,Oo(e,t,d,6);break;case 8:Bf(),rt=6;break e;default:throw Error(o(462))}}Sw();break}catch(W){yg(e,W)}while(!0);return dl=Na=null,O.H=i,O.A=c,qe=a,De!==null?0:(Fe=null,Le=0,Di(),rt)}function Sw(){for(;De!==null&&!zt();)wg(De)}function wg(e){var t=Iv(e.alternate,e,wl);e.memoizedProps=e.pendingProps,t===null?hs(e):De=t}function Cg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Uv(a,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=Uv(a,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:Pu(t);default:Qv(a,t),t=De=xh(t,wl),t=Iv(a,t,wl)}e.memoizedProps=e.pendingProps,t===null?hs(e):De=t}function Oo(e,t,a,i){dl=Na=null,Pu(t),So=null,Sr=0;var c=t.return;try{if(sw(e,c,t,a,Le)){rt=1,ns(e,vn(a,e.current)),De=null;return}}catch(d){if(c!==null)throw De=c,d;rt=1,ns(e,vn(a,e.current)),De=null;return}t.flags&32768?(ke||i===1?e=!0:Ao||(Le&536870912)!==0?e=!1:(Wl=e=!0,(i===2||i===9||i===3||i===6)&&(i=ln.current,i!==null&&i.tag===13&&(i.flags|=16384))),Tg(t,e)):hs(t)}function hs(e){var t=e;do{if((t.flags&32768)!==0){Tg(t,Wl);return}e=t.return;var a=fw(t.alternate,t,wl);if(a!==null){De=a;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);rt===0&&(rt=5)}function Tg(e,t){do{var a=dw(e.alternate,e);if(a!==null){a.flags&=32767,De=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=a}while(e!==null);rt=6,De=null}function Rg(e,t,a,i,c,d,b,R,z){e.cancelPendingCommit=null;do vs();while(bt!==0);if((qe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(d=t.lanes|t.childLanes,d|=Ru,WS(e,a,d,b,R,z),e===Fe&&(De=Fe=null,Le=0),No=t,na=e,Cl=a,Df=d,$f=c,pg=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tw(Ye,function(){return Mg(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=O.T,O.T=null,c=B.p,B.p=2,b=qe,qe|=4;try{mw(e,t,a)}finally{qe=b,B.p=c,O.T=i}}bt=1,Eg(),Ag(),_g()}}function Eg(){if(bt===1){bt=0;var e=na,t=No,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var i=B.p;B.p=2;var c=qe;qe|=4;try{rg(t,e);var d=Ff,b=dh(e.containerInfo),R=d.focusedElem,z=d.selectionRange;if(b!==R&&R&&R.ownerDocument&&fh(R.ownerDocument.documentElement,R)){if(z!==null&&Su(R)){var X=z.start,W=z.end;if(W===void 0&&(W=X),"selectionStart"in R)R.selectionStart=X,R.selectionEnd=Math.min(W,R.value.length);else{var re=R.ownerDocument||document,I=re&&re.defaultView||window;if(I.getSelection){var Q=I.getSelection(),ve=R.textContent.length,we=Math.min(z.start,ve),Ke=z.end===void 0?we:Math.min(z.end,ve);!Q.extend&&we>Ke&&(b=Ke,Ke=we,we=b);var q=uh(R,we),$=uh(R,Ke);if(q&&$&&(Q.rangeCount!==1||Q.anchorNode!==q.node||Q.anchorOffset!==q.offset||Q.focusNode!==$.node||Q.focusOffset!==$.offset)){var G=re.createRange();G.setStart(q.node,q.offset),Q.removeAllRanges(),we>Ke?(Q.addRange(G),Q.extend($.node,$.offset)):(G.setEnd($.node,$.offset),Q.addRange(G))}}}}for(re=[],Q=R;Q=Q.parentNode;)Q.nodeType===1&&re.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<re.length;R++){var ne=re[R];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}_s=!!Kf,Ff=Kf=null}finally{qe=c,B.p=i,O.T=a}}e.current=t,bt=2}}function Ag(){if(bt===2){bt=0;var e=na,t=No,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var i=B.p;B.p=2;var c=qe;qe|=4;try{tg(e,t.alternate,t)}finally{qe=c,B.p=i,O.T=a}}bt=3}}function _g(){if(bt===4||bt===3){bt=0,Pt();var e=na,t=No,a=Cl,i=pg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?bt=5:(bt=0,No=na=null,Ng(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(ta=null),tu(a),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(Wt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=O.T,c=B.p,B.p=2,O.T=null;try{for(var d=e.onRecoverableError,b=0;b<i.length;b++){var R=i[b];d(R.value,{componentStack:R.stack})}}finally{O.T=t,B.p=c}}(Cl&3)!==0&&vs(),Qn(e),c=e.pendingLanes,(a&261930)!==0&&(c&42)!==0?e===Lf?Br++:(Br=0,Lf=e):Br=0,kr(0)}}function Ng(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yr(t)))}function vs(){return Eg(),Ag(),_g(),Mg()}function Mg(){if(bt!==5)return!1;var e=na,t=Df;Df=0;var a=tu(Cl),i=O.T,c=B.p;try{B.p=32>a?32:a,O.T=null,a=$f,$f=null;var d=na,b=Cl;if(bt=0,No=na=null,Cl=0,(qe&6)!==0)throw Error(o(331));var R=qe;if(qe|=4,fg(d.current),sg(d,d.current,b,a),qe=R,kr(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Wt,d)}catch{}return!0}finally{B.p=c,O.T=i,Ng(e,t)}}function Og(e,t,a){t=vn(a,t),t=pf(e.stateNode,t,2),e=Kl(e,t,2),e!==null&&(ar(e,2),Qn(e))}function Xe(e,t,a){if(e.tag===3)Og(e,e,a);else for(;t!==null;){if(t.tag===3){Og(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ta===null||!ta.has(i))){e=vn(a,e),a=jv(2),i=Kl(t,a,2),i!==null&&(zv(a,i,t,e),ar(i,2),Qn(i));break}}t=t.return}}function Hf(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new vw;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(a)||(Of=!0,c.add(a),e=xw.bind(null,e,t,a),t.then(e,e))}function xw(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Fe===e&&(Le&a)===a&&(rt===4||rt===3&&(Le&62914560)===Le&&300>ze()-us?(qe&2)===0&&Mo(e,0):jf|=a,_o===Le&&(_o=0)),Qn(e)}function jg(e,t){t===0&&(t=Ep()),e=Ea(e,t),e!==null&&(ar(e,t),Qn(e))}function ww(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),jg(e,a)}function Cw(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),jg(e,a)}function Tw(e,t){return fn(e,t)}var gs=null,jo=null,Uf=!1,ys=!1,Yf=!1,aa=0;function Qn(e){e!==jo&&e.next===null&&(jo===null?gs=jo=e:jo=jo.next=e),ys=!0,Uf||(Uf=!0,Ew())}function kr(e,t){if(!Yf&&ys){Yf=!0;do for(var a=!1,i=gs;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var d=0;else{var b=i.suspendedLanes,R=i.pingedLanes;d=(1<<31-Ee(42|e)+1)-1,d&=c&~(b&~R),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,Lg(i,d))}else d=Le,d=Ul(i,i===Fe?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||lr(i,d)||(a=!0,Lg(i,d));i=i.next}while(a);Yf=!1}}function Rw(){zg()}function zg(){ys=Uf=!1;var e=0;aa!==0&&Lw()&&(e=aa);for(var t=ze(),a=null,i=gs;i!==null;){var c=i.next,d=Dg(i,t);d===0?(i.next=null,a===null?gs=c:a.next=c,c===null&&(jo=a)):(a=i,(e!==0||(d&3)!==0)&&(ys=!0)),i=c}bt!==0&&bt!==5||kr(e),aa!==0&&(aa=0)}function Dg(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var b=31-Ee(d),R=1<<b,z=c[b];z===-1?((R&a)===0||(R&i)!==0)&&(c[b]=PS(R,t)):z<=t&&(e.expiredLanes|=R),d&=~R}if(t=Fe,a=Le,a=Ul(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&dn(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||lr(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&dn(i),tu(a)){case 2:case 8:a=xa;break;case 32:a=Ye;break;case 268435456:a=rl;break;default:a=Ye}return i=$g.bind(null,e),a=fn(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&dn(i),e.callbackPriority=2,e.callbackNode=null,2}function $g(e,t){if(bt!==0&&bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(vs()&&e.callbackNode!==a)return null;var i=Le;return i=Ul(e,e===Fe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(vg(e,i,t),Dg(e,ze()),e.callbackNode!=null&&e.callbackNode===a?$g.bind(null,e):null)}function Lg(e,t){if(vs())return null;vg(e,t,!0)}function Ew(){kw(function(){(qe&6)!==0?fn(yt,Rw):zg()})}function qf(){if(aa===0){var e=go;e===0&&(e=Fa,Fa<<=1,(Fa&261888)===0&&(Fa=256)),aa=e}return aa}function Bg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ei(""+e)}function kg(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Aw(e,t,a,i,c){if(t==="submit"&&a&&a.stateNode===c){var d=Bg((c[Ut]||null).action),b=i.submitter;b&&(t=(t=b[Ut]||null)?Bg(t.formAction):b.getAttribute("formAction"),t!==null&&(d=t,b=null));var R=new Mi("action","action",null,i,c);e.push({event:R,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(aa!==0){var z=b?kg(c,b):new FormData(c);sf(a,{pending:!0,data:z,method:c.method,action:d},null,z)}}else typeof d=="function"&&(R.preventDefault(),z=b?kg(c,b):new FormData(c),sf(a,{pending:!0,data:z,method:c.method,action:d},d,z))},currentTarget:c}]})}}for(var Vf=0;Vf<Tu.length;Vf++){var Gf=Tu[Vf],_w=Gf.toLowerCase(),Nw=Gf[0].toUpperCase()+Gf.slice(1);An(_w,"on"+Nw)}An(hh,"onAnimationEnd"),An(vh,"onAnimationIteration"),An(gh,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(Xx,"onTransitionRun"),An(Ix,"onTransitionStart"),An(Zx,"onTransitionCancel"),An(yh,"onTransitionEnd"),no("onMouseEnter",["mouseout","mouseover"]),no("onMouseLeave",["mouseout","mouseover"]),no("onPointerEnter",["pointerout","pointerover"]),no("onPointerLeave",["pointerout","pointerover"]),wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hr="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(" "),Mw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hr));function Hg(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],c=i.event;i=i.listeners;e:{var d=void 0;if(t)for(var b=i.length-1;0<=b;b--){var R=i[b],z=R.instance,X=R.currentTarget;if(R=R.listener,z!==d&&c.isPropagationStopped())break e;d=R,c.currentTarget=X;try{d(c)}catch(W){zi(W)}c.currentTarget=null,d=z}else for(b=0;b<i.length;b++){if(R=i[b],z=R.instance,X=R.currentTarget,R=R.listener,z!==d&&c.isPropagationStopped())break e;d=R,c.currentTarget=X;try{d(c)}catch(W){zi(W)}c.currentTarget=null,d=z}}}}function $e(e,t){var a=t[nu];a===void 0&&(a=t[nu]=new Set);var i=e+"__bubble";a.has(i)||(Ug(t,e,2,!1),a.add(i))}function Xf(e,t,a){var i=0;t&&(i|=4),Ug(a,e,i,t)}var bs="_reactListening"+Math.random().toString(36).slice(2);function If(e){if(!e[bs]){e[bs]=!0,zp.forEach(function(a){a!=="selectionchange"&&(Mw.has(a)||Xf(a,!1,e),Xf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bs]||(t[bs]=!0,Xf("selectionchange",!1,t))}}function Ug(e,t,a,i){switch(hy(t)){case 2:var c=a2;break;case 8:c=o2;break;default:c=id}a=c.bind(null,t,a,e),c=void 0,!fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?c!==void 0?e.addEventListener(t,a,{capture:!0,passive:c}):e.addEventListener(t,a,!0):c!==void 0?e.addEventListener(t,a,{passive:c}):e.addEventListener(t,a,!1)}function Zf(e,t,a,i,c){var d=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var b=i.tag;if(b===3||b===4){var R=i.stateNode.containerInfo;if(R===c)break;if(b===4)for(b=i.return;b!==null;){var z=b.tag;if((z===3||z===4)&&b.stateNode.containerInfo===c)return;b=b.return}for(;R!==null;){if(b=Wa(R),b===null)return;if(z=b.tag,z===5||z===6||z===26||z===27){i=d=b;continue e}R=R.parentNode}}i=i.return}Xp(function(){var X=d,W=cu(a),re=[];e:{var I=bh.get(e);if(I!==void 0){var Q=Mi,ve=e;switch(e){case"keypress":if(_i(a)===0)break e;case"keydown":case"keyup":Q=Cx;break;case"focusin":ve="focus",Q=hu;break;case"focusout":ve="blur",Q=hu;break;case"beforeblur":case"afterblur":Q=hu;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":Q=Qp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=fx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=Ex;break;case hh:case vh:case gh:Q=px;break;case yh:Q=_x;break;case"scroll":case"scrollend":Q=cx;break;case"wheel":Q=Mx;break;case"copy":case"cut":case"paste":Q=vx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Fp;break;case"toggle":case"beforetoggle":Q=jx}var we=(t&4)!==0,Ke=!we&&(e==="scroll"||e==="scrollend"),q=we?I!==null?I+"Capture":null:I;we=[];for(var $=X,G;$!==null;){var ne=$;if(G=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||G===null||q===null||(ne=ir($,q),ne!=null&&we.push(Ur($,ne,G))),Ke)break;$=$.return}0<we.length&&(I=new Q(I,ve,null,a,W),re.push({event:I,listeners:we}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",I&&a!==su&&(ve=a.relatedTarget||a.fromElement)&&(Wa(ve)||ve[Pa]))break e;if((Q||I)&&(I=W.window===W?W:(I=W.ownerDocument)?I.defaultView||I.parentWindow:window,Q?(ve=a.relatedTarget||a.toElement,Q=X,ve=ve?Wa(ve):null,ve!==null&&(Ke=u(ve),we=ve.tag,ve!==Ke||we!==5&&we!==27&&we!==6)&&(ve=null)):(Q=null,ve=X),Q!==ve)){if(we=Qp,ne="onMouseLeave",q="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(we=Fp,ne="onPointerLeave",q="onPointerEnter",$="pointer"),Ke=Q==null?I:rr(Q),G=ve==null?I:rr(ve),I=new we(ne,$+"leave",Q,a,W),I.target=Ke,I.relatedTarget=G,ne=null,Wa(W)===X&&(we=new we(q,$+"enter",ve,a,W),we.target=G,we.relatedTarget=Ke,ne=we),Ke=ne,Q&&ve)t:{for(we=Ow,q=Q,$=ve,G=0,ne=q;ne;ne=we(ne))G++;ne=0;for(var xe=$;xe;xe=we(xe))ne++;for(;0<G-ne;)q=we(q),G--;for(;0<ne-G;)$=we($),ne--;for(;G--;){if(q===$||$!==null&&q===$.alternate){we=q;break t}q=we(q),$=we($)}we=null}else we=null;Q!==null&&Yg(re,I,Q,we,!1),ve!==null&&Ke!==null&&Yg(re,Ke,ve,we,!0)}}e:{if(I=X?rr(X):window,Q=I.nodeName&&I.nodeName.toLowerCase(),Q==="select"||Q==="input"&&I.type==="file")var He=ah;else if(nh(I))if(oh)He=qx;else{He=Ux;var be=Hx}else Q=I.nodeName,!Q||Q.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?X&&iu(X.elementType)&&(He=ah):He=Yx;if(He&&(He=He(e,X))){lh(re,He,a,W);break e}be&&be(e,I,X),e==="focusout"&&X&&I.type==="number"&&X.memoizedProps.value!=null&&ru(I,"number",I.value)}switch(be=X?rr(X):window,e){case"focusin":(nh(be)||be.contentEditable==="true")&&(so=be,xu=X,hr=null);break;case"focusout":hr=xu=so=null;break;case"mousedown":wu=!0;break;case"contextmenu":case"mouseup":case"dragend":wu=!1,mh(re,a,W);break;case"selectionchange":if(Gx)break;case"keydown":case"keyup":mh(re,a,W)}var _e;if(gu)e:{switch(e){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else io?eh(e,a)&&(Be="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Be="onCompositionStart");Be&&(Jp&&a.locale!=="ko"&&(io||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&io&&(_e=Ip()):(ql=W,du="value"in ql?ql.value:ql.textContent,io=!0)),be=Ss(X,Be),0<be.length&&(Be=new Kp(Be,e,null,a,W),re.push({event:Be,listeners:be}),_e?Be.data=_e:(_e=th(a),_e!==null&&(Be.data=_e)))),(_e=Dx?$x(e,a):Lx(e,a))&&(Be=Ss(X,"onBeforeInput"),0<Be.length&&(be=new Kp("onBeforeInput","beforeinput",null,a,W),re.push({event:be,listeners:Be}),be.data=_e)),Aw(re,e,X,a,W)}Hg(re,t)})}function Ur(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ss(e,t){for(var a=t+"Capture",i=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=ir(e,a),c!=null&&i.unshift(Ur(e,c,d)),c=ir(e,t),c!=null&&i.push(Ur(e,c,d))),e.tag===3)return i;e=e.return}return[]}function Ow(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yg(e,t,a,i,c){for(var d=t._reactName,b=[];a!==null&&a!==i;){var R=a,z=R.alternate,X=R.stateNode;if(R=R.tag,z!==null&&z===i)break;R!==5&&R!==26&&R!==27||X===null||(z=X,c?(X=ir(a,d),X!=null&&b.unshift(Ur(a,X,z))):c||(X=ir(a,d),X!=null&&b.push(Ur(a,X,z)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var jw=/\r\n?/g,zw=/\u0000|\uFFFD/g;function qg(e){return(typeof e=="string"?e:""+e).replace(jw,`
49
+ `).replace(zw,"")}function Vg(e,t){return t=qg(t),qg(e)===t}function Qe(e,t,a,i,c,d){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ao(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ao(e,""+i);break;case"className":Ti(e,"class",i);break;case"tabIndex":Ti(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ti(e,a,i);break;case"style":Vp(e,i,d);break;case"data":if(t!=="object"){Ti(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Ei(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(a==="formAction"?(t!=="input"&&Qe(e,t,"name",c.name,c,null),Qe(e,t,"formEncType",c.formEncType,c,null),Qe(e,t,"formMethod",c.formMethod,c,null),Qe(e,t,"formTarget",c.formTarget,c,null)):(Qe(e,t,"encType",c.encType,c,null),Qe(e,t,"method",c.method,c,null),Qe(e,t,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Ei(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=sl);break;case"onScroll":i!=null&&$e("scroll",e);break;case"onScrollEnd":i!=null&&$e("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Ei(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":$e("beforetoggle",e),$e("toggle",e),Ci(e,"popover",i);break;case"xlinkActuate":il(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":il(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":il(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":il(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":il(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":il(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":il(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":il(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":il(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ci(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=ix.get(a)||a,Ci(e,a,i))}}function Qf(e,t,a,i,c,d){switch(a){case"style":Vp(e,i,d);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof i=="string"?ao(e,i):(typeof i=="number"||typeof i=="bigint")&&ao(e,""+i);break;case"onScroll":i!=null&&$e("scroll",e);break;case"onScrollEnd":i!=null&&$e("scrollend",e);break;case"onClick":i!=null&&(e.onclick=sl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(c=a.endsWith("Capture"),t=a.slice(2,c?a.length-7:void 0),d=e[Ut]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof i=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,c);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Ci(e,a,i)}}}function Nt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",e),$e("load",e);var i=!1,c=!1,d;for(d in a)if(a.hasOwnProperty(d)){var b=a[d];if(b!=null)switch(d){case"src":i=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Qe(e,t,d,b,a,null)}}c&&Qe(e,t,"srcSet",a.srcSet,a,null),i&&Qe(e,t,"src",a.src,a,null);return;case"input":$e("invalid",e);var R=d=b=c=null,z=null,X=null;for(i in a)if(a.hasOwnProperty(i)){var W=a[i];if(W!=null)switch(i){case"name":c=W;break;case"type":b=W;break;case"checked":z=W;break;case"defaultChecked":X=W;break;case"value":d=W;break;case"defaultValue":R=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(o(137,t));break;default:Qe(e,t,i,W,a,null)}}Hp(e,d,R,z,X,b,c,!1);return;case"select":$e("invalid",e),i=b=d=null;for(c in a)if(a.hasOwnProperty(c)&&(R=a[c],R!=null))switch(c){case"value":d=R;break;case"defaultValue":b=R;break;case"multiple":i=R;default:Qe(e,t,c,R,a,null)}t=d,a=b,e.multiple=!!i,t!=null?lo(e,!!i,t,!1):a!=null&&lo(e,!!i,a,!0);return;case"textarea":$e("invalid",e),d=c=i=null;for(b in a)if(a.hasOwnProperty(b)&&(R=a[b],R!=null))switch(b){case"value":i=R;break;case"defaultValue":c=R;break;case"children":d=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(91));break;default:Qe(e,t,b,R,a,null)}Yp(e,i,c,d);return;case"option":for(z in a)if(a.hasOwnProperty(z)&&(i=a[z],i!=null))switch(z){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Qe(e,t,z,i,a,null)}return;case"dialog":$e("beforetoggle",e),$e("toggle",e),$e("cancel",e),$e("close",e);break;case"iframe":case"object":$e("load",e);break;case"video":case"audio":for(i=0;i<Hr.length;i++)$e(Hr[i],e);break;case"image":$e("error",e),$e("load",e);break;case"details":$e("toggle",e);break;case"embed":case"source":case"link":$e("error",e),$e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in a)if(a.hasOwnProperty(X)&&(i=a[X],i!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Qe(e,t,X,i,a,null)}return;default:if(iu(t)){for(W in a)a.hasOwnProperty(W)&&(i=a[W],i!==void 0&&Qf(e,t,W,i,a,void 0));return}}for(R in a)a.hasOwnProperty(R)&&(i=a[R],i!=null&&Qe(e,t,R,i,a,null))}function Dw(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,b=null,R=null,z=null,X=null,W=null;for(Q in a){var re=a[Q];if(a.hasOwnProperty(Q)&&re!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":z=re;default:i.hasOwnProperty(Q)||Qe(e,t,Q,null,i,re)}}for(var I in i){var Q=i[I];if(re=a[I],i.hasOwnProperty(I)&&(Q!=null||re!=null))switch(I){case"type":d=Q;break;case"name":c=Q;break;case"checked":X=Q;break;case"defaultChecked":W=Q;break;case"value":b=Q;break;case"defaultValue":R=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(o(137,t));break;default:Q!==re&&Qe(e,t,I,Q,i,re)}}ou(e,b,R,z,X,W,d,c);return;case"select":Q=b=R=I=null;for(d in a)if(z=a[d],a.hasOwnProperty(d)&&z!=null)switch(d){case"value":break;case"multiple":Q=z;default:i.hasOwnProperty(d)||Qe(e,t,d,null,i,z)}for(c in i)if(d=i[c],z=a[c],i.hasOwnProperty(c)&&(d!=null||z!=null))switch(c){case"value":I=d;break;case"defaultValue":R=d;break;case"multiple":b=d;default:d!==z&&Qe(e,t,c,d,i,z)}t=R,a=b,i=Q,I!=null?lo(e,!!a,I,!1):!!i!=!!a&&(t!=null?lo(e,!!a,t,!0):lo(e,!!a,a?[]:"",!1));return;case"textarea":Q=I=null;for(R in a)if(c=a[R],a.hasOwnProperty(R)&&c!=null&&!i.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Qe(e,t,R,null,i,c)}for(b in i)if(c=i[b],d=a[b],i.hasOwnProperty(b)&&(c!=null||d!=null))switch(b){case"value":I=c;break;case"defaultValue":Q=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==d&&Qe(e,t,b,c,i,d)}Up(e,I,Q);return;case"option":for(var ve in a)if(I=a[ve],a.hasOwnProperty(ve)&&I!=null&&!i.hasOwnProperty(ve))switch(ve){case"selected":e.selected=!1;break;default:Qe(e,t,ve,null,i,I)}for(z in i)if(I=i[z],Q=a[z],i.hasOwnProperty(z)&&I!==Q&&(I!=null||Q!=null))switch(z){case"selected":e.selected=I&&typeof I!="function"&&typeof I!="symbol";break;default:Qe(e,t,z,I,i,Q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in a)I=a[we],a.hasOwnProperty(we)&&I!=null&&!i.hasOwnProperty(we)&&Qe(e,t,we,null,i,I);for(X in i)if(I=i[X],Q=a[X],i.hasOwnProperty(X)&&I!==Q&&(I!=null||Q!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(o(137,t));break;default:Qe(e,t,X,I,i,Q)}return;default:if(iu(t)){for(var Ke in a)I=a[Ke],a.hasOwnProperty(Ke)&&I!==void 0&&!i.hasOwnProperty(Ke)&&Qf(e,t,Ke,void 0,i,I);for(W in i)I=i[W],Q=a[W],!i.hasOwnProperty(W)||I===Q||I===void 0&&Q===void 0||Qf(e,t,W,I,i,Q);return}}for(var q in a)I=a[q],a.hasOwnProperty(q)&&I!=null&&!i.hasOwnProperty(q)&&Qe(e,t,q,null,i,I);for(re in i)I=i[re],Q=a[re],!i.hasOwnProperty(re)||I===Q||I==null&&Q==null||Qe(e,t,re,I,i,Q)}function Gg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $w(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var c=a[i],d=c.transferSize,b=c.initiatorType,R=c.duration;if(d&&R&&Gg(b)){for(b=0,R=c.responseEnd,i+=1;i<a.length;i++){var z=a[i],X=z.startTime;if(X>R)break;var W=z.transferSize,re=z.initiatorType;W&&Gg(re)&&(z=z.responseEnd,b+=W*(z<R?1:(R-X)/(z-X)))}if(--i,t+=8*(d+b)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Kf=null,Ff=null;function xs(e){return e.nodeType===9?e:e.ownerDocument}function Xg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ig(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Jf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pf=null;function Lw(){var e=window.event;return e&&e.type==="popstate"?e===Pf?!1:(Pf=e,!0):(Pf=null,!1)}var Zg=typeof setTimeout=="function"?setTimeout:void 0,Bw=typeof clearTimeout=="function"?clearTimeout:void 0,Qg=typeof Promise=="function"?Promise:void 0,kw=typeof queueMicrotask=="function"?queueMicrotask:typeof Qg<"u"?function(e){return Qg.resolve(null).then(e).catch(Hw)}:Zg;function Hw(e){setTimeout(function(){throw e})}function oa(e){return e==="head"}function Kg(e,t){var a=t,i=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(c),Lo(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Yr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Yr(a);for(var d=a.firstChild;d;){var b=d.nextSibling,R=d.nodeName;d[or]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&d.rel.toLowerCase()==="stylesheet"||a.removeChild(d),d=b}}else a==="body"&&Yr(e.ownerDocument.body);a=c}while(a);Lo(t)}function Fg(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function Wf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Wf(a),lu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Uw(e,t,a,i){for(;e.nodeType===1;){var c=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[or])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=xn(e.nextSibling),e===null)break}return null}function Yw(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=xn(e.nextSibling),e===null))return null;return e}function Jg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=xn(e.nextSibling),e===null))return null;return e}function ed(e){return e.data==="$?"||e.data==="$~"}function td(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function qw(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function xn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var nd=null;function Pg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return xn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Wg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function ey(e,t,a){switch(t=xs(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Yr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lu(e)}var wn=new Map,ty=new Set;function ws(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tl=B.d;B.d={f:Vw,r:Gw,D:Xw,C:Iw,L:Zw,m:Qw,X:Fw,S:Kw,M:Jw};function Vw(){var e=Tl.f(),t=ms();return e||t}function Gw(e){var t=eo(e);t!==null&&t.tag===5&&t.type==="form"?yv(t):Tl.r(e)}var zo=typeof document>"u"?null:document;function ny(e,t,a){var i=zo;if(i&&typeof t=="string"&&t){var c=pn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),ty.has(c)||(ty.add(c),e={rel:e,crossOrigin:a,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),Nt(t,"link",e),xt(t),i.head.appendChild(t)))}}function Xw(e){Tl.D(e),ny("dns-prefetch",e,null)}function Iw(e,t){Tl.C(e,t),ny("preconnect",e,t)}function Zw(e,t,a){Tl.L(e,t,a);var i=zo;if(i&&e&&t){var c='link[rel="preload"][as="'+pn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+pn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+pn(a.imageSizes)+'"]')):c+='[href="'+pn(e)+'"]';var d=c;switch(t){case"style":d=Do(e);break;case"script":d=$o(e)}wn.has(d)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),wn.set(d,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(qr(d))||t==="script"&&i.querySelector(Vr(d))||(t=i.createElement("link"),Nt(t,"link",e),xt(t),i.head.appendChild(t)))}}function Qw(e,t){Tl.m(e,t);var a=zo;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+pn(i)+'"][href="'+pn(e)+'"]',d=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=$o(e)}if(!wn.has(d)&&(e=g({rel:"modulepreload",href:e},t),wn.set(d,e),a.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Vr(d)))return}i=a.createElement("link"),Nt(i,"link",e),xt(i),a.head.appendChild(i)}}}function Kw(e,t,a){Tl.S(e,t,a);var i=zo;if(i&&e){var c=to(i).hoistableStyles,d=Do(e);t=t||"default";var b=c.get(d);if(!b){var R={loading:0,preload:null};if(b=i.querySelector(qr(d)))R.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=wn.get(d))&&ld(e,a);var z=b=i.createElement("link");xt(z),Nt(z,"link",e),z._p=new Promise(function(X,W){z.onload=X,z.onerror=W}),z.addEventListener("load",function(){R.loading|=1}),z.addEventListener("error",function(){R.loading|=2}),R.loading|=4,Cs(b,t,i)}b={type:"stylesheet",instance:b,count:1,state:R},c.set(d,b)}}}function Fw(e,t){Tl.X(e,t);var a=zo;if(a&&e){var i=to(a).hoistableScripts,c=$o(e),d=i.get(c);d||(d=a.querySelector(Vr(c)),d||(e=g({src:e,async:!0},t),(t=wn.get(c))&&ad(e,t),d=a.createElement("script"),xt(d),Nt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function Jw(e,t){Tl.M(e,t);var a=zo;if(a&&e){var i=to(a).hoistableScripts,c=$o(e),d=i.get(c);d||(d=a.querySelector(Vr(c)),d||(e=g({src:e,async:!0,type:"module"},t),(t=wn.get(c))&&ad(e,t),d=a.createElement("script"),xt(d),Nt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function ly(e,t,a,i){var c=(c=de.current)?ws(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Do(a.href),a=to(c).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Do(a.href);var d=to(c).hoistableStyles,b=d.get(e);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,b),(d=c.querySelector(qr(e)))&&!d._p&&(b.instance=d,b.state.loading=5),wn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},wn.set(e,a),d||Pw(c,e,a,b.state))),t&&i===null)throw Error(o(528,""));return b}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=$o(a),a=to(c).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Do(e){return'href="'+pn(e)+'"'}function qr(e){return'link[rel="stylesheet"]['+e+"]"}function ay(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function Pw(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Nt(t,"link",a),xt(t),e.head.appendChild(t))}function $o(e){return'[src="'+pn(e)+'"]'}function Vr(e){return"script[async]"+e}function oy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+pn(a.href)+'"]');if(i)return t.instance=i,xt(i),i;var c=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),xt(i),Nt(i,"style",c),Cs(i,a.precedence,e),t.instance=i;case"stylesheet":c=Do(a.href);var d=e.querySelector(qr(c));if(d)return t.state.loading|=4,t.instance=d,xt(d),d;i=ay(a),(c=wn.get(c))&&ld(i,c),d=(e.ownerDocument||e).createElement("link"),xt(d);var b=d;return b._p=new Promise(function(R,z){b.onload=R,b.onerror=z}),Nt(d,"link",i),t.state.loading|=4,Cs(d,a.precedence,e),t.instance=d;case"script":return d=$o(a.src),(c=e.querySelector(Vr(d)))?(t.instance=c,xt(c),c):(i=a,(c=wn.get(d))&&(i=g({},a),ad(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),xt(c),Nt(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Cs(i,a.precedence,e));return t.instance}function Cs(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,d=c,b=0;b<i.length;b++){var R=i[b];if(R.dataset.precedence===t)d=R;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function ld(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ad(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ts=null;function ry(e,t,a){if(Ts===null){var i=new Map,c=Ts=new Map;c.set(a,i)}else c=Ts,i=c.get(a),i||(i=new Map,c.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),c=0;c<a.length;c++){var d=a[c];if(!(d[or]||d[Rt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var b=d.getAttribute(t)||"";b=e+b;var R=i.get(b);R?R.push(d):i.set(b,[d])}}return i}function iy(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Ww(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function sy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function e2(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=Do(i.href),d=t.querySelector(qr(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Rs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,xt(d);return}d=t.ownerDocument||t,i=ay(i),(c=wn.get(c))&&ld(i,c),d=d.createElement("link"),xt(d);var b=d;b._p=new Promise(function(R,z){b.onload=R,b.onerror=z}),Nt(d,"link",i),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Rs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var od=0;function t2(e,t){return e.stylesheets&&e.count===0&&As(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&As(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&od===0&&(od=62500*$w());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&As(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>od?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function Rs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)As(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Es=null;function As(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Es=new Map,t.forEach(n2,e),Es=null,Rs.call(e))}function n2(e,t){if(!(t.state.loading&4)){var a=Es.get(e);if(a)var i=a.get(null);else{a=new Map,Es.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var b=c[d];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),i=b)}i&&a.set(null,i)}c=t.instance,b=c.getAttribute("data-precedence"),d=a.get(b)||i,d===i&&a.set(null,c),a.set(b,c),this.count++,i=Rs.bind(this),c.addEventListener("load",i),c.addEventListener("error",i),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Gr={$$typeof:_,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function l2(e,t,a,i,c,d,b,R,z){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Wc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wc(0),this.hiddenUpdates=Wc(null),this.identifierPrefix=i,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function cy(e,t,a,i,c,d,b,R,z,X,W,re){return e=new l2(e,t,a,b,z,X,W,re,R),t=1,d===!0&&(t|=24),d=nn(3,null,null,t),e.current=d,d.stateNode=e,t=Bu(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:i,isDehydrated:a,cache:t},Yu(d),e}function uy(e){return e?(e=fo,e):fo}function fy(e,t,a,i,c,d){c=uy(c),i.context===null?i.context=c:i.pendingContext=c,i=Ql(t),i.payload={element:a},d=d===void 0?null:d,d!==null&&(i.callback=d),a=Kl(e,i,t),a!==null&&(It(a,e,t),wr(a,e,t))}function dy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function rd(e,t){dy(e,t),(e=e.alternate)&&dy(e,t)}function my(e){if(e.tag===13||e.tag===31){var t=Ea(e,67108864);t!==null&&It(t,e,67108864),rd(e,67108864)}}function py(e){if(e.tag===13||e.tag===31){var t=sn();t=eu(t);var a=Ea(e,t);a!==null&&It(a,e,t),rd(e,t)}}var _s=!0;function a2(e,t,a,i){var c=O.T;O.T=null;var d=B.p;try{B.p=2,id(e,t,a,i)}finally{B.p=d,O.T=c}}function o2(e,t,a,i){var c=O.T;O.T=null;var d=B.p;try{B.p=8,id(e,t,a,i)}finally{B.p=d,O.T=c}}function id(e,t,a,i){if(_s){var c=sd(i);if(c===null)Zf(e,t,i,Ns,a),vy(e,i);else if(i2(c,e,t,a,i))i.stopPropagation();else if(vy(e,i),t&4&&-1<r2.indexOf(e)){for(;c!==null;){var d=eo(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var b=Pe(d.pendingLanes);if(b!==0){var R=d;for(R.pendingLanes|=2,R.entangledLanes|=2;b;){var z=1<<31-Ee(b);R.entanglements[1]|=z,b&=~z}Qn(d),(qe&6)===0&&(fs=ze()+500,kr(0))}}break;case 31:case 13:R=Ea(d,2),R!==null&&It(R,d,2),ms(),rd(d,2)}if(d=sd(i),d===null&&Zf(e,t,i,Ns,a),d===c)break;c=d}c!==null&&i.stopPropagation()}else Zf(e,t,i,null,a)}}function sd(e){return e=cu(e),cd(e)}var Ns=null;function cd(e){if(Ns=null,e=Wa(e),e!==null){var t=u(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=f(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ns=e,null}function hy(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(kl()){case yt:return 2;case xa:return 8;case Ye:case Hl:return 32;case rl:return 268435456;default:return 32}default:return 32}}var ud=!1,ra=null,ia=null,sa=null,Xr=new Map,Ir=new Map,ca=[],r2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vy(e,t){switch(e){case"focusin":case"focusout":ra=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":Xr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ir.delete(t.pointerId)}}function Zr(e,t,a,i,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:d,targetContainers:[c]},t!==null&&(t=eo(t),t!==null&&my(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function i2(e,t,a,i,c){switch(t){case"focusin":return ra=Zr(ra,e,t,a,i,c),!0;case"dragenter":return ia=Zr(ia,e,t,a,i,c),!0;case"mouseover":return sa=Zr(sa,e,t,a,i,c),!0;case"pointerover":var d=c.pointerId;return Xr.set(d,Zr(Xr.get(d)||null,e,t,a,i,c)),!0;case"gotpointercapture":return d=c.pointerId,Ir.set(d,Zr(Ir.get(d)||null,e,t,a,i,c)),!0}return!1}function gy(e){var t=Wa(e.target);if(t!==null){var a=u(t);if(a!==null){if(t=a.tag,t===13){if(t=f(a),t!==null){e.blockedOn=t,Op(e.priority,function(){py(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,Op(e.priority,function(){py(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=sd(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);su=i,a.target.dispatchEvent(i),su=null}else return t=eo(a),t!==null&&my(t),e.blockedOn=a,!1;t.shift()}return!0}function yy(e,t,a){Ms(e)&&a.delete(t)}function s2(){ud=!1,ra!==null&&Ms(ra)&&(ra=null),ia!==null&&Ms(ia)&&(ia=null),sa!==null&&Ms(sa)&&(sa=null),Xr.forEach(yy),Ir.forEach(yy)}function Os(e,t){e.blockedOn===t&&(e.blockedOn=null,ud||(ud=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,s2)))}var js=null;function by(e){js!==e&&(js=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){js===e&&(js=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],c=e[t+2];if(typeof i!="function"){if(cd(i||a)===null)continue;break}var d=eo(a);d!==null&&(e.splice(t,3),t-=3,sf(d,{pending:!0,data:c,method:a.method,action:i},i,c))}}))}function Lo(e){function t(z){return Os(z,e)}ra!==null&&Os(ra,e),ia!==null&&Os(ia,e),sa!==null&&Os(sa,e),Xr.forEach(t),Ir.forEach(t);for(var a=0;a<ca.length;a++){var i=ca[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ca.length&&(a=ca[0],a.blockedOn===null);)gy(a),a.blockedOn===null&&ca.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var c=a[i],d=a[i+1],b=c[Ut]||null;if(typeof d=="function")b||by(a);else if(b){var R=null;if(d&&d.hasAttribute("formAction")){if(c=d,b=d[Ut]||null)R=b.formAction;else if(cd(c)!==null)continue}else R=b.action;typeof R=="function"?a[i+1]=R:(a.splice(i,3),i-=3),by(a)}}}function Sy(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(b){return c=b})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function fd(e){this._internalRoot=e}zs.prototype.render=fd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,i=sn();fy(a,i,e,t,null,null)},zs.prototype.unmount=fd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fy(e.current,2,null,e,null,null),ms(),t[Pa]=null}};function zs(e){this._internalRoot=e}zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mp();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ca.length&&t!==0&&t<ca[a].priority;a++);ca.splice(a,0,e),a===0&&gy(e)}};var xy=l.version;if(xy!=="19.2.0")throw Error(o(527,xy,"19.2.0"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=h(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var c2={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ds.isDisabled&&Ds.supportsFiber)try{Wt=Ds.inject(c2),St=Ds}catch{}}return Kr.createRoot=function(e,t){if(!s(e))throw Error(o(299));var a=!1,i="",c=_v,d=Nv,b=Mv;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=cy(e,1,!1,null,null,a,i,null,c,d,b,Sy),e[Pa]=t.current,If(e),new fd(t)},Kr.hydrateRoot=function(e,t,a){if(!s(e))throw Error(o(299));var i=!1,c="",d=_v,b=Nv,R=Mv,z=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(R=a.onRecoverableError),a.formState!==void 0&&(z=a.formState)),t=cy(e,1,!0,t,a??null,i,c,z,d,b,R,Sy),t.context=uy(null),a=t.current,i=sn(),i=eu(i),c=Ql(i),c.callback=null,Kl(a,c,i),a=i,t.current.lanes=a,ar(t,a),Qn(t),e[Pa]=t.current,If(e),new zs(t)},Kr.version="19.2.0",Kr}var Oy;function b2(){if(Oy)return pd.exports;Oy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),pd.exports=y2(),pd.exports}var S2=b2();function Mt(n){return Object.keys(n)}function yd(n){return n&&typeof n=="object"&&!Array.isArray(n)}function sm(n,l){const r={...n},o=l;return yd(n)&&yd(l)&&Object.keys(l).forEach(s=>{yd(o[s])&&s in n?r[s]=sm(r[s],o[s]):r[s]=o[s]}),r}function x2(n){return n.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`)}function w2(n){var l;return typeof n!="string"||!n.includes("var(--mantine-scale)")?n:(l=n.match(/^calc\((.*?)\)$/))==null?void 0:l[1].split("*")[0].trim()}function Ud(n){const l=w2(n);return typeof l=="number"?l:typeof l=="string"?l.includes("calc")||l.includes("var")?l:l.includes("px")?Number(l.replace("px","")):l.includes("rem")?Number(l.replace("rem",""))*16:l.includes("em")?Number(l.replace("em",""))*16:Number(l):NaN}function jy(n){return n==="0rem"?"0rem":`calc(${n} * var(--mantine-scale))`}function kb(n,{shouldScale:l=!1}={}){function r(o){if(o===0||o==="0")return`0${n}`;if(typeof o=="number"){const s=`${o/16}${n}`;return l?jy(s):s}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(u=>r(u)).join(",");if(o.includes(" "))return o.split(" ").map(u=>r(u)).join(" ");const s=o.replace("px","");if(!Number.isNaN(Number(s))){const u=`${Number(s)/16}${n}`;return l?jy(u):u}}return o}return r}const K=kb("rem",{shouldScale:!0}),Fs=kb("em");function cm(n){return Object.keys(n).reduce((l,r)=>(n[r]!==void 0&&(l[r]=n[r]),l),{})}function Hb(n){if(typeof n=="number")return!0;if(typeof n=="string"){if(n.startsWith("calc(")||n.startsWith("var(")||n.includes(" ")&&n.trim()!=="")return!0;const l=/^[+-]?[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 n.trim().split(/\s+/).every(r=>l.test(r))}return!1}function um(n){return Array.isArray(n)||n===null?!1:typeof n=="object"?n.type!==x.Fragment:!1}function Ml(n){const l=x.createContext(null);return[l,()=>{const o=x.use(l);if(o===null)throw new Error(n);return o}]}function Js(n,l){let r=n;for(;(r=r.parentElement)&&!r.matches(l););return r}function zy(n,l,r){for(let o=n-1;o>=0;o-=1)if(!l[o].disabled)return o;if(r){for(let o=l.length-1;o>-1;o-=1)if(!l[o].disabled)return o}return n}function Dy(n,l,r){for(let o=n+1;o<l.length;o+=1)if(!l[o].disabled)return o;if(r){for(let o=0;o<l.length;o+=1)if(!l[o].disabled)return o}return n}function C2(n,l,r){return Js(n,r)===Js(l,r)}function fm({parentSelector:n,siblingSelector:l,onKeyDown:r,loop:o=!0,activateOnFocus:s=!1,dir:u="rtl",orientation:f}){return m=>{var v,w,E;r==null||r(m);const p=Array.from(((v=Js(m.currentTarget,n))==null?void 0:v.querySelectorAll(l))||[]).filter(C=>C2(m.currentTarget,C,n)),h=p.findIndex(C=>m.currentTarget===C),S=Dy(h,p,o),g=zy(h,p,o);switch(m.key){case"ArrowRight":break;case"ArrowLeft":break;case"ArrowUp":m.stopPropagation(),m.preventDefault(),p[g].focus(),s&&p[g].click();break;case"ArrowDown":m.stopPropagation(),m.preventDefault(),p[S].focus(),s&&p[S].click();break;case"Home":m.stopPropagation(),m.preventDefault(),(w=p[Dy(-1,p,!1)])==null||w.focus();break;case"End":m.stopPropagation(),m.preventDefault(),(E=p[zy(p.length,p,!1)])==null||E.focus();break}}}const T2={app:100,modal:200,popover:300,overlay:400,max:9999};function Qt(n){return T2[n]}const Ub=()=>{};function R2(n,l={active:!0}){return typeof n!="function"||!l.active?l.onKeyDown||Ub:r=>{var o;r.key==="Escape"&&(n(r),(o=l.onTrigger)==null||o.call(l))}}function Je(n,l="size",r=!0){if(n!==void 0)return Hb(n)?r?K(n):n:`var(--${l}-${n})`}function si(n){return Je(n,"mantine-spacing")}function Ht(n){return n===void 0?"var(--mantine-radius-default)":Je(n,"mantine-radius")}function Tt(n){return Je(n,"mantine-font-size")}function E2(n){return Je(n,"mantine-line-height",!1)}function dm(n){if(n)return Je(n,"mantine-shadow",!1)}function at(n,l){return r=>{n==null||n(r),l==null||l(r)}}function mm(n,l){return n in l?Ud(l[n]):Ud(n)}function $y(n,l){const r=n.map(o=>({value:o,px:mm(o,l)}));return r.sort((o,s)=>o.px-s.px),r}function A2(n,l,r){var o;return r?Array.from(((o=Js(r,l))==null?void 0:o.querySelectorAll(n))||[]).findIndex(s=>s===r):null}function Yd(n="mantine-"){return`${n}${Math.random().toString(36).slice(2,11)}`}function _2(n,l){if(n===l||Number.isNaN(n)&&Number.isNaN(l))return!0;if(!(n instanceof Object)||!(l instanceof Object))return!1;const r=Object.keys(n),{length:o}=r;if(o!==Object.keys(l).length)return!1;for(let s=0;s<o;s+=1){const u=r[s];if(!(u in l)||n[u]!==l[u]&&!(Number.isNaN(n[u])&&Number.isNaN(l[u])))return!1}return!0}function qo(n){const l=x.useRef(n);return x.useEffect(()=>{l.current=n}),x.useMemo(()=>((...r)=>{var o;return(o=l.current)==null?void 0:o.call(l,...r)}),[])}function ic(n,l){const{delay:r,flushOnUnmount:o,leading:s,maxWait:u}=typeof l=="number"?{delay:l,flushOnUnmount:!1,leading:!1,maxWait:void 0}:l,f=qo(n),m=x.useRef(0),p=x.useRef(0),h=x.useRef(null),S=x.useMemo(()=>{const g=Object.assign((...v)=>{window.clearTimeout(m.current),h.current=v;const w=g._isFirstCall;g._isFirstCall=!1;function E(){window.clearTimeout(m.current),window.clearTimeout(p.current),m.current=0,p.current=0,g._isFirstCall=!0,g._hasPendingCallback=!1}function C(){u!==void 0&&p.current===0&&(p.current=window.setTimeout(()=>{if(m.current!==0){const N=h.current;E(),f(...N)}},u))}if(s&&w){f(...v);const N=()=>{E()},_=()=>{m.current!==0&&(E(),f(...v))},j=()=>{E()};g.flush=_,g.cancel=j,m.current=window.setTimeout(N,r),C();return}if(s&&!w){g._hasPendingCallback=!0;const N=()=>{m.current!==0&&(E(),f(...v))},_=()=>{E()};g.flush=N,g.cancel=_;const j=()=>{E()};m.current=window.setTimeout(j,r),C();return}g._hasPendingCallback=!0;const T=()=>{m.current!==0&&(E(),f(...v))},A=()=>{E()};g.flush=T,g.cancel=A,m.current=window.setTimeout(T,r),C()},{flush:()=>{},cancel:()=>{},isPending:()=>g._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return g},[f,r,s,u]);return x.useEffect(()=>()=>{o?S.flush():S.cancel()},[S,o]),S}const N2=["mousedown","touchstart"];function M2(n,l,r,o=!0){const s=x.useRef(null),u=l||N2,f=x.useEffectEvent(p=>{const{target:h}=p??{};if(!document.body.contains(h)&&(h==null?void 0:h.tagName)!=="HTML")return;const S=p.composedPath();Array.isArray(r)?r.every(g=>!!g&&!S.includes(g))&&n(p):s.current&&!S.includes(s.current)&&n(p)}),m=u.join(",");return x.useEffect(()=>{if(!o)return;const p=m.split(",");return p.forEach(h=>document.addEventListener(h,f)),()=>{p.forEach(h=>document.removeEventListener(h,f))}},[m,o]),s}function O2(n,l){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(n).matches:!1}function pm(n,l,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[o,s]=x.useState(r?l:O2(n));return x.useEffect(()=>{try{if("matchMedia"in window){const u=window.matchMedia(n);s(u.matches);const f=m=>s(m.matches);return u.addEventListener("change",f),()=>{u.removeEventListener("change",f)}}}catch{return}},[n]),o||!1}function Yb(n,l){return pm("(prefers-color-scheme: dark)",n==="dark",l)?"dark":"light"}const el=typeof document<"u"?x.useLayoutEffect:x.useEffect;function hm(n,l){const r=x.useRef(!1);x.useEffect(()=>()=>{r.current=!1},[]),x.useEffect(()=>{if(r.current)return n();r.current=!0},l)}function qb({opened:n,shouldReturnFocus:l=!0}){const r=x.useRef(null),o=()=>{var s;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((s=r.current)==null||s.focus({preventScroll:!0}))};return hm(()=>{let s=-1;const u=f=>{f.key==="Tab"&&window.clearTimeout(s)};if(document.addEventListener("keydown",u),n)r.current=document.activeElement;else if(l){const f=document.activeElement;s=window.setTimeout(()=>{const m=document.activeElement;(m===null||m===document.body||m===f)&&o()},10)}return()=>{window.clearTimeout(s),document.removeEventListener("keydown",u)}},[n,l]),o}const j2=/input|select|textarea|button|object/,Vb="a, input, select, textarea, button, object, [tabindex]";function z2(n){return n.style.display==="none"}function D2(n){if(n.getAttribute("aria-hidden")||n.getAttribute("hidden")||n.getAttribute("type")==="hidden")return!1;let l=n;for(;l&&!(l===document.body||l.nodeType===11);){if(z2(l))return!1;l=l.parentNode}return!0}function Gb(n){let l=n.getAttribute("tabindex");return l===null&&(l=void 0),parseInt(l,10)}function qd(n){const l=n.nodeName.toLowerCase(),r=!Number.isNaN(Gb(n));return(j2.test(l)&&!n.disabled||n instanceof HTMLAnchorElement&&n.href||r)&&D2(n)}function Xb(n){const l=Gb(n);return(Number.isNaN(l)||l>=0)&&qd(n)}function $2(n){return Array.from(n.querySelectorAll(Vb)).filter(Xb)}function L2(n,l){const r=$2(n);if(!r.length){l.preventDefault();return}const o=r[l.shiftKey?0:r.length-1],s=n.getRootNode();let u=o===s.activeElement||n===s.activeElement;const f=s.activeElement;if(f.tagName==="INPUT"&&f.getAttribute("type")==="radio"&&(u=r.filter(p=>p.getAttribute("type")==="radio"&&p.getAttribute("name")===f.getAttribute("name")).includes(o)),!u)return;l.preventDefault();const m=r[l.shiftKey?r.length-1:0];m&&m.focus()}function B2(n=!0){const l=x.useRef(null),r=s=>{let u=s.querySelector("[data-autofocus]");if(!u){const f=Array.from(s.querySelectorAll(Vb));u=f.find(Xb)||f.find(qd)||null,!u&&qd(s)&&(u=s)}u?u.focus({preventScroll:!0}):console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node",s)},o=x.useCallback(s=>{if(n){if(s===null){l.current=null;return}l.current!==s&&(setTimeout(()=>{s.getRootNode()?r(s):console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom",s)}),l.current=s)}},[n]);return x.useEffect(()=>{if(!n)return;l.current&&setTimeout(()=>{l.current&&r(l.current)});const s=u=>{u.key==="Tab"&&l.current&&L2(l.current,u)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n]),o}function kn(n){const[l,r]=x.useState(`mantine-${x.useId().replace(/:/g,"")}`),o=x.useRef(!1);return el(()=>{o.current||(o.current=!0,r(Yd()))},[]),typeof n=="string"?n:l}function Ib(n,l,r){const o=x.useEffectEvent(l);x.useEffect(()=>(window.addEventListener(n,o,r),()=>window.removeEventListener(n,o,r)),[n])}function Vd(n,l){if(typeof n=="function")return n(l);typeof n=="object"&&n!==null&&"current"in n&&(n.current=l)}function k2(...n){const l=new Map;return r=>{if(n.forEach(o=>{const s=Vd(o,r);s&&l.set(o,s)}),l.size>0)return()=>{n.forEach(o=>{const s=l.get(o);s&&typeof s=="function"?s():Vd(o,null)}),l.clear()}}}function it(...n){return x.useCallback(k2(...n),n)}function tl({value:n,defaultValue:l,finalValue:r,onChange:o=()=>{}}){const[s,u]=x.useState(l!==void 0?l:r),f=(m,...p)=>{u(m),o==null||o(m,...p)};return n!==void 0?[n,o,!0]:[s,f,!1]}function vm(n,l){return pm("(prefers-reduced-motion: reduce)",n,l)}function H2(n,l){if(!n||!l)return!1;if(n===l)return!0;if(n.length!==l.length)return!1;for(let r=0;r<n.length;r+=1)if(!_2(n[r],l[r]))return!1;return!0}function U2(n){const l=x.useRef([]),r=x.useRef(0);return H2(l.current,n)||(l.current=n,r.current+=1),[r.current]}function Y2(n,l){x.useEffect(n,U2(l))}function q2(n,l,r={autoInvoke:!1}){const o=x.useRef(null),s=qo(n),u=x.useCallback((...m)=>{o.current||(o.current=window.setTimeout(()=>{s(...m),o.current=null},l))},[l]),f=x.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return x.useEffect(()=>(r.autoInvoke&&u(),f),[f,u]),{start:u,clear:f}}function V2(n){const l=x.useRef(void 0);return x.useEffect(()=>{l.current=n},[n]),l.current}function G2(n,l,r){const o=x.useRef(null);x.useEffect(()=>{o.current&&(o.current.disconnect(),o.current=null);const s=typeof r=="function"?r():r;return s&&(o.current=new MutationObserver(n),o.current.observe(s,l)),()=>{o.current&&(o.current.disconnect(),o.current=null)}},[n,l,r])}function X2(){const[n,l]=x.useState(!1);return x.useEffect(()=>l(!0),[]),n}const I2=["mouse","touch"],Z2=10;function Q2(n,l={}){const{threshold:r=400,events:o=I2,cancelOnMove:s=!1,onStart:u,onFinish:f,onCancel:m}=l,p=x.useRef(!1),h=x.useRef(!1),S=x.useRef(-1),g=x.useRef(null);return x.useEffect(()=>()=>window.clearTimeout(S.current),[]),x.useMemo(()=>{if(typeof n!="function")return{};const v=s!==!1,w=s===!0?Z2:s===!1?0:s,E=N=>{!By(N)&&!Gd(N)||(u&&u(N),g.current=Ly(N),h.current=!0,S.current=window.setTimeout(()=>{n(N),p.current=!0},r))},C=N=>{!By(N)&&!Gd(N)||(p.current?f&&f(N):h.current&&m&&m(N),p.current=!1,h.current=!1,g.current=null,S.current!==-1&&(window.clearTimeout(S.current),S.current=-1))},T=N=>{if(!v||!h.current||p.current)return;const _=Ly(N);if(!_||!g.current)return;const j=_.x-g.current.x,L=_.y-g.current.y;Math.sqrt(j*j+L*L)>w&&C(N)},A={};return o.includes("mouse")&&(A.onMouseDown=E,A.onMouseUp=C,A.onMouseLeave=C,v&&(A.onMouseMove=T)),o.includes("touch")&&(A.onTouchStart=E,A.onTouchEnd=C,A.onTouchCancel=C,v&&(A.onTouchMove=T)),A},[n,r,m,f,u,s,o.join(",")])}function Ly(n){if(Gd(n)){const l=n.touches[0]??n.changedTouches[0];return l?{x:l.clientX,y:l.clientY}:null}return{x:n.clientX,y:n.clientY}}function Gd(n){return window.TouchEvent?n.nativeEvent instanceof TouchEvent:"touches"in n.nativeEvent}function By(n){return n.nativeEvent instanceof MouseEvent}var gm=Bb();const K2=$b(gm);var F2={};function J2(){return"development"}function sc(n){var r;const l=Hd.version;return typeof Hd.version!="string"||l.startsWith("18.")?n==null?void 0:n.ref:(r=n==null?void 0:n.props)==null?void 0:r.ref}function P2(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||typeof n=="bigint"}function Gs(n,l=document){const r=l.querySelector(n);if(r)return r;const o=l.querySelectorAll("*");for(let s=0;s<o.length;s+=1){const u=o[s];if(u.shadowRoot){const f=Gs(n,u.shadowRoot);if(f)return f}}return null}function Rl(n,l=document){const r=[],o=l.querySelectorAll(n);r.push(...Array.from(o));const s=l.querySelectorAll("*");for(let u=0;u<s.length;u+=1){const f=s[u];if(f.shadowRoot){const m=Rl(n,f.shadowRoot);r.push(...m)}}return r}function Kn(n){if(!n)return document;const l=n.getRootNode();return l instanceof ShadowRoot||l instanceof Document?l:document}function Ol(n){const l=x.Children.toArray(n);return l.length!==1||!um(l[0])?null:l[0]}function Zb(n){var l,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(l=0;l<s;l++)n[l]&&(r=Zb(n[l]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function gt(){for(var n,l,r=0,o="",s=arguments.length;r<s;r++)(n=arguments[r])&&(l=Zb(n))&&(o&&(o+=" "),o+=l);return o}const W2={};function eC(n){const l={};return n.forEach(r=>{Object.entries(r).forEach(([o,s])=>{l[o]?l[o]=gt(l[o],s):l[o]=s})}),l}function ti({theme:n,classNames:l,props:r,stylesCtx:o}){return eC((Array.isArray(l)?l:[l]).map(s=>typeof s=="function"?s(n,r,o):s||W2))}function Ps({theme:n,styles:l,props:r,stylesCtx:o}){const s=Array.isArray(l)?l:[l],u={};for(const f of s)typeof f=="function"?Object.assign(u,f(n,r,o)):f&&Object.assign(u,f);return u}function ky(n){return n==="auto"||n==="dark"||n==="light"}function tC({key:n="mantine-color-scheme-value"}={}){let l;return{get:r=>{if(typeof window>"u")return r;try{const o=window.localStorage.getItem(n);return ky(o)?o:r}catch{return r}},set:r=>{try{window.localStorage.setItem(n,r)}catch(o){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",o)}},subscribe:r=>{l=o=>{o.storageArea===window.localStorage&&o.key===n&&ky(o.newValue)&&r(o.newValue)},window.addEventListener("storage",l)},unsubscribe:()=>{window.removeEventListener("storage",l)},clear:()=>{window.localStorage.removeItem(n)}}}function ni(n,l){return typeof n.primaryShade=="number"?n.primaryShade:l==="dark"?n.primaryShade.dark:n.primaryShade.light}function nC(n){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(n)}function lC(n){let l=n.replace("#","");if(l.length===3){const o=l.split("");l=[o[0],o[0],o[1],o[1],o[2],o[2]].join("")}if(l.length===8){const o=parseInt(l.slice(6,8),16)/255;return{r:parseInt(l.slice(0,2),16),g:parseInt(l.slice(2,4),16),b:parseInt(l.slice(4,6),16),a:o}}const r=parseInt(l,16);return{r:r>>16&255,g:r>>8&255,b:r&255,a:1}}function aC(n){const[l,r,o,s]=n.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:l,g:r,b:o,a:s===void 0?1:s}}function oC(n){const l=n.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!l)return{r:0,g:0,b:0,a:1};const r=parseInt(l[1],10),o=parseInt(l[2],10)/100,s=parseInt(l[3],10)/100,u=l[5]?parseFloat(l[5]):void 0,f=(1-Math.abs(2*s-1))*o,m=r/60,p=f*(1-Math.abs(m%2-1)),h=s-f/2;let S,g,v;return m>=0&&m<1?(S=f,g=p,v=0):m>=1&&m<2?(S=p,g=f,v=0):m>=2&&m<3?(S=0,g=f,v=p):m>=3&&m<4?(S=0,g=p,v=f):m>=4&&m<5?(S=p,g=0,v=f):(S=f,g=0,v=p),{r:Math.round((S+h)*255),g:Math.round((g+h)*255),b:Math.round((v+h)*255),a:u||1}}function ym(n){return nC(n)?lC(n):n.startsWith("rgb")?aC(n):n.startsWith("hsl")?oC(n):{r:0,g:0,b:0,a:1}}function bd(n){return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}function rC(n){const l=n.match(/oklch\((.*?)%\s/);return l?parseFloat(l[1]):null}function iC(n){if(n.startsWith("oklch("))return(rC(n)||0)/100;const{r:l,g:r,b:o}=ym(n),s=l/255,u=r/255,f=o/255,m=bd(s),p=bd(u),h=bd(f);return .2126*m+.7152*p+.0722*h}function Fr(n,l=.179){return n.startsWith("var(")?!1:iC(n)>l}function ya({color:n,theme:l,colorScheme:r}){if(typeof n!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof n}`);if(n==="bright")return{color:n,value:r==="dark"?l.white:l.black,shade:void 0,isThemeColor:!1,isLight:Fr(r==="dark"?l.white:l.black,l.luminanceThreshold),variable:"--mantine-color-bright"};if(n==="dimmed")return{color:n,value:r==="dark"?l.colors.dark[2]:l.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Fr(r==="dark"?l.colors.dark[2]:l.colors.gray[6],l.luminanceThreshold),variable:"--mantine-color-dimmed"};if(n==="white"||n==="black")return{color:n,value:n==="white"?l.white:l.black,shade:void 0,isThemeColor:!1,isLight:Fr(n==="white"?l.white:l.black,l.luminanceThreshold),variable:`--mantine-color-${n}`};const[o,s]=n.split("."),u=s?Number(s):void 0,f=o in l.colors;if(f){const m=u!==void 0?l.colors[o][u]:l.colors[o][ni(l,r||"light")];return{color:o,value:m,shade:u,isThemeColor:f,isLight:Fr(m,l.luminanceThreshold),variable:s?`--mantine-color-${o}-${u}`:`--mantine-color-${o}-filled`}}return{color:n,value:n,isThemeColor:f,isLight:Fr(n,l.luminanceThreshold),shade:u,variable:void 0}}function ha(n,l){const r=ya({color:n||l.primaryColor,theme:l});return r.variable?`var(${r.variable})`:n}function bm(n){return!!n&&typeof n=="object"&&"mantine-virtual-color"in n}function Ya(n,l){if(n.startsWith("var("))return`color-mix(in srgb, ${n}, black ${l*100}%)`;const{r,g:o,b:s,a:u}=ym(n),f=1-l,m=p=>Math.round(p*f);return`rgba(${m(r)}, ${m(o)}, ${m(s)}, ${u})`}function Xd(n,l){const r={from:(n==null?void 0:n.from)||l.defaultGradient.from,to:(n==null?void 0:n.to)||l.defaultGradient.to,deg:(n==null?void 0:n.deg)??l.defaultGradient.deg??0},o=ha(r.from,l),s=ha(r.to,l);return`linear-gradient(${r.deg}deg, ${o} 0%, ${s} 100%)`}function fa(n,l){if(typeof n!="string"||l>1||l<0)return"rgba(0, 0, 0, 1)";if(n.startsWith("var("))return`color-mix(in srgb, ${n}, transparent ${(1-l)*100}%)`;if(n.startsWith("oklch"))return n.includes("/")?n.replace(/\/\s*[\d.]+\s*\)/,`/ ${l})`):n.replace(")",` / ${l})`);const{r,g:o,b:s}=ym(n);return`rgba(${r}, ${o}, ${s}, ${l})`}const Hy=fa,sC=({color:n,theme:l,variant:r,gradient:o,autoContrast:s})=>{const u=ya({color:n,theme:l}),f=typeof s=="boolean"?s:l.autoContrast;if(r==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(r==="filled"){const m=u.isThemeColor&&u.shade===void 0&&bm(l.colors[u.color]),p=f?m?`var(--mantine-color-${u.color}-contrast)`:u.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)":"var(--mantine-color-white)";return u.isThemeColor?u.shade===void 0?{background:`var(--mantine-color-${n}-filled)`,hover:`var(--mantine-color-${n}-filled-hover)`,color:p,border:`${K(1)} solid transparent`}:{background:`var(--mantine-color-${u.color}-${u.shade})`,hover:`var(--mantine-color-${u.color}-${u.shade===9?8:u.shade+1})`,color:p,border:`${K(1)} solid transparent`}:{background:n,hover:Ya(n,.1),color:p,border:`${K(1)} solid transparent`}}if(r==="light"){if(u.isThemeColor){if(u.shade===void 0)return{background:`var(--mantine-color-${n}-light)`,hover:`var(--mantine-color-${n}-light-hover)`,color:`var(--mantine-color-${n}-light-color)`,border:`${K(1)} solid transparent`};const m=l.colors[u.color][u.shade];return{background:m,hover:Ya(m,.1),color:`var(--mantine-color-${u.color}-light-color)`,border:`${K(1)} solid transparent`}}return{background:fa(n,.1),hover:fa(n,.12),color:n,border:`${K(1)} solid transparent`}}if(r==="outline")return u.isThemeColor?u.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${n}-outline-hover)`,color:`var(--mantine-color-${n}-outline)`,border:`${K(1)} solid var(--mantine-color-${n}-outline)`}:{background:"transparent",hover:fa(l.colors[u.color][u.shade],.05),color:`var(--mantine-color-${u.color}-${u.shade})`,border:`${K(1)} solid var(--mantine-color-${u.color}-${u.shade})`}:{background:"transparent",hover:fa(n,.05),color:n,border:`${K(1)} solid ${n}`};if(r==="subtle"){if(u.isThemeColor){if(u.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${n}-light-hover)`,color:`var(--mantine-color-${n}-light-color)`,border:`${K(1)} solid transparent`};const m=l.colors[u.color][u.shade];return{background:"transparent",hover:fa(m,.12),color:`var(--mantine-color-${u.color}-${Math.min(u.shade,6)})`,border:`${K(1)} solid transparent`}}return{background:"transparent",hover:fa(n,.12),color:n,border:`${K(1)} solid transparent`}}return r==="transparent"?u.isThemeColor?u.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${n}-light-color)`,border:`${K(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${u.color}-${Math.min(u.shade,6)})`,border:`${K(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:n,border:`${K(1)} solid transparent`}:r==="white"?u.isThemeColor?u.shade===void 0?{background:"var(--mantine-color-white)",hover:Ya(l.white,.01),color:`var(--mantine-color-${n}-filled)`,border:`${K(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Ya(l.white,.01),color:`var(--mantine-color-${u.color}-${u.shade})`,border:`${K(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Ya(l.white,.01),color:n,border:`${K(1)} solid transparent`}:r==="gradient"?{background:Xd(o,l),hover:Xd(o,l),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:`${K(1)} solid var(--mantine-color-default-border)`}:{}};function Sm({color:n,theme:l,autoContrast:r,colorScheme:o}){return(typeof r=="boolean"?r:l.autoContrast)&&ya({color:n||l.primaryColor,theme:l,colorScheme:o}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Id(n,l,r){return Sm({color:r==="dark"?n.dark:n.light,theme:l,colorScheme:r,autoContrast:!0})}function Uy(n,l){const r=n.colors[n.primaryColor];return bm(r)?n.autoContrast?Id(r,n,l):"var(--mantine-color-white)":Sm({color:r[ni(n,l)],theme:n,autoContrast:null})}const xm=x.createContext(null);function al(){const n=x.use(xm);if(!n)throw new Error("[@mantine/core] MantineProvider was not found in tree");return n}function cC(){return al().cssVariablesResolver}function uC(){return al().classNamesPrefix}function cc(){return al().getStyleNonce}function fC(){return al().withStaticClasses}function dC(){return al().headless}function mC(){var n;return(n=al().stylesTransform)==null?void 0:n.sx}function pC(){var n;return(n=al().stylesTransform)==null?void 0:n.styles}function wm(){return al().env||"default"}function hC(){return al().deduplicateInlineStyles}function Yy(n){const l=document.createElement("style");return l.setAttribute("data-mantine-styles","inline"),l.innerHTML="*, *::before, *::after {transition: none !important;}",l.setAttribute("data-mantine-disable-transition","true"),n&&l.setAttribute("nonce",n),document.head.appendChild(l),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(o=>o.remove())}function Qb({keepTransitions:n}={}){var S;const l=x.useRef(Ub),r=x.useRef(-1),o=x.use(xm),s=x.useRef((S=cc())==null?void 0:S());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const u=g=>{o.setColorScheme(g),l.current=n?()=>{}:Yy(s.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{var v;(v=l.current)==null||v.call(l)},10)},f=()=>{o.clearColorScheme(),l.current=n?()=>{}:Yy(s.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{var g;(g=l.current)==null||g.call(l)},10)},m=Yb("light",{getInitialValueInEffect:!1}),p=o.colorScheme==="auto"?m:o.colorScheme,h=x.useCallback(()=>u(p==="light"?"dark":"light"),[u,p]);return x.useEffect(()=>()=>{var g;(g=l.current)==null||g.call(l),window.clearTimeout(r.current)},[]),{colorScheme:o.colorScheme,setColorScheme:u,clearColorScheme:f,toggleColorScheme:h}}function Bo(n,l){var s,u;const r=typeof window<"u"&&"matchMedia"in window&&((s=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:s.matches),o=n!=="auto"?n:r?"dark":"light";(u=l())==null||u.setAttribute("data-mantine-color-scheme",o)}function vC({manager:n,defaultColorScheme:l,getRootElement:r,forceColorScheme:o}){const s=x.useRef(null),[u,f]=x.useState(()=>n.get(l)),m=o||u,p=x.useCallback(S=>{o||(Bo(S,r),f(S),n.set(S))},[n.set,m,o]),h=x.useCallback(()=>{f(l),Bo(l,r),n.clear()},[n.clear,l]);return x.useEffect(()=>(n.subscribe(p),n.unsubscribe),[n.subscribe,n.unsubscribe]),el(()=>{Bo(n.get(l),r)},[]),x.useEffect(()=>{var g;if(o)return Bo(o,r),()=>{};o===void 0&&Bo(u,r),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const S=v=>{u==="auto"&&Bo(v.matches?"dark":"light",r)};return(g=s.current)==null||g.addEventListener("change",S),()=>{var v;return(v=s.current)==null?void 0:v.removeEventListener("change",S)}},[u,o]),{colorScheme:m,setColorScheme:p,clearColorScheme:h}}function Kb(n,l={getInitialValueInEffect:!0}){const r=Yb(n,l),{colorScheme:o}=Qb();return o==="auto"?r:o}const gC={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"]},qy="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Cm={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:gC,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:sC,autoContrast:!1,luminanceThreshold:.3,fontFamily:qy,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:"md",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:qy,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:K(34),lineHeight:"1.3"},h2:{fontSize:K(26),lineHeight:"1.35"},h3:{fontSize:K(22),lineHeight:"1.4"},h4:{fontSize:K(18),lineHeight:"1.45"},h5:{fontSize:K(16),lineHeight:"1.5"},h6:{fontSize:K(14),lineHeight:"1.5"}}},fontSizes:{xs:K(12),sm:K(14),md:K(16),lg:K(18),xl:K(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},fontWeights:{regular:"400",medium:"600",bold:"700"},radius:{xs:K(2),sm:K(4),md:K(8),lg:K(16),xl:K(32)},spacing:{xs:K(10),sm:K(12),md:K(16),lg:K(20),xl:K(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), 0 ${K(1)} ${K(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(10)} ${K(15)} ${K(-5)}, rgba(0, 0, 0, 0.04) 0 ${K(7)} ${K(7)} ${K(-5)}`,md:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(20)} ${K(25)} ${K(-5)}, rgba(0, 0, 0, 0.04) 0 ${K(10)} ${K(10)} ${K(-5)}`,lg:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(28)} ${K(23)} ${K(-7)}, rgba(0, 0, 0, 0.04) 0 ${K(12)} ${K(12)} ${K(-7)}`,xl:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(36)} ${K(28)} ${K(-7)}, rgba(0, 0, 0, 0.04) 0 ${K(17)} ${K(17)} ${K(-7)}`},other:{},components:{}},yC="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Vy="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Sd(n){return n<0||n>9?!1:parseInt(n.toString(),10)===n}function Gy(n){if(!(n.primaryColor in n.colors))throw new Error(yC);if(typeof n.primaryShade=="object"&&(!Sd(n.primaryShade.dark)||!Sd(n.primaryShade.light)))throw new Error(Vy);if(typeof n.primaryShade=="number"&&!Sd(n.primaryShade))throw new Error(Vy)}function bC(n,l){var o;if(!l)return Gy(n),n;const r=sm(n,l);return l.fontFamily&&!((o=l.headings)!=null&&o.fontFamily)&&(r.headings={...r.headings,fontFamily:l.fontFamily}),Gy(r),r}const Tm=x.createContext(null),SC=()=>x.use(Tm)||Cm;function cn(){const n=x.use(Tm);if(!n)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return n}function Fb({theme:n,children:l,inherit:r=!0}){const o=SC(),s=x.useMemo(()=>bC(r?o:Cm,n),[n,o,r]);return y.jsx(Tm,{value:s,children:l})}Fb.displayName="@mantine/core/MantineThemeProvider";function xd(n){return Object.entries(n).map(([l,r])=>`${l}: ${r};`).join("")}function Jb(n,l){const r=l?[l]:[":root",":host"],o=xd(n.variables),s=o?`${r.join(", ")}{${o}}`:"",u=xd(n.dark),f=xd(n.light),m=p=>r.map(h=>h===":host"?`${h}([data-mantine-color-scheme="${p}"])`:`${h}[data-mantine-color-scheme="${p}"]`).join(", ");return`${s}
50
50
 
51
- ${u?`${d("dark")}{${u}}`:""}
51
+ ${u?`${m("dark")}{${u}}`:""}
52
52
 
53
- ${f?`${d("light")}{${f}}`:""}`}function Ds({theme:n,color:l,colorScheme:r,name:o=l,withColorValues:s=!0}){if(!n.colors[l])return{};if(r==="light"){const d=ti(n,"light"),p={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${d})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${d===9?8:d+1})`,[`--mantine-color-${o}-light`]:`var(--mantine-color-${o}-1)`,[`--mantine-color-${o}-light-hover`]:`var(--mantine-color-${o}-2)`,[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-9)`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${d})`,[`--mantine-color-${o}-outline-hover`]:Uy(n.colors[l][d],.05)};return s?{[`--mantine-color-${o}-0`]:n.colors[l][0],[`--mantine-color-${o}-1`]:n.colors[l][1],[`--mantine-color-${o}-2`]:n.colors[l][2],[`--mantine-color-${o}-3`]:n.colors[l][3],[`--mantine-color-${o}-4`]:n.colors[l][4],[`--mantine-color-${o}-5`]:n.colors[l][5],[`--mantine-color-${o}-6`]:n.colors[l][6],[`--mantine-color-${o}-7`]:n.colors[l][7],[`--mantine-color-${o}-8`]:n.colors[l][8],[`--mantine-color-${o}-9`]:n.colors[l][9],...p}:p}const u=ti(n,"dark"),f={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${u})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${u===9?8:u+1})`,[`--mantine-color-${o}-light`]:Ha(n.colors[l][9],.5),[`--mantine-color-${o}-light-hover`]:Ha(n.colors[l][9],.3),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-0)`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(u-4,0)})`,[`--mantine-color-${o}-outline-hover`]:Uy(n.colors[l][Math.max(u-4,0)],.05)};return s?{[`--mantine-color-${o}-0`]:n.colors[l][0],[`--mantine-color-${o}-1`]:n.colors[l][1],[`--mantine-color-${o}-2`]:n.colors[l][2],[`--mantine-color-${o}-3`]:n.colors[l][3],[`--mantine-color-${o}-4`]:n.colors[l][4],[`--mantine-color-${o}-5`]:n.colors[l][5],[`--mantine-color-${o}-6`]:n.colors[l][6],[`--mantine-color-${o}-7`]:n.colors[l][7],[`--mantine-color-${o}-8`]:n.colors[l][8],[`--mantine-color-${o}-9`]:n.colors[l][9],...f}:f}function ka(n,l,r){Mt(l).forEach(o=>Object.assign(n,{[`--mantine-${r}-${o}`]:l[o]}))}const Jb=n=>{const l=ti(n,"light"),r=n.defaultRadius in n.radius?n.radius[n.defaultRadius]:K(n.defaultRadius),o={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":n.scale.toString(),"--mantine-cursor-type":n.cursorType,"--mantine-webkit-font-smoothing":n.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":n.fontSmoothing?"grayscale":"unset","--mantine-color-white":n.white,"--mantine-color-black":n.black,"--mantine-line-height":n.lineHeights.md,"--mantine-font-family":n.fontFamily,"--mantine-font-family-monospace":n.fontFamilyMonospace,"--mantine-font-family-headings":n.headings.fontFamily,"--mantine-heading-font-weight":n.headings.fontWeight,"--mantine-heading-text-wrap":n.headings.textWrap,"--mantine-radius-default":r,"--mantine-primary-color-filled":`var(--mantine-color-${n.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${n.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${n.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${n.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${n.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":Hy(n,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":n.black,"--mantine-color-body":n.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-success":"var(--mantine-color-teal-8)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${n.primaryColor}-${l})`,"--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)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":Hy(n,"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-success":"var(--mantine-color-teal-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${n.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)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};ka(o.variables,n.breakpoints,"breakpoint"),ka(o.variables,n.spacing,"spacing"),ka(o.variables,n.fontSizes,"font-size"),ka(o.variables,n.lineHeights,"line-height"),ka(o.variables,n.shadows,"shadow"),ka(o.variables,n.radius,"radius"),ka(o.variables,n.fontWeights,"font-weight"),n.colors[n.primaryColor].forEach((u,f)=>{o.variables[`--mantine-primary-color-${f}`]=`var(--mantine-color-${n.primaryColor}-${f})`}),Mt(n.colors).forEach(u=>{const f=n.colors[u];if(bm(f)){Object.assign(o.light,Ds({theme:n,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,Ds({theme:n,name:f.name,color:f.dark,colorScheme:"dark",withColorValues:!0})),o.light[`--mantine-color-${f.name}-contrast`]=Xd(f,n,"light"),o.dark[`--mantine-color-${f.name}-contrast`]=Xd(f,n,"dark");return}f.forEach((d,p)=>{o.variables[`--mantine-color-${u}-${p}`]=d}),Object.assign(o.light,Ds({theme:n,color:u,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,Ds({theme:n,color:u,colorScheme:"dark",withColorValues:!1}))});const s=n.headings.sizes;return Mt(s).forEach(u=>{o.variables[`--mantine-${u}-font-size`]=s[u].fontSize,o.variables[`--mantine-${u}-line-height`]=s[u].lineHeight,o.variables[`--mantine-${u}-font-weight`]=s[u].fontWeight||n.headings.fontWeight}),o};function bC(){const n=cn(),l=sc(),r=Mt(n.breakpoints).reduce((o,s)=>{const u=n.breakpoints[s].includes("px"),f=Ud(n.breakpoints[s]);return`${o}@media (max-width: ${u?`${f-.1}px`:Ks(f-.1)}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${u?`${f}px`:Ks(f)}) {.mantine-hidden-from-${s} {display: none !important;}}`},"");return y.jsx("style",{"data-mantine-styles":"classes",nonce:l==null?void 0:l(),dangerouslySetInnerHTML:{__html:r}})}function SC({theme:n,generator:l}){const r=Jb(n),o=l==null?void 0:l(n);return o?sm(r,o):r}const xd=Jb(Cm);function xC(n){const l={variables:{},light:{},dark:{}};return Mt(n.variables).forEach(r=>{xd.variables[r]!==n.variables[r]&&(l.variables[r]=n.variables[r])}),Mt(n.light).forEach(r=>{xd.light[r]!==n.light[r]&&(l.light[r]=n.light[r])}),Mt(n.dark).forEach(r=>{xd.dark[r]!==n.dark[r]&&(l.dark[r]=n.dark[r])}),l}function wC(n){return Fb({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},n)}function Pb({cssVariablesSelector:n,deduplicateCssVariables:l}){const r=cn(),o=sc(),s=SC({theme:r,generator:iC()}),u=(n===void 0||n===":root"||n===":host")&&l,f=Fb(u?xC(s):s,n);return f?y.jsx("style",{"data-mantine-styles":!0,nonce:o==null?void 0:o(),dangerouslySetInnerHTML:{__html:`${f}${u?"":wC(n)}`}}):null}Pb.displayName="@mantine/CssVariables";function CC({respectReducedMotion:n,getRootElement:l}){Wn(()=>{var r;n&&((r=l())==null||r.setAttribute("data-respect-reduced-motion","true"))},[n])}function Wb({theme:n,children:l,getStyleNonce:r,withStaticClasses:o=!0,withGlobalClasses:s=!0,deduplicateCssVariables:u=!0,withCssVariables:f=!0,cssVariablesSelector:d,classNamesPrefix:p="mantine",colorSchemeManager:h=W2(),defaultColorScheme:S="light",getRootElement:g=()=>document.documentElement,cssVariablesResolver:v,forceColorScheme:w,stylesTransform:E,env:C,deduplicateInlineStyles:T=!1}){const{colorScheme:A,setColorScheme:N,clearColorScheme:_}=pC({defaultColorScheme:S,forceColorScheme:w,manager:h,getRootElement:g});return CC({respectReducedMotion:(n==null?void 0:n.respectReducedMotion)||!1,getRootElement:g}),y.jsx(xm,{value:{colorScheme:A,setColorScheme:N,clearColorScheme:_,getRootElement:g,classNamesPrefix:p,getStyleNonce:r,cssVariablesResolver:v,cssVariablesSelector:d??":root",withStaticClasses:o,stylesTransform:E,env:C,deduplicateInlineStyles:T},children:y.jsxs(Kb,{theme:n,children:[f&&y.jsx(Pb,{cssVariablesSelector:d,deduplicateCssVariables:u}),s&&y.jsx(bC,{}),l]})})}Wb.displayName="@mantine/core/MantineProvider";function ue(n,l,r){var f;const o=cn(),s=(Array.isArray(n)?n:[n]).filter(Boolean);let u={};for(const d of s){const p=(f=o.components[d])==null?void 0:f.defaultProps,h=typeof p=="function"?p(o):p;h&&(u={...u,...h})}return{...l,...u,...cm(r)}}function cc({classNames:n,styles:l,props:r,stylesCtx:o}){const s=cn();return{resolvedClassNames:n===void 0?void 0:ei({theme:s,classNames:n,props:r,stylesCtx:o||void 0}),resolvedStyles:l===void 0?void 0:Js({theme:s,styles:l,props:r,stylesCtx:o||void 0})}}const TC={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function RC({theme:n,options:l,unstyled:r}){return gt((l==null?void 0:l.focusable)&&!r&&(n.focusClassName||TC[n.focusRing]),(l==null?void 0:l.active)&&!r&&n.activeClassName)}function EC({selector:n,stylesCtx:l,options:r,props:o,theme:s}){return ei({theme:s,classNames:r==null?void 0:r.classNames,props:(r==null?void 0:r.props)||o,stylesCtx:l})[n]}function AC({selector:n,stylesCtx:l,theme:r,classNames:o,props:s}){return ei({theme:r,classNames:o,props:s,stylesCtx:l})[n]}function _C({rootSelector:n,selector:l,className:r}){return n===l?r:void 0}function NC({selector:n,classes:l,unstyled:r}){return r?void 0:l[n]}function MC({themeName:n,classNamesPrefix:l,selector:r,withStaticClass:o}){return o===!1?[]:n.map(s=>`${l}-${s}-${r}`)}function OC({options:n,classes:l,selector:r,unstyled:o}){return n!=null&&n.variant&&!o?l[`${r}--${n.variant}`]:void 0}function jC({theme:n,options:l,themeName:r,selector:o,classNamesPrefix:s,resolvedClassNames:u,resolvedThemeClassNames:f,classes:d,unstyled:p,className:h,rootSelector:S,props:g,stylesCtx:v,withStaticClasses:w,headless:E,transformedStyles:C}){return gt(RC({theme:n,options:l,unstyled:p||E}),f.map(T=>T[o]),OC({options:l,classes:d,selector:o,unstyled:p||E}),u[o],AC({selector:o,stylesCtx:v,theme:n,classNames:C,props:g}),EC({selector:o,stylesCtx:v,options:l,props:g,theme:n}),_C({rootSelector:S,selector:o,className:h}),NC({selector:o,classes:d,unstyled:p||E}),w&&!E&&MC({themeName:r,classNamesPrefix:s,selector:o,withStaticClass:l==null?void 0:l.withStaticClass}),l==null?void 0:l.className)}function Rm({style:n,theme:l}){return Array.isArray(n)?n.reduce((r,o)=>({...r,...Rm({style:o,theme:l})}),{}):typeof n=="function"?n(l):n??{}}function zC({theme:n,selector:l,options:r,props:o,stylesCtx:s,rootSelector:u,withStylesTransform:f,resolvedStyles:d,resolvedThemeStyles:p,resolvedVars:h,resolvedRootStyle:S}){return{...p[l],...d[l],...!f&&Js({theme:n,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||o,stylesCtx:s})[l],...h[l],...u===l?S:null,...Rm({style:r==null?void 0:r.style,theme:n})}}function DC(n){return n.reduce((l,r)=>(r&&Object.keys(r).forEach(o=>{l[o]={...l[o],...cm(r[o])}}),l),{})}function $C({props:n,stylesCtx:l,themeName:r,theme:o}){var f;const s=(f=dC())==null?void 0:f();return{getTransformedStyles:d=>s?[...d.map(p=>s(p,{props:n,theme:o,ctx:l})),...r.map(p=>{var h;return s((h=o.components[p])==null?void 0:h.styles,{props:n,theme:o,ctx:l})})].filter(Boolean):[],withStylesTransform:!!s}}function Oe({name:n,classes:l,props:r,stylesCtx:o,className:s,style:u,rootSelector:f="root",unstyled:d,classNames:p,styles:h,vars:S,varsResolver:g,attributes:v}){var le;const w=cn(),E=sC(),C=cC(),T=uC(),A=(Array.isArray(n)?n:[n]).filter(oe=>oe),{withStylesTransform:N,getTransformedStyles:_}=$C({props:r,stylesCtx:o,themeName:A,theme:w}),j=ei({theme:w,classNames:p,props:r,stylesCtx:o}),L=A.map(oe=>{var ee;return ei({theme:w,classNames:(ee=w.components[oe])==null?void 0:ee.classNames,props:r,stylesCtx:o})}),k=N?{}:Js({theme:w,styles:h,props:r,stylesCtx:o}),D={};if(!N)for(const oe of A){const ee=Js({theme:w,styles:(le=w.components[oe])==null?void 0:le.styles,props:r,stylesCtx:o});for(const F of Object.keys(ee))D[F]={...D[F],...ee[F]}}const U=DC([T?{}:g==null?void 0:g(w,r,o),...A.map(oe=>{var ee,F,V;return(V=(F=(ee=w.components)==null?void 0:ee[oe])==null?void 0:F.vars)==null?void 0:V.call(F,w,r,o)}),S==null?void 0:S(w,r,o)]),te=Rm({style:u,theme:w});return(oe,ee)=>({...v==null?void 0:v[oe],className:jC({theme:w,options:ee,themeName:A,selector:oe,classNamesPrefix:E,resolvedClassNames:j,resolvedThemeClassNames:L,classes:l,unstyled:d,className:s,rootSelector:f,props:r,stylesCtx:o,withStaticClasses:C,headless:T,transformedStyles:_([ee==null?void 0:ee.styles,h])}),style:zC({theme:w,selector:oe,options:ee,props:r,stylesCtx:o,rootSelector:f,withStylesTransform:N,resolvedStyles:k,resolvedThemeStyles:D,resolvedVars:U,resolvedRootStyle:te})})}function Pr(n){return Mt(n).reduce((l,r)=>n[r]!==void 0?`${l}${b2(r)}:${n[r]};`:l,"").trim()}function LC({selector:n,styles:l,media:r,container:o}){const s=l?Pr(l):"",u=Array.isArray(r)?r.map(d=>`@media${d.query}{${n}{${Pr(d.styles)}}}`):[],f=Array.isArray(o)?o.map(d=>`@container ${d.query}{${n}{${Pr(d.styles)}}}`):[];return`${s?`${n}{${s}}`:""}${u.join("")}${f.join("")}`.trim()}function BC(n){let l=5381;for(let r=0;r<n.length;r++)l=(l<<5)+l+n.charCodeAt(r)&4294967295;return(l>>>0).toString(36)}function e0({deduplicate:n,...l}){const r=sc(),o=LC(l);return n?y.jsx("style",{href:`mantine-${BC(o)}`,precedence:"mantine",nonce:r==null?void 0:r(),children:o}):y.jsx("style",{"data-mantine-styles":"inline",nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:o}})}function kC(n){let l=5381;for(let r=0;r<n.length;r++)l=(l<<5)+l+n.charCodeAt(r)&4294967295;return(l>>>0).toString(36)}function UC(n,l){return`__mdi__-${kC(`${n?Pr(n):""}|${Array.isArray(l)?l.map(r=>`${r.query}:${Pr(r.styles)}`).join("|"):""}`)}`}function Em(n){const{m:l,mx:r,my:o,mt:s,mb:u,ml:f,mr:d,me:p,ms:h,mis:S,mie:g,p:v,px:w,py:E,pt:C,pb:T,pl:A,pr:N,pe:_,ps:j,pis:L,pie:k,bd:D,bdrs:U,bg:te,c:le,opacity:oe,ff:ee,fz:F,fw:V,lts:ce,ta:O,lh:B,fs:H,tt:Z,td:P,w:M,miw:Y,maw:J,h:ae,mih:se,mah:de,bgsz:ge,bgp:pe,bgr:he,bga:Me,pos:Se,top:Ce,left:ie,bottom:ye,right:Ne,inset:Te,display:Ve,flex:ut,hiddenFrom:jt,visibleFrom:fn,lightHidden:dn,darkHidden:zt,sx:Pt,...je}=n;return{styleProps:cm({m:l,mx:r,my:o,mt:s,mb:u,ml:f,mr:d,me:p,ms:h,mis:S,mie:g,p:v,px:w,py:E,pt:C,pb:T,pl:A,pr:N,pis:L,pie:k,pe:_,ps:j,bd:D,bg:te,c:le,opacity:oe,ff:ee,fz:F,fw:V,lts:ce,ta:O,lh:B,fs:H,tt:Z,td:P,w:M,miw:Y,maw:J,h:ae,mih:se,mah:de,bgsz:ge,bgp:pe,bgr:he,bga:Me,pos:Se,top:Ce,left:ie,bottom:ye,right:Ne,inset:Te,display:Ve,flex:ut,bdrs:U,hiddenFrom:jt,visibleFrom:fn,lightHidden:dn,darkHidden:zt,sx:Pt}),rest:je}}const HC={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"},mis:{type:"spacing",property:"marginInlineStart"},mie:{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"},pis:{type:"spacing",property:"paddingInlineStart"},pie:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},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 Am(n,l){const r=ga({color:n,theme:l});return r.color==="dimmed"?"var(--mantine-color-dimmed)":r.color==="bright"?"var(--mantine-color-bright)":r.variable?`var(${r.variable})`:r.color}function YC(n,l){const r=ga({color:n,theme:l});return r.isThemeColor&&r.shade===void 0?`var(--mantine-color-${r.color}-text)`:Am(n,l)}function qC(n,l){if(typeof n=="number")return K(n);if(typeof n=="string"){const[r,o,...s]=n.split(" ").filter(f=>f.trim()!=="");let u=`${K(r)}`;return o&&(u+=` ${o}`),s.length>0&&(u+=` ${Am(s.join(" "),l)}`),u.trim()}return n}const Xy={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 VC(n){return typeof n=="string"&&n in Xy?Xy[n]:n}const GC=["h1","h2","h3","h4","h5","h6"];function XC(n,l){return typeof n=="string"&&n in l.fontSizes?`var(--mantine-font-size-${n})`:typeof n=="string"&&GC.includes(n)?`var(--mantine-${n}-font-size)`:typeof n=="number"||typeof n=="string"?K(n):n}function IC(n){return n}const ZC=["h1","h2","h3","h4","h5","h6"];function QC(n,l){return typeof n=="string"&&n in l.lineHeights?`var(--mantine-line-height-${n})`:typeof n=="string"&&ZC.includes(n)?`var(--mantine-${n}-line-height)`:n}function KC(n,l){return typeof n=="string"&&n in l.radius?`var(--mantine-radius-${n})`:typeof n=="number"||typeof n=="string"?K(n):n}function FC(n){return typeof n=="number"?K(n):n}function JC(n,l){if(typeof n=="number")return K(n);if(typeof n=="string"){const r=n.replace("-","");if(!(r in l.spacing))return K(n);const o=`--mantine-spacing-${r}`;return n.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return n}const wd={color:Am,textColor:YC,fontSize:XC,spacing:JC,radius:KC,identity:IC,size:FC,lineHeight:QC,fontFamily:VC,border:qC};function Iy(n){return n.replace("(min-width: ","").replace("em)","")}function PC({media:n,...l}){const r=Object.keys(n).sort((o,s)=>Number(Iy(o))-Number(Iy(s))).map(o=>({query:o,styles:n[o]}));return{...l,media:r}}function WC(n){if(typeof n!="object"||n===null)return!1;const l=Object.keys(n);return!(l.length===1&&l[0]==="base")}function eT(n){return typeof n=="object"&&n!==null?"base"in n?n.base:void 0:n}function tT(n){return typeof n=="object"&&n!==null?Mt(n).filter(l=>l!=="base"):[]}function nT(n,l){return typeof n=="object"&&n!==null&&l in n?n[l]:n}function lT({styleProps:n,data:l,theme:r}){return PC(Mt(n).reduce((o,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return o;const u=l[s],f=Array.isArray(u.property)?u.property:[u.property],d=eT(n[s]);if(!WC(n[s]))return f.forEach(h=>{o.inlineStyles[h]=wd[u.type](d,r)}),o;o.hasResponsiveStyles=!0;const p=tT(n[s]);return f.forEach(h=>{d!=null&&(o.styles[h]=wd[u.type](d,r)),p.forEach(S=>{const g=`(min-width: ${r.breakpoints[S]})`;o.media[g]={...o.media[g],[h]:wd[u.type](nT(n[s],S),r)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function aT(){return`__m__-${x.useId().replace(/[:«»]/g,"")}`}function t0(n,l){return Array.isArray(n)?[...n].reduce((r,o)=>({...r,...t0(o,l)}),{}):typeof n=="function"?n(l):n??{}}function oT(n){return n}const rT=oT;function n0(n){return n}function me(n){const l=n;return l.extend=n0,l.withProps=r=>{const o=s=>y.jsx(l,{...r,...s});return o.extend=l.extend,o.displayName=`WithProps(${l.displayName})`,o},l}function l0(n){return me(n)}function Kt(n){const l=n;return l.withProps=r=>{const o=s=>y.jsx(l,{...r,...s});return o.extend=l.extend,o.displayName=`WithProps(${l.displayName})`,o},l.extend=n0,l}function a0(n){return`data-${(n.startsWith("data-")?n.slice(5):n).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`}function iT(n){return Object.keys(n).reduce((l,r)=>{const o=n[r];return o===void 0||o===""||o===!1||o===null||(l[a0(r)]=n[r]),l},{})}function o0(n){return n?typeof n=="string"?{[a0(n)]:!0}:Array.isArray(n)?[...n].reduce((l,r)=>({...l,...o0(r)}),{}):iT(n):null}function Id(n,l){return Array.isArray(n)?[...n].reduce((r,o)=>({...r,...Id(o,l)}),{}):typeof n=="function"?n(l):n??{}}function sT({theme:n,style:l,vars:r,styleProps:o}){const s=Id(l,n),u=Id(r,n);return{...s,...u,...o}}function r0({component:n,style:l,__vars:r,className:o,variant:s,mod:u,size:f,hiddenFrom:d,visibleFrom:p,lightHidden:h,darkHidden:S,renderRoot:g,__size:v,ref:w,...E}){var te,le;const C=cn(),T=n||"div",{styleProps:A,rest:N}=Em(E),_=(le=(te=fC())==null?void 0:te())==null?void 0:le(A.sx),j=aT(),L=lT({styleProps:A,theme:C,data:HC}),k=mC(),D=k&&L.hasResponsiveStyles?UC(L.styles,L.media):j,U={ref:w,style:sT({theme:C,style:l,vars:r,styleProps:L.inlineStyles}),className:gt(o,_,{[D]:L.hasResponsiveStyles,"mantine-light-hidden":h,"mantine-dark-hidden":S,[`mantine-hidden-from-${d}`]:d,[`mantine-visible-from-${p}`]:p}),"data-variant":s,"data-size":kb(f)?void 0:f||void 0,size:v,...o0(u),...N};return y.jsxs(y.Fragment,{children:[L.hasResponsiveStyles&&y.jsx(e0,{selector:`.${D}`,styles:L.styles,media:L.media,deduplicate:k}),typeof g=="function"?g(U):y.jsx(T,{...U})]})}r0.displayName="@mantine/core/Box";const fe=rT(r0),cT=x.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function al(){return x.use(cT)}const[uT,Rn]=Nl("ScrollArea.Root component was not found in tree");function ha(n,l){const r=x.useEffectEvent(l);Wn(()=>{let o=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(o),s.unobserve(n)}}},[n])}function fT(n){const{style:l,...r}=n,o=Rn(),[s,u]=x.useState(0),[f,d]=x.useState(0),p=!!(s&&f);return ha(o.scrollbarX,()=>{var S;const h=((S=o.scrollbarX)==null?void 0:S.offsetHeight)||0;o.onCornerHeightChange(h),d(h)}),ha(o.scrollbarY,()=>{var S;const h=((S=o.scrollbarY)==null?void 0:S.offsetWidth)||0;o.onCornerWidthChange(h),u(h)}),p?y.jsx("div",{...r,style:{...l,width:s,height:f}}):null}function dT(n){const l=Rn(),r=!!(l.scrollbarX&&l.scrollbarY);return l.type!=="scroll"&&r?y.jsx(fT,{...n}):null}const mT={scrollHideDelay:1e3,type:"hover"};function i0(n){const{type:l,scrollHideDelay:r,scrollbars:o,getStyles:s,ref:u,...f}=ue("ScrollAreaRoot",mT,n),[d,p]=x.useState(null),[h,S]=x.useState(null),[g,v]=x.useState(null),[w,E]=x.useState(null),[C,T]=x.useState(null),[A,N]=x.useState(0),[_,j]=x.useState(0),[L,k]=x.useState(!1),[D,U]=x.useState(!1),te=it(u,p);return y.jsx(uT,{value:{type:l,scrollHideDelay:r,scrollArea:d,viewport:h,onViewportChange:S,content:g,onContentChange:v,scrollbarX:w,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:k,scrollbarY:C,onScrollbarYChange:T,scrollbarYEnabled:D,onScrollbarYEnabledChange:U,onCornerWidthChange:N,onCornerHeightChange:j,getStyles:s},children:y.jsx(fe,{...f,ref:te,__vars:{"--sa-corner-width":o!=="xy"?"0px":`${A}px`,"--sa-corner-height":o!=="xy"?"0px":`${_}px`}})})}i0.displayName="@mantine/core/ScrollAreaRoot";function s0(n,l){const r=n/l;return Number.isNaN(r)?0:r}function uc(n){const l=s0(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,o=(n.scrollbar.size-r)*l;return Math.max(o,18)}function c0(n,l){return r=>{if(n[0]===n[1]||l[0]===l[1])return l[0];const o=(l[1]-l[0])/(n[1]-n[0]);return l[0]+o*(r-n[0])}}function pT(n,[l,r]){return Math.min(r,Math.max(l,n))}function Zy(n,l,r="ltr"){const o=uc(l),s=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,u=l.scrollbar.size-s,f=l.content-l.viewport,d=u-o,p=pT(n,r==="ltr"?[0,f]:[f*-1,0]);return c0([0,f],[0,d])(p)}function hT(n,l,r,o="ltr"){const s=uc(r),u=s/2,f=l||u,d=s-f,p=r.scrollbar.paddingStart+f,h=r.scrollbar.size-r.scrollbar.paddingEnd-d,S=r.content-r.viewport,g=o==="ltr"?[0,S]:[S*-1,0];return c0([p,h],g)(n)}function u0(n,l){return n>0&&n<l}function fa(n){return n?parseInt(n,10):0}function qa(n,l,{checkForDefaultPrevented:r=!0}={}){return o=>{n==null||n(o),(r===!1||!o.defaultPrevented)&&(l==null||l(o))}}const[vT,f0]=Nl("ScrollAreaScrollbar was not found in tree");function d0(n){const{sizes:l,hasThumb:r,onThumbChange:o,onThumbPointerUp:s,onThumbPointerDown:u,onThumbPositionChange:f,onDragScroll:d,onWheelScroll:p,onResize:h,ref:S,...g}=n,v=Rn(),[w,E]=x.useState(null),C=it(S,E),T=x.useRef(null),A=x.useRef(""),{viewport:N}=v,_=l.content-l.viewport,j=x.useEffectEvent(p),L=Yo(f),k=rc(h,10),D=U=>{if(T.current){const te=U.clientX-T.current.left,le=U.clientY-T.current.top;d({x:te,y:le})}};return x.useEffect(()=>{const U=te=>{const le=te.target;w!=null&&w.contains(le)&&j(te,_)};return document.addEventListener("wheel",U,{passive:!1}),()=>document.removeEventListener("wheel",U,{passive:!1})},[N,w,_]),x.useEffect(L,[l,L]),ha(w,k),ha(v.content,k),y.jsx(vT,{value:{scrollbar:w,hasThumb:r,onThumbChange:Yo(o),onThumbPointerUp:Yo(s),onThumbPositionChange:L,onThumbPointerDown:Yo(u)},children:y.jsx("div",{...g,ref:C,"data-mantine-scrollbar":!0,style:{position:"absolute",...g.style},onPointerDown:qa(n.onPointerDown,U=>{U.preventDefault(),U.button===0&&(U.target.setPointerCapture(U.pointerId),T.current=w.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",D(U))}),onPointerMove:qa(n.onPointerMove,D),onPointerUp:qa(n.onPointerUp,U=>{const te=U.target;te.hasPointerCapture(U.pointerId)&&(U.preventDefault(),te.releasePointerCapture(U.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=A.current,T.current=null}})})}const m0=n=>{const{sizes:l,onSizesChange:r,style:o,ref:s,...u}=n,f=Rn(),[d,p]=x.useState(),h=x.useRef(null),S=it(s,h,f.onScrollbarXChange);return x.useEffect(()=>{h.current&&p(getComputedStyle(h.current))},[h]),y.jsx(d0,{"data-orientation":"horizontal",...u,ref:S,sizes:l,style:{...o,"--sa-thumb-width":`${uc(l)}px`},onThumbPointerDown:g=>n.onThumbPointerDown(g.x),onDragScroll:g=>n.onDragScroll(g.x),onWheelScroll:(g,v)=>{if(f.viewport){const w=f.viewport.scrollLeft+g.deltaX;n.onWheelScroll(w),u0(w,v)&&g.preventDefault()}},onResize:()=>{h.current&&f.viewport&&d&&r({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:fa(d.paddingLeft),paddingEnd:fa(d.paddingRight)}})}})};m0.displayName="@mantine/core/ScrollAreaScrollbarX";function p0(n){const{sizes:l,onSizesChange:r,style:o,ref:s,...u}=n,f=Rn(),[d,p]=x.useState(),h=x.useRef(null),S=it(s,h,f.onScrollbarYChange);return x.useEffect(()=>{h.current&&p(window.getComputedStyle(h.current))},[]),y.jsx(d0,{...u,"data-orientation":"vertical",ref:S,sizes:l,style:{"--sa-thumb-height":`${uc(l)}px`,...o},onThumbPointerDown:g=>n.onThumbPointerDown(g.y),onDragScroll:g=>n.onDragScroll(g.y),onWheelScroll:(g,v)=>{if(f.viewport){const w=f.viewport.scrollTop+g.deltaY;n.onWheelScroll(w),u0(w,v)&&g.preventDefault()}},onResize:()=>{h.current&&f.viewport&&d&&r({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:fa(d.paddingTop),paddingEnd:fa(d.paddingBottom)}})}})}p0.displayName="@mantine/core/ScrollAreaScrollbarY";function fc(n){const{orientation:l="vertical",...r}=n,{dir:o}=al(),s=Rn(),u=x.useRef(null),f=x.useRef(0),[d,p]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=s0(d.viewport,d.content),S={...r,sizes:d,onSizesChange:p,hasThumb:h>0&&h<1,onThumbChange:v=>{u.current=v},onThumbPointerUp:()=>{f.current=0},onThumbPointerDown:v=>{f.current=v}},g=(v,w)=>hT(v,f.current,d,w);return l==="horizontal"?y.jsx(m0,{...S,onThumbPositionChange:()=>{if(s.viewport&&u.current){const v=s.viewport.scrollLeft,w=Zy(v,d,o);u.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollLeft=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollLeft=g(v,o))}}):l==="vertical"?y.jsx(p0,{...S,onThumbPositionChange:()=>{if(s.viewport&&u.current){const v=s.viewport.scrollTop,w=Zy(v,d);d.scrollbar.size===0?u.current.style.setProperty("--thumb-opacity","0"):u.current.style.setProperty("--thumb-opacity","1"),u.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollTop=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollTop=g(v))}}):null}fc.displayName="@mantine/core/ScrollAreaScrollbarVisible";function _m(n){const l=Rn(),{forceMount:r,...o}=n,[s,u]=x.useState(!1),f=n.orientation==="horizontal",d=rc(()=>{if(l.viewport){const p=l.viewport.offsetWidth<l.viewport.scrollWidth,h=l.viewport.offsetHeight<l.viewport.scrollHeight;u(f?p:h)}},10);return ha(l.viewport,d),ha(l.content,d),r||s?y.jsx(fc,{"data-state":s?"visible":"hidden",...o}):null}_m.displayName="@mantine/core/ScrollAreaScrollbarAuto";function h0(n){const{forceMount:l,...r}=n,o=Rn(),[s,u]=x.useState(!1);return x.useEffect(()=>{const{scrollArea:f}=o;let d=0;if(f){const p=()=>{window.clearTimeout(d),u(!0)},h=()=>{d=window.setTimeout(()=>u(!1),o.scrollHideDelay)};return f.addEventListener("pointerenter",p),f.addEventListener("pointerleave",h),()=>{window.clearTimeout(d),f.removeEventListener("pointerenter",p),f.removeEventListener("pointerleave",h)}}},[o.scrollArea,o.scrollHideDelay]),l||s?y.jsx(_m,{"data-state":s?"visible":"hidden",...r}):null}h0.displayName="@mantine/core/ScrollAreaScrollbarHover";function gT(n){const{forceMount:l,...r}=n,o=Rn(),s=n.orientation==="horizontal",[u,f]=x.useState("hidden"),d=rc(()=>f("idle"),100);return x.useEffect(()=>{if(u==="idle"){const p=window.setTimeout(()=>f("hidden"),o.scrollHideDelay);return()=>window.clearTimeout(p)}},[u,o.scrollHideDelay]),x.useEffect(()=>{const{viewport:p}=o,h=s?"scrollLeft":"scrollTop";if(p){let S=p[h];const g=()=>{const v=p[h];S!==v&&(f("scrolling"),d()),S=v};return p.addEventListener("scroll",g),()=>p.removeEventListener("scroll",g)}},[o.viewport,s,d]),l||u!=="hidden"?y.jsx(fc,{"data-state":u==="hidden"?"hidden":"visible",...r,onPointerEnter:qa(n.onPointerEnter,()=>f("interacting")),onPointerLeave:qa(n.onPointerLeave,()=>f("idle"))}):null}function Zd(n){const{forceMount:l,...r}=n,o=Rn(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:u}=o,f=n.orientation==="horizontal";return x.useEffect(()=>(f?s(!0):u(!0),()=>{f?s(!1):u(!1)}),[f,s,u]),o.type==="hover"?y.jsx(h0,{...r,forceMount:l}):o.type==="scroll"?y.jsx(gT,{...r,forceMount:l}):o.type==="auto"?y.jsx(_m,{...r,forceMount:l}):o.type==="always"?y.jsx(fc,{...r}):null}Zd.displayName="@mantine/core/ScrollAreaScrollbar";function yT(n,l=()=>{}){let r={left:n.scrollLeft,top:n.scrollTop},o=0;return(function s(){const u={left:n.scrollLeft,top:n.scrollTop},f=r.left!==u.left,d=r.top!==u.top;(f||d)&&l(),r=u,o=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(o)}function v0(n){const{style:l,ref:r,...o}=n,s=Rn(),u=f0(),{onThumbPositionChange:f}=u,d=it(r,u.onThumbChange),p=x.useRef(void 0),h=rc(()=>{p.current&&(p.current(),p.current=void 0)},100);return x.useEffect(()=>{const{viewport:S}=s;if(S){const g=()=>{if(h(),!p.current){const v=yT(S,f);p.current=v,f()}};return f(),S.addEventListener("scroll",g),()=>S.removeEventListener("scroll",g)}},[s.viewport,h,f]),y.jsx("div",{"data-state":u.hasThumb?"visible":"hidden",...o,ref:d,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...l},onPointerDownCapture:qa(n.onPointerDownCapture,S=>{const g=S.target.getBoundingClientRect(),v=S.clientX-g.left,w=S.clientY-g.top;u.onThumbPointerDown({x:v,y:w})}),onPointerUp:qa(n.onPointerUp,u.onThumbPointerUp)})}v0.displayName="@mantine/core/ScrollAreaThumb";function Qd(n){const{forceMount:l,...r}=n,o=f0();return l||o.hasThumb?y.jsx(v0,{...r}):null}Qd.displayName="@mantine/core/ScrollAreaThumb";function g0({children:n,style:l,ref:r,onWheel:o,...s}){const u=Rn(),f=it(r,u.onViewportChange),d=p=>{if(o==null||o(p),u.scrollbarXEnabled&&u.viewport&&p.shiftKey){const{scrollTop:h,scrollHeight:S,clientHeight:g,scrollWidth:v,clientWidth:w}=u.viewport,E=h<1,C=h>=S-g-1;v>w&&(E||C)&&p.stopPropagation()}};return y.jsx(fe,{...s,ref:f,onWheel:d,"data-scrollarea-viewport":!0,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...l},children:y.jsx("div",{...u.getStyles("content"),ref:u.onContentChange,children:n})})}g0.displayName="@mantine/core/ScrollAreaViewport";var Nm={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};function dc(){return typeof window<"u"}function Zo(n){return y0(n)?(n.nodeName||"").toLowerCase():"#document"}function Bt(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function Ol(n){var l;return(l=(y0(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function y0(n){return dc()?n instanceof Node||n instanceof Bt(n).Node:!1}function tt(n){return dc()?n instanceof Element||n instanceof Bt(n).Element:!1}function Un(n){return dc()?n instanceof HTMLElement||n instanceof Bt(n).HTMLElement:!1}function Ps(n){return!dc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Bt(n).ShadowRoot}function mc(n){const{overflow:l,overflowX:r,overflowY:o,display:s}=zn(n);return/auto|scroll|overlay|hidden|clip/.test(l+o+r)&&s!=="inline"&&s!=="contents"}function bT(n){return/^(table|td|th)$/.test(Zo(n))}function pc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const ST=/transform|translate|scale|rotate|perspective|filter/,xT=/paint|layout|strict|content/,Ua=n=>!!n&&n!=="none";let Cd;function Mm(n){const l=tt(n)?zn(n):n;return Ua(l.transform)||Ua(l.translate)||Ua(l.scale)||Ua(l.rotate)||Ua(l.perspective)||!hc()&&(Ua(l.backdropFilter)||Ua(l.filter))||ST.test(l.willChange||"")||xT.test(l.contain||"")}function wT(n){let l=va(n);for(;Un(l)&&!da(l);){if(Mm(l))return l;if(pc(l))return null;l=va(l)}return null}function hc(){return Cd==null&&(Cd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cd}function da(n){return/^(html|body|#document)$/.test(Zo(n))}function zn(n){return Bt(n).getComputedStyle(n)}function vc(n){return tt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function va(n){if(Zo(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Ps(n)&&n.host||Ol(n);return Ps(l)?l.host:l}function b0(n){const l=va(n);return da(l)?(n.ownerDocument||n).body:Un(l)&&mc(l)?l:b0(l)}function Rl(n,l,r){var o;l===void 0&&(l=[]),r===void 0&&(r=!0);const s=b0(n),u=s===((o=n.ownerDocument)==null?void 0:o.body),f=Bt(s);if(u){const d=Kd(f);return l.concat(f,f.visualViewport||[],mc(s)?s:[],d&&r?Rl(d):[])}else return l.concat(s,Rl(s,[],r))}function Kd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const CT=["top","right","bottom","left"],Dn=Math.min,Cn=Math.max,Ws=Math.round,$s=Math.floor,El=n=>({x:n,y:n}),TT={left:"right",right:"left",bottom:"top",top:"bottom"};function S0(n,l,r){return Cn(n,Dn(l,r))}function tl(n,l){return typeof n=="function"?n(l):n}function nl(n){return n.split("-")[0]}function Qo(n){return n.split("-")[1]}function Om(n){return n==="x"?"y":"x"}function jm(n){return n==="y"?"height":"width"}function On(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function zm(n){return Om(On(n))}function RT(n,l,r){r===void 0&&(r=!1);const o=Qo(n),s=zm(n),u=jm(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return l.reference[u]>l.floating[u]&&(f=ec(f)),[f,ec(f)]}function ET(n){const l=ec(n);return[Fd(n),l,Fd(l)]}function Fd(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Qy=["left","right"],Ky=["right","left"],AT=["top","bottom"],_T=["bottom","top"];function NT(n,l,r){switch(n){case"top":case"bottom":return r?l?Ky:Qy:l?Qy:Ky;case"left":case"right":return l?AT:_T;default:return[]}}function MT(n,l,r,o){const s=Qo(n);let u=NT(nl(n),r==="start",o);return s&&(u=u.map(f=>f+"-"+s),l&&(u=u.concat(u.map(Fd)))),u}function ec(n){const l=nl(n);return TT[l]+n.slice(l.length)}function OT(n){var l,r,o,s;return{top:(l=n.top)!=null?l:0,right:(r=n.right)!=null?r:0,bottom:(o=n.bottom)!=null?o:0,left:(s=n.left)!=null?s:0}}function Dm(n){return typeof n!="number"?OT(n):{top:n,right:n,bottom:n,left:n}}function ma(n){const{x:l,y:r,width:o,height:s}=n;return{width:o,height:s,top:r,left:l,right:l+o,bottom:r+s,x:l,y:r}}function jT(){const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform}function zT(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(l=>{let{brand:r,version:o}=l;return r+"/"+o}).join(" "):navigator.userAgent}function DT(){return/apple/i.test(navigator.vendor)}function $T(){return jT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function LT(){return zT().includes("jsdom/")}const Fy="data-floating-ui-focusable",BT="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Jy(n){let l=n.activeElement;for(;((r=l)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;l=l.shadowRoot.activeElement}return l}function ni(n,l){if(!n||!l)return!1;const r=l.getRootNode==null?void 0:l.getRootNode();if(n.contains(l))return!0;if(r&&Ps(r)){let o=l;for(;o;){if(n===o)return!0;o=o.parentNode||o.host}}return!1}function Ho(n){return"composedPath"in n?n.composedPath()[0]:n.target}function Td(n,l){if(l==null)return!1;if("composedPath"in n)return n.composedPath().includes(l);const r=n;return r.target!=null&&l.contains(r.target)}function kT(n){return n.matches("html,body")}function Ya(n){return(n==null?void 0:n.ownerDocument)||document}function UT(n){return Un(n)&&n.matches(BT)}function HT(n){if(!n||LT())return!0;try{return n.matches(":focus-visible")}catch{return!0}}function YT(n){return n?n.hasAttribute(Fy)?n:n.querySelector("["+Fy+"]")||n:null}function Gs(n,l,r){return r===void 0&&(r=!0),n.filter(s=>{var u;return s.parentId===l&&(!r||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...Gs(n,s.id,r)])}function qT(n){return"nativeEvent"in n}function Jd(n,l){const r=["mouse","pen"];return r.push("",void 0),r.includes(n)}var VT=typeof document<"u",GT=function(){},Pn=VT?x.useLayoutEffect:GT;const XT={...$b};function Ls(n){const l=x.useRef(n);return Pn(()=>{l.current=n}),l}const IT=XT.useInsertionEffect,ZT=IT||(n=>n());function Fn(n){const l=x.useRef(()=>{});return ZT(()=>{l.current=n}),x.useCallback(function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return l.current==null?void 0:l.current(...o)},[])}function Py(n,l,r){let{reference:o,floating:s}=n;const u=On(l),f=zm(l),d=jm(f),p=nl(l),h=u==="y",S=o.x+o.width/2-s.width/2,g=o.y+o.height/2-s.height/2,v=o[d]/2-s[d]/2;let w;switch(p){case"top":w={x:S,y:o.y-s.height};break;case"bottom":w={x:S,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:g};break;case"left":w={x:o.x-s.width,y:g};break;default:w={x:o.x,y:o.y}}const E=Qo(l);return E&&(w[f]+=v*(E==="end"?1:-1)*(r&&h?-1:1)),w}async function QT(n,l){var r;l===void 0&&(l={});const{x:o,y:s,platform:u,rects:f,elements:d,strategy:p}=n,{boundary:h="clippingAncestors",rootBoundary:S="viewport",elementContext:g="floating",altBoundary:v=!1,padding:w=0}=tl(l,n),E=Dm(w),T=d[v?g==="floating"?"reference":"floating":g],A=ma(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(T)))==null||r?T:T.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(d.floating)),boundary:h,rootBoundary:S,strategy:p})),N=g==="floating"?{x:o,y:s,width:f.floating.width,height:f.floating.height}:f.reference,_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(d.floating)),j=await(u.isElement==null?void 0:u.isElement(_))&&await(u.getScale==null?void 0:u.getScale(_))||{x:1,y:1},L=ma(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:N,offsetParent:_,strategy:p}):N);return{top:(A.top-L.top+E.top)/j.y,bottom:(L.bottom-A.bottom+E.bottom)/j.y,left:(A.left-L.left+E.left)/j.x,right:(L.right-A.right+E.right)/j.x}}const KT=50,FT=async(n,l,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:u=[],platform:f}=r,d=f.detectOverflow?f:{...f,detectOverflow:QT},p=await(f.isRTL==null?void 0:f.isRTL(l));let h=await f.getElementRects({reference:n,floating:l,strategy:s}),{x:S,y:g}=Py(h,o,p),v=o,w=0;const E={};for(let C=0;C<u.length;C++){const T=u[C];if(!T)continue;const{name:A,fn:N}=T,{x:_,y:j,data:L,reset:k}=await N({x:S,y:g,initialPlacement:o,placement:v,strategy:s,middlewareData:E,rects:h,platform:d,elements:{reference:n,floating:l}});S=_??S,g=j??g,E[A]={...E[A],...L},k&&w<KT&&(w++,typeof k=="object"&&(k.placement&&(v=k.placement),k.rects&&(h=k.rects===!0?await f.getElementRects({reference:n,floating:l,strategy:s}):k.rects),{x:S,y:g}=Py(h,v,p)),C=-1)}return{x:S,y:g,placement:v,strategy:s,middlewareData:E}},JT=n=>({name:"arrow",options:n,async fn(l){const{x:r,y:o,placement:s,rects:u,platform:f,elements:d,middlewareData:p}=l,{element:h,padding:S=0}=tl(n,l)||{};if(h==null)return{};const g=Dm(S),v={x:r,y:o},w=zm(s),E=jm(w),C=await f.getDimensions(h),T=w==="y",A=T?"top":"left",N=T?"bottom":"right",_=T?"clientHeight":"clientWidth",j=u.reference[E]+u.reference[w]-v[w]-u.floating[E],L=v[w]-u.reference[w],k=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h));let D=k?k[_]:0;(!D||!await(f.isElement==null?void 0:f.isElement(k)))&&(D=d.floating[_]||u.floating[E]);const U=j/2-L/2,te=D/2-C[E]/2-1,le=Dn(g[A],te),oe=Dn(g[N],te),ee=D-C[E]-oe,F=D/2-C[E]/2+U,V=S0(le,F,ee),ce=!p.arrow&&Qo(s)!=null&&F!==V&&u.reference[E]/2-(F<le?le:oe)-C[E]/2<0,O=ce?F<le?F-le:F-ee:0;return{[w]:v[w]+O,data:{[w]:V,centerOffset:F-V-O,...ce&&{alignmentOffset:O}},reset:ce}}}),PT=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var r,o;const{placement:s,middlewareData:u,rects:f,initialPlacement:d,platform:p,elements:h}=l,{mainAxis:S=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:C=!0,...T}=tl(n,l);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const A=nl(s),N=On(d),_=nl(d)===d,j=await(p.isRTL==null?void 0:p.isRTL(h.floating)),L=v||(_||!C?[ec(d)]:ET(d)),k=E!=="none";!v&&k&&L.push(...MT(d,C,E,j));const D=[d,...L],U=await p.detectOverflow(l,T),te=[];let le=((o=u.flip)==null?void 0:o.overflows)||[];if(S&&te.push(U[A]),g){const V=RT(s,f,j);te.push(U[V[0]],U[V[1]])}if(le=[...le,{placement:s,overflows:te}],!te.every(V=>V<=0)){var oe,ee;const V=(((oe=u.flip)==null?void 0:oe.index)||0)+1,ce=D[V];if(ce&&(!(g==="alignment"?N!==On(ce):!1)||le.every(H=>On(H.placement)===N?H.overflows[0]>0:!0)))return{data:{index:V,overflows:le},reset:{placement:ce}};let O=(ee=le.filter(B=>B.overflows[0]<=0).sort((B,H)=>B.overflows[1]-H.overflows[1])[0])==null?void 0:ee.placement;if(!O)switch(w){case"bestFit":{var F;const B=(F=le.filter(H=>{if(k){const Z=On(H.placement);return Z===N||Z==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(Z=>Z>0).reduce((Z,P)=>Z+P,0)]).sort((H,Z)=>H[1]-Z[1])[0])==null?void 0:F[0];B&&(O=B);break}case"initialPlacement":O=d;break}if(s!==O)return{reset:{placement:O}}}return{}}}};function Wy(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function eb(n){return CT.some(l=>n[l]>=0)}const WT=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:r,platform:o}=l,{strategy:s="referenceHidden",...u}=tl(n,l);switch(s){case"referenceHidden":{const f=await o.detectOverflow(l,{...u,elementContext:"reference"}),d=Wy(f,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:eb(d)}}}case"escaped":{const f=await o.detectOverflow(l,{...u,altBoundary:!0}),d=Wy(f,r.floating);return{data:{escapedOffsets:d,escaped:eb(d)}}}default:return{}}}}};function x0(n){const l=Dn(...n.map(u=>u.left)),r=Dn(...n.map(u=>u.top)),o=Cn(...n.map(u=>u.right)),s=Cn(...n.map(u=>u.bottom));return{x:l,y:r,width:o-l,height:s-r}}function eR(n){const l=n.slice().sort((s,u)=>s.y-u.y),r=[];let o=null;for(let s=0;s<l.length;s++){const u=l[s];!o||u.y-o.y>o.height/2?r.push([u]):r[r.length-1].push(u),o=u}return r.map(s=>ma(x0(s)))}const tR=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(l){const{placement:r,elements:o,rects:s,platform:u,strategy:f}=l,{padding:d=2,x:p,y:h}=tl(n,l),S=Array.from(await(u.getClientRects==null?void 0:u.getClientRects(o.reference))||[]);if(!S.length)return{};const g=eR(S),v=ma(x0(S)),w=Dm(d);function E(){if(g.length===2&&(g[0].left>g[1].right||g[1].left>g[0].right)&&p!=null&&h!=null)return g.find(T=>p>T.left-w.left&&p<T.right+w.right&&h>T.top-w.top&&h<T.bottom+w.bottom)||v;if(g.length>=2){if(On(r)==="y"){const k=g[0],D=g[g.length-1],U=nl(r)==="top",te=k.top,le=D.bottom,oe=U?k.left:D.left,ee=U?k.right:D.right;return ma({x:oe,y:te,width:ee-oe,height:le-te})}const T=nl(r)==="left",A=Cn(...g.map(k=>k.right)),N=Dn(...g.map(k=>k.left)),_=g.filter(k=>T?k.left===N:k.right===A),j=_[0].top,L=_[_.length-1].bottom;return ma({x:N,y:j,width:A-N,height:L-j})}return v}const C=await u.getElementRects({reference:{getBoundingClientRect:E},floating:o.floating,strategy:f});return s.reference.x!==C.reference.x||s.reference.y!==C.reference.y||s.reference.width!==C.reference.width||s.reference.height!==C.reference.height?{reset:{rects:C}}:{}}}},w0=new Set(["left","top"]);async function nR(n,l){const{placement:r,platform:o,elements:s}=n,u=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=nl(r),d=Qo(r),p=On(r)==="y",h=w0.has(f)?-1:1,S=u&&p?-1:1,g=tl(l,n);let{mainAxis:v,crossAxis:w,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),p?{x:w*S,y:v*h}:{x:v*h,y:w*S}}const lR=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var r,o;const{x:s,y:u,placement:f,middlewareData:d}=l,p=await nR(l,n);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+p.x,y:u+p.y,data:{...p,placement:f}}}}},aR=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:r,y:o,placement:s,platform:u}=l,{mainAxis:f=!0,crossAxis:d=!1,limiter:p={fn:N=>{let{x:_,y:j}=N;return{x:_,y:j}}},...h}=tl(n,l),S={x:r,y:o},g=await u.detectOverflow(l,h),v=On(s),w=Om(v);let E=S[w],C=S[v];const T=(N,_)=>S0(_+g[N==="y"?"top":"left"],_,_-g[N==="y"?"bottom":"right"]);f&&(E=T(w,E)),d&&(C=T(v,C));const A=p.fn({...l,[w]:E,[v]:C});return{...A,data:{x:A.x-r,y:A.y-o,enabled:{[w]:f,[v]:d}}}}}},oR=function(n){return n===void 0&&(n={}),{options:n,fn(l){var r,o;const{x:s,y:u,placement:f,rects:d,middlewareData:p}=l,{offset:h=0,mainAxis:S=!0,crossAxis:g=!0}=tl(n,l),v={x:s,y:u},w=On(f),E=Om(w);let C=v[E],T=v[w];const A=tl(h,l),N=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:(r=A.mainAxis)!=null?r:0,crossAxis:(o=A.crossAxis)!=null?o:0};if(S){const L=E==="y"?"height":"width",k=d.reference[E]-d.floating[L]+N.mainAxis,D=d.reference[E]+d.reference[L]-N.mainAxis;C<k?C=k:C>D&&(C=D)}if(g){var _,j;const L=E==="y"?"width":"height",k=w0.has(nl(f)),D=d.reference[w]-d.floating[L]+(k&&((_=p.offset)==null?void 0:_[w])||0)+(k?0:N.crossAxis),U=d.reference[w]+d.reference[L]+(k?0:((j=p.offset)==null?void 0:j[w])||0)-(k?N.crossAxis:0);T<D?T=D:T>U&&(T=U)}return{[E]:C,[w]:T}}}},rR=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){const{placement:r,rects:o,platform:s,elements:u}=l,{apply:f=()=>{},...d}=tl(n,l),p=await s.detectOverflow(l,d),h=nl(r),S=Qo(r),g=On(r)==="y",{width:v,height:w}=o.floating;let E,C;h==="top"||h==="bottom"?(E=h,C=S===(await(s.isRTL==null?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(C=h,E=S==="end"?"top":"bottom");const T=w-p.top-p.bottom,A=v-p.left-p.right,N=Dn(w-p[E],T),_=Dn(v-p[C],A),j=l.middlewareData.shift,L=!j;let k=N,D=_;j!=null&&j.enabled.x&&(D=A),j!=null&&j.enabled.y&&(k=T),L&&!S&&(g?D=v-2*Cn(p.left,p.right):k=w-2*Cn(p.top,p.bottom)),await f({...l,availableWidth:D,availableHeight:k});const U=await s.getDimensions(u.floating);return v!==U.width||w!==U.height?{reset:{rects:!0}}:{}}}};function C0(n){const l=zn(n);let r=parseFloat(l.width)||0,o=parseFloat(l.height)||0;const s=Un(n),u=s?n.offsetWidth:r,f=s?n.offsetHeight:o,d=Ws(r)!==u||Ws(o)!==f;return d&&(r=u,o=f),{width:r,height:o,$:d}}function $m(n){return tt(n)?n:n.contextElement}function Vo(n){const l=$m(n);if(!Un(l))return El(1);const r=l.getBoundingClientRect(),{width:o,height:s,$:u}=C0(l);let f=(u?Ws(r.width):r.width)/o,d=(u?Ws(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}const iR=El(0);function T0(n){const l=Bt(n);return!hc()||!l.visualViewport?iR:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function sR(n,l,r){return l===void 0&&(l=!1),!!r&&l&&r===Bt(n)}function Va(n,l,r,o){l===void 0&&(l=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),u=$m(n);let f=El(1);l&&(o?tt(o)&&(f=Vo(o)):f=Vo(n));const d=sR(u,r,o)?T0(u):El(0);let p=(s.left+d.x)/f.x,h=(s.top+d.y)/f.y,S=s.width/f.x,g=s.height/f.y;if(u&&o){const v=Bt(u),w=tt(o)?Bt(o):o;let E=v,C=Kd(E);for(;C&&w!==E;){const T=Vo(C),A=C.getBoundingClientRect(),N=zn(C),_=A.left+(C.clientLeft+parseFloat(N.paddingLeft))*T.x,j=A.top+(C.clientTop+parseFloat(N.paddingTop))*T.y;p*=T.x,h*=T.y,S*=T.x,g*=T.y,p+=_,h+=j,E=Bt(C),C=Kd(E)}}return ma({width:S,height:g,x:p,y:h})}function gc(n,l){const r=vc(n).scrollLeft;return l?l.left+r:Va(Ol(n)).left+r}function R0(n,l){const r=n.getBoundingClientRect(),o=r.left+l.scrollLeft-gc(n,r),s=r.top+l.scrollTop;return{x:o,y:s}}function cR(n){let{elements:l,rect:r,offsetParent:o,strategy:s}=n;const u=s==="fixed",f=Ol(o),d=l?pc(l.floating):!1;if(o===f||d&&u)return r;let p={scrollLeft:0,scrollTop:0},h=El(1);const S=El(0),g=Un(o);if((g||!u)&&((Zo(o)!=="body"||mc(f))&&(p=vc(o)),g)){const w=Va(o);h=Vo(o),S.x=w.x+o.clientLeft,S.y=w.y+o.clientTop}const v=f&&!g&&!u?R0(f,p):El(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-p.scrollLeft*h.x+S.x+v.x,y:r.y*h.y-p.scrollTop*h.y+S.y+v.y}}function uR(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function fR(n){const l=vc(n),r=n.ownerDocument.body,o=Cn(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),s=Cn(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let u=-l.scrollLeft+gc(n);const f=-l.scrollTop;return zn(r).direction==="rtl"&&(u+=Cn(n.clientWidth,r.clientWidth)-o),{width:o,height:s,x:u,y:f}}const dR=25;function mR(n,l,r){r===void 0&&(r="viewport");const o=r==="layoutViewport",s=Bt(n),u=Ol(n),f=s.visualViewport;let d=u.clientWidth,p=u.clientHeight,h=0,S=0;if(f){const v=!hc()||l==="fixed";o?v||(h=-f.offsetLeft,S=-f.offsetTop):(d=f.width,p=f.height,v&&(h=f.offsetLeft,S=f.offsetTop))}if(gc(u)<=0){const v=u.ownerDocument,w=v.body,E=getComputedStyle(w),C=v.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,T=Math.abs(u.clientWidth-w.clientWidth-C),A=getComputedStyle(u).scrollbarGutter==="stable both-edges"?T/2:T;A<=dR&&(d-=A)}return{width:d,height:p,x:h,y:S}}function pR(n,l){const r=Va(n,!0,l==="fixed"),o=r.top+n.clientTop,s=r.left+n.clientLeft,u=Vo(n),f=n.clientWidth*u.x,d=n.clientHeight*u.y,p=s*u.x,h=o*u.y;return{width:f,height:d,x:p,y:h}}function tb(n,l,r){let o;if(l==="viewport"||l==="layoutViewport")o=mR(n,r,l);else if(l==="document")o=fR(Ol(n));else if(tt(l))o=pR(l,r);else{const s=T0(n);o={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return ma(o)}function hR(n,l){const r=l.get(n);if(r)return r;let o=Rl(n,[],!1).filter(d=>tt(d)&&Zo(d)!=="body"),s=null;const u=zn(n).position==="fixed";let f=u?va(n):n;for(;tt(f)&&!da(f);){const d=zn(f),p=Mm(f),h=s?s.position:u?"fixed":"";!p&&(h==="fixed"||h==="absolute"&&d.position==="static")?o=o.filter(g=>g!==f):s=d,f=va(f)}return l.set(n,o),o}function vR(n){let{element:l,boundary:r,rootBoundary:o,strategy:s}=n;const f=[...r==="clippingAncestors"?pc(l)?[]:hR(l,this._c):[].concat(r),o],d=tb(l,f[0],s);let p=d.top,h=d.right,S=d.bottom,g=d.left;for(let v=1;v<f.length;v++){const w=tb(l,f[v],s);p=Cn(w.top,p),h=Dn(w.right,h),S=Dn(w.bottom,S),g=Cn(w.left,g)}return{width:h-g,height:S-p,x:g,y:p}}function gR(n){const{width:l,height:r}=C0(n);return{width:l,height:r}}function yR(n,l,r){const o=Un(l),s=Ol(l),u=r==="fixed",f=Va(n,!0,u,l);let d={scrollLeft:0,scrollTop:0};const p=El(0);if((o||!u)&&((Zo(l)!=="body"||mc(s))&&(d=vc(l)),o)){const v=Va(l,!0,u,l);p.x=v.x+l.clientLeft,p.y=v.y+l.clientTop}!o&&s&&(p.x=gc(s));const h=s&&!o&&!u?R0(s,d):El(0),S=f.left+d.scrollLeft-p.x-h.x,g=f.top+d.scrollTop-p.y-h.y;return{x:S,y:g,width:f.width,height:f.height}}function Rd(n){return zn(n).position==="static"}function nb(n,l){if(!Un(n)||zn(n).position==="fixed")return null;if(l)return l(n);let r=n.offsetParent;return Ol(n)===r&&(r=r.ownerDocument.body),r}function E0(n,l){const r=Bt(n);if(pc(n))return r;if(!Un(n)){let s=va(n);for(;s&&!da(s);){if(tt(s)&&!Rd(s))return s;s=va(s)}return r}let o=nb(n,l);for(;o&&bT(o)&&Rd(o);)o=nb(o,l);return o&&da(o)&&Rd(o)&&!Mm(o)?r:o||wT(n)||r}const bR=async function(n){const l=this.getOffsetParent||E0,r=this.getDimensions,o=await r(n.floating);return{reference:yR(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function SR(n){return zn(n).direction==="rtl"}const xR={convertOffsetParentRelativeRectToViewportRelativeRect:cR,getDocumentElement:Ol,getClippingRect:vR,getOffsetParent:E0,getElementRects:bR,getClientRects:uR,getDimensions:gR,getScale:Vo,isElement:tt,isRTL:SR};function A0(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function wR(n,l,r){let o=null,s;const u=Ol(n);function f(){var S;clearTimeout(s),(S=o)==null||S.disconnect(),o=null}function d(S,g){S===void 0&&(S=!1),g===void 0&&(g=1),f();const v=n.getBoundingClientRect(),{left:w,top:E,width:C,height:T}=v;if(S||l(),!C||!T)return;const A=$s(E),N=$s(u.clientWidth-(w+C)),_=$s(u.clientHeight-(E+T)),j=$s(w),k={rootMargin:-A+"px "+-N+"px "+-_+"px "+-j+"px",threshold:Cn(0,Dn(1,g))||1};let D=!0;function U(te){const le=te[0].intersectionRatio;if(!A0(v,n.getBoundingClientRect()))return d();if(le!==g){if(!D)return d();le?d(!1,le):s=setTimeout(()=>{d(!1,1e-7)},1e3)}D=!1}try{o=new IntersectionObserver(U,{...k,root:u.ownerDocument})}catch{o=new IntersectionObserver(U,k)}o.observe(n)}const p=Bt(n),h=()=>d(r);return p.addEventListener("resize",h),d(!0),()=>{p.removeEventListener("resize",h),f()}}function Pd(n,l,r,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,h=$m(n),S=s||u?[...h?Rl(h):[],...l?Rl(l):[]]:[];S.forEach(A=>{s&&A.addEventListener("scroll",r),u&&A.addEventListener("resize",r)});const g=h&&d?wR(h,r,u):null;let v=-1,w=null;f&&(w=new ResizeObserver(A=>{let[N]=A;N&&N.target===h&&w&&l&&(w.unobserve(l),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var _;(_=w)==null||_.observe(l)})),r()}),h&&!p&&w.observe(h),l&&w.observe(l));let E,C=p?Va(n):null;p&&T();function T(){const A=Va(n);C&&!A0(C,A)&&r(),C=A,E=requestAnimationFrame(T)}return r(),()=>{var A;S.forEach(N=>{s&&N.removeEventListener("scroll",r),u&&N.removeEventListener("resize",r)}),g==null||g(),(A=w)==null||A.disconnect(),w=null,p&&cancelAnimationFrame(E)}}const CR=lR,TR=aR,RR=PT,ER=rR,AR=WT,lb=JT,_R=tR,NR=oR,MR=(n,l,r)=>{const o=new Map,s=r??{},u={...xR,...s.platform,_c:o};return FT(n,l,{...s,platform:u})};var OR=typeof document<"u",jR=function(){},Xs=OR?x.useLayoutEffect:jR;function tc(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let r,o,s;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==l.length)return!1;for(o=r;o--!==0;)if(!tc(n[o],l[o]))return!1;return!0}if(s=Object.keys(n),r=s.length,r!==Object.keys(l).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(l,s[o]))return!1;for(o=r;o--!==0;){const u=s[o];if(!(u==="_owner"&&n.$$typeof)&&!tc(n[u],l[u]))return!1}return!0}return n!==n&&l!==l}function _0(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function ab(n,l){const r=_0(n);return Math.round(l*r)/r}function Ed(n){const l=x.useRef(n);return Xs(()=>{l.current=n}),l}function zR(n){n===void 0&&(n={});const{placement:l="bottom",strategy:r="absolute",middleware:o=[],platform:s,elements:{reference:u,floating:f}={},transform:d=!0,whileElementsMounted:p,open:h}=n,[S,g]=x.useState({x:0,y:0,strategy:r,placement:l,middlewareData:{},isPositioned:!1}),[v,w]=x.useState(o);tc(v,o)||w(o);const[E,C]=x.useState(null),[T,A]=x.useState(null),N=x.useCallback(H=>{H!==k.current&&(k.current=H,C(H))},[]),_=x.useCallback(H=>{H!==D.current&&(D.current=H,A(H))},[]),j=u||E,L=f||T,k=x.useRef(null),D=x.useRef(null),U=x.useRef(S),te=p!=null,le=Ed(p),oe=Ed(s),ee=Ed(h),F=x.useCallback(()=>{if(!k.current||!D.current)return;const H={placement:l,strategy:r,middleware:v};oe.current&&(H.platform=oe.current),MR(k.current,D.current,H).then(Z=>{const P={...Z,isPositioned:ee.current!==!1};V.current&&!tc(U.current,P)&&(U.current=P,gm.flushSync(()=>{g(P)}))})},[v,l,r,oe,ee]);Xs(()=>{h===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,g(H=>({...H,isPositioned:!1})))},[h]);const V=x.useRef(!1);Xs(()=>(V.current=!0,()=>{V.current=!1}),[]),Xs(()=>{if(j&&(k.current=j),L&&(D.current=L),j&&L){if(le.current)return le.current(j,L,F);F()}},[j,L,F,le,te]);const ce=x.useMemo(()=>({reference:k,floating:D,setReference:N,setFloating:_}),[N,_]),O=x.useMemo(()=>({reference:j,floating:L}),[j,L]),B=x.useMemo(()=>{const H={position:r,left:0,top:0};if(!O.floating)return H;const Z=ab(O.floating,S.x),P=ab(O.floating,S.y);return d?{...H,transform:"translate("+Z+"px, "+P+"px)",..._0(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Z,top:P}},[r,d,O.floating,S.x,S.y]);return x.useMemo(()=>({...S,update:F,refs:ce,elements:O,floatingStyles:B}),[S,F,ce,O,B])}const DR=n=>{function l(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:o,padding:s}=typeof n=="function"?n(r):n;return o&&l(o)?o.current!=null?lb({element:o.current,padding:s}).fn(r):{}:o?lb({element:o,padding:s}).fn(r):{}}}},N0=(n,l)=>{const r=CR(n);return{name:r.name,fn:r.fn,options:[n,l]}},Lm=(n,l)=>{const r=TR(n);return{name:r.name,fn:r.fn,options:[n,l]}},$R=(n,l)=>({fn:NR(n).fn,options:[n,l]}),Wd=(n,l)=>{const r=RR(n);return{name:r.name,fn:r.fn,options:[n,l]}},LR=(n,l)=>{const r=ER(n);return{name:r.name,fn:r.fn,options:[n,l]}},BR=(n,l)=>{const r=AR(n);return{name:r.name,fn:r.fn,options:[n,l]}},Wr=(n,l)=>{const r=_R(n);return{name:r.name,fn:r.fn,options:[n,l]}},M0=(n,l)=>{const r=DR(n);return{name:r.name,fn:r.fn,options:[n,l]}};function O0(n){const l=x.useRef(void 0),r=x.useCallback(o=>{const s=n.map(u=>{if(u!=null){if(typeof u=="function"){const f=u,d=f(o);return typeof d=="function"?d:()=>{f(null)}}return u.current=o,()=>{u.current=null}}});return()=>{s.forEach(u=>u==null?void 0:u())}},n);return x.useMemo(()=>n.every(o=>o==null)?null:o=>{l.current&&(l.current(),l.current=void 0),o!=null&&(l.current=r(o))},n)}const kR="data-floating-ui-focusable",ob="active",rb="selected",UR={...$b};let ib=!1,HR=0;const sb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+HR++;function YR(){const[n,l]=x.useState(()=>ib?sb():void 0);return Pn(()=>{n==null&&l(sb())},[]),x.useEffect(()=>{ib=!0},[]),n}const qR=UR.useId,j0=qR||YR;function VR(){const n=new Map;return{emit(l,r){var o;(o=n.get(l))==null||o.forEach(s=>s(r))},on(l,r){n.has(l)||n.set(l,new Set),n.get(l).add(r)},off(l,r){var o;(o=n.get(l))==null||o.delete(r)}}}const GR=x.createContext(null),XR=x.createContext(null),Bm=()=>{var n;return((n=x.useContext(GR))==null?void 0:n.id)||null},km=()=>x.useContext(XR);function Um(n){return"data-floating-ui-"+n}function Zt(n){n.current!==-1&&(clearTimeout(n.current),n.current=-1)}const cb=Um("safe-polygon");function Is(n,l,r){if(r&&!Jd(r))return 0;if(typeof n=="number")return n;if(typeof n=="function"){const o=n();return typeof o=="number"?o:o==null?void 0:o[l]}return n==null?void 0:n[l]}function Ad(n){return typeof n=="function"?n():n}function z0(n,l){l===void 0&&(l={});const{open:r,onOpenChange:o,dataRef:s,events:u,elements:f}=n,{enabled:d=!0,delay:p=0,handleClose:h=null,mouseOnly:S=!1,restMs:g=0,move:v=!0}=l,w=km(),E=Bm(),C=Ls(h),T=Ls(p),A=Ls(r),N=Ls(g),_=x.useRef(),j=x.useRef(-1),L=x.useRef(),k=x.useRef(-1),D=x.useRef(!0),U=x.useRef(!1),te=x.useRef(()=>{}),le=x.useRef(!1),oe=Fn(()=>{var B;const H=(B=s.current.openEvent)==null?void 0:B.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"});x.useEffect(()=>{if(!d)return;function B(H){let{open:Z}=H;Z||(Zt(j),Zt(k),D.current=!0,le.current=!1)}return u.on("openchange",B),()=>{u.off("openchange",B)}},[d,u]),x.useEffect(()=>{if(!d||!C.current||!r)return;function B(Z){oe()&&o(!1,Z,"hover")}const H=Ya(f.floating).documentElement;return H.addEventListener("mouseleave",B),()=>{H.removeEventListener("mouseleave",B)}},[f.floating,r,o,d,C,oe]);const ee=x.useCallback(function(B,H,Z){H===void 0&&(H=!0),Z===void 0&&(Z="hover");const P=Is(T.current,"close",_.current);P&&!L.current?(Zt(j),j.current=window.setTimeout(()=>o(!1,B,Z),P)):H&&(Zt(j),o(!1,B,Z))},[T,o]),F=Fn(()=>{te.current(),L.current=void 0}),V=Fn(()=>{if(U.current){const B=Ya(f.floating).body;B.style.pointerEvents="",B.removeAttribute(cb),U.current=!1}}),ce=Fn(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);x.useEffect(()=>{if(!d)return;function B(Y){if(Zt(j),D.current=!1,S&&!Jd(_.current)||Ad(N.current)>0&&!Is(T.current,"open"))return;const J=Is(T.current,"open",_.current);J?j.current=window.setTimeout(()=>{A.current||o(!0,Y,"hover")},J):r||o(!0,Y,"hover")}function H(Y){if(ce()){V();return}te.current();const J=Ya(f.floating);if(Zt(k),le.current=!1,C.current&&s.current.floatingContext){r||Zt(j),L.current=C.current({...s.current.floatingContext,tree:w,x:Y.clientX,y:Y.clientY,onClose(){V(),F(),ce()||ee(Y,!0,"safe-polygon")}});const se=L.current;J.addEventListener("mousemove",se),te.current=()=>{J.removeEventListener("mousemove",se)};return}(_.current==="touch"?!ni(f.floating,Y.relatedTarget):!0)&&ee(Y)}function Z(Y){ce()||s.current.floatingContext&&(C.current==null||C.current({...s.current.floatingContext,tree:w,x:Y.clientX,y:Y.clientY,onClose(){V(),F(),ce()||ee(Y)}})(Y))}function P(){Zt(j)}function M(Y){ce()||ee(Y,!1)}if(tt(f.domReference)){const Y=f.domReference,J=f.floating;return r&&Y.addEventListener("mouseleave",Z),v&&Y.addEventListener("mousemove",B,{once:!0}),Y.addEventListener("mouseenter",B),Y.addEventListener("mouseleave",H),J&&(J.addEventListener("mouseleave",Z),J.addEventListener("mouseenter",P),J.addEventListener("mouseleave",M)),()=>{r&&Y.removeEventListener("mouseleave",Z),v&&Y.removeEventListener("mousemove",B),Y.removeEventListener("mouseenter",B),Y.removeEventListener("mouseleave",H),J&&(J.removeEventListener("mouseleave",Z),J.removeEventListener("mouseenter",P),J.removeEventListener("mouseleave",M))}}},[f,d,n,S,v,ee,F,V,o,r,A,w,T,C,s,ce,N]),Pn(()=>{var B;if(d&&r&&(B=C.current)!=null&&(B=B.__options)!=null&&B.blockPointerEvents&&oe()){U.current=!0;const Z=f.floating;if(tt(f.domReference)&&Z){var H;const P=Ya(f.floating).body;P.setAttribute(cb,"");const M=f.domReference,Y=w==null||(H=w.nodesRef.current.find(J=>J.id===E))==null||(H=H.context)==null?void 0:H.elements.floating;return Y&&(Y.style.pointerEvents=""),P.style.pointerEvents="none",M.style.pointerEvents="auto",Z.style.pointerEvents="auto",()=>{P.style.pointerEvents="",M.style.pointerEvents="",Z.style.pointerEvents=""}}}},[d,r,E,f,w,C,oe]),Pn(()=>{r||(_.current=void 0,le.current=!1,F(),V())},[r,F,V]),x.useEffect(()=>()=>{F(),Zt(j),Zt(k),V()},[d,f.domReference,F,V]);const O=x.useMemo(()=>{function B(H){_.current=H.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(H){const{nativeEvent:Z}=H;function P(){!D.current&&!A.current&&o(!0,Z,"hover")}S&&!Jd(_.current)||r||Ad(N.current)===0||le.current&&H.movementX**2+H.movementY**2<2||(Zt(k),_.current==="touch"?P():(le.current=!0,k.current=window.setTimeout(P,Ad(N.current))))}}},[S,o,r,A,N]);return x.useMemo(()=>d?{reference:O}:{},[d,O])}const em=()=>{},D0=x.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:em,setState:em,isInstantPhase:!1}),IR=()=>x.useContext(D0);function ZR(n){const{children:l,delay:r,timeoutMs:o=0}=n,[s,u]=x.useReducer((p,h)=>({...p,...h}),{delay:r,timeoutMs:o,initialDelay:r,currentId:null,isInstantPhase:!1}),f=x.useRef(null),d=x.useCallback(p=>{u({currentId:p})},[]);return Pn(()=>{s.currentId?f.current===null?f.current=s.currentId:s.isInstantPhase||u({isInstantPhase:!0}):(s.isInstantPhase&&u({isInstantPhase:!1}),f.current=null)},[s.currentId,s.isInstantPhase]),y.jsx(D0.Provider,{value:x.useMemo(()=>({...s,setState:u,setCurrentId:d}),[s,d]),children:l})}function QR(n,l){l===void 0&&(l={});const{open:r,onOpenChange:o,floatingId:s}=n,{id:u,enabled:f=!0}=l,d=u??s,p=IR(),{currentId:h,setCurrentId:S,initialDelay:g,setState:v,timeoutMs:w}=p;return Pn(()=>{f&&h&&(v({delay:{open:1,close:Is(g,"close")}}),h!==d&&o(!1))},[f,d,o,v,h,g]),Pn(()=>{function E(){o(!1),v({delay:g,currentId:null})}if(f&&h&&!r&&h===d){if(w){const C=window.setTimeout(E,w);return()=>{clearTimeout(C)}}E()}},[f,r,v,h,d,o,g,w]),Pn(()=>{f&&(S===em||!r||S(d))},[f,r,S,d]),p}function _d(n,l){if(!n||!l)return!1;const r=l.getRootNode==null?void 0:l.getRootNode();if(n.contains(l))return!0;if(r&&Ps(r)){let o=l;for(;o;){if(n===o)return!0;o=o.parentNode||o.host}}return!1}function KR(n){return"composedPath"in n?n.composedPath()[0]:n.target}const FR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},JR={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ub=n=>{var l,r;return{escapeKey:typeof n=="boolean"?n:(l=n==null?void 0:n.escapeKey)!=null?l:!1,outsidePress:typeof n=="boolean"?n:(r=n==null?void 0:n.outsidePress)!=null?r:!0}};function PR(n,l){l===void 0&&(l={});const{open:r,onOpenChange:o,elements:s,dataRef:u}=n,{enabled:f=!0,escapeKey:d=!0,outsidePress:p=!0,outsidePressEvent:h="pointerdown",referencePress:S=!1,referencePressEvent:g="pointerdown",ancestorScroll:v=!1,bubbles:w,capture:E}=l,C=km(),T=Fn(typeof p=="function"?p:()=>!1),A=typeof p=="function"?T:p,N=x.useRef(!1),{escapeKey:_,outsidePress:j}=ub(w),{escapeKey:L,outsidePress:k}=ub(E),D=x.useRef(!1),U=Fn(V=>{var ce;if(!r||!f||!d||V.key!=="Escape"||D.current)return;const O=(ce=u.current.floatingContext)==null?void 0:ce.nodeId,B=C?Gs(C.nodesRef.current,O):[];if(!_&&(V.stopPropagation(),B.length>0)){let H=!0;if(B.forEach(Z=>{var P;if((P=Z.context)!=null&&P.open&&!Z.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}o(!1,qT(V)?V.nativeEvent:V,"escape-key")}),te=Fn(V=>{var ce;const O=()=>{var B;U(V),(B=Ho(V))==null||B.removeEventListener("keydown",O)};(ce=Ho(V))==null||ce.addEventListener("keydown",O)}),le=Fn(V=>{var ce;const O=u.current.insideReactTree;u.current.insideReactTree=!1;const B=N.current;if(N.current=!1,h==="click"&&B||O||typeof A=="function"&&!A(V))return;const H=Ho(V),Z="["+Um("inert")+"]",P=Ya(s.floating).querySelectorAll(Z);let M=tt(H)?H:null;for(;M&&!da(M);){const se=va(M);if(da(se)||!tt(se))break;M=se}if(P.length&&tt(H)&&!kT(H)&&!ni(H,s.floating)&&Array.from(P).every(se=>!ni(M,se)))return;if(Un(H)&&F){const se=da(H),de=zn(H),ge=/auto|scroll/,pe=se||ge.test(de.overflowX),he=se||ge.test(de.overflowY),Me=pe&&H.clientWidth>0&&H.scrollWidth>H.clientWidth,Se=he&&H.clientHeight>0&&H.scrollHeight>H.clientHeight,Ce=de.direction==="rtl",ie=Se&&(Ce?V.offsetX<=H.offsetWidth-H.clientWidth:V.offsetX>H.clientWidth),ye=Me&&V.offsetY>H.clientHeight;if(ie||ye)return}const Y=(ce=u.current.floatingContext)==null?void 0:ce.nodeId,J=C&&Gs(C.nodesRef.current,Y).some(se=>{var de;return Td(V,(de=se.context)==null?void 0:de.elements.floating)});if(Td(V,s.floating)||Td(V,s.domReference)||J)return;const ae=C?Gs(C.nodesRef.current,Y):[];if(ae.length>0){let se=!0;if(ae.forEach(de=>{var ge;if((ge=de.context)!=null&&ge.open&&!de.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}o(!1,V,"outside-press")}),oe=Fn(V=>{var ce;const O=()=>{var B;le(V),(B=Ho(V))==null||B.removeEventListener(h,O)};(ce=Ho(V))==null||ce.addEventListener(h,O)});x.useEffect(()=>{if(!r||!f)return;u.current.__escapeKeyBubbles=_,u.current.__outsidePressBubbles=j;let V=-1;function ce(P){o(!1,P,"ancestor-scroll")}function O(){window.clearTimeout(V),D.current=!0}function B(){V=window.setTimeout(()=>{D.current=!1},hc()?5:0)}const H=Ya(s.floating);d&&(H.addEventListener("keydown",L?te:U,L),H.addEventListener("compositionstart",O),H.addEventListener("compositionend",B)),A&&H.addEventListener(h,k?oe:le,k);let Z=[];return v&&(tt(s.domReference)&&(Z=Rl(s.domReference)),tt(s.floating)&&(Z=Z.concat(Rl(s.floating))),!tt(s.reference)&&s.reference&&s.reference.contextElement&&(Z=Z.concat(Rl(s.reference.contextElement)))),Z=Z.filter(P=>{var M;return P!==((M=H.defaultView)==null?void 0:M.visualViewport)}),Z.forEach(P=>{P.addEventListener("scroll",ce)}),()=>{d&&(H.removeEventListener("keydown",L?te:U,L),H.removeEventListener("compositionstart",O),H.removeEventListener("compositionend",B)),A&&H.removeEventListener(h,k?oe:le,k),Z.forEach(P=>{P.removeEventListener("scroll",ce)}),window.clearTimeout(V)}},[u,s,d,A,h,r,o,v,f,_,j,U,L,te,le,k,oe]),x.useEffect(()=>{u.current.insideReactTree=!1},[u,A,h]);const ee=x.useMemo(()=>({onKeyDown:U,...S&&{[FR[g]]:V=>{o(!1,V.nativeEvent,"reference-press")},...g!=="click"&&{onClick(V){o(!1,V.nativeEvent,"reference-press")}}}}),[U,o,S,g]),F=x.useMemo(()=>{function V(ce){ce.button===0&&(N.current=!0)}return{onKeyDown:U,onMouseDown:V,onMouseUp:V,[JR[h]]:()=>{u.current.insideReactTree=!0}}},[U,h,u]);return x.useMemo(()=>f?{reference:ee,floating:F}:{},[f,ee,F])}function WR(n){const{open:l=!1,onOpenChange:r,elements:o}=n,s=j0(),u=x.useRef({}),[f]=x.useState(()=>VR()),d=Bm()!=null,[p,h]=x.useState(o.reference),S=Fn((w,E,C)=>{u.current.openEvent=w?E:void 0,f.emit("openchange",{open:w,event:E,reason:C,nested:d}),r==null||r(w,E,C)}),g=x.useMemo(()=>({setPositionReference:h}),[]),v=x.useMemo(()=>({reference:p||o.reference||null,floating:o.floating||null,domReference:o.reference}),[p,o.reference,o.floating]);return x.useMemo(()=>({dataRef:u,open:l,onOpenChange:S,elements:v,events:f,floatingId:s,refs:g}),[l,S,v,f,s,g])}function yc(n){var l,r;let{elements:o,...s}=n===void 0?{}:n;const{nodeId:u}=s,f=WR({...s,elements:{reference:(l=o==null?void 0:o.reference)!=null?l:null,floating:(r=o==null?void 0:o.floating)!=null?r:null}}),d=s.rootContext||f,p=d.elements,[h,S]=x.useState(null),[g,v]=x.useState(null),E=(p==null?void 0:p.domReference)||h,C=x.useRef(null),T=km();Pn(()=>{E&&(C.current=E)},[E]);const A=zR({...s,elements:{...p,...g&&{reference:g}}}),N=x.useCallback(D=>{const U=tt(D)?{getBoundingClientRect:()=>D.getBoundingClientRect(),getClientRects:()=>D.getClientRects(),contextElement:D}:D;v(U),A.refs.setReference(U)},[A.refs]),_=x.useCallback(D=>{(tt(D)||D===null)&&(C.current=D,S(D)),(tt(A.refs.reference.current)||A.refs.reference.current===null||D!==null&&!tt(D))&&A.refs.setReference(D)},[A.refs]),j=x.useMemo(()=>({...A.refs,setReference:_,setPositionReference:N,domReference:C}),[A.refs,_,N]),L=x.useMemo(()=>({...A.elements,domReference:E}),[A.elements,E]),k=x.useMemo(()=>({...A,...d,refs:j,elements:L,nodeId:u}),[A,j,L,u,d]);return Pn(()=>{d.dataRef.current.floatingContext=k;const D=T==null?void 0:T.nodesRef.current.find(U=>U.id===u);D&&(D.context=k)}),x.useMemo(()=>({...A,context:k,refs:j,elements:L}),[A,j,L,k])}function Nd(){return $T()&&DT()}function eE(n,l){l===void 0&&(l={});const{open:r,onOpenChange:o,events:s,dataRef:u,elements:f}=n,{enabled:d=!0,visibleOnly:p=!0}=l,h=x.useRef(!1),S=x.useRef(-1),g=x.useRef(!0);x.useEffect(()=>{if(!d)return;const w=Bt(f.domReference);function E(){!r&&Un(f.domReference)&&f.domReference===Jy(Ya(f.domReference))&&(h.current=!0)}function C(){g.current=!0}function T(){g.current=!1}return w.addEventListener("blur",E),Nd()&&(w.addEventListener("keydown",C,!0),w.addEventListener("pointerdown",T,!0)),()=>{w.removeEventListener("blur",E),Nd()&&(w.removeEventListener("keydown",C,!0),w.removeEventListener("pointerdown",T,!0))}},[f.domReference,r,d]),x.useEffect(()=>{if(!d)return;function w(E){let{reason:C}=E;(C==="reference-press"||C==="escape-key")&&(h.current=!0)}return s.on("openchange",w),()=>{s.off("openchange",w)}},[s,d]),x.useEffect(()=>()=>{Zt(S)},[]);const v=x.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(w){if(h.current)return;const E=Ho(w.nativeEvent);if(p&&tt(E)){if(Nd()&&!w.relatedTarget){if(!g.current&&!UT(E))return}else if(!HT(E))return}o(!0,w.nativeEvent,"focus")},onBlur(w){h.current=!1;const E=w.relatedTarget,C=w.nativeEvent,T=tt(E)&&E.hasAttribute(Um("focus-guard"))&&E.getAttribute("data-type")==="outside";S.current=window.setTimeout(()=>{var A;const N=Jy(f.domReference?f.domReference.ownerDocument:document);!E&&N===f.domReference||ni((A=u.current.floatingContext)==null?void 0:A.refs.floating.current,N)||ni(f.domReference,N)||T||o(!1,C,"focus")})}}),[u,f.domReference,o,p]);return x.useMemo(()=>d?{reference:v}:{},[d,v])}function Md(n,l,r){const o=new Map,s=r==="item";let u=n;if(s&&n){const{[ob]:f,[rb]:d,...p}=n;u=p}return{...r==="floating"&&{tabIndex:-1,[kR]:""},...u,...l.map(f=>{const d=f?f[r]:null;return typeof d=="function"?n?d(n):null:d}).concat(n).reduce((f,d)=>(d&&Object.entries(d).forEach(p=>{let[h,S]=p;if(!(s&&[ob,rb].includes(h)))if(h.indexOf("on")===0){if(o.has(h)||o.set(h,[]),typeof S=="function"){var g;(g=o.get(h))==null||g.push(S),f[h]=function(){for(var v,w=arguments.length,E=new Array(w),C=0;C<w;C++)E[C]=arguments[C];return(v=o.get(h))==null?void 0:v.map(T=>T(...E)).find(T=>T!==void 0)}}}else f[h]=S}),f),{})}}function $0(n){n===void 0&&(n=[]);const l=n.map(d=>d==null?void 0:d.reference),r=n.map(d=>d==null?void 0:d.floating),o=n.map(d=>d==null?void 0:d.item),s=x.useCallback(d=>Md(d,n,"reference"),l),u=x.useCallback(d=>Md(d,n,"floating"),r),f=x.useCallback(d=>Md(d,n,"item"),o);return x.useMemo(()=>({getReferenceProps:s,getFloatingProps:u,getItemProps:f}),[s,u,f])}const tE=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function nE(n,l){var r,o;l===void 0&&(l={});const{open:s,elements:u,floatingId:f}=n,{enabled:d=!0,role:p="dialog"}=l,h=j0(),S=((r=u.domReference)==null?void 0:r.id)||h,g=x.useMemo(()=>{var N;return((N=YT(u.floating))==null?void 0:N.id)||f},[u.floating,f]),v=(o=tE.get(p))!=null?o:p,E=Bm()!=null,C=x.useMemo(()=>v==="tooltip"||p==="label"?{["aria-"+(p==="label"?"labelledby":"describedby")]:s?g:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":v==="alertdialog"?"dialog":v,"aria-controls":s?g:void 0,...v==="listbox"&&{role:"combobox"},...v==="menu"&&{id:S},...v==="menu"&&E&&{role:"menuitem"},...p==="select"&&{"aria-autocomplete":"none"},...p==="combobox"&&{"aria-autocomplete":"list"}},[v,g,E,s,S,p]),T=x.useMemo(()=>{const N={id:g,...v&&{role:v}};return v==="tooltip"||p==="label"?N:{...N,...v==="menu"&&{"aria-labelledby":S}}},[v,g,S,p]),A=x.useCallback(N=>{let{active:_,selected:j}=N;const L={role:"option",..._&&{id:g+"-fui-option"}};switch(p){case"select":case"combobox":return{...L,"aria-selected":j}}return{}},[g,p]);return x.useMemo(()=>d?{reference:C,floating:T,item:A}:{},[d,C,T,A])}function L0(n,l,r){return r===void 0&&(r=!0),n.filter(s=>{var u;return s.parentId===l&&(!r||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...L0(n,s.id,r)])}function fb(n,l){const[r,o]=n;let s=!1;const u=l.length;for(let f=0,d=u-1;f<u;d=f++){const[p,h]=l[f]||[0,0],[S,g]=l[d]||[0,0];h>=o!=g>=o&&r<=(S-p)*(o-h)/(g-h)+p&&(s=!s)}return s}function lE(n,l){return n[0]>=l.x&&n[0]<=l.x+l.width&&n[1]>=l.y&&n[1]<=l.y+l.height}function B0(n){n===void 0&&(n={});const{buffer:l=.5,blockPointerEvents:r=!1,requireIntent:o=!0}=n,s={current:-1};let u=!1,f=null,d=null,p=typeof performance<"u"?performance.now():0;function h(g,v){const w=performance.now(),E=w-p;if(f===null||d===null||E===0)return f=g,d=v,p=w,null;const C=g-f,T=v-d,N=Math.sqrt(C*C+T*T)/E;return f=g,d=v,p=w,N}const S=g=>{let{x:v,y:w,placement:E,elements:C,onClose:T,nodeId:A,tree:N}=g;return function(j){function L(){Zt(s),T()}if(Zt(s),!C.domReference||!C.floating||E==null||v==null||w==null)return;const{clientX:k,clientY:D}=j,U=[k,D],te=KR(j),le=j.type==="mouseleave",oe=_d(C.floating,te),ee=_d(C.domReference,te),F=C.domReference.getBoundingClientRect(),V=C.floating.getBoundingClientRect(),ce=E.split("-")[0],O=v>V.right-V.width/2,B=w>V.bottom-V.height/2,H=lE(U,F),Z=V.width>F.width,P=V.height>F.height,M=(Z?F:V).left,Y=(Z?F:V).right,J=(P?F:V).top,ae=(P?F:V).bottom;if(oe&&(u=!0,!le))return;if(ee&&(u=!1),ee&&!le){u=!0;return}if(le&&tt(j.relatedTarget)&&_d(C.floating,j.relatedTarget)||N&&L0(N.nodesRef.current,A).length)return;if(ce==="top"&&w>=F.bottom-1||ce==="bottom"&&w<=F.top+1||ce==="left"&&v>=F.right-1||ce==="right"&&v<=F.left+1)return L();let se=[];switch(ce){case"top":se=[[M,F.top+1],[M,V.bottom-1],[Y,V.bottom-1],[Y,F.top+1]];break;case"bottom":se=[[M,V.top+1],[M,F.bottom-1],[Y,F.bottom-1],[Y,V.top+1]];break;case"left":se=[[V.right-1,ae],[V.right-1,J],[F.left+1,J],[F.left+1,ae]];break;case"right":se=[[F.right-1,ae],[F.right-1,J],[V.left+1,J],[V.left+1,ae]];break}function de(ge){let[pe,he]=ge;switch(ce){case"top":{const Me=[Z?pe+l/2:O?pe+l*4:pe-l*4,he+l+1],Se=[Z?pe-l/2:O?pe+l*4:pe-l*4,he+l+1],Ce=[[V.left,O||Z?V.bottom-l:V.top],[V.right,O?Z?V.bottom-l:V.top:V.bottom-l]];return[Me,Se,...Ce]}case"bottom":{const Me=[Z?pe+l/2:O?pe+l*4:pe-l*4,he-l],Se=[Z?pe-l/2:O?pe+l*4:pe-l*4,he-l],Ce=[[V.left,O||Z?V.top+l:V.bottom],[V.right,O?Z?V.top+l:V.bottom:V.top+l]];return[Me,Se,...Ce]}case"left":{const Me=[pe+l+1,P?he+l/2:B?he+l*4:he-l*4],Se=[pe+l+1,P?he-l/2:B?he+l*4:he-l*4];return[...[[B||P?V.right-l:V.left,V.top],[B?P?V.right-l:V.left:V.right-l,V.bottom]],Me,Se]}case"right":{const Me=[pe-l,P?he+l/2:B?he+l*4:he-l*4],Se=[pe-l,P?he-l/2:B?he+l*4:he-l*4],Ce=[[B||P?V.left+l:V.right,V.top],[B?P?V.left+l:V.right:V.left+l,V.bottom]];return[Me,Se,...Ce]}}}if(!fb([k,D],se)){if(u&&!H)return L();if(!le&&o){const ge=h(j.clientX,j.clientY);if(ge!==null&&ge<.1)return L()}fb([k,D],de([v,w]))?!u&&o&&(s.current=window.setTimeout(L,40)):L()}}};return S.__options={blockPointerEvents:r},S}const k0={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},U0=(n,{scrollbarSize:l,overscrollBehavior:r,scrollbars:o})=>{let s=r;return r&&o&&(o==="x"?s=`${r} auto`:o==="y"&&(s=`auto ${r}`)),{root:{"--scrollarea-scrollbar-size":K(l),"--scrollarea-over-scroll-behavior":s}}},$n=me(n=>{const l=ue("ScrollArea",k0,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,scrollbarSize:d,vars:p,type:h,scrollHideDelay:S,viewportProps:g,viewportRef:v,onScrollPositionChange:w,children:E,offsetScrollbars:C,scrollbars:T,onBottomReached:A,onTopReached:N,onLeftReached:_,onRightReached:j,overscrollBehavior:L,startScrollPosition:k,verticalScrollbarPosition:D,attributes:U,...te}=l,[le,oe]=x.useState(!1),[ee,F]=x.useState(!1),[V,ce]=x.useState(!1),O=x.useRef(!0),B=x.useRef(!1),H=x.useRef(!0),Z=x.useRef(!1),P=Oe({name:"ScrollArea",props:l,classes:Nm,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:U,vars:p,varsResolver:U0}),M=x.useRef(null),[Y,J]=x.useState(null),ae=O0([v,M,x.useCallback(se=>{J(de=>de===se?de:se)},[])]);return ha(C==="present"?Y:null,()=>{const se=M.current;se&&(F(se.scrollHeight>se.clientHeight),ce(se.scrollWidth>se.clientWidth))}),Wn(()=>{k&&M.current&&M.current.scrollTo({left:k.x??0,top:k.y??0})},[]),y.jsxs(i0,{getStyles:P,type:h==="never"?"always":h,scrollHideDelay:S,scrollbars:T,...P("root"),...te,children:[y.jsx(g0,{...g,...P("viewport",{style:g==null?void 0:g.style}),ref:ae,"data-offset-scrollbars":C===!0?"xy":C||void 0,"data-scrollbars":T||void 0,"data-vertical-scrollbar-position":D||void 0,"data-horizontal-hidden":C==="present"&&!V?"true":void 0,"data-vertical-hidden":C==="present"&&!ee?"true":void 0,onScroll:se=>{var Te;(Te=g==null?void 0:g.onScroll)==null||Te.call(g,se),w==null||w({x:se.currentTarget.scrollLeft,y:se.currentTarget.scrollTop});const{scrollTop:de,scrollHeight:ge,clientHeight:pe,scrollLeft:he,scrollWidth:Me,clientWidth:Se}=se.currentTarget,Ce=de-(ge-pe)>=-.8,ie=de===0;Ce&&!B.current&&(A==null||A()),ie&&!O.current&&(N==null||N()),B.current=Ce,O.current=ie;const ye=he-(Me-Se)>=-.8,Ne=he===0;ye&&!Z.current&&(j==null||j()),Ne&&!H.current&&(_==null||_()),Z.current=ye,H.current=Ne},children:E}),(T==="xy"||T==="x")&&y.jsx(Zd,{...P("scrollbar"),orientation:"horizontal","data-vertical-scrollbar-position":D||void 0,"data-hidden":h==="never"||C==="present"&&!V?!0:void 0,forceMount:!0,onMouseEnter:()=>oe(!0),onMouseLeave:()=>oe(!1),children:y.jsx(Qd,{...P("thumb")})}),(T==="xy"||T==="y")&&y.jsx(Zd,{...P("scrollbar"),orientation:"vertical","data-vertical-scrollbar-position":D||void 0,"data-hidden":h==="never"||C==="present"&&!ee?!0:void 0,forceMount:!0,onMouseEnter:()=>oe(!0),onMouseLeave:()=>oe(!1),children:y.jsx(Qd,{...P("thumb")})}),y.jsx(dT,{...P("corner"),"data-vertical-scrollbar-position":D||void 0,"data-hovered":le||void 0,"data-hidden":h==="never"||void 0})]})});$n.displayName="@mantine/core/ScrollArea";const Hm=me(n=>{const{children:l,classNames:r,styles:o,scrollbarSize:s,scrollHideDelay:u,type:f,dir:d,offsetScrollbars:p,overscrollBehavior:h,viewportRef:S,onScrollPositionChange:g,unstyled:v,variant:w,viewportProps:E,scrollbars:C,style:T,vars:A,onBottomReached:N,onTopReached:_,startScrollPosition:j,verticalScrollbarPosition:L,onOverflowChange:k,...D}=ue("ScrollAreaAutosize",k0,n),U=x.useRef(null),[te,le]=x.useState(null),oe=O0([S,U,x.useCallback(ce=>{le(O=>O===ce?O:ce)},[])]),ee=x.useRef(!1),F=x.useRef(!1),V=x.useEffectEvent(()=>{const ce=U.current;if(!ce||!k)return;const O=ce.scrollHeight>ce.clientHeight;O!==ee.current&&(F.current?k(O):(F.current=!0,O&&k(!0)),ee.current=O)});return ha(k?te:null,V),y.jsx(fe,{...D,variant:w,style:[{display:"flex",overflow:"hidden"},T],children:y.jsx(fe,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...C==="y"&&{minWidth:0},...C==="x"&&{minHeight:0},...C==="xy"&&{minWidth:0,minHeight:0},...C===!1&&{minWidth:0,minHeight:0}},children:y.jsx($n,{classNames:r,styles:o,scrollHideDelay:u,scrollbarSize:s,type:f,dir:d,offsetScrollbars:p,overscrollBehavior:h,viewportRef:oe,onScrollPositionChange:g,unstyled:v,variant:w,viewportProps:E,vars:A,scrollbars:C,onBottomReached:N,onTopReached:_,startScrollPosition:j,verticalScrollbarPosition:L,"data-autosize":"true",children:l})})})});$n.classes=Nm;$n.varsResolver=U0;Hm.displayName="@mantine/core/ScrollAreaAutosize";Hm.classes=Nm;$n.Autosize=Hm;var H0={root:"m_87cf2631"};const aE={__staticSelector:"UnstyledButton"},jl=Kt(n=>{const l=ue("UnstyledButton",aE,n),{className:r,component:o="button",__staticSelector:s,unstyled:u,classNames:f,styles:d,style:p,attributes:h,...S}=l;return y.jsx(fe,{...Oe({name:s,props:l,classes:H0,className:r,style:p,classNames:f,styles:d,unstyled:u,attributes:h})("root",{focusable:!0}),component:o,type:o==="button"?"button":void 0,...S})});jl.classes=H0;jl.displayName="@mantine/core/UnstyledButton";var Y0={root:"m_515a97f8"};const Ym=me(n=>{const l=ue("VisuallyHidden",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,attributes:p,...h}=l;return y.jsx(fe,{component:"span",...Oe({name:"VisuallyHidden",classes:Y0,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:p})("root"),...h})});Ym.classes=Y0;Ym.displayName="@mantine/core/VisuallyHidden";var q0={root:"m_1b7284a3"};const V0=(n,{radius:l,shadow:r})=>({root:{"--paper-radius":l===void 0?void 0:Ut(l),"--paper-shadow":dm(r)}}),Ln=Kt(n=>{const l=ue("Paper",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,withBorder:d,vars:p,radius:h,shadow:S,variant:g,mod:v,attributes:w,...E}=l,C=Oe({name:"Paper",props:l,classes:q0,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:w,vars:p,varsResolver:V0});return y.jsx(fe,{mod:[{"data-with-border":d},v],...C("root"),variant:g,...E})});Ln.classes=q0;Ln.varsResolver=V0;Ln.displayName="@mantine/core/Paper";function db(n,l,r,o){return n==="center"||o==="center"?{top:l}:n==="end"?{bottom:r}:n==="start"?{top:r}:{}}function mb(n,l,r,o,s){return n==="center"||o==="center"?{left:l}:n==="end"?{[s==="ltr"?"right":"left"]:r}:n==="start"?{[s==="ltr"?"left":"right"]:r}:{}}const oE={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function rE({position:n,arrowSize:l,dir:r}){const[o,s]=n.split("-");if(!s)return;const u={width:l,height:l,position:"absolute"};if(o==="bottom"){const f=s==="start",d=f?r==="ltr"?"left":"right":r==="ltr"?"right":"left";return{...u,top:-l,[d]:0,clipPath:f!==(r==="rtl")?"polygon(0% 0%, 0% 100%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}if(o==="top"){const f=s==="start",d=f?r==="ltr"?"left":"right":r==="ltr"?"right":"left";return{...u,bottom:-l,[d]:0,clipPath:f!==(r==="rtl")?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 100% 0%, 100% 100%)"}}if(o==="left")return{...u,right:-l,[s==="start"?"top":"bottom"]:0,clipPath:s==="start"?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 0% 100%, 100% 100%)"};if(o==="right")return{...u,left:-l,[s==="start"?"top":"bottom"]:0,clipPath:s==="start"?"polygon(0% 0%, 100% 0%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}function iE({position:n,arrowSize:l,arrowOffset:r,arrowRadius:o,arrowPosition:s,arrowX:u,arrowY:f,dir:d}){if(s==="merge"){const v=rE({position:n,arrowSize:l,dir:d});if(v)return v}const[p,h="center"]=n.split("-"),S={width:l,height:l,transform:"rotate(45deg)",position:"absolute",[oE[p]]:o},g=-l/2;return p==="left"?{...S,...db(h,f,r,s),right:g,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...S,...db(h,f,r,s),left:g,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...S,...mb(h,u,r,s,d),bottom:g,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...S,...mb(h,u,r,s,d),top:g,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}function G0({position:n,dir:l}){const[r,o]=n.split("-");if(!o)return;const s=o==="start"&&l==="ltr"||o==="end"&&l==="rtl";if(r==="bottom")return s?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(r==="top")return s?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(r==="left")return o==="start"?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(r==="right")return o==="start"?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function nc({position:n,arrowSize:l,arrowOffset:r,arrowRadius:o,arrowPosition:s,visible:u,arrowX:f,arrowY:d,style:p,...h}){const{dir:S}=al();return u?y.jsx("div",{role:"presentation",...h,style:{...p,...iE({position:n,arrowSize:l,arrowOffset:r,arrowRadius:o,arrowPosition:s,dir:S,arrowX:f,arrowY:d})}}):null}nc.displayName="@mantine/core/FloatingArrow";function qm(n,l){if(n==="rtl"&&(l.includes("right")||l.includes("left"))){const[r,o]=l.split("-"),s=r==="right"?"left":"right";return o===void 0?s:`${s}-${o}`}return l}function sE({open:n,close:l,openDelay:r,closeDelay:o}){const s=x.useRef(-1),u=x.useRef(-1),f=()=>{window.clearTimeout(s.current),window.clearTimeout(u.current)},d=()=>{f(),r===0||r===void 0?n():s.current=window.setTimeout(n,r)},p=()=>{f(),o===0||o===void 0?l():u.current=window.setTimeout(l,o)};return x.useEffect(()=>f,[]),{openDropdown:d,closeDropdown:p}}var X0={root:"m_9814e45f"};const cE={zIndex:Qt("modal")},I0=(n,{gradient:l,color:r,backgroundOpacity:o,blur:s,radius:u,zIndex:f})=>({root:{"--overlay-bg":l||(r!==void 0||o!==void 0)&&ua(r||"#000",o??.6)||void 0,"--overlay-filter":s?`blur(${K(s)})`:void 0,"--overlay-radius":u===void 0?void 0:Ut(u),"--overlay-z-index":f==null?void 0:f.toString()}}),si=Kt(n=>{const l=ue("Overlay",cE,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,fixed:p,center:h,children:S,radius:g,zIndex:v,gradient:w,blur:E,color:C,backgroundOpacity:T,mod:A,attributes:N,..._}=l;return y.jsx(fe,{...Oe({name:"Overlay",props:l,classes:X0,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:N,vars:d,varsResolver:I0})("root"),mod:[{center:h,fixed:p},A],..._,children:S})});si.classes=X0;si.varsResolver=I0;si.displayName="@mantine/core/Overlay";function Od(n){const l=document.createElement("div");return l.setAttribute("data-portal","true"),typeof n.className=="string"&&l.classList.add(...n.className.split(" ").filter(Boolean)),typeof n.style=="object"&&Object.assign(l.style,n.style),typeof n.id=="string"&&l.setAttribute("id",n.id),l}function uE({target:n,reuseTargetNode:l,...r}){if(n)return typeof n=="string"?document.querySelector(n)||Od(r):n;if(l){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const s=Od(r);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return Od(r)}const fE={reuseTargetNode:!0},Vm=me(n=>{const{children:l,target:r,reuseTargetNode:o,ref:s,...u}=ue("Portal",fE,n),[f,d]=x.useState(!1),p=x.useRef(null);return Wn(()=>(d(!0),p.current=uE({target:r,reuseTargetNode:o,...u}),qd(s,p.current),!r&&!o&&p.current&&document.body.appendChild(p.current),()=>{!r&&!o&&p.current&&document.body.removeChild(p.current)}),[r]),!f||!p.current?null:gm.createPortal(y.jsx(y.Fragment,{children:l}),p.current)});Vm.displayName="@mantine/core/Portal";const Ga=me(({withinPortal:n=!0,children:l,...r})=>wm()==="test"||!n?y.jsx(y.Fragment,{children:l}):y.jsx(Vm,{...r,children:l}));Ga.displayName="@mantine/core/OptionalPortal";const Fr=n=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${n==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Bs={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:{...Fr("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Fr("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Fr("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Fr("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Fr("top"),common:{transformOrigin:"top right"}}},pb={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function hb({transition:n,state:l,duration:r,timingFunction:o}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${r}ms`,transitionTimingFunction:o};return typeof n=="string"?n in Bs?{transitionProperty:Bs[n].transitionProperty,...s,...Bs[n].common,...Bs[n][pb[l]]}:{}:{transitionProperty:n.transitionProperty,...s,...n.common,...n[pb[l]]}}function dE({duration:n,exitDuration:l,timingFunction:r,mounted:o,onEnter:s,onExit:u,onEntered:f,onExited:d,enterDelay:p,exitDelay:h}){const S=cn(),g=vm(),v=S.respectReducedMotion?g:!1,[w,E]=x.useState(v?0:n),[C,T]=x.useState(o?"entered":"exited"),A=x.useRef(-1),N=x.useRef(-1),_=x.useRef(-1);function j(){window.clearTimeout(A.current),window.clearTimeout(N.current),cancelAnimationFrame(_.current)}const L=D=>{j();const U=D?s:u,te=D?f:d,le=v?0:D?n:l;E(le),le===0?(typeof U=="function"&&U(),typeof te=="function"&&te(),T(D?"entered":"exited")):_.current=requestAnimationFrame(()=>{Z2.flushSync(()=>{T(D?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof U=="function"&&U(),T(D?"entering":"exiting"),A.current=window.setTimeout(()=>{typeof te=="function"&&te(),T(D?"entered":"exited")},le)})})},k=D=>{if(j(),typeof(D?p:h)!="number"){L(D);return}N.current=window.setTimeout(()=>{L(D)},D?p:h)};return hm(()=>{k(o)},[o]),x.useEffect(()=>()=>{j()},[]),{transitionDuration:w,transitionStatus:C,transitionTimingFunction:r||"ease"}}function Al({keepMounted:n,keepMountedMode:l="activity",transition:r="fade",duration:o=250,exitDuration:s=o,mounted:u,children:f,timingFunction:d="ease",onExit:p,onEntered:h,onEnter:S,onExited:g,enterDelay:v,exitDelay:w}){const E=wm(),{transitionDuration:C,transitionStatus:T,transitionTimingFunction:A}=dE({mounted:u,exitDuration:s,duration:o,timingFunction:d,onExit:p,onEntered:h,onEnter:S,onExited:g,enterDelay:v,exitDelay:w});if(E==="test")return u?y.jsx(y.Fragment,{children:f({})}):n?f({display:"none"}):null;if(C===0)return n?l==="display-none"?u?y.jsx(y.Fragment,{children:f({})}):f({display:"none"}):y.jsx(x.Activity,{mode:u?"visible":"hidden",children:f({})}):u?y.jsx(y.Fragment,{children:f({})}):null;const N=T==="exited";if(n){const _=f(N?l==="display-none"?{display:"none"}:{}:hb({transition:r,duration:C,state:T,timingFunction:A}));return l==="display-none"?_:y.jsx(x.Activity,{mode:N?"hidden":"visible",children:_})}return N?null:y.jsx(y.Fragment,{children:f(hb({transition:r,duration:C,state:T,timingFunction:A}))})}Al.displayName="@mantine/core/Transition";const mE={duration:100,transition:"fade"};function vb(n,l){return{...mE,...l,...n}}const[pE,bc]=Nl("Popover component was not found in the tree");function Z0({childProps:n,disabled:l,opened:r,longPressDelay:o=500,setReference:s,open:u}){const f=x.useRef(!1),d=x.useRef(!1),p=x.useRef(null),h=x.useRef(l);h.current=l;const S=(E,C,T)=>{s({getBoundingClientRect:()=>({x:E,y:C,width:0,height:0,top:C,left:E,right:E,bottom:C,toJSON:()=>{}}),contextElement:T}),u()},g=at(n.onMouseDown,E=>{l||E.button===2&&E.stopPropagation()}),v=at(n.onContextMenu,E=>{l||E.defaultPrevented||(E.preventDefault(),!d.current&&(S(E.clientX,E.clientY,E.currentTarget),f.current&&(d.current=!0)))}),w=I2(E=>{if(h.current||d.current)return;const C=E,T=C.touches[0]??C.changedTouches[0];T&&(S(T.clientX,T.clientY,p.current),d.current=!0)},{threshold:o,events:["touch"],cancelOnMove:!0,onStart:E=>{f.current=!0,d.current=!1,p.current=E.currentTarget},onFinish:E=>{f.current=!1,d.current=!1,h.current||E.preventDefault()},onCancel:()=>{f.current=!1,d.current=!1}});return{onContextMenu:v,onMouseDown:g,onTouchStart:at(n.onTouchStart,w.onTouchStart),onTouchEnd:at(n.onTouchEnd,w.onTouchEnd),onTouchCancel:at(n.onTouchCancel,w.onTouchCancel),onTouchMove:at(n.onTouchMove,w.onTouchMove),style:l?n.style:{...n.style,WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"},"data-expanded":r?!0:void 0}}function Q0(n){const{children:l,disabled:r,longPressDelay:o}=ue("PopoverContextMenu",null,n),s=Ml(l);if(!s)throw new Error("Popover.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=bc();return x.cloneElement(s,Z0({childProps:s.props,disabled:r||u.disabled,opened:u.opened,longPressDelay:o,setReference:u.reference,open:()=>{u.opened||u.onToggle()}}))}Q0.displayName="@mantine/core/PopoverContextMenu";function Sc({children:n,active:l=!0,refProp:r="ref",innerRef:o}){const s=it($2(l),o),u=Ml(n);return u?x.cloneElement(u,{[r]:s}):n}function K0(n){return y.jsx(Ym,{tabIndex:-1,"data-autofocus":!0,...n})}Sc.displayName="@mantine/core/FocusTrap";K0.displayName="@mantine/core/FocusTrapInitialFocus";Sc.InitialFocus=K0;var F0={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const Gm=me(n=>{var N,_,j,L;const l=ue("PopoverDropdown",null,n),{className:r,style:o,vars:s,children:u,onKeyDownCapture:f,variant:d,classNames:p,styles:h,ref:S,...g}=l,v=bc(),{dir:w}=al(),E=v.arrowPosition==="merge"&&v.withArrow?G0({position:v.placement,dir:w}):void 0,C=Yb({opened:v.opened,shouldReturnFocus:v.returnFocus}),T=v.withRoles?{"aria-labelledby":v.getTargetId(),id:v.getDropdownId(),role:"dialog",tabIndex:-1}:{},A=it(S,v.floating);return v.disabled?null:y.jsx(Ga,{...v.portalProps,withinPortal:v.withinPortal,children:y.jsx(Al,{mounted:v.opened,...v.transitionProps,transition:((N=v.transitionProps)==null?void 0:N.transition)||"fade",duration:((_=v.transitionProps)==null?void 0:_.duration)??150,keepMounted:v.keepMounted,keepMountedMode:v.keepMountedMode,exitDuration:typeof((j=v.transitionProps)==null?void 0:j.exitDuration)=="number"?v.transitionProps.exitDuration:(L=v.transitionProps)==null?void 0:L.duration,children:k=>{var D;return y.jsx(Sc,{active:v.trapFocus&&v.opened,innerRef:A,children:y.jsxs(fe,{...T,...g,variant:d,onKeyDownCapture:C2(()=>{var U,te;(U=v.onClose)==null||U.call(v),(te=v.onDismiss)==null||te.call(v)},{active:v.closeOnEscape,onTrigger:C,onKeyDown:f}),"data-position":v.placement,"data-fixed":v.floatingStrategy==="fixed"||void 0,...v.getStyles("dropdown",{className:r,props:l,classNames:p,styles:h,style:[{...k,...E,zIndex:v.zIndex,top:v.y??0,left:v.x??0,width:v.width==="target"?void 0:K(v.width),...v.referenceHidden?{display:"none"}:null},(D=v.resolvedStyles)==null?void 0:D.dropdown,h==null?void 0:h.dropdown,o]}),children:[u,y.jsx(nc,{ref:v.arrowRef,arrowX:v.arrowX,arrowY:v.arrowY,visible:v.withArrow,position:v.placement,arrowSize:v.arrowSize,arrowRadius:v.arrowRadius,arrowOffset:v.arrowOffset,arrowPosition:v.arrowPosition,...v.getStyles("arrow",{props:l,classNames:p,styles:h})})]})})}})})});Gm.classes=F0;Gm.displayName="@mantine/core/PopoverDropdown";const hE={refProp:"ref",popupType:"dialog"},J0=me(n=>{const{children:l,refProp:r,popupType:o,ref:s,...u}=ue("PopoverTarget",hE,n),f=Ml(l);if(!f)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 d=u,p=bc(),h=it(p.reference,ic(f),s),S=p.withRoles?{"aria-haspopup":o,"aria-expanded":p.opened,"aria-controls":p.opened?p.getDropdownId():void 0,id:p.getTargetId()}:{},g=f.props;return x.cloneElement(f,{...d,...S,...p.targetProps,className:gt(p.targetProps.className,d.className,g.className),[r]:h,...p.controlled?null:{onClick:v=>{var w;p.onToggle(),(w=g.onClick)==null||w.call(g,v)}}})});J0.displayName="@mantine/core/PopoverTarget";function vE(n){if(n===void 0)return{shift:!0,flip:!0};const l={...n};return n.shift===void 0&&(l.shift=!0),n.flip===void 0&&(l.flip=!0),l}function gE(n,l,r,o){const s=vE(n.middlewares),u=[N0(n.offset),BR()];if(s.flip&&!r){const f=typeof s.flip=="boolean"?{}:s.flip,d=o?{fallbackStrategy:"initialPlacement",...f}:f;u.push(Wd(d))}if(s.shift){const f=typeof s.shift=="boolean"?{}:s.shift;u.push(Lm(d=>{const p=d.placement.startsWith("top")||d.placement.startsWith("bottom");return{limiter:$R(),padding:5,...n.width==="target"&&p?{mainAxis:!1}:null,...f}}))}return s.inline&&u.push(typeof s.inline=="boolean"?Wr():Wr(s.inline)),u.push(M0({element:n.arrowRef,padding:n.arrowOffset})),(s.size||n.width==="target")&&u.push(LR({...typeof s.size=="boolean"?{}:s.size,apply({rects:f,availableWidth:d,availableHeight:p,...h}){var g;const S=((g=l().refs.floating.current)==null?void 0:g.style)??{};s.size&&(typeof s.size=="object"&&s.size.apply?s.size.apply({rects:f,availableWidth:d,availableHeight:p,...h}):Object.assign(S,{maxWidth:`${d}px`,maxHeight:`${p}px`})),n.width==="target"&&Object.assign(S,{width:`${f.reference.width}px`})}})),u}function yE(n){const[l,r]=el({value:n.opened,defaultValue:n.defaultOpened,finalValue:!1,onChange:n.onChange}),o=x.useRef(l),[s,u]=x.useState(null),f=n.preventPositionChangeWhenVisible!==!1,d=x.useRef(l);l!==d.current&&(d.current=l,l&&s!==null&&u(null));const p=x.useCallback(()=>u(null),[]),h=()=>{l&&!n.disabled&&r(!1)},S=()=>{n.disabled||r(!l)},g=yc({open:l,strategy:n.strategy,placement:f?s??n.position:n.position,middleware:gE(n,()=>g,f&&s!==null,f),whileElementsMounted:n.keepMounted?void 0:Pd});x.useEffect(()=>{if(!n.keepMounted)return;const E=g.refs.reference.current,C=g.refs.floating.current;if(l&&E&&C)return Pd(E,C,g.update)},[n.keepMounted,l,g.update,g.elements.reference,g.elements.floating]);const v=x.useRef(!1);Wn(()=>{if(!l){v.current=!1;return}if(!f||s!==null)return;const E=g.refs.floating.current;if(!(!E||E.offsetHeight===0||E.offsetWidth===0)){if(!v.current){v.current=!0,g.update();return}g.isPositioned&&u(g.placement)}},[f,l,g.isPositioned,g.placement,s,g.update]);const w=x.useRef(g.placement);return Wn(()=>{var E;w.current!==g.placement&&(w.current=g.placement,(E=n.onPositionChange)==null||E.call(n,g.placement))},[g.placement]),hm(()=>{var E,C;l!==o.current&&(l?(C=n.onOpen)==null||C.call(n):(E=n.onClose)==null||E.call(n)),o.current=l},[l,n.onClose,n.onOpen]),{floating:g,controlled:typeof n.opened=="boolean",opened:l,onClose:h,onToggle:S,resetLockedPlacement:p}}const bE={position:"bottom",offset:8,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,hideDetached:!0,preventPositionChangeWhenVisible:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:Qt("popover"),__staticSelector:"Popover",width:"max-content"},P0=(n,{radius:l,shadow:r})=>({dropdown:{"--popover-radius":l===void 0?void 0:Ut(l),"--popover-shadow":dm(r)}});function vt(n){var kl,ol,Dt,En,Wt,St,en;const l=ue("Popover",bE,n),{children:r,position:o,offset:s,onPositionChange:u,opened:f,transitionProps:d,onExitTransitionEnd:p,onEnterTransitionEnd:h,width:S,middlewares:g,withArrow:v,arrowSize:w,arrowOffset:E,arrowRadius:C,arrowPosition:T,unstyled:A,classNames:N,styles:_,closeOnClickOutside:j,withinPortal:L,portalProps:k,closeOnEscape:D,clickOutsideEvents:U,trapFocus:te,onClose:le,onDismiss:oe,onOpen:ee,onChange:F,zIndex:V,radius:ce,shadow:O,id:B,defaultOpened:H,__staticSelector:Z,withRoles:P,disabled:M,returnFocus:Y,variant:J,keepMounted:ae,keepMountedMode:se,vars:de,floatingStrategy:ge,withOverlay:pe,overlayProps:he,hideDetached:Me,attributes:Se,preventPositionChangeWhenVisible:Ce,...ie}=l,ye=Oe({name:Z,props:l,classes:F0,classNames:N,styles:_,unstyled:A,attributes:Se,rootSelector:"dropdown",vars:de,varsResolver:P0}),{resolvedStyles:Ne}=cc({classNames:N,styles:_,props:l}),Te=x.useRef(null),[Ve,ut]=x.useState(null),[jt,fn]=x.useState(null),{dir:dn}=al(),zt=wm(),Pt=kn(B),je=yE({middlewares:g,width:S,position:qm(dn,o),offset:typeof s=="number"?s+(v?w/2:0):s,arrowRef:Te,arrowOffset:E,onPositionChange:u,opened:f,defaultOpened:H,onChange:F,onOpen:ee,onClose:le,onDismiss:oe,strategy:ge,disabled:M,preventPositionChangeWhenVisible:Ce,keepMounted:ae});_2(()=>{j&&(je.onClose(),oe==null||oe())},U,[Ve,jt]);const Bl=x.useCallback(Ee=>{ut(Ee),je.floating.refs.setReference(Ee)},[je.floating.refs.setReference]),yt=x.useCallback(Ee=>{fn(Ee),je.floating.refs.setFloating(Ee)},[je.floating.refs.setFloating]),Sa=x.useCallback(()=>{var Ee;(Ee=d==null?void 0:d.onExited)==null||Ee.call(d),p==null||p(),je.resetLockedPlacement()},[d==null?void 0:d.onExited,p,je.resetLockedPlacement]),Ye=x.useCallback(()=>{var Ee;(Ee=d==null?void 0:d.onEntered)==null||Ee.call(d),h==null||h()},[d==null?void 0:d.onEntered,h]);return y.jsxs(pE,{value:{returnFocus:Y,disabled:M,controlled:je.controlled,reference:Bl,floating:yt,x:je.floating.x,y:je.floating.y,arrowX:(Dt=(ol=(kl=je.floating)==null?void 0:kl.middlewareData)==null?void 0:ol.arrow)==null?void 0:Dt.x,arrowY:(St=(Wt=(En=je.floating)==null?void 0:En.middlewareData)==null?void 0:Wt.arrow)==null?void 0:St.y,opened:je.opened,arrowRef:Te,transitionProps:{...d,onExited:Sa,onEntered:Ye},width:S,withArrow:v,arrowSize:w,arrowOffset:E,arrowRadius:C,arrowPosition:T,placement:je.floating.placement,trapFocus:te,withinPortal:L,portalProps:k,zIndex:V,radius:ce,shadow:O,closeOnEscape:D,onDismiss:oe,onClose:je.onClose,onToggle:je.onToggle,getTargetId:()=>Pt,getDropdownId:()=>`${Pt}-dropdown`,withRoles:P,targetProps:ie,__staticSelector:Z,classNames:N,styles:_,unstyled:A,variant:J,keepMounted:ae,keepMountedMode:se,getStyles:ye,resolvedStyles:Ne,floatingStrategy:ge,referenceHidden:Me&&zt!=="test"?(en=je.floating.middlewareData.hide)==null?void 0:en.referenceHidden:!1},children:[r,pe&&y.jsx(Al,{transition:"fade",mounted:je.opened,duration:(d==null?void 0:d.duration)||250,exitDuration:(d==null?void 0:d.exitDuration)||250,children:Ee=>y.jsx(Ga,{withinPortal:L,children:y.jsx(si,{...he,...ye("overlay",{className:he==null?void 0:he.className,style:[Ee,he==null?void 0:he.style]})})})})]})}vt.Target=J0;vt.Dropdown=Gm;vt.ContextMenu=Q0;vt.varsResolver=P0;vt.displayName="@mantine/core/Popover";vt.extend=n=>n;vt.withProps=n=>{const l=r=>y.jsx(vt,{...n,...r});return l.extend=vt.extend,l.displayName=`WithProps(${vt.displayName})`,l};var jn={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 W0=({className:n,...l})=>y.jsxs(fe,{component:"span",className:gt(jn.barsLoader,n),...l,children:[y.jsx("span",{className:jn.bar}),y.jsx("span",{className:jn.bar}),y.jsx("span",{className:jn.bar})]});W0.displayName="@mantine/core/Bars";const e1=({className:n,...l})=>y.jsxs(fe,{component:"span",className:gt(jn.dotsLoader,n),...l,children:[y.jsx("span",{className:jn.dot}),y.jsx("span",{className:jn.dot}),y.jsx("span",{className:jn.dot})]});e1.displayName="@mantine/core/Dots";const t1=({className:n,...l})=>y.jsx(fe,{component:"span",className:gt(jn.ovalLoader,n),...l});t1.displayName="@mantine/core/Oval";const n1={bars:W0,oval:t1,dots:e1},SE={loaders:n1,type:"oval"},l1=(n,{size:l,color:r})=>({root:{"--loader-size":Je(l,"loader-size"),"--loader-color":r?pa(r,n):void 0}}),Za=me(n=>{const l=ue("Loader",SE,n),{size:r,color:o,type:s,vars:u,className:f,style:d,classNames:p,styles:h,unstyled:S,loaders:g,variant:v,children:w,attributes:E,...C}=l,T=Oe({name:"Loader",props:l,classes:jn,className:f,style:d,classNames:p,styles:h,unstyled:S,attributes:E,vars:u,varsResolver:l1});return w?y.jsx(fe,{...T("root"),...C,children:w}):y.jsx(fe,{...T("root"),component:g[s],variant:v,size:r,...C})});Za.defaultLoaders=n1;Za.classes=jn;Za.varsResolver=l1;Za.displayName="@mantine/core/Loader";var Ko={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const xE={orientation:"horizontal"},a1=(n,{borderWidth:l})=>({group:{"--ai-border-width":K(l)}}),xc=me(n=>{const l=ue("ActionIconGroup",xE,n),{className:r,style:o,classNames:s,styles:u,unstyled:f,orientation:d,vars:p,borderWidth:h,variant:S,mod:g,attributes:v,...w}=l;return y.jsx(fe,{...Oe({name:"ActionIconGroup",props:l,classes:Ko,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:v,vars:p,varsResolver:a1,rootSelector:"group"})("group"),variant:S,mod:[{"data-orientation":d},g],role:"group",...w})});xc.classes=Ko;xc.varsResolver=a1;xc.displayName="@mantine/core/ActionIconGroup";const o1=(n,{radius:l,color:r,gradient:o,variant:s,autoContrast:u,size:f})=>{const d=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:o,variant:s||"filled",autoContrast:u});return{groupSection:{"--section-height":Je(f,"section-height"),"--section-padding-x":Je(f,"section-padding-x"),"--section-fz":Ct(f),"--section-radius":l===void 0?void 0:Ut(l),"--section-bg":r||s?d.background:void 0,"--section-color":d.color,"--section-bd":r||s?d.border:void 0}}},wc=me(n=>{const l=ue("ActionIconGroupSection",null,n),{className:r,style:o,classNames:s,styles:u,unstyled:f,vars:d,variant:p,gradient:h,radius:S,autoContrast:g,attributes:v,...w}=l;return y.jsx(fe,{...Oe({name:"ActionIconGroupSection",props:l,classes:Ko,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:v,vars:d,varsResolver:o1,rootSelector:"groupSection"})("groupSection"),variant:p,...w})});wc.classes=Ko;wc.varsResolver=o1;wc.displayName="@mantine/core/ActionIconGroupSection";const r1=(n,{size:l,radius:r,variant:o,gradient:s,color:u,autoContrast:f})=>{const d=n.variantColorResolver({color:u||n.primaryColor,theme:n,gradient:s,variant:o||"filled",autoContrast:f});return{root:{"--ai-size":Je(l,"ai-size"),"--ai-radius":r===void 0?void 0:Ut(r),"--ai-bg":u||o?d.background:void 0,"--ai-hover":u||o?d.hover:void 0,"--ai-hover-color":u||o?d.hoverColor:void 0,"--ai-color":d.color,"--ai-bd":u||o?d.border:void 0}}},ya=Kt(n=>{const l=ue("ActionIcon",null,n),{className:r,unstyled:o,variant:s,classNames:u,styles:f,style:d,loading:p,loaderProps:h,size:S,color:g,radius:v,__staticSelector:w,gradient:E,vars:C,children:T,disabled:A,"data-disabled":N,autoContrast:_,mod:j,attributes:L,...k}=l,D=Oe({name:["ActionIcon",w],props:l,className:r,style:d,classes:Ko,classNames:u,styles:f,unstyled:o,attributes:L,vars:C,varsResolver:r1});return y.jsxs(jl,{...D("root",{active:!A&&!p&&!N}),"aria-busy":p||void 0,...k,unstyled:o,variant:s,size:S,disabled:A||p,mod:[{loading:p,disabled:A||N},j],children:[typeof p=="boolean"&&y.jsx(Al,{mounted:p,transition:"slide-down",duration:150,children:U=>y.jsx(fe,{component:"span",...D("loader",{style:U}),"aria-hidden":!0,children:y.jsx(Za,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...h})})}),y.jsx(fe,{component:"span",mod:{loading:p},...D("icon"),children:T})]})});ya.classes=Ko;ya.varsResolver=r1;ya.displayName="@mantine/core/ActionIcon";ya.Group=xc;ya.GroupSection=wc;function i1({size:n="var(--cb-icon-size, 70%)",style:l,...r}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...l,width:n,height:n},...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"})})}i1.displayName="@mantine/core/CloseIcon";var s1={root:"m_86a44da5","root--subtle":"m_220c80f2"};const wE={variant:"subtle"},c1=(n,{size:l,radius:r,iconSize:o})=>({root:{"--cb-size":Je(l,"cb-size"),"--cb-radius":r===void 0?void 0:Ut(r),"--cb-icon-size":K(o)}}),Qa=Kt(n=>{const l=ue("CloseButton",wE,n),{iconSize:r,children:o,vars:s,radius:u,className:f,classNames:d,style:p,styles:h,unstyled:S,"data-disabled":g,disabled:v,variant:w,icon:E,mod:C,attributes:T,__staticSelector:A,...N}=l,_=Oe({name:A||"CloseButton",props:l,className:f,style:p,classes:s1,classNames:d,styles:h,unstyled:S,attributes:T,vars:s,varsResolver:c1});return y.jsxs(jl,{...N,unstyled:S,variant:w,disabled:v,mod:[{disabled:v||g},C],..._("root",{variant:w,active:!v&&!g}),children:[E||y.jsx(i1,{}),o]})});Qa.classes=s1;Qa.varsResolver=c1;Qa.displayName="@mantine/core/CloseButton";function CE(n){return x.Children.toArray(n).filter(Boolean)}var u1={root:"m_4081bf90"};const TE={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},f1=(n,{grow:l,preventGrowOverflow:r,gap:o,align:s,justify:u,wrap:f},{childWidth:d})=>({root:{"--group-child-width":l&&r?d:void 0,"--group-gap":ii(o),"--group-align":s,"--group-justify":u,"--group-wrap":f}}),Nt=me(n=>{const l=ue("Group",TE,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,children:d,gap:p,align:h,justify:S,wrap:g,grow:v,preventGrowOverflow:w,vars:E,variant:C,__size:T,mod:A,attributes:N,..._}=l,j=CE(d),L=j.length,k=ii(p??"md");return y.jsx(fe,{...Oe({name:"Group",props:l,stylesCtx:{childWidth:`calc(${100/L}% - (${k} - ${k} / ${L}))`},className:o,style:s,classes:u1,classNames:r,styles:u,unstyled:f,attributes:N,vars:E,varsResolver:f1})("root"),variant:C,mod:[{grow:v},A],size:T,..._,children:j})});Nt.classes=u1;Nt.varsResolver=f1;Nt.displayName="@mantine/core/Group";const[RE,zl]=Nl("ModalBase component was not found in tree");function EE({opened:n,transitionDuration:l}){const[r,o]=x.useState(n),s=x.useRef(-1),u=vm()?0:l;return x.useEffect(()=>(n?(o(!0),window.clearTimeout(s.current)):u===0?o(!1):s.current=window.setTimeout(()=>o(!1),u),()=>window.clearTimeout(s.current)),[n,u]),r}function AE({id:n,transitionProps:l,opened:r,trapFocus:o,closeOnEscape:s,onClose:u,returnFocus:f}){const d=kn(n),[p,h]=x.useState(!1),[S,g]=x.useState(!1),v=EE({opened:r,transitionDuration:typeof(l==null?void 0:l.duration)=="number"?l==null?void 0:l.duration:200});return Xb("keydown",w=>{var E;w.key==="Escape"&&s&&!w.isComposing&&r&&((E=w.target)==null?void 0:E.getAttribute("data-mantine-stop-propagation"))!=="true"&&u()},{capture:!0}),Yb({opened:r,shouldReturnFocus:o&&f}),{_id:d,titleMounted:p,bodyMounted:S,shouldLockScroll:v,setTitleMounted:h,setBodyMounted:g}}var Jn=function(){return Jn=Object.assign||function(l){for(var r,o=1,s=arguments.length;o<s;o++){r=arguments[o];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(l[u]=r[u])}return l},Jn.apply(this,arguments)};function d1(n,l){var r={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&l.indexOf(o)<0&&(r[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(n);s<o.length;s++)l.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(n,o[s])&&(r[o[s]]=n[o[s]]);return r}function _E(n,l,r){if(r||arguments.length===2)for(var o=0,s=l.length,u;o<s;o++)(u||!(o in l))&&(u||(u=Array.prototype.slice.call(l,0,o)),u[o]=l[o]);return n.concat(u||Array.prototype.slice.call(l))}var Zs="right-scroll-bar-position",Qs="width-before-scroll-bar",NE="with-scroll-bars-hidden",ME="--removed-body-scroll-bar-size";function jd(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function OE(n,l){var r=x.useState(function(){return{value:n,callback:l,facade:{get current(){return r.value},set current(o){var s=r.value;s!==o&&(r.value=o,r.callback(o,s))}}}})[0];return r.callback=l,r.facade}var jE=typeof window<"u"?x.useLayoutEffect:x.useEffect,gb=new WeakMap;function zE(n,l){var r=OE(null,function(o){return n.forEach(function(s){return jd(s,o)})});return jE(function(){var o=gb.get(r);if(o){var s=new Set(o),u=new Set(n),f=r.current;s.forEach(function(d){u.has(d)||jd(d,null)}),u.forEach(function(d){s.has(d)||jd(d,f)})}gb.set(r,n)},[n]),r}function DE(n){return n}function $E(n,l){l===void 0&&(l=DE);var r=[],o=!1,s={read:function(){if(o)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]:n},useMedium:function(u){var f=l(u,o);return r.push(f),function(){r=r.filter(function(d){return d!==f})}},assignSyncMedium:function(u){for(o=!0;r.length;){var f=r;r=[],f.forEach(u)}r={push:function(d){return u(d)},filter:function(){return r}}},assignMedium:function(u){o=!0;var f=[];if(r.length){var d=r;r=[],d.forEach(u),f=r}var p=function(){var S=f;f=[],S.forEach(u)},h=function(){return Promise.resolve().then(p)};h(),r={push:function(S){f.push(S),h()},filter:function(S){return f=f.filter(S),r}}}};return s}function LE(n){n===void 0&&(n={});var l=$E(null);return l.options=Jn({async:!0,ssr:!1},n),l}var m1=function(n){var l=n.sideCar,r=d1(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=l.read();if(!o)throw new Error("Sidecar medium not found");return x.createElement(o,Jn({},r))};m1.isSideCarExport=!0;function BE(n,l){return n.useMedium(l),m1}var p1=LE(),zd=function(){},Cc=x.forwardRef(function(n,l){var r=x.useRef(null),o=x.useState({onScrollCapture:zd,onWheelCapture:zd,onTouchMoveCapture:zd}),s=o[0],u=o[1],f=n.forwardProps,d=n.children,p=n.className,h=n.removeScrollBar,S=n.enabled,g=n.shards,v=n.sideCar,w=n.noRelative,E=n.noIsolation,C=n.inert,T=n.allowPinchZoom,A=n.as,N=A===void 0?"div":A,_=n.gapMode,j=d1(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=v,k=zE([r,l]),D=Jn(Jn({},j),s);return x.createElement(x.Fragment,null,S&&x.createElement(L,{sideCar:p1,removeScrollBar:h,shards:g,noRelative:w,noIsolation:E,inert:C,setCallbacks:u,allowPinchZoom:!!T,lockRef:r,gapMode:_}),f?x.cloneElement(x.Children.only(d),Jn(Jn({},D),{ref:k})):x.createElement(N,Jn({},D,{className:p,ref:k}),d))});Cc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Cc.classNames={fullWidth:Qs,zeroRight:Zs};var kE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function UE(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=kE();return l&&n.setAttribute("nonce",l),n}function HE(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function YE(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var qE=function(){var n=0,l=null;return{add:function(r){n==0&&(l=UE())&&(HE(l,r),YE(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},VE=function(){var n=qE();return function(l,r){x.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&r])}},h1=function(){var n=VE(),l=function(r){var o=r.styles,s=r.dynamic;return n(o,s),null};return l},GE={left:0,top:0,right:0,gap:0},Dd=function(n){return parseInt(n||"",10)||0},XE=function(n){var l=window.getComputedStyle(document.body),r=l[n==="padding"?"paddingLeft":"marginLeft"],o=l[n==="padding"?"paddingTop":"marginTop"],s=l[n==="padding"?"paddingRight":"marginRight"];return[Dd(r),Dd(o),Dd(s)]},IE=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return GE;var l=XE(n),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,o-r+l[2]-l[0])}},ZE=h1(),Go="data-scroll-locked",QE=function(n,l,r,o){var s=n.left,u=n.top,f=n.right,d=n.gap;return r===void 0&&(r="margin"),`
54
- .`.concat(NE,` {
53
+ ${f?`${m("light")}{${f}}`:""}`}function $s({theme:n,color:l,colorScheme:r,name:o=l,withColorValues:s=!0}){if(!n.colors[l])return{};if(r==="light"){const m=ni(n,"light"),p={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${m})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${m===9?8:m+1})`,[`--mantine-color-${o}-light`]:`var(--mantine-color-${o}-1)`,[`--mantine-color-${o}-light-hover`]:`var(--mantine-color-${o}-2)`,[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-9)`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${m})`,[`--mantine-color-${o}-outline-hover`]:Hy(n.colors[l][m],.05)};return s?{[`--mantine-color-${o}-0`]:n.colors[l][0],[`--mantine-color-${o}-1`]:n.colors[l][1],[`--mantine-color-${o}-2`]:n.colors[l][2],[`--mantine-color-${o}-3`]:n.colors[l][3],[`--mantine-color-${o}-4`]:n.colors[l][4],[`--mantine-color-${o}-5`]:n.colors[l][5],[`--mantine-color-${o}-6`]:n.colors[l][6],[`--mantine-color-${o}-7`]:n.colors[l][7],[`--mantine-color-${o}-8`]:n.colors[l][8],[`--mantine-color-${o}-9`]:n.colors[l][9],...p}:p}const u=ni(n,"dark"),f={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${u})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${u===9?8:u+1})`,[`--mantine-color-${o}-light`]:Ya(n.colors[l][9],.5),[`--mantine-color-${o}-light-hover`]:Ya(n.colors[l][9],.3),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-0)`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(u-4,0)})`,[`--mantine-color-${o}-outline-hover`]:Hy(n.colors[l][Math.max(u-4,0)],.05)};return s?{[`--mantine-color-${o}-0`]:n.colors[l][0],[`--mantine-color-${o}-1`]:n.colors[l][1],[`--mantine-color-${o}-2`]:n.colors[l][2],[`--mantine-color-${o}-3`]:n.colors[l][3],[`--mantine-color-${o}-4`]:n.colors[l][4],[`--mantine-color-${o}-5`]:n.colors[l][5],[`--mantine-color-${o}-6`]:n.colors[l][6],[`--mantine-color-${o}-7`]:n.colors[l][7],[`--mantine-color-${o}-8`]:n.colors[l][8],[`--mantine-color-${o}-9`]:n.colors[l][9],...f}:f}function Ha(n,l,r){Mt(l).forEach(o=>Object.assign(n,{[`--mantine-${r}-${o}`]:l[o]}))}const Pb=n=>{const l=ni(n,"light"),r=n.defaultRadius in n.radius?n.radius[n.defaultRadius]:K(n.defaultRadius),o={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":n.scale.toString(),"--mantine-cursor-type":n.cursorType,"--mantine-webkit-font-smoothing":n.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":n.fontSmoothing?"grayscale":"unset","--mantine-color-white":n.white,"--mantine-color-black":n.black,"--mantine-line-height":n.lineHeights.md,"--mantine-font-family":n.fontFamily,"--mantine-font-family-monospace":n.fontFamilyMonospace,"--mantine-font-family-headings":n.headings.fontFamily,"--mantine-heading-font-weight":n.headings.fontWeight,"--mantine-heading-text-wrap":n.headings.textWrap,"--mantine-radius-default":r,"--mantine-primary-color-filled":`var(--mantine-color-${n.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${n.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${n.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${n.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${n.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":Uy(n,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":n.black,"--mantine-color-body":n.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-success":"var(--mantine-color-teal-8)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${n.primaryColor}-${l})`,"--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)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":Uy(n,"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-success":"var(--mantine-color-teal-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${n.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)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};Ha(o.variables,n.breakpoints,"breakpoint"),Ha(o.variables,n.spacing,"spacing"),Ha(o.variables,n.fontSizes,"font-size"),Ha(o.variables,n.lineHeights,"line-height"),Ha(o.variables,n.shadows,"shadow"),Ha(o.variables,n.radius,"radius"),Ha(o.variables,n.fontWeights,"font-weight"),n.colors[n.primaryColor].forEach((u,f)=>{o.variables[`--mantine-primary-color-${f}`]=`var(--mantine-color-${n.primaryColor}-${f})`}),Mt(n.colors).forEach(u=>{const f=n.colors[u];if(bm(f)){Object.assign(o.light,$s({theme:n,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,$s({theme:n,name:f.name,color:f.dark,colorScheme:"dark",withColorValues:!0})),o.light[`--mantine-color-${f.name}-contrast`]=Id(f,n,"light"),o.dark[`--mantine-color-${f.name}-contrast`]=Id(f,n,"dark");return}f.forEach((m,p)=>{o.variables[`--mantine-color-${u}-${p}`]=m}),Object.assign(o.light,$s({theme:n,color:u,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,$s({theme:n,color:u,colorScheme:"dark",withColorValues:!1}))});const s=n.headings.sizes;return Mt(s).forEach(u=>{o.variables[`--mantine-${u}-font-size`]=s[u].fontSize,o.variables[`--mantine-${u}-line-height`]=s[u].lineHeight,o.variables[`--mantine-${u}-font-weight`]=s[u].fontWeight||n.headings.fontWeight}),o};function xC(){const n=cn(),l=cc(),r=Mt(n.breakpoints).reduce((o,s)=>{const u=n.breakpoints[s].includes("px"),f=Ud(n.breakpoints[s]);return`${o}@media (max-width: ${u?`${f-.1}px`:Fs(f-.1)}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${u?`${f}px`:Fs(f)}) {.mantine-hidden-from-${s} {display: none !important;}}`},"");return y.jsx("style",{"data-mantine-styles":"classes",nonce:l==null?void 0:l(),dangerouslySetInnerHTML:{__html:r}})}function wC({theme:n,generator:l}){const r=Pb(n),o=l==null?void 0:l(n);return o?sm(r,o):r}const wd=Pb(Cm);function CC(n){const l={variables:{},light:{},dark:{}};return Mt(n.variables).forEach(r=>{wd.variables[r]!==n.variables[r]&&(l.variables[r]=n.variables[r])}),Mt(n.light).forEach(r=>{wd.light[r]!==n.light[r]&&(l.light[r]=n.light[r])}),Mt(n.dark).forEach(r=>{wd.dark[r]!==n.dark[r]&&(l.dark[r]=n.dark[r])}),l}function TC(n){return Jb({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},n)}function Wb({cssVariablesSelector:n,deduplicateCssVariables:l}){const r=cn(),o=cc(),s=wC({theme:r,generator:cC()}),u=(n===void 0||n===":root"||n===":host")&&l,f=Jb(u?CC(s):s,n);return f?y.jsx("style",{"data-mantine-styles":!0,nonce:o==null?void 0:o(),dangerouslySetInnerHTML:{__html:`${f}${u?"":TC(n)}`}}):null}Wb.displayName="@mantine/CssVariables";function RC({respectReducedMotion:n,getRootElement:l}){el(()=>{var r;n&&((r=l())==null||r.setAttribute("data-respect-reduced-motion","true"))},[n])}function e0({theme:n,children:l,getStyleNonce:r,withStaticClasses:o=!0,withGlobalClasses:s=!0,deduplicateCssVariables:u=!0,withCssVariables:f=!0,cssVariablesSelector:m,classNamesPrefix:p="mantine",colorSchemeManager:h=tC(),defaultColorScheme:S="light",getRootElement:g=()=>document.documentElement,cssVariablesResolver:v,forceColorScheme:w,stylesTransform:E,env:C,deduplicateInlineStyles:T=!1}){const{colorScheme:A,setColorScheme:N,clearColorScheme:_}=vC({defaultColorScheme:S,forceColorScheme:w,manager:h,getRootElement:g});return RC({respectReducedMotion:(n==null?void 0:n.respectReducedMotion)||!1,getRootElement:g}),y.jsx(xm,{value:{colorScheme:A,setColorScheme:N,clearColorScheme:_,getRootElement:g,classNamesPrefix:p,getStyleNonce:r,cssVariablesResolver:v,cssVariablesSelector:m??":root",withStaticClasses:o,stylesTransform:E,env:C,deduplicateInlineStyles:T},children:y.jsxs(Fb,{theme:n,children:[f&&y.jsx(Wb,{cssVariablesSelector:m,deduplicateCssVariables:u}),s&&y.jsx(xC,{}),l]})})}e0.displayName="@mantine/core/MantineProvider";function ue(n,l,r){var f;const o=cn(),s=(Array.isArray(n)?n:[n]).filter(Boolean);let u={};for(const m of s){const p=(f=o.components[m])==null?void 0:f.defaultProps,h=typeof p=="function"?p(o):p;h&&(u={...u,...h})}return{...l,...u,...cm(r)}}function uc({classNames:n,styles:l,props:r,stylesCtx:o}){const s=cn();return{resolvedClassNames:n===void 0?void 0:ti({theme:s,classNames:n,props:r,stylesCtx:o||void 0}),resolvedStyles:l===void 0?void 0:Ps({theme:s,styles:l,props:r,stylesCtx:o||void 0})}}const EC={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function AC({theme:n,options:l,unstyled:r}){return gt((l==null?void 0:l.focusable)&&!r&&(n.focusClassName||EC[n.focusRing]),(l==null?void 0:l.active)&&!r&&n.activeClassName)}function _C({selector:n,stylesCtx:l,options:r,props:o,theme:s}){return ti({theme:s,classNames:r==null?void 0:r.classNames,props:(r==null?void 0:r.props)||o,stylesCtx:l})[n]}function NC({selector:n,stylesCtx:l,theme:r,classNames:o,props:s}){return ti({theme:r,classNames:o,props:s,stylesCtx:l})[n]}function MC({rootSelector:n,selector:l,className:r}){return n===l?r:void 0}function OC({selector:n,classes:l,unstyled:r}){return r?void 0:l[n]}function jC({themeName:n,classNamesPrefix:l,selector:r,withStaticClass:o}){return o===!1?[]:n.map(s=>`${l}-${s}-${r}`)}function zC({options:n,classes:l,selector:r,unstyled:o}){return n!=null&&n.variant&&!o?l[`${r}--${n.variant}`]:void 0}function DC({theme:n,options:l,themeName:r,selector:o,classNamesPrefix:s,resolvedClassNames:u,resolvedThemeClassNames:f,classes:m,unstyled:p,className:h,rootSelector:S,props:g,stylesCtx:v,withStaticClasses:w,headless:E,transformedStyles:C}){return gt(AC({theme:n,options:l,unstyled:p||E}),f.map(T=>T[o]),zC({options:l,classes:m,selector:o,unstyled:p||E}),u[o],NC({selector:o,stylesCtx:v,theme:n,classNames:C,props:g}),_C({selector:o,stylesCtx:v,options:l,props:g,theme:n}),MC({rootSelector:S,selector:o,className:h}),OC({selector:o,classes:m,unstyled:p||E}),w&&!E&&jC({themeName:r,classNamesPrefix:s,selector:o,withStaticClass:l==null?void 0:l.withStaticClass}),l==null?void 0:l.className)}function Rm({style:n,theme:l}){return Array.isArray(n)?n.reduce((r,o)=>({...r,...Rm({style:o,theme:l})}),{}):typeof n=="function"?n(l):n??{}}function $C({theme:n,selector:l,options:r,props:o,stylesCtx:s,rootSelector:u,withStylesTransform:f,resolvedStyles:m,resolvedThemeStyles:p,resolvedVars:h,resolvedRootStyle:S}){return{...p[l],...m[l],...!f&&Ps({theme:n,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||o,stylesCtx:s})[l],...h[l],...u===l?S:null,...Rm({style:r==null?void 0:r.style,theme:n})}}function LC(n){return n.reduce((l,r)=>(r&&Object.keys(r).forEach(o=>{l[o]={...l[o],...cm(r[o])}}),l),{})}function BC({props:n,stylesCtx:l,themeName:r,theme:o}){var f;const s=(f=pC())==null?void 0:f();return{getTransformedStyles:m=>s?[...m.map(p=>s(p,{props:n,theme:o,ctx:l})),...r.map(p=>{var h;return s((h=o.components[p])==null?void 0:h.styles,{props:n,theme:o,ctx:l})})].filter(Boolean):[],withStylesTransform:!!s}}function je({name:n,classes:l,props:r,stylesCtx:o,className:s,style:u,rootSelector:f="root",unstyled:m,classNames:p,styles:h,vars:S,varsResolver:g,attributes:v}){var le;const w=cn(),E=uC(),C=fC(),T=dC(),A=(Array.isArray(n)?n:[n]).filter(oe=>oe),{withStylesTransform:N,getTransformedStyles:_}=BC({props:r,stylesCtx:o,themeName:A,theme:w}),j=ti({theme:w,classNames:p,props:r,stylesCtx:o}),L=A.map(oe=>{var ee;return ti({theme:w,classNames:(ee=w.components[oe])==null?void 0:ee.classNames,props:r,stylesCtx:o})}),k=N?{}:Ps({theme:w,styles:h,props:r,stylesCtx:o}),D={};if(!N)for(const oe of A){const ee=Ps({theme:w,styles:(le=w.components[oe])==null?void 0:le.styles,props:r,stylesCtx:o});for(const F of Object.keys(ee))D[F]={...D[F],...ee[F]}}const H=LC([T?{}:g==null?void 0:g(w,r,o),...A.map(oe=>{var ee,F,V;return(V=(F=(ee=w.components)==null?void 0:ee[oe])==null?void 0:F.vars)==null?void 0:V.call(F,w,r,o)}),S==null?void 0:S(w,r,o)]),te=Rm({style:u,theme:w});return(oe,ee)=>({...v==null?void 0:v[oe],className:DC({theme:w,options:ee,themeName:A,selector:oe,classNamesPrefix:E,resolvedClassNames:j,resolvedThemeClassNames:L,classes:l,unstyled:m,className:s,rootSelector:f,props:r,stylesCtx:o,withStaticClasses:C,headless:T,transformedStyles:_([ee==null?void 0:ee.styles,h])}),style:$C({theme:w,selector:oe,options:ee,props:r,stylesCtx:o,rootSelector:f,withStylesTransform:N,resolvedStyles:k,resolvedThemeStyles:D,resolvedVars:H,resolvedRootStyle:te})})}function Wr(n){return Mt(n).reduce((l,r)=>n[r]!==void 0?`${l}${x2(r)}:${n[r]};`:l,"").trim()}function kC({selector:n,styles:l,media:r,container:o}){const s=l?Wr(l):"",u=Array.isArray(r)?r.map(m=>`@media${m.query}{${n}{${Wr(m.styles)}}}`):[],f=Array.isArray(o)?o.map(m=>`@container ${m.query}{${n}{${Wr(m.styles)}}}`):[];return`${s?`${n}{${s}}`:""}${u.join("")}${f.join("")}`.trim()}function HC(n){let l=5381;for(let r=0;r<n.length;r++)l=(l<<5)+l+n.charCodeAt(r)&4294967295;return(l>>>0).toString(36)}function t0({deduplicate:n,...l}){const r=cc(),o=kC(l);return n?y.jsx("style",{href:`mantine-${HC(o)}`,precedence:"mantine",nonce:r==null?void 0:r(),children:o}):y.jsx("style",{"data-mantine-styles":"inline",nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:o}})}function UC(n){let l=5381;for(let r=0;r<n.length;r++)l=(l<<5)+l+n.charCodeAt(r)&4294967295;return(l>>>0).toString(36)}function YC(n,l){return`__mdi__-${UC(`${n?Wr(n):""}|${Array.isArray(l)?l.map(r=>`${r.query}:${Wr(r.styles)}`).join("|"):""}`)}`}function Em(n){const{m:l,mx:r,my:o,mt:s,mb:u,ml:f,mr:m,me:p,ms:h,mis:S,mie:g,p:v,px:w,py:E,pt:C,pb:T,pl:A,pr:N,pe:_,ps:j,pis:L,pie:k,bd:D,bdrs:H,bg:te,c:le,opacity:oe,ff:ee,fz:F,fw:V,lts:ce,ta:O,lh:B,fs:U,tt:Z,td:P,w:M,miw:Y,maw:J,h:ae,mih:se,mah:de,bgsz:ge,bgp:pe,bgr:he,bga:Me,pos:Se,top:Ce,left:ie,bottom:ye,right:Ne,inset:Te,display:Ve,flex:ut,hiddenFrom:jt,visibleFrom:fn,lightHidden:dn,darkHidden:zt,sx:Pt,...ze}=n;return{styleProps:cm({m:l,mx:r,my:o,mt:s,mb:u,ml:f,mr:m,me:p,ms:h,mis:S,mie:g,p:v,px:w,py:E,pt:C,pb:T,pl:A,pr:N,pis:L,pie:k,pe:_,ps:j,bd:D,bg:te,c:le,opacity:oe,ff:ee,fz:F,fw:V,lts:ce,ta:O,lh:B,fs:U,tt:Z,td:P,w:M,miw:Y,maw:J,h:ae,mih:se,mah:de,bgsz:ge,bgp:pe,bgr:he,bga:Me,pos:Se,top:Ce,left:ie,bottom:ye,right:Ne,inset:Te,display:Ve,flex:ut,bdrs:H,hiddenFrom:jt,visibleFrom:fn,lightHidden:dn,darkHidden:zt,sx:Pt}),rest:ze}}const qC={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"},mis:{type:"spacing",property:"marginInlineStart"},mie:{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"},pis:{type:"spacing",property:"paddingInlineStart"},pie:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},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 Am(n,l){const r=ya({color:n,theme:l});return r.color==="dimmed"?"var(--mantine-color-dimmed)":r.color==="bright"?"var(--mantine-color-bright)":r.variable?`var(${r.variable})`:r.color}function VC(n,l){const r=ya({color:n,theme:l});return r.isThemeColor&&r.shade===void 0?`var(--mantine-color-${r.color}-text)`:Am(n,l)}function GC(n,l){if(typeof n=="number")return K(n);if(typeof n=="string"){const[r,o,...s]=n.split(" ").filter(f=>f.trim()!=="");let u=`${K(r)}`;return o&&(u+=` ${o}`),s.length>0&&(u+=` ${Am(s.join(" "),l)}`),u.trim()}return n}const Xy={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 XC(n){return typeof n=="string"&&n in Xy?Xy[n]:n}const IC=["h1","h2","h3","h4","h5","h6"];function ZC(n,l){return typeof n=="string"&&n in l.fontSizes?`var(--mantine-font-size-${n})`:typeof n=="string"&&IC.includes(n)?`var(--mantine-${n}-font-size)`:typeof n=="number"||typeof n=="string"?K(n):n}function QC(n){return n}const KC=["h1","h2","h3","h4","h5","h6"];function FC(n,l){return typeof n=="string"&&n in l.lineHeights?`var(--mantine-line-height-${n})`:typeof n=="string"&&KC.includes(n)?`var(--mantine-${n}-line-height)`:n}function JC(n,l){return typeof n=="string"&&n in l.radius?`var(--mantine-radius-${n})`:typeof n=="number"||typeof n=="string"?K(n):n}function PC(n){return typeof n=="number"?K(n):n}function WC(n,l){if(typeof n=="number")return K(n);if(typeof n=="string"){const r=n.replace("-","");if(!(r in l.spacing))return K(n);const o=`--mantine-spacing-${r}`;return n.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return n}const Cd={color:Am,textColor:VC,fontSize:ZC,spacing:WC,radius:JC,identity:QC,size:PC,lineHeight:FC,fontFamily:XC,border:GC};function Iy(n){return n.replace("(min-width: ","").replace("em)","")}function eT({media:n,...l}){const r=Object.keys(n).sort((o,s)=>Number(Iy(o))-Number(Iy(s))).map(o=>({query:o,styles:n[o]}));return{...l,media:r}}function tT(n){if(typeof n!="object"||n===null)return!1;const l=Object.keys(n);return!(l.length===1&&l[0]==="base")}function nT(n){return typeof n=="object"&&n!==null?"base"in n?n.base:void 0:n}function lT(n){return typeof n=="object"&&n!==null?Mt(n).filter(l=>l!=="base"):[]}function aT(n,l){return typeof n=="object"&&n!==null&&l in n?n[l]:n}function oT({styleProps:n,data:l,theme:r}){return eT(Mt(n).reduce((o,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return o;const u=l[s],f=Array.isArray(u.property)?u.property:[u.property],m=nT(n[s]);if(!tT(n[s]))return f.forEach(h=>{o.inlineStyles[h]=Cd[u.type](m,r)}),o;o.hasResponsiveStyles=!0;const p=lT(n[s]);return f.forEach(h=>{m!=null&&(o.styles[h]=Cd[u.type](m,r)),p.forEach(S=>{const g=`(min-width: ${r.breakpoints[S]})`;o.media[g]={...o.media[g],[h]:Cd[u.type](aT(n[s],S),r)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function rT(){return`__m__-${x.useId().replace(/[:«»]/g,"")}`}function n0(n,l){return Array.isArray(n)?[...n].reduce((r,o)=>({...r,...n0(o,l)}),{}):typeof n=="function"?n(l):n??{}}function iT(n){return n}const sT=iT;function l0(n){return n}function me(n){const l=n;return l.extend=l0,l.withProps=r=>{const o=s=>y.jsx(l,{...r,...s});return o.extend=l.extend,o.displayName=`WithProps(${l.displayName})`,o},l}function a0(n){return me(n)}function Kt(n){const l=n;return l.withProps=r=>{const o=s=>y.jsx(l,{...r,...s});return o.extend=l.extend,o.displayName=`WithProps(${l.displayName})`,o},l.extend=l0,l}function o0(n){return`data-${(n.startsWith("data-")?n.slice(5):n).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`}function cT(n){return Object.keys(n).reduce((l,r)=>{const o=n[r];return o===void 0||o===""||o===!1||o===null||(l[o0(r)]=n[r]),l},{})}function r0(n){return n?typeof n=="string"?{[o0(n)]:!0}:Array.isArray(n)?[...n].reduce((l,r)=>({...l,...r0(r)}),{}):cT(n):null}function Zd(n,l){return Array.isArray(n)?[...n].reduce((r,o)=>({...r,...Zd(o,l)}),{}):typeof n=="function"?n(l):n??{}}function uT({theme:n,style:l,vars:r,styleProps:o}){const s=Zd(l,n),u=Zd(r,n);return{...s,...u,...o}}function i0({component:n,style:l,__vars:r,className:o,variant:s,mod:u,size:f,hiddenFrom:m,visibleFrom:p,lightHidden:h,darkHidden:S,renderRoot:g,__size:v,ref:w,...E}){var te,le;const C=cn(),T=n||"div",{styleProps:A,rest:N}=Em(E),_=(le=(te=mC())==null?void 0:te())==null?void 0:le(A.sx),j=rT(),L=oT({styleProps:A,theme:C,data:qC}),k=hC(),D=k&&L.hasResponsiveStyles?YC(L.styles,L.media):j,H={ref:w,style:uT({theme:C,style:l,vars:r,styleProps:L.inlineStyles}),className:gt(o,_,{[D]:L.hasResponsiveStyles,"mantine-light-hidden":h,"mantine-dark-hidden":S,[`mantine-hidden-from-${m}`]:m,[`mantine-visible-from-${p}`]:p}),"data-variant":s,"data-size":Hb(f)?void 0:f||void 0,size:v,...r0(u),...N};return y.jsxs(y.Fragment,{children:[L.hasResponsiveStyles&&y.jsx(t0,{selector:`.${D}`,styles:L.styles,media:L.media,deduplicate:k}),typeof g=="function"?g(H):y.jsx(T,{...H})]})}i0.displayName="@mantine/core/Box";const fe=sT(i0),fT=x.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function ol(){return x.use(fT)}const[dT,Rn]=Ml("ScrollArea.Root component was not found in tree");function va(n,l){const r=x.useEffectEvent(l);el(()=>{let o=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(o),s.unobserve(n)}}},[n])}function mT(n){const{style:l,...r}=n,o=Rn(),[s,u]=x.useState(0),[f,m]=x.useState(0),p=!!(s&&f);return va(o.scrollbarX,()=>{var S;const h=((S=o.scrollbarX)==null?void 0:S.offsetHeight)||0;o.onCornerHeightChange(h),m(h)}),va(o.scrollbarY,()=>{var S;const h=((S=o.scrollbarY)==null?void 0:S.offsetWidth)||0;o.onCornerWidthChange(h),u(h)}),p?y.jsx("div",{...r,style:{...l,width:s,height:f}}):null}function pT(n){const l=Rn(),r=!!(l.scrollbarX&&l.scrollbarY);return l.type!=="scroll"&&r?y.jsx(mT,{...n}):null}const hT={scrollHideDelay:1e3,type:"hover"};function s0(n){const{type:l,scrollHideDelay:r,scrollbars:o,getStyles:s,ref:u,...f}=ue("ScrollAreaRoot",hT,n),[m,p]=x.useState(null),[h,S]=x.useState(null),[g,v]=x.useState(null),[w,E]=x.useState(null),[C,T]=x.useState(null),[A,N]=x.useState(0),[_,j]=x.useState(0),[L,k]=x.useState(!1),[D,H]=x.useState(!1),te=it(u,p);return y.jsx(dT,{value:{type:l,scrollHideDelay:r,scrollArea:m,viewport:h,onViewportChange:S,content:g,onContentChange:v,scrollbarX:w,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:k,scrollbarY:C,onScrollbarYChange:T,scrollbarYEnabled:D,onScrollbarYEnabledChange:H,onCornerWidthChange:N,onCornerHeightChange:j,getStyles:s},children:y.jsx(fe,{...f,ref:te,__vars:{"--sa-corner-width":o!=="xy"?"0px":`${A}px`,"--sa-corner-height":o!=="xy"?"0px":`${_}px`}})})}s0.displayName="@mantine/core/ScrollAreaRoot";function c0(n,l){const r=n/l;return Number.isNaN(r)?0:r}function fc(n){const l=c0(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,o=(n.scrollbar.size-r)*l;return Math.max(o,18)}function u0(n,l){return r=>{if(n[0]===n[1]||l[0]===l[1])return l[0];const o=(l[1]-l[0])/(n[1]-n[0]);return l[0]+o*(r-n[0])}}function vT(n,[l,r]){return Math.min(r,Math.max(l,n))}function Zy(n,l,r="ltr"){const o=fc(l),s=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,u=l.scrollbar.size-s,f=l.content-l.viewport,m=u-o,p=vT(n,r==="ltr"?[0,f]:[f*-1,0]);return u0([0,f],[0,m])(p)}function gT(n,l,r,o="ltr"){const s=fc(r),u=s/2,f=l||u,m=s-f,p=r.scrollbar.paddingStart+f,h=r.scrollbar.size-r.scrollbar.paddingEnd-m,S=r.content-r.viewport,g=o==="ltr"?[0,S]:[S*-1,0];return u0([p,h],g)(n)}function f0(n,l){return n>0&&n<l}function da(n){return n?parseInt(n,10):0}function Va(n,l,{checkForDefaultPrevented:r=!0}={}){return o=>{n==null||n(o),(r===!1||!o.defaultPrevented)&&(l==null||l(o))}}const[yT,d0]=Ml("ScrollAreaScrollbar was not found in tree");function m0(n){const{sizes:l,hasThumb:r,onThumbChange:o,onThumbPointerUp:s,onThumbPointerDown:u,onThumbPositionChange:f,onDragScroll:m,onWheelScroll:p,onResize:h,ref:S,...g}=n,v=Rn(),[w,E]=x.useState(null),C=it(S,E),T=x.useRef(null),A=x.useRef(""),{viewport:N}=v,_=l.content-l.viewport,j=x.useEffectEvent(p),L=qo(f),k=ic(h,10),D=H=>{if(T.current){const te=H.clientX-T.current.left,le=H.clientY-T.current.top;m({x:te,y:le})}};return x.useEffect(()=>{const H=te=>{const le=te.target;w!=null&&w.contains(le)&&j(te,_)};return document.addEventListener("wheel",H,{passive:!1}),()=>document.removeEventListener("wheel",H,{passive:!1})},[N,w,_]),x.useEffect(L,[l,L]),va(w,k),va(v.content,k),y.jsx(yT,{value:{scrollbar:w,hasThumb:r,onThumbChange:qo(o),onThumbPointerUp:qo(s),onThumbPositionChange:L,onThumbPointerDown:qo(u)},children:y.jsx("div",{...g,ref:C,"data-mantine-scrollbar":!0,style:{position:"absolute",...g.style},onPointerDown:Va(n.onPointerDown,H=>{H.preventDefault(),H.button===0&&(H.target.setPointerCapture(H.pointerId),T.current=w.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",D(H))}),onPointerMove:Va(n.onPointerMove,D),onPointerUp:Va(n.onPointerUp,H=>{const te=H.target;te.hasPointerCapture(H.pointerId)&&(H.preventDefault(),te.releasePointerCapture(H.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=A.current,T.current=null}})})}const p0=n=>{const{sizes:l,onSizesChange:r,style:o,ref:s,...u}=n,f=Rn(),[m,p]=x.useState(),h=x.useRef(null),S=it(s,h,f.onScrollbarXChange);return x.useEffect(()=>{h.current&&p(getComputedStyle(h.current))},[h]),y.jsx(m0,{"data-orientation":"horizontal",...u,ref:S,sizes:l,style:{...o,"--sa-thumb-width":`${fc(l)}px`},onThumbPointerDown:g=>n.onThumbPointerDown(g.x),onDragScroll:g=>n.onDragScroll(g.x),onWheelScroll:(g,v)=>{if(f.viewport){const w=f.viewport.scrollLeft+g.deltaX;n.onWheelScroll(w),f0(w,v)&&g.preventDefault()}},onResize:()=>{h.current&&f.viewport&&m&&r({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:da(m.paddingLeft),paddingEnd:da(m.paddingRight)}})}})};p0.displayName="@mantine/core/ScrollAreaScrollbarX";function h0(n){const{sizes:l,onSizesChange:r,style:o,ref:s,...u}=n,f=Rn(),[m,p]=x.useState(),h=x.useRef(null),S=it(s,h,f.onScrollbarYChange);return x.useEffect(()=>{h.current&&p(window.getComputedStyle(h.current))},[]),y.jsx(m0,{...u,"data-orientation":"vertical",ref:S,sizes:l,style:{"--sa-thumb-height":`${fc(l)}px`,...o},onThumbPointerDown:g=>n.onThumbPointerDown(g.y),onDragScroll:g=>n.onDragScroll(g.y),onWheelScroll:(g,v)=>{if(f.viewport){const w=f.viewport.scrollTop+g.deltaY;n.onWheelScroll(w),f0(w,v)&&g.preventDefault()}},onResize:()=>{h.current&&f.viewport&&m&&r({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:da(m.paddingTop),paddingEnd:da(m.paddingBottom)}})}})}h0.displayName="@mantine/core/ScrollAreaScrollbarY";function dc(n){const{orientation:l="vertical",...r}=n,{dir:o}=ol(),s=Rn(),u=x.useRef(null),f=x.useRef(0),[m,p]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=c0(m.viewport,m.content),S={...r,sizes:m,onSizesChange:p,hasThumb:h>0&&h<1,onThumbChange:v=>{u.current=v},onThumbPointerUp:()=>{f.current=0},onThumbPointerDown:v=>{f.current=v}},g=(v,w)=>gT(v,f.current,m,w);return l==="horizontal"?y.jsx(p0,{...S,onThumbPositionChange:()=>{if(s.viewport&&u.current){const v=s.viewport.scrollLeft,w=Zy(v,m,o);u.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollLeft=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollLeft=g(v,o))}}):l==="vertical"?y.jsx(h0,{...S,onThumbPositionChange:()=>{if(s.viewport&&u.current){const v=s.viewport.scrollTop,w=Zy(v,m);m.scrollbar.size===0?u.current.style.setProperty("--thumb-opacity","0"):u.current.style.setProperty("--thumb-opacity","1"),u.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollTop=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollTop=g(v))}}):null}dc.displayName="@mantine/core/ScrollAreaScrollbarVisible";function _m(n){const l=Rn(),{forceMount:r,...o}=n,[s,u]=x.useState(!1),f=n.orientation==="horizontal",m=ic(()=>{if(l.viewport){const p=l.viewport.offsetWidth<l.viewport.scrollWidth,h=l.viewport.offsetHeight<l.viewport.scrollHeight;u(f?p:h)}},10);return va(l.viewport,m),va(l.content,m),r||s?y.jsx(dc,{"data-state":s?"visible":"hidden",...o}):null}_m.displayName="@mantine/core/ScrollAreaScrollbarAuto";function v0(n){const{forceMount:l,...r}=n,o=Rn(),[s,u]=x.useState(!1);return x.useEffect(()=>{const{scrollArea:f}=o;let m=0;if(f){const p=()=>{window.clearTimeout(m),u(!0)},h=()=>{m=window.setTimeout(()=>u(!1),o.scrollHideDelay)};return f.addEventListener("pointerenter",p),f.addEventListener("pointerleave",h),()=>{window.clearTimeout(m),f.removeEventListener("pointerenter",p),f.removeEventListener("pointerleave",h)}}},[o.scrollArea,o.scrollHideDelay]),l||s?y.jsx(_m,{"data-state":s?"visible":"hidden",...r}):null}v0.displayName="@mantine/core/ScrollAreaScrollbarHover";function bT(n){const{forceMount:l,...r}=n,o=Rn(),s=n.orientation==="horizontal",[u,f]=x.useState("hidden"),m=ic(()=>f("idle"),100);return x.useEffect(()=>{if(u==="idle"){const p=window.setTimeout(()=>f("hidden"),o.scrollHideDelay);return()=>window.clearTimeout(p)}},[u,o.scrollHideDelay]),x.useEffect(()=>{const{viewport:p}=o,h=s?"scrollLeft":"scrollTop";if(p){let S=p[h];const g=()=>{const v=p[h];S!==v&&(f("scrolling"),m()),S=v};return p.addEventListener("scroll",g),()=>p.removeEventListener("scroll",g)}},[o.viewport,s,m]),l||u!=="hidden"?y.jsx(dc,{"data-state":u==="hidden"?"hidden":"visible",...r,onPointerEnter:Va(n.onPointerEnter,()=>f("interacting")),onPointerLeave:Va(n.onPointerLeave,()=>f("idle"))}):null}function Qd(n){const{forceMount:l,...r}=n,o=Rn(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:u}=o,f=n.orientation==="horizontal";return x.useEffect(()=>(f?s(!0):u(!0),()=>{f?s(!1):u(!1)}),[f,s,u]),o.type==="hover"?y.jsx(v0,{...r,forceMount:l}):o.type==="scroll"?y.jsx(bT,{...r,forceMount:l}):o.type==="auto"?y.jsx(_m,{...r,forceMount:l}):o.type==="always"?y.jsx(dc,{...r}):null}Qd.displayName="@mantine/core/ScrollAreaScrollbar";function ST(n,l=()=>{}){let r={left:n.scrollLeft,top:n.scrollTop},o=0;return(function s(){const u={left:n.scrollLeft,top:n.scrollTop},f=r.left!==u.left,m=r.top!==u.top;(f||m)&&l(),r=u,o=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(o)}function g0(n){const{style:l,ref:r,...o}=n,s=Rn(),u=d0(),{onThumbPositionChange:f}=u,m=it(r,u.onThumbChange),p=x.useRef(void 0),h=ic(()=>{p.current&&(p.current(),p.current=void 0)},100);return x.useEffect(()=>{const{viewport:S}=s;if(S){const g=()=>{if(h(),!p.current){const v=ST(S,f);p.current=v,f()}};return f(),S.addEventListener("scroll",g),()=>S.removeEventListener("scroll",g)}},[s.viewport,h,f]),y.jsx("div",{"data-state":u.hasThumb?"visible":"hidden",...o,ref:m,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...l},onPointerDownCapture:Va(n.onPointerDownCapture,S=>{const g=S.target.getBoundingClientRect(),v=S.clientX-g.left,w=S.clientY-g.top;u.onThumbPointerDown({x:v,y:w})}),onPointerUp:Va(n.onPointerUp,u.onThumbPointerUp)})}g0.displayName="@mantine/core/ScrollAreaThumb";function Kd(n){const{forceMount:l,...r}=n,o=d0();return l||o.hasThumb?y.jsx(g0,{...r}):null}Kd.displayName="@mantine/core/ScrollAreaThumb";function y0({children:n,style:l,ref:r,onWheel:o,...s}){const u=Rn(),f=it(r,u.onViewportChange),m=p=>{if(o==null||o(p),u.scrollbarXEnabled&&u.viewport&&p.shiftKey){const{scrollTop:h,scrollHeight:S,clientHeight:g,scrollWidth:v,clientWidth:w}=u.viewport,E=h<1,C=h>=S-g-1;v>w&&(E||C)&&p.stopPropagation()}};return y.jsx(fe,{...s,ref:f,onWheel:m,"data-scrollarea-viewport":!0,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...l},children:y.jsx("div",{...u.getStyles("content"),ref:u.onContentChange,children:n})})}y0.displayName="@mantine/core/ScrollAreaViewport";var Nm={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};function mc(){return typeof window<"u"}function Qo(n){return b0(n)?(n.nodeName||"").toLowerCase():"#document"}function Bt(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function jl(n){var l;return(l=(b0(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function b0(n){return mc()?n instanceof Node||n instanceof Bt(n).Node:!1}function tt(n){return mc()?n instanceof Element||n instanceof Bt(n).Element:!1}function Hn(n){return mc()?n instanceof HTMLElement||n instanceof Bt(n).HTMLElement:!1}function Ws(n){return!mc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Bt(n).ShadowRoot}function pc(n){const{overflow:l,overflowX:r,overflowY:o,display:s}=zn(n);return/auto|scroll|overlay|hidden|clip/.test(l+o+r)&&s!=="inline"&&s!=="contents"}function xT(n){return/^(table|td|th)$/.test(Qo(n))}function hc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const wT=/transform|translate|scale|rotate|perspective|filter/,CT=/paint|layout|strict|content/,Ua=n=>!!n&&n!=="none";let Td;function Mm(n){const l=tt(n)?zn(n):n;return Ua(l.transform)||Ua(l.translate)||Ua(l.scale)||Ua(l.rotate)||Ua(l.perspective)||!vc()&&(Ua(l.backdropFilter)||Ua(l.filter))||wT.test(l.willChange||"")||CT.test(l.contain||"")}function TT(n){let l=ga(n);for(;Hn(l)&&!ma(l);){if(Mm(l))return l;if(hc(l))return null;l=ga(l)}return null}function vc(){return Td==null&&(Td=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Td}function ma(n){return/^(html|body|#document)$/.test(Qo(n))}function zn(n){return Bt(n).getComputedStyle(n)}function gc(n){return tt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function ga(n){if(Qo(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Ws(n)&&n.host||jl(n);return Ws(l)?l.host:l}function S0(n){const l=ga(n);return ma(l)?(n.ownerDocument||n).body:Hn(l)&&pc(l)?l:S0(l)}function El(n,l,r){var o;l===void 0&&(l=[]),r===void 0&&(r=!0);const s=S0(n),u=s===((o=n.ownerDocument)==null?void 0:o.body),f=Bt(s);if(u){const m=Fd(f);return l.concat(f,f.visualViewport||[],pc(s)?s:[],m&&r?El(m):[])}else return l.concat(s,El(s,[],r))}function Fd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const RT=["top","right","bottom","left"],Dn=Math.min,Cn=Math.max,ec=Math.round,Ls=Math.floor,Al=n=>({x:n,y:n}),ET={left:"right",right:"left",bottom:"top",top:"bottom"};function x0(n,l,r){return Cn(n,Dn(l,r))}function nl(n,l){return typeof n=="function"?n(l):n}function ll(n){return n.split("-")[0]}function Ko(n){return n.split("-")[1]}function Om(n){return n==="x"?"y":"x"}function jm(n){return n==="y"?"height":"width"}function On(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function zm(n){return Om(On(n))}function AT(n,l,r){r===void 0&&(r=!1);const o=Ko(n),s=zm(n),u=jm(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return l.reference[u]>l.floating[u]&&(f=tc(f)),[f,tc(f)]}function _T(n){const l=tc(n);return[Jd(n),l,Jd(l)]}function Jd(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Qy=["left","right"],Ky=["right","left"],NT=["top","bottom"],MT=["bottom","top"];function OT(n,l,r){switch(n){case"top":case"bottom":return r?l?Ky:Qy:l?Qy:Ky;case"left":case"right":return l?NT:MT;default:return[]}}function jT(n,l,r,o){const s=Ko(n);let u=OT(ll(n),r==="start",o);return s&&(u=u.map(f=>f+"-"+s),l&&(u=u.concat(u.map(Jd)))),u}function tc(n){const l=ll(n);return ET[l]+n.slice(l.length)}function zT(n){var l,r,o,s;return{top:(l=n.top)!=null?l:0,right:(r=n.right)!=null?r:0,bottom:(o=n.bottom)!=null?o:0,left:(s=n.left)!=null?s:0}}function Dm(n){return typeof n!="number"?zT(n):{top:n,right:n,bottom:n,left:n}}function pa(n){const{x:l,y:r,width:o,height:s}=n;return{width:o,height:s,top:r,left:l,right:l+o,bottom:r+s,x:l,y:r}}function DT(){const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform}function $T(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(l=>{let{brand:r,version:o}=l;return r+"/"+o}).join(" "):navigator.userAgent}function LT(){return/apple/i.test(navigator.vendor)}function BT(){return DT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function kT(){return $T().includes("jsdom/")}const Fy="data-floating-ui-focusable",HT="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Jy(n){let l=n.activeElement;for(;((r=l)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;l=l.shadowRoot.activeElement}return l}function li(n,l){if(!n||!l)return!1;const r=l.getRootNode==null?void 0:l.getRootNode();if(n.contains(l))return!0;if(r&&Ws(r)){let o=l;for(;o;){if(n===o)return!0;o=o.parentNode||o.host}}return!1}function Yo(n){return"composedPath"in n?n.composedPath()[0]:n.target}function Rd(n,l){if(l==null)return!1;if("composedPath"in n)return n.composedPath().includes(l);const r=n;return r.target!=null&&l.contains(r.target)}function UT(n){return n.matches("html,body")}function qa(n){return(n==null?void 0:n.ownerDocument)||document}function YT(n){return Hn(n)&&n.matches(HT)}function qT(n){if(!n||kT())return!0;try{return n.matches(":focus-visible")}catch{return!0}}function VT(n){return n?n.hasAttribute(Fy)?n:n.querySelector("["+Fy+"]")||n:null}function Xs(n,l,r){return r===void 0&&(r=!0),n.filter(s=>{var u;return s.parentId===l&&(!r||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...Xs(n,s.id,r)])}function GT(n){return"nativeEvent"in n}function Pd(n,l){const r=["mouse","pen"];return r.push("",void 0),r.includes(n)}var XT=typeof document<"u",IT=function(){},Wn=XT?x.useLayoutEffect:IT;const ZT={...Lb};function Bs(n){const l=x.useRef(n);return Wn(()=>{l.current=n}),l}const QT=ZT.useInsertionEffect,KT=QT||(n=>n());function Fn(n){const l=x.useRef(()=>{});return KT(()=>{l.current=n}),x.useCallback(function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return l.current==null?void 0:l.current(...o)},[])}function Py(n,l,r){let{reference:o,floating:s}=n;const u=On(l),f=zm(l),m=jm(f),p=ll(l),h=u==="y",S=o.x+o.width/2-s.width/2,g=o.y+o.height/2-s.height/2,v=o[m]/2-s[m]/2;let w;switch(p){case"top":w={x:S,y:o.y-s.height};break;case"bottom":w={x:S,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:g};break;case"left":w={x:o.x-s.width,y:g};break;default:w={x:o.x,y:o.y}}const E=Ko(l);return E&&(w[f]+=v*(E==="end"?1:-1)*(r&&h?-1:1)),w}async function FT(n,l){var r;l===void 0&&(l={});const{x:o,y:s,platform:u,rects:f,elements:m,strategy:p}=n,{boundary:h="clippingAncestors",rootBoundary:S="viewport",elementContext:g="floating",altBoundary:v=!1,padding:w=0}=nl(l,n),E=Dm(w),T=m[v?g==="floating"?"reference":"floating":g],A=pa(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(T)))==null||r?T:T.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(m.floating)),boundary:h,rootBoundary:S,strategy:p})),N=g==="floating"?{x:o,y:s,width:f.floating.width,height:f.floating.height}:f.reference,_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m.floating)),j=await(u.isElement==null?void 0:u.isElement(_))&&await(u.getScale==null?void 0:u.getScale(_))||{x:1,y:1},L=pa(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:N,offsetParent:_,strategy:p}):N);return{top:(A.top-L.top+E.top)/j.y,bottom:(L.bottom-A.bottom+E.bottom)/j.y,left:(A.left-L.left+E.left)/j.x,right:(L.right-A.right+E.right)/j.x}}const JT=50,PT=async(n,l,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:u=[],platform:f}=r,m=f.detectOverflow?f:{...f,detectOverflow:FT},p=await(f.isRTL==null?void 0:f.isRTL(l));let h=await f.getElementRects({reference:n,floating:l,strategy:s}),{x:S,y:g}=Py(h,o,p),v=o,w=0;const E={};for(let C=0;C<u.length;C++){const T=u[C];if(!T)continue;const{name:A,fn:N}=T,{x:_,y:j,data:L,reset:k}=await N({x:S,y:g,initialPlacement:o,placement:v,strategy:s,middlewareData:E,rects:h,platform:m,elements:{reference:n,floating:l}});S=_??S,g=j??g,E[A]={...E[A],...L},k&&w<JT&&(w++,typeof k=="object"&&(k.placement&&(v=k.placement),k.rects&&(h=k.rects===!0?await f.getElementRects({reference:n,floating:l,strategy:s}):k.rects),{x:S,y:g}=Py(h,v,p)),C=-1)}return{x:S,y:g,placement:v,strategy:s,middlewareData:E}},WT=n=>({name:"arrow",options:n,async fn(l){const{x:r,y:o,placement:s,rects:u,platform:f,elements:m,middlewareData:p}=l,{element:h,padding:S=0}=nl(n,l)||{};if(h==null)return{};const g=Dm(S),v={x:r,y:o},w=zm(s),E=jm(w),C=await f.getDimensions(h),T=w==="y",A=T?"top":"left",N=T?"bottom":"right",_=T?"clientHeight":"clientWidth",j=u.reference[E]+u.reference[w]-v[w]-u.floating[E],L=v[w]-u.reference[w],k=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h));let D=k?k[_]:0;(!D||!await(f.isElement==null?void 0:f.isElement(k)))&&(D=m.floating[_]||u.floating[E]);const H=j/2-L/2,te=D/2-C[E]/2-1,le=Dn(g[A],te),oe=Dn(g[N],te),ee=D-C[E]-oe,F=D/2-C[E]/2+H,V=x0(le,F,ee),ce=!p.arrow&&Ko(s)!=null&&F!==V&&u.reference[E]/2-(F<le?le:oe)-C[E]/2<0,O=ce?F<le?F-le:F-ee:0;return{[w]:v[w]+O,data:{[w]:V,centerOffset:F-V-O,...ce&&{alignmentOffset:O}},reset:ce}}}),eR=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var r,o;const{placement:s,middlewareData:u,rects:f,initialPlacement:m,platform:p,elements:h}=l,{mainAxis:S=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:C=!0,...T}=nl(n,l);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const A=ll(s),N=On(m),_=ll(m)===m,j=await(p.isRTL==null?void 0:p.isRTL(h.floating)),L=v||(_||!C?[tc(m)]:_T(m)),k=E!=="none";!v&&k&&L.push(...jT(m,C,E,j));const D=[m,...L],H=await p.detectOverflow(l,T),te=[];let le=((o=u.flip)==null?void 0:o.overflows)||[];if(S&&te.push(H[A]),g){const V=AT(s,f,j);te.push(H[V[0]],H[V[1]])}if(le=[...le,{placement:s,overflows:te}],!te.every(V=>V<=0)){var oe,ee;const V=(((oe=u.flip)==null?void 0:oe.index)||0)+1,ce=D[V];if(ce&&(!(g==="alignment"?N!==On(ce):!1)||le.every(U=>On(U.placement)===N?U.overflows[0]>0:!0)))return{data:{index:V,overflows:le},reset:{placement:ce}};let O=(ee=le.filter(B=>B.overflows[0]<=0).sort((B,U)=>B.overflows[1]-U.overflows[1])[0])==null?void 0:ee.placement;if(!O)switch(w){case"bestFit":{var F;const B=(F=le.filter(U=>{if(k){const Z=On(U.placement);return Z===N||Z==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Z=>Z>0).reduce((Z,P)=>Z+P,0)]).sort((U,Z)=>U[1]-Z[1])[0])==null?void 0:F[0];B&&(O=B);break}case"initialPlacement":O=m;break}if(s!==O)return{reset:{placement:O}}}return{}}}};function Wy(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function eb(n){return RT.some(l=>n[l]>=0)}const tR=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:r,platform:o}=l,{strategy:s="referenceHidden",...u}=nl(n,l);switch(s){case"referenceHidden":{const f=await o.detectOverflow(l,{...u,elementContext:"reference"}),m=Wy(f,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:eb(m)}}}case"escaped":{const f=await o.detectOverflow(l,{...u,altBoundary:!0}),m=Wy(f,r.floating);return{data:{escapedOffsets:m,escaped:eb(m)}}}default:return{}}}}};function w0(n){const l=Dn(...n.map(u=>u.left)),r=Dn(...n.map(u=>u.top)),o=Cn(...n.map(u=>u.right)),s=Cn(...n.map(u=>u.bottom));return{x:l,y:r,width:o-l,height:s-r}}function nR(n){const l=n.slice().sort((s,u)=>s.y-u.y),r=[];let o=null;for(let s=0;s<l.length;s++){const u=l[s];!o||u.y-o.y>o.height/2?r.push([u]):r[r.length-1].push(u),o=u}return r.map(s=>pa(w0(s)))}const lR=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(l){const{placement:r,elements:o,rects:s,platform:u,strategy:f}=l,{padding:m=2,x:p,y:h}=nl(n,l),S=Array.from(await(u.getClientRects==null?void 0:u.getClientRects(o.reference))||[]);if(!S.length)return{};const g=nR(S),v=pa(w0(S)),w=Dm(m);function E(){if(g.length===2&&(g[0].left>g[1].right||g[1].left>g[0].right)&&p!=null&&h!=null)return g.find(T=>p>T.left-w.left&&p<T.right+w.right&&h>T.top-w.top&&h<T.bottom+w.bottom)||v;if(g.length>=2){if(On(r)==="y"){const k=g[0],D=g[g.length-1],H=ll(r)==="top",te=k.top,le=D.bottom,oe=H?k.left:D.left,ee=H?k.right:D.right;return pa({x:oe,y:te,width:ee-oe,height:le-te})}const T=ll(r)==="left",A=Cn(...g.map(k=>k.right)),N=Dn(...g.map(k=>k.left)),_=g.filter(k=>T?k.left===N:k.right===A),j=_[0].top,L=_[_.length-1].bottom;return pa({x:N,y:j,width:A-N,height:L-j})}return v}const C=await u.getElementRects({reference:{getBoundingClientRect:E},floating:o.floating,strategy:f});return s.reference.x!==C.reference.x||s.reference.y!==C.reference.y||s.reference.width!==C.reference.width||s.reference.height!==C.reference.height?{reset:{rects:C}}:{}}}},C0=new Set(["left","top"]);async function aR(n,l){const{placement:r,platform:o,elements:s}=n,u=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=ll(r),m=Ko(r),p=On(r)==="y",h=C0.has(f)?-1:1,S=u&&p?-1:1,g=nl(l,n);let{mainAxis:v,crossAxis:w,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return m&&typeof E=="number"&&(w=m==="end"?E*-1:E),p?{x:w*S,y:v*h}:{x:v*h,y:w*S}}const oR=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var r,o;const{x:s,y:u,placement:f,middlewareData:m}=l,p=await aR(l,n);return f===((r=m.offset)==null?void 0:r.placement)&&(o=m.arrow)!=null&&o.alignmentOffset?{}:{x:s+p.x,y:u+p.y,data:{...p,placement:f}}}}},rR=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:r,y:o,placement:s,platform:u}=l,{mainAxis:f=!0,crossAxis:m=!1,limiter:p={fn:N=>{let{x:_,y:j}=N;return{x:_,y:j}}},...h}=nl(n,l),S={x:r,y:o},g=await u.detectOverflow(l,h),v=On(s),w=Om(v);let E=S[w],C=S[v];const T=(N,_)=>x0(_+g[N==="y"?"top":"left"],_,_-g[N==="y"?"bottom":"right"]);f&&(E=T(w,E)),m&&(C=T(v,C));const A=p.fn({...l,[w]:E,[v]:C});return{...A,data:{x:A.x-r,y:A.y-o,enabled:{[w]:f,[v]:m}}}}}},iR=function(n){return n===void 0&&(n={}),{options:n,fn(l){var r,o;const{x:s,y:u,placement:f,rects:m,middlewareData:p}=l,{offset:h=0,mainAxis:S=!0,crossAxis:g=!0}=nl(n,l),v={x:s,y:u},w=On(f),E=Om(w);let C=v[E],T=v[w];const A=nl(h,l),N=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:(r=A.mainAxis)!=null?r:0,crossAxis:(o=A.crossAxis)!=null?o:0};if(S){const L=E==="y"?"height":"width",k=m.reference[E]-m.floating[L]+N.mainAxis,D=m.reference[E]+m.reference[L]-N.mainAxis;C<k?C=k:C>D&&(C=D)}if(g){var _,j;const L=E==="y"?"width":"height",k=C0.has(ll(f)),D=m.reference[w]-m.floating[L]+(k&&((_=p.offset)==null?void 0:_[w])||0)+(k?0:N.crossAxis),H=m.reference[w]+m.reference[L]+(k?0:((j=p.offset)==null?void 0:j[w])||0)-(k?N.crossAxis:0);T<D?T=D:T>H&&(T=H)}return{[E]:C,[w]:T}}}},sR=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){const{placement:r,rects:o,platform:s,elements:u}=l,{apply:f=()=>{},...m}=nl(n,l),p=await s.detectOverflow(l,m),h=ll(r),S=Ko(r),g=On(r)==="y",{width:v,height:w}=o.floating;let E,C;h==="top"||h==="bottom"?(E=h,C=S===(await(s.isRTL==null?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(C=h,E=S==="end"?"top":"bottom");const T=w-p.top-p.bottom,A=v-p.left-p.right,N=Dn(w-p[E],T),_=Dn(v-p[C],A),j=l.middlewareData.shift,L=!j;let k=N,D=_;j!=null&&j.enabled.x&&(D=A),j!=null&&j.enabled.y&&(k=T),L&&!S&&(g?D=v-2*Cn(p.left,p.right):k=w-2*Cn(p.top,p.bottom)),await f({...l,availableWidth:D,availableHeight:k});const H=await s.getDimensions(u.floating);return v!==H.width||w!==H.height?{reset:{rects:!0}}:{}}}};function T0(n){const l=zn(n);let r=parseFloat(l.width)||0,o=parseFloat(l.height)||0;const s=Hn(n),u=s?n.offsetWidth:r,f=s?n.offsetHeight:o,m=ec(r)!==u||ec(o)!==f;return m&&(r=u,o=f),{width:r,height:o,$:m}}function $m(n){return tt(n)?n:n.contextElement}function Go(n){const l=$m(n);if(!Hn(l))return Al(1);const r=l.getBoundingClientRect(),{width:o,height:s,$:u}=T0(l);let f=(u?ec(r.width):r.width)/o,m=(u?ec(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!m||!Number.isFinite(m))&&(m=1),{x:f,y:m}}const cR=Al(0);function R0(n){const l=Bt(n);return!vc()||!l.visualViewport?cR:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function uR(n,l,r){return l===void 0&&(l=!1),!!r&&l&&r===Bt(n)}function Ga(n,l,r,o){l===void 0&&(l=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),u=$m(n);let f=Al(1);l&&(o?tt(o)&&(f=Go(o)):f=Go(n));const m=uR(u,r,o)?R0(u):Al(0);let p=(s.left+m.x)/f.x,h=(s.top+m.y)/f.y,S=s.width/f.x,g=s.height/f.y;if(u&&o){const v=Bt(u),w=tt(o)?Bt(o):o;let E=v,C=Fd(E);for(;C&&w!==E;){const T=Go(C),A=C.getBoundingClientRect(),N=zn(C),_=A.left+(C.clientLeft+parseFloat(N.paddingLeft))*T.x,j=A.top+(C.clientTop+parseFloat(N.paddingTop))*T.y;p*=T.x,h*=T.y,S*=T.x,g*=T.y,p+=_,h+=j,E=Bt(C),C=Fd(E)}}return pa({width:S,height:g,x:p,y:h})}function yc(n,l){const r=gc(n).scrollLeft;return l?l.left+r:Ga(jl(n)).left+r}function E0(n,l){const r=n.getBoundingClientRect(),o=r.left+l.scrollLeft-yc(n,r),s=r.top+l.scrollTop;return{x:o,y:s}}function fR(n){let{elements:l,rect:r,offsetParent:o,strategy:s}=n;const u=s==="fixed",f=jl(o),m=l?hc(l.floating):!1;if(o===f||m&&u)return r;let p={scrollLeft:0,scrollTop:0},h=Al(1);const S=Al(0),g=Hn(o);if((g||!u)&&((Qo(o)!=="body"||pc(f))&&(p=gc(o)),g)){const w=Ga(o);h=Go(o),S.x=w.x+o.clientLeft,S.y=w.y+o.clientTop}const v=f&&!g&&!u?E0(f,p):Al(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-p.scrollLeft*h.x+S.x+v.x,y:r.y*h.y-p.scrollTop*h.y+S.y+v.y}}function dR(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function mR(n){const l=gc(n),r=n.ownerDocument.body,o=Cn(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),s=Cn(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let u=-l.scrollLeft+yc(n);const f=-l.scrollTop;return zn(r).direction==="rtl"&&(u+=Cn(n.clientWidth,r.clientWidth)-o),{width:o,height:s,x:u,y:f}}const pR=25;function hR(n,l,r){r===void 0&&(r="viewport");const o=r==="layoutViewport",s=Bt(n),u=jl(n),f=s.visualViewport;let m=u.clientWidth,p=u.clientHeight,h=0,S=0;if(f){const v=!vc()||l==="fixed";o?v||(h=-f.offsetLeft,S=-f.offsetTop):(m=f.width,p=f.height,v&&(h=f.offsetLeft,S=f.offsetTop))}if(yc(u)<=0){const v=u.ownerDocument,w=v.body,E=getComputedStyle(w),C=v.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,T=Math.abs(u.clientWidth-w.clientWidth-C),A=getComputedStyle(u).scrollbarGutter==="stable both-edges"?T/2:T;A<=pR&&(m-=A)}return{width:m,height:p,x:h,y:S}}function vR(n,l){const r=Ga(n,!0,l==="fixed"),o=r.top+n.clientTop,s=r.left+n.clientLeft,u=Go(n),f=n.clientWidth*u.x,m=n.clientHeight*u.y,p=s*u.x,h=o*u.y;return{width:f,height:m,x:p,y:h}}function tb(n,l,r){let o;if(l==="viewport"||l==="layoutViewport")o=hR(n,r,l);else if(l==="document")o=mR(jl(n));else if(tt(l))o=vR(l,r);else{const s=R0(n);o={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return pa(o)}function gR(n,l){const r=l.get(n);if(r)return r;let o=El(n,[],!1).filter(m=>tt(m)&&Qo(m)!=="body"),s=null;const u=zn(n).position==="fixed";let f=u?ga(n):n;for(;tt(f)&&!ma(f);){const m=zn(f),p=Mm(f),h=s?s.position:u?"fixed":"";!p&&(h==="fixed"||h==="absolute"&&m.position==="static")?o=o.filter(g=>g!==f):s=m,f=ga(f)}return l.set(n,o),o}function yR(n){let{element:l,boundary:r,rootBoundary:o,strategy:s}=n;const f=[...r==="clippingAncestors"?hc(l)?[]:gR(l,this._c):[].concat(r),o],m=tb(l,f[0],s);let p=m.top,h=m.right,S=m.bottom,g=m.left;for(let v=1;v<f.length;v++){const w=tb(l,f[v],s);p=Cn(w.top,p),h=Dn(w.right,h),S=Dn(w.bottom,S),g=Cn(w.left,g)}return{width:h-g,height:S-p,x:g,y:p}}function bR(n){const{width:l,height:r}=T0(n);return{width:l,height:r}}function SR(n,l,r){const o=Hn(l),s=jl(l),u=r==="fixed",f=Ga(n,!0,u,l);let m={scrollLeft:0,scrollTop:0};const p=Al(0);if((o||!u)&&((Qo(l)!=="body"||pc(s))&&(m=gc(l)),o)){const v=Ga(l,!0,u,l);p.x=v.x+l.clientLeft,p.y=v.y+l.clientTop}!o&&s&&(p.x=yc(s));const h=s&&!o&&!u?E0(s,m):Al(0),S=f.left+m.scrollLeft-p.x-h.x,g=f.top+m.scrollTop-p.y-h.y;return{x:S,y:g,width:f.width,height:f.height}}function Ed(n){return zn(n).position==="static"}function nb(n,l){if(!Hn(n)||zn(n).position==="fixed")return null;if(l)return l(n);let r=n.offsetParent;return jl(n)===r&&(r=r.ownerDocument.body),r}function A0(n,l){const r=Bt(n);if(hc(n))return r;if(!Hn(n)){let s=ga(n);for(;s&&!ma(s);){if(tt(s)&&!Ed(s))return s;s=ga(s)}return r}let o=nb(n,l);for(;o&&xT(o)&&Ed(o);)o=nb(o,l);return o&&ma(o)&&Ed(o)&&!Mm(o)?r:o||TT(n)||r}const xR=async function(n){const l=this.getOffsetParent||A0,r=this.getDimensions,o=await r(n.floating);return{reference:SR(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wR(n){return zn(n).direction==="rtl"}const CR={convertOffsetParentRelativeRectToViewportRelativeRect:fR,getDocumentElement:jl,getClippingRect:yR,getOffsetParent:A0,getElementRects:xR,getClientRects:dR,getDimensions:bR,getScale:Go,isElement:tt,isRTL:wR};function _0(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function TR(n,l,r){let o=null,s;const u=jl(n);function f(){var S;clearTimeout(s),(S=o)==null||S.disconnect(),o=null}function m(S,g){S===void 0&&(S=!1),g===void 0&&(g=1),f();const v=n.getBoundingClientRect(),{left:w,top:E,width:C,height:T}=v;if(S||l(),!C||!T)return;const A=Ls(E),N=Ls(u.clientWidth-(w+C)),_=Ls(u.clientHeight-(E+T)),j=Ls(w),k={rootMargin:-A+"px "+-N+"px "+-_+"px "+-j+"px",threshold:Cn(0,Dn(1,g))||1};let D=!0;function H(te){const le=te[0].intersectionRatio;if(!_0(v,n.getBoundingClientRect()))return m();if(le!==g){if(!D)return m();le?m(!1,le):s=setTimeout(()=>{m(!1,1e-7)},1e3)}D=!1}try{o=new IntersectionObserver(H,{...k,root:u.ownerDocument})}catch{o=new IntersectionObserver(H,k)}o.observe(n)}const p=Bt(n),h=()=>m(r);return p.addEventListener("resize",h),m(!0),()=>{p.removeEventListener("resize",h),f()}}function Wd(n,l,r,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,h=$m(n),S=s||u?[...h?El(h):[],...l?El(l):[]]:[];S.forEach(A=>{s&&A.addEventListener("scroll",r),u&&A.addEventListener("resize",r)});const g=h&&m?TR(h,r,u):null;let v=-1,w=null;f&&(w=new ResizeObserver(A=>{let[N]=A;N&&N.target===h&&w&&l&&(w.unobserve(l),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var _;(_=w)==null||_.observe(l)})),r()}),h&&!p&&w.observe(h),l&&w.observe(l));let E,C=p?Ga(n):null;p&&T();function T(){const A=Ga(n);C&&!_0(C,A)&&r(),C=A,E=requestAnimationFrame(T)}return r(),()=>{var A;S.forEach(N=>{s&&N.removeEventListener("scroll",r),u&&N.removeEventListener("resize",r)}),g==null||g(),(A=w)==null||A.disconnect(),w=null,p&&cancelAnimationFrame(E)}}const RR=oR,ER=rR,AR=eR,_R=sR,NR=tR,lb=WT,MR=lR,OR=iR,jR=(n,l,r)=>{const o=new Map,s=r??{},u={...CR,...s.platform,_c:o};return PT(n,l,{...s,platform:u})};var zR=typeof document<"u",DR=function(){},Is=zR?x.useLayoutEffect:DR;function nc(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let r,o,s;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==l.length)return!1;for(o=r;o--!==0;)if(!nc(n[o],l[o]))return!1;return!0}if(s=Object.keys(n),r=s.length,r!==Object.keys(l).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(l,s[o]))return!1;for(o=r;o--!==0;){const u=s[o];if(!(u==="_owner"&&n.$$typeof)&&!nc(n[u],l[u]))return!1}return!0}return n!==n&&l!==l}function N0(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function ab(n,l){const r=N0(n);return Math.round(l*r)/r}function Ad(n){const l=x.useRef(n);return Is(()=>{l.current=n}),l}function $R(n){n===void 0&&(n={});const{placement:l="bottom",strategy:r="absolute",middleware:o=[],platform:s,elements:{reference:u,floating:f}={},transform:m=!0,whileElementsMounted:p,open:h}=n,[S,g]=x.useState({x:0,y:0,strategy:r,placement:l,middlewareData:{},isPositioned:!1}),[v,w]=x.useState(o);nc(v,o)||w(o);const[E,C]=x.useState(null),[T,A]=x.useState(null),N=x.useCallback(U=>{U!==k.current&&(k.current=U,C(U))},[]),_=x.useCallback(U=>{U!==D.current&&(D.current=U,A(U))},[]),j=u||E,L=f||T,k=x.useRef(null),D=x.useRef(null),H=x.useRef(S),te=p!=null,le=Ad(p),oe=Ad(s),ee=Ad(h),F=x.useCallback(()=>{if(!k.current||!D.current)return;const U={placement:l,strategy:r,middleware:v};oe.current&&(U.platform=oe.current),jR(k.current,D.current,U).then(Z=>{const P={...Z,isPositioned:ee.current!==!1};V.current&&!nc(H.current,P)&&(H.current=P,gm.flushSync(()=>{g(P)}))})},[v,l,r,oe,ee]);Is(()=>{h===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,g(U=>({...U,isPositioned:!1})))},[h]);const V=x.useRef(!1);Is(()=>(V.current=!0,()=>{V.current=!1}),[]),Is(()=>{if(j&&(k.current=j),L&&(D.current=L),j&&L){if(le.current)return le.current(j,L,F);F()}},[j,L,F,le,te]);const ce=x.useMemo(()=>({reference:k,floating:D,setReference:N,setFloating:_}),[N,_]),O=x.useMemo(()=>({reference:j,floating:L}),[j,L]),B=x.useMemo(()=>{const U={position:r,left:0,top:0};if(!O.floating)return U;const Z=ab(O.floating,S.x),P=ab(O.floating,S.y);return m?{...U,transform:"translate("+Z+"px, "+P+"px)",...N0(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Z,top:P}},[r,m,O.floating,S.x,S.y]);return x.useMemo(()=>({...S,update:F,refs:ce,elements:O,floatingStyles:B}),[S,F,ce,O,B])}const LR=n=>{function l(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:o,padding:s}=typeof n=="function"?n(r):n;return o&&l(o)?o.current!=null?lb({element:o.current,padding:s}).fn(r):{}:o?lb({element:o,padding:s}).fn(r):{}}}},M0=(n,l)=>{const r=RR(n);return{name:r.name,fn:r.fn,options:[n,l]}},Lm=(n,l)=>{const r=ER(n);return{name:r.name,fn:r.fn,options:[n,l]}},BR=(n,l)=>({fn:OR(n).fn,options:[n,l]}),em=(n,l)=>{const r=AR(n);return{name:r.name,fn:r.fn,options:[n,l]}},kR=(n,l)=>{const r=_R(n);return{name:r.name,fn:r.fn,options:[n,l]}},HR=(n,l)=>{const r=NR(n);return{name:r.name,fn:r.fn,options:[n,l]}},ei=(n,l)=>{const r=MR(n);return{name:r.name,fn:r.fn,options:[n,l]}},O0=(n,l)=>{const r=LR(n);return{name:r.name,fn:r.fn,options:[n,l]}};function j0(n){const l=x.useRef(void 0),r=x.useCallback(o=>{const s=n.map(u=>{if(u!=null){if(typeof u=="function"){const f=u,m=f(o);return typeof m=="function"?m:()=>{f(null)}}return u.current=o,()=>{u.current=null}}});return()=>{s.forEach(u=>u==null?void 0:u())}},n);return x.useMemo(()=>n.every(o=>o==null)?null:o=>{l.current&&(l.current(),l.current=void 0),o!=null&&(l.current=r(o))},n)}const UR="data-floating-ui-focusable",ob="active",rb="selected",YR={...Lb};let ib=!1,qR=0;const sb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+qR++;function VR(){const[n,l]=x.useState(()=>ib?sb():void 0);return Wn(()=>{n==null&&l(sb())},[]),x.useEffect(()=>{ib=!0},[]),n}const GR=YR.useId,z0=GR||VR;function XR(){const n=new Map;return{emit(l,r){var o;(o=n.get(l))==null||o.forEach(s=>s(r))},on(l,r){n.has(l)||n.set(l,new Set),n.get(l).add(r)},off(l,r){var o;(o=n.get(l))==null||o.delete(r)}}}const IR=x.createContext(null),ZR=x.createContext(null),Bm=()=>{var n;return((n=x.useContext(IR))==null?void 0:n.id)||null},km=()=>x.useContext(ZR);function Hm(n){return"data-floating-ui-"+n}function Zt(n){n.current!==-1&&(clearTimeout(n.current),n.current=-1)}const cb=Hm("safe-polygon");function Zs(n,l,r){if(r&&!Pd(r))return 0;if(typeof n=="number")return n;if(typeof n=="function"){const o=n();return typeof o=="number"?o:o==null?void 0:o[l]}return n==null?void 0:n[l]}function _d(n){return typeof n=="function"?n():n}function D0(n,l){l===void 0&&(l={});const{open:r,onOpenChange:o,dataRef:s,events:u,elements:f}=n,{enabled:m=!0,delay:p=0,handleClose:h=null,mouseOnly:S=!1,restMs:g=0,move:v=!0}=l,w=km(),E=Bm(),C=Bs(h),T=Bs(p),A=Bs(r),N=Bs(g),_=x.useRef(),j=x.useRef(-1),L=x.useRef(),k=x.useRef(-1),D=x.useRef(!0),H=x.useRef(!1),te=x.useRef(()=>{}),le=x.useRef(!1),oe=Fn(()=>{var B;const U=(B=s.current.openEvent)==null?void 0:B.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"});x.useEffect(()=>{if(!m)return;function B(U){let{open:Z}=U;Z||(Zt(j),Zt(k),D.current=!0,le.current=!1)}return u.on("openchange",B),()=>{u.off("openchange",B)}},[m,u]),x.useEffect(()=>{if(!m||!C.current||!r)return;function B(Z){oe()&&o(!1,Z,"hover")}const U=qa(f.floating).documentElement;return U.addEventListener("mouseleave",B),()=>{U.removeEventListener("mouseleave",B)}},[f.floating,r,o,m,C,oe]);const ee=x.useCallback(function(B,U,Z){U===void 0&&(U=!0),Z===void 0&&(Z="hover");const P=Zs(T.current,"close",_.current);P&&!L.current?(Zt(j),j.current=window.setTimeout(()=>o(!1,B,Z),P)):U&&(Zt(j),o(!1,B,Z))},[T,o]),F=Fn(()=>{te.current(),L.current=void 0}),V=Fn(()=>{if(H.current){const B=qa(f.floating).body;B.style.pointerEvents="",B.removeAttribute(cb),H.current=!1}}),ce=Fn(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);x.useEffect(()=>{if(!m)return;function B(Y){if(Zt(j),D.current=!1,S&&!Pd(_.current)||_d(N.current)>0&&!Zs(T.current,"open"))return;const J=Zs(T.current,"open",_.current);J?j.current=window.setTimeout(()=>{A.current||o(!0,Y,"hover")},J):r||o(!0,Y,"hover")}function U(Y){if(ce()){V();return}te.current();const J=qa(f.floating);if(Zt(k),le.current=!1,C.current&&s.current.floatingContext){r||Zt(j),L.current=C.current({...s.current.floatingContext,tree:w,x:Y.clientX,y:Y.clientY,onClose(){V(),F(),ce()||ee(Y,!0,"safe-polygon")}});const se=L.current;J.addEventListener("mousemove",se),te.current=()=>{J.removeEventListener("mousemove",se)};return}(_.current==="touch"?!li(f.floating,Y.relatedTarget):!0)&&ee(Y)}function Z(Y){ce()||s.current.floatingContext&&(C.current==null||C.current({...s.current.floatingContext,tree:w,x:Y.clientX,y:Y.clientY,onClose(){V(),F(),ce()||ee(Y)}})(Y))}function P(){Zt(j)}function M(Y){ce()||ee(Y,!1)}if(tt(f.domReference)){const Y=f.domReference,J=f.floating;return r&&Y.addEventListener("mouseleave",Z),v&&Y.addEventListener("mousemove",B,{once:!0}),Y.addEventListener("mouseenter",B),Y.addEventListener("mouseleave",U),J&&(J.addEventListener("mouseleave",Z),J.addEventListener("mouseenter",P),J.addEventListener("mouseleave",M)),()=>{r&&Y.removeEventListener("mouseleave",Z),v&&Y.removeEventListener("mousemove",B),Y.removeEventListener("mouseenter",B),Y.removeEventListener("mouseleave",U),J&&(J.removeEventListener("mouseleave",Z),J.removeEventListener("mouseenter",P),J.removeEventListener("mouseleave",M))}}},[f,m,n,S,v,ee,F,V,o,r,A,w,T,C,s,ce,N]),Wn(()=>{var B;if(m&&r&&(B=C.current)!=null&&(B=B.__options)!=null&&B.blockPointerEvents&&oe()){H.current=!0;const Z=f.floating;if(tt(f.domReference)&&Z){var U;const P=qa(f.floating).body;P.setAttribute(cb,"");const M=f.domReference,Y=w==null||(U=w.nodesRef.current.find(J=>J.id===E))==null||(U=U.context)==null?void 0:U.elements.floating;return Y&&(Y.style.pointerEvents=""),P.style.pointerEvents="none",M.style.pointerEvents="auto",Z.style.pointerEvents="auto",()=>{P.style.pointerEvents="",M.style.pointerEvents="",Z.style.pointerEvents=""}}}},[m,r,E,f,w,C,oe]),Wn(()=>{r||(_.current=void 0,le.current=!1,F(),V())},[r,F,V]),x.useEffect(()=>()=>{F(),Zt(j),Zt(k),V()},[m,f.domReference,F,V]);const O=x.useMemo(()=>{function B(U){_.current=U.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(U){const{nativeEvent:Z}=U;function P(){!D.current&&!A.current&&o(!0,Z,"hover")}S&&!Pd(_.current)||r||_d(N.current)===0||le.current&&U.movementX**2+U.movementY**2<2||(Zt(k),_.current==="touch"?P():(le.current=!0,k.current=window.setTimeout(P,_d(N.current))))}}},[S,o,r,A,N]);return x.useMemo(()=>m?{reference:O}:{},[m,O])}const tm=()=>{},$0=x.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:tm,setState:tm,isInstantPhase:!1}),QR=()=>x.useContext($0);function KR(n){const{children:l,delay:r,timeoutMs:o=0}=n,[s,u]=x.useReducer((p,h)=>({...p,...h}),{delay:r,timeoutMs:o,initialDelay:r,currentId:null,isInstantPhase:!1}),f=x.useRef(null),m=x.useCallback(p=>{u({currentId:p})},[]);return Wn(()=>{s.currentId?f.current===null?f.current=s.currentId:s.isInstantPhase||u({isInstantPhase:!0}):(s.isInstantPhase&&u({isInstantPhase:!1}),f.current=null)},[s.currentId,s.isInstantPhase]),y.jsx($0.Provider,{value:x.useMemo(()=>({...s,setState:u,setCurrentId:m}),[s,m]),children:l})}function FR(n,l){l===void 0&&(l={});const{open:r,onOpenChange:o,floatingId:s}=n,{id:u,enabled:f=!0}=l,m=u??s,p=QR(),{currentId:h,setCurrentId:S,initialDelay:g,setState:v,timeoutMs:w}=p;return Wn(()=>{f&&h&&(v({delay:{open:1,close:Zs(g,"close")}}),h!==m&&o(!1))},[f,m,o,v,h,g]),Wn(()=>{function E(){o(!1),v({delay:g,currentId:null})}if(f&&h&&!r&&h===m){if(w){const C=window.setTimeout(E,w);return()=>{clearTimeout(C)}}E()}},[f,r,v,h,m,o,g,w]),Wn(()=>{f&&(S===tm||!r||S(m))},[f,r,S,m]),p}function Nd(n,l){if(!n||!l)return!1;const r=l.getRootNode==null?void 0:l.getRootNode();if(n.contains(l))return!0;if(r&&Ws(r)){let o=l;for(;o;){if(n===o)return!0;o=o.parentNode||o.host}}return!1}function JR(n){return"composedPath"in n?n.composedPath()[0]:n.target}const PR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},WR={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ub=n=>{var l,r;return{escapeKey:typeof n=="boolean"?n:(l=n==null?void 0:n.escapeKey)!=null?l:!1,outsidePress:typeof n=="boolean"?n:(r=n==null?void 0:n.outsidePress)!=null?r:!0}};function eE(n,l){l===void 0&&(l={});const{open:r,onOpenChange:o,elements:s,dataRef:u}=n,{enabled:f=!0,escapeKey:m=!0,outsidePress:p=!0,outsidePressEvent:h="pointerdown",referencePress:S=!1,referencePressEvent:g="pointerdown",ancestorScroll:v=!1,bubbles:w,capture:E}=l,C=km(),T=Fn(typeof p=="function"?p:()=>!1),A=typeof p=="function"?T:p,N=x.useRef(!1),{escapeKey:_,outsidePress:j}=ub(w),{escapeKey:L,outsidePress:k}=ub(E),D=x.useRef(!1),H=Fn(V=>{var ce;if(!r||!f||!m||V.key!=="Escape"||D.current)return;const O=(ce=u.current.floatingContext)==null?void 0:ce.nodeId,B=C?Xs(C.nodesRef.current,O):[];if(!_&&(V.stopPropagation(),B.length>0)){let U=!0;if(B.forEach(Z=>{var P;if((P=Z.context)!=null&&P.open&&!Z.context.dataRef.current.__escapeKeyBubbles){U=!1;return}}),!U)return}o(!1,GT(V)?V.nativeEvent:V,"escape-key")}),te=Fn(V=>{var ce;const O=()=>{var B;H(V),(B=Yo(V))==null||B.removeEventListener("keydown",O)};(ce=Yo(V))==null||ce.addEventListener("keydown",O)}),le=Fn(V=>{var ce;const O=u.current.insideReactTree;u.current.insideReactTree=!1;const B=N.current;if(N.current=!1,h==="click"&&B||O||typeof A=="function"&&!A(V))return;const U=Yo(V),Z="["+Hm("inert")+"]",P=qa(s.floating).querySelectorAll(Z);let M=tt(U)?U:null;for(;M&&!ma(M);){const se=ga(M);if(ma(se)||!tt(se))break;M=se}if(P.length&&tt(U)&&!UT(U)&&!li(U,s.floating)&&Array.from(P).every(se=>!li(M,se)))return;if(Hn(U)&&F){const se=ma(U),de=zn(U),ge=/auto|scroll/,pe=se||ge.test(de.overflowX),he=se||ge.test(de.overflowY),Me=pe&&U.clientWidth>0&&U.scrollWidth>U.clientWidth,Se=he&&U.clientHeight>0&&U.scrollHeight>U.clientHeight,Ce=de.direction==="rtl",ie=Se&&(Ce?V.offsetX<=U.offsetWidth-U.clientWidth:V.offsetX>U.clientWidth),ye=Me&&V.offsetY>U.clientHeight;if(ie||ye)return}const Y=(ce=u.current.floatingContext)==null?void 0:ce.nodeId,J=C&&Xs(C.nodesRef.current,Y).some(se=>{var de;return Rd(V,(de=se.context)==null?void 0:de.elements.floating)});if(Rd(V,s.floating)||Rd(V,s.domReference)||J)return;const ae=C?Xs(C.nodesRef.current,Y):[];if(ae.length>0){let se=!0;if(ae.forEach(de=>{var ge;if((ge=de.context)!=null&&ge.open&&!de.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}o(!1,V,"outside-press")}),oe=Fn(V=>{var ce;const O=()=>{var B;le(V),(B=Yo(V))==null||B.removeEventListener(h,O)};(ce=Yo(V))==null||ce.addEventListener(h,O)});x.useEffect(()=>{if(!r||!f)return;u.current.__escapeKeyBubbles=_,u.current.__outsidePressBubbles=j;let V=-1;function ce(P){o(!1,P,"ancestor-scroll")}function O(){window.clearTimeout(V),D.current=!0}function B(){V=window.setTimeout(()=>{D.current=!1},vc()?5:0)}const U=qa(s.floating);m&&(U.addEventListener("keydown",L?te:H,L),U.addEventListener("compositionstart",O),U.addEventListener("compositionend",B)),A&&U.addEventListener(h,k?oe:le,k);let Z=[];return v&&(tt(s.domReference)&&(Z=El(s.domReference)),tt(s.floating)&&(Z=Z.concat(El(s.floating))),!tt(s.reference)&&s.reference&&s.reference.contextElement&&(Z=Z.concat(El(s.reference.contextElement)))),Z=Z.filter(P=>{var M;return P!==((M=U.defaultView)==null?void 0:M.visualViewport)}),Z.forEach(P=>{P.addEventListener("scroll",ce)}),()=>{m&&(U.removeEventListener("keydown",L?te:H,L),U.removeEventListener("compositionstart",O),U.removeEventListener("compositionend",B)),A&&U.removeEventListener(h,k?oe:le,k),Z.forEach(P=>{P.removeEventListener("scroll",ce)}),window.clearTimeout(V)}},[u,s,m,A,h,r,o,v,f,_,j,H,L,te,le,k,oe]),x.useEffect(()=>{u.current.insideReactTree=!1},[u,A,h]);const ee=x.useMemo(()=>({onKeyDown:H,...S&&{[PR[g]]:V=>{o(!1,V.nativeEvent,"reference-press")},...g!=="click"&&{onClick(V){o(!1,V.nativeEvent,"reference-press")}}}}),[H,o,S,g]),F=x.useMemo(()=>{function V(ce){ce.button===0&&(N.current=!0)}return{onKeyDown:H,onMouseDown:V,onMouseUp:V,[WR[h]]:()=>{u.current.insideReactTree=!0}}},[H,h,u]);return x.useMemo(()=>f?{reference:ee,floating:F}:{},[f,ee,F])}function tE(n){const{open:l=!1,onOpenChange:r,elements:o}=n,s=z0(),u=x.useRef({}),[f]=x.useState(()=>XR()),m=Bm()!=null,[p,h]=x.useState(o.reference),S=Fn((w,E,C)=>{u.current.openEvent=w?E:void 0,f.emit("openchange",{open:w,event:E,reason:C,nested:m}),r==null||r(w,E,C)}),g=x.useMemo(()=>({setPositionReference:h}),[]),v=x.useMemo(()=>({reference:p||o.reference||null,floating:o.floating||null,domReference:o.reference}),[p,o.reference,o.floating]);return x.useMemo(()=>({dataRef:u,open:l,onOpenChange:S,elements:v,events:f,floatingId:s,refs:g}),[l,S,v,f,s,g])}function bc(n){var l,r;let{elements:o,...s}=n===void 0?{}:n;const{nodeId:u}=s,f=tE({...s,elements:{reference:(l=o==null?void 0:o.reference)!=null?l:null,floating:(r=o==null?void 0:o.floating)!=null?r:null}}),m=s.rootContext||f,p=m.elements,[h,S]=x.useState(null),[g,v]=x.useState(null),E=(p==null?void 0:p.domReference)||h,C=x.useRef(null),T=km();Wn(()=>{E&&(C.current=E)},[E]);const A=$R({...s,elements:{...p,...g&&{reference:g}}}),N=x.useCallback(D=>{const H=tt(D)?{getBoundingClientRect:()=>D.getBoundingClientRect(),getClientRects:()=>D.getClientRects(),contextElement:D}:D;v(H),A.refs.setReference(H)},[A.refs]),_=x.useCallback(D=>{(tt(D)||D===null)&&(C.current=D,S(D)),(tt(A.refs.reference.current)||A.refs.reference.current===null||D!==null&&!tt(D))&&A.refs.setReference(D)},[A.refs]),j=x.useMemo(()=>({...A.refs,setReference:_,setPositionReference:N,domReference:C}),[A.refs,_,N]),L=x.useMemo(()=>({...A.elements,domReference:E}),[A.elements,E]),k=x.useMemo(()=>({...A,...m,refs:j,elements:L,nodeId:u}),[A,j,L,u,m]);return Wn(()=>{m.dataRef.current.floatingContext=k;const D=T==null?void 0:T.nodesRef.current.find(H=>H.id===u);D&&(D.context=k)}),x.useMemo(()=>({...A,context:k,refs:j,elements:L}),[A,j,L,k])}function Md(){return BT()&&LT()}function nE(n,l){l===void 0&&(l={});const{open:r,onOpenChange:o,events:s,dataRef:u,elements:f}=n,{enabled:m=!0,visibleOnly:p=!0}=l,h=x.useRef(!1),S=x.useRef(-1),g=x.useRef(!0);x.useEffect(()=>{if(!m)return;const w=Bt(f.domReference);function E(){!r&&Hn(f.domReference)&&f.domReference===Jy(qa(f.domReference))&&(h.current=!0)}function C(){g.current=!0}function T(){g.current=!1}return w.addEventListener("blur",E),Md()&&(w.addEventListener("keydown",C,!0),w.addEventListener("pointerdown",T,!0)),()=>{w.removeEventListener("blur",E),Md()&&(w.removeEventListener("keydown",C,!0),w.removeEventListener("pointerdown",T,!0))}},[f.domReference,r,m]),x.useEffect(()=>{if(!m)return;function w(E){let{reason:C}=E;(C==="reference-press"||C==="escape-key")&&(h.current=!0)}return s.on("openchange",w),()=>{s.off("openchange",w)}},[s,m]),x.useEffect(()=>()=>{Zt(S)},[]);const v=x.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(w){if(h.current)return;const E=Yo(w.nativeEvent);if(p&&tt(E)){if(Md()&&!w.relatedTarget){if(!g.current&&!YT(E))return}else if(!qT(E))return}o(!0,w.nativeEvent,"focus")},onBlur(w){h.current=!1;const E=w.relatedTarget,C=w.nativeEvent,T=tt(E)&&E.hasAttribute(Hm("focus-guard"))&&E.getAttribute("data-type")==="outside";S.current=window.setTimeout(()=>{var A;const N=Jy(f.domReference?f.domReference.ownerDocument:document);!E&&N===f.domReference||li((A=u.current.floatingContext)==null?void 0:A.refs.floating.current,N)||li(f.domReference,N)||T||o(!1,C,"focus")})}}),[u,f.domReference,o,p]);return x.useMemo(()=>m?{reference:v}:{},[m,v])}function Od(n,l,r){const o=new Map,s=r==="item";let u=n;if(s&&n){const{[ob]:f,[rb]:m,...p}=n;u=p}return{...r==="floating"&&{tabIndex:-1,[UR]:""},...u,...l.map(f=>{const m=f?f[r]:null;return typeof m=="function"?n?m(n):null:m}).concat(n).reduce((f,m)=>(m&&Object.entries(m).forEach(p=>{let[h,S]=p;if(!(s&&[ob,rb].includes(h)))if(h.indexOf("on")===0){if(o.has(h)||o.set(h,[]),typeof S=="function"){var g;(g=o.get(h))==null||g.push(S),f[h]=function(){for(var v,w=arguments.length,E=new Array(w),C=0;C<w;C++)E[C]=arguments[C];return(v=o.get(h))==null?void 0:v.map(T=>T(...E)).find(T=>T!==void 0)}}}else f[h]=S}),f),{})}}function L0(n){n===void 0&&(n=[]);const l=n.map(m=>m==null?void 0:m.reference),r=n.map(m=>m==null?void 0:m.floating),o=n.map(m=>m==null?void 0:m.item),s=x.useCallback(m=>Od(m,n,"reference"),l),u=x.useCallback(m=>Od(m,n,"floating"),r),f=x.useCallback(m=>Od(m,n,"item"),o);return x.useMemo(()=>({getReferenceProps:s,getFloatingProps:u,getItemProps:f}),[s,u,f])}const lE=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function aE(n,l){var r,o;l===void 0&&(l={});const{open:s,elements:u,floatingId:f}=n,{enabled:m=!0,role:p="dialog"}=l,h=z0(),S=((r=u.domReference)==null?void 0:r.id)||h,g=x.useMemo(()=>{var N;return((N=VT(u.floating))==null?void 0:N.id)||f},[u.floating,f]),v=(o=lE.get(p))!=null?o:p,E=Bm()!=null,C=x.useMemo(()=>v==="tooltip"||p==="label"?{["aria-"+(p==="label"?"labelledby":"describedby")]:s?g:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":v==="alertdialog"?"dialog":v,"aria-controls":s?g:void 0,...v==="listbox"&&{role:"combobox"},...v==="menu"&&{id:S},...v==="menu"&&E&&{role:"menuitem"},...p==="select"&&{"aria-autocomplete":"none"},...p==="combobox"&&{"aria-autocomplete":"list"}},[v,g,E,s,S,p]),T=x.useMemo(()=>{const N={id:g,...v&&{role:v}};return v==="tooltip"||p==="label"?N:{...N,...v==="menu"&&{"aria-labelledby":S}}},[v,g,S,p]),A=x.useCallback(N=>{let{active:_,selected:j}=N;const L={role:"option",..._&&{id:g+"-fui-option"}};switch(p){case"select":case"combobox":return{...L,"aria-selected":j}}return{}},[g,p]);return x.useMemo(()=>m?{reference:C,floating:T,item:A}:{},[m,C,T,A])}function B0(n,l,r){return r===void 0&&(r=!0),n.filter(s=>{var u;return s.parentId===l&&(!r||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...B0(n,s.id,r)])}function fb(n,l){const[r,o]=n;let s=!1;const u=l.length;for(let f=0,m=u-1;f<u;m=f++){const[p,h]=l[f]||[0,0],[S,g]=l[m]||[0,0];h>=o!=g>=o&&r<=(S-p)*(o-h)/(g-h)+p&&(s=!s)}return s}function oE(n,l){return n[0]>=l.x&&n[0]<=l.x+l.width&&n[1]>=l.y&&n[1]<=l.y+l.height}function k0(n){n===void 0&&(n={});const{buffer:l=.5,blockPointerEvents:r=!1,requireIntent:o=!0}=n,s={current:-1};let u=!1,f=null,m=null,p=typeof performance<"u"?performance.now():0;function h(g,v){const w=performance.now(),E=w-p;if(f===null||m===null||E===0)return f=g,m=v,p=w,null;const C=g-f,T=v-m,N=Math.sqrt(C*C+T*T)/E;return f=g,m=v,p=w,N}const S=g=>{let{x:v,y:w,placement:E,elements:C,onClose:T,nodeId:A,tree:N}=g;return function(j){function L(){Zt(s),T()}if(Zt(s),!C.domReference||!C.floating||E==null||v==null||w==null)return;const{clientX:k,clientY:D}=j,H=[k,D],te=JR(j),le=j.type==="mouseleave",oe=Nd(C.floating,te),ee=Nd(C.domReference,te),F=C.domReference.getBoundingClientRect(),V=C.floating.getBoundingClientRect(),ce=E.split("-")[0],O=v>V.right-V.width/2,B=w>V.bottom-V.height/2,U=oE(H,F),Z=V.width>F.width,P=V.height>F.height,M=(Z?F:V).left,Y=(Z?F:V).right,J=(P?F:V).top,ae=(P?F:V).bottom;if(oe&&(u=!0,!le))return;if(ee&&(u=!1),ee&&!le){u=!0;return}if(le&&tt(j.relatedTarget)&&Nd(C.floating,j.relatedTarget)||N&&B0(N.nodesRef.current,A).length)return;if(ce==="top"&&w>=F.bottom-1||ce==="bottom"&&w<=F.top+1||ce==="left"&&v>=F.right-1||ce==="right"&&v<=F.left+1)return L();let se=[];switch(ce){case"top":se=[[M,F.top+1],[M,V.bottom-1],[Y,V.bottom-1],[Y,F.top+1]];break;case"bottom":se=[[M,V.top+1],[M,F.bottom-1],[Y,F.bottom-1],[Y,V.top+1]];break;case"left":se=[[V.right-1,ae],[V.right-1,J],[F.left+1,J],[F.left+1,ae]];break;case"right":se=[[F.right-1,ae],[F.right-1,J],[V.left+1,J],[V.left+1,ae]];break}function de(ge){let[pe,he]=ge;switch(ce){case"top":{const Me=[Z?pe+l/2:O?pe+l*4:pe-l*4,he+l+1],Se=[Z?pe-l/2:O?pe+l*4:pe-l*4,he+l+1],Ce=[[V.left,O||Z?V.bottom-l:V.top],[V.right,O?Z?V.bottom-l:V.top:V.bottom-l]];return[Me,Se,...Ce]}case"bottom":{const Me=[Z?pe+l/2:O?pe+l*4:pe-l*4,he-l],Se=[Z?pe-l/2:O?pe+l*4:pe-l*4,he-l],Ce=[[V.left,O||Z?V.top+l:V.bottom],[V.right,O?Z?V.top+l:V.bottom:V.top+l]];return[Me,Se,...Ce]}case"left":{const Me=[pe+l+1,P?he+l/2:B?he+l*4:he-l*4],Se=[pe+l+1,P?he-l/2:B?he+l*4:he-l*4];return[...[[B||P?V.right-l:V.left,V.top],[B?P?V.right-l:V.left:V.right-l,V.bottom]],Me,Se]}case"right":{const Me=[pe-l,P?he+l/2:B?he+l*4:he-l*4],Se=[pe-l,P?he-l/2:B?he+l*4:he-l*4],Ce=[[B||P?V.left+l:V.right,V.top],[B?P?V.left+l:V.right:V.left+l,V.bottom]];return[Me,Se,...Ce]}}}if(!fb([k,D],se)){if(u&&!U)return L();if(!le&&o){const ge=h(j.clientX,j.clientY);if(ge!==null&&ge<.1)return L()}fb([k,D],de([v,w]))?!u&&o&&(s.current=window.setTimeout(L,40)):L()}}};return S.__options={blockPointerEvents:r},S}const H0={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},U0=(n,{scrollbarSize:l,overscrollBehavior:r,scrollbars:o})=>{let s=r;return r&&o&&(o==="x"?s=`${r} auto`:o==="y"&&(s=`auto ${r}`)),{root:{"--scrollarea-scrollbar-size":K(l),"--scrollarea-over-scroll-behavior":s}}},$n=me(n=>{const l=ue("ScrollArea",H0,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,scrollbarSize:m,vars:p,type:h,scrollHideDelay:S,viewportProps:g,viewportRef:v,onScrollPositionChange:w,children:E,offsetScrollbars:C,scrollbars:T,onBottomReached:A,onTopReached:N,onLeftReached:_,onRightReached:j,overscrollBehavior:L,startScrollPosition:k,verticalScrollbarPosition:D,attributes:H,...te}=l,[le,oe]=x.useState(!1),[ee,F]=x.useState(!1),[V,ce]=x.useState(!1),O=x.useRef(!0),B=x.useRef(!1),U=x.useRef(!0),Z=x.useRef(!1),P=je({name:"ScrollArea",props:l,classes:Nm,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:H,vars:p,varsResolver:U0}),M=x.useRef(null),[Y,J]=x.useState(null),ae=j0([v,M,x.useCallback(se=>{J(de=>de===se?de:se)},[])]);return va(C==="present"?Y:null,()=>{const se=M.current;se&&(F(se.scrollHeight>se.clientHeight),ce(se.scrollWidth>se.clientWidth))}),el(()=>{k&&M.current&&M.current.scrollTo({left:k.x??0,top:k.y??0})},[]),y.jsxs(s0,{getStyles:P,type:h==="never"?"always":h,scrollHideDelay:S,scrollbars:T,...P("root"),...te,children:[y.jsx(y0,{...g,...P("viewport",{style:g==null?void 0:g.style}),ref:ae,"data-offset-scrollbars":C===!0?"xy":C||void 0,"data-scrollbars":T||void 0,"data-vertical-scrollbar-position":D||void 0,"data-horizontal-hidden":C==="present"&&!V?"true":void 0,"data-vertical-hidden":C==="present"&&!ee?"true":void 0,onScroll:se=>{var Te;(Te=g==null?void 0:g.onScroll)==null||Te.call(g,se),w==null||w({x:se.currentTarget.scrollLeft,y:se.currentTarget.scrollTop});const{scrollTop:de,scrollHeight:ge,clientHeight:pe,scrollLeft:he,scrollWidth:Me,clientWidth:Se}=se.currentTarget,Ce=de-(ge-pe)>=-.8,ie=de===0;Ce&&!B.current&&(A==null||A()),ie&&!O.current&&(N==null||N()),B.current=Ce,O.current=ie;const ye=he-(Me-Se)>=-.8,Ne=he===0;ye&&!Z.current&&(j==null||j()),Ne&&!U.current&&(_==null||_()),Z.current=ye,U.current=Ne},children:E}),(T==="xy"||T==="x")&&y.jsx(Qd,{...P("scrollbar"),orientation:"horizontal","data-vertical-scrollbar-position":D||void 0,"data-hidden":h==="never"||C==="present"&&!V?!0:void 0,forceMount:!0,onMouseEnter:()=>oe(!0),onMouseLeave:()=>oe(!1),children:y.jsx(Kd,{...P("thumb")})}),(T==="xy"||T==="y")&&y.jsx(Qd,{...P("scrollbar"),orientation:"vertical","data-vertical-scrollbar-position":D||void 0,"data-hidden":h==="never"||C==="present"&&!ee?!0:void 0,forceMount:!0,onMouseEnter:()=>oe(!0),onMouseLeave:()=>oe(!1),children:y.jsx(Kd,{...P("thumb")})}),y.jsx(pT,{...P("corner"),"data-vertical-scrollbar-position":D||void 0,"data-hovered":le||void 0,"data-hidden":h==="never"||void 0})]})});$n.displayName="@mantine/core/ScrollArea";const Um=me(n=>{const{children:l,classNames:r,styles:o,scrollbarSize:s,scrollHideDelay:u,type:f,dir:m,offsetScrollbars:p,overscrollBehavior:h,viewportRef:S,onScrollPositionChange:g,unstyled:v,variant:w,viewportProps:E,scrollbars:C,style:T,vars:A,onBottomReached:N,onTopReached:_,startScrollPosition:j,verticalScrollbarPosition:L,onOverflowChange:k,...D}=ue("ScrollAreaAutosize",H0,n),H=x.useRef(null),[te,le]=x.useState(null),oe=j0([S,H,x.useCallback(ce=>{le(O=>O===ce?O:ce)},[])]),ee=x.useRef(!1),F=x.useRef(!1),V=x.useEffectEvent(()=>{const ce=H.current;if(!ce||!k)return;const O=ce.scrollHeight>ce.clientHeight;O!==ee.current&&(F.current?k(O):(F.current=!0,O&&k(!0)),ee.current=O)});return va(k?te:null,V),y.jsx(fe,{...D,variant:w,style:[{display:"flex",overflow:"hidden"},T],children:y.jsx(fe,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...C==="y"&&{minWidth:0},...C==="x"&&{minHeight:0},...C==="xy"&&{minWidth:0,minHeight:0},...C===!1&&{minWidth:0,minHeight:0}},children:y.jsx($n,{classNames:r,styles:o,scrollHideDelay:u,scrollbarSize:s,type:f,dir:m,offsetScrollbars:p,overscrollBehavior:h,viewportRef:oe,onScrollPositionChange:g,unstyled:v,variant:w,viewportProps:E,vars:A,scrollbars:C,onBottomReached:N,onTopReached:_,startScrollPosition:j,verticalScrollbarPosition:L,"data-autosize":"true",children:l})})})});$n.classes=Nm;$n.varsResolver=U0;Um.displayName="@mantine/core/ScrollAreaAutosize";Um.classes=Nm;$n.Autosize=Um;var Y0={root:"m_87cf2631"};const rE={__staticSelector:"UnstyledButton"},zl=Kt(n=>{const l=ue("UnstyledButton",rE,n),{className:r,component:o="button",__staticSelector:s,unstyled:u,classNames:f,styles:m,style:p,attributes:h,...S}=l;return y.jsx(fe,{...je({name:s,props:l,classes:Y0,className:r,style:p,classNames:f,styles:m,unstyled:u,attributes:h})("root",{focusable:!0}),component:o,type:o==="button"?"button":void 0,...S})});zl.classes=Y0;zl.displayName="@mantine/core/UnstyledButton";var q0={root:"m_515a97f8"};const Ym=me(n=>{const l=ue("VisuallyHidden",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,attributes:p,...h}=l;return y.jsx(fe,{component:"span",...je({name:"VisuallyHidden",classes:q0,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:p})("root"),...h})});Ym.classes=q0;Ym.displayName="@mantine/core/VisuallyHidden";var V0={root:"m_1b7284a3"};const G0=(n,{radius:l,shadow:r})=>({root:{"--paper-radius":l===void 0?void 0:Ht(l),"--paper-shadow":dm(r)}}),Ln=Kt(n=>{const l=ue("Paper",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,withBorder:m,vars:p,radius:h,shadow:S,variant:g,mod:v,attributes:w,...E}=l,C=je({name:"Paper",props:l,classes:V0,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:w,vars:p,varsResolver:G0});return y.jsx(fe,{mod:[{"data-with-border":m},v],...C("root"),variant:g,...E})});Ln.classes=V0;Ln.varsResolver=G0;Ln.displayName="@mantine/core/Paper";function db(n,l,r,o){return n==="center"||o==="center"?{top:l}:n==="end"?{bottom:r}:n==="start"?{top:r}:{}}function mb(n,l,r,o,s){return n==="center"||o==="center"?{left:l}:n==="end"?{[s==="ltr"?"right":"left"]:r}:n==="start"?{[s==="ltr"?"left":"right"]:r}:{}}const iE={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function sE({position:n,arrowSize:l,dir:r}){const[o,s]=n.split("-");if(!s)return;const u={width:l,height:l,position:"absolute"};if(o==="bottom"){const f=s==="start",m=f?r==="ltr"?"left":"right":r==="ltr"?"right":"left";return{...u,top:-l,[m]:0,clipPath:f!==(r==="rtl")?"polygon(0% 0%, 0% 100%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}if(o==="top"){const f=s==="start",m=f?r==="ltr"?"left":"right":r==="ltr"?"right":"left";return{...u,bottom:-l,[m]:0,clipPath:f!==(r==="rtl")?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 100% 0%, 100% 100%)"}}if(o==="left")return{...u,right:-l,[s==="start"?"top":"bottom"]:0,clipPath:s==="start"?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 0% 100%, 100% 100%)"};if(o==="right")return{...u,left:-l,[s==="start"?"top":"bottom"]:0,clipPath:s==="start"?"polygon(0% 0%, 100% 0%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}function cE({position:n,arrowSize:l,arrowOffset:r,arrowRadius:o,arrowPosition:s,arrowX:u,arrowY:f,dir:m}){if(s==="merge"){const v=sE({position:n,arrowSize:l,dir:m});if(v)return v}const[p,h="center"]=n.split("-"),S={width:l,height:l,transform:"rotate(45deg)",position:"absolute",[iE[p]]:o},g=-l/2;return p==="left"?{...S,...db(h,f,r,s),right:g,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...S,...db(h,f,r,s),left:g,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...S,...mb(h,u,r,s,m),bottom:g,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...S,...mb(h,u,r,s,m),top:g,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}function X0({position:n,dir:l}){const[r,o]=n.split("-");if(!o)return;const s=o==="start"&&l==="ltr"||o==="end"&&l==="rtl";if(r==="bottom")return s?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(r==="top")return s?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(r==="left")return o==="start"?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(r==="right")return o==="start"?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function lc({position:n,arrowSize:l,arrowOffset:r,arrowRadius:o,arrowPosition:s,visible:u,arrowX:f,arrowY:m,style:p,...h}){const{dir:S}=ol();return u?y.jsx("div",{role:"presentation",...h,style:{...p,...cE({position:n,arrowSize:l,arrowOffset:r,arrowRadius:o,arrowPosition:s,dir:S,arrowX:f,arrowY:m})}}):null}lc.displayName="@mantine/core/FloatingArrow";function qm(n,l){if(n==="rtl"&&(l.includes("right")||l.includes("left"))){const[r,o]=l.split("-"),s=r==="right"?"left":"right";return o===void 0?s:`${s}-${o}`}return l}function uE({open:n,close:l,openDelay:r,closeDelay:o}){const s=x.useRef(-1),u=x.useRef(-1),f=()=>{window.clearTimeout(s.current),window.clearTimeout(u.current)},m=()=>{f(),r===0||r===void 0?n():s.current=window.setTimeout(n,r)},p=()=>{f(),o===0||o===void 0?l():u.current=window.setTimeout(l,o)};return x.useEffect(()=>f,[]),{openDropdown:m,closeDropdown:p}}var I0={root:"m_9814e45f"};const fE={zIndex:Qt("modal")},Z0=(n,{gradient:l,color:r,backgroundOpacity:o,blur:s,radius:u,zIndex:f})=>({root:{"--overlay-bg":l||(r!==void 0||o!==void 0)&&fa(r||"#000",o??.6)||void 0,"--overlay-filter":s?`blur(${K(s)})`:void 0,"--overlay-radius":u===void 0?void 0:Ht(u),"--overlay-z-index":f==null?void 0:f.toString()}}),ci=Kt(n=>{const l=ue("Overlay",fE,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,fixed:p,center:h,children:S,radius:g,zIndex:v,gradient:w,blur:E,color:C,backgroundOpacity:T,mod:A,attributes:N,..._}=l;return y.jsx(fe,{...je({name:"Overlay",props:l,classes:I0,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:N,vars:m,varsResolver:Z0})("root"),mod:[{center:h,fixed:p},A],..._,children:S})});ci.classes=I0;ci.varsResolver=Z0;ci.displayName="@mantine/core/Overlay";function jd(n){const l=document.createElement("div");return l.setAttribute("data-portal","true"),typeof n.className=="string"&&l.classList.add(...n.className.split(" ").filter(Boolean)),typeof n.style=="object"&&Object.assign(l.style,n.style),typeof n.id=="string"&&l.setAttribute("id",n.id),l}function dE({target:n,reuseTargetNode:l,...r}){if(n)return typeof n=="string"?document.querySelector(n)||jd(r):n;if(l){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const s=jd(r);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return jd(r)}const mE={reuseTargetNode:!0},Vm=me(n=>{const{children:l,target:r,reuseTargetNode:o,ref:s,...u}=ue("Portal",mE,n),[f,m]=x.useState(!1),p=x.useRef(null);return el(()=>(m(!0),p.current=dE({target:r,reuseTargetNode:o,...u}),Vd(s,p.current),!r&&!o&&p.current&&document.body.appendChild(p.current),()=>{!r&&!o&&p.current&&document.body.removeChild(p.current)}),[r]),!f||!p.current?null:gm.createPortal(y.jsx(y.Fragment,{children:l}),p.current)});Vm.displayName="@mantine/core/Portal";const Xa=me(({withinPortal:n=!0,children:l,...r})=>wm()==="test"||!n?y.jsx(y.Fragment,{children:l}):y.jsx(Vm,{...r,children:l}));Xa.displayName="@mantine/core/OptionalPortal";const Jr=n=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${n==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),ks={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:{...Jr("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Jr("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Jr("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Jr("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Jr("top"),common:{transformOrigin:"top right"}}},pb={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function hb({transition:n,state:l,duration:r,timingFunction:o}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${r}ms`,transitionTimingFunction:o};return typeof n=="string"?n in ks?{transitionProperty:ks[n].transitionProperty,...s,...ks[n].common,...ks[n][pb[l]]}:{}:{transitionProperty:n.transitionProperty,...s,...n.common,...n[pb[l]]}}function pE({duration:n,exitDuration:l,timingFunction:r,mounted:o,onEnter:s,onExit:u,onEntered:f,onExited:m,enterDelay:p,exitDelay:h}){const S=cn(),g=vm(),v=S.respectReducedMotion?g:!1,[w,E]=x.useState(v?0:n),[C,T]=x.useState(o?"entered":"exited"),A=x.useRef(-1),N=x.useRef(-1),_=x.useRef(-1);function j(){window.clearTimeout(A.current),window.clearTimeout(N.current),cancelAnimationFrame(_.current)}const L=D=>{j();const H=D?s:u,te=D?f:m,le=v?0:D?n:l;E(le),le===0?(typeof H=="function"&&H(),typeof te=="function"&&te(),T(D?"entered":"exited")):_.current=requestAnimationFrame(()=>{K2.flushSync(()=>{T(D?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof H=="function"&&H(),T(D?"entering":"exiting"),A.current=window.setTimeout(()=>{typeof te=="function"&&te(),T(D?"entered":"exited")},le)})})},k=D=>{if(j(),typeof(D?p:h)!="number"){L(D);return}N.current=window.setTimeout(()=>{L(D)},D?p:h)};return hm(()=>{k(o)},[o]),x.useEffect(()=>()=>{j()},[]),{transitionDuration:w,transitionStatus:C,transitionTimingFunction:r||"ease"}}function _l({keepMounted:n,keepMountedMode:l="activity",transition:r="fade",duration:o=250,exitDuration:s=o,mounted:u,children:f,timingFunction:m="ease",onExit:p,onEntered:h,onEnter:S,onExited:g,enterDelay:v,exitDelay:w}){const E=wm(),{transitionDuration:C,transitionStatus:T,transitionTimingFunction:A}=pE({mounted:u,exitDuration:s,duration:o,timingFunction:m,onExit:p,onEntered:h,onEnter:S,onExited:g,enterDelay:v,exitDelay:w});if(E==="test")return u?y.jsx(y.Fragment,{children:f({})}):n?f({display:"none"}):null;if(C===0)return n?l==="display-none"?u?y.jsx(y.Fragment,{children:f({})}):f({display:"none"}):y.jsx(x.Activity,{mode:u?"visible":"hidden",children:f({})}):u?y.jsx(y.Fragment,{children:f({})}):null;const N=T==="exited";if(n){const _=f(N?l==="display-none"?{display:"none"}:{}:hb({transition:r,duration:C,state:T,timingFunction:A}));return l==="display-none"?_:y.jsx(x.Activity,{mode:N?"hidden":"visible",children:_})}return N?null:y.jsx(y.Fragment,{children:f(hb({transition:r,duration:C,state:T,timingFunction:A}))})}_l.displayName="@mantine/core/Transition";const hE={duration:100,transition:"fade"};function vb(n,l){return{...hE,...l,...n}}const[vE,Sc]=Ml("Popover component was not found in the tree");function Q0({childProps:n,disabled:l,opened:r,longPressDelay:o=500,setReference:s,open:u}){const f=x.useRef(!1),m=x.useRef(!1),p=x.useRef(null),h=x.useRef(l);h.current=l;const S=(E,C,T)=>{s({getBoundingClientRect:()=>({x:E,y:C,width:0,height:0,top:C,left:E,right:E,bottom:C,toJSON:()=>{}}),contextElement:T}),u()},g=at(n.onMouseDown,E=>{l||E.button===2&&E.stopPropagation()}),v=at(n.onContextMenu,E=>{l||E.defaultPrevented||(E.preventDefault(),!m.current&&(S(E.clientX,E.clientY,E.currentTarget),f.current&&(m.current=!0)))}),w=Q2(E=>{if(h.current||m.current)return;const C=E,T=C.touches[0]??C.changedTouches[0];T&&(S(T.clientX,T.clientY,p.current),m.current=!0)},{threshold:o,events:["touch"],cancelOnMove:!0,onStart:E=>{f.current=!0,m.current=!1,p.current=E.currentTarget},onFinish:E=>{f.current=!1,m.current=!1,h.current||E.preventDefault()},onCancel:()=>{f.current=!1,m.current=!1}});return{onContextMenu:v,onMouseDown:g,onTouchStart:at(n.onTouchStart,w.onTouchStart),onTouchEnd:at(n.onTouchEnd,w.onTouchEnd),onTouchCancel:at(n.onTouchCancel,w.onTouchCancel),onTouchMove:at(n.onTouchMove,w.onTouchMove),style:l?n.style:{...n.style,WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"},"data-expanded":r?!0:void 0}}function K0(n){const{children:l,disabled:r,longPressDelay:o}=ue("PopoverContextMenu",null,n),s=Ol(l);if(!s)throw new Error("Popover.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=Sc();return x.cloneElement(s,Q0({childProps:s.props,disabled:r||u.disabled,opened:u.opened,longPressDelay:o,setReference:u.reference,open:()=>{u.opened||u.onToggle()}}))}K0.displayName="@mantine/core/PopoverContextMenu";function xc({children:n,active:l=!0,refProp:r="ref",innerRef:o}){const s=it(B2(l),o),u=Ol(n);return u?x.cloneElement(u,{[r]:s}):n}function F0(n){return y.jsx(Ym,{tabIndex:-1,"data-autofocus":!0,...n})}xc.displayName="@mantine/core/FocusTrap";F0.displayName="@mantine/core/FocusTrapInitialFocus";xc.InitialFocus=F0;var J0={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const Gm=me(n=>{var N,_,j,L;const l=ue("PopoverDropdown",null,n),{className:r,style:o,vars:s,children:u,onKeyDownCapture:f,variant:m,classNames:p,styles:h,ref:S,...g}=l,v=Sc(),{dir:w}=ol(),E=v.arrowPosition==="merge"&&v.withArrow?X0({position:v.placement,dir:w}):void 0,C=qb({opened:v.opened,shouldReturnFocus:v.returnFocus}),T=v.withRoles?{"aria-labelledby":v.getTargetId(),id:v.getDropdownId(),role:"dialog",tabIndex:-1}:{},A=it(S,v.floating);return v.disabled?null:y.jsx(Xa,{...v.portalProps,withinPortal:v.withinPortal,children:y.jsx(_l,{mounted:v.opened,...v.transitionProps,transition:((N=v.transitionProps)==null?void 0:N.transition)||"fade",duration:((_=v.transitionProps)==null?void 0:_.duration)??150,keepMounted:v.keepMounted,keepMountedMode:v.keepMountedMode,exitDuration:typeof((j=v.transitionProps)==null?void 0:j.exitDuration)=="number"?v.transitionProps.exitDuration:(L=v.transitionProps)==null?void 0:L.duration,children:k=>{var D;return y.jsx(xc,{active:v.trapFocus&&v.opened,innerRef:A,children:y.jsxs(fe,{...T,...g,variant:m,onKeyDownCapture:R2(()=>{var H,te;(H=v.onClose)==null||H.call(v),(te=v.onDismiss)==null||te.call(v)},{active:v.closeOnEscape,onTrigger:C,onKeyDown:f}),"data-position":v.placement,"data-fixed":v.floatingStrategy==="fixed"||void 0,...v.getStyles("dropdown",{className:r,props:l,classNames:p,styles:h,style:[{...k,...E,zIndex:v.zIndex,top:v.y??0,left:v.x??0,width:v.width==="target"?void 0:K(v.width),...v.referenceHidden?{display:"none"}:null},(D=v.resolvedStyles)==null?void 0:D.dropdown,h==null?void 0:h.dropdown,o]}),children:[u,y.jsx(lc,{ref:v.arrowRef,arrowX:v.arrowX,arrowY:v.arrowY,visible:v.withArrow,position:v.placement,arrowSize:v.arrowSize,arrowRadius:v.arrowRadius,arrowOffset:v.arrowOffset,arrowPosition:v.arrowPosition,...v.getStyles("arrow",{props:l,classNames:p,styles:h})})]})})}})})});Gm.classes=J0;Gm.displayName="@mantine/core/PopoverDropdown";const gE={refProp:"ref",popupType:"dialog"},P0=me(n=>{const{children:l,refProp:r,popupType:o,ref:s,...u}=ue("PopoverTarget",gE,n),f=Ol(l);if(!f)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 m=u,p=Sc(),h=it(p.reference,sc(f),s),S=p.withRoles?{"aria-haspopup":o,"aria-expanded":p.opened,"aria-controls":p.opened?p.getDropdownId():void 0,id:p.getTargetId()}:{},g=f.props;return x.cloneElement(f,{...m,...S,...p.targetProps,className:gt(p.targetProps.className,m.className,g.className),[r]:h,...p.controlled?null:{onClick:v=>{var w;p.onToggle(),(w=g.onClick)==null||w.call(g,v)}}})});P0.displayName="@mantine/core/PopoverTarget";function yE(n){if(n===void 0)return{shift:!0,flip:!0};const l={...n};return n.shift===void 0&&(l.shift=!0),n.flip===void 0&&(l.flip=!0),l}function bE(n,l,r,o){const s=yE(n.middlewares),u=[M0(n.offset),HR()];if(s.flip&&!r){const f=typeof s.flip=="boolean"?{}:s.flip,m=o?{fallbackStrategy:"initialPlacement",...f}:f;u.push(em(m))}if(s.shift){const f=typeof s.shift=="boolean"?{}:s.shift;u.push(Lm(m=>{const p=m.placement.startsWith("top")||m.placement.startsWith("bottom");return{limiter:BR(),padding:5,...n.width==="target"&&p?{mainAxis:!1}:null,...f}}))}return s.inline&&u.push(typeof s.inline=="boolean"?ei():ei(s.inline)),u.push(O0({element:n.arrowRef,padding:n.arrowOffset})),(s.size||n.width==="target")&&u.push(kR({...typeof s.size=="boolean"?{}:s.size,apply({rects:f,availableWidth:m,availableHeight:p,...h}){var g;const S=((g=l().refs.floating.current)==null?void 0:g.style)??{};s.size&&(typeof s.size=="object"&&s.size.apply?s.size.apply({rects:f,availableWidth:m,availableHeight:p,...h}):Object.assign(S,{maxWidth:`${m}px`,maxHeight:`${p}px`})),n.width==="target"&&Object.assign(S,{width:`${f.reference.width}px`})}})),u}function SE(n){const[l,r]=tl({value:n.opened,defaultValue:n.defaultOpened,finalValue:!1,onChange:n.onChange}),o=x.useRef(l),[s,u]=x.useState(null),f=n.preventPositionChangeWhenVisible!==!1,m=x.useRef(l);l!==m.current&&(m.current=l,l&&s!==null&&u(null));const p=x.useCallback(()=>u(null),[]),h=()=>{l&&!n.disabled&&r(!1)},S=()=>{n.disabled||r(!l)},g=bc({open:l,strategy:n.strategy,placement:f?s??n.position:n.position,middleware:bE(n,()=>g,f&&s!==null,f),whileElementsMounted:n.keepMounted?void 0:Wd});x.useEffect(()=>{if(!n.keepMounted)return;const E=g.refs.reference.current,C=g.refs.floating.current;if(l&&E&&C)return Wd(E,C,g.update)},[n.keepMounted,l,g.update,g.elements.reference,g.elements.floating]);const v=x.useRef(!1);el(()=>{if(!l){v.current=!1;return}if(!f||s!==null)return;const E=g.refs.floating.current;if(!(!E||E.offsetHeight===0||E.offsetWidth===0)){if(!v.current){v.current=!0,g.update();return}g.isPositioned&&u(g.placement)}},[f,l,g.isPositioned,g.placement,s,g.update]);const w=x.useRef(g.placement);return el(()=>{var E;w.current!==g.placement&&(w.current=g.placement,(E=n.onPositionChange)==null||E.call(n,g.placement))},[g.placement]),hm(()=>{var E,C;l!==o.current&&(l?(C=n.onOpen)==null||C.call(n):(E=n.onClose)==null||E.call(n)),o.current=l},[l,n.onClose,n.onOpen]),{floating:g,controlled:typeof n.opened=="boolean",opened:l,onClose:h,onToggle:S,resetLockedPlacement:p}}const xE={position:"bottom",offset:8,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,hideDetached:!0,preventPositionChangeWhenVisible:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:Qt("popover"),__staticSelector:"Popover",width:"max-content"},W0=(n,{radius:l,shadow:r})=>({dropdown:{"--popover-radius":l===void 0?void 0:Ht(l),"--popover-shadow":dm(r)}});function vt(n){var Hl,rl,Dt,En,Wt,St,en;const l=ue("Popover",xE,n),{children:r,position:o,offset:s,onPositionChange:u,opened:f,transitionProps:m,onExitTransitionEnd:p,onEnterTransitionEnd:h,width:S,middlewares:g,withArrow:v,arrowSize:w,arrowOffset:E,arrowRadius:C,arrowPosition:T,unstyled:A,classNames:N,styles:_,closeOnClickOutside:j,withinPortal:L,portalProps:k,closeOnEscape:D,clickOutsideEvents:H,trapFocus:te,onClose:le,onDismiss:oe,onOpen:ee,onChange:F,zIndex:V,radius:ce,shadow:O,id:B,defaultOpened:U,__staticSelector:Z,withRoles:P,disabled:M,returnFocus:Y,variant:J,keepMounted:ae,keepMountedMode:se,vars:de,floatingStrategy:ge,withOverlay:pe,overlayProps:he,hideDetached:Me,attributes:Se,preventPositionChangeWhenVisible:Ce,...ie}=l,ye=je({name:Z,props:l,classes:J0,classNames:N,styles:_,unstyled:A,attributes:Se,rootSelector:"dropdown",vars:de,varsResolver:W0}),{resolvedStyles:Ne}=uc({classNames:N,styles:_,props:l}),Te=x.useRef(null),[Ve,ut]=x.useState(null),[jt,fn]=x.useState(null),{dir:dn}=ol(),zt=wm(),Pt=kn(B),ze=SE({middlewares:g,width:S,position:qm(dn,o),offset:typeof s=="number"?s+(v?w/2:0):s,arrowRef:Te,arrowOffset:E,onPositionChange:u,opened:f,defaultOpened:U,onChange:F,onOpen:ee,onClose:le,onDismiss:oe,strategy:ge,disabled:M,preventPositionChangeWhenVisible:Ce,keepMounted:ae});M2(()=>{j&&(ze.onClose(),oe==null||oe())},H,[Ve,jt]);const kl=x.useCallback(Ee=>{ut(Ee),ze.floating.refs.setReference(Ee)},[ze.floating.refs.setReference]),yt=x.useCallback(Ee=>{fn(Ee),ze.floating.refs.setFloating(Ee)},[ze.floating.refs.setFloating]),xa=x.useCallback(()=>{var Ee;(Ee=m==null?void 0:m.onExited)==null||Ee.call(m),p==null||p(),ze.resetLockedPlacement()},[m==null?void 0:m.onExited,p,ze.resetLockedPlacement]),Ye=x.useCallback(()=>{var Ee;(Ee=m==null?void 0:m.onEntered)==null||Ee.call(m),h==null||h()},[m==null?void 0:m.onEntered,h]);return y.jsxs(vE,{value:{returnFocus:Y,disabled:M,controlled:ze.controlled,reference:kl,floating:yt,x:ze.floating.x,y:ze.floating.y,arrowX:(Dt=(rl=(Hl=ze.floating)==null?void 0:Hl.middlewareData)==null?void 0:rl.arrow)==null?void 0:Dt.x,arrowY:(St=(Wt=(En=ze.floating)==null?void 0:En.middlewareData)==null?void 0:Wt.arrow)==null?void 0:St.y,opened:ze.opened,arrowRef:Te,transitionProps:{...m,onExited:xa,onEntered:Ye},width:S,withArrow:v,arrowSize:w,arrowOffset:E,arrowRadius:C,arrowPosition:T,placement:ze.floating.placement,trapFocus:te,withinPortal:L,portalProps:k,zIndex:V,radius:ce,shadow:O,closeOnEscape:D,onDismiss:oe,onClose:ze.onClose,onToggle:ze.onToggle,getTargetId:()=>Pt,getDropdownId:()=>`${Pt}-dropdown`,withRoles:P,targetProps:ie,__staticSelector:Z,classNames:N,styles:_,unstyled:A,variant:J,keepMounted:ae,keepMountedMode:se,getStyles:ye,resolvedStyles:Ne,floatingStrategy:ge,referenceHidden:Me&&zt!=="test"?(en=ze.floating.middlewareData.hide)==null?void 0:en.referenceHidden:!1},children:[r,pe&&y.jsx(_l,{transition:"fade",mounted:ze.opened,duration:(m==null?void 0:m.duration)||250,exitDuration:(m==null?void 0:m.exitDuration)||250,children:Ee=>y.jsx(Xa,{withinPortal:L,children:y.jsx(ci,{...he,...ye("overlay",{className:he==null?void 0:he.className,style:[Ee,he==null?void 0:he.style]})})})})]})}vt.Target=P0;vt.Dropdown=Gm;vt.ContextMenu=K0;vt.varsResolver=W0;vt.displayName="@mantine/core/Popover";vt.extend=n=>n;vt.withProps=n=>{const l=r=>y.jsx(vt,{...n,...r});return l.extend=vt.extend,l.displayName=`WithProps(${vt.displayName})`,l};var jn={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 e1=({className:n,...l})=>y.jsxs(fe,{component:"span",className:gt(jn.barsLoader,n),...l,children:[y.jsx("span",{className:jn.bar}),y.jsx("span",{className:jn.bar}),y.jsx("span",{className:jn.bar})]});e1.displayName="@mantine/core/Bars";const t1=({className:n,...l})=>y.jsxs(fe,{component:"span",className:gt(jn.dotsLoader,n),...l,children:[y.jsx("span",{className:jn.dot}),y.jsx("span",{className:jn.dot}),y.jsx("span",{className:jn.dot})]});t1.displayName="@mantine/core/Dots";const n1=({className:n,...l})=>y.jsx(fe,{component:"span",className:gt(jn.ovalLoader,n),...l});n1.displayName="@mantine/core/Oval";const l1={bars:e1,oval:n1,dots:t1},wE={loaders:l1,type:"oval"},a1=(n,{size:l,color:r})=>({root:{"--loader-size":Je(l,"loader-size"),"--loader-color":r?ha(r,n):void 0}}),Qa=me(n=>{const l=ue("Loader",wE,n),{size:r,color:o,type:s,vars:u,className:f,style:m,classNames:p,styles:h,unstyled:S,loaders:g,variant:v,children:w,attributes:E,...C}=l,T=je({name:"Loader",props:l,classes:jn,className:f,style:m,classNames:p,styles:h,unstyled:S,attributes:E,vars:u,varsResolver:a1});return w?y.jsx(fe,{...T("root"),...C,children:w}):y.jsx(fe,{...T("root"),component:g[s],variant:v,size:r,...C})});Qa.defaultLoaders=l1;Qa.classes=jn;Qa.varsResolver=a1;Qa.displayName="@mantine/core/Loader";var Fo={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const CE={orientation:"horizontal"},o1=(n,{borderWidth:l})=>({group:{"--ai-border-width":K(l)}}),wc=me(n=>{const l=ue("ActionIconGroup",CE,n),{className:r,style:o,classNames:s,styles:u,unstyled:f,orientation:m,vars:p,borderWidth:h,variant:S,mod:g,attributes:v,...w}=l;return y.jsx(fe,{...je({name:"ActionIconGroup",props:l,classes:Fo,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:v,vars:p,varsResolver:o1,rootSelector:"group"})("group"),variant:S,mod:[{"data-orientation":m},g],role:"group",...w})});wc.classes=Fo;wc.varsResolver=o1;wc.displayName="@mantine/core/ActionIconGroup";const r1=(n,{radius:l,color:r,gradient:o,variant:s,autoContrast:u,size:f})=>{const m=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:o,variant:s||"filled",autoContrast:u});return{groupSection:{"--section-height":Je(f,"section-height"),"--section-padding-x":Je(f,"section-padding-x"),"--section-fz":Tt(f),"--section-radius":l===void 0?void 0:Ht(l),"--section-bg":r||s?m.background:void 0,"--section-color":m.color,"--section-bd":r||s?m.border:void 0}}},Cc=me(n=>{const l=ue("ActionIconGroupSection",null,n),{className:r,style:o,classNames:s,styles:u,unstyled:f,vars:m,variant:p,gradient:h,radius:S,autoContrast:g,attributes:v,...w}=l;return y.jsx(fe,{...je({name:"ActionIconGroupSection",props:l,classes:Fo,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:v,vars:m,varsResolver:r1,rootSelector:"groupSection"})("groupSection"),variant:p,...w})});Cc.classes=Fo;Cc.varsResolver=r1;Cc.displayName="@mantine/core/ActionIconGroupSection";const i1=(n,{size:l,radius:r,variant:o,gradient:s,color:u,autoContrast:f})=>{const m=n.variantColorResolver({color:u||n.primaryColor,theme:n,gradient:s,variant:o||"filled",autoContrast:f});return{root:{"--ai-size":Je(l,"ai-size"),"--ai-radius":r===void 0?void 0:Ht(r),"--ai-bg":u||o?m.background:void 0,"--ai-hover":u||o?m.hover:void 0,"--ai-hover-color":u||o?m.hoverColor:void 0,"--ai-color":m.color,"--ai-bd":u||o?m.border:void 0}}},ba=Kt(n=>{const l=ue("ActionIcon",null,n),{className:r,unstyled:o,variant:s,classNames:u,styles:f,style:m,loading:p,loaderProps:h,size:S,color:g,radius:v,__staticSelector:w,gradient:E,vars:C,children:T,disabled:A,"data-disabled":N,autoContrast:_,mod:j,attributes:L,...k}=l,D=je({name:["ActionIcon",w],props:l,className:r,style:m,classes:Fo,classNames:u,styles:f,unstyled:o,attributes:L,vars:C,varsResolver:i1});return y.jsxs(zl,{...D("root",{active:!A&&!p&&!N}),"aria-busy":p||void 0,...k,unstyled:o,variant:s,size:S,disabled:A||p,mod:[{loading:p,disabled:A||N},j],children:[typeof p=="boolean"&&y.jsx(_l,{mounted:p,transition:"slide-down",duration:150,children:H=>y.jsx(fe,{component:"span",...D("loader",{style:H}),"aria-hidden":!0,children:y.jsx(Qa,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...h})})}),y.jsx(fe,{component:"span",mod:{loading:p},...D("icon"),children:T})]})});ba.classes=Fo;ba.varsResolver=i1;ba.displayName="@mantine/core/ActionIcon";ba.Group=wc;ba.GroupSection=Cc;function s1({size:n="var(--cb-icon-size, 70%)",style:l,...r}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...l,width:n,height:n},...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"})})}s1.displayName="@mantine/core/CloseIcon";var c1={root:"m_86a44da5","root--subtle":"m_220c80f2"};const TE={variant:"subtle"},u1=(n,{size:l,radius:r,iconSize:o})=>({root:{"--cb-size":Je(l,"cb-size"),"--cb-radius":r===void 0?void 0:Ht(r),"--cb-icon-size":K(o)}}),Ka=Kt(n=>{const l=ue("CloseButton",TE,n),{iconSize:r,children:o,vars:s,radius:u,className:f,classNames:m,style:p,styles:h,unstyled:S,"data-disabled":g,disabled:v,variant:w,icon:E,mod:C,attributes:T,__staticSelector:A,...N}=l,_=je({name:A||"CloseButton",props:l,className:f,style:p,classes:c1,classNames:m,styles:h,unstyled:S,attributes:T,vars:s,varsResolver:u1});return y.jsxs(zl,{...N,unstyled:S,variant:w,disabled:v,mod:[{disabled:v||g},C],..._("root",{variant:w,active:!v&&!g}),children:[E||y.jsx(s1,{}),o]})});Ka.classes=c1;Ka.varsResolver=u1;Ka.displayName="@mantine/core/CloseButton";function RE(n){return x.Children.toArray(n).filter(Boolean)}var f1={root:"m_4081bf90"};const EE={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},d1=(n,{grow:l,preventGrowOverflow:r,gap:o,align:s,justify:u,wrap:f},{childWidth:m})=>({root:{"--group-child-width":l&&r?m:void 0,"--group-gap":si(o),"--group-align":s,"--group-justify":u,"--group-wrap":f}}),Ct=me(n=>{const l=ue("Group",EE,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,children:m,gap:p,align:h,justify:S,wrap:g,grow:v,preventGrowOverflow:w,vars:E,variant:C,__size:T,mod:A,attributes:N,..._}=l,j=RE(m),L=j.length,k=si(p??"md");return y.jsx(fe,{...je({name:"Group",props:l,stylesCtx:{childWidth:`calc(${100/L}% - (${k} - ${k} / ${L}))`},className:o,style:s,classes:f1,classNames:r,styles:u,unstyled:f,attributes:N,vars:E,varsResolver:d1})("root"),variant:C,mod:[{grow:v},A],size:T,..._,children:j})});Ct.classes=f1;Ct.varsResolver=d1;Ct.displayName="@mantine/core/Group";const[AE,Dl]=Ml("ModalBase component was not found in tree");function _E({opened:n,transitionDuration:l}){const[r,o]=x.useState(n),s=x.useRef(-1),u=vm()?0:l;return x.useEffect(()=>(n?(o(!0),window.clearTimeout(s.current)):u===0?o(!1):s.current=window.setTimeout(()=>o(!1),u),()=>window.clearTimeout(s.current)),[n,u]),r}function NE({id:n,transitionProps:l,opened:r,trapFocus:o,closeOnEscape:s,onClose:u,returnFocus:f}){const m=kn(n),[p,h]=x.useState(!1),[S,g]=x.useState(!1),v=_E({opened:r,transitionDuration:typeof(l==null?void 0:l.duration)=="number"?l==null?void 0:l.duration:200});return Ib("keydown",w=>{var E;w.key==="Escape"&&s&&!w.isComposing&&r&&((E=w.target)==null?void 0:E.getAttribute("data-mantine-stop-propagation"))!=="true"&&u()},{capture:!0}),qb({opened:r,shouldReturnFocus:o&&f}),{_id:m,titleMounted:p,bodyMounted:S,shouldLockScroll:v,setTitleMounted:h,setBodyMounted:g}}var Jn=function(){return Jn=Object.assign||function(l){for(var r,o=1,s=arguments.length;o<s;o++){r=arguments[o];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(l[u]=r[u])}return l},Jn.apply(this,arguments)};function m1(n,l){var r={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&l.indexOf(o)<0&&(r[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(n);s<o.length;s++)l.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(n,o[s])&&(r[o[s]]=n[o[s]]);return r}function ME(n,l,r){if(r||arguments.length===2)for(var o=0,s=l.length,u;o<s;o++)(u||!(o in l))&&(u||(u=Array.prototype.slice.call(l,0,o)),u[o]=l[o]);return n.concat(u||Array.prototype.slice.call(l))}var Qs="right-scroll-bar-position",Ks="width-before-scroll-bar",OE="with-scroll-bars-hidden",jE="--removed-body-scroll-bar-size";function zd(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function zE(n,l){var r=x.useState(function(){return{value:n,callback:l,facade:{get current(){return r.value},set current(o){var s=r.value;s!==o&&(r.value=o,r.callback(o,s))}}}})[0];return r.callback=l,r.facade}var DE=typeof window<"u"?x.useLayoutEffect:x.useEffect,gb=new WeakMap;function $E(n,l){var r=zE(null,function(o){return n.forEach(function(s){return zd(s,o)})});return DE(function(){var o=gb.get(r);if(o){var s=new Set(o),u=new Set(n),f=r.current;s.forEach(function(m){u.has(m)||zd(m,null)}),u.forEach(function(m){s.has(m)||zd(m,f)})}gb.set(r,n)},[n]),r}function LE(n){return n}function BE(n,l){l===void 0&&(l=LE);var r=[],o=!1,s={read:function(){if(o)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]:n},useMedium:function(u){var f=l(u,o);return r.push(f),function(){r=r.filter(function(m){return m!==f})}},assignSyncMedium:function(u){for(o=!0;r.length;){var f=r;r=[],f.forEach(u)}r={push:function(m){return u(m)},filter:function(){return r}}},assignMedium:function(u){o=!0;var f=[];if(r.length){var m=r;r=[],m.forEach(u),f=r}var p=function(){var S=f;f=[],S.forEach(u)},h=function(){return Promise.resolve().then(p)};h(),r={push:function(S){f.push(S),h()},filter:function(S){return f=f.filter(S),r}}}};return s}function kE(n){n===void 0&&(n={});var l=BE(null);return l.options=Jn({async:!0,ssr:!1},n),l}var p1=function(n){var l=n.sideCar,r=m1(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=l.read();if(!o)throw new Error("Sidecar medium not found");return x.createElement(o,Jn({},r))};p1.isSideCarExport=!0;function HE(n,l){return n.useMedium(l),p1}var h1=kE(),Dd=function(){},Tc=x.forwardRef(function(n,l){var r=x.useRef(null),o=x.useState({onScrollCapture:Dd,onWheelCapture:Dd,onTouchMoveCapture:Dd}),s=o[0],u=o[1],f=n.forwardProps,m=n.children,p=n.className,h=n.removeScrollBar,S=n.enabled,g=n.shards,v=n.sideCar,w=n.noRelative,E=n.noIsolation,C=n.inert,T=n.allowPinchZoom,A=n.as,N=A===void 0?"div":A,_=n.gapMode,j=m1(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=v,k=$E([r,l]),D=Jn(Jn({},j),s);return x.createElement(x.Fragment,null,S&&x.createElement(L,{sideCar:h1,removeScrollBar:h,shards:g,noRelative:w,noIsolation:E,inert:C,setCallbacks:u,allowPinchZoom:!!T,lockRef:r,gapMode:_}),f?x.cloneElement(x.Children.only(m),Jn(Jn({},D),{ref:k})):x.createElement(N,Jn({},D,{className:p,ref:k}),m))});Tc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Tc.classNames={fullWidth:Ks,zeroRight:Qs};var UE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YE(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=UE();return l&&n.setAttribute("nonce",l),n}function qE(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function VE(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var GE=function(){var n=0,l=null;return{add:function(r){n==0&&(l=YE())&&(qE(l,r),VE(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},XE=function(){var n=GE();return function(l,r){x.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&r])}},v1=function(){var n=XE(),l=function(r){var o=r.styles,s=r.dynamic;return n(o,s),null};return l},IE={left:0,top:0,right:0,gap:0},$d=function(n){return parseInt(n||"",10)||0},ZE=function(n){var l=window.getComputedStyle(document.body),r=l[n==="padding"?"paddingLeft":"marginLeft"],o=l[n==="padding"?"paddingTop":"marginTop"],s=l[n==="padding"?"paddingRight":"marginRight"];return[$d(r),$d(o),$d(s)]},QE=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return IE;var l=ZE(n),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,o-r+l[2]-l[0])}},KE=v1(),Xo="data-scroll-locked",FE=function(n,l,r,o){var s=n.left,u=n.top,f=n.right,m=n.gap;return r===void 0&&(r="margin"),`
54
+ .`.concat(OE,` {
55
55
  overflow: hidden `).concat(o,`;
56
- padding-right: `).concat(d,"px ").concat(o,`;
56
+ padding-right: `).concat(m,"px ").concat(o,`;
57
57
  }
58
- body[`).concat(Go,`] {
58
+ body[`).concat(Xo,`] {
59
59
  overflow: hidden `).concat(o,`;
60
60
  overscroll-behavior: contain;
61
61
  `).concat([l&&"position: relative ".concat(o,";"),r==="margin"&&`
@@ -64,96 +64,96 @@ ${f?`${d("light")}{${f}}`:""}`}function Ds({theme:n,color:l,colorScheme:r,name:o
64
64
  padding-right: `).concat(f,`px;
65
65
  margin-left:0;
66
66
  margin-top:0;
67
- margin-right: `).concat(d,"px ").concat(o,`;
68
- `),r==="padding"&&"padding-right: ".concat(d,"px ").concat(o,";")].filter(Boolean).join(""),`
67
+ margin-right: `).concat(m,"px ").concat(o,`;
68
+ `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(o,";")].filter(Boolean).join(""),`
69
69
  }
70
70
 
71
- .`).concat(Zs,` {
72
- right: `).concat(d,"px ").concat(o,`;
71
+ .`).concat(Qs,` {
72
+ right: `).concat(m,"px ").concat(o,`;
73
73
  }
74
74
 
75
- .`).concat(Qs,` {
76
- margin-right: `).concat(d,"px ").concat(o,`;
75
+ .`).concat(Ks,` {
76
+ margin-right: `).concat(m,"px ").concat(o,`;
77
77
  }
78
78
 
79
- .`).concat(Zs," .").concat(Zs,` {
79
+ .`).concat(Qs," .").concat(Qs,` {
80
80
  right: 0 `).concat(o,`;
81
81
  }
82
82
 
83
- .`).concat(Qs," .").concat(Qs,` {
83
+ .`).concat(Ks," .").concat(Ks,` {
84
84
  margin-right: 0 `).concat(o,`;
85
85
  }
86
86
 
87
- body[`).concat(Go,`] {
88
- `).concat(ME,": ").concat(d,`px;
87
+ body[`).concat(Xo,`] {
88
+ `).concat(jE,": ").concat(m,`px;
89
89
  }
90
- `)},yb=function(){var n=parseInt(document.body.getAttribute(Go)||"0",10);return isFinite(n)?n:0},KE=function(){x.useEffect(function(){return document.body.setAttribute(Go,(yb()+1).toString()),function(){var n=yb()-1;n<=0?document.body.removeAttribute(Go):document.body.setAttribute(Go,n.toString())}},[])},FE=function(n){var l=n.noRelative,r=n.noImportant,o=n.gapMode,s=o===void 0?"margin":o;KE();var u=x.useMemo(function(){return IE(s)},[s]);return x.createElement(ZE,{styles:QE(u,!l,s,r?"":"!important")})},tm=!1;if(typeof window<"u")try{var ks=Object.defineProperty({},"passive",{get:function(){return tm=!0,!0}});window.addEventListener("test",ks,ks),window.removeEventListener("test",ks,ks)}catch{tm=!1}var Bo=tm?{passive:!1}:!1,JE=function(n){return n.tagName==="TEXTAREA"},v1=function(n,l){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[l]!=="hidden"&&!(r.overflowY===r.overflowX&&!JE(n)&&r[l]==="visible")},PE=function(n){return v1(n,"overflowY")},WE=function(n){return v1(n,"overflowX")},bb=function(n,l){var r=l.ownerDocument,o=l;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=g1(n,o);if(s){var u=y1(n,o),f=u[1],d=u[2];if(f>d)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},eA=function(n){var l=n.scrollTop,r=n.scrollHeight,o=n.clientHeight;return[l,r,o]},tA=function(n){var l=n.scrollLeft,r=n.scrollWidth,o=n.clientWidth;return[l,r,o]},g1=function(n,l){return n==="v"?PE(l):WE(l)},y1=function(n,l){return n==="v"?eA(l):tA(l)},nA=function(n,l){return n==="h"&&l==="rtl"?-1:1},lA=function(n,l,r,o,s){var u=nA(n,window.getComputedStyle(l).direction),f=u*o,d=r.target,p=l.contains(d),h=!1,S=f>0,g=0,v=0;do{if(!d)break;var w=y1(n,d),E=w[0],C=w[1],T=w[2],A=C-T-u*E;(E||A)&&g1(n,d)&&(g+=A,v+=E);var N=d.parentNode;d=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!p&&d!==document.body||p&&(l.contains(d)||l===d));return(S&&Math.abs(g)<1||!S&&Math.abs(v)<1)&&(h=!0),h},Us=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Sb=function(n){return[n.deltaX,n.deltaY]},xb=function(n){return n&&"current"in n?n.current:n},aA=function(n,l){return n[0]===l[0]&&n[1]===l[1]},oA=function(n){return`
90
+ `)},yb=function(){var n=parseInt(document.body.getAttribute(Xo)||"0",10);return isFinite(n)?n:0},JE=function(){x.useEffect(function(){return document.body.setAttribute(Xo,(yb()+1).toString()),function(){var n=yb()-1;n<=0?document.body.removeAttribute(Xo):document.body.setAttribute(Xo,n.toString())}},[])},PE=function(n){var l=n.noRelative,r=n.noImportant,o=n.gapMode,s=o===void 0?"margin":o;JE();var u=x.useMemo(function(){return QE(s)},[s]);return x.createElement(KE,{styles:FE(u,!l,s,r?"":"!important")})},nm=!1;if(typeof window<"u")try{var Hs=Object.defineProperty({},"passive",{get:function(){return nm=!0,!0}});window.addEventListener("test",Hs,Hs),window.removeEventListener("test",Hs,Hs)}catch{nm=!1}var ko=nm?{passive:!1}:!1,WE=function(n){return n.tagName==="TEXTAREA"},g1=function(n,l){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[l]!=="hidden"&&!(r.overflowY===r.overflowX&&!WE(n)&&r[l]==="visible")},eA=function(n){return g1(n,"overflowY")},tA=function(n){return g1(n,"overflowX")},bb=function(n,l){var r=l.ownerDocument,o=l;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=y1(n,o);if(s){var u=b1(n,o),f=u[1],m=u[2];if(f>m)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},nA=function(n){var l=n.scrollTop,r=n.scrollHeight,o=n.clientHeight;return[l,r,o]},lA=function(n){var l=n.scrollLeft,r=n.scrollWidth,o=n.clientWidth;return[l,r,o]},y1=function(n,l){return n==="v"?eA(l):tA(l)},b1=function(n,l){return n==="v"?nA(l):lA(l)},aA=function(n,l){return n==="h"&&l==="rtl"?-1:1},oA=function(n,l,r,o,s){var u=aA(n,window.getComputedStyle(l).direction),f=u*o,m=r.target,p=l.contains(m),h=!1,S=f>0,g=0,v=0;do{if(!m)break;var w=b1(n,m),E=w[0],C=w[1],T=w[2],A=C-T-u*E;(E||A)&&y1(n,m)&&(g+=A,v+=E);var N=m.parentNode;m=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!p&&m!==document.body||p&&(l.contains(m)||l===m));return(S&&Math.abs(g)<1||!S&&Math.abs(v)<1)&&(h=!0),h},Us=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Sb=function(n){return[n.deltaX,n.deltaY]},xb=function(n){return n&&"current"in n?n.current:n},rA=function(n,l){return n[0]===l[0]&&n[1]===l[1]},iA=function(n){return`
91
91
  .block-interactivity-`.concat(n,` {pointer-events: none;}
92
92
  .allow-interactivity-`).concat(n,` {pointer-events: all;}
93
- `)},rA=0,ko=[];function iA(n){var l=x.useRef([]),r=x.useRef([0,0]),o=x.useRef(),s=x.useState(rA++)[0],u=x.useState(h1)[0],f=x.useRef(n);x.useEffect(function(){f.current=n},[n]),x.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var C=_E([n.lockRef.current],(n.shards||[]).map(xb),!0).filter(Boolean);return C.forEach(function(T){return T.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),C.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var d=x.useCallback(function(C,T){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!f.current.allowPinchZoom;var A=Us(C),N=r.current,_="deltaX"in C?C.deltaX:N[0]-A[0],j="deltaY"in C?C.deltaY:N[1]-A[1],L,k=C.target,D=Math.abs(_)>Math.abs(j)?"h":"v";if("touches"in C&&D==="h"&&k.type==="range")return!1;var U=window.getSelection(),te=U&&U.anchorNode,le=te?te===k||te.contains(k):!1;if(le)return!1;var oe=bb(D,k);if(!oe)return!0;if(oe?L=D:(L=D==="v"?"h":"v",oe=bb(D,k)),!oe)return!1;if(!o.current&&"changedTouches"in C&&(_||j)&&(o.current=L),!L)return!0;var ee=o.current||L;return lA(ee,T,C,ee==="h"?_:j)},[]),p=x.useCallback(function(C){var T=C;if(!(!ko.length||ko[ko.length-1]!==u)){var A="deltaY"in T?Sb(T):Us(T),N=l.current.filter(function(L){return L.name===T.type&&(L.target===T.target||T.target===L.shadowParent)&&aA(L.delta,A)})[0];if(N&&N.should){T.cancelable&&T.preventDefault();return}if(!N){var _=(f.current.shards||[]).map(xb).filter(Boolean).filter(function(L){return L.contains(T.target)}),j=_.length>0?d(T,_[0]):!f.current.noIsolation;j&&T.cancelable&&T.preventDefault()}}},[]),h=x.useCallback(function(C,T,A,N){var _={name:C,delta:T,target:A,should:N,shadowParent:sA(A)};l.current.push(_),setTimeout(function(){l.current=l.current.filter(function(j){return j!==_})},1)},[]),S=x.useCallback(function(C){r.current=Us(C),o.current=void 0},[]),g=x.useCallback(function(C){h(C.type,Sb(C),C.target,d(C,n.lockRef.current))},[]),v=x.useCallback(function(C){h(C.type,Us(C),C.target,d(C,n.lockRef.current))},[]);x.useEffect(function(){return ko.push(u),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",p,Bo),document.addEventListener("touchmove",p,Bo),document.addEventListener("touchstart",S,Bo),function(){ko=ko.filter(function(C){return C!==u}),document.removeEventListener("wheel",p,Bo),document.removeEventListener("touchmove",p,Bo),document.removeEventListener("touchstart",S,Bo)}},[]);var w=n.removeScrollBar,E=n.inert;return x.createElement(x.Fragment,null,E?x.createElement(u,{styles:oA(s)}):null,w?x.createElement(FE,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function sA(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const cA=BE(p1,iA);var ci=x.forwardRef(function(n,l){return x.createElement(Cc,Jn({},n,{ref:l,sideCar:cA}))});ci.classNames=Cc.classNames;function Xm({keepMounted:n,keepMountedMode:l="activity",opened:r,onClose:o,id:s,transitionProps:u,onExitTransitionEnd:f,onEnterTransitionEnd:d,trapFocus:p,closeOnEscape:h,returnFocus:S,closeOnClickOutside:g,withinPortal:v,portalProps:w,lockScroll:E,children:C,zIndex:T,shadow:A,padding:N,__vars:_,unstyled:j,removeScrollProps:L,...k}){const{_id:D,titleMounted:U,bodyMounted:te,shouldLockScroll:le,setTitleMounted:oe,setBodyMounted:ee}=AE({id:s,transitionProps:u,opened:r,trapFocus:p,closeOnEscape:h,onClose:o,returnFocus:S}),{key:F,...V}=L||{};return y.jsx(Ga,{...w,withinPortal:v,children:y.jsx(RE,{value:{opened:r,onClose:o,closeOnClickOutside:g,onExitTransitionEnd:f,onEnterTransitionEnd:d,transitionProps:{...u,keepMounted:n,keepMountedMode:l},getTitleId:()=>`${D}-title`,getBodyId:()=>`${D}-body`,titleMounted:U,bodyMounted:te,setTitleMounted:oe,setBodyMounted:ee,trapFocus:p,closeOnEscape:h,zIndex:T,unstyled:j},children:y.jsx(ci,{enabled:le&&E,...V,children:y.jsx(fe,{...k,id:D,__vars:{..._,"--mb-z-index":(T||Qt("modal")).toString(),"--mb-shadow":dm(A),"--mb-padding":ii(N)},children:C})},F)})})}Xm.displayName="@mantine/core/ModalBase";function uA(){const n=zl();return x.useEffect(()=>(n.setBodyMounted(!0),()=>n.setBodyMounted(!1)),[]),n.getBodyId()}var Xo={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function Im({className:n,...l}){const r=uA(),o=zl();return y.jsx(fe,{id:r,className:gt({[Xo.body]:!o.unstyled},n),...l})}Im.displayName="@mantine/core/ModalBaseBody";function Zm({className:n,onClick:l,...r}){const o=zl();return y.jsx(Qa,{...r,onClick:s=>{o.onClose(),l==null||l(s)},className:gt({[Xo.close]:!o.unstyled},n),unstyled:o.unstyled})}Zm.displayName="@mantine/core/ModalBaseCloseButton";function Qm({transitionProps:n,className:l,innerProps:r,onKeyDown:o,style:s,ref:u,...f}){const d=zl();return y.jsx(Al,{mounted:d.opened,transition:"pop",...d.transitionProps,onExited:()=>{var p,h,S;(p=d.onExitTransitionEnd)==null||p.call(d),(S=(h=d.transitionProps)==null?void 0:h.onExited)==null||S.call(h)},onEntered:()=>{var p,h,S;(p=d.onEnterTransitionEnd)==null||p.call(d),(S=(h=d.transitionProps)==null?void 0:h.onEntered)==null||S.call(h)},...n,children:p=>y.jsx("div",{...r,className:gt({[Xo.inner]:!d.unstyled},r.className),children:y.jsx(Sc,{active:d.opened&&d.trapFocus,innerRef:u,children:y.jsx(Ln,{...f,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":d.bodyMounted?d.getBodyId():void 0,"aria-labelledby":d.titleMounted?d.getTitleId():void 0,style:[s,p],className:gt({[Xo.content]:!d.unstyled},l),unstyled:d.unstyled,children:f.children})})})})}Qm.displayName="@mantine/core/ModalBaseContent";function Km({className:n,...l}){const r=zl();return y.jsx(fe,{component:"header",className:gt({[Xo.header]:!r.unstyled},n),...l})}Km.displayName="@mantine/core/ModalBaseHeader";const fA={duration:200,timingFunction:"ease",transition:"fade"};function dA(n){const l=zl();return{...fA,...l.transitionProps,...n}}function Fm({onClick:n,transitionProps:l,style:r,visible:o,...s}){const u=zl(),f=dA(l);return y.jsx(Al,{mounted:o!==void 0?o:u.opened,...f,transition:"fade",children:d=>y.jsx(si,{fixed:!0,style:[r,d],zIndex:u.zIndex,unstyled:u.unstyled,onClick:p=>{n==null||n(p),u.closeOnClickOutside&&u.onClose()},...s})})}Fm.displayName="@mantine/core/ModalBaseOverlay";function mA(){const n=zl();return x.useEffect(()=>(n.setTitleMounted(!0),()=>n.setTitleMounted(!1)),[]),n.getTitleId()}function Jm({className:n,...l}){const r=mA(),o=zl();return y.jsx(fe,{component:"h2",className:gt({[Xo.title]:!o.unstyled},n),id:r,...l})}Jm.displayName="@mantine/core/ModalBaseTitle";function b1({children:n}){return y.jsx(y.Fragment,{children:n})}const S1=x.createContext({size:"sm"}),x1=me(n=>{const l=ue("InputClearButton",null,n),{size:r,variant:o,vars:s,classNames:u,styles:f,...d}=l,p=x.use(S1),{resolvedClassNames:h,resolvedStyles:S}=cc({classNames:u,styles:f,props:l});return y.jsx(Qa,{variant:o||"transparent",size:r||(p==null?void 0:p.size)||"sm",classNames:h,styles:S,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...d.style},...d})});x1.displayName="@mantine/core/InputClearButton";const pA={xs:7,sm:8,md:10,lg:12,xl:15};function hA({__clearable:n,__clearSection:l,rightSection:r,__defaultRightSection:o,size:s="sm",__clearSectionMode:u="both"}){const f=n&&l;return u==="rightSection"?r===null?null:r||o:u==="clear"?r===null?null:f||o:f&&(r||o)?y.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:pA[s]},children:[f,r||o]}):r===null?null:r||f||o}const Fo=x.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Ft={wrapper:"m_6c018570",input:"m_8fb7ebe7",bottomSection:"m_93f4ed57",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",success:"m_9d9d40e0",description:"m_fe47ce59"};const w1=(n,{size:l})=>({description:{"--input-description-size":l===void 0?void 0:`calc(${Ct(l)} - ${K(2)})`}}),ui=me(n=>{const l=ue("InputDescription",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,__staticSelector:p,__inheritStyles:h=!0,attributes:S,...g}=ue("InputDescription",null,l),v=x.use(Fo),w=Oe({name:["InputWrapper",p],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:S,rootSelector:"description",vars:d,varsResolver:w1});return y.jsx(fe,{component:"p",...(h&&(v==null?void 0:v.getStyles)||w)("description",v!=null&&v.getStyles?{className:o,style:s}:void 0),...g})});ui.classes=Ft;ui.varsResolver=w1;ui.displayName="@mantine/core/InputDescription";const C1=(n,{size:l})=>({error:{"--input-error-size":l===void 0?void 0:`calc(${Ct(l)} - ${K(2)})`}}),fi=me(n=>{const l=ue("InputError",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,attributes:p,__staticSelector:h,__inheritStyles:S=!0,...g}=l,v=Oe({name:["InputWrapper",h],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:p,rootSelector:"error",vars:d,varsResolver:C1}),w=x.use(Fo);return y.jsx(fe,{component:"p",...(S&&(w==null?void 0:w.getStyles)||v)("error",w!=null&&w.getStyles?{className:o,style:s}:void 0),...g})});fi.classes=Ft;fi.varsResolver=C1;fi.displayName="@mantine/core/InputError";const vA={labelElement:"label"},T1=(n,{size:l})=>({label:{"--input-label-size":Ct(l),"--input-asterisk-color":void 0}}),di=me(n=>{const l=ue("InputLabel",vA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,labelElement:p,required:h,htmlFor:S,onMouseDown:g,children:v,__staticSelector:w,mod:E,attributes:C,...T}=l,A=Oe({name:["InputWrapper",w],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:C,rootSelector:"label",vars:d,varsResolver:T1}),N=x.use(Fo),_=(N==null?void 0:N.getStyles)||A,j=T.component||p,L=typeof j!="string"||j==="label";return y.jsxs(fe,{..._("label",N!=null&&N.getStyles?{className:o,style:s}:void 0),component:p,htmlFor:L?S:void 0,mod:[{required:h},E],onMouseDown:k=>{g==null||g(k),!k.defaultPrevented&&k.detail>1&&k.preventDefault()},...T,children:[v,h&&y.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});di.classes=Ft;di.varsResolver=T1;di.displayName="@mantine/core/InputLabel";const Pm=me(n=>{const l=ue("InputPlaceholder",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,__staticSelector:p,error:h,mod:S,attributes:g,...v}=l;return y.jsx(fe,{...Oe({name:["InputPlaceholder",p],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:g,rootSelector:"placeholder"})("placeholder"),mod:[{error:!!h},S],component:"span",...v})});Pm.classes=Ft;Pm.displayName="@mantine/core/InputPlaceholder";const R1=(n,{size:l})=>({success:{"--input-success-size":l===void 0?void 0:`calc(${Ct(l)} - ${K(2)})`}}),mi=me(n=>{const l=ue("InputSuccess",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,attributes:p,__staticSelector:h,__inheritStyles:S=!0,...g}=l,v=Oe({name:["InputWrapper",h],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:p,rootSelector:"success",vars:d,varsResolver:R1}),w=x.use(Fo);return y.jsx(fe,{component:"p",...(S&&(w==null?void 0:w.getStyles)||v)("success",w!=null&&w.getStyles?{className:o,style:s}:void 0),...g})});mi.classes=Ft;mi.varsResolver=R1;mi.displayName="@mantine/core/InputSuccess";function gA(n,{hasDescription:l,hasError:r}){const o=n.findIndex(d=>d==="input"),s=n.slice(0,o),u=n.slice(o+1),f=l&&s.includes("description")||r&&s.includes("error");return{offsetBottom:l&&u.includes("description")||r&&u.includes("error"),offsetTop:f}}const yA={labelElement:"label",inputContainer:n=>n,inputWrapperOrder:["label","description","input","error"]},E1=(n,{size:l})=>({label:{"--input-label-size":Ct(l),"--input-asterisk-color":void 0},error:{"--input-error-size":l===void 0?void 0:`calc(${Ct(l)} - ${K(2)})`},success:{"--input-success-size":l===void 0?void 0:`calc(${Ct(l)} - ${K(2)})`},description:{"--input-description-size":l===void 0?void 0:`calc(${Ct(l)} - ${K(2)})`}}),Tc=me(n=>{const l=ue("InputWrapper",yA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,size:p,variant:h,__staticSelector:S,inputContainer:g,inputWrapperOrder:v,label:w,error:E,success:C,description:T,labelProps:A,descriptionProps:N,errorProps:_,successProps:j,labelElement:L,children:k,withAsterisk:D,id:U,required:te,__stylesApiProps:le,mod:oe,attributes:ee,...F}=l,V=Oe({name:["InputWrapper",S],props:le||l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:ee,vars:d,varsResolver:E1}),ce={size:p,variant:h,__staticSelector:S},O=kn(U),B=typeof D=="boolean"?D:te,H=(_==null?void 0:_.id)||`${O}-error`,Z=(j==null?void 0:j.id)||`${O}-success`,P=(N==null?void 0:N.id)||`${O}-description`,M=O,Y=!!E&&typeof E!="boolean",J=!!C&&typeof C!="boolean"&&!E,ae=!!T,se=Y&&v.includes("error"),de=J&&v.includes("error"),ge=ae&&v.includes("description"),pe=`${se?H:""} ${de?Z:""} ${ge?P:""}`,he=pe.trim().length>0?pe.trim():void 0,Me=(A==null?void 0:A.id)||`${O}-label`,Se=w&&y.jsx(di,{labelElement:L,id:Me,htmlFor:M,required:B,...ce,...A,children:w},"label"),Ce=ae&&y.jsx(ui,{...N,...ce,size:(N==null?void 0:N.size)||ce.size,id:(N==null?void 0:N.id)||P,children:T},"description"),ie=y.jsx(x.Fragment,{children:g(k)},"input"),ye=Y&&x.createElement(fi,{..._,...ce,size:(_==null?void 0:_.size)||ce.size,key:"error",id:(_==null?void 0:_.id)||H},E),Ne=J&&x.createElement(mi,{...j,...ce,size:(j==null?void 0:j.size)||ce.size,key:"success",id:(j==null?void 0:j.id)||Z},C),Te=v.map(Ve=>{switch(Ve){case"label":return Se;case"input":return ie;case"description":return Ce;case"error":return ye||Ne;default:return null}});return y.jsx(Fo,{value:{getStyles:V,describedBy:he,inputId:M,labelId:Me,...gA(v,{hasDescription:ae,hasError:Y||J})},children:y.jsx(fe,{variant:h,size:p,mod:[{error:!!E,success:!!C&&!E},oe],id:L==="label"?void 0:U,...V("root"),...F,children:Te})})});Tc.classes=Ft;Tc.varsResolver=E1;Tc.displayName="@mantine/core/InputWrapper";const bA={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:"sm",loading:!1,loadingPosition:"right"},A1=(n,l,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":Je(l.size,"input-height"),"--input-fz":Ct(l.size),"--input-radius":l.radius===void 0?void 0:Ut(l.radius),"--input-left-section-width":l.leftSectionWidth!==void 0?K(l.leftSectionWidth):void 0,"--input-right-section-width":l.rightSectionWidth!==void 0?K(l.rightSectionWidth):void 0,"--input-padding-y":l.multiline?Je(l.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":l.leftSectionPointerEvents,"--input-right-section-pointer-events":l.rightSectionPointerEvents}}),Ot=Kt(n=>{const l=ue("Input",bA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,required:d,__staticSelector:p,__stylesApiProps:h,size:S,wrapperProps:g,error:v,success:w,disabled:E,leftSection:C,leftSectionProps:T,leftSectionWidth:A,rightSection:N,rightSectionProps:_,rightSectionWidth:j,rightSectionPointerEvents:L,leftSectionPointerEvents:k,variant:D,vars:U,pointer:te,multiline:le,radius:oe,id:ee,withAria:F,withErrorStyles:V,withSuccessStyles:ce,mod:O,inputSize:B,attributes:H,__clearSection:Z,__clearable:P,__clearSectionMode:M,__defaultRightSection:Y,loading:J,loadingPosition:ae,__bottomSection:se,__bottomSectionProps:de,rootRef:ge,dir:pe,...he}=l,{styleProps:Me,rest:Se}=Em(he),Ce=x.use(Fo),ie={offsetBottom:Ce==null?void 0:Ce.offsetBottom,offsetTop:Ce==null?void 0:Ce.offsetTop},ye=Oe({name:["Input",p],props:h||l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:H,stylesCtx:ie,rootSelector:"wrapper",vars:U,varsResolver:A1}),Ne=F?{required:d,disabled:E,"aria-invalid":v?!0:void 0,"aria-describedby":Ce==null?void 0:Ce.describedBy,id:(Ce==null?void 0:Ce.inputId)||ee}:{},Te=J?y.jsx(Za,{size:ae==="left"?"calc(var(--input-left-section-size) / 2)":"calc(var(--input-right-section-size) / 2)"}):null,Ve=J&&ae==="left"?Te:C,ut=hA({__clearable:P,__clearSection:Z,rightSection:J&&ae==="right"?Te:N,__defaultRightSection:Y,size:S,__clearSectionMode:M});return y.jsx(S1,{value:{size:S||"sm"},children:y.jsxs(fe,{ref:ge,dir:pe,...ye("wrapper"),...Me,...g,mod:[{error:!!v&&V,success:!!w&&!v&&ce,pointer:te,disabled:E,multiline:le,"data-with-right-section":!!ut,"data-with-left-section":!!Ve,"data-with-bottom-section":!!se},O],variant:D,size:S,children:[Ve&&y.jsx("div",{...T,"data-position":"left",...ye("section",{className:T==null?void 0:T.className,style:T==null?void 0:T.style}),children:Ve}),y.jsx(fe,{component:"input",...Se,...Ne,required:d,mod:{disabled:E,error:!!v&&V,success:!!w&&!v&&ce},variant:D,__size:B,...ye("input")}),se&&y.jsx("div",{...de,...ye("bottomSection",{className:de==null?void 0:de.className,style:de==null?void 0:de.style}),children:se}),ut&&y.jsx("div",{..._,"data-position":"right",...ye("section",{className:_==null?void 0:_.className,style:_==null?void 0:_.style}),children:ut})]})})});Ot.classes=Ft;Ot.varsResolver=A1;Ot.Wrapper=Tc;Ot.Label=di;Ot.Error=fi;Ot.Success=mi;Ot.Description=ui;Ot.Placeholder=Pm;Ot.ClearButton=x1;Ot.displayName="@mantine/core/Input";function SA(n,l,r){const o=ue(["Input","InputWrapper",n],l,r),{label:s,description:u,error:f,success:d,required:p,classNames:h,styles:S,className:g,unstyled:v,__staticSelector:w,__stylesApiProps:E,errorProps:C,successProps:T,labelProps:A,descriptionProps:N,wrapperProps:_,id:j,size:L,style:k,inputContainer:D,inputWrapperOrder:U,withAsterisk:te,variant:le,vars:oe,mod:ee,attributes:F,...V}=o,{styleProps:ce,rest:O}=Em(V),B={label:s,description:u,error:f,success:d,required:p,classNames:h,className:g,__staticSelector:w,__stylesApiProps:E||o,errorProps:C,successProps:T,labelProps:A,descriptionProps:N,unstyled:v,styles:S,size:L,style:k,inputContainer:D,inputWrapperOrder:U,withAsterisk:te,variant:le,id:j,mod:ee,attributes:F,..._};return{...O,classNames:h,styles:S,unstyled:v,wrapperProps:{...B,...ce},inputProps:{required:p,classNames:h,styles:S,unstyled:v,size:L,__staticSelector:w,__stylesApiProps:E||o,error:f,success:d,variant:le,id:j,attributes:F}}}const xA={__staticSelector:"InputBase",withAria:!0,size:"sm"},Rc=Kt(n=>{const{inputProps:l,wrapperProps:r,...o}=SA("InputBase",xA,n);return y.jsx(Ot.Wrapper,{...r,children:y.jsx(Ot,{...l,...o})})});Rc.classes={...Ot.classes,...Ot.Wrapper.classes};Rc.displayName="@mantine/core/InputBase";function wA(n,l){if(!l||!n)return!1;let r=l.parentNode;for(;r!=null;){if(r===n)return!0;r=r.parentNode}return!1}function CA({target:n,parent:l,ref:r,displayAfterTransitionEnd:o,onTransitionStart:s,onTransitionEnd:u}){const f=x.useRef(-1),d=x.useRef(n),[p,h]=x.useState(!1),[S,g]=x.useState(typeof o=="boolean"?o:!1),v=()=>{if(!n||!l||!r.current)return;const T=n.getBoundingClientRect(),A=l.getBoundingClientRect(),N=l.offsetWidth===0?1:A.width/l.offsetWidth,_=l.offsetHeight===0?1:A.height/l.offsetHeight,j=window.getComputedStyle(n),L=window.getComputedStyle(l),k=fa(j.borderTopWidth)+fa(L.borderTopWidth),D=fa(j.borderLeftWidth)+fa(L.borderLeftWidth),U={top:(T.top-A.top)/_-k,left:(T.left-A.left)/N-D,width:T.width/N,height:T.height/_};r.current.style.transform=`translateY(${U.top}px) translateX(${U.left}px)`,r.current.style.width=`${U.width}px`,r.current.style.height=`${U.height}px`},w=()=>{window.clearTimeout(f.current),r.current&&(r.current.style.transitionDuration="0ms"),v(),f.current=window.setTimeout(()=>{r.current&&(r.current.style.transitionDuration="")},30)},E=x.useRef(null),C=x.useRef(null);return x.useEffect(()=>{if(p&&d.current!==n&&s&&s(),d.current=n,v(),n)return E.current=new ResizeObserver(w),E.current.observe(n),l&&(C.current=new ResizeObserver(w),C.current.observe(l)),()=>{var T,A;(T=E.current)==null||T.disconnect(),(A=C.current)==null||A.disconnect()}},[l,n]),x.useEffect(()=>{if(l){const T=A=>{wA(A.target,l)&&(w(),g(!1))};return l.addEventListener("transitionend",T),()=>{l.removeEventListener("transitionend",T)}}},[l]),x.useEffect(()=>{if(r.current&&u){const T=A=>{A.propertyName==="transform"&&u()};return r.current.addEventListener("transitionend",T),()=>{var A;(A=r.current)==null||A.removeEventListener("transitionend",T)}}},[u]),H2(()=>{K2()!=="test"&&h(!0)},20,{autoInvoke:!0}),q2(T=>{T.forEach(A=>{A.type==="attributes"&&A.attributeName==="dir"&&w()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:p,hidden:S}}var _1={root:"m_96b553a6"};const N1=(n,{transitionDuration:l},{shouldReduceMotion:r})=>({root:{"--transition-duration":n.respectReducedMotion&&r?"0ms":typeof l=="number"?`${l}ms`:l||"150ms"}}),Ec=me(n=>{const l=ue("FloatingIndicator",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,target:p,parent:h,transitionDuration:S,mod:g,displayAfterTransitionEnd:v,onTransitionStart:w,onTransitionEnd:E,attributes:C,ref:T,...A}=l,N=vm(),_=Oe({name:"FloatingIndicator",classes:_1,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:C,vars:d,varsResolver:N1,stylesCtx:{shouldReduceMotion:N}}),j=x.useRef(null),{initialized:L,hidden:k}=CA({target:p,parent:h,ref:j,displayAfterTransitionEnd:v,onTransitionStart:w,onTransitionEnd:E}),D=it(T,j);return!p||!h?null:y.jsx(fe,{ref:D,mod:[{initialized:L,hidden:k},g],..._("root"),...A})});Ec.displayName="@mantine/core/FloatingIndicator";Ec.classes=_1;Ec.varsResolver=N1;function M1({style:n,size:l=16,...r}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...n,width:K(l),height:K(l),display:"block"},...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"})})}M1.displayName="@mantine/core/AccordionChevron";var O1={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 j1=(n,{radius:l,color:r,variant:o,autoContrast:s})=>{const u=n.variantColorResolver({color:r||n.primaryColor,theme:n,variant:o||"light",autoContrast:s});return{root:{"--alert-radius":l===void 0?void 0:Ut(l),"--alert-bg":r||o?u.background:void 0,"--alert-color":u.color,"--alert-bd":r||o?u.border:void 0}}},Xa=me(n=>{const l=ue("Alert",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,radius:p,color:h,title:S,children:g,id:v,icon:w,withCloseButton:E,onClose:C,closeButtonLabel:T,variant:A,autoContrast:N,role:_,attributes:j,...L}=l,k=Oe({name:"Alert",classes:O1,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:j,vars:d,varsResolver:j1}),D=kn(v),U=S&&`${D}-title`||void 0,te=`${D}-body`;return y.jsx(fe,{id:D,...k("root",{variant:A}),variant:A,...L,role:_||"alert","aria-describedby":g?te:void 0,"aria-labelledby":S?U:void 0,children:y.jsxs("div",{...k("wrapper"),children:[w&&y.jsx("div",{...k("icon"),children:w}),y.jsxs("div",{...k("body"),children:[S&&y.jsx("div",{...k("title"),"data-with-close-button":E||void 0,children:y.jsx("span",{id:U,...k("label"),children:S})}),g&&y.jsx("div",{id:te,...k("message"),"data-variant":A,children:g})]}),E&&y.jsx(Qa,{...k("closeButton"),onClick:C,variant:"transparent",size:16,iconSize:16,"aria-label":T,unstyled:f})]})})});Xa.classes=O1;Xa.varsResolver=j1;Xa.displayName="@mantine/core/Alert";var z1={root:"m_b6d8b162"};function TA(n){if(n==="start")return"start";if(n==="end"||n)return"end"}const RA={inherit:!1},D1=(n,{variant:l,lineClamp:r,gradient:o,size:s,textWrap:u})=>({root:{"--text-fz":Ct(s),"--text-lh":T2(s),"--text-gradient":l==="gradient"?Gd(o,n):void 0,"--text-line-clamp":typeof r=="number"?r.toString():void 0,"--text-text-wrap":u}}),$e=Kt(n=>{const l=ue("Text",RA,n),{lineClamp:r,truncate:o,inline:s,inherit:u,gradient:f,span:d,textWrap:p,__staticSelector:h,vars:S,className:g,style:v,classNames:w,styles:E,unstyled:C,variant:T,mod:A,size:N,attributes:_,...j}=l;return y.jsx(fe,{...Oe({name:["Text",h],props:l,classes:z1,className:g,style:v,classNames:w,styles:E,unstyled:C,attributes:_,vars:S,varsResolver:D1})("root",{focusable:!0}),component:d?"span":"p",variant:T,mod:[{"data-truncate":TA(o),"data-line-clamp":typeof r=="number","data-inline":s,"data-inherit":u},A],size:N,...j})});$e.classes=z1;$e.varsResolver=D1;$e.displayName="@mantine/core/Text";var $1={root:"m_849cf0da"};const EA={underline:"hover"},Ac=Kt(n=>{const{underline:l,className:r,unstyled:o,mod:s,...u}=ue("Anchor",EA,n);return y.jsx($e,{component:"a",className:gt({[$1.root]:!o},r),...u,mod:[{underline:l},s],__staticSelector:"Anchor",unstyled:o})});Ac.classes=$1;Ac.displayName="@mantine/core/Anchor";const[AA,Jo]=Nl("AppShell was not found in tree");var ba={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const Wm=me(n=>{const{classNames:l,className:r,style:o,styles:s,unstyled:u,vars:f,withBorder:d,zIndex:p,mod:h,...S}=ue("AppShellAside",null,n),g=Jo();return g.disabled?null:y.jsx(fe,{component:"aside",mod:[{"with-border":d??g.withBorder},h],...g.getStyles("aside",{className:gt({[ci.classNames.zeroRight]:g.offsetScrollbars},r),classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-aside-z-index":`calc(${p??g.zIndex} + 1)`}})});Wm.classes=ba;Wm.displayName="@mantine/core/AppShellAside";const ep=me(n=>{var v;const{classNames:l,className:r,style:o,styles:s,unstyled:u,vars:f,withBorder:d,zIndex:p,mod:h,...S}=ue("AppShellFooter",null,n),g=Jo();return g.disabled?null:y.jsx(fe,{component:"footer",mod:[{"with-border":d??g.withBorder},h],...g.getStyles("footer",{className:gt({[ci.classNames.zeroRight]:g.offsetScrollbars},r),classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-footer-z-index":(v=p??g.zIndex)==null?void 0:v.toString()}})});ep.classes=ba;ep.displayName="@mantine/core/AppShellFooter";const tp=me(n=>{var v;const{classNames:l,className:r,style:o,styles:s,unstyled:u,vars:f,withBorder:d,zIndex:p,mod:h,...S}=ue("AppShellHeader",null,n),g=Jo();return g.disabled?null:y.jsx(fe,{component:"header",mod:[{"with-border":d??g.withBorder},h],...g.getStyles("header",{className:gt({[ci.classNames.zeroRight]:g.offsetScrollbars},r),classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-header-z-index":(v=p??g.zIndex)==null?void 0:v.toString()}})});tp.classes=ba;tp.displayName="@mantine/core/AppShellHeader";const np=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("AppShellMain",null,n);return y.jsx(fe,{component:"main",...Jo().getStyles("main",{className:r,style:o,classNames:l,styles:s}),...f})});np.classes=ba;np.displayName="@mantine/core/AppShellMain";const lp=me(n=>{const{classNames:l,className:r,style:o,styles:s,unstyled:u,vars:f,withBorder:d,zIndex:p,mod:h,...S}=ue("AppShellNavbar",null,n),g=Jo();return g.disabled?null:y.jsx(fe,{component:"nav",mod:[{"with-border":d??g.withBorder},h],...g.getStyles("navbar",{className:r,classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-navbar-z-index":`calc(${p??g.zIndex} + 1)`}})});lp.classes=ba;lp.displayName="@mantine/core/AppShellNavbar";const ap=Kt(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,grow:f,mod:d,...p}=ue("AppShellSection",null,n),h=Jo();return y.jsx(fe,{mod:[{grow:f},d],...h.getStyles("section",{className:r,style:o,classNames:l,styles:s}),...p})});ap.classes=ba;ap.displayName="@mantine/core/AppShellSection";function pi(n){return typeof n=="object"?n.base:n}function hi(n){const l=typeof n=="object"&&n!==null&&typeof n.base<"u"&&Object.keys(n).length===1;return typeof n=="number"||typeof n=="string"||l}function vi(n){return!(typeof n!="object"||n===null||Object.keys(n).length===1&&"base"in n)}function _A({baseStyles:n,minMediaStyles:l,maxMediaStyles:r,aside:o,theme:s,mode:u}){var h,S,g;const f=o==null?void 0:o.width,d="translateX(var(--app-shell-aside-width))",p="translateX(calc(var(--app-shell-aside-width) * -1))";if((o==null?void 0:o.breakpoint)!==void 0&&!((h=o==null?void 0:o.collapsed)!=null&&h.mobile)&&(r[o==null?void 0:o.breakpoint]=r[o==null?void 0:o.breakpoint]||{},u==="fixed"?(r[o==null?void 0:o.breakpoint]["--app-shell-aside-width"]="100%",r[o==null?void 0:o.breakpoint]["--app-shell-aside-offset"]="0px"):(r[o==null?void 0:o.breakpoint]["--app-shell-aside-width"]="0px",r[o==null?void 0:o.breakpoint]["--app-shell-aside-offset"]="0px")),hi(f)){const v=K(pi(f));n["--app-shell-aside-width"]=v,n["--app-shell-aside-offset"]=v}if(vi(f)&&(typeof f.base<"u"&&(n["--app-shell-aside-width"]=K(f.base),n["--app-shell-aside-offset"]=K(f.base)),Mt(f).forEach(v=>{v!=="base"&&(l[v]=l[v]||{},l[v]["--app-shell-aside-width"]=K(f[v]),l[v]["--app-shell-aside-offset"]=K(f[v]))})),(o==null?void 0:o.breakpoint)!==void 0&&u==="static"&&(l[o.breakpoint]=l[o.breakpoint]||{},l[o.breakpoint]["--app-shell-aside-position"]="sticky",l[o.breakpoint]["--app-shell-aside-grid-row"]="2",l[o.breakpoint]["--app-shell-aside-grid-column"]="3",l[o.breakpoint]["--app-shell-main-column-end"]="3"),(S=o==null?void 0:o.collapsed)!=null&&S.desktop){const v=o.breakpoint;l[v]=l[v]||{},l[v]["--app-shell-aside-transform"]=d,l[v]["--app-shell-aside-transform-rtl"]=p,u==="fixed"?l[v]["--app-shell-aside-offset"]="0px !important":(l[v]["--app-shell-aside-width"]="0px",l[v]["--app-shell-aside-display"]="none",l[v]["--app-shell-main-column-end"]="-1"),l[v]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if((g=o==null?void 0:o.collapsed)!=null&&g.mobile){const v=mm(o.breakpoint,s.breakpoints)-.1;r[v]=r[v]||{},u==="fixed"?(r[v]["--app-shell-aside-width"]="100%",r[v]["--app-shell-aside-offset"]="0px"):r[v]["--app-shell-aside-width"]="0px",r[v]["--app-shell-aside-transform"]=d,r[v]["--app-shell-aside-transform-rtl"]=p,r[v]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function NA({baseStyles:n,minMediaStyles:l,footer:r,mode:o}){const s=r==null?void 0:r.height,u="translateY(var(--app-shell-footer-height))",f=o==="static"?!0:(r==null?void 0:r.offset)??!0;if(o==="static"&&r&&(n["--app-shell-footer-position"]="sticky",n["--app-shell-footer-grid-column"]="1 / -1",n["--app-shell-footer-grid-row"]="3"),hi(s)){const d=K(pi(s));n["--app-shell-footer-height"]=d,f&&(n["--app-shell-footer-offset"]=d)}vi(s)&&(typeof s.base<"u"&&(n["--app-shell-footer-height"]=K(s.base),f&&(n["--app-shell-footer-offset"]=K(s.base))),Mt(s).forEach(d=>{d!=="base"&&(l[d]=l[d]||{},l[d]["--app-shell-footer-height"]=K(s[d]),f&&(l[d]["--app-shell-footer-offset"]=K(s[d])))})),r!=null&&r.collapsed&&(n["--app-shell-footer-transform"]=u,o==="fixed"&&(n["--app-shell-footer-offset"]="0px !important"))}function MA({baseStyles:n,minMediaStyles:l,header:r,mode:o}){const s=r==null?void 0:r.height,u="translateY(calc(var(--app-shell-header-height) * -1))",f=o==="static"?!0:(r==null?void 0:r.offset)??!0;if(o==="static"&&r&&(n["--app-shell-header-position"]="sticky",n["--app-shell-header-grid-column"]="1 / -1",n["--app-shell-header-grid-row"]="1"),hi(s)){const d=K(pi(s));n["--app-shell-header-height"]=d,f&&(n["--app-shell-header-offset"]=d)}vi(s)&&(typeof s.base<"u"&&(n["--app-shell-header-height"]=K(s.base),f&&(n["--app-shell-header-offset"]=K(s.base))),Mt(s).forEach(d=>{d!=="base"&&(l[d]=l[d]||{},l[d]["--app-shell-header-height"]=K(s[d]),f&&(l[d]["--app-shell-header-offset"]=K(s[d])))})),r!=null&&r.collapsed&&(n["--app-shell-header-transform"]=u,o==="fixed"&&(n["--app-shell-header-offset"]="0px !important"))}function OA({baseStyles:n,minMediaStyles:l,maxMediaStyles:r,navbar:o,theme:s,mode:u}){var h,S,g;const f=o==null?void 0:o.width,d="translateX(calc(var(--app-shell-navbar-width) * -1))",p="translateX(var(--app-shell-navbar-width))";if((o==null?void 0:o.breakpoint)!==void 0&&!((h=o==null?void 0:o.collapsed)!=null&&h.mobile)&&(r[o==null?void 0:o.breakpoint]=r[o==null?void 0:o.breakpoint]||{},r[o==null?void 0:o.breakpoint]["--app-shell-navbar-offset"]="0px",r[o==null?void 0:o.breakpoint]["--app-shell-navbar-width"]="100%",u==="static"&&(r[o==null?void 0:o.breakpoint]["--app-shell-navbar-grid-width"]="0px")),hi(f)){const v=K(pi(f));n["--app-shell-navbar-width"]=v,n["--app-shell-navbar-offset"]=v,u==="static"&&(n["--app-shell-navbar-grid-width"]=v)}if(vi(f)&&(typeof f.base<"u"&&(n["--app-shell-navbar-width"]=K(f.base),n["--app-shell-navbar-offset"]=K(f.base),u==="static"&&(n["--app-shell-navbar-grid-width"]=K(f.base))),Mt(f).forEach(v=>{v!=="base"&&(l[v]=l[v]||{},l[v]["--app-shell-navbar-width"]=K(f[v]),l[v]["--app-shell-navbar-offset"]=K(f[v]),u==="static"&&(l[v]["--app-shell-navbar-grid-width"]=K(f[v])))})),(o==null?void 0:o.breakpoint)!==void 0&&u==="static"&&(l[o.breakpoint]=l[o.breakpoint]||{},l[o.breakpoint]["--app-shell-navbar-position"]="sticky",l[o.breakpoint]["--app-shell-navbar-grid-row"]="2",l[o.breakpoint]["--app-shell-navbar-grid-column"]="1",l[o.breakpoint]["--app-shell-main-column-start"]="2"),(S=o==null?void 0:o.collapsed)!=null&&S.desktop){const v=o.breakpoint;l[v]=l[v]||{},l[v]["--app-shell-navbar-transform"]=d,l[v]["--app-shell-navbar-transform-rtl"]=p,u==="fixed"?l[v]["--app-shell-navbar-offset"]="0px !important":(l[v]["--app-shell-navbar-width"]="0px",l[v]["--app-shell-navbar-display"]="none",l[v]["--app-shell-main-column-start"]="1")}if((g=o==null?void 0:o.collapsed)!=null&&g.mobile){const v=mm(o.breakpoint,s.breakpoints)-.1;r[v]=r[v]||{},r[v]["--app-shell-navbar-width"]="100%",r[v]["--app-shell-navbar-offset"]="0px",u==="static"&&(r[v]["--app-shell-navbar-grid-width"]="0px"),r[v]["--app-shell-navbar-transform"]=d,r[v]["--app-shell-navbar-transform-rtl"]=p}}function $d(n){return Number(n)===0?"0px":ii(n)}function jA({padding:n,baseStyles:l,minMediaStyles:r}){hi(n)&&(l["--app-shell-padding"]=$d(pi(n))),vi(n)&&(n.base&&(l["--app-shell-padding"]=$d(n.base)),Mt(n).forEach(o=>{o!=="base"&&(r[o]=r[o]||{},r[o]["--app-shell-padding"]=$d(n[o]))}))}function zA({navbar:n,header:l,footer:r,aside:o,padding:s,theme:u,mode:f}){const d={},p={},h={};f==="static"&&(h["--app-shell-main-grid-column"]="1 / -1",h["--app-shell-main-grid-row"]="2"),OA({baseStyles:h,minMediaStyles:d,maxMediaStyles:p,navbar:n,theme:u,mode:f}),_A({baseStyles:h,minMediaStyles:d,maxMediaStyles:p,aside:o,theme:u,mode:f}),MA({baseStyles:h,minMediaStyles:d,header:l,mode:f}),NA({baseStyles:h,minMediaStyles:d,footer:r,mode:f}),jA({baseStyles:h,minMediaStyles:d,padding:s});const S=$y(Mt(d),u.breakpoints).map(v=>({query:`(min-width: ${Ks(v.px)})`,styles:d[v.value]})),g=$y(Mt(p),u.breakpoints).map(v=>({query:`(max-width: ${Ks(v.px)})`,styles:p[v.value]}));return{baseStyles:h,media:[...S,...g]}}function DA({navbar:n,header:l,aside:r,footer:o,padding:s,mode:u,selector:f}){const d=cn(),p=ll(),{media:h,baseStyles:S}=zA({navbar:n,header:l,footer:o,aside:r,padding:s,theme:d,mode:u});return y.jsx(e0,{media:h,styles:S,selector:f||p.cssVariablesSelector})}function $A({transitionDuration:n,disabled:l}){const[r,o]=x.useState(!0),s=x.useRef(-1),u=x.useRef(-1);return Xb("resize",()=>{o(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>x.startTransition(()=>{o(!1)}),200)}),Wn(()=>{o(!0),clearTimeout(u.current),u.current=window.setTimeout(()=>x.startTransition(()=>{o(!1)}),n||0)},[l,n]),r}const LA={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Qt("app"),mode:"fixed"},L1=(n,{transitionDuration:l,transitionTimingFunction:r})=>({root:{"--app-shell-transition-duration":`${l}ms`,"--app-shell-transition-timing-function":r}}),Bn=me(n=>{const l=ue("AppShell",LA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,navbar:p,withBorder:h,padding:S,transitionDuration:g,transitionTimingFunction:v,header:w,zIndex:E,layout:C,disabled:T,aside:A,footer:N,offsetScrollbars:_=!0,mode:j,mod:L,attributes:k,id:D,...U}=l,te=Oe({name:"AppShell",classes:ba,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:k,vars:d,varsResolver:L1}),le=$A({disabled:T,transitionDuration:g}),oe=kn(D);return y.jsxs(AA,{value:{getStyles:te,withBorder:h,zIndex:E,disabled:T,offsetScrollbars:_,mode:j},children:[y.jsx(DA,{navbar:p,header:w,aside:A,footer:N,padding:S,mode:j,selector:j==="static"?`#${oe}`:void 0}),y.jsx(fe,{...te("root"),id:oe,mod:[{resizing:le,layout:C,disabled:T,mode:j},L],...U})]})});Bn.classes=ba;Bn.varsResolver=L1;Bn.displayName="@mantine/core/AppShell";Bn.Navbar=lp;Bn.Header=tp;Bn.Main=np;Bn.Aside=Wm;Bn.Footer=ep;Bn.Section=ap;function B1(n){return typeof n=="string"?{value:n,label:n}:typeof n=="object"&&"value"in n&&!("label"in n)?{value:n.value,label:`${n.value}`,disabled:n.disabled}:typeof n=="object"&&"group"in n?{group:n.group,items:n.items.map(l=>B1(l))}:typeof n=="number"||typeof n=="bigint"||typeof n=="boolean"?{value:n,label:`${n}`}:n}function BA(n){return n?n.map(l=>B1(l)):[]}function k1(n){return n.reduce((l,r)=>"group"in r?{...l,...k1(r.items)}:(l[`${r.value}`]=r,l),{})}var kt={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",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const kA={error:null},U1=(n,{size:l,color:r})=>({chevron:{"--combobox-chevron-size":Je(l,"combobox-chevron-size"),"--combobox-chevron-color":r?pa(r,n):void 0}}),_c=me(n=>{const l=ue("ComboboxChevron",kA,n),{size:r,error:o,style:s,className:u,classNames:f,styles:d,unstyled:p,vars:h,attributes:S,mod:g,...v}=l,w=Oe({name:"ComboboxChevron",classes:kt,props:l,style:s,className:u,classNames:f,styles:d,unstyled:p,vars:h,varsResolver:U1,attributes:S,rootSelector:"chevron"});return y.jsx(fe,{component:"svg",...v,...w("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},g],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"})})});_c.classes=kt;_c.varsResolver=U1;_c.displayName="@mantine/core/ComboboxChevron";const[UA,un]=Nl("Combobox component was not found in tree");function H1({onMouseDown:n,onClick:l,onClear:r,...o}){return y.jsx(Ot.ClearButton,{tabIndex:-1,"aria-hidden":!0,...o,onMouseDown:s=>{s.preventDefault(),n==null||n(s)},onClick:s=>{r(),l==null||l(s)}})}H1.displayName="@mantine/core/ComboboxClearButton";const op=me(n=>{const{classNames:l,styles:r,className:o,style:s,hidden:u,...f}=ue("ComboboxDropdown",null,n),d=un();return y.jsx(vt.Dropdown,{...f,role:"presentation","data-hidden":u||void 0,"data-floating-height":d.floatingHeight||void 0,...d.getStyles("dropdown",{className:o,style:s,classNames:l,styles:r})})});op.classes=kt;op.displayName="@mantine/core/ComboboxDropdown";const HA={refProp:"ref"},Y1=me(n=>{const{children:l,refProp:r,ref:o}=ue("ComboboxDropdownTarget",HA,n);if(un(),!um(l))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(vt.Target,{ref:o,refProp:r,children:l})});Y1.displayName="@mantine/core/ComboboxDropdownTarget";const rp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ComboboxEmpty",null,n);return y.jsx(fe,{...un().getStyles("empty",{className:r,classNames:l,styles:s,style:o}),...f})});rp.classes=kt;rp.displayName="@mantine/core/ComboboxEmpty";function ip({onKeyDown:n,onClick:l,withKeyboardNavigation:r,withAriaAttributes:o,withExpandedAttribute:s,targetType:u,autoComplete:f}){const d=un(),[p,h]=x.useState(null),S=w=>{if(n==null||n(w),!d.readOnly&&r){if(w.nativeEvent.isComposing)return;if(w.nativeEvent.code==="ArrowDown"&&(w.preventDefault(),d.store.dropdownOpened?h(d.store.selectNextOption()):(d.store.openDropdown("keyboard"),h(d.store.selectActiveOption()),d.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),w.nativeEvent.code==="ArrowUp"&&(w.preventDefault(),d.store.dropdownOpened?h(d.store.selectPreviousOption()):(d.store.openDropdown("keyboard"),h(d.store.selectActiveOption()),d.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),w.nativeEvent.code==="Enter"||w.nativeEvent.code==="NumpadEnter"){if(w.nativeEvent.keyCode===229)return;const E=d.store.getSelectedOptionIndex();d.store.dropdownOpened&&E!==-1?(w.preventDefault(),d.store.clickSelectedOption()):u==="button"&&(w.preventDefault(),d.store.openDropdown("keyboard"))}w.key==="Escape"&&d.store.closeDropdown("keyboard"),w.nativeEvent.code==="Space"&&u==="button"&&(w.preventDefault(),d.store.toggleDropdown("keyboard"))}};return{...o?{...s?{role:"combobox"}:{},"aria-haspopup":"listbox","aria-expanded":s?!!(d.store.listId&&d.store.dropdownOpened):void 0,"aria-controls":d.store.dropdownOpened&&d.store.listId?d.store.listId:void 0,"aria-activedescendant":d.store.dropdownOpened&&p||void 0,autoComplete:f,"data-expanded":d.store.dropdownOpened||void 0,"data-mantine-stop-propagation":d.store.dropdownOpened||void 0}:{},onKeyDown:S,onClick:w=>{u==="button"&&w.currentTarget.focus(),l==null||l(w)}}}const YA={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},q1=me(n=>{const{children:l,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:u,targetType:f,autoComplete:d,ref:p,...h}=ue("ComboboxEventsTarget",YA,n),S=Ml(l);if(!S)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 g=un();return x.cloneElement(S,{...ip({targetType:f,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:u,onKeyDown:S.props.onKeyDown,onClick:S.props.onClick,autoComplete:d}),...h,[r]:it(p,g.store.targetRef,ic(S))})});q1.displayName="@mantine/core/ComboboxEventsTarget";const sp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ComboboxFooter",null,n);return y.jsx(fe,{...un().getStyles("footer",{className:r,classNames:l,style:o,styles:s}),...f,onMouseDown:d=>{d.preventDefault()}})});sp.classes=kt;sp.displayName="@mantine/core/ComboboxFooter";const cp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,children:f,label:d,id:p,...h}=ue("ComboboxGroup",null,n),S=un(),g=kn(p),v=d!=null&&d!==!1&&d!=="";return y.jsxs(fe,{role:"group","aria-labelledby":v?g:void 0,...S.getStyles("group",{className:r,classNames:l,style:o,styles:s}),...h,children:[v&&y.jsx("div",{id:g,...S.getStyles("groupLabel",{classNames:l,styles:s}),children:d}),f]})});cp.classes=kt;cp.displayName="@mantine/core/ComboboxGroup";const up=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ComboboxHeader",null,n);return y.jsx(fe,{...un().getStyles("header",{className:r,classNames:l,style:o,styles:s}),...f,onMouseDown:d=>{d.preventDefault()}})});up.classes=kt;up.displayName="@mantine/core/ComboboxHeader";function V1({value:n,valuesDivider:l=",",...r}){return y.jsx("input",{type:"hidden",value:Array.isArray(n)?n.join(l):n?`${n}`:"",...r})}V1.displayName="@mantine/core/ComboboxHiddenInput";const fp=me(n=>{const l=ue("ComboboxOption",null,n),{classNames:r,className:o,style:s,styles:u,vars:f,onClick:d,id:p,active:h,onMouseDown:S,onMouseOver:g,disabled:v,selected:w,mod:E,...C}=l,T=un(),A=x.useId(),N=p||A;return y.jsx(fe,{...T.getStyles("option",{className:o,classNames:r,styles:u,style:s}),...C,id:N,mod:["combobox-option",{"combobox-active":h,"combobox-disabled":v,"combobox-selected":w},E],role:"option",onClick:_=>{var j;v?_.preventDefault():((j=T.onOptionSubmit)==null||j.call(T,l.value,l),d==null||d(_))},onMouseDown:_=>{_.preventDefault(),S==null||S(_)},onMouseOver:_=>{T.resetSelectionOnOptionHover&&T.store.resetSelectedOption(),g==null||g(_)}})});fp.classes=kt;fp.displayName="@mantine/core/ComboboxOption";const dp=me(n=>{const{classNames:l,className:r,style:o,styles:s,id:u,onMouseDown:f,labelledBy:d,...p}=ue("ComboboxOptions",null,n),h=un(),S=kn(u);return x.useEffect(()=>{h.store.setListId(S)},[S]),y.jsx(fe,{...h.getStyles("options",{className:r,style:o,classNames:l,styles:s}),...p,id:S,role:"listbox","aria-labelledby":d,onMouseDown:g=>{g.preventDefault(),f==null||f(g)}})});dp.classes=kt;dp.displayName="@mantine/core/ComboboxOptions";const qA={withAriaAttributes:!0,withKeyboardNavigation:!0},mp=me(n=>{const{classNames:l,styles:r,unstyled:o,vars:s,withAriaAttributes:u,onKeyDown:f,onClick:d,withKeyboardNavigation:p,size:h,ref:S,...g}=ue("ComboboxSearch",qA,n),v=un(),w=v.getStyles("search"),E=ip({targetType:"input",withAriaAttributes:u,withKeyboardNavigation:p,withExpandedAttribute:!1,onKeyDown:f,onClick:d,autoComplete:"off"});return y.jsx(Ot,{ref:it(S,v.store.searchRef),classNames:[{input:w.className},l],styles:[{input:w.style},r],size:h||v.size,...E,...g,__staticSelector:"Combobox"})});mp.classes=kt;mp.displayName="@mantine/core/ComboboxSearch";const VA={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},G1=me(n=>{const{children:l,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:u,targetType:f,autoComplete:d,ref:p,...h}=ue("ComboboxTarget",VA,n),S=Ml(l);if(!S)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 g=un(),v=x.cloneElement(S,{...ip({targetType:f,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:u,onKeyDown:S.props.onKeyDown,onClick:S.props.onClick,autoComplete:d}),...h});return y.jsx(vt.Target,{refProp:r,ref:it(p,g.store.targetRef),children:v})});G1.displayName="@mantine/core/ComboboxTarget";function GA(n,l,r){for(let o=n-1;o>=0;o-=1)if(!l[o].hasAttribute("data-combobox-disabled"))return o;if(r){for(let o=l.length-1;o>-1;o-=1)if(!l[o].hasAttribute("data-combobox-disabled"))return o}return n}function XA(n,l,r){for(let o=n+1;o<l.length;o+=1)if(!l[o].hasAttribute("data-combobox-disabled"))return o;if(r){for(let o=0;o<l.length;o+=1)if(!l[o].hasAttribute("data-combobox-disabled"))return o}return n}function IA(n){for(let l=0;l<n.length;l+=1)if(!n[l].hasAttribute("data-combobox-disabled"))return l;return-1}function X1({defaultOpened:n,opened:l,onOpenedChange:r,onDropdownClose:o,onDropdownOpen:s,loop:u=!0,scrollBehavior:f="instant"}={}){const[d,p]=el({value:l,defaultValue:n,finalValue:!1,onChange:r}),h=x.useRef(null),S=x.useRef(-1),g=x.useRef(null),v=x.useRef(null),w=x.useRef(-1),E=x.useRef(-1),C=x.useRef(-1),T=x.useCallback((O="unknown")=>{d||(p(!0),s==null||s(O))},[p,s,d]),A=x.useCallback((O="unknown")=>{d&&(p(!1),o==null||o(O))},[p,o,d]),N=x.useCallback((O="unknown")=>{d?A(O):T(O)},[A,T,d]),_=x.useCallback(()=>{const O=Kn(v.current),B=Vs(`#${h.current} [data-combobox-selected]`,O);B==null||B.removeAttribute("data-combobox-selected"),B==null||B.removeAttribute("aria-selected")},[]),j=x.useCallback(O=>{const B=Kn(v.current),H=Vs(`#${h.current}`,B),Z=H?Tl("[data-combobox-option]",H):null;if(!Z)return null;const P=O>=Z.length?0:O<0?Z.length-1:O;return S.current=P,Z!=null&&Z[P]&&!Z[P].hasAttribute("data-combobox-disabled")?(_(),Z[P].setAttribute("data-combobox-selected","true"),Z[P].setAttribute("aria-selected","true"),Z[P].scrollIntoView({block:"nearest",behavior:f}),Z[P].id):null},[f,_]),L=x.useCallback(()=>{const O=Kn(v.current),B=Vs(`#${h.current} [data-combobox-active]`,O);if(B){const H=Tl(`#${h.current} [data-combobox-option]`,O).findIndex(Z=>Z===B);return j(H)}return j(0)},[j]),k=x.useCallback(()=>{const O=Kn(v.current),B=Tl(`#${h.current} [data-combobox-option]`,O);return j(XA(S.current,B,u))},[j,u]),D=x.useCallback(()=>{const O=Kn(v.current),B=Tl(`#${h.current} [data-combobox-option]`,O);return j(GA(S.current,B,u))},[j,u]),U=x.useCallback(()=>{const O=Kn(v.current),B=Tl(`#${h.current} [data-combobox-option]`,O);return j(IA(B))},[j]),te=x.useCallback((O="selected",B)=>{var H;if(typeof O=="number"){S.current=O;const Z=Kn(v.current),P=Tl(`#${h.current} [data-combobox-option]`,Z);B!=null&&B.scrollIntoView&&((H=P[O])==null||H.scrollIntoView({block:"nearest",behavior:f}));return}C.current=window.setTimeout(()=>{var Y;const Z=Kn(v.current),P=Tl(`#${h.current} [data-combobox-option]`,Z),M=P.findIndex(J=>J.hasAttribute(`data-combobox-${O}`));S.current=M,B!=null&&B.scrollIntoView&&((Y=P[M])==null||Y.scrollIntoView({block:"nearest",behavior:f}))},0)},[]),le=x.useCallback(()=>{S.current=-1,_()},[_]),oe=x.useCallback(()=>{var B,H;const O=Kn(v.current);(H=(B=Tl(`#${h.current} [data-combobox-option]`,O))==null?void 0:B[S.current])==null||H.click()},[]),ee=x.useCallback(O=>{h.current=O},[]),F=x.useCallback(()=>{w.current=window.setTimeout(()=>{var O;return(O=g.current)==null?void 0:O.focus()},0)},[]),V=x.useCallback(()=>{E.current=window.setTimeout(()=>{var O;return(O=v.current)==null?void 0:O.focus()},0)},[]),ce=x.useCallback(()=>S.current,[]);return x.useEffect(()=>()=>{window.clearTimeout(w.current),window.clearTimeout(E.current),window.clearTimeout(C.current)},[]),{dropdownOpened:d,openDropdown:T,closeDropdown:A,toggleDropdown:N,selectedOptionIndex:S.current,getSelectedOptionIndex:ce,selectOption:j,selectFirstOption:U,selectActiveOption:L,selectNextOption:k,selectPreviousOption:D,resetSelectedOption:le,updateSelectedOptionIndex:te,listId:h.current,setListId:ee,clickSelectedOption:oe,searchRef:g,focusSearchInput:F,targetRef:v,focusTarget:V}}const ZA={keepMounted:!0,keepMountedMode:"display-none",withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},I1=(n,{size:l,dropdownPadding:r})=>({options:{"--combobox-option-fz":Ct(l),"--combobox-option-padding":Je(l,"combobox-option-padding")},dropdown:{"--combobox-padding":r===void 0?void 0:K(r),"--combobox-option-fz":Ct(l),"--combobox-option-padding":Je(l,"combobox-option-padding")}}),Ie=n=>{const l=ue("Combobox",ZA,n),{classNames:r,styles:o,unstyled:s,children:u,store:f,vars:d,onOptionSubmit:p,onClose:h,size:S,dropdownPadding:g,resetSelectionOnOptionHover:v,__staticSelector:w,readOnly:E,attributes:C,floatingHeight:T,middlewares:A,...N}=l,_=T==="viewport"?{...A,flip:!1,size:{...typeof(A==null?void 0:A.size)=="object"?A.size:{},padding:typeof(A==null?void 0:A.size)=="object"&&A.size.padding!==void 0?A.size.padding:10,apply:({availableHeight:U,availableWidth:te,elements:le,...oe})=>{le.floating.style.setProperty("--combobox-floating-max-height",`${U}px`);const ee=A==null?void 0:A.size;typeof ee=="object"&&ee.apply?ee.apply({availableHeight:U,availableWidth:te,elements:le,...oe}):ee&&Object.assign(le.floating.style,{maxWidth:`${te}px`,maxHeight:`${U}px`})}}}:A,j=X1(),L=f||j,k=Oe({name:w||"Combobox",classes:kt,props:l,classNames:r,styles:o,unstyled:s,attributes:C,vars:d,varsResolver:I1}),D=()=>{h==null||h(),L.closeDropdown()};return y.jsx(UA,{value:{getStyles:k,store:L,onOptionSubmit:p,size:S,resetSelectionOnOptionHover:v,readOnly:E,floatingHeight:T},children:y.jsx(vt,{opened:L.dropdownOpened,...N,middlewares:_,onChange:U=>!U&&D(),withRoles:!1,unstyled:s,children:u})})},QA=n=>n;Ie.extend=QA;Ie.classes=kt;Ie.varsResolver=I1;Ie.displayName="@mantine/core/Combobox";Ie.Target=G1;Ie.Dropdown=op;Ie.Options=dp;Ie.Option=fp;Ie.Search=mp;Ie.Empty=rp;Ie.Chevron=_c;Ie.Footer=sp;Ie.Header=up;Ie.EventsTarget=q1;Ie.DropdownTarget=Y1;Ie.Group=cp;Ie.ClearButton=H1;Ie.HiddenInput=V1;function Z1({size:n,style:l,...r}){return y.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n!==void 0?{width:K(n),height:K(n),...l}:l,"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 li(n){return"group"in n}function Q1({options:n,search:l,limit:r}){const o=l.trim().toLowerCase(),s=[];for(let u=0;u<n.length;u+=1){const f=n[u];if(s.length===r)return s;li(f)&&s.push({group:f.group,items:Q1({options:f.items,search:l,limit:r-s.length})}),li(f)||f.label.toLowerCase().includes(o)&&s.push(f)}return s}function KA(n){if(n.length===0)return!0;for(const l of n)if(!("group"in l)||l.items.length>0)return!1;return!0}function K1(n,l=new Set){if(Array.isArray(n))for(const r of n)if(li(r))K1(r.items,l);else{if(typeof r.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(l.has(r.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${r.value}" was provided more than once`);l.add(r.value)}}function FA(n,l){return Array.isArray(n)?n.includes(l):n===l}function F1({data:n,withCheckIcon:l,withAlignedLabels:r,value:o,checkIconPosition:s,unstyled:u,renderOption:f}){if(!li(n)){const p=FA(o,n.value),h=l&&(p?y.jsx(Z1,{className:kt.optionsDropdownCheckIcon}):r?y.jsx("div",{className:kt.optionsDropdownCheckPlaceholder}):null),S=y.jsxs(y.Fragment,{children:[s==="left"&&h,y.jsx("span",{children:n.label}),s==="right"&&h]});return y.jsx(Ie.Option,{value:n.value,disabled:n.disabled,className:gt({[kt.optionsDropdownOption]:!u}),"data-reverse":s==="right"||void 0,"data-checked":p||void 0,"aria-selected":p,active:p,children:typeof f=="function"?f({option:n,checked:p}):S})}const d=n.items.map(p=>y.jsx(F1,{data:p,value:o,unstyled:u,withCheckIcon:l,withAlignedLabels:r,checkIconPosition:s,renderOption:f},`${p.value}`));return y.jsx(Ie.Group,{label:n.group,children:d})}function JA({data:n,hidden:l,hiddenWhenEmpty:r,filter:o,search:s,limit:u,maxDropdownHeight:f,floatingHeight:d,withScrollArea:p=!0,filterOptions:h=!0,withCheckIcon:S=!1,withAlignedLabels:g=!1,value:v,checkIconPosition:w,nothingFoundMessage:E,unstyled:C,labelId:T,renderOption:A,scrollAreaProps:N,"aria-label":_}){const j=un();K1(n);const L=typeof s=="string"?(o||Q1)({options:n,search:h?s:"",limit:u??1/0}):n,k=KA(L),D=L.map((U,te)=>y.jsx(F1,{data:U,withCheckIcon:S,withAlignedLabels:g,value:v,checkIconPosition:w,unstyled:C,renderOption:A},li(U)?`group-${typeof U.group=="string"?U.group:te}`:`${U.value}`));return y.jsx(Ie.Dropdown,{hidden:l||r&&k,"data-composed":!0,children:y.jsxs(Ie.Options,{labelledBy:T,"aria-label":_,children:[p?y.jsx($n.Autosize,{mah:(d??j.floatingHeight)==="viewport"?"var(--combobox-floating-options-max-height)":f??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...N,children:D}):D,k&&E&&y.jsx(Ie.Empty,{children:E})]})})}var J1={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const P1=(n,{radius:l,color:r,gradient:o,variant:s,size:u,autoContrast:f,circle:d})=>{const p=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:o,variant:s||"filled",autoContrast:f});return{root:{"--badge-height":Je(u,"badge-height"),"--badge-padding-x":Je(u,"badge-padding-x"),"--badge-fz":Je(u,"badge-fz"),"--badge-radius":d||l===void 0?void 0:Ut(l),"--badge-bg":r||s?p.background:void 0,"--badge-color":r||s?p.color:void 0,"--badge-bd":r||s?p.border:void 0,"--badge-dot-color":s==="dot"?pa(r,n):void 0}}},Nc=Kt(n=>{const l=ue("Badge",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,radius:p,color:h,gradient:S,leftSection:g,rightSection:v,children:w,variant:E,fullWidth:C,autoContrast:T,circle:A,mod:N,attributes:_,...j}=l,L=Oe({name:"Badge",props:l,classes:J1,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:_,vars:d,varsResolver:P1});return y.jsxs(fe,{variant:E,mod:[{block:C,circle:A,"with-right-section":!!v,"with-left-section":!!g},N],...L("root",{variant:E}),...j,children:[g&&y.jsx("span",{...L("section"),"data-position":"left",children:g}),y.jsx("span",{...L("label"),children:w}),v&&y.jsx("span",{...L("section"),"data-position":"right",children:v})]})});Nc.classes=J1;Nc.varsResolver=P1;Nc.displayName="@mantine/core/Badge";var Po={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const wb={orientation:"horizontal"},W1=(n,{borderWidth:l})=>({group:{"--button-border-width":K(l)}}),Mc=me(n=>{const l=ue("ButtonGroup",wb,n),{className:r,style:o,classNames:s,styles:u,unstyled:f,orientation:d,vars:p,borderWidth:h,mod:S,attributes:g,...v}=ue("ButtonGroup",wb,n);return y.jsx(fe,{...Oe({name:"ButtonGroup",props:l,classes:Po,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:g,vars:p,varsResolver:W1,rootSelector:"group"})("group"),mod:[{"data-orientation":d},S],role:"group",...v})});Mc.classes=Po;Mc.varsResolver=W1;Mc.displayName="@mantine/core/ButtonGroup";const eS=(n,{radius:l,color:r,gradient:o,variant:s,autoContrast:u,size:f})=>{const d=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:o,variant:s||"filled",autoContrast:u});return{groupSection:{"--section-height":Je(f,"section-height"),"--section-padding-x":Je(f,"section-padding-x"),"--section-fz":f!=null&&f.includes("compact")?Ct(f.replace("compact-","")):Ct(f),"--section-radius":l===void 0?void 0:Ut(l),"--section-bg":r||s?d.background:void 0,"--section-color":d.color,"--section-bd":r||s?d.border:void 0}}},Oc=me(n=>{const l=ue("ButtonGroupSection",null,n),{className:r,style:o,classNames:s,styles:u,unstyled:f,vars:d,gradient:p,radius:h,autoContrast:S,attributes:g,...v}=l;return y.jsx(fe,{...Oe({name:"ButtonGroupSection",props:l,classes:Po,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:g,vars:d,varsResolver:eS,rootSelector:"groupSection"})("groupSection"),...v})});Oc.classes=Po;Oc.varsResolver=eS;Oc.displayName="@mantine/core/ButtonGroupSection";const PA={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${K(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},tS=(n,{radius:l,color:r,gradient:o,variant:s,size:u,justify:f,autoContrast:d})=>{const p=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:o,variant:s||"filled",autoContrast:d});return{root:{"--button-justify":f,"--button-height":Je(u,"button-height"),"--button-padding-x":Je(u,"button-padding-x"),"--button-fz":u!=null&&u.includes("compact")?Ct(u.replace("compact-","")):Ct(u),"--button-radius":l===void 0?void 0:Ut(l),"--button-bg":r||s?p.background:void 0,"--button-hover":r||s?p.hover:void 0,"--button-color":p.color,"--button-bd":r||s?p.border:void 0,"--button-hover-color":r||s?p.hoverColor:void 0}}},_l=Kt(n=>{const l=ue("Button",null,n),{style:r,vars:o,className:s,color:u,disabled:f,children:d,leftSection:p,rightSection:h,fullWidth:S,variant:g,radius:v,loading:w,loaderProps:E,gradient:C,classNames:T,styles:A,unstyled:N,"data-disabled":_,autoContrast:j,mod:L,attributes:k,...D}=l,U=Oe({name:"Button",props:l,classes:Po,className:s,style:r,classNames:T,styles:A,unstyled:N,attributes:k,vars:o,varsResolver:tS}),te=!!p,le=!!h;return y.jsxs(jl,{...U("root",{active:!f&&!w&&!_}),unstyled:N,variant:g,disabled:f||w,mod:[{disabled:f||_,loading:w,block:S,"with-left-section":te,"with-right-section":le},L],...D,children:[typeof w=="boolean"&&y.jsx(Al,{mounted:w,transition:PA,duration:150,children:oe=>y.jsx(fe,{component:"span",...U("loader",{style:oe}),"aria-hidden":!0,children:y.jsx(Za,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...E})})}),y.jsxs("span",{...U("inner"),children:[p&&y.jsx(fe,{component:"span",...U("section"),mod:{position:"left"},children:p}),y.jsx(fe,{component:"span",mod:{loading:w},...U("label"),children:d}),h&&y.jsx(fe,{component:"span",...U("section"),mod:{position:"right"},children:h})]})]})});_l.classes=Po;_l.varsResolver=tS;_l.displayName="@mantine/core/Button";_l.Group=Mc;_l.GroupSection=Oc;function WA(n){const l=n.currentTarget;return Kn(l).activeElement!==l}var nS={root:"m_7485cace"};const e3={strategy:"block"},lS=(n,{size:l,fluid:r})=>({root:{"--container-size":r?void 0:Je(l,"container-size")}}),ai=me(n=>{const l=ue("Container",e3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,fluid:p,mod:h,attributes:S,strategy:g,...v}=l,w=Oe({name:"Container",classes:nS,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:S,vars:d,varsResolver:lS});return y.jsx(fe,{mod:[{fluid:p,strategy:g},h],...w("root"),...v})});ai.classes=nS;ai.varsResolver=lS;ai.displayName="@mantine/core/Container";var aS={root:"m_3eebeb36",label:"m_9e365f20"};const t3={orientation:"horizontal"},oS=(n,{color:l,variant:r,size:o})=>({root:{"--divider-color":l?pa(l,n):void 0,"--divider-border-style":r,"--divider-size":Je(o,"divider-size")}}),jc=me(n=>{const l=ue("Divider",t3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,color:p,orientation:h,label:S,labelPosition:g,mod:v,attributes:w,...E}=l,C=Oe({name:"Divider",classes:aS,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:w,vars:d,varsResolver:oS});return y.jsx(fe,{mod:[{orientation:h,withLabel:!!S},v],role:"separator",...C("root"),...E,children:S&&y.jsx(fe,{component:"span",mod:{position:g},...C("label"),children:S})})});jc.classes=aS;jc.varsResolver=oS;jc.displayName="@mantine/core/Divider";const[n3,Wo]=Nl("Drawer component was not found in tree");var Dl={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const zc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("DrawerBody",null,n);return y.jsx(Im,{...Wo().getStyles("body",{classNames:l,style:o,styles:s,className:r}),...f})});zc.classes=Dl;zc.displayName="@mantine/core/DrawerBody";const Dc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("DrawerCloseButton",null,n);return y.jsx(Zm,{...Wo().getStyles("close",{classNames:l,style:o,styles:s,className:r}),...f})});Dc.classes=Dl;Dc.displayName="@mantine/core/DrawerCloseButton";const $c=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,children:f,radius:d,__hidden:p,...h}=ue("DrawerContent",null,n),S=Wo(),g=S.scrollAreaComponent||b1;return y.jsx(Qm,{...S.getStyles("content",{className:r,style:o,styles:s,classNames:l}),innerProps:S.getStyles("inner",{className:r,style:o,styles:s,classNames:l}),...h,radius:d||S.radius||0,"data-hidden":p||void 0,children:y.jsx(g,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:f})})});$c.classes=Dl;$c.displayName="@mantine/core/DrawerContent";const Lc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("DrawerHeader",null,n);return y.jsx(Km,{...Wo().getStyles("header",{classNames:l,style:o,styles:s,className:r}),...f})});Lc.classes=Dl;Lc.displayName="@mantine/core/DrawerHeader";const Bc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("DrawerOverlay",null,n);return y.jsx(Fm,{...Wo().getStyles("overlay",{classNames:l,style:o,styles:s,className:r}),...f})});Bc.classes=Dl;Bc.displayName="@mantine/core/DrawerOverlay";function l3(n){switch(n){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function a3(n){if(n==="top"||n==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const o3={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},r3={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},i3={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Qt("modal"),position:"left"},rS=(n,{position:l,size:r,offset:o})=>({root:{"--drawer-size":Je(r,"drawer-size"),"--drawer-flex":a3(l),"--drawer-height":l==="left"||l==="right"?void 0:"var(--drawer-size)","--drawer-align":l3(l),"--drawer-justify":l==="right"?"flex-end":void 0,"--drawer-offset":K(o)}}),gi=me(n=>{const l=ue("DrawerRoot",i3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,scrollAreaComponent:p,position:h,transitionProps:S,radius:g,attributes:v,...w}=l,{dir:E}=al(),C=Oe({name:"Drawer",classes:Dl,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:v,vars:d,varsResolver:rS}),T=(E==="rtl"?r3:o3)[h];return y.jsx(n3,{value:{scrollAreaComponent:p,getStyles:C,radius:g},children:y.jsx(Xm,{...C("root"),transitionProps:{transition:T,...S},"data-offset-scrollbars":p===$n.Autosize||void 0,unstyled:f,...w})})});gi.classes=Dl;gi.varsResolver=rS;gi.displayName="@mantine/core/DrawerRoot";const iS=x.createContext(null);function sS({children:n}){const[l,r]=x.useState([]),[o,s]=x.useState(Qt("modal"));return y.jsx(iS,{value:{stack:l,addModal:(u,f)=>{r(d=>[...new Set([...d,u])]),s(d=>typeof f=="number"&&typeof d=="number"?Math.max(d,f):d)},removeModal:u=>r(f=>f.filter(d=>d!==u)),getZIndex:u=>`calc(${o} + ${l.indexOf(u)} + 1)`,currentId:l[l.length-1],maxZIndex:o},children:n})}sS.displayName="@mantine/core/DrawerStack";const kc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("DrawerTitle",null,n);return y.jsx(Jm,{...Wo().getStyles("title",{classNames:l,style:o,styles:s,className:r}),...f})});kc.classes=Dl;kc.displayName="@mantine/core/DrawerTitle";const s3={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Qt("modal"),withOverlay:!0,withCloseButton:!0},Hn=me(n=>{const{title:l,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:u,children:f,opened:d,stackId:p,zIndex:h,...S}=ue("Drawer",s3,n),g=x.use(iS),v=!!l||s,w=g&&p?{closeOnEscape:g.currentId===p,trapFocus:g.currentId===p,zIndex:g.getZIndex(p)}:{},E=r===!1?!1:p&&g?g.currentId===p:d;return x.useEffect(()=>{g&&p&&(d?g.addModal(p,h||Qt("modal")):g.removeModal(p))},[d,p,h]),y.jsxs(gi,{opened:d,zIndex:g&&p?g.getZIndex(p):h,...S,...w,children:[r&&y.jsx(Bc,{visible:E,transitionProps:g&&p?{duration:0}:void 0,...o}),y.jsxs($c,{__hidden:g&&p&&d?p!==g.currentId:!1,children:[v&&y.jsxs(Lc,{children:[l&&y.jsx(kc,{children:l}),s&&y.jsx(Dc,{...u})]}),y.jsx(zc,{children:f})]})]})});Hn.classes=Dl;Hn.displayName="@mantine/core/Drawer";Hn.Root=gi;Hn.Overlay=Bc;Hn.Content=$c;Hn.Body=zc;Hn.Header=Lc;Hn.Title=kc;Hn.CloseButton=Dc;Hn.Stack=sS;const[c3,Jt]=Nl("Menu component was not found in the tree"),cS=x.createContext(null);function uS(n){const{value:l,defaultValue:r,onChange:o,children:s}=ue("MenuCheckboxGroup",null,n),[u,f]=el({value:l,defaultValue:r,finalValue:[],onChange:o});return y.jsx(cS,{value:{values:u,onChange:x.useCallback(d=>{f(u.includes(d)?u.filter(p=>p!==d):[...u,d])},[u,f])},children:s})}uS.displayName="@mantine/core/MenuCheckboxGroup";const Io=x.createContext(null);function fS({role:n,checked:l,indicator:r,onSelect:o,color:s,closeMenuOnClick:u,rightSection:f,children:d,disabled:p,dataDisabled:h,className:S,style:g,styles:v,classNames:w,buttonRef:E,others:C}){const T=Jt(),A=x.use(Io),N=cn(),{dir:_}=al(),j=x.useRef(null),L=at(C.onClick,()=>{h||(o(),u&&T.closeDropdownImmediately())}),k=at(C.onMouseMove,()=>{var ee;if(!T.hasSearch)return;const oe=(ee=j.current)==null?void 0:ee.closest("[data-menu-dropdown]");oe&&oe.querySelectorAll("[data-menu-active]").forEach(F=>{F!==j.current&&F.closest("[data-menu-dropdown]")===oe&&F.removeAttribute("data-menu-active")})}),D=at(C.onKeyDown,oe=>{oe.key==="ArrowLeft"&&A&&(A.close(),A.focusParentItem())}),U=s?N.variantColorResolver({color:s,theme:N,variant:"light"}):void 0,te=s?ga({color:s,theme:N}):null,le=T.alignItemsLabels!=="none"||l;return y.jsxs(jl,{onMouseDown:oe=>oe.preventDefault(),...C,unstyled:T.unstyled,tabIndex:T.menuItemTabIndex,...T.getStyles("item",{className:S,style:g,styles:v,classNames:w}),ref:it(j,E),role:n,"aria-checked":l,disabled:p,"data-menu-item":!0,"data-checked":l||void 0,"data-disabled":p||h||void 0,"data-mantine-stop-propagation":!0,onClick:L,onMouseMove:k,onKeyDown:fm({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:T.loop,dir:_,orientation:"vertical",onKeyDown:D}),__vars:{"--menu-item-color":te!=null&&te.isThemeColor&&(te==null?void 0:te.shade)===void 0?`var(--mantine-color-${te.color}-6)`:U==null?void 0:U.color,"--menu-item-hover":U==null?void 0:U.hover},children:[le&&y.jsx("div",{...T.getStyles("itemIndicator",{styles:v,classNames:w}),"data-checked":l||void 0,children:l?r:null}),d&&y.jsx("div",{...T.getStyles("itemLabel",{styles:v,classNames:w}),"data-menu-item-label":!0,children:d}),f&&y.jsx("div",{...T.getStyles("itemSection",{styles:v,classNames:w}),"data-position":"right",children:f})]})}var Yn={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",search:"m_ef8769b6",itemLabel:"m_5476e0d3",itemIndicator:"m_8395186e",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const pp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,color:f,closeMenuOnClick:d,rightSection:p,children:h,disabled:S,"data-disabled":g,value:v,checked:w,defaultChecked:E,onChange:C,checkIcon:T,ref:A,...N}=ue("MenuCheckboxItem",null,n),_=Jt(),j=x.use(cS),L=j&&v!==void 0?j.values.includes(v):void 0,[k,D]=el({value:w??L,defaultValue:E,finalValue:!1,onChange:C});return y.jsx(fS,{role:"menuitemcheckbox",checked:k,indicator:T??_.checkIcon??y.jsx(Z1,{size:10}),onSelect:()=>{C?D(!k):j&&v!==void 0?j.onChange(v):D(!k)},color:f,closeMenuOnClick:d,rightSection:p,disabled:S,dataDisabled:g,className:r,style:o,styles:s,classNames:l,buttonRef:A,others:N,children:h})});pp.classes=Yn;pp.displayName="@mantine/core/MenuCheckboxItem";function dS(n){const{children:l,disabled:r,longPressDelay:o}=ue("MenuContextMenu",null,n),s=Ml(l);if(!s)throw new Error("Menu.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=Jt(),f=bc();return x.cloneElement(s,Z0({childProps:s.props,disabled:r||f.disabled,opened:u.opened,longPressDelay:o,setReference:f.reference,open:()=>u.openDropdown()}))}dS.displayName="@mantine/core/MenuContextMenu";const hp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("MenuDivider",null,n);return y.jsx(fe,{...Jt().getStyles("divider",{className:r,style:o,styles:s,classNames:l}),...f})});hp.classes=Yn;hp.displayName="@mantine/core/MenuDivider";const u3=500;function Cb(n){return((n.querySelector("[data-menu-item-label]")??n).textContent??"").trim().toLowerCase()}function f3(n){return n.length>1&&n.split("").every(l=>l===n[0])}function mS({enabled:n,opened:l,getDropdown:r}){const o=x.useRef({buffer:"",timeoutId:null});return x.useEffect(()=>{if(l&&n)return;const s=o.current;s.timeoutId!==null&&(window.clearTimeout(s.timeoutId),s.timeoutId=null),s.buffer=""},[l,n]),x.useEffect(()=>()=>{const{timeoutId:s}=o.current;s!==null&&window.clearTimeout(s)},[]),s=>{if(!n||s.defaultPrevented||s.ctrlKey||s.metaKey||s.altKey||s.key.length!==1||s.key===" ")return;const u=s.target;if(u&&(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||u.tagName==="SELECT"||u.isContentEditable))return;const f=r();if(!f)return;const d=Array.from(f.querySelectorAll("[data-menu-item]:not([data-disabled])")).filter(v=>v.closest("[data-menu-dropdown]")===f);if(d.length===0)return;const p=o.current;p.buffer=(p.buffer+s.key).toLowerCase(),p.timeoutId!==null&&window.clearTimeout(p.timeoutId),p.timeoutId=window.setTimeout(()=>{p.buffer="",p.timeoutId=null},u3);const h=document.activeElement,S=h?d.indexOf(h):-1;let g=null;if(p.buffer.length===1||f3(p.buffer)){const v=p.buffer[0],w=S+1;for(let E=0;E<d.length;E+=1){const C=(w+E)%d.length;if(Cb(d[C]).startsWith(v)){g=d[C];break}}}else for(let v=0;v<d.length;v+=1)if(Cb(d[v]).startsWith(p.buffer)){g=d[v];break}g&&(s.preventDefault(),g.focus())}}const vp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,onMouseEnter:f,onMouseLeave:d,onKeyDown:p,children:h,ref:S,...g}=ue("MenuDropdown",null,n),v=x.useRef(null),w=Jt(),E=mS({enabled:!w.hasSearch,opened:w.opened,getDropdown:()=>v.current}),C=at(p,N=>{var _,j;E(N),!(N.defaultPrevented||w.hasSearch)&&(N.key==="ArrowUp"||N.key==="ArrowDown")&&(N.preventDefault(),(j=(_=v.current)==null?void 0:_.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||j.focus())}),T=at(f,()=>(w.trigger==="hover"||w.trigger==="click-hover")&&w.openDropdown()),A=at(d,()=>(w.trigger==="hover"||w.trigger==="click-hover")&&w.closeDropdown());return y.jsxs(vt.Dropdown,{...g,onMouseEnter:T,onMouseLeave:A,role:"menu","aria-orientation":"vertical",ref:it(S,v),...w.getStyles("dropdown",{className:r,style:o,styles:s,classNames:l,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:C,children:[w.withInitialFocusPlaceholder&&!w.hasSearch&&y.jsx("div",{role:"presentation",tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),h]})});vp.classes=Yn;vp.displayName="@mantine/core/MenuDropdown";const gp=Kt(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,color:f,closeMenuOnClick:d,leftSection:p,rightSection:h,children:S,disabled:g,"data-disabled":v,ref:w,...E}=ue("MenuItem",null,n),C=Jt(),T=x.use(Io),A=cn(),{dir:N}=al(),_=x.useRef(null),j=E,L=at(j.onClick,()=>{v||(typeof d=="boolean"?d&&C.closeDropdownImmediately():C.closeOnItemClick&&C.closeDropdownImmediately())}),k=at(j.onMouseMove,()=>{var oe;if(!C.hasSearch)return;const le=(oe=_.current)==null?void 0:oe.closest("[data-menu-dropdown]");le&&le.querySelectorAll("[data-menu-active]").forEach(ee=>{ee!==_.current&&ee.closest("[data-menu-dropdown]")===le&&ee.removeAttribute("data-menu-active")})}),D=f?A.variantColorResolver({color:f,theme:A,variant:"light"}):void 0,U=f?ga({color:f,theme:A}):null,te=at(j.onKeyDown,le=>{le.key==="ArrowLeft"&&T&&(T.close(),T.focusParentItem())});return y.jsxs(jl,{onMouseDown:le=>le.preventDefault(),...E,unstyled:C.unstyled,tabIndex:C.menuItemTabIndex,...C.getStyles("item",{className:r,style:o,styles:s,classNames:l}),ref:it(_,w),role:"menuitem",disabled:g,"data-menu-item":!0,"data-disabled":g||v||void 0,"data-mantine-stop-propagation":!0,onClick:L,onMouseMove:k,onKeyDown:fm({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:C.loop,dir:N,orientation:"vertical",onKeyDown:te}),__vars:{"--menu-item-color":U!=null&&U.isThemeColor&&(U==null?void 0:U.shade)===void 0?`var(--mantine-color-${U.color}-6)`:D==null?void 0:D.color,"--menu-item-hover":D==null?void 0:D.hover},children:[C.alignItemsLabels==="all"&&y.jsx("div",{...C.getStyles("itemIndicator",{styles:s,classNames:l}),"data-placeholder":!0}),p&&y.jsx("div",{...C.getStyles("itemSection",{styles:s,classNames:l}),"data-position":"left",children:p}),S&&y.jsx("div",{...C.getStyles("itemLabel",{styles:s,classNames:l}),"data-menu-item-label":!0,children:S}),h&&y.jsx("div",{...C.getStyles("itemSection",{styles:s,classNames:l}),"data-position":"right",children:h})]})});gp.classes=Yn;gp.displayName="@mantine/core/MenuItem";const yp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("MenuLabel",null,n);return y.jsx(fe,{...Jt().getStyles("label",{className:r,style:o,styles:s,classNames:l}),...f})});yp.classes=Yn;yp.displayName="@mantine/core/MenuLabel";const pS=x.createContext(null);function hS(n){const{value:l,defaultValue:r,onChange:o,children:s}=ue("MenuRadioGroup",null,n),[u,f]=el({value:l,defaultValue:r,finalValue:null,onChange:o});return y.jsx(pS,{value:{value:u,onChange:d=>f(d)},children:s})}hS.displayName="@mantine/core/MenuRadioGroup";function d3({size:n,style:l,...r}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:{width:K(n),height:K(n),...l},"aria-hidden":!0,...r,children:y.jsx("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"currentColor"})})}const bp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,color:f,closeMenuOnClick:d,rightSection:p,children:h,disabled:S,"data-disabled":g,value:v,checked:w,onChange:E,checkIcon:C,ref:T,...A}=ue("MenuRadioItem",null,n),N=Jt(),_=x.use(pS),j=w??(_?_.value===v:!1);return y.jsx(fS,{role:"menuitemradio",checked:j,indicator:C??N.checkIcon??y.jsx(d3,{size:5}),onSelect:()=>{j||(E?E(v):_&&_.onChange(v))},color:f,closeMenuOnClick:d,rightSection:p,disabled:S,dataDisabled:g,className:r,style:o,styles:s,classNames:l,buttonRef:T,others:A,children:h})});bp.classes=Yn;bp.displayName="@mantine/core/MenuRadioItem";const m3="[data-menu-item]:not([data-disabled])",p3="[data-menu-active]";function Ld(n){return n==null?void 0:n.closest("[data-menu-dropdown]")}function h3(n){return n?Array.from(n.querySelectorAll(m3)).filter(l=>l.closest("[data-menu-dropdown]")===n):[]}function nm(n){n&&n.querySelectorAll(p3).forEach(l=>{l.closest("[data-menu-dropdown]")===n&&l.removeAttribute("data-menu-active")})}function Hs(n,l){nm(l),n&&(n.setAttribute("data-menu-active","true"),n.scrollIntoView({block:"nearest"}))}function Bd(n){return n.findIndex(l=>l.hasAttribute("data-menu-active"))}const v3={clearSearchOnClose:!0},Sp=me(n=>{const{classNames:l,styles:r,onKeyDown:o,onChange:s,size:u,clearSearchOnClose:f,ref:d,...p}=ue("MenuSearch",v3,n),h=Jt(),S=x.useRef(null),g=it(d,S),v=x.useRef(s);v.current=s,x.useEffect(()=>h.registerSearch(),[h.registerSearch]),x.useEffect(()=>{f?h.searchExitClearRef.current=()=>{var T;(T=v.current)==null||T.call(v,{currentTarget:{value:""}})}:h.searchExitClearRef.current=null},[f,h.searchExitClearRef]),x.useEffect(()=>{h.opened||nm(Ld(S.current))},[h.opened]);const w=at(s,T=>{nm(Ld(T.currentTarget))}),E=at(o,T=>{if(T.defaultPrevented)return;const A=Ld(T.currentTarget),N=h3(A);if(T.key==="ArrowDown"){if(T.preventDefault(),N.length===0)return;const _=Bd(N);Hs(N[_>=N.length-1?h.loop?0:_:_+1]??null,A)}else if(T.key==="ArrowUp"){if(T.preventDefault(),N.length===0)return;const _=Bd(N);Hs(N[_<=0?_===-1||h.loop?N.length-1:0:_-1]??null,A)}else if(T.key==="Home")T.preventDefault(),N.length>0&&Hs(N[0],A);else if(T.key==="End")T.preventDefault(),N.length>0&&Hs(N[N.length-1],A);else if(T.key==="Enter"){if(T.nativeEvent.isComposing||T.nativeEvent.keyCode===229)return;const _=N[Bd(N)];_&&(T.preventDefault(),_.hasAttribute("data-sub-menu-item")?(_.focus(),_.dispatchEvent(new KeyboardEvent("keydown",{key:"ArrowRight",bubbles:!0}))):_.click())}}),C=h.getStyles("search");return y.jsx(Ot,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:"search",size:u,...p,ref:g,classNames:[{input:C.className},l],styles:[{input:C.style},r],onKeyDown:E,onChange:w,__staticSelector:"Menu"})});Sp.classes=Yn;Sp.displayName="@mantine/core/MenuSearch";const xp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,onMouseEnter:f,onMouseLeave:d,onPointerEnter:p,onPointerLeave:h,onKeyDown:S,children:g,ref:v,...w}=ue("MenuSubDropdown",null,n),E=x.useRef(null),C=Jt(),T=x.use(Io),A=mS({enabled:!C.hasSearch,opened:(T==null?void 0:T.opened)??!1,getDropdown:()=>E.current}),N=at(S,j=>{A(j),!j.ctrlKey&&!j.metaKey&&!j.altKey&&j.key.length===1&&j.key!==" "&&j.stopPropagation()}),_=T==null?void 0:T.getFloatingProps({onMouseEnter:f,onMouseLeave:d,onPointerEnter:p,onPointerLeave:h});return y.jsx(vt.Dropdown,{...w,..._,role:"menu","aria-orientation":"vertical",ref:it(v,E,T==null?void 0:T.setFloating),...C.getStyles("dropdown",{className:r,style:o,styles:s,classNames:l,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:N,children:g})});xp.classes=Yn;xp.displayName="@mantine/core/MenuSubDropdown";const wp=Kt(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,color:f,leftSection:d,rightSection:p,children:h,disabled:S,"data-disabled":g,closeMenuOnClick:v,ref:w,...E}=ue("MenuSubItem",null,n),C=Jt(),T=x.use(Io),A=cn(),{dir:N}=al(),_=x.useRef(null),j=E,L=f?A.variantColorResolver({color:f,theme:A,variant:"light"}):void 0,k=f?ga({color:f,theme:A}):null,D=at(j.onKeyDown,oe=>{oe.key==="ArrowRight"&&(T==null||T.open(),T==null||T.focusFirstItem()),oe.key==="ArrowLeft"&&(T!=null&&T.parentContext)&&(T.parentContext.close(),T.parentContext.focusParentItem())}),U=at(j.onClick,()=>{!g&&v&&C.closeDropdownImmediately()}),te=at(j.onMouseMove,()=>{var ee;if(!C.hasSearch)return;const oe=(ee=_.current)==null?void 0:ee.closest("[data-menu-dropdown]");oe&&oe.querySelectorAll("[data-menu-active]").forEach(F=>{F!==_.current&&F.closest("[data-menu-dropdown]")===oe&&F.removeAttribute("data-menu-active")})}),le=T==null?void 0:T.getReferenceProps({onMouseEnter:j.onMouseEnter,onMouseLeave:j.onMouseLeave,onPointerEnter:j.onPointerEnter,onPointerLeave:j.onPointerLeave});return y.jsxs(jl,{onMouseDown:oe=>oe.preventDefault(),...E,...le,unstyled:C.unstyled,tabIndex:C.menuItemTabIndex,...C.getStyles("item",{className:r,style:o,styles:s,classNames:l}),ref:it(_,w,T==null?void 0:T.setReference),role:"menuitem",disabled:S,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":S||g||void 0,"data-mantine-stop-propagation":!0,onClick:U,onMouseMove:te,onKeyDown:fm({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:C.loop,dir:N,orientation:"vertical",onKeyDown:D}),__vars:{"--menu-item-color":k!=null&&k.isThemeColor&&(k==null?void 0:k.shade)===void 0?`var(--mantine-color-${k.color}-6)`:L==null?void 0:L.color,"--menu-item-hover":L==null?void 0:L.hover},children:[C.alignItemsLabels==="all"&&y.jsx("div",{...C.getStyles("itemIndicator",{styles:s,classNames:l}),"data-placeholder":!0}),d&&y.jsx("div",{...C.getStyles("itemSection",{styles:s,classNames:l}),"data-position":"left",children:d}),h&&y.jsx("div",{...C.getStyles("itemLabel",{styles:s,classNames:l}),"data-menu-item-label":!0,children:h}),y.jsx("div",{...C.getStyles("itemSection",{styles:s,classNames:l}),"data-position":"right",children:p||y.jsx(M1,{...C.getStyles("chevron"),size:14})})]})});wp.classes=Yn;wp.displayName="@mantine/core/MenuSubItem";function vS({children:n,refProp:l}){if(!um(n))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return Jt(),y.jsx(vt.Target,{refProp:l,popupType:"menu",children:n})}vS.displayName="@mantine/core/MenuSubTarget";const g3={offset:0,position:"right-start",safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function er(n){const{children:l,closeDelay:r,openDelay:o,position:s,safeAreaPolygon:u,opened:f,onChange:d,...p}=ue("MenuSub",g3,n),h=kn(),[S,g]=el({value:f,finalValue:!1,onChange:d}),v=x.use(Io),w=Jt(),{dir:E}=al(),C=qm(E,s),T=(v==null?void 0:v.registerOpenSub)??w.registerOpenSub,A=x.useRef(null),N=x.useCallback(ee=>{const F=A.current;return F&&F!==ee&&F(),A.current=ee,()=>{A.current===ee&&(A.current=null)}},[]),_=x.useRef(g);_.current=g;const j=x.useCallback(()=>_.current(!0),[]),L=x.useCallback(()=>_.current(!1),[]);x.useEffect(()=>{if(S)return T(L)},[S,T,L]);const{context:k,refs:D}=yc({placement:C,open:S,onOpenChange:ee=>{ee?j():L()}}),{getReferenceProps:U,getFloatingProps:te}=$0([z0(k,{handleClose:u?B0(typeof u=="object"?u:void 0):void 0,delay:{open:o,close:r}})]),le=()=>window.setTimeout(()=>{var ee,F;(F=(ee=document.getElementById(`${h}-dropdown`))==null?void 0:ee.querySelectorAll("[data-menu-item]:not([data-disabled])")[0])==null||F.focus()},16),oe=()=>window.setTimeout(()=>{var ee;(ee=document.getElementById(`${h}-target`))==null||ee.focus()},16);return y.jsx(Io,{value:{opened:S,close:L,open:j,focusFirstItem:le,focusParentItem:oe,parentContext:v,setReference:D.setReference,setFloating:D.setFloating,getReferenceProps:U,getFloatingProps:te,registerOpenSub:N},children:y.jsx(vt,{opened:S,onChange:ee=>ee?j():L(),withinPortal:!1,withArrow:!1,id:h,position:s,...p,children:l})})}er.extend=n=>n;er.displayName="@mantine/core/MenuSub";er.Target=vS;er.Dropdown=xp;er.Item=wp;const y3={refProp:"ref"};function gS(n){const{children:l,refProp:r,...o}=ue("MenuTarget",y3,n),s=Ml(l);if(!s)throw new Error("Menu.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=Jt(),f=s.props,d=at(f.onClick,()=>{u.trigger==="click"?u.toggleDropdown():u.trigger==="click-hover"&&(u.setOpenedViaClick(!0),u.opened||u.openDropdown())}),p=at(f.onMouseEnter,()=>(u.trigger==="hover"||u.trigger==="click-hover")&&u.openDropdown()),h=at(f.onMouseLeave,()=>{(u.trigger==="hover"||u.trigger==="click-hover"&&!u.openedViaClick)&&u.closeDropdown()});return y.jsx(vt.Target,{refProp:r,popupType:"menu",...o,children:x.cloneElement(s,{onClick:d,onMouseEnter:p,onMouseLeave:h,"data-expanded":u.opened?!0:void 0})})}gS.displayName="@mantine/core/MenuTarget";const b3={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:"with-indicators"},ht=me(n=>{const l=ue("Menu",b3,n),{children:r,onOpen:o,onClose:s,opened:u,defaultOpened:f,trapFocus:d,onChange:p,closeOnItemClick:h,loop:S,closeOnEscape:g,trigger:v,openDelay:w,closeDelay:E,classNames:C,styles:T,unstyled:A,variant:N,vars:_,menuItemTabIndex:j,keepMounted:L,withInitialFocusPlaceholder:k,attributes:D,onExitTransitionEnd:U,alignItemsLabels:te,checkIcon:le,...oe}=l,ee=Oe({name:"Menu",classes:Yn,props:l,classNames:C,styles:T,unstyled:A,attributes:D}),[F,V]=el({value:u,defaultValue:f,finalValue:!1,onChange:p}),[ce,O]=x.useState(!1),B=()=>{V(!1),O(!1),F&&(s==null||s())},H=()=>{V(!0),!F&&(o==null||o())},Z=()=>{F?B():H()},{openDropdown:P,closeDropdown:M}=sE({open:H,close:B,closeDelay:E,openDelay:w}),Y=x.useRef(null),J=x.useCallback(ie=>{const ye=Y.current;return ye&&ye!==ie&&ye(),Y.current=ie,()=>{Y.current===ie&&(Y.current=null)}},[]),ae=x.useRef(0),[se,de]=x.useState(!1),ge=x.useCallback(()=>(ae.current+=1,ae.current===1&&de(!0),()=>{ae.current-=1,ae.current===0&&de(!1)}),[]),pe=x.useRef(null),he=()=>{var ie;(ie=pe.current)==null||ie.call(pe),U==null||U()},Me=ie=>R2("[data-menu-item]","[data-menu-dropdown]",ie),{resolvedClassNames:Se,resolvedStyles:Ce}=cc({classNames:C,styles:T,props:l});return y.jsx(c3,{value:{getStyles:ee,opened:F,toggleDropdown:Z,getItemIndex:Me,openedViaClick:ce,setOpenedViaClick:O,closeOnItemClick:h,closeDropdown:v==="click"?B:M,openDropdown:v==="click"?H:P,closeDropdownImmediately:B,loop:S,trigger:v,unstyled:A,menuItemTabIndex:j,withInitialFocusPlaceholder:k,registerOpenSub:J,hasSearch:se,registerSearch:ge,searchExitClearRef:pe,alignItemsLabels:te,checkIcon:le},children:y.jsx(vt,{returnFocus:!0,...oe,opened:F,onChange:Z,defaultOpened:f,trapFocus:L?!1:d,closeOnEscape:g,__staticSelector:"Menu",classNames:Se,styles:Ce,unstyled:A,variant:N,keepMounted:L,onExitTransitionEnd:he,children:r})})});ht.displayName="@mantine/core/Menu";ht.classes=Yn;ht.Item=gp;ht.Label=yp;ht.Dropdown=vp;ht.Target=gS;ht.Divider=hp;ht.Search=Sp;ht.Sub=er;ht.CheckboxItem=pp;ht.CheckboxGroup=uS;ht.RadioItem=bp;ht.RadioGroup=hS;ht.ContextMenu=dS;const[S3,tr]=Nl("Modal component was not found in tree");var $l={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const Uc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ModalBody",null,n);return y.jsx(Im,{...tr().getStyles("body",{classNames:l,style:o,styles:s,className:r}),...f})});Uc.classes=$l;Uc.displayName="@mantine/core/ModalBody";const Hc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ModalCloseButton",null,n);return y.jsx(Zm,{...tr().getStyles("close",{classNames:l,style:o,styles:s,className:r}),...f})});Hc.classes=$l;Hc.displayName="@mantine/core/ModalCloseButton";const Yc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,children:f,__hidden:d,...p}=ue("ModalContent",null,n),h=tr(),S=h.scrollAreaComponent||b1;return y.jsx(Qm,{...h.getStyles("content",{className:r,style:o,styles:s,classNames:l}),innerProps:h.getStyles("inner",{className:r,style:o,styles:s,classNames:l}),"data-full-screen":h.fullScreen||void 0,"data-modal-content":!0,"data-hidden":d||void 0,...p,children:y.jsx(S,{style:{maxHeight:h.fullScreen?"100dvh":`calc(100dvh - (${K(h.yOffset)} * 2))`},children:f})})});Yc.classes=$l;Yc.displayName="@mantine/core/ModalContent";const qc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ModalHeader",null,n);return y.jsx(Km,{...tr().getStyles("header",{classNames:l,style:o,styles:s,className:r}),...f})});qc.classes=$l;qc.displayName="@mantine/core/ModalHeader";const Vc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ModalOverlay",null,n);return y.jsx(Fm,{...tr().getStyles("overlay",{classNames:l,style:o,styles:s,className:r}),...f})});Vc.classes=$l;Vc.displayName="@mantine/core/ModalOverlay";const x3={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Qt("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},yS=(n,{radius:l,size:r,yOffset:o,xOffset:s})=>({root:{"--modal-radius":l===void 0?void 0:Ut(l),"--modal-size":Je(r,"modal-size"),"--modal-y-offset":K(o),"--modal-x-offset":K(s)}}),yi=me(n=>{const l=ue("ModalRoot",x3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,yOffset:p,scrollAreaComponent:h,radius:S,fullScreen:g,centered:v,xOffset:w,__staticSelector:E,attributes:C,...T}=l,A=Oe({name:E,classes:$l,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:C,vars:d,varsResolver:yS});return y.jsx(S3,{value:{yOffset:p,scrollAreaComponent:h,getStyles:A,fullScreen:g},children:y.jsx(Xm,{...A("root"),"data-full-screen":g||void 0,"data-centered":v||void 0,"data-offset-scrollbars":h===$n.Autosize||void 0,unstyled:f,...T})})});yi.classes=$l;yi.varsResolver=yS;yi.displayName="@mantine/core/ModalRoot";const bS=x.createContext(null);function SS({children:n}){const[l,r]=x.useState([]),[o,s]=x.useState(Qt("modal"));return y.jsx(bS,{value:{stack:l,addModal:(u,f)=>{r(d=>[...new Set([...d,u])]),s(d=>typeof f=="number"&&typeof d=="number"?Math.max(d,f):d)},removeModal:u=>r(f=>f.filter(d=>d!==u)),getZIndex:u=>`calc(${o} + ${l.indexOf(u)} + 1)`,currentId:l[l.length-1],maxZIndex:o},children:n})}SS.displayName="@mantine/core/ModalStack";const Gc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ModalTitle",null,n);return y.jsx(Jm,{...tr().getStyles("title",{classNames:l,style:o,styles:s,className:r}),...f})});Gc.classes=$l;Gc.displayName="@mantine/core/ModalTitle";const w3={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Qt("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},qn=me(n=>{const{title:l,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:u,children:f,radius:d,opened:p,stackId:h,zIndex:S,...g}=ue("Modal",w3,n),v=x.use(bS),w=!!l||s,E=v&&h?{closeOnEscape:v.currentId===h,trapFocus:v.currentId===h,zIndex:v.getZIndex(h)}:{},C=r===!1?!1:h&&v?v.currentId===h:p;return x.useEffect(()=>{v&&h&&(p?v.addModal(h,S||Qt("modal")):v.removeModal(h))},[p,h,S]),y.jsxs(yi,{radius:d,opened:p,zIndex:v&&h?v.getZIndex(h):S,...g,...E,children:[r&&y.jsx(Vc,{visible:C,transitionProps:v&&h?{duration:0}:void 0,...o}),y.jsxs(Yc,{radius:d,__hidden:v&&h&&p?h!==v.currentId:!1,children:[w&&y.jsxs(qc,{children:[l&&y.jsx(Gc,{children:l}),s&&y.jsx(Hc,{...u})]}),y.jsx(Uc,{children:f})]})]})});qn.classes=$l;qn.displayName="@mantine/core/Modal";qn.Root=yi;qn.Overlay=Vc;qn.Content=Yc;qn.Body=Uc;qn.Header=qc;qn.Title=Gc;qn.CloseButton=Hc;qn.Stack=SS;function C3(n,l){const r=l.trim().toLowerCase();if(r==="")return;const o=Object.values(n).filter(s=>!s.disabled&&s.label.trim().toLowerCase()===r);return o.length===1?o[0]:void 0}function T3({offset:n,position:l,defaultOpened:r}){const[o,s]=x.useState(r),u=x.useRef(null),{x:f,y:d,elements:p,refs:h,update:S,placement:g}=yc({placement:l,middleware:[Lm({crossAxis:!0,padding:5,rootBoundary:"document"})]}),v=g.includes("right")?n:l.includes("left")?n*-1:0,w=g.includes("bottom")?n:l.includes("top")?n*-1:0,E=x.useCallback(({clientX:C,clientY:T})=>{!Number.isFinite(C)||!Number.isFinite(T)||h.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:C,y:T,left:C+v,top:T+w,right:C,bottom:T}}})},[p.reference]);return x.useEffect(()=>{if(h.floating.current){const C=u.current;C.addEventListener("mousemove",E);const T=Rl(h.floating.current);return T.forEach(A=>{A.addEventListener("scroll",S)}),()=>{C.removeEventListener("mousemove",E),T.forEach(A=>{A.removeEventListener("scroll",S)})}}},[p.reference,h.floating.current,S,E,o]),{handleMouseMove:E,x:f,y:d,opened:o,setOpened:s,boundaryRef:u,floating:h.setFloating}}var Xc={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const R3={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Qt("popover")},xS=(n,{radius:l,color:r})=>({tooltip:{"--tooltip-radius":l===void 0?void 0:Ut(l),"--tooltip-bg":r?pa(r,n):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}),Ic=me(n=>{const l=ue("TooltipFloating",R3,n),{children:r,refProp:o,withinPortal:s,style:u,className:f,classNames:d,styles:p,unstyled:h,radius:S,color:g,label:v,offset:w,position:E,multiline:C,zIndex:T,disabled:A,defaultOpened:N,variant:_,vars:j,portalProps:L,attributes:k,ref:D,...U}=l,te=cn(),le=Oe({name:"TooltipFloating",props:l,classes:Xc,className:f,style:u,classNames:d,styles:p,unstyled:h,attributes:k,rootSelector:"tooltip",vars:j,varsResolver:xS}),{handleMouseMove:oe,x:ee,y:F,opened:V,boundaryRef:ce,floating:O,setOpened:B}=T3({offset:w,position:E,defaultOpened:N}),H=Ml(r);if(!H)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 Z=it(ce,ic(H),D),P=H.props,M=J=>{var ae;(ae=P.onMouseEnter)==null||ae.call(P,J),oe(J),B(!0)},Y=J=>{var ae;(ae=P.onMouseLeave)==null||ae.call(P,J),B(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(Ga,{...L,withinPortal:s,children:y.jsx(fe,{...U,...le("tooltip",{style:{...t0(u,te),zIndex:T,display:!A&&V?"block":"none",top:Number.isFinite(F)?Math.round(F):"",left:Number.isFinite(ee)?Math.round(ee):""}}),variant:_,ref:O,mod:{multiline:C},children:v})}),x.cloneElement(H,{...P,[o]:Z,onMouseEnter:M,onMouseLeave:Y})]})});Ic.classes=Xc;Ic.varsResolver=xS;Ic.displayName="@mantine/core/TooltipFloating";const wS=x.createContext({withinGroup:!1}),E3={openDelay:0,closeDelay:0};function Cp(n){const{openDelay:l,closeDelay:r,children:o}=ue("TooltipGroup",E3,n);return y.jsx(wS,{value:{withinGroup:!0},children:y.jsx(ZR,{delay:{open:l,close:r},children:o})})}Cp.displayName="@mantine/core/TooltipGroup";Cp.extend=n=>n;function A3(n){if(n===void 0)return{shift:!0,flip:!0};const l={...n};return n.shift===void 0&&(l.shift=!0),n.flip===void 0&&(l.flip=!0),l}function _3(n){const l=A3(n.middlewares),r=[N0(n.offset)];return l.shift&&r.push(Lm(typeof l.shift=="boolean"?{padding:8}:{padding:8,...l.shift})),l.flip&&r.push(typeof l.flip=="boolean"?Wd():Wd(l.flip)),r.push(M0({element:n.arrowRef,padding:n.arrowOffset})),l.inline?r.push(typeof l.inline=="boolean"?Wr():Wr(l.inline)):n.inline&&r.push(Wr()),r}function N3(n){var L,k,D;const[l,r]=x.useState(n.defaultOpened),o=typeof n.opened=="boolean"?n.opened:l,s=x.use(wS).withinGroup,u=kn(),f=x.useCallback(U=>{r(U),U&&T(u)},[u]),{x:d,y:p,context:h,refs:S,placement:g,middlewareData:{arrow:{x:v,y:w}={}}}=yc({strategy:n.strategy,placement:n.position,open:o,onOpenChange:f,middleware:_3(n),whileElementsMounted:Pd}),{delay:E,currentId:C,setCurrentId:T}=QR(h,{id:u}),{getReferenceProps:A,getFloatingProps:N}=$0([z0(h,{enabled:(L=n.events)==null?void 0:L.hover,delay:s?E:{open:n.openDelay,close:n.closeDelay},mouseOnly:!((k=n.events)!=null&&k.touch),handleClose:n.interactive?B0():null}),eE(h,{enabled:(D=n.events)==null?void 0:D.focus,visibleOnly:!0}),nE(h,{role:"tooltip"}),PR(h,{enabled:typeof n.opened>"u"})]),_=x.useRef(g);Wn(()=>{var U;_.current!==g&&(_.current=g,(U=n.onPositionChange)==null||U.call(n,g))},[g]);const j=o&&C&&C!==u;return{x:d,y:p,arrowX:v,arrowY:w,reference:S.setReference,floating:S.setFloating,getFloatingProps:N,getReferenceProps:A,isGroupPhase:j,opened:o,placement:g}}const M3={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Qt("popover"),middlewares:{flip:!0,shift:!0,inline:!1}},CS=(n,{radius:l,color:r,variant:o,autoContrast:s})=>{const u=n.variantColorResolver({theme:n,color:r||n.primaryColor,autoContrast:s,variant:o||"filled"});return{tooltip:{"--tooltip-radius":l===void 0?void 0:Ut(l),"--tooltip-bg":r?u.background:void 0,"--tooltip-color":r?u.color:void 0}}},Ll=me(n=>{const l=ue("Tooltip",M3,n),{children:r,position:o,refProp:s,label:u,openDelay:f,closeDelay:d,onPositionChange:p,opened:h,defaultOpened:S,withinPortal:g,radius:v,color:w,classNames:E,styles:C,unstyled:T,style:A,className:N,withArrow:_,arrowSize:j,arrowOffset:L,arrowRadius:k,arrowPosition:D,offset:U,transitionProps:te,multiline:le,events:oe,interactive:ee,zIndex:F,disabled:V,onClick:ce,onMouseEnter:O,onMouseLeave:B,inline:H,variant:Z,keepMounted:P,vars:M,portalProps:Y,mod:J,floatingStrategy:ae,middlewares:se,autoContrast:de,attributes:ge,target:pe,ref:he,...Me}=l,{dir:Se}=al(),Ce=x.useRef(null),ie=N3({position:qm(Se,o),closeDelay:d,openDelay:f,onPositionChange:p,opened:h,defaultOpened:S,events:oe,interactive:ee,arrowRef:Ce,arrowOffset:L,offset:typeof U=="number"?U+(_?j/2:0):U,inline:H,strategy:ae,middlewares:se});x.useEffect(()=>{const zt=pe instanceof HTMLElement?pe:typeof pe=="string"?document.querySelector(pe):(pe==null?void 0:pe.current)||null;zt&&ie.reference(zt)},[pe,ie]);const ye=Oe({name:"Tooltip",props:l,classes:Xc,className:N,style:A,classNames:E,styles:C,unstyled:T,attributes:ge,rootSelector:"tooltip",vars:M,varsResolver:CS}),Ne=Ml(r);if(!pe&&!Ne)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 Te=ye("tooltip"),Ve=ee&&!V&&!!ie.opened,ut=D==="merge"&&_?G0({position:ie.placement,dir:Se}):void 0;if(pe){const zt=vb(te,{duration:100,transition:"fade"});return y.jsx(y.Fragment,{children:y.jsx(Ga,{...Y,withinPortal:g,children:y.jsx(Al,{...zt,keepMounted:P,mounted:!V&&!!ie.opened,duration:ie.isGroupPhase?10:zt.duration,children:Pt=>y.jsxs(fe,{...Me,"data-fixed":ae==="fixed"||void 0,variant:Z,mod:[{multiline:le,interactive:Ve},J],...Te,...ie.getFloatingProps({ref:ie.floating,className:Te.className,style:{...Te.style,...Pt,...ut,zIndex:F,top:ie.y??0,left:ie.x??0}}),children:[u,y.jsx(nc,{ref:Ce,arrowX:ie.arrowX,arrowY:ie.arrowY,visible:_,position:ie.placement,arrowSize:j,arrowOffset:L,arrowRadius:k,arrowPosition:D,...ye("arrow")})]})})})})}const jt=Ne.props,fn=it(ie.reference,ic(Ne),he),dn=vb(te,{duration:100,transition:"fade"});return y.jsxs(y.Fragment,{children:[y.jsx(Ga,{...Y,withinPortal:g,children:y.jsx(Al,{...dn,keepMounted:P,mounted:!V&&!!ie.opened,duration:ie.isGroupPhase?10:dn.duration,children:zt=>y.jsxs(fe,{...Me,"data-fixed":ae==="fixed"||void 0,variant:Z,mod:[{multiline:le,interactive:Ve},J],...ie.getFloatingProps({ref:ie.floating,className:ye("tooltip").className,style:{...ye("tooltip").style,...zt,...ut,zIndex:F,top:ie.y??0,left:ie.x??0}}),children:[u,y.jsx(nc,{ref:Ce,arrowX:ie.arrowX,arrowY:ie.arrowY,visible:_,position:ie.placement,arrowSize:j,arrowOffset:L,arrowRadius:k,arrowPosition:D,...ye("arrow")})]})})}),x.cloneElement(Ne,ie.getReferenceProps({onClick:ce,onMouseEnter:O,onMouseLeave:B,onMouseMove:l.onMouseMove,onPointerDown:l.onPointerDown,onPointerEnter:l.onPointerEnter,...jt,className:gt(N,jt.className),[s]:fn}))]})});Ll.classes=Xc;Ll.varsResolver=CS;Ll.displayName="@mantine/core/Tooltip";Ll.Floating=Ic;Ll.Group=Cp;var TS={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const O3={withItemsBorders:!0},RS=(n,{radius:l,color:r,transitionDuration:o,size:s,transitionTimingFunction:u})=>({root:{"--sc-radius":l===void 0?void 0:Ut(l),"--sc-color":r?pa(r,n):void 0,"--sc-shadow":r?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":u,"--sc-padding":Je(s,"sc-padding"),"--sc-font-size":Ct(s)}}),Zc=l0(n=>{var he,Me;const l=ue("SegmentedControl",O3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,data:p,value:h,defaultValue:S,onChange:g,size:v,name:w,disabled:E,readOnly:C,fullWidth:T,orientation:A,radius:N,color:_,transitionDuration:j,transitionTimingFunction:L,variant:k,autoContrast:D,withItemsBorders:U,mod:te,attributes:le,ref:oe,...ee}=l,F=Oe({name:"SegmentedControl",props:l,classes:TS,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:le,vars:d,varsResolver:RS}),V=cn(),ce=p.map(Se=>F2(Se)?{label:`${Se}`,value:Se}:Se),O=V2(),[B,H]=x.useState(Hd()),[Z,P]=x.useState(null),[M,Y]=x.useState({}),J=(Se,Ce)=>{M[Ce]=Se,Y(M)},[ae,se]=el({value:h,defaultValue:S,finalValue:Array.isArray(p)?((he=ce.find(Se=>!Se.disabled))==null?void 0:he.value)??((Me=p[0])==null?void 0:Me.value)??null:null,onChange:g}),de=kn(w),ge=ce.map(Se=>x.createElement(fe,{...F("control"),mod:{active:ae===Se.value,orientation:A},key:`${Se.value}`},x.createElement("input",{...F("input"),disabled:E||Se.disabled,type:"radio",name:de,value:`${Se.value}`,id:`${de}-${Se.value}`,checked:ae===Se.value,onChange:()=>!C&&se(Se.value),"data-focus-ring":V.focusRing,key:`${Se.value}-input`}),x.createElement(fe,{component:"label",...F("label"),mod:{active:ae===Se.value&&!(E||Se.disabled),disabled:E||Se.disabled,"read-only":C},htmlFor:`${de}-${Se.value}`,ref:Ce=>J(Ce,`${Se.value}`),__vars:{"--sc-label-color":_!==void 0?Sm({color:_,theme:V,autoContrast:D}):void 0},key:`${Se.value}-label`},y.jsx("span",{...F("innerLabel"),children:Se.label})))),pe=it(oe,P);return U2(()=>{H(Hd())},[p.length]),p.length===0?null:y.jsxs(fe,{...F("root"),variant:k,size:v,ref:pe,mod:[{"full-width":T,orientation:A,initialized:O,"with-items-borders":U},te],...ee,role:"radiogroup","data-disabled":E,children:[typeof ae<"u"&&y.jsx(Ec,{target:M[`${ae}`],parent:Z,component:"span",transitionDuration:"var(--sc-transition-duration)",...F("indicator")},B),ge]})});Zc.classes=TS;Zc.varsResolver=RS;Zc.displayName="@mantine/core/SegmentedControl";const j3={size:"sm",withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},lc=l0(n=>{const l=ue(["Input","InputWrapper","Select"],j3,n),{classNames:r,styles:o,unstyled:s,vars:u,dropdownOpened:f,defaultDropdownOpened:d,onDropdownClose:p,onDropdownOpen:h,onFocus:S,onBlur:g,onClick:v,onChange:w,data:E,value:C,defaultValue:T,selectFirstOptionOnChange:A,selectFirstOptionOnDropdownOpen:N,onOptionSubmit:_,comboboxProps:j,readOnly:L,disabled:k,filter:D,limit:U,withScrollArea:te,maxDropdownHeight:le,floatingHeight:oe,size:ee,searchable:F,rightSection:V,checkIconPosition:ce,withCheckIcon:O,withAlignedLabels:B,nothingFoundMessage:H,name:Z,form:P,searchValue:M,defaultSearchValue:Y,onSearchChange:J,allowDeselect:ae,error:se,rightSectionPointerEvents:de,id:ge,clearable:pe,clearSectionMode:he,clearButtonProps:Me,hiddenInputProps:Se,renderOption:Ce,onClear:ie,autoComplete:ye,scrollAreaProps:Ne,__defaultRightSection:Te,__clearSection:Ve,__clearable:ut,chevronColor:jt,autoSelectOnBlur:fn,openOnFocus:dn,attributes:zt,...Pt}=l,je=x.useMemo(()=>BA(E),[E]),Bl=x.useRef({}),yt=x.useMemo(()=>k1(je),[je]),Sa=kn(ge),[Ye,kl,ol]=el({value:C,defaultValue:T,finalValue:null,onChange:w}),Dt=Ye!=null?`${Ye}`in yt?yt[`${Ye}`]:Bl.current[`${Ye}`]:void 0,En=Y2(Dt),[Wt,St,en]=el({value:M,defaultValue:Y,finalValue:Dt?Dt.label:"",onChange:J}),Ee=X1({opened:f,defaultOpened:d,onDropdownOpen:()=>{h==null||h(),N?Ee.selectFirstOption():Ee.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{p==null||p(),setTimeout(Ee.resetSelectedOption,0)}}),Gn=nt=>{St(nt),Ee.resetSelectedOption()},{resolvedClassNames:Si,resolvedStyles:xi}=cc({props:l,styles:o,classNames:r});x.useEffect(()=>{A&&Ee.selectFirstOption()},[A,Wt]),x.useEffect(()=>{C===null&&Gn(""),C!=null&&Dt&&((En==null?void 0:En.value)!==Dt.value||(En==null?void 0:En.label)!==Dt.label)&&Gn(Dt.label)},[C,Dt]),x.useEffect(()=>{var nt,Pe;!ol&&!en&&Gn(Ye!=null?`${Ye}`in yt?(nt=yt[`${Ye}`])==null?void 0:nt.label:((Pe=Bl.current[`${Ye}`])==null?void 0:Pe.label)||"":"")},[yt,Ye]),x.useEffect(()=>{Ye&&`${Ye}`in yt&&(Bl.current[`${Ye}`]=yt[`${Ye}`])},[yt,Ye]);const Ka=y.jsx(Ie.ClearButton,{...Me,onClear:()=>{kl(null,null),Gn(""),ie==null||ie()}}),Fa=pe&&Ye!=null&&!k&&!L;return y.jsxs(y.Fragment,{children:[y.jsxs(Ie,{store:Ee,__staticSelector:"Select",classNames:Si,styles:xi,unstyled:s,readOnly:L,size:ee,attributes:zt,floatingHeight:oe,keepMounted:fn,onOptionSubmit:nt=>{_==null||_(nt);const Pe=ae&&`${yt[nt].value}`==`${Ye}`?null:yt[nt],Ul=Pe?Pe.value:null;Ul!==Ye&&kl(Ul,Pe),!ol&&Gn(Ul!=null&&(Pe==null?void 0:Pe.label)||""),Ee.closeDropdown()},...j,children:[y.jsx(Ie.Target,{targetType:F?"input":"button",autoComplete:ye,withExpandedAttribute:!0,children:y.jsx(Rc,{id:Sa,__defaultRightSection:y.jsx(Ie.Chevron,{size:ee,error:se,unstyled:s,color:jt}),__clearSection:Ka,__clearable:Fa,__clearSectionMode:he,rightSection:V,rightSectionPointerEvents:de||"none",...Pt,size:ee,__staticSelector:"Select",disabled:k,readOnly:L||!F,value:Wt,onChange:nt=>{if(WA(nt)){if(!L){const Pe=C3(yt,nt.currentTarget.value);Pe&&`${Pe.value}`!=`${Ye}`&&(kl(Pe.value,Pe),!ol&&Gn(Pe.label))}return}Gn(nt.currentTarget.value),Ee.openDropdown(),A&&Ee.selectFirstOption()},onFocus:nt=>{dn&&F&&Ee.openDropdown(),S==null||S(nt)},onBlur:nt=>{fn&&Ee.clickSelectedOption(),F&&Ee.closeDropdown();const Pe=Ye!=null&&(`${Ye}`in yt?yt[`${Ye}`]:Bl.current[`${Ye}`]);Gn(Pe&&Pe.label||""),g==null||g(nt)},onClick:nt=>{F?Ee.openDropdown():Ee.toggleDropdown(),v==null||v(nt)},classNames:Si,styles:xi,unstyled:s,pointer:!F,error:se,attributes:zt})}),y.jsx(JA,{data:je,hidden:L||k,filter:D,search:Wt,limit:U,hiddenWhenEmpty:!H,withScrollArea:te,maxDropdownHeight:le,filterOptions:!!F&&(Dt==null?void 0:Dt.label)!==Wt,value:Ye,checkIconPosition:ce,withCheckIcon:O,withAlignedLabels:B,nothingFoundMessage:H,unstyled:s,labelId:Pt.label?`${Sa}-label`:void 0,"aria-label":Pt.label?void 0:Pt["aria-label"],renderOption:Ce,scrollAreaProps:Ne})]}),y.jsx(Ie.HiddenInput,{value:Ye,name:Z,form:P,disabled:k,...Se})]})});lc.classes={...Rc.classes,...Ie.classes};lc.displayName="@mantine/core/Select";var ES={root:"m_6d731127"};const z3={gap:"md",align:"stretch",justify:"flex-start"},AS=(n,{gap:l,align:r,justify:o})=>({root:{"--stack-gap":ii(l),"--stack-align":r,"--stack-justify":o}}),Tn=me(n=>{const l=ue("Stack",z3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:d,align:p,justify:h,gap:S,variant:g,attributes:v,...w}=l;return y.jsx(fe,{...Oe({name:"Stack",props:l,classes:ES,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:v,vars:d,varsResolver:AS})("root"),variant:g,...w})});Tn.classes=ES;Tn.varsResolver=AS;Tn.displayName="@mantine/core/Stack";const D3=["h1","h2","h3","h4","h5","h6"],$3=["xs","sm","md","lg","xl"];function L3(n,l){const r=l!==void 0?l:`h${n}`;return D3.includes(r)?{fontSize:`var(--mantine-${r}-font-size)`,fontWeight:`var(--mantine-${r}-font-weight)`,lineHeight:`var(--mantine-${r}-line-height)`}:$3.includes(r)?{fontSize:`var(--mantine-font-size-${r})`,fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}:{fontSize:K(r),fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}}var _S={root:"m_8a5d1357"};const B3={order:1},NS=(n,{order:l,size:r,lineClamp:o,textWrap:s})=>{const u=L3(l||1,r);return{root:{"--title-fw":u.fontWeight,"--title-lh":u.lineHeight,"--title-fz":u.fontSize,"--title-line-clamp":typeof o=="number"?o.toString():void 0,"--title-text-wrap":s}}},Mn=me(n=>{const l=ue("Title",B3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,order:d,vars:p,size:h,variant:S,lineClamp:g,textWrap:v,mod:w,attributes:E,...C}=l,T=Oe({name:"Title",props:l,classes:_S,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:E,vars:p,varsResolver:NS});return[1,2,3,4,5,6].includes(d)?y.jsx(fe,{...T("root"),component:`h${d}`,variant:S,mod:[{order:d,"data-line-clamp":typeof g=="number"},w],size:h,...C}):null});Mn.classes=_S;Mn.varsResolver=NS;Mn.displayName="@mantine/core/Title";/**
93
+ `)},sA=0,Ho=[];function cA(n){var l=x.useRef([]),r=x.useRef([0,0]),o=x.useRef(),s=x.useState(sA++)[0],u=x.useState(v1)[0],f=x.useRef(n);x.useEffect(function(){f.current=n},[n]),x.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var C=ME([n.lockRef.current],(n.shards||[]).map(xb),!0).filter(Boolean);return C.forEach(function(T){return T.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),C.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=x.useCallback(function(C,T){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!f.current.allowPinchZoom;var A=Us(C),N=r.current,_="deltaX"in C?C.deltaX:N[0]-A[0],j="deltaY"in C?C.deltaY:N[1]-A[1],L,k=C.target,D=Math.abs(_)>Math.abs(j)?"h":"v";if("touches"in C&&D==="h"&&k.type==="range")return!1;var H=window.getSelection(),te=H&&H.anchorNode,le=te?te===k||te.contains(k):!1;if(le)return!1;var oe=bb(D,k);if(!oe)return!0;if(oe?L=D:(L=D==="v"?"h":"v",oe=bb(D,k)),!oe)return!1;if(!o.current&&"changedTouches"in C&&(_||j)&&(o.current=L),!L)return!0;var ee=o.current||L;return oA(ee,T,C,ee==="h"?_:j)},[]),p=x.useCallback(function(C){var T=C;if(!(!Ho.length||Ho[Ho.length-1]!==u)){var A="deltaY"in T?Sb(T):Us(T),N=l.current.filter(function(L){return L.name===T.type&&(L.target===T.target||T.target===L.shadowParent)&&rA(L.delta,A)})[0];if(N&&N.should){T.cancelable&&T.preventDefault();return}if(!N){var _=(f.current.shards||[]).map(xb).filter(Boolean).filter(function(L){return L.contains(T.target)}),j=_.length>0?m(T,_[0]):!f.current.noIsolation;j&&T.cancelable&&T.preventDefault()}}},[]),h=x.useCallback(function(C,T,A,N){var _={name:C,delta:T,target:A,should:N,shadowParent:uA(A)};l.current.push(_),setTimeout(function(){l.current=l.current.filter(function(j){return j!==_})},1)},[]),S=x.useCallback(function(C){r.current=Us(C),o.current=void 0},[]),g=x.useCallback(function(C){h(C.type,Sb(C),C.target,m(C,n.lockRef.current))},[]),v=x.useCallback(function(C){h(C.type,Us(C),C.target,m(C,n.lockRef.current))},[]);x.useEffect(function(){return Ho.push(u),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",p,ko),document.addEventListener("touchmove",p,ko),document.addEventListener("touchstart",S,ko),function(){Ho=Ho.filter(function(C){return C!==u}),document.removeEventListener("wheel",p,ko),document.removeEventListener("touchmove",p,ko),document.removeEventListener("touchstart",S,ko)}},[]);var w=n.removeScrollBar,E=n.inert;return x.createElement(x.Fragment,null,E?x.createElement(u,{styles:iA(s)}):null,w?x.createElement(PE,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function uA(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const fA=HE(h1,cA);var ui=x.forwardRef(function(n,l){return x.createElement(Tc,Jn({},n,{ref:l,sideCar:fA}))});ui.classNames=Tc.classNames;function Xm({keepMounted:n,keepMountedMode:l="activity",opened:r,onClose:o,id:s,transitionProps:u,onExitTransitionEnd:f,onEnterTransitionEnd:m,trapFocus:p,closeOnEscape:h,returnFocus:S,closeOnClickOutside:g,withinPortal:v,portalProps:w,lockScroll:E,children:C,zIndex:T,shadow:A,padding:N,__vars:_,unstyled:j,removeScrollProps:L,...k}){const{_id:D,titleMounted:H,bodyMounted:te,shouldLockScroll:le,setTitleMounted:oe,setBodyMounted:ee}=NE({id:s,transitionProps:u,opened:r,trapFocus:p,closeOnEscape:h,onClose:o,returnFocus:S}),{key:F,...V}=L||{};return y.jsx(Xa,{...w,withinPortal:v,children:y.jsx(AE,{value:{opened:r,onClose:o,closeOnClickOutside:g,onExitTransitionEnd:f,onEnterTransitionEnd:m,transitionProps:{...u,keepMounted:n,keepMountedMode:l},getTitleId:()=>`${D}-title`,getBodyId:()=>`${D}-body`,titleMounted:H,bodyMounted:te,setTitleMounted:oe,setBodyMounted:ee,trapFocus:p,closeOnEscape:h,zIndex:T,unstyled:j},children:y.jsx(ui,{enabled:le&&E,...V,children:y.jsx(fe,{...k,id:D,__vars:{..._,"--mb-z-index":(T||Qt("modal")).toString(),"--mb-shadow":dm(A),"--mb-padding":si(N)},children:C})},F)})})}Xm.displayName="@mantine/core/ModalBase";function dA(){const n=Dl();return x.useEffect(()=>(n.setBodyMounted(!0),()=>n.setBodyMounted(!1)),[]),n.getBodyId()}var Io={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function Im({className:n,...l}){const r=dA(),o=Dl();return y.jsx(fe,{id:r,className:gt({[Io.body]:!o.unstyled},n),...l})}Im.displayName="@mantine/core/ModalBaseBody";function Zm({className:n,onClick:l,...r}){const o=Dl();return y.jsx(Ka,{...r,onClick:s=>{o.onClose(),l==null||l(s)},className:gt({[Io.close]:!o.unstyled},n),unstyled:o.unstyled})}Zm.displayName="@mantine/core/ModalBaseCloseButton";function Qm({transitionProps:n,className:l,innerProps:r,onKeyDown:o,style:s,ref:u,...f}){const m=Dl();return y.jsx(_l,{mounted:m.opened,transition:"pop",...m.transitionProps,onExited:()=>{var p,h,S;(p=m.onExitTransitionEnd)==null||p.call(m),(S=(h=m.transitionProps)==null?void 0:h.onExited)==null||S.call(h)},onEntered:()=>{var p,h,S;(p=m.onEnterTransitionEnd)==null||p.call(m),(S=(h=m.transitionProps)==null?void 0:h.onEntered)==null||S.call(h)},...n,children:p=>y.jsx("div",{...r,className:gt({[Io.inner]:!m.unstyled},r.className),children:y.jsx(xc,{active:m.opened&&m.trapFocus,innerRef:u,children:y.jsx(Ln,{...f,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":m.bodyMounted?m.getBodyId():void 0,"aria-labelledby":m.titleMounted?m.getTitleId():void 0,style:[s,p],className:gt({[Io.content]:!m.unstyled},l),unstyled:m.unstyled,children:f.children})})})})}Qm.displayName="@mantine/core/ModalBaseContent";function Km({className:n,...l}){const r=Dl();return y.jsx(fe,{component:"header",className:gt({[Io.header]:!r.unstyled},n),...l})}Km.displayName="@mantine/core/ModalBaseHeader";const mA={duration:200,timingFunction:"ease",transition:"fade"};function pA(n){const l=Dl();return{...mA,...l.transitionProps,...n}}function Fm({onClick:n,transitionProps:l,style:r,visible:o,...s}){const u=Dl(),f=pA(l);return y.jsx(_l,{mounted:o!==void 0?o:u.opened,...f,transition:"fade",children:m=>y.jsx(ci,{fixed:!0,style:[r,m],zIndex:u.zIndex,unstyled:u.unstyled,onClick:p=>{n==null||n(p),u.closeOnClickOutside&&u.onClose()},...s})})}Fm.displayName="@mantine/core/ModalBaseOverlay";function hA(){const n=Dl();return x.useEffect(()=>(n.setTitleMounted(!0),()=>n.setTitleMounted(!1)),[]),n.getTitleId()}function Jm({className:n,...l}){const r=hA(),o=Dl();return y.jsx(fe,{component:"h2",className:gt({[Io.title]:!o.unstyled},n),id:r,...l})}Jm.displayName="@mantine/core/ModalBaseTitle";function S1({children:n}){return y.jsx(y.Fragment,{children:n})}const x1=x.createContext({size:"sm"}),w1=me(n=>{const l=ue("InputClearButton",null,n),{size:r,variant:o,vars:s,classNames:u,styles:f,...m}=l,p=x.use(x1),{resolvedClassNames:h,resolvedStyles:S}=uc({classNames:u,styles:f,props:l});return y.jsx(Ka,{variant:o||"transparent",size:r||(p==null?void 0:p.size)||"sm",classNames:h,styles:S,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...m.style},...m})});w1.displayName="@mantine/core/InputClearButton";const vA={xs:7,sm:8,md:10,lg:12,xl:15};function gA({__clearable:n,__clearSection:l,rightSection:r,__defaultRightSection:o,size:s="sm",__clearSectionMode:u="both"}){const f=n&&l;return u==="rightSection"?r===null?null:r||o:u==="clear"?r===null?null:f||o:f&&(r||o)?y.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:vA[s]},children:[f,r||o]}):r===null?null:r||f||o}const Jo=x.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Ft={wrapper:"m_6c018570",input:"m_8fb7ebe7",bottomSection:"m_93f4ed57",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",success:"m_9d9d40e0",description:"m_fe47ce59"};const C1=(n,{size:l})=>({description:{"--input-description-size":l===void 0?void 0:`calc(${Tt(l)} - ${K(2)})`}}),fi=me(n=>{const l=ue("InputDescription",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,__staticSelector:p,__inheritStyles:h=!0,attributes:S,...g}=ue("InputDescription",null,l),v=x.use(Jo),w=je({name:["InputWrapper",p],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:S,rootSelector:"description",vars:m,varsResolver:C1});return y.jsx(fe,{component:"p",...(h&&(v==null?void 0:v.getStyles)||w)("description",v!=null&&v.getStyles?{className:o,style:s}:void 0),...g})});fi.classes=Ft;fi.varsResolver=C1;fi.displayName="@mantine/core/InputDescription";const T1=(n,{size:l})=>({error:{"--input-error-size":l===void 0?void 0:`calc(${Tt(l)} - ${K(2)})`}}),di=me(n=>{const l=ue("InputError",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,attributes:p,__staticSelector:h,__inheritStyles:S=!0,...g}=l,v=je({name:["InputWrapper",h],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:p,rootSelector:"error",vars:m,varsResolver:T1}),w=x.use(Jo);return y.jsx(fe,{component:"p",...(S&&(w==null?void 0:w.getStyles)||v)("error",w!=null&&w.getStyles?{className:o,style:s}:void 0),...g})});di.classes=Ft;di.varsResolver=T1;di.displayName="@mantine/core/InputError";const yA={labelElement:"label"},R1=(n,{size:l})=>({label:{"--input-label-size":Tt(l),"--input-asterisk-color":void 0}}),mi=me(n=>{const l=ue("InputLabel",yA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,labelElement:p,required:h,htmlFor:S,onMouseDown:g,children:v,__staticSelector:w,mod:E,attributes:C,...T}=l,A=je({name:["InputWrapper",w],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:C,rootSelector:"label",vars:m,varsResolver:R1}),N=x.use(Jo),_=(N==null?void 0:N.getStyles)||A,j=T.component||p,L=typeof j!="string"||j==="label";return y.jsxs(fe,{..._("label",N!=null&&N.getStyles?{className:o,style:s}:void 0),component:p,htmlFor:L?S:void 0,mod:[{required:h},E],onMouseDown:k=>{g==null||g(k),!k.defaultPrevented&&k.detail>1&&k.preventDefault()},...T,children:[v,h&&y.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});mi.classes=Ft;mi.varsResolver=R1;mi.displayName="@mantine/core/InputLabel";const Pm=me(n=>{const l=ue("InputPlaceholder",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,__staticSelector:p,error:h,mod:S,attributes:g,...v}=l;return y.jsx(fe,{...je({name:["InputPlaceholder",p],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:g,rootSelector:"placeholder"})("placeholder"),mod:[{error:!!h},S],component:"span",...v})});Pm.classes=Ft;Pm.displayName="@mantine/core/InputPlaceholder";const E1=(n,{size:l})=>({success:{"--input-success-size":l===void 0?void 0:`calc(${Tt(l)} - ${K(2)})`}}),pi=me(n=>{const l=ue("InputSuccess",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,attributes:p,__staticSelector:h,__inheritStyles:S=!0,...g}=l,v=je({name:["InputWrapper",h],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:p,rootSelector:"success",vars:m,varsResolver:E1}),w=x.use(Jo);return y.jsx(fe,{component:"p",...(S&&(w==null?void 0:w.getStyles)||v)("success",w!=null&&w.getStyles?{className:o,style:s}:void 0),...g})});pi.classes=Ft;pi.varsResolver=E1;pi.displayName="@mantine/core/InputSuccess";function bA(n,{hasDescription:l,hasError:r}){const o=n.findIndex(m=>m==="input"),s=n.slice(0,o),u=n.slice(o+1),f=l&&s.includes("description")||r&&s.includes("error");return{offsetBottom:l&&u.includes("description")||r&&u.includes("error"),offsetTop:f}}const SA={labelElement:"label",inputContainer:n=>n,inputWrapperOrder:["label","description","input","error"]},A1=(n,{size:l})=>({label:{"--input-label-size":Tt(l),"--input-asterisk-color":void 0},error:{"--input-error-size":l===void 0?void 0:`calc(${Tt(l)} - ${K(2)})`},success:{"--input-success-size":l===void 0?void 0:`calc(${Tt(l)} - ${K(2)})`},description:{"--input-description-size":l===void 0?void 0:`calc(${Tt(l)} - ${K(2)})`}}),Rc=me(n=>{const l=ue("InputWrapper",SA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,size:p,variant:h,__staticSelector:S,inputContainer:g,inputWrapperOrder:v,label:w,error:E,success:C,description:T,labelProps:A,descriptionProps:N,errorProps:_,successProps:j,labelElement:L,children:k,withAsterisk:D,id:H,required:te,__stylesApiProps:le,mod:oe,attributes:ee,...F}=l,V=je({name:["InputWrapper",S],props:le||l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:ee,vars:m,varsResolver:A1}),ce={size:p,variant:h,__staticSelector:S},O=kn(H),B=typeof D=="boolean"?D:te,U=(_==null?void 0:_.id)||`${O}-error`,Z=(j==null?void 0:j.id)||`${O}-success`,P=(N==null?void 0:N.id)||`${O}-description`,M=O,Y=!!E&&typeof E!="boolean",J=!!C&&typeof C!="boolean"&&!E,ae=!!T,se=Y&&v.includes("error"),de=J&&v.includes("error"),ge=ae&&v.includes("description"),pe=`${se?U:""} ${de?Z:""} ${ge?P:""}`,he=pe.trim().length>0?pe.trim():void 0,Me=(A==null?void 0:A.id)||`${O}-label`,Se=w&&y.jsx(mi,{labelElement:L,id:Me,htmlFor:M,required:B,...ce,...A,children:w},"label"),Ce=ae&&y.jsx(fi,{...N,...ce,size:(N==null?void 0:N.size)||ce.size,id:(N==null?void 0:N.id)||P,children:T},"description"),ie=y.jsx(x.Fragment,{children:g(k)},"input"),ye=Y&&x.createElement(di,{..._,...ce,size:(_==null?void 0:_.size)||ce.size,key:"error",id:(_==null?void 0:_.id)||U},E),Ne=J&&x.createElement(pi,{...j,...ce,size:(j==null?void 0:j.size)||ce.size,key:"success",id:(j==null?void 0:j.id)||Z},C),Te=v.map(Ve=>{switch(Ve){case"label":return Se;case"input":return ie;case"description":return Ce;case"error":return ye||Ne;default:return null}});return y.jsx(Jo,{value:{getStyles:V,describedBy:he,inputId:M,labelId:Me,...bA(v,{hasDescription:ae,hasError:Y||J})},children:y.jsx(fe,{variant:h,size:p,mod:[{error:!!E,success:!!C&&!E},oe],id:L==="label"?void 0:H,...V("root"),...F,children:Te})})});Rc.classes=Ft;Rc.varsResolver=A1;Rc.displayName="@mantine/core/InputWrapper";const xA={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:"sm",loading:!1,loadingPosition:"right"},_1=(n,l,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":Je(l.size,"input-height"),"--input-fz":Tt(l.size),"--input-radius":l.radius===void 0?void 0:Ht(l.radius),"--input-left-section-width":l.leftSectionWidth!==void 0?K(l.leftSectionWidth):void 0,"--input-right-section-width":l.rightSectionWidth!==void 0?K(l.rightSectionWidth):void 0,"--input-padding-y":l.multiline?Je(l.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":l.leftSectionPointerEvents,"--input-right-section-pointer-events":l.rightSectionPointerEvents}}),Ot=Kt(n=>{const l=ue("Input",xA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,required:m,__staticSelector:p,__stylesApiProps:h,size:S,wrapperProps:g,error:v,success:w,disabled:E,leftSection:C,leftSectionProps:T,leftSectionWidth:A,rightSection:N,rightSectionProps:_,rightSectionWidth:j,rightSectionPointerEvents:L,leftSectionPointerEvents:k,variant:D,vars:H,pointer:te,multiline:le,radius:oe,id:ee,withAria:F,withErrorStyles:V,withSuccessStyles:ce,mod:O,inputSize:B,attributes:U,__clearSection:Z,__clearable:P,__clearSectionMode:M,__defaultRightSection:Y,loading:J,loadingPosition:ae,__bottomSection:se,__bottomSectionProps:de,rootRef:ge,dir:pe,...he}=l,{styleProps:Me,rest:Se}=Em(he),Ce=x.use(Jo),ie={offsetBottom:Ce==null?void 0:Ce.offsetBottom,offsetTop:Ce==null?void 0:Ce.offsetTop},ye=je({name:["Input",p],props:h||l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:U,stylesCtx:ie,rootSelector:"wrapper",vars:H,varsResolver:_1}),Ne=F?{required:m,disabled:E,"aria-invalid":v?!0:void 0,"aria-describedby":Ce==null?void 0:Ce.describedBy,id:(Ce==null?void 0:Ce.inputId)||ee}:{},Te=J?y.jsx(Qa,{size:ae==="left"?"calc(var(--input-left-section-size) / 2)":"calc(var(--input-right-section-size) / 2)"}):null,Ve=J&&ae==="left"?Te:C,ut=gA({__clearable:P,__clearSection:Z,rightSection:J&&ae==="right"?Te:N,__defaultRightSection:Y,size:S,__clearSectionMode:M});return y.jsx(x1,{value:{size:S||"sm"},children:y.jsxs(fe,{ref:ge,dir:pe,...ye("wrapper"),...Me,...g,mod:[{error:!!v&&V,success:!!w&&!v&&ce,pointer:te,disabled:E,multiline:le,"data-with-right-section":!!ut,"data-with-left-section":!!Ve,"data-with-bottom-section":!!se},O],variant:D,size:S,children:[Ve&&y.jsx("div",{...T,"data-position":"left",...ye("section",{className:T==null?void 0:T.className,style:T==null?void 0:T.style}),children:Ve}),y.jsx(fe,{component:"input",...Se,...Ne,required:m,mod:{disabled:E,error:!!v&&V,success:!!w&&!v&&ce},variant:D,__size:B,...ye("input")}),se&&y.jsx("div",{...de,...ye("bottomSection",{className:de==null?void 0:de.className,style:de==null?void 0:de.style}),children:se}),ut&&y.jsx("div",{..._,"data-position":"right",...ye("section",{className:_==null?void 0:_.className,style:_==null?void 0:_.style}),children:ut})]})})});Ot.classes=Ft;Ot.varsResolver=_1;Ot.Wrapper=Rc;Ot.Label=mi;Ot.Error=di;Ot.Success=pi;Ot.Description=fi;Ot.Placeholder=Pm;Ot.ClearButton=w1;Ot.displayName="@mantine/core/Input";function wA(n,l,r){const o=ue(["Input","InputWrapper",n],l,r),{label:s,description:u,error:f,success:m,required:p,classNames:h,styles:S,className:g,unstyled:v,__staticSelector:w,__stylesApiProps:E,errorProps:C,successProps:T,labelProps:A,descriptionProps:N,wrapperProps:_,id:j,size:L,style:k,inputContainer:D,inputWrapperOrder:H,withAsterisk:te,variant:le,vars:oe,mod:ee,attributes:F,...V}=o,{styleProps:ce,rest:O}=Em(V),B={label:s,description:u,error:f,success:m,required:p,classNames:h,className:g,__staticSelector:w,__stylesApiProps:E||o,errorProps:C,successProps:T,labelProps:A,descriptionProps:N,unstyled:v,styles:S,size:L,style:k,inputContainer:D,inputWrapperOrder:H,withAsterisk:te,variant:le,id:j,mod:ee,attributes:F,..._};return{...O,classNames:h,styles:S,unstyled:v,wrapperProps:{...B,...ce},inputProps:{required:p,classNames:h,styles:S,unstyled:v,size:L,__staticSelector:w,__stylesApiProps:E||o,error:f,success:m,variant:le,id:j,attributes:F}}}const CA={__staticSelector:"InputBase",withAria:!0,size:"sm"},Ec=Kt(n=>{const{inputProps:l,wrapperProps:r,...o}=wA("InputBase",CA,n);return y.jsx(Ot.Wrapper,{...r,children:y.jsx(Ot,{...l,...o})})});Ec.classes={...Ot.classes,...Ot.Wrapper.classes};Ec.displayName="@mantine/core/InputBase";function TA(n,l){if(!l||!n)return!1;let r=l.parentNode;for(;r!=null;){if(r===n)return!0;r=r.parentNode}return!1}function RA({target:n,parent:l,ref:r,displayAfterTransitionEnd:o,onTransitionStart:s,onTransitionEnd:u}){const f=x.useRef(-1),m=x.useRef(n),[p,h]=x.useState(!1),[S,g]=x.useState(typeof o=="boolean"?o:!1),v=()=>{if(!n||!l||!r.current)return;const T=n.getBoundingClientRect(),A=l.getBoundingClientRect(),N=l.offsetWidth===0?1:A.width/l.offsetWidth,_=l.offsetHeight===0?1:A.height/l.offsetHeight,j=window.getComputedStyle(n),L=window.getComputedStyle(l),k=da(j.borderTopWidth)+da(L.borderTopWidth),D=da(j.borderLeftWidth)+da(L.borderLeftWidth),H={top:(T.top-A.top)/_-k,left:(T.left-A.left)/N-D,width:T.width/N,height:T.height/_};r.current.style.transform=`translateY(${H.top}px) translateX(${H.left}px)`,r.current.style.width=`${H.width}px`,r.current.style.height=`${H.height}px`},w=()=>{window.clearTimeout(f.current),r.current&&(r.current.style.transitionDuration="0ms"),v(),f.current=window.setTimeout(()=>{r.current&&(r.current.style.transitionDuration="")},30)},E=x.useRef(null),C=x.useRef(null);return x.useEffect(()=>{if(p&&m.current!==n&&s&&s(),m.current=n,v(),n)return E.current=new ResizeObserver(w),E.current.observe(n),l&&(C.current=new ResizeObserver(w),C.current.observe(l)),()=>{var T,A;(T=E.current)==null||T.disconnect(),(A=C.current)==null||A.disconnect()}},[l,n]),x.useEffect(()=>{if(l){const T=A=>{TA(A.target,l)&&(w(),g(!1))};return l.addEventListener("transitionend",T),()=>{l.removeEventListener("transitionend",T)}}},[l]),x.useEffect(()=>{if(r.current&&u){const T=A=>{A.propertyName==="transform"&&u()};return r.current.addEventListener("transitionend",T),()=>{var A;(A=r.current)==null||A.removeEventListener("transitionend",T)}}},[u]),q2(()=>{J2()!=="test"&&h(!0)},20,{autoInvoke:!0}),G2(T=>{T.forEach(A=>{A.type==="attributes"&&A.attributeName==="dir"&&w()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:p,hidden:S}}var N1={root:"m_96b553a6"};const M1=(n,{transitionDuration:l},{shouldReduceMotion:r})=>({root:{"--transition-duration":n.respectReducedMotion&&r?"0ms":typeof l=="number"?`${l}ms`:l||"150ms"}}),Ac=me(n=>{const l=ue("FloatingIndicator",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,target:p,parent:h,transitionDuration:S,mod:g,displayAfterTransitionEnd:v,onTransitionStart:w,onTransitionEnd:E,attributes:C,ref:T,...A}=l,N=vm(),_=je({name:"FloatingIndicator",classes:N1,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:C,vars:m,varsResolver:M1,stylesCtx:{shouldReduceMotion:N}}),j=x.useRef(null),{initialized:L,hidden:k}=RA({target:p,parent:h,ref:j,displayAfterTransitionEnd:v,onTransitionStart:w,onTransitionEnd:E}),D=it(T,j);return!p||!h?null:y.jsx(fe,{ref:D,mod:[{initialized:L,hidden:k},g],..._("root"),...A})});Ac.displayName="@mantine/core/FloatingIndicator";Ac.classes=N1;Ac.varsResolver=M1;function O1({style:n,size:l=16,...r}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...n,width:K(l),height:K(l),display:"block"},...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"})})}O1.displayName="@mantine/core/AccordionChevron";var j1={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 z1=(n,{radius:l,color:r,variant:o,autoContrast:s})=>{const u=n.variantColorResolver({color:r||n.primaryColor,theme:n,variant:o||"light",autoContrast:s});return{root:{"--alert-radius":l===void 0?void 0:Ht(l),"--alert-bg":r||o?u.background:void 0,"--alert-color":u.color,"--alert-bd":r||o?u.border:void 0}}},Ia=me(n=>{const l=ue("Alert",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,radius:p,color:h,title:S,children:g,id:v,icon:w,withCloseButton:E,onClose:C,closeButtonLabel:T,variant:A,autoContrast:N,role:_,attributes:j,...L}=l,k=je({name:"Alert",classes:j1,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:j,vars:m,varsResolver:z1}),D=kn(v),H=S&&`${D}-title`||void 0,te=`${D}-body`;return y.jsx(fe,{id:D,...k("root",{variant:A}),variant:A,...L,role:_||"alert","aria-describedby":g?te:void 0,"aria-labelledby":S?H:void 0,children:y.jsxs("div",{...k("wrapper"),children:[w&&y.jsx("div",{...k("icon"),children:w}),y.jsxs("div",{...k("body"),children:[S&&y.jsx("div",{...k("title"),"data-with-close-button":E||void 0,children:y.jsx("span",{id:H,...k("label"),children:S})}),g&&y.jsx("div",{id:te,...k("message"),"data-variant":A,children:g})]}),E&&y.jsx(Ka,{...k("closeButton"),onClick:C,variant:"transparent",size:16,iconSize:16,"aria-label":T,unstyled:f})]})})});Ia.classes=j1;Ia.varsResolver=z1;Ia.displayName="@mantine/core/Alert";var D1={root:"m_b6d8b162"};function EA(n){if(n==="start")return"start";if(n==="end"||n)return"end"}const AA={inherit:!1},$1=(n,{variant:l,lineClamp:r,gradient:o,size:s,textWrap:u})=>({root:{"--text-fz":Tt(s),"--text-lh":E2(s),"--text-gradient":l==="gradient"?Xd(o,n):void 0,"--text-line-clamp":typeof r=="number"?r.toString():void 0,"--text-text-wrap":u}}),Oe=Kt(n=>{const l=ue("Text",AA,n),{lineClamp:r,truncate:o,inline:s,inherit:u,gradient:f,span:m,textWrap:p,__staticSelector:h,vars:S,className:g,style:v,classNames:w,styles:E,unstyled:C,variant:T,mod:A,size:N,attributes:_,...j}=l;return y.jsx(fe,{...je({name:["Text",h],props:l,classes:D1,className:g,style:v,classNames:w,styles:E,unstyled:C,attributes:_,vars:S,varsResolver:$1})("root",{focusable:!0}),component:m?"span":"p",variant:T,mod:[{"data-truncate":EA(o),"data-line-clamp":typeof r=="number","data-inline":s,"data-inherit":u},A],size:N,...j})});Oe.classes=D1;Oe.varsResolver=$1;Oe.displayName="@mantine/core/Text";var L1={root:"m_849cf0da"};const _A={underline:"hover"},_c=Kt(n=>{const{underline:l,className:r,unstyled:o,mod:s,...u}=ue("Anchor",_A,n);return y.jsx(Oe,{component:"a",className:gt({[L1.root]:!o},r),...u,mod:[{underline:l},s],__staticSelector:"Anchor",unstyled:o})});_c.classes=L1;_c.displayName="@mantine/core/Anchor";const[NA,Po]=Ml("AppShell was not found in tree");var Sa={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const Wm=me(n=>{const{classNames:l,className:r,style:o,styles:s,unstyled:u,vars:f,withBorder:m,zIndex:p,mod:h,...S}=ue("AppShellAside",null,n),g=Po();return g.disabled?null:y.jsx(fe,{component:"aside",mod:[{"with-border":m??g.withBorder},h],...g.getStyles("aside",{className:gt({[ui.classNames.zeroRight]:g.offsetScrollbars},r),classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-aside-z-index":`calc(${p??g.zIndex} + 1)`}})});Wm.classes=Sa;Wm.displayName="@mantine/core/AppShellAside";const ep=me(n=>{var v;const{classNames:l,className:r,style:o,styles:s,unstyled:u,vars:f,withBorder:m,zIndex:p,mod:h,...S}=ue("AppShellFooter",null,n),g=Po();return g.disabled?null:y.jsx(fe,{component:"footer",mod:[{"with-border":m??g.withBorder},h],...g.getStyles("footer",{className:gt({[ui.classNames.zeroRight]:g.offsetScrollbars},r),classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-footer-z-index":(v=p??g.zIndex)==null?void 0:v.toString()}})});ep.classes=Sa;ep.displayName="@mantine/core/AppShellFooter";const tp=me(n=>{var v;const{classNames:l,className:r,style:o,styles:s,unstyled:u,vars:f,withBorder:m,zIndex:p,mod:h,...S}=ue("AppShellHeader",null,n),g=Po();return g.disabled?null:y.jsx(fe,{component:"header",mod:[{"with-border":m??g.withBorder},h],...g.getStyles("header",{className:gt({[ui.classNames.zeroRight]:g.offsetScrollbars},r),classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-header-z-index":(v=p??g.zIndex)==null?void 0:v.toString()}})});tp.classes=Sa;tp.displayName="@mantine/core/AppShellHeader";const np=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("AppShellMain",null,n);return y.jsx(fe,{component:"main",...Po().getStyles("main",{className:r,style:o,classNames:l,styles:s}),...f})});np.classes=Sa;np.displayName="@mantine/core/AppShellMain";const lp=me(n=>{const{classNames:l,className:r,style:o,styles:s,unstyled:u,vars:f,withBorder:m,zIndex:p,mod:h,...S}=ue("AppShellNavbar",null,n),g=Po();return g.disabled?null:y.jsx(fe,{component:"nav",mod:[{"with-border":m??g.withBorder},h],...g.getStyles("navbar",{className:r,classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-navbar-z-index":`calc(${p??g.zIndex} + 1)`}})});lp.classes=Sa;lp.displayName="@mantine/core/AppShellNavbar";const ap=Kt(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,grow:f,mod:m,...p}=ue("AppShellSection",null,n),h=Po();return y.jsx(fe,{mod:[{grow:f},m],...h.getStyles("section",{className:r,style:o,classNames:l,styles:s}),...p})});ap.classes=Sa;ap.displayName="@mantine/core/AppShellSection";function hi(n){return typeof n=="object"?n.base:n}function vi(n){const l=typeof n=="object"&&n!==null&&typeof n.base<"u"&&Object.keys(n).length===1;return typeof n=="number"||typeof n=="string"||l}function gi(n){return!(typeof n!="object"||n===null||Object.keys(n).length===1&&"base"in n)}function MA({baseStyles:n,minMediaStyles:l,maxMediaStyles:r,aside:o,theme:s,mode:u}){var h,S,g;const f=o==null?void 0:o.width,m="translateX(var(--app-shell-aside-width))",p="translateX(calc(var(--app-shell-aside-width) * -1))";if((o==null?void 0:o.breakpoint)!==void 0&&!((h=o==null?void 0:o.collapsed)!=null&&h.mobile)&&(r[o==null?void 0:o.breakpoint]=r[o==null?void 0:o.breakpoint]||{},u==="fixed"?(r[o==null?void 0:o.breakpoint]["--app-shell-aside-width"]="100%",r[o==null?void 0:o.breakpoint]["--app-shell-aside-offset"]="0px"):(r[o==null?void 0:o.breakpoint]["--app-shell-aside-width"]="0px",r[o==null?void 0:o.breakpoint]["--app-shell-aside-offset"]="0px")),vi(f)){const v=K(hi(f));n["--app-shell-aside-width"]=v,n["--app-shell-aside-offset"]=v}if(gi(f)&&(typeof f.base<"u"&&(n["--app-shell-aside-width"]=K(f.base),n["--app-shell-aside-offset"]=K(f.base)),Mt(f).forEach(v=>{v!=="base"&&(l[v]=l[v]||{},l[v]["--app-shell-aside-width"]=K(f[v]),l[v]["--app-shell-aside-offset"]=K(f[v]))})),(o==null?void 0:o.breakpoint)!==void 0&&u==="static"&&(l[o.breakpoint]=l[o.breakpoint]||{},l[o.breakpoint]["--app-shell-aside-position"]="sticky",l[o.breakpoint]["--app-shell-aside-grid-row"]="2",l[o.breakpoint]["--app-shell-aside-grid-column"]="3",l[o.breakpoint]["--app-shell-main-column-end"]="3"),(S=o==null?void 0:o.collapsed)!=null&&S.desktop){const v=o.breakpoint;l[v]=l[v]||{},l[v]["--app-shell-aside-transform"]=m,l[v]["--app-shell-aside-transform-rtl"]=p,u==="fixed"?l[v]["--app-shell-aside-offset"]="0px !important":(l[v]["--app-shell-aside-width"]="0px",l[v]["--app-shell-aside-display"]="none",l[v]["--app-shell-main-column-end"]="-1"),l[v]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if((g=o==null?void 0:o.collapsed)!=null&&g.mobile){const v=mm(o.breakpoint,s.breakpoints)-.1;r[v]=r[v]||{},u==="fixed"?(r[v]["--app-shell-aside-width"]="100%",r[v]["--app-shell-aside-offset"]="0px"):r[v]["--app-shell-aside-width"]="0px",r[v]["--app-shell-aside-transform"]=m,r[v]["--app-shell-aside-transform-rtl"]=p,r[v]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function OA({baseStyles:n,minMediaStyles:l,footer:r,mode:o}){const s=r==null?void 0:r.height,u="translateY(var(--app-shell-footer-height))",f=o==="static"?!0:(r==null?void 0:r.offset)??!0;if(o==="static"&&r&&(n["--app-shell-footer-position"]="sticky",n["--app-shell-footer-grid-column"]="1 / -1",n["--app-shell-footer-grid-row"]="3"),vi(s)){const m=K(hi(s));n["--app-shell-footer-height"]=m,f&&(n["--app-shell-footer-offset"]=m)}gi(s)&&(typeof s.base<"u"&&(n["--app-shell-footer-height"]=K(s.base),f&&(n["--app-shell-footer-offset"]=K(s.base))),Mt(s).forEach(m=>{m!=="base"&&(l[m]=l[m]||{},l[m]["--app-shell-footer-height"]=K(s[m]),f&&(l[m]["--app-shell-footer-offset"]=K(s[m])))})),r!=null&&r.collapsed&&(n["--app-shell-footer-transform"]=u,o==="fixed"&&(n["--app-shell-footer-offset"]="0px !important"))}function jA({baseStyles:n,minMediaStyles:l,header:r,mode:o}){const s=r==null?void 0:r.height,u="translateY(calc(var(--app-shell-header-height) * -1))",f=o==="static"?!0:(r==null?void 0:r.offset)??!0;if(o==="static"&&r&&(n["--app-shell-header-position"]="sticky",n["--app-shell-header-grid-column"]="1 / -1",n["--app-shell-header-grid-row"]="1"),vi(s)){const m=K(hi(s));n["--app-shell-header-height"]=m,f&&(n["--app-shell-header-offset"]=m)}gi(s)&&(typeof s.base<"u"&&(n["--app-shell-header-height"]=K(s.base),f&&(n["--app-shell-header-offset"]=K(s.base))),Mt(s).forEach(m=>{m!=="base"&&(l[m]=l[m]||{},l[m]["--app-shell-header-height"]=K(s[m]),f&&(l[m]["--app-shell-header-offset"]=K(s[m])))})),r!=null&&r.collapsed&&(n["--app-shell-header-transform"]=u,o==="fixed"&&(n["--app-shell-header-offset"]="0px !important"))}function zA({baseStyles:n,minMediaStyles:l,maxMediaStyles:r,navbar:o,theme:s,mode:u}){var h,S,g;const f=o==null?void 0:o.width,m="translateX(calc(var(--app-shell-navbar-width) * -1))",p="translateX(var(--app-shell-navbar-width))";if((o==null?void 0:o.breakpoint)!==void 0&&!((h=o==null?void 0:o.collapsed)!=null&&h.mobile)&&(r[o==null?void 0:o.breakpoint]=r[o==null?void 0:o.breakpoint]||{},r[o==null?void 0:o.breakpoint]["--app-shell-navbar-offset"]="0px",r[o==null?void 0:o.breakpoint]["--app-shell-navbar-width"]="100%",u==="static"&&(r[o==null?void 0:o.breakpoint]["--app-shell-navbar-grid-width"]="0px")),vi(f)){const v=K(hi(f));n["--app-shell-navbar-width"]=v,n["--app-shell-navbar-offset"]=v,u==="static"&&(n["--app-shell-navbar-grid-width"]=v)}if(gi(f)&&(typeof f.base<"u"&&(n["--app-shell-navbar-width"]=K(f.base),n["--app-shell-navbar-offset"]=K(f.base),u==="static"&&(n["--app-shell-navbar-grid-width"]=K(f.base))),Mt(f).forEach(v=>{v!=="base"&&(l[v]=l[v]||{},l[v]["--app-shell-navbar-width"]=K(f[v]),l[v]["--app-shell-navbar-offset"]=K(f[v]),u==="static"&&(l[v]["--app-shell-navbar-grid-width"]=K(f[v])))})),(o==null?void 0:o.breakpoint)!==void 0&&u==="static"&&(l[o.breakpoint]=l[o.breakpoint]||{},l[o.breakpoint]["--app-shell-navbar-position"]="sticky",l[o.breakpoint]["--app-shell-navbar-grid-row"]="2",l[o.breakpoint]["--app-shell-navbar-grid-column"]="1",l[o.breakpoint]["--app-shell-main-column-start"]="2"),(S=o==null?void 0:o.collapsed)!=null&&S.desktop){const v=o.breakpoint;l[v]=l[v]||{},l[v]["--app-shell-navbar-transform"]=m,l[v]["--app-shell-navbar-transform-rtl"]=p,u==="fixed"?l[v]["--app-shell-navbar-offset"]="0px !important":(l[v]["--app-shell-navbar-width"]="0px",l[v]["--app-shell-navbar-display"]="none",l[v]["--app-shell-main-column-start"]="1")}if((g=o==null?void 0:o.collapsed)!=null&&g.mobile){const v=mm(o.breakpoint,s.breakpoints)-.1;r[v]=r[v]||{},r[v]["--app-shell-navbar-width"]="100%",r[v]["--app-shell-navbar-offset"]="0px",u==="static"&&(r[v]["--app-shell-navbar-grid-width"]="0px"),r[v]["--app-shell-navbar-transform"]=m,r[v]["--app-shell-navbar-transform-rtl"]=p}}function Ld(n){return Number(n)===0?"0px":si(n)}function DA({padding:n,baseStyles:l,minMediaStyles:r}){vi(n)&&(l["--app-shell-padding"]=Ld(hi(n))),gi(n)&&(n.base&&(l["--app-shell-padding"]=Ld(n.base)),Mt(n).forEach(o=>{o!=="base"&&(r[o]=r[o]||{},r[o]["--app-shell-padding"]=Ld(n[o]))}))}function $A({navbar:n,header:l,footer:r,aside:o,padding:s,theme:u,mode:f}){const m={},p={},h={};f==="static"&&(h["--app-shell-main-grid-column"]="1 / -1",h["--app-shell-main-grid-row"]="2"),zA({baseStyles:h,minMediaStyles:m,maxMediaStyles:p,navbar:n,theme:u,mode:f}),MA({baseStyles:h,minMediaStyles:m,maxMediaStyles:p,aside:o,theme:u,mode:f}),jA({baseStyles:h,minMediaStyles:m,header:l,mode:f}),OA({baseStyles:h,minMediaStyles:m,footer:r,mode:f}),DA({baseStyles:h,minMediaStyles:m,padding:s});const S=$y(Mt(m),u.breakpoints).map(v=>({query:`(min-width: ${Fs(v.px)})`,styles:m[v.value]})),g=$y(Mt(p),u.breakpoints).map(v=>({query:`(max-width: ${Fs(v.px)})`,styles:p[v.value]}));return{baseStyles:h,media:[...S,...g]}}function LA({navbar:n,header:l,aside:r,footer:o,padding:s,mode:u,selector:f}){const m=cn(),p=al(),{media:h,baseStyles:S}=$A({navbar:n,header:l,footer:o,aside:r,padding:s,theme:m,mode:u});return y.jsx(t0,{media:h,styles:S,selector:f||p.cssVariablesSelector})}function BA({transitionDuration:n,disabled:l}){const[r,o]=x.useState(!0),s=x.useRef(-1),u=x.useRef(-1);return Ib("resize",()=>{o(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>x.startTransition(()=>{o(!1)}),200)}),el(()=>{o(!0),clearTimeout(u.current),u.current=window.setTimeout(()=>x.startTransition(()=>{o(!1)}),n||0)},[l,n]),r}const kA={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Qt("app"),mode:"fixed"},B1=(n,{transitionDuration:l,transitionTimingFunction:r})=>({root:{"--app-shell-transition-duration":`${l}ms`,"--app-shell-transition-timing-function":r}}),Bn=me(n=>{const l=ue("AppShell",kA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,navbar:p,withBorder:h,padding:S,transitionDuration:g,transitionTimingFunction:v,header:w,zIndex:E,layout:C,disabled:T,aside:A,footer:N,offsetScrollbars:_=!0,mode:j,mod:L,attributes:k,id:D,...H}=l,te=je({name:"AppShell",classes:Sa,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:k,vars:m,varsResolver:B1}),le=BA({disabled:T,transitionDuration:g}),oe=kn(D);return y.jsxs(NA,{value:{getStyles:te,withBorder:h,zIndex:E,disabled:T,offsetScrollbars:_,mode:j},children:[y.jsx(LA,{navbar:p,header:w,aside:A,footer:N,padding:S,mode:j,selector:j==="static"?`#${oe}`:void 0}),y.jsx(fe,{...te("root"),id:oe,mod:[{resizing:le,layout:C,disabled:T,mode:j},L],...H})]})});Bn.classes=Sa;Bn.varsResolver=B1;Bn.displayName="@mantine/core/AppShell";Bn.Navbar=lp;Bn.Header=tp;Bn.Main=np;Bn.Aside=Wm;Bn.Footer=ep;Bn.Section=ap;function k1(n){return typeof n=="string"?{value:n,label:n}:typeof n=="object"&&"value"in n&&!("label"in n)?{value:n.value,label:`${n.value}`,disabled:n.disabled}:typeof n=="object"&&"group"in n?{group:n.group,items:n.items.map(l=>k1(l))}:typeof n=="number"||typeof n=="bigint"||typeof n=="boolean"?{value:n,label:`${n}`}:n}function HA(n){return n?n.map(l=>k1(l)):[]}function H1(n){return n.reduce((l,r)=>"group"in r?{...l,...H1(r.items)}:(l[`${r.value}`]=r,l),{})}var kt={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",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const UA={error:null},U1=(n,{size:l,color:r})=>({chevron:{"--combobox-chevron-size":Je(l,"combobox-chevron-size"),"--combobox-chevron-color":r?ha(r,n):void 0}}),Nc=me(n=>{const l=ue("ComboboxChevron",UA,n),{size:r,error:o,style:s,className:u,classNames:f,styles:m,unstyled:p,vars:h,attributes:S,mod:g,...v}=l,w=je({name:"ComboboxChevron",classes:kt,props:l,style:s,className:u,classNames:f,styles:m,unstyled:p,vars:h,varsResolver:U1,attributes:S,rootSelector:"chevron"});return y.jsx(fe,{component:"svg",...v,...w("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},g],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"})})});Nc.classes=kt;Nc.varsResolver=U1;Nc.displayName="@mantine/core/ComboboxChevron";const[YA,un]=Ml("Combobox component was not found in tree");function Y1({onMouseDown:n,onClick:l,onClear:r,...o}){return y.jsx(Ot.ClearButton,{tabIndex:-1,"aria-hidden":!0,...o,onMouseDown:s=>{s.preventDefault(),n==null||n(s)},onClick:s=>{r(),l==null||l(s)}})}Y1.displayName="@mantine/core/ComboboxClearButton";const op=me(n=>{const{classNames:l,styles:r,className:o,style:s,hidden:u,...f}=ue("ComboboxDropdown",null,n),m=un();return y.jsx(vt.Dropdown,{...f,role:"presentation","data-hidden":u||void 0,"data-floating-height":m.floatingHeight||void 0,...m.getStyles("dropdown",{className:o,style:s,classNames:l,styles:r})})});op.classes=kt;op.displayName="@mantine/core/ComboboxDropdown";const qA={refProp:"ref"},q1=me(n=>{const{children:l,refProp:r,ref:o}=ue("ComboboxDropdownTarget",qA,n);if(un(),!um(l))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(vt.Target,{ref:o,refProp:r,children:l})});q1.displayName="@mantine/core/ComboboxDropdownTarget";const rp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ComboboxEmpty",null,n);return y.jsx(fe,{...un().getStyles("empty",{className:r,classNames:l,styles:s,style:o}),...f})});rp.classes=kt;rp.displayName="@mantine/core/ComboboxEmpty";function ip({onKeyDown:n,onClick:l,withKeyboardNavigation:r,withAriaAttributes:o,withExpandedAttribute:s,targetType:u,autoComplete:f}){const m=un(),[p,h]=x.useState(null),S=w=>{if(n==null||n(w),!m.readOnly&&r){if(w.nativeEvent.isComposing)return;if(w.nativeEvent.code==="ArrowDown"&&(w.preventDefault(),m.store.dropdownOpened?h(m.store.selectNextOption()):(m.store.openDropdown("keyboard"),h(m.store.selectActiveOption()),m.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),w.nativeEvent.code==="ArrowUp"&&(w.preventDefault(),m.store.dropdownOpened?h(m.store.selectPreviousOption()):(m.store.openDropdown("keyboard"),h(m.store.selectActiveOption()),m.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),w.nativeEvent.code==="Enter"||w.nativeEvent.code==="NumpadEnter"){if(w.nativeEvent.keyCode===229)return;const E=m.store.getSelectedOptionIndex();m.store.dropdownOpened&&E!==-1?(w.preventDefault(),m.store.clickSelectedOption()):u==="button"&&(w.preventDefault(),m.store.openDropdown("keyboard"))}w.key==="Escape"&&m.store.closeDropdown("keyboard"),w.nativeEvent.code==="Space"&&u==="button"&&(w.preventDefault(),m.store.toggleDropdown("keyboard"))}};return{...o?{...s?{role:"combobox"}:{},"aria-haspopup":"listbox","aria-expanded":s?!!(m.store.listId&&m.store.dropdownOpened):void 0,"aria-controls":m.store.dropdownOpened&&m.store.listId?m.store.listId:void 0,"aria-activedescendant":m.store.dropdownOpened&&p||void 0,autoComplete:f,"data-expanded":m.store.dropdownOpened||void 0,"data-mantine-stop-propagation":m.store.dropdownOpened||void 0}:{},onKeyDown:S,onClick:w=>{u==="button"&&w.currentTarget.focus(),l==null||l(w)}}}const VA={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},V1=me(n=>{const{children:l,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:u,targetType:f,autoComplete:m,ref:p,...h}=ue("ComboboxEventsTarget",VA,n),S=Ol(l);if(!S)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 g=un();return x.cloneElement(S,{...ip({targetType:f,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:u,onKeyDown:S.props.onKeyDown,onClick:S.props.onClick,autoComplete:m}),...h,[r]:it(p,g.store.targetRef,sc(S))})});V1.displayName="@mantine/core/ComboboxEventsTarget";const sp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ComboboxFooter",null,n);return y.jsx(fe,{...un().getStyles("footer",{className:r,classNames:l,style:o,styles:s}),...f,onMouseDown:m=>{m.preventDefault()}})});sp.classes=kt;sp.displayName="@mantine/core/ComboboxFooter";const cp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,children:f,label:m,id:p,...h}=ue("ComboboxGroup",null,n),S=un(),g=kn(p),v=m!=null&&m!==!1&&m!=="";return y.jsxs(fe,{role:"group","aria-labelledby":v?g:void 0,...S.getStyles("group",{className:r,classNames:l,style:o,styles:s}),...h,children:[v&&y.jsx("div",{id:g,...S.getStyles("groupLabel",{classNames:l,styles:s}),children:m}),f]})});cp.classes=kt;cp.displayName="@mantine/core/ComboboxGroup";const up=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ComboboxHeader",null,n);return y.jsx(fe,{...un().getStyles("header",{className:r,classNames:l,style:o,styles:s}),...f,onMouseDown:m=>{m.preventDefault()}})});up.classes=kt;up.displayName="@mantine/core/ComboboxHeader";function G1({value:n,valuesDivider:l=",",...r}){return y.jsx("input",{type:"hidden",value:Array.isArray(n)?n.join(l):n?`${n}`:"",...r})}G1.displayName="@mantine/core/ComboboxHiddenInput";const fp=me(n=>{const l=ue("ComboboxOption",null,n),{classNames:r,className:o,style:s,styles:u,vars:f,onClick:m,id:p,active:h,onMouseDown:S,onMouseOver:g,disabled:v,selected:w,mod:E,...C}=l,T=un(),A=x.useId(),N=p||A;return y.jsx(fe,{...T.getStyles("option",{className:o,classNames:r,styles:u,style:s}),...C,id:N,mod:["combobox-option",{"combobox-active":h,"combobox-disabled":v,"combobox-selected":w},E],role:"option",onClick:_=>{var j;v?_.preventDefault():((j=T.onOptionSubmit)==null||j.call(T,l.value,l),m==null||m(_))},onMouseDown:_=>{_.preventDefault(),S==null||S(_)},onMouseOver:_=>{T.resetSelectionOnOptionHover&&T.store.resetSelectedOption(),g==null||g(_)}})});fp.classes=kt;fp.displayName="@mantine/core/ComboboxOption";const dp=me(n=>{const{classNames:l,className:r,style:o,styles:s,id:u,onMouseDown:f,labelledBy:m,...p}=ue("ComboboxOptions",null,n),h=un(),S=kn(u);return x.useEffect(()=>{h.store.setListId(S)},[S]),y.jsx(fe,{...h.getStyles("options",{className:r,style:o,classNames:l,styles:s}),...p,id:S,role:"listbox","aria-labelledby":m,onMouseDown:g=>{g.preventDefault(),f==null||f(g)}})});dp.classes=kt;dp.displayName="@mantine/core/ComboboxOptions";const GA={withAriaAttributes:!0,withKeyboardNavigation:!0},mp=me(n=>{const{classNames:l,styles:r,unstyled:o,vars:s,withAriaAttributes:u,onKeyDown:f,onClick:m,withKeyboardNavigation:p,size:h,ref:S,...g}=ue("ComboboxSearch",GA,n),v=un(),w=v.getStyles("search"),E=ip({targetType:"input",withAriaAttributes:u,withKeyboardNavigation:p,withExpandedAttribute:!1,onKeyDown:f,onClick:m,autoComplete:"off"});return y.jsx(Ot,{ref:it(S,v.store.searchRef),classNames:[{input:w.className},l],styles:[{input:w.style},r],size:h||v.size,...E,...g,__staticSelector:"Combobox"})});mp.classes=kt;mp.displayName="@mantine/core/ComboboxSearch";const XA={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},X1=me(n=>{const{children:l,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:u,targetType:f,autoComplete:m,ref:p,...h}=ue("ComboboxTarget",XA,n),S=Ol(l);if(!S)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 g=un(),v=x.cloneElement(S,{...ip({targetType:f,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:u,onKeyDown:S.props.onKeyDown,onClick:S.props.onClick,autoComplete:m}),...h});return y.jsx(vt.Target,{refProp:r,ref:it(p,g.store.targetRef),children:v})});X1.displayName="@mantine/core/ComboboxTarget";function IA(n,l,r){for(let o=n-1;o>=0;o-=1)if(!l[o].hasAttribute("data-combobox-disabled"))return o;if(r){for(let o=l.length-1;o>-1;o-=1)if(!l[o].hasAttribute("data-combobox-disabled"))return o}return n}function ZA(n,l,r){for(let o=n+1;o<l.length;o+=1)if(!l[o].hasAttribute("data-combobox-disabled"))return o;if(r){for(let o=0;o<l.length;o+=1)if(!l[o].hasAttribute("data-combobox-disabled"))return o}return n}function QA(n){for(let l=0;l<n.length;l+=1)if(!n[l].hasAttribute("data-combobox-disabled"))return l;return-1}function I1({defaultOpened:n,opened:l,onOpenedChange:r,onDropdownClose:o,onDropdownOpen:s,loop:u=!0,scrollBehavior:f="instant"}={}){const[m,p]=tl({value:l,defaultValue:n,finalValue:!1,onChange:r}),h=x.useRef(null),S=x.useRef(-1),g=x.useRef(null),v=x.useRef(null),w=x.useRef(-1),E=x.useRef(-1),C=x.useRef(-1),T=x.useCallback((O="unknown")=>{m||(p(!0),s==null||s(O))},[p,s,m]),A=x.useCallback((O="unknown")=>{m&&(p(!1),o==null||o(O))},[p,o,m]),N=x.useCallback((O="unknown")=>{m?A(O):T(O)},[A,T,m]),_=x.useCallback(()=>{const O=Kn(v.current),B=Gs(`#${h.current} [data-combobox-selected]`,O);B==null||B.removeAttribute("data-combobox-selected"),B==null||B.removeAttribute("aria-selected")},[]),j=x.useCallback(O=>{const B=Kn(v.current),U=Gs(`#${h.current}`,B),Z=U?Rl("[data-combobox-option]",U):null;if(!Z)return null;const P=O>=Z.length?0:O<0?Z.length-1:O;return S.current=P,Z!=null&&Z[P]&&!Z[P].hasAttribute("data-combobox-disabled")?(_(),Z[P].setAttribute("data-combobox-selected","true"),Z[P].setAttribute("aria-selected","true"),Z[P].scrollIntoView({block:"nearest",behavior:f}),Z[P].id):null},[f,_]),L=x.useCallback(()=>{const O=Kn(v.current),B=Gs(`#${h.current} [data-combobox-active]`,O);if(B){const U=Rl(`#${h.current} [data-combobox-option]`,O).findIndex(Z=>Z===B);return j(U)}return j(0)},[j]),k=x.useCallback(()=>{const O=Kn(v.current),B=Rl(`#${h.current} [data-combobox-option]`,O);return j(ZA(S.current,B,u))},[j,u]),D=x.useCallback(()=>{const O=Kn(v.current),B=Rl(`#${h.current} [data-combobox-option]`,O);return j(IA(S.current,B,u))},[j,u]),H=x.useCallback(()=>{const O=Kn(v.current),B=Rl(`#${h.current} [data-combobox-option]`,O);return j(QA(B))},[j]),te=x.useCallback((O="selected",B)=>{var U;if(typeof O=="number"){S.current=O;const Z=Kn(v.current),P=Rl(`#${h.current} [data-combobox-option]`,Z);B!=null&&B.scrollIntoView&&((U=P[O])==null||U.scrollIntoView({block:"nearest",behavior:f}));return}C.current=window.setTimeout(()=>{var Y;const Z=Kn(v.current),P=Rl(`#${h.current} [data-combobox-option]`,Z),M=P.findIndex(J=>J.hasAttribute(`data-combobox-${O}`));S.current=M,B!=null&&B.scrollIntoView&&((Y=P[M])==null||Y.scrollIntoView({block:"nearest",behavior:f}))},0)},[]),le=x.useCallback(()=>{S.current=-1,_()},[_]),oe=x.useCallback(()=>{var B,U;const O=Kn(v.current);(U=(B=Rl(`#${h.current} [data-combobox-option]`,O))==null?void 0:B[S.current])==null||U.click()},[]),ee=x.useCallback(O=>{h.current=O},[]),F=x.useCallback(()=>{w.current=window.setTimeout(()=>{var O;return(O=g.current)==null?void 0:O.focus()},0)},[]),V=x.useCallback(()=>{E.current=window.setTimeout(()=>{var O;return(O=v.current)==null?void 0:O.focus()},0)},[]),ce=x.useCallback(()=>S.current,[]);return x.useEffect(()=>()=>{window.clearTimeout(w.current),window.clearTimeout(E.current),window.clearTimeout(C.current)},[]),{dropdownOpened:m,openDropdown:T,closeDropdown:A,toggleDropdown:N,selectedOptionIndex:S.current,getSelectedOptionIndex:ce,selectOption:j,selectFirstOption:H,selectActiveOption:L,selectNextOption:k,selectPreviousOption:D,resetSelectedOption:le,updateSelectedOptionIndex:te,listId:h.current,setListId:ee,clickSelectedOption:oe,searchRef:g,focusSearchInput:F,targetRef:v,focusTarget:V}}const KA={keepMounted:!0,keepMountedMode:"display-none",withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},Z1=(n,{size:l,dropdownPadding:r})=>({options:{"--combobox-option-fz":Tt(l),"--combobox-option-padding":Je(l,"combobox-option-padding")},dropdown:{"--combobox-padding":r===void 0?void 0:K(r),"--combobox-option-fz":Tt(l),"--combobox-option-padding":Je(l,"combobox-option-padding")}}),Ie=n=>{const l=ue("Combobox",KA,n),{classNames:r,styles:o,unstyled:s,children:u,store:f,vars:m,onOptionSubmit:p,onClose:h,size:S,dropdownPadding:g,resetSelectionOnOptionHover:v,__staticSelector:w,readOnly:E,attributes:C,floatingHeight:T,middlewares:A,...N}=l,_=T==="viewport"?{...A,flip:!1,size:{...typeof(A==null?void 0:A.size)=="object"?A.size:{},padding:typeof(A==null?void 0:A.size)=="object"&&A.size.padding!==void 0?A.size.padding:10,apply:({availableHeight:H,availableWidth:te,elements:le,...oe})=>{le.floating.style.setProperty("--combobox-floating-max-height",`${H}px`);const ee=A==null?void 0:A.size;typeof ee=="object"&&ee.apply?ee.apply({availableHeight:H,availableWidth:te,elements:le,...oe}):ee&&Object.assign(le.floating.style,{maxWidth:`${te}px`,maxHeight:`${H}px`})}}}:A,j=I1(),L=f||j,k=je({name:w||"Combobox",classes:kt,props:l,classNames:r,styles:o,unstyled:s,attributes:C,vars:m,varsResolver:Z1}),D=()=>{h==null||h(),L.closeDropdown()};return y.jsx(YA,{value:{getStyles:k,store:L,onOptionSubmit:p,size:S,resetSelectionOnOptionHover:v,readOnly:E,floatingHeight:T},children:y.jsx(vt,{opened:L.dropdownOpened,...N,middlewares:_,onChange:H=>!H&&D(),withRoles:!1,unstyled:s,children:u})})},FA=n=>n;Ie.extend=FA;Ie.classes=kt;Ie.varsResolver=Z1;Ie.displayName="@mantine/core/Combobox";Ie.Target=X1;Ie.Dropdown=op;Ie.Options=dp;Ie.Option=fp;Ie.Search=mp;Ie.Empty=rp;Ie.Chevron=Nc;Ie.Footer=sp;Ie.Header=up;Ie.EventsTarget=V1;Ie.DropdownTarget=q1;Ie.Group=cp;Ie.ClearButton=Y1;Ie.HiddenInput=G1;function Q1({size:n,style:l,...r}){return y.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n!==void 0?{width:K(n),height:K(n),...l}:l,"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 ai(n){return"group"in n}function K1({options:n,search:l,limit:r}){const o=l.trim().toLowerCase(),s=[];for(let u=0;u<n.length;u+=1){const f=n[u];if(s.length===r)return s;ai(f)&&s.push({group:f.group,items:K1({options:f.items,search:l,limit:r-s.length})}),ai(f)||f.label.toLowerCase().includes(o)&&s.push(f)}return s}function JA(n){if(n.length===0)return!0;for(const l of n)if(!("group"in l)||l.items.length>0)return!1;return!0}function F1(n,l=new Set){if(Array.isArray(n))for(const r of n)if(ai(r))F1(r.items,l);else{if(typeof r.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(l.has(r.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${r.value}" was provided more than once`);l.add(r.value)}}function PA(n,l){return Array.isArray(n)?n.includes(l):n===l}function J1({data:n,withCheckIcon:l,withAlignedLabels:r,value:o,checkIconPosition:s,unstyled:u,renderOption:f}){if(!ai(n)){const p=PA(o,n.value),h=l&&(p?y.jsx(Q1,{className:kt.optionsDropdownCheckIcon}):r?y.jsx("div",{className:kt.optionsDropdownCheckPlaceholder}):null),S=y.jsxs(y.Fragment,{children:[s==="left"&&h,y.jsx("span",{children:n.label}),s==="right"&&h]});return y.jsx(Ie.Option,{value:n.value,disabled:n.disabled,className:gt({[kt.optionsDropdownOption]:!u}),"data-reverse":s==="right"||void 0,"data-checked":p||void 0,"aria-selected":p,active:p,children:typeof f=="function"?f({option:n,checked:p}):S})}const m=n.items.map(p=>y.jsx(J1,{data:p,value:o,unstyled:u,withCheckIcon:l,withAlignedLabels:r,checkIconPosition:s,renderOption:f},`${p.value}`));return y.jsx(Ie.Group,{label:n.group,children:m})}function WA({data:n,hidden:l,hiddenWhenEmpty:r,filter:o,search:s,limit:u,maxDropdownHeight:f,floatingHeight:m,withScrollArea:p=!0,filterOptions:h=!0,withCheckIcon:S=!1,withAlignedLabels:g=!1,value:v,checkIconPosition:w,nothingFoundMessage:E,unstyled:C,labelId:T,renderOption:A,scrollAreaProps:N,"aria-label":_}){const j=un();F1(n);const L=typeof s=="string"?(o||K1)({options:n,search:h?s:"",limit:u??1/0}):n,k=JA(L),D=L.map((H,te)=>y.jsx(J1,{data:H,withCheckIcon:S,withAlignedLabels:g,value:v,checkIconPosition:w,unstyled:C,renderOption:A},ai(H)?`group-${typeof H.group=="string"?H.group:te}`:`${H.value}`));return y.jsx(Ie.Dropdown,{hidden:l||r&&k,"data-composed":!0,children:y.jsxs(Ie.Options,{labelledBy:T,"aria-label":_,children:[p?y.jsx($n.Autosize,{mah:(m??j.floatingHeight)==="viewport"?"var(--combobox-floating-options-max-height)":f??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...N,children:D}):D,k&&E&&y.jsx(Ie.Empty,{children:E})]})})}var P1={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const W1=(n,{radius:l,color:r,gradient:o,variant:s,size:u,autoContrast:f,circle:m})=>{const p=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:o,variant:s||"filled",autoContrast:f});return{root:{"--badge-height":Je(u,"badge-height"),"--badge-padding-x":Je(u,"badge-padding-x"),"--badge-fz":Je(u,"badge-fz"),"--badge-radius":m||l===void 0?void 0:Ht(l),"--badge-bg":r||s?p.background:void 0,"--badge-color":r||s?p.color:void 0,"--badge-bd":r||s?p.border:void 0,"--badge-dot-color":s==="dot"?ha(r,n):void 0}}},Mc=Kt(n=>{const l=ue("Badge",null,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,radius:p,color:h,gradient:S,leftSection:g,rightSection:v,children:w,variant:E,fullWidth:C,autoContrast:T,circle:A,mod:N,attributes:_,...j}=l,L=je({name:"Badge",props:l,classes:P1,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:_,vars:m,varsResolver:W1});return y.jsxs(fe,{variant:E,mod:[{block:C,circle:A,"with-right-section":!!v,"with-left-section":!!g},N],...L("root",{variant:E}),...j,children:[g&&y.jsx("span",{...L("section"),"data-position":"left",children:g}),y.jsx("span",{...L("label"),children:w}),v&&y.jsx("span",{...L("section"),"data-position":"right",children:v})]})});Mc.classes=P1;Mc.varsResolver=W1;Mc.displayName="@mantine/core/Badge";var Wo={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const wb={orientation:"horizontal"},eS=(n,{borderWidth:l})=>({group:{"--button-border-width":K(l)}}),Oc=me(n=>{const l=ue("ButtonGroup",wb,n),{className:r,style:o,classNames:s,styles:u,unstyled:f,orientation:m,vars:p,borderWidth:h,mod:S,attributes:g,...v}=ue("ButtonGroup",wb,n);return y.jsx(fe,{...je({name:"ButtonGroup",props:l,classes:Wo,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:g,vars:p,varsResolver:eS,rootSelector:"group"})("group"),mod:[{"data-orientation":m},S],role:"group",...v})});Oc.classes=Wo;Oc.varsResolver=eS;Oc.displayName="@mantine/core/ButtonGroup";const tS=(n,{radius:l,color:r,gradient:o,variant:s,autoContrast:u,size:f})=>{const m=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:o,variant:s||"filled",autoContrast:u});return{groupSection:{"--section-height":Je(f,"section-height"),"--section-padding-x":Je(f,"section-padding-x"),"--section-fz":f!=null&&f.includes("compact")?Tt(f.replace("compact-","")):Tt(f),"--section-radius":l===void 0?void 0:Ht(l),"--section-bg":r||s?m.background:void 0,"--section-color":m.color,"--section-bd":r||s?m.border:void 0}}},jc=me(n=>{const l=ue("ButtonGroupSection",null,n),{className:r,style:o,classNames:s,styles:u,unstyled:f,vars:m,gradient:p,radius:h,autoContrast:S,attributes:g,...v}=l;return y.jsx(fe,{...je({name:"ButtonGroupSection",props:l,classes:Wo,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:g,vars:m,varsResolver:tS,rootSelector:"groupSection"})("groupSection"),...v})});jc.classes=Wo;jc.varsResolver=tS;jc.displayName="@mantine/core/ButtonGroupSection";const e3={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${K(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},nS=(n,{radius:l,color:r,gradient:o,variant:s,size:u,justify:f,autoContrast:m})=>{const p=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:o,variant:s||"filled",autoContrast:m});return{root:{"--button-justify":f,"--button-height":Je(u,"button-height"),"--button-padding-x":Je(u,"button-padding-x"),"--button-fz":u!=null&&u.includes("compact")?Tt(u.replace("compact-","")):Tt(u),"--button-radius":l===void 0?void 0:Ht(l),"--button-bg":r||s?p.background:void 0,"--button-hover":r||s?p.hover:void 0,"--button-color":p.color,"--button-bd":r||s?p.border:void 0,"--button-hover-color":r||s?p.hoverColor:void 0}}},Nl=Kt(n=>{const l=ue("Button",null,n),{style:r,vars:o,className:s,color:u,disabled:f,children:m,leftSection:p,rightSection:h,fullWidth:S,variant:g,radius:v,loading:w,loaderProps:E,gradient:C,classNames:T,styles:A,unstyled:N,"data-disabled":_,autoContrast:j,mod:L,attributes:k,...D}=l,H=je({name:"Button",props:l,classes:Wo,className:s,style:r,classNames:T,styles:A,unstyled:N,attributes:k,vars:o,varsResolver:nS}),te=!!p,le=!!h;return y.jsxs(zl,{...H("root",{active:!f&&!w&&!_}),unstyled:N,variant:g,disabled:f||w,mod:[{disabled:f||_,loading:w,block:S,"with-left-section":te,"with-right-section":le},L],...D,children:[typeof w=="boolean"&&y.jsx(_l,{mounted:w,transition:e3,duration:150,children:oe=>y.jsx(fe,{component:"span",...H("loader",{style:oe}),"aria-hidden":!0,children:y.jsx(Qa,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...E})})}),y.jsxs("span",{...H("inner"),children:[p&&y.jsx(fe,{component:"span",...H("section"),mod:{position:"left"},children:p}),y.jsx(fe,{component:"span",mod:{loading:w},...H("label"),children:m}),h&&y.jsx(fe,{component:"span",...H("section"),mod:{position:"right"},children:h})]})]})});Nl.classes=Wo;Nl.varsResolver=nS;Nl.displayName="@mantine/core/Button";Nl.Group=Oc;Nl.GroupSection=jc;function t3(n){const l=n.currentTarget;return Kn(l).activeElement!==l}var lS={root:"m_7485cace"};const n3={strategy:"block"},aS=(n,{size:l,fluid:r})=>({root:{"--container-size":r?void 0:Je(l,"container-size")}}),oi=me(n=>{const l=ue("Container",n3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,fluid:p,mod:h,attributes:S,strategy:g,...v}=l,w=je({name:"Container",classes:lS,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:S,vars:m,varsResolver:aS});return y.jsx(fe,{mod:[{fluid:p,strategy:g},h],...w("root"),...v})});oi.classes=lS;oi.varsResolver=aS;oi.displayName="@mantine/core/Container";var oS={root:"m_3eebeb36",label:"m_9e365f20"};const l3={orientation:"horizontal"},rS=(n,{color:l,variant:r,size:o})=>({root:{"--divider-color":l?ha(l,n):void 0,"--divider-border-style":r,"--divider-size":Je(o,"divider-size")}}),zc=me(n=>{const l=ue("Divider",l3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,color:p,orientation:h,label:S,labelPosition:g,mod:v,attributes:w,...E}=l,C=je({name:"Divider",classes:oS,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:w,vars:m,varsResolver:rS});return y.jsx(fe,{mod:[{orientation:h,withLabel:!!S},v],role:"separator",...C("root"),...E,children:S&&y.jsx(fe,{component:"span",mod:{position:g},...C("label"),children:S})})});zc.classes=oS;zc.varsResolver=rS;zc.displayName="@mantine/core/Divider";const[a3,er]=Ml("Drawer component was not found in tree");var $l={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const Dc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("DrawerBody",null,n);return y.jsx(Im,{...er().getStyles("body",{classNames:l,style:o,styles:s,className:r}),...f})});Dc.classes=$l;Dc.displayName="@mantine/core/DrawerBody";const $c=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("DrawerCloseButton",null,n);return y.jsx(Zm,{...er().getStyles("close",{classNames:l,style:o,styles:s,className:r}),...f})});$c.classes=$l;$c.displayName="@mantine/core/DrawerCloseButton";const Lc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,children:f,radius:m,__hidden:p,...h}=ue("DrawerContent",null,n),S=er(),g=S.scrollAreaComponent||S1;return y.jsx(Qm,{...S.getStyles("content",{className:r,style:o,styles:s,classNames:l}),innerProps:S.getStyles("inner",{className:r,style:o,styles:s,classNames:l}),...h,radius:m||S.radius||0,"data-hidden":p||void 0,children:y.jsx(g,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:f})})});Lc.classes=$l;Lc.displayName="@mantine/core/DrawerContent";const Bc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("DrawerHeader",null,n);return y.jsx(Km,{...er().getStyles("header",{classNames:l,style:o,styles:s,className:r}),...f})});Bc.classes=$l;Bc.displayName="@mantine/core/DrawerHeader";const kc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("DrawerOverlay",null,n);return y.jsx(Fm,{...er().getStyles("overlay",{classNames:l,style:o,styles:s,className:r}),...f})});kc.classes=$l;kc.displayName="@mantine/core/DrawerOverlay";function o3(n){switch(n){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function r3(n){if(n==="top"||n==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const i3={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},s3={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},c3={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Qt("modal"),position:"left"},iS=(n,{position:l,size:r,offset:o})=>({root:{"--drawer-size":Je(r,"drawer-size"),"--drawer-flex":r3(l),"--drawer-height":l==="left"||l==="right"?void 0:"var(--drawer-size)","--drawer-align":o3(l),"--drawer-justify":l==="right"?"flex-end":void 0,"--drawer-offset":K(o)}}),yi=me(n=>{const l=ue("DrawerRoot",c3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,scrollAreaComponent:p,position:h,transitionProps:S,radius:g,attributes:v,...w}=l,{dir:E}=ol(),C=je({name:"Drawer",classes:$l,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:v,vars:m,varsResolver:iS}),T=(E==="rtl"?s3:i3)[h];return y.jsx(a3,{value:{scrollAreaComponent:p,getStyles:C,radius:g},children:y.jsx(Xm,{...C("root"),transitionProps:{transition:T,...S},"data-offset-scrollbars":p===$n.Autosize||void 0,unstyled:f,...w})})});yi.classes=$l;yi.varsResolver=iS;yi.displayName="@mantine/core/DrawerRoot";const sS=x.createContext(null);function cS({children:n}){const[l,r]=x.useState([]),[o,s]=x.useState(Qt("modal"));return y.jsx(sS,{value:{stack:l,addModal:(u,f)=>{r(m=>[...new Set([...m,u])]),s(m=>typeof f=="number"&&typeof m=="number"?Math.max(m,f):m)},removeModal:u=>r(f=>f.filter(m=>m!==u)),getZIndex:u=>`calc(${o} + ${l.indexOf(u)} + 1)`,currentId:l[l.length-1],maxZIndex:o},children:n})}cS.displayName="@mantine/core/DrawerStack";const Hc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("DrawerTitle",null,n);return y.jsx(Jm,{...er().getStyles("title",{classNames:l,style:o,styles:s,className:r}),...f})});Hc.classes=$l;Hc.displayName="@mantine/core/DrawerTitle";const u3={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Qt("modal"),withOverlay:!0,withCloseButton:!0},Un=me(n=>{const{title:l,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:u,children:f,opened:m,stackId:p,zIndex:h,...S}=ue("Drawer",u3,n),g=x.use(sS),v=!!l||s,w=g&&p?{closeOnEscape:g.currentId===p,trapFocus:g.currentId===p,zIndex:g.getZIndex(p)}:{},E=r===!1?!1:p&&g?g.currentId===p:m;return x.useEffect(()=>{g&&p&&(m?g.addModal(p,h||Qt("modal")):g.removeModal(p))},[m,p,h]),y.jsxs(yi,{opened:m,zIndex:g&&p?g.getZIndex(p):h,...S,...w,children:[r&&y.jsx(kc,{visible:E,transitionProps:g&&p?{duration:0}:void 0,...o}),y.jsxs(Lc,{__hidden:g&&p&&m?p!==g.currentId:!1,children:[v&&y.jsxs(Bc,{children:[l&&y.jsx(Hc,{children:l}),s&&y.jsx($c,{...u})]}),y.jsx(Dc,{children:f})]})]})});Un.classes=$l;Un.displayName="@mantine/core/Drawer";Un.Root=yi;Un.Overlay=kc;Un.Content=Lc;Un.Body=Dc;Un.Header=Bc;Un.Title=Hc;Un.CloseButton=$c;Un.Stack=cS;const[f3,Jt]=Ml("Menu component was not found in the tree"),uS=x.createContext(null);function fS(n){const{value:l,defaultValue:r,onChange:o,children:s}=ue("MenuCheckboxGroup",null,n),[u,f]=tl({value:l,defaultValue:r,finalValue:[],onChange:o});return y.jsx(uS,{value:{values:u,onChange:x.useCallback(m=>{f(u.includes(m)?u.filter(p=>p!==m):[...u,m])},[u,f])},children:s})}fS.displayName="@mantine/core/MenuCheckboxGroup";const Zo=x.createContext(null);function dS({role:n,checked:l,indicator:r,onSelect:o,color:s,closeMenuOnClick:u,rightSection:f,children:m,disabled:p,dataDisabled:h,className:S,style:g,styles:v,classNames:w,buttonRef:E,others:C}){const T=Jt(),A=x.use(Zo),N=cn(),{dir:_}=ol(),j=x.useRef(null),L=at(C.onClick,()=>{h||(o(),u&&T.closeDropdownImmediately())}),k=at(C.onMouseMove,()=>{var ee;if(!T.hasSearch)return;const oe=(ee=j.current)==null?void 0:ee.closest("[data-menu-dropdown]");oe&&oe.querySelectorAll("[data-menu-active]").forEach(F=>{F!==j.current&&F.closest("[data-menu-dropdown]")===oe&&F.removeAttribute("data-menu-active")})}),D=at(C.onKeyDown,oe=>{oe.key==="ArrowLeft"&&A&&(A.close(),A.focusParentItem())}),H=s?N.variantColorResolver({color:s,theme:N,variant:"light"}):void 0,te=s?ya({color:s,theme:N}):null,le=T.alignItemsLabels!=="none"||l;return y.jsxs(zl,{onMouseDown:oe=>oe.preventDefault(),...C,unstyled:T.unstyled,tabIndex:T.menuItemTabIndex,...T.getStyles("item",{className:S,style:g,styles:v,classNames:w}),ref:it(j,E),role:n,"aria-checked":l,disabled:p,"data-menu-item":!0,"data-checked":l||void 0,"data-disabled":p||h||void 0,"data-mantine-stop-propagation":!0,onClick:L,onMouseMove:k,onKeyDown:fm({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:T.loop,dir:_,orientation:"vertical",onKeyDown:D}),__vars:{"--menu-item-color":te!=null&&te.isThemeColor&&(te==null?void 0:te.shade)===void 0?`var(--mantine-color-${te.color}-6)`:H==null?void 0:H.color,"--menu-item-hover":H==null?void 0:H.hover},children:[le&&y.jsx("div",{...T.getStyles("itemIndicator",{styles:v,classNames:w}),"data-checked":l||void 0,children:l?r:null}),m&&y.jsx("div",{...T.getStyles("itemLabel",{styles:v,classNames:w}),"data-menu-item-label":!0,children:m}),f&&y.jsx("div",{...T.getStyles("itemSection",{styles:v,classNames:w}),"data-position":"right",children:f})]})}var Yn={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",search:"m_ef8769b6",itemLabel:"m_5476e0d3",itemIndicator:"m_8395186e",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const pp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,color:f,closeMenuOnClick:m,rightSection:p,children:h,disabled:S,"data-disabled":g,value:v,checked:w,defaultChecked:E,onChange:C,checkIcon:T,ref:A,...N}=ue("MenuCheckboxItem",null,n),_=Jt(),j=x.use(uS),L=j&&v!==void 0?j.values.includes(v):void 0,[k,D]=tl({value:w??L,defaultValue:E,finalValue:!1,onChange:C});return y.jsx(dS,{role:"menuitemcheckbox",checked:k,indicator:T??_.checkIcon??y.jsx(Q1,{size:10}),onSelect:()=>{C?D(!k):j&&v!==void 0?j.onChange(v):D(!k)},color:f,closeMenuOnClick:m,rightSection:p,disabled:S,dataDisabled:g,className:r,style:o,styles:s,classNames:l,buttonRef:A,others:N,children:h})});pp.classes=Yn;pp.displayName="@mantine/core/MenuCheckboxItem";function mS(n){const{children:l,disabled:r,longPressDelay:o}=ue("MenuContextMenu",null,n),s=Ol(l);if(!s)throw new Error("Menu.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=Jt(),f=Sc();return x.cloneElement(s,Q0({childProps:s.props,disabled:r||f.disabled,opened:u.opened,longPressDelay:o,setReference:f.reference,open:()=>u.openDropdown()}))}mS.displayName="@mantine/core/MenuContextMenu";const hp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("MenuDivider",null,n);return y.jsx(fe,{...Jt().getStyles("divider",{className:r,style:o,styles:s,classNames:l}),...f})});hp.classes=Yn;hp.displayName="@mantine/core/MenuDivider";const d3=500;function Cb(n){return((n.querySelector("[data-menu-item-label]")??n).textContent??"").trim().toLowerCase()}function m3(n){return n.length>1&&n.split("").every(l=>l===n[0])}function pS({enabled:n,opened:l,getDropdown:r}){const o=x.useRef({buffer:"",timeoutId:null});return x.useEffect(()=>{if(l&&n)return;const s=o.current;s.timeoutId!==null&&(window.clearTimeout(s.timeoutId),s.timeoutId=null),s.buffer=""},[l,n]),x.useEffect(()=>()=>{const{timeoutId:s}=o.current;s!==null&&window.clearTimeout(s)},[]),s=>{if(!n||s.defaultPrevented||s.ctrlKey||s.metaKey||s.altKey||s.key.length!==1||s.key===" ")return;const u=s.target;if(u&&(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||u.tagName==="SELECT"||u.isContentEditable))return;const f=r();if(!f)return;const m=Array.from(f.querySelectorAll("[data-menu-item]:not([data-disabled])")).filter(v=>v.closest("[data-menu-dropdown]")===f);if(m.length===0)return;const p=o.current;p.buffer=(p.buffer+s.key).toLowerCase(),p.timeoutId!==null&&window.clearTimeout(p.timeoutId),p.timeoutId=window.setTimeout(()=>{p.buffer="",p.timeoutId=null},d3);const h=document.activeElement,S=h?m.indexOf(h):-1;let g=null;if(p.buffer.length===1||m3(p.buffer)){const v=p.buffer[0],w=S+1;for(let E=0;E<m.length;E+=1){const C=(w+E)%m.length;if(Cb(m[C]).startsWith(v)){g=m[C];break}}}else for(let v=0;v<m.length;v+=1)if(Cb(m[v]).startsWith(p.buffer)){g=m[v];break}g&&(s.preventDefault(),g.focus())}}const vp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,onMouseEnter:f,onMouseLeave:m,onKeyDown:p,children:h,ref:S,...g}=ue("MenuDropdown",null,n),v=x.useRef(null),w=Jt(),E=pS({enabled:!w.hasSearch,opened:w.opened,getDropdown:()=>v.current}),C=at(p,N=>{var _,j;E(N),!(N.defaultPrevented||w.hasSearch)&&(N.key==="ArrowUp"||N.key==="ArrowDown")&&(N.preventDefault(),(j=(_=v.current)==null?void 0:_.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||j.focus())}),T=at(f,()=>(w.trigger==="hover"||w.trigger==="click-hover")&&w.openDropdown()),A=at(m,()=>(w.trigger==="hover"||w.trigger==="click-hover")&&w.closeDropdown());return y.jsxs(vt.Dropdown,{...g,onMouseEnter:T,onMouseLeave:A,role:"menu","aria-orientation":"vertical",ref:it(S,v),...w.getStyles("dropdown",{className:r,style:o,styles:s,classNames:l,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:C,children:[w.withInitialFocusPlaceholder&&!w.hasSearch&&y.jsx("div",{role:"presentation",tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),h]})});vp.classes=Yn;vp.displayName="@mantine/core/MenuDropdown";const gp=Kt(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,color:f,closeMenuOnClick:m,leftSection:p,rightSection:h,children:S,disabled:g,"data-disabled":v,ref:w,...E}=ue("MenuItem",null,n),C=Jt(),T=x.use(Zo),A=cn(),{dir:N}=ol(),_=x.useRef(null),j=E,L=at(j.onClick,()=>{v||(typeof m=="boolean"?m&&C.closeDropdownImmediately():C.closeOnItemClick&&C.closeDropdownImmediately())}),k=at(j.onMouseMove,()=>{var oe;if(!C.hasSearch)return;const le=(oe=_.current)==null?void 0:oe.closest("[data-menu-dropdown]");le&&le.querySelectorAll("[data-menu-active]").forEach(ee=>{ee!==_.current&&ee.closest("[data-menu-dropdown]")===le&&ee.removeAttribute("data-menu-active")})}),D=f?A.variantColorResolver({color:f,theme:A,variant:"light"}):void 0,H=f?ya({color:f,theme:A}):null,te=at(j.onKeyDown,le=>{le.key==="ArrowLeft"&&T&&(T.close(),T.focusParentItem())});return y.jsxs(zl,{onMouseDown:le=>le.preventDefault(),...E,unstyled:C.unstyled,tabIndex:C.menuItemTabIndex,...C.getStyles("item",{className:r,style:o,styles:s,classNames:l}),ref:it(_,w),role:"menuitem",disabled:g,"data-menu-item":!0,"data-disabled":g||v||void 0,"data-mantine-stop-propagation":!0,onClick:L,onMouseMove:k,onKeyDown:fm({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:C.loop,dir:N,orientation:"vertical",onKeyDown:te}),__vars:{"--menu-item-color":H!=null&&H.isThemeColor&&(H==null?void 0:H.shade)===void 0?`var(--mantine-color-${H.color}-6)`:D==null?void 0:D.color,"--menu-item-hover":D==null?void 0:D.hover},children:[C.alignItemsLabels==="all"&&y.jsx("div",{...C.getStyles("itemIndicator",{styles:s,classNames:l}),"data-placeholder":!0}),p&&y.jsx("div",{...C.getStyles("itemSection",{styles:s,classNames:l}),"data-position":"left",children:p}),S&&y.jsx("div",{...C.getStyles("itemLabel",{styles:s,classNames:l}),"data-menu-item-label":!0,children:S}),h&&y.jsx("div",{...C.getStyles("itemSection",{styles:s,classNames:l}),"data-position":"right",children:h})]})});gp.classes=Yn;gp.displayName="@mantine/core/MenuItem";const yp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("MenuLabel",null,n);return y.jsx(fe,{...Jt().getStyles("label",{className:r,style:o,styles:s,classNames:l}),...f})});yp.classes=Yn;yp.displayName="@mantine/core/MenuLabel";const hS=x.createContext(null);function vS(n){const{value:l,defaultValue:r,onChange:o,children:s}=ue("MenuRadioGroup",null,n),[u,f]=tl({value:l,defaultValue:r,finalValue:null,onChange:o});return y.jsx(hS,{value:{value:u,onChange:m=>f(m)},children:s})}vS.displayName="@mantine/core/MenuRadioGroup";function p3({size:n,style:l,...r}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:{width:K(n),height:K(n),...l},"aria-hidden":!0,...r,children:y.jsx("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"currentColor"})})}const bp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,color:f,closeMenuOnClick:m,rightSection:p,children:h,disabled:S,"data-disabled":g,value:v,checked:w,onChange:E,checkIcon:C,ref:T,...A}=ue("MenuRadioItem",null,n),N=Jt(),_=x.use(hS),j=w??(_?_.value===v:!1);return y.jsx(dS,{role:"menuitemradio",checked:j,indicator:C??N.checkIcon??y.jsx(p3,{size:5}),onSelect:()=>{j||(E?E(v):_&&_.onChange(v))},color:f,closeMenuOnClick:m,rightSection:p,disabled:S,dataDisabled:g,className:r,style:o,styles:s,classNames:l,buttonRef:T,others:A,children:h})});bp.classes=Yn;bp.displayName="@mantine/core/MenuRadioItem";const h3="[data-menu-item]:not([data-disabled])",v3="[data-menu-active]";function Bd(n){return n==null?void 0:n.closest("[data-menu-dropdown]")}function g3(n){return n?Array.from(n.querySelectorAll(h3)).filter(l=>l.closest("[data-menu-dropdown]")===n):[]}function lm(n){n&&n.querySelectorAll(v3).forEach(l=>{l.closest("[data-menu-dropdown]")===n&&l.removeAttribute("data-menu-active")})}function Ys(n,l){lm(l),n&&(n.setAttribute("data-menu-active","true"),n.scrollIntoView({block:"nearest"}))}function kd(n){return n.findIndex(l=>l.hasAttribute("data-menu-active"))}const y3={clearSearchOnClose:!0},Sp=me(n=>{const{classNames:l,styles:r,onKeyDown:o,onChange:s,size:u,clearSearchOnClose:f,ref:m,...p}=ue("MenuSearch",y3,n),h=Jt(),S=x.useRef(null),g=it(m,S),v=x.useRef(s);v.current=s,x.useEffect(()=>h.registerSearch(),[h.registerSearch]),x.useEffect(()=>{f?h.searchExitClearRef.current=()=>{var T;(T=v.current)==null||T.call(v,{currentTarget:{value:""}})}:h.searchExitClearRef.current=null},[f,h.searchExitClearRef]),x.useEffect(()=>{h.opened||lm(Bd(S.current))},[h.opened]);const w=at(s,T=>{lm(Bd(T.currentTarget))}),E=at(o,T=>{if(T.defaultPrevented)return;const A=Bd(T.currentTarget),N=g3(A);if(T.key==="ArrowDown"){if(T.preventDefault(),N.length===0)return;const _=kd(N);Ys(N[_>=N.length-1?h.loop?0:_:_+1]??null,A)}else if(T.key==="ArrowUp"){if(T.preventDefault(),N.length===0)return;const _=kd(N);Ys(N[_<=0?_===-1||h.loop?N.length-1:0:_-1]??null,A)}else if(T.key==="Home")T.preventDefault(),N.length>0&&Ys(N[0],A);else if(T.key==="End")T.preventDefault(),N.length>0&&Ys(N[N.length-1],A);else if(T.key==="Enter"){if(T.nativeEvent.isComposing||T.nativeEvent.keyCode===229)return;const _=N[kd(N)];_&&(T.preventDefault(),_.hasAttribute("data-sub-menu-item")?(_.focus(),_.dispatchEvent(new KeyboardEvent("keydown",{key:"ArrowRight",bubbles:!0}))):_.click())}}),C=h.getStyles("search");return y.jsx(Ot,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:"search",size:u,...p,ref:g,classNames:[{input:C.className},l],styles:[{input:C.style},r],onKeyDown:E,onChange:w,__staticSelector:"Menu"})});Sp.classes=Yn;Sp.displayName="@mantine/core/MenuSearch";const xp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,onMouseEnter:f,onMouseLeave:m,onPointerEnter:p,onPointerLeave:h,onKeyDown:S,children:g,ref:v,...w}=ue("MenuSubDropdown",null,n),E=x.useRef(null),C=Jt(),T=x.use(Zo),A=pS({enabled:!C.hasSearch,opened:(T==null?void 0:T.opened)??!1,getDropdown:()=>E.current}),N=at(S,j=>{A(j),!j.ctrlKey&&!j.metaKey&&!j.altKey&&j.key.length===1&&j.key!==" "&&j.stopPropagation()}),_=T==null?void 0:T.getFloatingProps({onMouseEnter:f,onMouseLeave:m,onPointerEnter:p,onPointerLeave:h});return y.jsx(vt.Dropdown,{...w,..._,role:"menu","aria-orientation":"vertical",ref:it(v,E,T==null?void 0:T.setFloating),...C.getStyles("dropdown",{className:r,style:o,styles:s,classNames:l,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:N,children:g})});xp.classes=Yn;xp.displayName="@mantine/core/MenuSubDropdown";const wp=Kt(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,color:f,leftSection:m,rightSection:p,children:h,disabled:S,"data-disabled":g,closeMenuOnClick:v,ref:w,...E}=ue("MenuSubItem",null,n),C=Jt(),T=x.use(Zo),A=cn(),{dir:N}=ol(),_=x.useRef(null),j=E,L=f?A.variantColorResolver({color:f,theme:A,variant:"light"}):void 0,k=f?ya({color:f,theme:A}):null,D=at(j.onKeyDown,oe=>{oe.key==="ArrowRight"&&(T==null||T.open(),T==null||T.focusFirstItem()),oe.key==="ArrowLeft"&&(T!=null&&T.parentContext)&&(T.parentContext.close(),T.parentContext.focusParentItem())}),H=at(j.onClick,()=>{!g&&v&&C.closeDropdownImmediately()}),te=at(j.onMouseMove,()=>{var ee;if(!C.hasSearch)return;const oe=(ee=_.current)==null?void 0:ee.closest("[data-menu-dropdown]");oe&&oe.querySelectorAll("[data-menu-active]").forEach(F=>{F!==_.current&&F.closest("[data-menu-dropdown]")===oe&&F.removeAttribute("data-menu-active")})}),le=T==null?void 0:T.getReferenceProps({onMouseEnter:j.onMouseEnter,onMouseLeave:j.onMouseLeave,onPointerEnter:j.onPointerEnter,onPointerLeave:j.onPointerLeave});return y.jsxs(zl,{onMouseDown:oe=>oe.preventDefault(),...E,...le,unstyled:C.unstyled,tabIndex:C.menuItemTabIndex,...C.getStyles("item",{className:r,style:o,styles:s,classNames:l}),ref:it(_,w,T==null?void 0:T.setReference),role:"menuitem",disabled:S,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":S||g||void 0,"data-mantine-stop-propagation":!0,onClick:H,onMouseMove:te,onKeyDown:fm({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:C.loop,dir:N,orientation:"vertical",onKeyDown:D}),__vars:{"--menu-item-color":k!=null&&k.isThemeColor&&(k==null?void 0:k.shade)===void 0?`var(--mantine-color-${k.color}-6)`:L==null?void 0:L.color,"--menu-item-hover":L==null?void 0:L.hover},children:[C.alignItemsLabels==="all"&&y.jsx("div",{...C.getStyles("itemIndicator",{styles:s,classNames:l}),"data-placeholder":!0}),m&&y.jsx("div",{...C.getStyles("itemSection",{styles:s,classNames:l}),"data-position":"left",children:m}),h&&y.jsx("div",{...C.getStyles("itemLabel",{styles:s,classNames:l}),"data-menu-item-label":!0,children:h}),y.jsx("div",{...C.getStyles("itemSection",{styles:s,classNames:l}),"data-position":"right",children:p||y.jsx(O1,{...C.getStyles("chevron"),size:14})})]})});wp.classes=Yn;wp.displayName="@mantine/core/MenuSubItem";function gS({children:n,refProp:l}){if(!um(n))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return Jt(),y.jsx(vt.Target,{refProp:l,popupType:"menu",children:n})}gS.displayName="@mantine/core/MenuSubTarget";const b3={offset:0,position:"right-start",safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function tr(n){const{children:l,closeDelay:r,openDelay:o,position:s,safeAreaPolygon:u,opened:f,onChange:m,...p}=ue("MenuSub",b3,n),h=kn(),[S,g]=tl({value:f,finalValue:!1,onChange:m}),v=x.use(Zo),w=Jt(),{dir:E}=ol(),C=qm(E,s),T=(v==null?void 0:v.registerOpenSub)??w.registerOpenSub,A=x.useRef(null),N=x.useCallback(ee=>{const F=A.current;return F&&F!==ee&&F(),A.current=ee,()=>{A.current===ee&&(A.current=null)}},[]),_=x.useRef(g);_.current=g;const j=x.useCallback(()=>_.current(!0),[]),L=x.useCallback(()=>_.current(!1),[]);x.useEffect(()=>{if(S)return T(L)},[S,T,L]);const{context:k,refs:D}=bc({placement:C,open:S,onOpenChange:ee=>{ee?j():L()}}),{getReferenceProps:H,getFloatingProps:te}=L0([D0(k,{handleClose:u?k0(typeof u=="object"?u:void 0):void 0,delay:{open:o,close:r}})]),le=()=>window.setTimeout(()=>{var ee,F;(F=(ee=document.getElementById(`${h}-dropdown`))==null?void 0:ee.querySelectorAll("[data-menu-item]:not([data-disabled])")[0])==null||F.focus()},16),oe=()=>window.setTimeout(()=>{var ee;(ee=document.getElementById(`${h}-target`))==null||ee.focus()},16);return y.jsx(Zo,{value:{opened:S,close:L,open:j,focusFirstItem:le,focusParentItem:oe,parentContext:v,setReference:D.setReference,setFloating:D.setFloating,getReferenceProps:H,getFloatingProps:te,registerOpenSub:N},children:y.jsx(vt,{opened:S,onChange:ee=>ee?j():L(),withinPortal:!1,withArrow:!1,id:h,position:s,...p,children:l})})}tr.extend=n=>n;tr.displayName="@mantine/core/MenuSub";tr.Target=gS;tr.Dropdown=xp;tr.Item=wp;const S3={refProp:"ref"};function yS(n){const{children:l,refProp:r,...o}=ue("MenuTarget",S3,n),s=Ol(l);if(!s)throw new Error("Menu.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=Jt(),f=s.props,m=at(f.onClick,()=>{u.trigger==="click"?u.toggleDropdown():u.trigger==="click-hover"&&(u.setOpenedViaClick(!0),u.opened||u.openDropdown())}),p=at(f.onMouseEnter,()=>(u.trigger==="hover"||u.trigger==="click-hover")&&u.openDropdown()),h=at(f.onMouseLeave,()=>{(u.trigger==="hover"||u.trigger==="click-hover"&&!u.openedViaClick)&&u.closeDropdown()});return y.jsx(vt.Target,{refProp:r,popupType:"menu",...o,children:x.cloneElement(s,{onClick:m,onMouseEnter:p,onMouseLeave:h,"data-expanded":u.opened?!0:void 0})})}yS.displayName="@mantine/core/MenuTarget";const x3={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:"with-indicators"},ht=me(n=>{const l=ue("Menu",x3,n),{children:r,onOpen:o,onClose:s,opened:u,defaultOpened:f,trapFocus:m,onChange:p,closeOnItemClick:h,loop:S,closeOnEscape:g,trigger:v,openDelay:w,closeDelay:E,classNames:C,styles:T,unstyled:A,variant:N,vars:_,menuItemTabIndex:j,keepMounted:L,withInitialFocusPlaceholder:k,attributes:D,onExitTransitionEnd:H,alignItemsLabels:te,checkIcon:le,...oe}=l,ee=je({name:"Menu",classes:Yn,props:l,classNames:C,styles:T,unstyled:A,attributes:D}),[F,V]=tl({value:u,defaultValue:f,finalValue:!1,onChange:p}),[ce,O]=x.useState(!1),B=()=>{V(!1),O(!1),F&&(s==null||s())},U=()=>{V(!0),!F&&(o==null||o())},Z=()=>{F?B():U()},{openDropdown:P,closeDropdown:M}=uE({open:U,close:B,closeDelay:E,openDelay:w}),Y=x.useRef(null),J=x.useCallback(ie=>{const ye=Y.current;return ye&&ye!==ie&&ye(),Y.current=ie,()=>{Y.current===ie&&(Y.current=null)}},[]),ae=x.useRef(0),[se,de]=x.useState(!1),ge=x.useCallback(()=>(ae.current+=1,ae.current===1&&de(!0),()=>{ae.current-=1,ae.current===0&&de(!1)}),[]),pe=x.useRef(null),he=()=>{var ie;(ie=pe.current)==null||ie.call(pe),H==null||H()},Me=ie=>A2("[data-menu-item]","[data-menu-dropdown]",ie),{resolvedClassNames:Se,resolvedStyles:Ce}=uc({classNames:C,styles:T,props:l});return y.jsx(f3,{value:{getStyles:ee,opened:F,toggleDropdown:Z,getItemIndex:Me,openedViaClick:ce,setOpenedViaClick:O,closeOnItemClick:h,closeDropdown:v==="click"?B:M,openDropdown:v==="click"?U:P,closeDropdownImmediately:B,loop:S,trigger:v,unstyled:A,menuItemTabIndex:j,withInitialFocusPlaceholder:k,registerOpenSub:J,hasSearch:se,registerSearch:ge,searchExitClearRef:pe,alignItemsLabels:te,checkIcon:le},children:y.jsx(vt,{returnFocus:!0,...oe,opened:F,onChange:Z,defaultOpened:f,trapFocus:L?!1:m,closeOnEscape:g,__staticSelector:"Menu",classNames:Se,styles:Ce,unstyled:A,variant:N,keepMounted:L,onExitTransitionEnd:he,children:r})})});ht.displayName="@mantine/core/Menu";ht.classes=Yn;ht.Item=gp;ht.Label=yp;ht.Dropdown=vp;ht.Target=yS;ht.Divider=hp;ht.Search=Sp;ht.Sub=tr;ht.CheckboxItem=pp;ht.CheckboxGroup=fS;ht.RadioItem=bp;ht.RadioGroup=vS;ht.ContextMenu=mS;const[w3,nr]=Ml("Modal component was not found in tree");var Ll={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const Uc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ModalBody",null,n);return y.jsx(Im,{...nr().getStyles("body",{classNames:l,style:o,styles:s,className:r}),...f})});Uc.classes=Ll;Uc.displayName="@mantine/core/ModalBody";const Yc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ModalCloseButton",null,n);return y.jsx(Zm,{...nr().getStyles("close",{classNames:l,style:o,styles:s,className:r}),...f})});Yc.classes=Ll;Yc.displayName="@mantine/core/ModalCloseButton";const qc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,children:f,__hidden:m,...p}=ue("ModalContent",null,n),h=nr(),S=h.scrollAreaComponent||S1;return y.jsx(Qm,{...h.getStyles("content",{className:r,style:o,styles:s,classNames:l}),innerProps:h.getStyles("inner",{className:r,style:o,styles:s,classNames:l}),"data-full-screen":h.fullScreen||void 0,"data-modal-content":!0,"data-hidden":m||void 0,...p,children:y.jsx(S,{style:{maxHeight:h.fullScreen?"100dvh":`calc(100dvh - (${K(h.yOffset)} * 2))`},children:f})})});qc.classes=Ll;qc.displayName="@mantine/core/ModalContent";const Vc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ModalHeader",null,n);return y.jsx(Km,{...nr().getStyles("header",{classNames:l,style:o,styles:s,className:r}),...f})});Vc.classes=Ll;Vc.displayName="@mantine/core/ModalHeader";const Gc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ModalOverlay",null,n);return y.jsx(Fm,{...nr().getStyles("overlay",{classNames:l,style:o,styles:s,className:r}),...f})});Gc.classes=Ll;Gc.displayName="@mantine/core/ModalOverlay";const C3={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Qt("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},bS=(n,{radius:l,size:r,yOffset:o,xOffset:s})=>({root:{"--modal-radius":l===void 0?void 0:Ht(l),"--modal-size":Je(r,"modal-size"),"--modal-y-offset":K(o),"--modal-x-offset":K(s)}}),bi=me(n=>{const l=ue("ModalRoot",C3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,yOffset:p,scrollAreaComponent:h,radius:S,fullScreen:g,centered:v,xOffset:w,__staticSelector:E,attributes:C,...T}=l,A=je({name:E,classes:Ll,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:C,vars:m,varsResolver:bS});return y.jsx(w3,{value:{yOffset:p,scrollAreaComponent:h,getStyles:A,fullScreen:g},children:y.jsx(Xm,{...A("root"),"data-full-screen":g||void 0,"data-centered":v||void 0,"data-offset-scrollbars":h===$n.Autosize||void 0,unstyled:f,...T})})});bi.classes=Ll;bi.varsResolver=bS;bi.displayName="@mantine/core/ModalRoot";const SS=x.createContext(null);function xS({children:n}){const[l,r]=x.useState([]),[o,s]=x.useState(Qt("modal"));return y.jsx(SS,{value:{stack:l,addModal:(u,f)=>{r(m=>[...new Set([...m,u])]),s(m=>typeof f=="number"&&typeof m=="number"?Math.max(m,f):m)},removeModal:u=>r(f=>f.filter(m=>m!==u)),getZIndex:u=>`calc(${o} + ${l.indexOf(u)} + 1)`,currentId:l[l.length-1],maxZIndex:o},children:n})}xS.displayName="@mantine/core/ModalStack";const Xc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ModalTitle",null,n);return y.jsx(Jm,{...nr().getStyles("title",{classNames:l,style:o,styles:s,className:r}),...f})});Xc.classes=Ll;Xc.displayName="@mantine/core/ModalTitle";const T3={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Qt("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},qn=me(n=>{const{title:l,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:u,children:f,radius:m,opened:p,stackId:h,zIndex:S,...g}=ue("Modal",T3,n),v=x.use(SS),w=!!l||s,E=v&&h?{closeOnEscape:v.currentId===h,trapFocus:v.currentId===h,zIndex:v.getZIndex(h)}:{},C=r===!1?!1:h&&v?v.currentId===h:p;return x.useEffect(()=>{v&&h&&(p?v.addModal(h,S||Qt("modal")):v.removeModal(h))},[p,h,S]),y.jsxs(bi,{radius:m,opened:p,zIndex:v&&h?v.getZIndex(h):S,...g,...E,children:[r&&y.jsx(Gc,{visible:C,transitionProps:v&&h?{duration:0}:void 0,...o}),y.jsxs(qc,{radius:m,__hidden:v&&h&&p?h!==v.currentId:!1,children:[w&&y.jsxs(Vc,{children:[l&&y.jsx(Xc,{children:l}),s&&y.jsx(Yc,{...u})]}),y.jsx(Uc,{children:f})]})]})});qn.classes=Ll;qn.displayName="@mantine/core/Modal";qn.Root=bi;qn.Overlay=Gc;qn.Content=qc;qn.Body=Uc;qn.Header=Vc;qn.Title=Xc;qn.CloseButton=Yc;qn.Stack=xS;function R3(n,l){const r=l.trim().toLowerCase();if(r==="")return;const o=Object.values(n).filter(s=>!s.disabled&&s.label.trim().toLowerCase()===r);return o.length===1?o[0]:void 0}function E3({offset:n,position:l,defaultOpened:r}){const[o,s]=x.useState(r),u=x.useRef(null),{x:f,y:m,elements:p,refs:h,update:S,placement:g}=bc({placement:l,middleware:[Lm({crossAxis:!0,padding:5,rootBoundary:"document"})]}),v=g.includes("right")?n:l.includes("left")?n*-1:0,w=g.includes("bottom")?n:l.includes("top")?n*-1:0,E=x.useCallback(({clientX:C,clientY:T})=>{!Number.isFinite(C)||!Number.isFinite(T)||h.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:C,y:T,left:C+v,top:T+w,right:C,bottom:T}}})},[p.reference]);return x.useEffect(()=>{if(h.floating.current){const C=u.current;C.addEventListener("mousemove",E);const T=El(h.floating.current);return T.forEach(A=>{A.addEventListener("scroll",S)}),()=>{C.removeEventListener("mousemove",E),T.forEach(A=>{A.removeEventListener("scroll",S)})}}},[p.reference,h.floating.current,S,E,o]),{handleMouseMove:E,x:f,y:m,opened:o,setOpened:s,boundaryRef:u,floating:h.setFloating}}var Ic={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const A3={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Qt("popover")},wS=(n,{radius:l,color:r})=>({tooltip:{"--tooltip-radius":l===void 0?void 0:Ht(l),"--tooltip-bg":r?ha(r,n):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}),Zc=me(n=>{const l=ue("TooltipFloating",A3,n),{children:r,refProp:o,withinPortal:s,style:u,className:f,classNames:m,styles:p,unstyled:h,radius:S,color:g,label:v,offset:w,position:E,multiline:C,zIndex:T,disabled:A,defaultOpened:N,variant:_,vars:j,portalProps:L,attributes:k,ref:D,...H}=l,te=cn(),le=je({name:"TooltipFloating",props:l,classes:Ic,className:f,style:u,classNames:m,styles:p,unstyled:h,attributes:k,rootSelector:"tooltip",vars:j,varsResolver:wS}),{handleMouseMove:oe,x:ee,y:F,opened:V,boundaryRef:ce,floating:O,setOpened:B}=E3({offset:w,position:E,defaultOpened:N}),U=Ol(r);if(!U)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 Z=it(ce,sc(U),D),P=U.props,M=J=>{var ae;(ae=P.onMouseEnter)==null||ae.call(P,J),oe(J),B(!0)},Y=J=>{var ae;(ae=P.onMouseLeave)==null||ae.call(P,J),B(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(Xa,{...L,withinPortal:s,children:y.jsx(fe,{...H,...le("tooltip",{style:{...n0(u,te),zIndex:T,display:!A&&V?"block":"none",top:Number.isFinite(F)?Math.round(F):"",left:Number.isFinite(ee)?Math.round(ee):""}}),variant:_,ref:O,mod:{multiline:C},children:v})}),x.cloneElement(U,{...P,[o]:Z,onMouseEnter:M,onMouseLeave:Y})]})});Zc.classes=Ic;Zc.varsResolver=wS;Zc.displayName="@mantine/core/TooltipFloating";const CS=x.createContext({withinGroup:!1}),_3={openDelay:0,closeDelay:0};function Cp(n){const{openDelay:l,closeDelay:r,children:o}=ue("TooltipGroup",_3,n);return y.jsx(CS,{value:{withinGroup:!0},children:y.jsx(KR,{delay:{open:l,close:r},children:o})})}Cp.displayName="@mantine/core/TooltipGroup";Cp.extend=n=>n;function N3(n){if(n===void 0)return{shift:!0,flip:!0};const l={...n};return n.shift===void 0&&(l.shift=!0),n.flip===void 0&&(l.flip=!0),l}function M3(n){const l=N3(n.middlewares),r=[M0(n.offset)];return l.shift&&r.push(Lm(typeof l.shift=="boolean"?{padding:8}:{padding:8,...l.shift})),l.flip&&r.push(typeof l.flip=="boolean"?em():em(l.flip)),r.push(O0({element:n.arrowRef,padding:n.arrowOffset})),l.inline?r.push(typeof l.inline=="boolean"?ei():ei(l.inline)):n.inline&&r.push(ei()),r}function O3(n){var L,k,D;const[l,r]=x.useState(n.defaultOpened),o=typeof n.opened=="boolean"?n.opened:l,s=x.use(CS).withinGroup,u=kn(),f=x.useCallback(H=>{r(H),H&&T(u)},[u]),{x:m,y:p,context:h,refs:S,placement:g,middlewareData:{arrow:{x:v,y:w}={}}}=bc({strategy:n.strategy,placement:n.position,open:o,onOpenChange:f,middleware:M3(n),whileElementsMounted:Wd}),{delay:E,currentId:C,setCurrentId:T}=FR(h,{id:u}),{getReferenceProps:A,getFloatingProps:N}=L0([D0(h,{enabled:(L=n.events)==null?void 0:L.hover,delay:s?E:{open:n.openDelay,close:n.closeDelay},mouseOnly:!((k=n.events)!=null&&k.touch),handleClose:n.interactive?k0():null}),nE(h,{enabled:(D=n.events)==null?void 0:D.focus,visibleOnly:!0}),aE(h,{role:"tooltip"}),eE(h,{enabled:typeof n.opened>"u"})]),_=x.useRef(g);el(()=>{var H;_.current!==g&&(_.current=g,(H=n.onPositionChange)==null||H.call(n,g))},[g]);const j=o&&C&&C!==u;return{x:m,y:p,arrowX:v,arrowY:w,reference:S.setReference,floating:S.setFloating,getFloatingProps:N,getReferenceProps:A,isGroupPhase:j,opened:o,placement:g}}const j3={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Qt("popover"),middlewares:{flip:!0,shift:!0,inline:!1}},TS=(n,{radius:l,color:r,variant:o,autoContrast:s})=>{const u=n.variantColorResolver({theme:n,color:r||n.primaryColor,autoContrast:s,variant:o||"filled"});return{tooltip:{"--tooltip-radius":l===void 0?void 0:Ht(l),"--tooltip-bg":r?u.background:void 0,"--tooltip-color":r?u.color:void 0}}},Bl=me(n=>{const l=ue("Tooltip",j3,n),{children:r,position:o,refProp:s,label:u,openDelay:f,closeDelay:m,onPositionChange:p,opened:h,defaultOpened:S,withinPortal:g,radius:v,color:w,classNames:E,styles:C,unstyled:T,style:A,className:N,withArrow:_,arrowSize:j,arrowOffset:L,arrowRadius:k,arrowPosition:D,offset:H,transitionProps:te,multiline:le,events:oe,interactive:ee,zIndex:F,disabled:V,onClick:ce,onMouseEnter:O,onMouseLeave:B,inline:U,variant:Z,keepMounted:P,vars:M,portalProps:Y,mod:J,floatingStrategy:ae,middlewares:se,autoContrast:de,attributes:ge,target:pe,ref:he,...Me}=l,{dir:Se}=ol(),Ce=x.useRef(null),ie=O3({position:qm(Se,o),closeDelay:m,openDelay:f,onPositionChange:p,opened:h,defaultOpened:S,events:oe,interactive:ee,arrowRef:Ce,arrowOffset:L,offset:typeof H=="number"?H+(_?j/2:0):H,inline:U,strategy:ae,middlewares:se});x.useEffect(()=>{const zt=pe instanceof HTMLElement?pe:typeof pe=="string"?document.querySelector(pe):(pe==null?void 0:pe.current)||null;zt&&ie.reference(zt)},[pe,ie]);const ye=je({name:"Tooltip",props:l,classes:Ic,className:N,style:A,classNames:E,styles:C,unstyled:T,attributes:ge,rootSelector:"tooltip",vars:M,varsResolver:TS}),Ne=Ol(r);if(!pe&&!Ne)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 Te=ye("tooltip"),Ve=ee&&!V&&!!ie.opened,ut=D==="merge"&&_?X0({position:ie.placement,dir:Se}):void 0;if(pe){const zt=vb(te,{duration:100,transition:"fade"});return y.jsx(y.Fragment,{children:y.jsx(Xa,{...Y,withinPortal:g,children:y.jsx(_l,{...zt,keepMounted:P,mounted:!V&&!!ie.opened,duration:ie.isGroupPhase?10:zt.duration,children:Pt=>y.jsxs(fe,{...Me,"data-fixed":ae==="fixed"||void 0,variant:Z,mod:[{multiline:le,interactive:Ve},J],...Te,...ie.getFloatingProps({ref:ie.floating,className:Te.className,style:{...Te.style,...Pt,...ut,zIndex:F,top:ie.y??0,left:ie.x??0}}),children:[u,y.jsx(lc,{ref:Ce,arrowX:ie.arrowX,arrowY:ie.arrowY,visible:_,position:ie.placement,arrowSize:j,arrowOffset:L,arrowRadius:k,arrowPosition:D,...ye("arrow")})]})})})})}const jt=Ne.props,fn=it(ie.reference,sc(Ne),he),dn=vb(te,{duration:100,transition:"fade"});return y.jsxs(y.Fragment,{children:[y.jsx(Xa,{...Y,withinPortal:g,children:y.jsx(_l,{...dn,keepMounted:P,mounted:!V&&!!ie.opened,duration:ie.isGroupPhase?10:dn.duration,children:zt=>y.jsxs(fe,{...Me,"data-fixed":ae==="fixed"||void 0,variant:Z,mod:[{multiline:le,interactive:Ve},J],...ie.getFloatingProps({ref:ie.floating,className:ye("tooltip").className,style:{...ye("tooltip").style,...zt,...ut,zIndex:F,top:ie.y??0,left:ie.x??0}}),children:[u,y.jsx(lc,{ref:Ce,arrowX:ie.arrowX,arrowY:ie.arrowY,visible:_,position:ie.placement,arrowSize:j,arrowOffset:L,arrowRadius:k,arrowPosition:D,...ye("arrow")})]})})}),x.cloneElement(Ne,ie.getReferenceProps({onClick:ce,onMouseEnter:O,onMouseLeave:B,onMouseMove:l.onMouseMove,onPointerDown:l.onPointerDown,onPointerEnter:l.onPointerEnter,...jt,className:gt(N,jt.className),[s]:fn}))]})});Bl.classes=Ic;Bl.varsResolver=TS;Bl.displayName="@mantine/core/Tooltip";Bl.Floating=Zc;Bl.Group=Cp;var RS={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const z3={withItemsBorders:!0},ES=(n,{radius:l,color:r,transitionDuration:o,size:s,transitionTimingFunction:u})=>({root:{"--sc-radius":l===void 0?void 0:Ht(l),"--sc-color":r?ha(r,n):void 0,"--sc-shadow":r?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":u,"--sc-padding":Je(s,"sc-padding"),"--sc-font-size":Tt(s)}}),Qc=a0(n=>{var he,Me;const l=ue("SegmentedControl",z3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,data:p,value:h,defaultValue:S,onChange:g,size:v,name:w,disabled:E,readOnly:C,fullWidth:T,orientation:A,radius:N,color:_,transitionDuration:j,transitionTimingFunction:L,variant:k,autoContrast:D,withItemsBorders:H,mod:te,attributes:le,ref:oe,...ee}=l,F=je({name:"SegmentedControl",props:l,classes:RS,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:le,vars:m,varsResolver:ES}),V=cn(),ce=p.map(Se=>P2(Se)?{label:`${Se}`,value:Se}:Se),O=X2(),[B,U]=x.useState(Yd()),[Z,P]=x.useState(null),[M,Y]=x.useState({}),J=(Se,Ce)=>{M[Ce]=Se,Y(M)},[ae,se]=tl({value:h,defaultValue:S,finalValue:Array.isArray(p)?((he=ce.find(Se=>!Se.disabled))==null?void 0:he.value)??((Me=p[0])==null?void 0:Me.value)??null:null,onChange:g}),de=kn(w),ge=ce.map(Se=>x.createElement(fe,{...F("control"),mod:{active:ae===Se.value,orientation:A},key:`${Se.value}`},x.createElement("input",{...F("input"),disabled:E||Se.disabled,type:"radio",name:de,value:`${Se.value}`,id:`${de}-${Se.value}`,checked:ae===Se.value,onChange:()=>!C&&se(Se.value),"data-focus-ring":V.focusRing,key:`${Se.value}-input`}),x.createElement(fe,{component:"label",...F("label"),mod:{active:ae===Se.value&&!(E||Se.disabled),disabled:E||Se.disabled,"read-only":C},htmlFor:`${de}-${Se.value}`,ref:Ce=>J(Ce,`${Se.value}`),__vars:{"--sc-label-color":_!==void 0?Sm({color:_,theme:V,autoContrast:D}):void 0},key:`${Se.value}-label`},y.jsx("span",{...F("innerLabel"),children:Se.label})))),pe=it(oe,P);return Y2(()=>{U(Yd())},[p.length]),p.length===0?null:y.jsxs(fe,{...F("root"),variant:k,size:v,ref:pe,mod:[{"full-width":T,orientation:A,initialized:O,"with-items-borders":H},te],...ee,role:"radiogroup","data-disabled":E,children:[typeof ae<"u"&&y.jsx(Ac,{target:M[`${ae}`],parent:Z,component:"span",transitionDuration:"var(--sc-transition-duration)",...F("indicator")},B),ge]})});Qc.classes=RS;Qc.varsResolver=ES;Qc.displayName="@mantine/core/SegmentedControl";const D3={size:"sm",withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},ac=a0(n=>{const l=ue(["Input","InputWrapper","Select"],D3,n),{classNames:r,styles:o,unstyled:s,vars:u,dropdownOpened:f,defaultDropdownOpened:m,onDropdownClose:p,onDropdownOpen:h,onFocus:S,onBlur:g,onClick:v,onChange:w,data:E,value:C,defaultValue:T,selectFirstOptionOnChange:A,selectFirstOptionOnDropdownOpen:N,onOptionSubmit:_,comboboxProps:j,readOnly:L,disabled:k,filter:D,limit:H,withScrollArea:te,maxDropdownHeight:le,floatingHeight:oe,size:ee,searchable:F,rightSection:V,checkIconPosition:ce,withCheckIcon:O,withAlignedLabels:B,nothingFoundMessage:U,name:Z,form:P,searchValue:M,defaultSearchValue:Y,onSearchChange:J,allowDeselect:ae,error:se,rightSectionPointerEvents:de,id:ge,clearable:pe,clearSectionMode:he,clearButtonProps:Me,hiddenInputProps:Se,renderOption:Ce,onClear:ie,autoComplete:ye,scrollAreaProps:Ne,__defaultRightSection:Te,__clearSection:Ve,__clearable:ut,chevronColor:jt,autoSelectOnBlur:fn,openOnFocus:dn,attributes:zt,...Pt}=l,ze=x.useMemo(()=>HA(E),[E]),kl=x.useRef({}),yt=x.useMemo(()=>H1(ze),[ze]),xa=kn(ge),[Ye,Hl,rl]=tl({value:C,defaultValue:T,finalValue:null,onChange:w}),Dt=Ye!=null?`${Ye}`in yt?yt[`${Ye}`]:kl.current[`${Ye}`]:void 0,En=V2(Dt),[Wt,St,en]=tl({value:M,defaultValue:Y,finalValue:Dt?Dt.label:"",onChange:J}),Ee=I1({opened:f,defaultOpened:m,onDropdownOpen:()=>{h==null||h(),N?Ee.selectFirstOption():Ee.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{p==null||p(),setTimeout(Ee.resetSelectedOption,0)}}),Gn=nt=>{St(nt),Ee.resetSelectedOption()},{resolvedClassNames:xi,resolvedStyles:wi}=uc({props:l,styles:o,classNames:r});x.useEffect(()=>{A&&Ee.selectFirstOption()},[A,Wt]),x.useEffect(()=>{C===null&&Gn(""),C!=null&&Dt&&((En==null?void 0:En.value)!==Dt.value||(En==null?void 0:En.label)!==Dt.label)&&Gn(Dt.label)},[C,Dt]),x.useEffect(()=>{var nt,Pe;!rl&&!en&&Gn(Ye!=null?`${Ye}`in yt?(nt=yt[`${Ye}`])==null?void 0:nt.label:((Pe=kl.current[`${Ye}`])==null?void 0:Pe.label)||"":"")},[yt,Ye]),x.useEffect(()=>{Ye&&`${Ye}`in yt&&(kl.current[`${Ye}`]=yt[`${Ye}`])},[yt,Ye]);const Fa=y.jsx(Ie.ClearButton,{...Me,onClear:()=>{Hl(null,null),Gn(""),ie==null||ie()}}),Ja=pe&&Ye!=null&&!k&&!L;return y.jsxs(y.Fragment,{children:[y.jsxs(Ie,{store:Ee,__staticSelector:"Select",classNames:xi,styles:wi,unstyled:s,readOnly:L,size:ee,attributes:zt,floatingHeight:oe,keepMounted:fn,onOptionSubmit:nt=>{_==null||_(nt);const Pe=ae&&`${yt[nt].value}`==`${Ye}`?null:yt[nt],Ul=Pe?Pe.value:null;Ul!==Ye&&Hl(Ul,Pe),!rl&&Gn(Ul!=null&&(Pe==null?void 0:Pe.label)||""),Ee.closeDropdown()},...j,children:[y.jsx(Ie.Target,{targetType:F?"input":"button",autoComplete:ye,withExpandedAttribute:!0,children:y.jsx(Ec,{id:xa,__defaultRightSection:y.jsx(Ie.Chevron,{size:ee,error:se,unstyled:s,color:jt}),__clearSection:Fa,__clearable:Ja,__clearSectionMode:he,rightSection:V,rightSectionPointerEvents:de||"none",...Pt,size:ee,__staticSelector:"Select",disabled:k,readOnly:L||!F,value:Wt,onChange:nt=>{if(t3(nt)){if(!L){const Pe=R3(yt,nt.currentTarget.value);Pe&&`${Pe.value}`!=`${Ye}`&&(Hl(Pe.value,Pe),!rl&&Gn(Pe.label))}return}Gn(nt.currentTarget.value),Ee.openDropdown(),A&&Ee.selectFirstOption()},onFocus:nt=>{dn&&F&&Ee.openDropdown(),S==null||S(nt)},onBlur:nt=>{fn&&Ee.clickSelectedOption(),F&&Ee.closeDropdown();const Pe=Ye!=null&&(`${Ye}`in yt?yt[`${Ye}`]:kl.current[`${Ye}`]);Gn(Pe&&Pe.label||""),g==null||g(nt)},onClick:nt=>{F?Ee.openDropdown():Ee.toggleDropdown(),v==null||v(nt)},classNames:xi,styles:wi,unstyled:s,pointer:!F,error:se,attributes:zt})}),y.jsx(WA,{data:ze,hidden:L||k,filter:D,search:Wt,limit:H,hiddenWhenEmpty:!U,withScrollArea:te,maxDropdownHeight:le,filterOptions:!!F&&(Dt==null?void 0:Dt.label)!==Wt,value:Ye,checkIconPosition:ce,withCheckIcon:O,withAlignedLabels:B,nothingFoundMessage:U,unstyled:s,labelId:Pt.label?`${xa}-label`:void 0,"aria-label":Pt.label?void 0:Pt["aria-label"],renderOption:Ce,scrollAreaProps:Ne})]}),y.jsx(Ie.HiddenInput,{value:Ye,name:Z,form:P,disabled:k,...Se})]})});ac.classes={...Ec.classes,...Ie.classes};ac.displayName="@mantine/core/Select";var AS={root:"m_6d731127"};const $3={gap:"md",align:"stretch",justify:"flex-start"},_S=(n,{gap:l,align:r,justify:o})=>({root:{"--stack-gap":si(l),"--stack-align":r,"--stack-justify":o}}),Tn=me(n=>{const l=ue("Stack",$3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,align:p,justify:h,gap:S,variant:g,attributes:v,...w}=l;return y.jsx(fe,{...je({name:"Stack",props:l,classes:AS,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:v,vars:m,varsResolver:_S})("root"),variant:g,...w})});Tn.classes=AS;Tn.varsResolver=_S;Tn.displayName="@mantine/core/Stack";const L3=["h1","h2","h3","h4","h5","h6"],B3=["xs","sm","md","lg","xl"];function k3(n,l){const r=l!==void 0?l:`h${n}`;return L3.includes(r)?{fontSize:`var(--mantine-${r}-font-size)`,fontWeight:`var(--mantine-${r}-font-weight)`,lineHeight:`var(--mantine-${r}-line-height)`}:B3.includes(r)?{fontSize:`var(--mantine-font-size-${r})`,fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}:{fontSize:K(r),fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}}var NS={root:"m_8a5d1357"};const H3={order:1},MS=(n,{order:l,size:r,lineClamp:o,textWrap:s})=>{const u=k3(l||1,r);return{root:{"--title-fw":u.fontWeight,"--title-lh":u.lineHeight,"--title-fz":u.fontSize,"--title-line-clamp":typeof o=="number"?o.toString():void 0,"--title-text-wrap":s}}},Mn=me(n=>{const l=ue("Title",H3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,order:m,vars:p,size:h,variant:S,lineClamp:g,textWrap:v,mod:w,attributes:E,...C}=l,T=je({name:"Title",props:l,classes:NS,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:E,vars:p,varsResolver:MS});return[1,2,3,4,5,6].includes(m)?y.jsx(fe,{...T("root"),component:`h${m}`,variant:S,mod:[{order:m,"data-line-clamp":typeof g=="number"},w],size:h,...C}):null});Mn.classes=NS;Mn.varsResolver=MS;Mn.displayName="@mantine/core/Title";/**
94
94
  * @license @tabler/icons-react v3.35.0 - MIT
95
95
  *
96
96
  * This source code is licensed under the MIT license.
97
97
  * See the LICENSE file in the root directory of this source tree.
98
- */var k3={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
98
+ */var U3={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
99
99
  * @license @tabler/icons-react v3.35.0 - MIT
100
100
  *
101
101
  * This source code is licensed under the MIT license.
102
102
  * See the LICENSE file in the root directory of this source tree.
103
- */const Vn=(n,l,r,o)=>{const s=x.forwardRef(({color:u="currentColor",size:f=24,stroke:d=2,title:p,className:h,children:S,...g},v)=>x.createElement("svg",{ref:v,...k3[n],width:f,height:f,className:["tabler-icon",`tabler-icon-${l}`,h].join(" "),...n==="filled"?{fill:u}:{strokeWidth:d,stroke:u},...g},[p&&x.createElement("title",{key:"svg-title"},p),...o.map(([w,E])=>x.createElement(w,E)),...Array.isArray(S)?S:[S]]));return s.displayName=`${r}`,s};/**
103
+ */const Vn=(n,l,r,o)=>{const s=x.forwardRef(({color:u="currentColor",size:f=24,stroke:m=2,title:p,className:h,children:S,...g},v)=>x.createElement("svg",{ref:v,...U3[n],width:f,height:f,className:["tabler-icon",`tabler-icon-${l}`,h].join(" "),...n==="filled"?{fill:u}:{strokeWidth:m,stroke:u},...g},[p&&x.createElement("title",{key:"svg-title"},p),...o.map(([w,E])=>x.createElement(w,E)),...Array.isArray(S)?S:[S]]));return s.displayName=`${r}`,s};/**
104
104
  * @license @tabler/icons-react v3.35.0 - MIT
105
105
  *
106
106
  * This source code is licensed under the MIT license.
107
107
  * See the LICENSE file in the root directory of this source tree.
108
- */const U3=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],H3=Vn("outline","alert-triangle","AlertTriangle",U3);/**
108
+ */const Y3=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],q3=Vn("outline","alert-triangle","AlertTriangle",Y3);/**
109
109
  * @license @tabler/icons-react v3.35.0 - MIT
110
110
  *
111
111
  * This source code is licensed under the MIT license.
112
112
  * See the LICENSE file in the root directory of this source tree.
113
- */const Y3=[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]],q3=Vn("outline","bell","Bell",Y3);/**
113
+ */const V3=[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]],G3=Vn("outline","bell","Bell",V3);/**
114
114
  * @license @tabler/icons-react v3.35.0 - MIT
115
115
  *
116
116
  * This source code is licensed under the MIT license.
117
117
  * See the LICENSE file in the root directory of this source tree.
118
- */const V3=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],G3=Vn("outline","check","Check",V3);/**
118
+ */const X3=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],I3=Vn("outline","check","Check",X3);/**
119
119
  * @license @tabler/icons-react v3.35.0 - MIT
120
120
  *
121
121
  * This source code is licensed under the MIT license.
122
122
  * See the LICENSE file in the root directory of this source tree.
123
- */const X3=[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],I3=Vn("outline","clipboard","Clipboard",X3);/**
123
+ */const Z3=[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],Q3=Vn("outline","clipboard","Clipboard",Z3);/**
124
124
  * @license @tabler/icons-react v3.35.0 - MIT
125
125
  *
126
126
  * This source code is licensed under the MIT license.
127
127
  * See the LICENSE file in the root directory of this source tree.
128
- */const Z3=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],Q3=Vn("outline","clock","Clock",Z3);/**
128
+ */const K3=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],F3=Vn("outline","clock","Clock",K3);/**
129
129
  * @license @tabler/icons-react v3.35.0 - MIT
130
130
  *
131
131
  * This source code is licensed under the MIT license.
132
132
  * See the LICENSE file in the root directory of this source tree.
133
- */const K3=[["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],F3=Vn("outline","dots","Dots",K3);/**
133
+ */const J3=[["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],P3=Vn("outline","dots","Dots",J3);/**
134
134
  * @license @tabler/icons-react v3.35.0 - MIT
135
135
  *
136
136
  * This source code is licensed under the MIT license.
137
137
  * See the LICENSE file in the root directory of this source tree.
138
- */const J3=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],P3=Vn("outline","external-link","ExternalLink",J3);/**
138
+ */const W3=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],e_=Vn("outline","external-link","ExternalLink",W3);/**
139
139
  * @license @tabler/icons-react v3.35.0 - MIT
140
140
  *
141
141
  * This source code is licensed under the MIT license.
142
142
  * See the LICENSE file in the root directory of this source tree.
143
- */const W3=[["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"}]],e_=Vn("outline","moon","Moon",W3);/**
143
+ */const t_=[["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"}]],n_=Vn("outline","moon","Moon",t_);/**
144
144
  * @license @tabler/icons-react v3.35.0 - MIT
145
145
  *
146
146
  * This source code is licensed under the MIT license.
147
147
  * See the LICENSE file in the root directory of this source tree.
148
- */const t_=[["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"}]],n_=Vn("outline","sun","Sun",t_);/**
148
+ */const l_=[["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"}]],a_=Vn("outline","sun","Sun",l_);/**
149
149
  * @license @tabler/icons-react v3.35.0 - MIT
150
150
  *
151
151
  * This source code is licensed under the MIT license.
152
152
  * See the LICENSE file in the root directory of this source tree.
153
- */const l_=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],MS=Vn("outline","x","X",l_);/**
153
+ */const o_=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],OS=Vn("outline","x","X",o_);/**
154
154
  * @license @tabler/icons-react v3.35.0 - MIT
155
155
  *
156
156
  * This source code is licensed under the MIT license.
157
157
  * See the LICENSE file in the root directory of this source tree.
158
- */const a_=[["path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z",key:"svg-0"}]],o_=Vn("filled","circle-filled","CircleFilled",a_),r_=50,i_="Turn interrupted before a terminal report.",OS=[{value:"",label:"All"},{value:"working",label:"Working"},{value:"needs input",label:"Needs input"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}],s_=new Map([["created","Task created"],["task_started","Task started"],["follow_up_started","Follow-up started"],["completed","Task completed"],["needs_input","Task needs input"],["failed","Task failed"],["manual_completed","Task manually completed"],["manual_failed","Task manually failed"],["archive_succeeded","Chat archived"],["archive_failed","Chat archive failed"],["unresolved","Task updated"]]),c_=new Map([["24h",1440*60*1e3],["7d",10080*60*1e3],["all",null]]);function u_(n){return Date.parse(n.meaningfulUpdatedAt??n.updatedAt??n.createdAt)}function jS(n){return n.status===null?"unresolved":n.status.replaceAll("_"," ")}function f_(n){return{status:n.status,turnRef:n.turnRef,threadId:n.threadId,updatedAt:n.updatedAt}}function d_(n,l){return!!l&&n.status===l.status&&n.turnRef===l.turnRef&&n.threadId===l.threadId&&n.updatedAt===l.updatedAt}function Tb({requestTask:n,expected:l,responseTask:r,selectedTask:o}){const s=(o==null?void 0:o.id)===n.id?o:n;return d_(s,l)?r??s:s}function m_(n){var s;const l=n.latestTurn??null,r=(l==null?void 0:l.result)??null,o=(l==null?void 0:l.requestSummary)??(l?"Request not recorded by this TaskChef version.":n.title);return{turnRef:(l==null?void 0:l.turnRef)??(l==null?void 0:l.turnId)??n.turnRef??n.turnId??null,turnId:(l==null?void 0:l.turnId)??n.turnId??null,startedAt:(l==null?void 0:l.startedAt)??n.updatedAt??n.createdAt??null,requestSummary:o,resultStatus:(r==null?void 0:r.status)??(n.status==="working"?"working":n.status),resultSummary:(r==null?void 0:r.summary)??(n.status==="working"?"In progress":((s=n.lastResult)==null?void 0:s.summary)??n.summary??"No result reported."),resultUpdatedAt:(r==null?void 0:r.updatedAt)??null}}function p_(n){var r;const l=n.result??null;return{status:(l==null?void 0:l.status)??"working",summary:(l==null?void 0:l.summary)??"In progress",updatedAt:(l==null?void 0:l.updatedAt)??n.startedAt,...((r=n.provenance)==null?void 0:r.kind)==="dashboard_manual"?{sourceLabel:"Manual dashboard change"}:{}}}function h_(n,l=[]){if(Array.isArray(n.turns))return n.turns;if(!n.latestTurn)return l;const r=[...l],o=r.length-1,s=n.latestTurn.turnRef??n.latestTurn.turnId,u=o>=0?r[o].turnRef??r[o].turnId:null,f=o>=0&&u===null&&s!==null&&r[o].turnId==null&&n.latestTurn.turnId==null&&JSON.stringify({...r[o],turnRef:null})===JSON.stringify({...n.latestTurn,turnRef:null});return o>=0&&(u===s||f)?r[o]=n.latestTurn:(n.schemaVersion>=8&&o>=0&&r[o].result===null&&(r[o]={...r[o],result:{status:"interrupted",summary:i_,updatedAt:n.latestTurn.startedAt}}),r.push(n.latestTurn)),r}function Qc(n){return s_.get(n.event)??"Task updated"}function v_(n,l,r=Date.now()){const o=c_.get(l);if(o===null)return!0;if(o===void 0)return!1;const s=u_(n);return Number.isFinite(s)&&s>=r-o}function zS(n,{project:l="",status:r="",date:o="all",now:s=Date.now()}={}){return n.filter(u=>(!l||u.project.name===l)&&(!r||jS(u)===r)&&v_(u,o,s))}function g_(n,{project:l="",date:r="all",now:o=Date.now()}={}){const s=zS(n,{project:l,date:r,now:o});return Object.fromEntries(OS.map(({value:u})=>[u,u?s.filter(f=>jS(f)===u).length:s.length]))}function y_(n){return JSON.stringify([n.id,n.turnRef??n.turnId??null,n.turnId??null,n.status??"unresolved"])}function b_(n,l){try{const r=JSON.parse(n),o=JSON.parse(l);return Array.isArray(r)&&Array.isArray(o)&&r.length===o.length&&r[1]===null&&o[1]!==null&&r[2]===null&&o[2]===null&&r[3]!=="working"&&r.every((s,u)=>u===1||s===o[u])}catch{return!1}}function S_(n){var l,r;return n.status==="working"?n.lastResult?"follow_up_started":"task_started":((r=(l=n.latestTurn)==null?void 0:l.provenance)==null?void 0:r.kind)==="dashboard_manual"?`manual_${n.status}`:n.status??"unresolved"}function DS(n,l){return JSON.stringify(l==="created"?[n.id,null,l,n.createdAt??null]:[n.id,n.turnRef??n.turnId??null,l])}function x_(n,l){var r,o,s;return l==="created"?n.createdAt??n.updatedAt??null:((r=n.lastResult)==null?void 0:r.status)===n.status&&(((o=n.lastResult)==null?void 0:o.turnRef)??((s=n.lastResult)==null?void 0:s.turnId))===(n.turnRef??n.turnId)?n.lastResult.updatedAt:n.updatedAt??n.createdAt??null}function w_(n,l){var r,o,s;return["completed","needs_input","failed","manual_completed","manual_failed"].includes(l)?((r=n.lastResult)==null?void 0:r.status)===n.status&&(((o=n.lastResult)==null?void 0:o.turnRef)??((s=n.lastResult)==null?void 0:s.turnId))===(n.turnRef??n.turnId)?n.lastResult.summary:n.summary??null:null}function Uo(n,l=S_(n)){const r=l==="created";return Object.freeze({id:DS(n,l),taskId:n.id,title:n.title,status:r?"working":n.status,event:l,turnRef:r?null:n.turnRef??n.turnId??null,turnId:r?null:n.turnId??null,timestamp:x_(n,l),summary:w_(n,l)})}function Ys(n){var o;const l=n.lastResult;if(!l)return null;const r=((o=l.provenance)==null?void 0:o.kind)==="dashboard_manual"?`manual_${l.status}`:l.status;return Object.freeze({id:DS({...n,turnRef:l.turnRef??l.turnId,turnId:l.turnId},r),taskId:n.id,title:n.title,status:l.status,event:r,turnRef:l.turnRef??l.turnId??null,turnId:l.turnId??null,timestamp:l.updatedAt,summary:l.summary})}function C_(n,l){return`${l?"Open current task details":"Show task availability"} for ${n.title}: ${Qc(n)}`}function T_(n){return`Dismiss ${Qc(n)} notification for ${n.title}`}function Rb(n,l){return n.filter(({id:r})=>r!==l)}function R_({initialized:n,notifications:l,seenIds:r=new Set,signatures:o},s){const u=new Map(o);for(const p of s)u.set(p.id,y_(p));const f=new Set(r);if(!n){for(const p of s){f.add(Uo(p,"created").id);const h=Ys(p);h&&f.add(h.id),f.add(Uo(p).id)}return{additions:[],notifications:l,seenIds:f,signatures:u}}const d=[];for(const p of s){const h=[];if(o.has(p.id)){if(o.get(p.id)!==u.get(p.id)&&!b_(o.get(p.id),u.get(p.id))){h.push(Uo(p));const g=Ys(p);g&&h.push(g)}}else{const g=Ys(p);(p.turnRef||p.turnId||p.status!=="working"||g)&&(h.push(Uo(p)),g&&h.push(g)),h.push(Uo(p,"created"))}for(const g of h)f.has(g.id)||d.push(g),f.add(g.id);const S=Ys(p);S&&f.add(S.id),f.add(Uo(p).id)}return{additions:d,notifications:[...d,...l].slice(0,r_),seenIds:f,signatures:u}}function E_({onConnection:n,onError:l,onSnapshot:r}){const o=new EventSource("/api/events");return o.addEventListener("open",()=>n(!0)),o.addEventListener("error",()=>n(!1)),o.addEventListener("snapshot",s=>{n(!0),r(JSON.parse(s.data))}),o.addEventListener("dashboard-error",s=>{const u=JSON.parse(s.data);l(u.message??"The task log is temporarily unavailable.")}),o}async function Kc(n,l){const r=await fetch(n,l),o=await r.json().catch(()=>({}));if(!r.ok)throw Object.assign(new Error(o.message??"Request failed."),{payload:o});return o}async function A_(){return(await Kc("/api/health")).taskchefVersion}async function __(n){return(await Kc(`/api/tasks/${encodeURIComponent(n)}`)).task}async function N_(n){return(await Kc(`/api/tasks/${encodeURIComponent(n)}/open-codex`,{method:"POST"})).message??null}async function M_(n,l,r){const o=new AbortController,s=window.setTimeout(()=>o.abort(),1e4);try{return{ok:!0,task:(await Kc(`/api/tasks/${encodeURIComponent(n.id)}/manual-transition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({schemaVersion:1,actionId:r,expected:{status:n.status,turnRef:n.turnRef,threadId:n.threadId,updatedAt:n.updatedAt},targetStatus:l}),signal:o.signal})).task}}catch(u){const f=u.payload;return{ok:!1,code:(f==null?void 0:f.code)??(o.signal.aborted?"request_timeout":"network_error"),message:(f==null?void 0:f.message)??(o.signal.aborted?"Task state change timed out. Try again.":"Task state changes are temporarily unavailable. Try again."),task:(f==null?void 0:f.task)??null}}finally{window.clearTimeout(s)}}function O_(n,l,r){const o=n.notifications.filter(({id:s})=>s!==l.id);return r?{...n,detailTaskId:l.taskId,detailOpened:!0,highlightTurnRef:l.turnRef??l.turnId,notifications:o,refreshGeneration:n.refreshGeneration+1}:{...n,notifications:o}}function Eb(n){return{...n,notifications:[]}}function Ab(n,l){const r=Array.isArray(n.turns)&&Array.isArray(n.results),o=!Array.isArray(l.turns)&&!Array.isArray(l.results);return{...n,...l,...r&&o?{results:n.results,turns:n.turns,usage:n.usage}:{}}}function qs(n){var l,r,o,s,u,f,d;return JSON.stringify([((l=n==null?void 0:n.usage)==null?void 0:l.generationTurnRef)??null,((r=n==null?void 0:n.usage)==null?void 0:r.status)??null,((o=n==null?void 0:n.usage)==null?void 0:o.updatedAt)??null,((u=(s=n==null?void 0:n.usage)==null?void 0:s.task)==null?void 0:u.totalTokens)??null,((d=(f=n==null?void 0:n.usage)==null?void 0:f.task)==null?void 0:d.estimatedCostUsd)??null])}const lm=1e3,am=60*lm,om=60*am,j_=24*om;function $S(n,l){const r=_b(n),o=_b(l);if(r===null||o===null)return null;const s=o-r;return s>=0?s:null}function _b(n){if(typeof n!="string")return null;const l=n.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,3}))?(Z|[+-]\d{2}:\d{2})$/);if(!l)return null;const[,r,o,s,u,f,d,,p]=l,h=Number(r),S=Number(o),g=Number(s),v=Number(u),w=Number(f),E=Number(d),C=p==="Z"?0:Number(p.slice(1,3)),T=p==="Z"?0:Number(p.slice(4,6)),N=[31,h%4===0&&(h%100!==0||h%400===0)?29:28,31,30,31,30,31,31,30,31,30,31];if(S<1||S>12||g<1||g>N[S-1]||v>23||w>59||E>59||C>23||T>59)return null;const _=Date.parse(n);return Number.isFinite(_)?_:null}function LS(n){if(!Number.isFinite(n)||n<0)return null;if(n>0&&n<lm)return"<1s";const l=Math.floor(n/lm);if(n<am)return`${l}s`;if(n<om)return`${Math.floor(l/60)}m ${l%60}s`;const r=Math.floor(n/am);if(n<j_)return`${Math.floor(r/60)}h ${r%60}m`;const o=Math.floor(n/om);return`${Math.floor(o/24)}d ${o%24}h`}function z_(n){if(n.turns===void 0)return{accessibleLabel:"Total reported work unavailable because terminal turn history is not available.",kind:"unavailable",title:"Reported wall-clock elapsed time requires the terminal turn history from the task detail projection.",value:"Unavailable"};const l=(n.turns??[]).filter(p=>p.result!==null);if(l.length===0)return{accessibleLabel:"Total reported work not yet reported. Unfinished turns are excluded.",kind:"not-reported",title:"Reported wall-clock elapsed time is added only after a turn reaches a terminal state.",value:"Not yet reported"};const o=l.map(BS).filter(p=>p!==null);if(o.length===0)return{accessibleLabel:"Total reported work unavailable because completed turn timestamps are missing or invalid.",kind:"unavailable",title:"Reported wall-clock elapsed time is unavailable because no terminal turn has a valid start and end timestamp.",value:"Unavailable"};const s=o.reduce((p,h)=>p+h,0),u=Number.isSafeInteger(s)?LS(s):null;if(u===null)return{accessibleLabel:"Total reported work unavailable because the duration total is outside the supported range.",kind:"unavailable",title:"Reported wall-clock elapsed time is unavailable because the duration total is outside the supported range.",value:"Unavailable"};const f=l.length-o.length,d=f>0?` ${f} terminal ${f===1?"turn was":"turns were"} unavailable and excluded.`:"";return{accessibleLabel:`Total reported work ${u}. This is reported wall-clock elapsed time.${d}`,kind:"available",title:`Sum of valid terminal-turn wall-clock elapsed times; unfinished turns and idle gaps are excluded.${d}`,value:u}}function D_(n,l=Date.now()){const r=n.result===null,o=r?$S(n.startedAt,new Date(l).toISOString()):BS(n),s=r?"Elapsed so far":"Elapsed",u=o===null?"Unavailable":LS(o)??"Unavailable";return{accessibleLabel:`${s} ${u}. ${r?"Current":"Completed"} turn reported wall-clock elapsed time.`,kind:o===null?"unavailable":"available",label:s,title:o===null?"Reported wall-clock elapsed time is unavailable because the turn timestamps are missing, invalid, or reversed.":`Reported wall-clock elapsed time from startedAt ${r?"to the current time":"to result.updatedAt"}.`,value:u}}function BS(n){var r;const l=$S(n.startedAt,(r=n.result)==null?void 0:r.updatedAt);return l===0?null:l}function Tp(n,l){return new Intl.NumberFormat(l,{maximumFractionDigits:2,notation:"compact"}).format(n)}function oi(n,l){return new Intl.NumberFormat(l,{maximumFractionDigits:2}).format(n)}function Ia(n,l){return typeof n!="number"||!Number.isFinite(n)?"—":new Intl.NumberFormat(l,{currency:"USD",currencyDisplay:"narrowSymbol",maximumFractionDigits:2,minimumFractionDigits:2,style:"currency"}).format(n)}function kS(n){var s;const l=n.usage,r=n.turnRef??((s=n.latestTurn)==null?void 0:s.turnRef)??null,o=(l==null?void 0:l.generationTurnRef)!=null&&r!=null&&l.generationTurnRef!==r;return n.status==="working"?l!=null&&l.task?Nb(l.task,!0):{kind:"pending",label:"Token usage pending"}:(l==null?void 0:l.status)==="calculating"||o?{kind:"calculating",label:"Calculating token usage"}:(l==null?void 0:l.status)==="available"&&l.task?Nb(l.task,!1):!l&&n.threadId&&["completed","failed","needs_input"].includes(n.status??"")?{kind:"calculating",label:"Calculating token usage"}:{kind:"unavailable",label:(l==null?void 0:l.reason)??"Token usage unavailable"}}function Nb(n,l){const r=Tp(n.totalTokens),o=n.estimatedCostUsd==null?"Estimated cost unavailable":`Estimated cost ${Ia(n.estimatedCostUsd)}`;return{kind:"ready",knownSoFar:l,label:`${r} tokens · ${o}${l?" · known so far":""}`,usage:n}}function $_(n,l){var s,u;if(l.result===null)return{kind:"pending",label:"Turn usage pending"};const r=l.turnRef??l.turnId,o=r?(u=(s=n.usage)==null?void 0:s.turns)==null?void 0:u[r]:null;if((o==null?void 0:o.status)==="calculating")return{kind:"calculating",label:"Calculating turn usage"};if((o==null?void 0:o.status)==="available"&&typeof o.totalTokens=="number"){const f=oi(o.totalTokens),d=o.estimatedCostUsd==null?"Estimated cost unavailable":`Estimated cost ${Ia(o.estimatedCostUsd)}`;return{kind:"ready",label:`${f} tokens · ${d}`}}return{kind:"unavailable",label:(o==null?void 0:o.reason)??"Turn usage unavailable"}}function L_(n,l){var s,u;const r=$_(n,l);if(r.kind==="ready"){const f=l.turnRef??l.turnId,d=f?(u=(s=n.usage)==null?void 0:s.turns)==null?void 0:u[f]:null,p=typeof(d==null?void 0:d.totalTokens)=="number"?oi(d.totalTokens):"Unavailable",h=(d==null?void 0:d.estimatedCostUsd)==null?"Unavailable":Ia(d.estimatedCostUsd);return{animated:!1,cost:{accessibleLabel:`Estimated cost ${h.toLowerCase()}`,value:h},kind:r.kind,note:null,title:r.label,tokens:{accessibleLabel:`${p} tokens`,value:p}}}const o=r.kind==="pending"?"Pending":r.kind==="calculating"?"Calculating":"Unavailable";return{animated:r.kind==="pending"||r.kind==="calculating",cost:{accessibleLabel:`Estimated cost ${o.toLowerCase()}${r.kind==="unavailable"?`: ${r.label}`:""}`,value:o},kind:r.kind,note:r.kind==="unavailable"?r.label:null,title:r.label,tokens:{accessibleLabel:`Tokens ${o.toLowerCase()}${r.kind==="unavailable"?`: ${r.label}`:""}`,value:o}}}function B_(n){var l,r;return n.status!=="working"&&(((l=n.usage)==null?void 0:l.status)==="calculating"||Object.values(((r=n.usage)==null?void 0:r.turns)??{}).some(o=>o.status==="calculating"))}function k_(n){var h;const l=kS(n);if(l.kind==="pending"||l.kind==="calculating")return{accessibleLabel:l.label,kind:l.kind,label:l.label,title:l.label};if(l.kind==="unavailable")return{accessibleLabel:`Token usage unavailable${l.label==="Token usage unavailable"?"":`: ${l.label}`}`,kind:"unavailable",label:"Token usage unavailable",title:l.label};const r=Tp(l.usage.totalTokens),o=oi(l.usage.totalTokens),s=l.usage.estimatedCostUsd==null?"cost unavailable":`est. ${Ia(l.usage.estimatedCostUsd)}`,u=l.knownSoFar?" · Updating…":"",f=l.knownSoFar?"; updating":"",d=l.usage.sourceUpdatedAt??l.usage.sampledAt??((h=n.usage)==null?void 0:h.updatedAt)??null,p=d&&!Number.isNaN(Date.parse(d))?` Cached usage updated ${new Date(d).toLocaleString()}.`:"";return{accessibleLabel:`${o} tokens; ${l.usage.estimatedCostUsd==null?"estimated cost unavailable":`estimated cost ${Ia(l.usage.estimatedCostUsd)}`}${f}.${p}`,kind:"ready",label:`${r} tokens · ${s}${u}`,title:`${o} tokens · ${l.usage.estimatedCostUsd==null?"estimated cost unavailable":`unrounded estimate $${l.usage.estimatedCostUsd}`}${u}.${p}`}}function U_(n){return n==="completed"?"teal":n==="needs_input"?"yellow":n==="failed"?"red":n==="working"?"blue":"gray"}function H_(n){return n===null?"Unresolved":n.replaceAll("_"," ")}const Y_=30,qo=6e4,ri=60*qo,Jr=24*ri;function US(n){if(typeof n!="string"||n.trim()==="")return null;const l=Date.parse(n);return Number.isFinite(l)?{date:new Date(l),iso:new Date(l).toISOString(),milliseconds:l}:null}function q_(n,{locale:l,timeZone:r}={}){const o=US(n);return o?new Intl.DateTimeFormat(l,{dateStyle:"medium",timeStyle:"short",timeZone:r}).format(o.date):"—"}function V_(n,l){const r=Math.floor(n/ri),o=Math.floor(n%ri/qo),s=r===1?"1 hour":`${r} hours`,u=r<6&&o>0?` ${o} minutes`:"";return l==="future"?`in ${s}${u}`:`${s}${u} ago`}function Rp(n,{now:l=Date.now(),locale:r,timeZone:o}={}){const s=US(n);if(!s)return"—";const u=l-s.milliseconds,f=u<0,d=Math.abs(u);if(d<qo)return"just now";if(d<2*qo)return f?"in 1 minute":"1 minute ago";if(d<ri){const p=f?Math.ceil(d/qo):Math.floor(d/qo);return f?`in ${p} minutes`:`${p} minutes ago`}if(d<2*ri)return f?"in 1 hour":"1 hour ago";if(d<Jr)return V_(d,f?"future":"past");if(d<2*Jr)return f?"in 1 day":"1 day ago";if(d<Y_*Jr){const p=f?Math.ceil(d/Jr):Math.floor(d/Jr);return f?`in ${p} days`:`${p} days ago`}return new Intl.DateTimeFormat(r,{dateStyle:"medium",timeZone:o}).format(s.date)}function Fc({status:n}){return y.jsx(Nc,{className:"taskchef-status-badge",color:U_(n),size:"sm",variant:"light",children:H_(n)})}function Mb({notifications:n,announcements:l=n,onClear:r,onDismiss:o,onOpen:s,tasks:u,withinPortal:f=!0}){if(n.length===0)return null;const d=y.jsxs(y.Fragment,{children:[y.jsxs(Ln,{"aria-label":"Task notifications",className:"taskchef-notifications",p:"sm",radius:"md",role:"region",shadow:"xl",withBorder:!0,children:[y.jsxs(Nt,{justify:"space-between",mb:"xs",children:[y.jsxs(Nt,{gap:6,children:[y.jsx(q3,{"aria-hidden":!0,size:16}),y.jsx($e,{fw:700,size:"sm",children:"Updates"})]}),y.jsx(_l,{onClick:r,size:"compact-xs",variant:"subtle",children:"Clear all"})]}),y.jsx($n.Autosize,{className:"taskchef-notification-scroll",mah:"min(55vh, 520px)",type:"auto",children:y.jsx(Tn,{className:"taskchef-notification-list",gap:6,children:n.map(p=>{const h=u.some(w=>w.id===p.taskId),S=`notification-${Math.abs(X_(p.id))}`,g=`${S}-summary`,v=`${S}-metadata`;return y.jsx(Ln,{className:"taskchef-notification",p:"xs",radius:"sm",children:y.jsxs(Nt,{align:"flex-start",gap:"xs",wrap:"nowrap",children:[y.jsxs("button",{"aria-describedby":[p.summary?g:null,v].filter(Boolean).join(" "),"aria-label":C_(p,h),className:"taskchef-notification-open",onClick:()=>s(p),type:"button",children:[y.jsxs(Nt,{gap:"xs",justify:"space-between",wrap:"nowrap",children:[y.jsx($e,{fw:700,size:"sm",children:Qc(p)}),y.jsx(Fc,{status:p.status})]}),y.jsx($e,{lineClamp:1,size:"sm",children:p.title}),p.summary&&y.jsx($e,{className:"taskchef-preserve-lines",id:g,lineClamp:3,size:"xs",children:p.summary}),y.jsxs($e,{c:"dimmed",id:v,size:"xs",children:[Rp(p.timestamp),h?"":" · Task no longer available"]})]}),y.jsx(Ll,{label:"Dismiss notification",children:y.jsx(ya,{"aria-label":T_(p),color:"gray",onClick:()=>o(p),size:"compact-sm",variant:"subtle",children:y.jsx(MS,{"aria-hidden":!0,size:14})})})]})},p.id)})})})]}),y.jsx(fe,{"aria-atomic":"true","aria-live":"polite",className:"taskchef-visually-hidden",role:"status",children:l.map(G_).join(" ")})]});return f?y.jsx(Vm,{children:d}):d}function G_(n){return[Qc(n),n.title,n.summary,n.turnRef?`Turn ref ${n.turnRef}`:null,Rp(n.timestamp)].filter(Boolean).map(l=>String(l).replace(/[.\s]+$/,"")).join(". ")+"."}function X_(n){let l=0;for(const r of n)l=(l<<5)-l+r.charCodeAt(0)|0;return l}const I_=/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})\/[A-Za-z0-9._-]+$/,Z_=/https?:\/\/(?:www\.)?github\.com\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))\/([A-Za-z0-9._-]+)\/(issues|pull)\/([1-9]\d*)(?![A-Za-z0-9_])|([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))\/([A-Za-z0-9._-]+)#([1-9]\d*)(?![A-Za-z0-9_])|#([1-9]\d*)(?![A-Za-z0-9_])|https?:\/\/(?:www\.)?github\.com\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))\/([A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9_-])?)\/?(?=$|[\s#),.;:!?'"\]}>])/gi,Q_=/https?:\/\/[^\s<>"'`]+/gi;function Jc(n){return!(n!=null&&n.owner)||!(n!=null&&n.repository)?null:`${n.owner.toLowerCase()}/${n.repository.toLowerCase()}`}function K_(n){const l=new Map;for(const r of n){const o=Jc(r);if(!o)continue;const s=r.repository.toLowerCase(),u=l.get(s)??new Set;u.add(o),l.set(s,u)}return new Set([...l].filter(([,r])=>r.size>1).map(([r])=>r))}function F_(n,l){return l.has(n.repository.toLowerCase())?`${n.owner}/${n.repository}`:n.repository}function HS(n,{related:l=!1}={}){const r=K_(n);let o=null;return n.map(s=>{if(s.provider!=="github"&&!s.owner)return s.label??s.text;const u=Jc(s),f=F_(s,r);if(s.type==="repository")return f;if(l){const d=u===o?`#${s.number}`:`${f} #${s.number}`;return o=u,d}return s.type==="pull"?`${f} PR #${s.number}`:s.type==="issue"?`${f} Issue #${s.number}`:`${f} #${s.number}`})}function J_(n,l){const r=String(n.number??""),o=String(l.number??"");return r.length-o.length||r.localeCompare(o)}function P_(n){const l=new Map,r=new Set,o=new Set,s=new Set;for(const u of n??[]){const f=Jc(u),d=u.number?`${f}#${u.number}`:null;if(u.type==="repository"||!f||r.has(u.label)||s.has(u.url)||d&&o.has(d))continue;r.add(u.label),s.add(u.url),d&&o.add(d);const p=l.get(f)??[];p.push(u),l.set(f,p)}return[...l.values()].map(u=>[...u].sort(J_))}function YS(n){const l=Jc(n);return l?n.type==="repository"?l:n.type==="pull"?`${l} PR #${n.number}`:n.type==="issue"?`${l} Issue #${n.number}`:`${l} #${n.number}`:n.label??n.text}function qS(n,l){return`${n.toLowerCase()}/${l.toLowerCase()}`}function VS(n){return n!=="."&&n!==".."}function GS(n){if(typeof n!="string")return null;let l=n.trim();const r=l.match(/^https?:\/\/(?:www\.)?github\.com\/([^/?#]+)\/([^/?#]+?)(?:\.git)?\/?$/i);if(r&&(l=`${r[1]}/${r[2]}`),!I_.test(l))return null;const[o,s]=l.split("/");return VS(s)?qS(o,s):null}function W_(n){var s;const l=String(n??""),r=XS(l),o=[];for(const u of l.matchAll(Z_)){const f=u.index,d=f>0?l[f-1]:"";let p=null;const h=r.find(T=>f>=T.start&&f<T.end);if(h){const T=!!(u[1]||u[9]);let A=null;try{A=new URL(h.text).hostname.toLowerCase()}catch{}if(!(T&&f===h.start&&(A==="github.com"||A==="www.github.com"))||!IS(h.text))continue;p={end:h.end,suffix:h.text.slice(u[0].length),text:h.text}}if(u[8]&&/[\w&#/]/.test(d)||(u[5]||u[1]||u[9])&&/[\w/]/.test(d))continue;let S=u[1]??u[5]??u[9]??null,g=u[2]??u[6]??u[10]??null;u[9]&&(g=g.replace(/\.git$/i,""));const v=u[4]??u[7]??u[8]??null,w=(s=u[3])==null?void 0:s.toLowerCase(),E=u[9]?"repository":w==="pull"?"pull":w==="issues"?"issue":"generic",C=!!(S&&g);if(C){if(!VS(g))continue;[S,g]=qS(S,g).split("/")}o.push({end:(p==null?void 0:p.end)??f+u[0].length,explicit:C,number:v,owner:S,repository:g,start:f,text:(p==null?void 0:p.text)??u[0],type:E,urlSuffix:(p==null?void 0:p.suffix)??""})}return o}function eN(n){const l=new Set(n.filter(({explicit:r})=>r).map(({owner:r,repository:o})=>`${r}/${o}`));return l.size===1?[...l][0]:null}function tN(n){const l=new Set((n??[]).map(GS).filter(Boolean));return l.size===1?[...l][0]:null}function nN(n,l){const r=n.explicit?`${n.owner}/${n.repository}`:l;if(!r)return null;const[o,s]=r.split("/");if(n.type==="repository")return{kind:"link",label:`${o}/${s}`,number:null,owner:o,provider:"github",repository:s,text:n.text,type:n.type,url:`https://github.com/${o}/${s}${n.urlSuffix}`};const u=n.type==="pull"?"pull":"issues";return{kind:"link",label:`${o}/${s}#${n.number}`,number:n.number,owner:o,provider:"github",repository:s,text:n.text,type:n.type,url:`https://github.com/${o}/${s}/${u}/${n.number}${n.urlSuffix}`}}function lN(n){let l=n,r;do{r=l,l=l.replace(/[.,;:!?]+$/u,"");for(const[o,s]of[["(",")"],["[","]"],["{","}"]])for(;l.endsWith(s);){const u=[...l].filter(d=>d===o).length;if([...l].filter(d=>d===s).length<=u)break;l=l.slice(0,-1)}}while(l!==r);return l}function XS(n){const l=[];for(const r of String(n??"").matchAll(Q_)){const o=lN(r[0]);o&&l.push({end:r.index+o.length,start:r.index,text:o})}return l}function aN(n){const l=n.slice(n.indexOf("//")+2).split(/[?#]/u,1)[0],r=l.indexOf("/");return r<0?!1:l.slice(r).split("/").some(o=>{try{const s=decodeURIComponent(o);return s==="."||s===".."}catch{return!0}})}function IS(n){try{const l=new URL(n);return!l.hostname||l.username||l.password||n.includes("\\")||aN(n)?null:l.href}catch{return null}}function oN(n){const l=[];for(const r of XS(n)){const o=IS(r.text);o&&l.push({end:r.end,kind:"link",label:r.text,provider:"web",start:r.start,text:r.text,type:"url",url:o})}return l}function rN(n,{projectRepositories:l=[],taskRepository:r=null}={}){const o=String(n??""),s=W_(o),f=eN(s)??GS(r)??tN(l),d=[];let p=0;for(const h of s){h.start>p&&d.push({kind:"text",text:o.slice(p,h.start)});const S=nN(h,f);S?d.push(S):d.push({kind:"ambiguous",reason:`GitHub reference ${h.text} is not linked because the repository is ambiguous.`,text:h.text}),p=h.end}return p<o.length&&d.push({kind:"text",text:o.slice(p)}),d}function iN(n,l={}){const r=String(n??""),o=rN(r,l),s=[];let u=0;for(const h of o){const S=r.indexOf(h.text,u);S<0||(h.kind!=="text"&&s.push({end:S+h.text.length,segment:h,start:S}),u=S+h.text.length)}const f=oN(r).filter(h=>!s.some(({end:S,start:g})=>h.start<S&&h.end>g));if(f.length===0)return o;s.push(...f.map(h=>({end:h.end,segment:h,start:h.start}))),s.sort((h,S)=>h.start-S.start);const d=[];let p=0;for(const h of s)h.start<p||(h.start>p&&d.push({kind:"text",text:r.slice(p,h.start)}),d.push(h.segment),p=h.end);return p<r.length&&d.push({kind:"text",text:r.slice(p)}),d}function ZS({task:n}){const l=n.relatedGitHubLinks??[];if(l.length===0&&!n.relatedGitHubLinksTruncated)return null;const r=P_(l),o=HS(r.flat(),{related:!0});let s=0;return y.jsxs(fe,{"aria-label":`Related GitHub links for ${n.title}`,className:"taskchef-github-groups",component:"nav",children:[r.map(u=>y.jsx(Nt,{className:"taskchef-github-group",gap:5,wrap:"wrap",children:u.map(f=>{const d=o[s];s+=1;const p=f.type==="pull"?", GitHub pull request":f.type==="issue"?", GitHub issue":" on GitHub";return y.jsx(Ac,{"aria-label":`${YS(f)}${p} (opens in a new tab)`,className:"taskchef-github-link",href:f.url,rel:"noopener noreferrer",size:"xs",target:"_blank",children:d},f.url)})},`${u[0].owner}/${u[0].repository}`)),n.relatedGitHubLinksTruncated&&y.jsx($e,{c:"dimmed",size:"xs",children:"More links in task history"})]})}function ac({task:n,text:l}){const r=iN(l,{projectRepositories:n.project.githubRepos,taskRepository:n.relatedGitHubRepository}),o=r.filter(f=>f.kind==="link"),s=HS(o);let u=0;return r.map((f,d)=>{if(f.kind==="text")return f.text;if(f.kind==="ambiguous")return y.jsx("span",{"aria-label":f.reason,className:"taskchef-github-reference-ambiguous",tabIndex:0,title:f.reason,children:f.text},`${d}:${f.text}`);const p=s[u];u+=1;const h=f.type==="pull"?", GitHub pull request":f.type==="issue"?", GitHub issue":f.owner?" on GitHub":"";return y.jsx(Ac,{"aria-label":`${YS(f)}${h} (opens in a new tab)`,className:"taskchef-github-link",href:f.url,rel:"noopener noreferrer",target:"_blank",children:p},`${d}:${f.url}`)})}function QS({loading:n,onClick:l,taskTitle:r}){return y.jsx(_l,{"aria-label":`Open chat for ${r}`,leftSection:y.jsx(P3,{"aria-hidden":!0,size:15}),loading:n,onClick:l,size:"compact-sm",variant:"default",children:"Open chat"})}const KS=x.createContext(null);function sN({children:n,now:l}){return y.jsx(KS,{value:l,children:n})}function oc({label:n,value:l}){const[r,o]=x.useState(!1);x.useContext(KS);const s=r?q_(l):Rp(l);return y.jsx(Ll,{label:r?"Show relative time":"Show exact time",children:y.jsxs(jl,{"aria-label":`${n}: ${s}. ${r?"Show relative time":"Show exact time"}`,className:"taskchef-time",onClick:()=>o(u=>!u),children:[y.jsx(Q3,{"aria-hidden":!0,size:12}),y.jsx("span",{className:"taskchef-time-label",children:s})]})})}function bi({children:n,className:l="",...r}){return y.jsx("span",{className:`taskchef-shimmer ${l}`.trim(),"data-animation":"text-shimmer",...r,children:n})}function cN({task:n}){const l=k_(n),r=l.kind==="pending"||l.kind==="calculating"?y.jsx(bi,{children:l.label}):l.label;return y.jsx($e,{"aria-label":l.accessibleLabel,"aria-live":"polite",c:"dimmed",className:"taskchef-task-usage","data-usage-state":l.kind,size:"xs",title:l.title,children:r})}function uN({onOpenCodex:n,onOpenDetail:l,task:r}){const o=m_(r);return y.jsx(Ln,{className:"taskchef-task-row",component:"article",p:"md",radius:"md",withBorder:!0,children:y.jsxs(Tn,{className:"taskchef-task-main",gap:"sm",children:[y.jsxs(fe,{children:[y.jsxs(fe,{className:"taskchef-card-heading",children:[y.jsx(Mn,{order:3,size:"h5",children:y.jsx("button",{className:"taskchef-title-button",onClick:()=>l(r),type:"button",children:r.title})}),y.jsxs(Tn,{align:"flex-end",className:"taskchef-card-metadata",gap:4,children:[y.jsx(Fc,{status:r.status}),y.jsx(cN,{task:r})]})]}),y.jsx($e,{c:"dimmed",mt:2,size:"xs",children:r.project.name})]}),y.jsxs(fe,{className:"taskchef-summary-grid",children:[y.jsx($e,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Request"}),y.jsx($e,{className:"taskchef-preserve-lines",lineClamp:3,size:"sm",children:y.jsx(ac,{task:r,text:o.requestSummary})}),y.jsx($e,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Result"}),y.jsx($e,{className:"taskchef-preserve-lines",lineClamp:3,size:"sm",children:o.resultStatus==="working"?y.jsx(bi,{children:o.resultSummary}):y.jsx(ac,{task:r,text:o.resultSummary})})]}),y.jsx(ZS,{task:r}),y.jsxs(Nt,{className:"taskchef-card-footer",gap:"md",justify:"space-between",children:[y.jsx(oc,{label:`Updated time for ${r.title}`,value:r.meaningfulUpdatedAt??r.updatedAt}),y.jsx(QS,{onClick:()=>n(r),taskTitle:r.title})]})]})})}function fN({highlightTurnRef:n,task:l}){const r=h_(l,[]);return r!=null&&r.length?y.jsx(Tn,{gap:"sm",children:[...r].reverse().map((o,s)=>{const u=p_(o),f=o.turnRef??o.turnId??`turn-${s}`,d=f===n,p=L_(l,o);return y.jsx(Ln,{className:`taskchef-turn${d?" taskchef-turn-highlighted":""}`,"data-turn-ref":f,p:"sm",radius:"md",tabIndex:d?-1:void 0,withBorder:!0,children:y.jsxs(Tn,{gap:7,children:[y.jsxs(fe,{className:"taskchef-turn-heading",children:[y.jsx(Fc,{status:u.status}),y.jsx(oc,{label:"Turn update time",value:u.updatedAt})]}),u.sourceLabel&&y.jsx($e,{c:"dimmed",size:"xs",children:u.sourceLabel}),y.jsxs(fe,{children:[y.jsx($e,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Request"}),y.jsx($e,{className:"taskchef-preserve-lines",size:"sm",children:y.jsx(ac,{task:l,text:o.requestSummary??"Request not recorded."})})]}),y.jsxs(fe,{children:[y.jsx($e,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Result"}),y.jsx($e,{className:"taskchef-preserve-lines",size:"sm",children:u.status==="working"?y.jsx(bi,{children:u.summary}):y.jsx(ac,{task:l,text:u.summary})})]}),y.jsxs(fe,{className:"taskchef-turn-metrics",children:[y.jsx(rm,{accessibleLabel:p.tokens.accessibleLabel,animated:p.animated,label:"Tokens",title:p.title,value:p.tokens.value}),y.jsx(rm,{accessibleLabel:p.cost.accessibleLabel,animated:p.animated,label:"Estimated cost",title:p.title,value:p.cost.value}),y.jsx(dN,{turn:o})]}),p.note&&y.jsx($e,{c:"dimmed",size:"xs",children:p.note}),y.jsxs($e,{c:"dimmed",className:"taskchef-mono",size:"xs",children:["Turn ref: ",f??"—"]})]})},f)})}):y.jsx($e,{c:"dimmed",size:"sm",children:"No turn history has been recorded."})}function dN({turn:n}){const l=mN(n.result===null),r=D_(n,l);return y.jsx(rm,{accessibleLabel:r.accessibleLabel,label:r.label,title:r.title,value:r.value})}function rm({accessibleLabel:n,animated:l=!1,label:r,title:o,value:s}){return y.jsxs(fe,{className:"taskchef-turn-metric",title:o,children:[y.jsx($e,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:r}),y.jsx($e,{"aria-label":n,c:"dimmed",size:"xs",children:l?y.jsx(bi,{children:s}):s})]})}function mN(n){const[l,r]=x.useState(()=>Date.now());return x.useEffect(()=>{if(!n)return;r(Date.now());const o=window.setInterval(()=>r(Date.now()),1e3);return()=>window.clearInterval(o)},[n]),l}function pN({task:n}){const l=kS(n),r=z_(n),o=l.kind==="ready"?l:null,s=(o==null?void 0:o.usage.cachedInputTokens)??0,u=(o==null?void 0:o.usage.inputTokens)??0,f=o&&u+s>0?`${Math.round(s/(u+s)*100)}%`:"—",d=l.kind==="pending"?"Pending":l.kind==="calculating"?"Calculating":"Unavailable",p=[{accessibleValue:o?`${oi(o.usage.totalTokens)} tokens`:l.label,animated:l.kind==="pending"||l.kind==="calculating",label:o!=null&&o.knownSoFar?"Tokens · known so far":"Tokens",title:o?`${oi(o.usage.totalTokens)} tokens`:l.label,value:o?Tp(o.usage.totalTokens):d},{accessibleValue:o?o.usage.estimatedCostUsd==null?"Estimated cost unavailable":`Estimated cost ${Ia(o.usage.estimatedCostUsd)}`:`Estimated cost ${d.toLowerCase()}${l.kind==="unavailable"?`: ${l.label}`:""}`,animated:l.kind==="pending"||l.kind==="calculating",label:"Estimated cost",title:(o==null?void 0:o.usage.estimatedCostUsd)==null?l.label:`Unrounded estimate: $${o.usage.estimatedCostUsd}`,value:o?Ia(o.usage.estimatedCostUsd):d},{accessibleValue:r.accessibleLabel,label:"Total reported work",title:r.title,value:r.value},...o?[{label:"Model",value:Object.keys(o.usage.models??{}).join(", ")||"—"},{label:"Cache ratio",value:f}]:[]];return y.jsxs(fe,{"aria-live":"polite",children:[y.jsx(fe,{className:"taskchef-metrics",children:p.map(({accessibleValue:h,animated:S,label:g,title:v,value:w})=>y.jsxs(Ln,{className:"taskchef-metric",p:"sm",radius:"md",withBorder:!0,children:[y.jsx($e,{c:"dimmed",size:"xs",children:g}),y.jsx($e,{"aria-label":h,className:"taskchef-metric-value",fw:650,size:"sm",title:v,children:S?y.jsx(bi,{children:w}):w})]},g))}),l.kind==="unavailable"&&y.jsx($e,{c:"dimmed",mt:"xs",size:"xs",children:l.label})]})}function hN({busy:n,error:l,highlightTurnRef:r,onClose:o,onCopy:s,onOpenCodex:u,onTransition:f,opened:d,task:p,notifications:h,notice:S}){var T;const g=pm("(max-width: 48em)"),[v,w]=x.useState(null);if(x.useEffect(()=>{d||w(null)},[d]),x.useEffect(()=>{d&&r&&requestAnimationFrame(()=>{var A;(A=document.querySelector(`[data-turn-ref="${CSS.escape(r)}"]`))==null||A.focus()})},[r,d,(T=p==null?void 0:p.turns)==null?void 0:T.length,p==null?void 0:p.updatedAt]),x.useEffect(()=>{v&&(!p||!Ob(p).includes(v))&&w(null)},[v,p==null?void 0:p.status]),!p)return null;const E=Ob(p),C=y.jsxs(Tn,{gap:"lg",children:[h,y.jsxs(fe,{children:[y.jsxs(Nt,{align:"flex-start",gap:"sm",justify:"space-between",wrap:"nowrap",children:[y.jsxs(fe,{children:[y.jsx($e,{c:"teal",fw:700,size:"xs",tt:"uppercase",children:p.project.name}),y.jsx(Mn,{id:"task-detail-title",order:2,size:"h3",tabIndex:-1,children:p.title})]}),y.jsx(Fc,{status:p.status})]}),y.jsxs(Nt,{gap:"xs",mt:"md",children:[y.jsx(QS,{loading:n,onClick:u,taskTitle:p.title}),y.jsxs(ht,{position:"bottom-start",shadow:"md",withinPortal:!0,zIndex:360,children:[y.jsx(ht.Target,{children:y.jsx(Ll,{label:"More task actions",children:y.jsx(ya,{"aria-label":"More task actions",disabled:n,variant:"default",children:y.jsx(F3,{"aria-hidden":!0,size:17})})})}),y.jsxs(ht.Dropdown,{children:[y.jsx(ht.Item,{leftSection:y.jsx(I3,{size:14}),onClick:s,children:"Copy Task ID"}),E.includes("completed")&&y.jsx(ht.Item,{leftSection:y.jsx(G3,{size:14}),onClick:()=>w("completed"),children:"Mark completed"}),E.includes("failed")&&y.jsx(ht.Item,{color:"red",leftSection:y.jsx(MS,{size:14}),onClick:()=>w("failed"),children:"Mark failed"})]})]})]}),y.jsx(fe,{mt:"sm",children:y.jsx(ZS,{task:p})})]}),v&&y.jsx(vN,{busy:n,onCancel:()=>w(null),onTransition:f,status:v},v),S&&y.jsx(Xa,{color:"teal",role:"status",children:S}),l&&y.jsx(Xa,{color:"red",role:"alert",children:l}),y.jsxs("section",{"aria-labelledby":"usage-heading",children:[y.jsx(Mn,{id:"usage-heading",mb:"xs",order:3,size:"h5",children:"Usage"}),y.jsx(pN,{task:p})]}),y.jsx(jc,{}),y.jsxs("section",{"aria-labelledby":"activity-heading",children:[y.jsx(Mn,{id:"activity-heading",mb:"sm",order:3,size:"h5",children:"Activity timeline"}),y.jsx(fN,{highlightTurnRef:r,task:p})]}),y.jsxs("section",{"aria-labelledby":"instruction-heading",children:[y.jsx(Mn,{id:"instruction-heading",mb:"xs",order:3,size:"h5",children:"Original instruction"}),y.jsx(fe,{className:"taskchef-code-panel",component:"pre",children:p.instruction})]}),y.jsxs("section",{"aria-labelledby":"metadata-heading",children:[y.jsx(Mn,{id:"metadata-heading",mb:"xs",order:3,size:"h5",children:"Metadata"}),y.jsxs("dl",{className:"taskchef-metadata",children:[y.jsx("dt",{children:"Task ID"}),y.jsx("dd",{children:p.id}),y.jsx("dt",{children:"Thread ID"}),y.jsx("dd",{children:p.threadId??"—"}),y.jsx("dt",{children:"Current turn ref"}),y.jsx("dd",{children:p.turnRef??"—"}),y.jsx("dt",{children:"Project path"}),y.jsx("dd",{children:p.project.path}),y.jsx("dt",{children:"Created"}),y.jsx("dd",{children:y.jsx(oc,{label:"Created time",value:p.createdAt})}),y.jsx("dt",{children:"Updated"}),y.jsx("dd",{children:y.jsx(oc,{label:"Updated time",value:p.meaningfulUpdatedAt??p.updatedAt})}),y.jsx("dt",{children:"Updated by"}),y.jsx("dd",{children:p.updatedBy??"—"})]})]})]});return g?y.jsx(Hn,{closeOnClickOutside:!n,closeOnEscape:!n,onClose:o,opened:d,overlayProps:{backgroundOpacity:.55,blur:2},position:"bottom",scrollAreaComponent:$n.Autosize,size:"92%",title:y.jsx("span",{className:"taskchef-visually-hidden",children:"Task details"}),trapFocus:!0,zIndex:300,children:C}):y.jsx(qn,{"aria-labelledby":"task-detail-title",closeOnClickOutside:!n,closeOnEscape:!n,onClose:o,opened:d,overlayProps:{backgroundOpacity:.55,blur:2},scrollAreaComponent:$n.Autosize,size:"min(820px, calc(100vw - 32px))",title:y.jsx("span",{className:"taskchef-visually-hidden",children:"Task details"}),trapFocus:!0,zIndex:300,children:C})}function Ob(n){return n.status==="completed"?["failed"]:n.status==="failed"?["completed"]:n.status==="working"||n.status==="needs_input"?["completed","failed"]:[]}function vN({busy:n,onCancel:l,onTransition:r,status:o}){const s=x.useRef(crypto.randomUUID());return y.jsxs(Xa,{color:o==="failed"?"red":"teal",role:"alert",title:`Mark task ${o}?`,children:[y.jsx($e,{mb:"sm",size:"sm",children:"This interrupts active work and appends an audited manual dashboard turn."}),y.jsxs(Nt,{gap:"xs",children:[y.jsx(_l,{color:o==="failed"?"red":"teal",loading:n,onClick:async()=>{const u=await r(o,s.current);u.ok?(l(),requestAnimationFrame(()=>{var f;return(f=document.getElementById("task-detail-title"))==null?void 0:f.focus()})):u.rotateActionId&&(s.current=crypto.randomUUID())},size:"compact-sm",children:"Confirm"}),y.jsx(_l,{disabled:n,onClick:l,size:"compact-sm",variant:"default",children:"Cancel"})]})]})}const gN={primaryColor:"teal",colors:{teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#087f5b","#067052","#055e46","#044d39"]},defaultRadius:"md",fontFamily:"Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif",headings:{fontFamily:"inherit",fontWeight:"680"},components:{Button:{defaultProps:{radius:"md"}},Paper:{defaultProps:{radius:"md"}}}};var zb;const jb=(zb=document.querySelector('meta[name="taskchef-style-nonce"]'))==null?void 0:zb.content;function yN({totalCount:n,visibleCount:l}){return y.jsxs($e,{"aria-live":"polite",className:"taskchef-results-summary",id:"task-results-summary",children:["Tasks: ",l," of ",n]})}function bN({connect:n=!0,initialFilters:l={},initialTasks:r=[]}){const[o,s]=x.useState(r),[u,f]=x.useState(!1),[d,p]=x.useState(null),[h,S]=x.useState(null),[g,v]=x.useState(l.project??""),[w,E]=x.useState(l.status??""),[C,T]=x.useState(l.date??"all"),[A,N]=x.useState(()=>Date.now()),[_,j]=x.useState(null),[L,k]=x.useState(!1),[D,U]=x.useState(!1),[te,le]=x.useState(null),[oe,ee]=x.useState(null),[F,V]=x.useState(null),[ce,O]=x.useState({initialized:r.length>0,announcements:[],notifications:[],seenIds:new Set,signatures:new Map}),B=(_==null?void 0:_.id)??null,H=x.useRef(B);H.current=B;const Z=x.useRef(0),P=x.useRef(null),M=x.useRef(qs(null)),Y=x.useCallback(ie=>{s(ie.tasks),O(Ne=>{const Te=R_(Ne,ie.tasks);return{initialized:!0,announcements:Te.additions,notifications:Te.notifications,seenIds:Te.seenIds,signatures:Te.signatures}}),p(ie.healthy===!1?"The task log is temporarily unavailable. Showing the last valid snapshot.":null);const ye=H.current;if(ye){const Ne=ie.tasks.find(Te=>Te.id===ye);Ne&&j(Te=>Te?Ab(Te,Ne):Ne)}},[]);x.useEffect(()=>{const ie=window.setInterval(()=>N(Date.now()),3e4);return()=>window.clearInterval(ie)},[]),x.useEffect(()=>{if(!n)return;A_().then(S).catch(()=>S(null));const ie=E_({onConnection:f,onError:p,onSnapshot:Y});return()=>ie.close()},[Y,n]);const J=x.useCallback(async(ie,ye=null)=>{const Ne=++Z.current;P.current=ie.updatedAt,M.current=qs(ie),j(Te=>(Te==null?void 0:Te.id)===ie.id?Ab(Te,ie):ie),k(!0),V(ye),le(null),ee(null);try{for(let Te=0;Te<=40;Te+=1){if(Ne!==Z.current)return;const Ve=await __(ie.id);if(Ne!==Z.current||(P.current=Ve.updatedAt,M.current=qs(Ve),j(Ve),!B_(Ve)||Te===40))return;await new Promise(ut=>window.setTimeout(ut,1500))}}catch{Ne===Z.current&&le("Task activity is temporarily unavailable. Showing the latest list snapshot.")}},[]),ae=o.find(ie=>ie.id===B)??null,se=qs(ae);x.useEffect(()=>{!L||!B||!n||ae&&(ae.updatedAt===P.current&&se===M.current||J(ae,F))},[ae==null?void 0:ae.updatedAt,se]);const de=x.useMemo(()=>[{label:"All projects",value:""},...[...new Set(o.map(ie=>ie.project.name))].sort().map(ie=>({label:ie,value:ie}))],[o]),ge=x.useMemo(()=>zS(o,{project:g,status:w,date:C,now:A}),[o,g,w,C,A]),pe=x.useMemo(()=>g_(o,{project:g,date:C,now:A}),[o,g,C,A]),he=OS.map(({label:ie,value:ye})=>({label:pe[ye]>0?`${ie} ${pe[ye]}`:ie,value:ye}));async function Me(ie){U(!0);try{const ye=await N_(ie.id);ye&&p(ye)}catch{p("Codex could not be opened. Open the project and select the recorded task instead.")}finally{U(!1)}}async function Se(ie,ye){if(!_)return{ok:!1};const Ne=_,Te=f_(Ne);U(!0),le(null);const Ve=await M_(Ne,ie,ye);return U(!1),Ve.task&&(j(ut=>Tb({requestTask:Ne,expected:Te,responseTask:Ve.task,selectedTask:ut})),s(ut=>ut.map(jt=>jt.id===Ne.id?Tb({requestTask:Ne,expected:Te,responseTask:Ve.task,selectedTask:jt}):jt))),Ve.ok&&Ve.task?(V(Ve.task.turnRef??Ve.task.turnId),{ok:!0}):(le(Ve.message??"Task state could not be changed."),{ok:!1,rotateActionId:Ve.code==="stale_task"})}function Ce(ie){const ye=o.find(Te=>Te.id===ie.taskId),Ne=O_({detailTaskId:B,detailOpened:L,highlightTurnRef:F,notifications:ce.notifications,refreshGeneration:Z.current},ie,!!ye);if(O(Te=>({...Te,notifications:Ne.notifications})),!ye){p("This task is no longer present in the current snapshot.");return}J(ye,Ne.highlightTurnRef)}return y.jsx(Wb,{defaultColorScheme:"auto",getStyleNonce:jb?()=>jb:void 0,theme:gN,children:y.jsxs(sN,{now:A,children:[y.jsxs(Bn,{className:"taskchef-shell",padding:0,children:[y.jsx(ai,{className:"taskchef-header",component:"header",size:1080,children:y.jsxs(Nt,{className:"taskchef-header-layout",align:"stretch",justify:"space-between",wrap:"nowrap",children:[y.jsxs(fe,{className:"taskchef-header-copy",children:[y.jsxs($e,{c:"var(--taskchef-accent)",fw:750,size:"xs",tt:"uppercase",children:["TaskChef ",h&&y.jsxs("span",{className:"taskchef-version",children:["v",h]})]}),y.jsxs(Nt,{gap:"sm",mt:5,wrap:"nowrap",children:[y.jsx(xN,{}),y.jsx(Mn,{order:1,size:"h2",children:"Dashboard"})]})]}),y.jsxs(Tn,{align:"flex-end",className:"taskchef-header-actions",gap:0,justify:"space-between",children:[y.jsxs(Nt,{"aria-live":"polite",className:"taskchef-connection",gap:7,role:"status",wrap:"nowrap",children:[y.jsx(o_,{"aria-hidden":!0,color:u?"var(--mantine-color-teal-6)":"var(--mantine-color-yellow-6)",size:9}),y.jsx($e,{c:"dimmed",size:"xs",children:u?"Live":n?"Connecting…":"Fixture preview"})]}),y.jsx(SN,{})]})]})}),y.jsx(Bn.Main,{children:y.jsxs(ai,{className:"taskchef-main",pb:80,size:1080,children:[y.jsx(Ln,{className:"taskchef-toolbar",p:"sm",radius:"md",withBorder:!0,children:y.jsxs(Tn,{gap:"sm",children:[y.jsxs(Nt,{align:"end",gap:"sm",children:[y.jsx(lc,{"aria-label":"Project",data:de,label:"Project",onChange:ie=>v(ie??""),size:"sm",value:g}),y.jsx(lc,{"aria-label":"Updated",data:[{label:"Latest 24 hours",value:"24h"},{label:"Latest 7 days",value:"7d"},{label:"All time",value:"all"}],label:"Updated",onChange:ie=>T(ie??"all"),size:"sm",value:C})]}),y.jsxs(fe,{children:[y.jsx($e,{className:"taskchef-filter-label",mb:5,children:"Status"}),y.jsx(Zc,{"aria-label":"Status",data:he,fullWidth:!0,onChange:E,size:"xs",value:w})]})]})}),y.jsx(yN,{totalCount:o.length,visibleCount:ge.length}),d&&y.jsx(Xa,{color:"yellow",icon:y.jsx(H3,{"aria-hidden":!0,size:17}),mt:"md",role:"status",children:y.jsxs(Nt,{gap:"sm",justify:"space-between",wrap:"nowrap",children:[y.jsx($e,{size:"sm",children:d}),y.jsx(Qa,{"aria-label":"Dismiss dashboard message",onClick:()=>p(null),size:"sm"})]})}),y.jsxs(Tn,{"aria-describedby":"task-results-summary","aria-label":"Tasks",component:"section",gap:"sm",mt:"xs",children:[ge.map(ie=>y.jsx(uN,{onOpenCodex:Me,onOpenDetail:ye=>void J(ye),task:ie},ie.id)),ge.length===0&&y.jsxs(Ln,{className:"taskchef-empty",p:48,ta:"center",withBorder:!0,children:[y.jsx(Mn,{order:2,size:"h4",children:"No tasks match these filters"}),y.jsx($e,{c:"dimmed",mt:4,size:"sm",children:"Choose a different project, date, or status."})]})]})]})})]}),y.jsx(hN,{busy:D,error:te,highlightTurnRef:F,onClose:()=>{D||(Z.current+=1,k(!1),V(null))},onCopy:()=>{_&&(ee(null),navigator.clipboard.writeText(_.id).then(()=>ee("Task ID copied."),()=>ee("Clipboard access is unavailable. Copy the Task ID from metadata.")))},onOpenCodex:()=>_&&void Me(_),onTransition:Se,opened:L,task:_,notice:oe,notifications:L?y.jsx(Mb,{announcements:ce.announcements,notifications:ce.notifications,onClear:()=>O(ie=>({...ie,notifications:Eb({detailTaskId:B,detailOpened:L,highlightTurnRef:F,notifications:ie.notifications,refreshGeneration:Z.current}).notifications})),onDismiss:ie=>O(ye=>({...ye,notifications:Rb(ye.notifications,ie.id)})),onOpen:Ce,tasks:o,withinPortal:!1}):null}),!L&&y.jsx(Mb,{announcements:ce.announcements,notifications:ce.notifications,onClear:()=>O(ie=>({...ie,notifications:Eb({detailTaskId:B,detailOpened:L,highlightTurnRef:F,notifications:ie.notifications,refreshGeneration:Z.current}).notifications})),onDismiss:ie=>O(ye=>({...ye,notifications:Rb(ye.notifications,ie.id)})),onOpen:Ce,tasks:o})]})})}function SN(){const{setColorScheme:n}=Zb(),l=Qb("light"),r=l==="dark"?"light":"dark";return y.jsx(Ll,{label:`Use ${r} theme`,children:y.jsx(ya,{"aria-label":`Use ${r} theme`,color:"gray",onClick:()=>n(r),size:"lg",variant:"subtle",children:l==="dark"?y.jsx(n_,{"aria-hidden":!0,size:18}):y.jsx(e_,{"aria-hidden":!0,size:18})})})}function xN(){const n=Qb("light");return y.jsx("img",{alt:"","aria-hidden":!0,className:"taskchef-brand-icon",height:"42",src:n==="dark"?"/assets/taskchef-dark.svg":"/assets/taskchef.svg",width:"42"})}y2.createRoot(document.getElementById("root")).render(y.jsx(x.StrictMode,{children:y.jsx(bN,{})}));
158
+ */const r_=[["path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z",key:"svg-0"}]],i_=Vn("filled","circle-filled","CircleFilled",r_),s_=50,c_="Turn interrupted before a terminal report.",jS=[{value:"",label:"All"},{value:"working",label:"Working"},{value:"needs input",label:"Needs input"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}],u_=new Map([["created","Task created"],["task_started","Task started"],["follow_up_started","Follow-up started"],["completed","Task completed"],["needs_input","Task needs input"],["failed","Task failed"],["manual_completed","Task manually completed"],["manual_failed","Task manually failed"],["archive_succeeded","Chat archived"],["archive_failed","Chat archive failed"],["unresolved","Task updated"]]),f_=new Map([["24h",1440*60*1e3],["7d",10080*60*1e3],["all",null]]);function d_(n){return Date.parse(n.meaningfulUpdatedAt??n.updatedAt??n.createdAt)}function zS(n){return n.status===null?"unresolved":n.status.replaceAll("_"," ")}function m_(n){return{status:n.status,turnRef:n.turnRef,threadId:n.threadId,updatedAt:n.updatedAt}}function p_(n,l){return!!l&&n.status===l.status&&n.turnRef===l.turnRef&&n.threadId===l.threadId&&n.updatedAt===l.updatedAt}function Tb({requestTask:n,expected:l,responseTask:r,selectedTask:o}){const s=(o==null?void 0:o.id)===n.id?o:n;return p_(s,l)?r??s:s}function h_(n){var s;const l=n.latestTurn??null,r=(l==null?void 0:l.result)??null,o=(l==null?void 0:l.requestSummary)??(l?"Request not recorded by this TaskChef version.":n.title);return{turnRef:(l==null?void 0:l.turnRef)??(l==null?void 0:l.turnId)??n.turnRef??n.turnId??null,turnId:(l==null?void 0:l.turnId)??n.turnId??null,startedAt:(l==null?void 0:l.startedAt)??n.updatedAt??n.createdAt??null,requestSummary:o,resultStatus:(r==null?void 0:r.status)??(n.status==="working"?"working":n.status),resultSummary:(r==null?void 0:r.summary)??(n.status==="working"?"In progress":((s=n.lastResult)==null?void 0:s.summary)??n.summary??"No result reported."),resultUpdatedAt:(r==null?void 0:r.updatedAt)??null}}function v_(n){var r;const l=n.result??null;return{status:(l==null?void 0:l.status)??"working",summary:(l==null?void 0:l.summary)??"In progress",updatedAt:(l==null?void 0:l.updatedAt)??n.startedAt,...((r=n.provenance)==null?void 0:r.kind)==="dashboard_manual"?{sourceLabel:"Manual dashboard change"}:{}}}function g_(n,l=[]){if(Array.isArray(n.turns))return n.turns;if(!n.latestTurn)return l;const r=[...l],o=r.length-1,s=n.latestTurn.turnRef??n.latestTurn.turnId,u=o>=0?r[o].turnRef??r[o].turnId:null,f=o>=0&&u===null&&s!==null&&r[o].turnId==null&&n.latestTurn.turnId==null&&JSON.stringify({...r[o],turnRef:null})===JSON.stringify({...n.latestTurn,turnRef:null});return o>=0&&(u===s||f)?r[o]=n.latestTurn:(n.schemaVersion>=8&&o>=0&&r[o].result===null&&(r[o]={...r[o],result:{status:"interrupted",summary:c_,updatedAt:n.latestTurn.startedAt}}),r.push(n.latestTurn)),r}function Kc(n){return u_.get(n.event)??"Task updated"}function y_(n,l,r=Date.now()){const o=f_.get(l);if(o===null)return!0;if(o===void 0)return!1;const s=d_(n);return Number.isFinite(s)&&s>=r-o}function DS(n,{project:l="",status:r="",date:o="all",now:s=Date.now()}={}){return n.filter(u=>(!l||u.project.name===l)&&(!r||zS(u)===r)&&y_(u,o,s))}function b_(n,{project:l="",date:r="all",now:o=Date.now()}={}){const s=DS(n,{project:l,date:r,now:o});return Object.fromEntries(jS.map(({value:u})=>[u,u?s.filter(f=>zS(f)===u).length:s.length]))}function S_(n){return JSON.stringify([n.id,n.turnRef??n.turnId??null,n.turnId??null,n.status??"unresolved"])}function x_(n,l){try{const r=JSON.parse(n),o=JSON.parse(l);return Array.isArray(r)&&Array.isArray(o)&&r.length===o.length&&r[1]===null&&o[1]!==null&&r[2]===null&&o[2]===null&&r[3]!=="working"&&r.every((s,u)=>u===1||s===o[u])}catch{return!1}}function w_(n){var l,r;return n.status==="working"?n.lastResult?"follow_up_started":"task_started":((r=(l=n.latestTurn)==null?void 0:l.provenance)==null?void 0:r.kind)==="dashboard_manual"?`manual_${n.status}`:n.status??"unresolved"}function $S(n,l){return JSON.stringify(l==="created"?[n.id,null,l,n.createdAt??null]:[n.id,n.turnRef??n.turnId??null,l])}function C_(n,l){var r,o,s;return l==="created"?n.createdAt??n.updatedAt??null:((r=n.lastResult)==null?void 0:r.status)===n.status&&(((o=n.lastResult)==null?void 0:o.turnRef)??((s=n.lastResult)==null?void 0:s.turnId))===(n.turnRef??n.turnId)?n.lastResult.updatedAt:n.updatedAt??n.createdAt??null}function T_(n,l){var r,o,s;return["completed","needs_input","failed","manual_completed","manual_failed"].includes(l)?((r=n.lastResult)==null?void 0:r.status)===n.status&&(((o=n.lastResult)==null?void 0:o.turnRef)??((s=n.lastResult)==null?void 0:s.turnId))===(n.turnRef??n.turnId)?n.lastResult.summary:n.summary??null:null}function Uo(n,l=w_(n)){const r=l==="created";return Object.freeze({id:$S(n,l),taskId:n.id,title:n.title,status:r?"working":n.status,event:l,turnRef:r?null:n.turnRef??n.turnId??null,turnId:r?null:n.turnId??null,timestamp:C_(n,l),summary:T_(n,l)})}function qs(n){var o;const l=n.lastResult;if(!l)return null;const r=((o=l.provenance)==null?void 0:o.kind)==="dashboard_manual"?`manual_${l.status}`:l.status;return Object.freeze({id:$S({...n,turnRef:l.turnRef??l.turnId,turnId:l.turnId},r),taskId:n.id,title:n.title,status:l.status,event:r,turnRef:l.turnRef??l.turnId??null,turnId:l.turnId??null,timestamp:l.updatedAt,summary:l.summary})}function R_(n,l){return`${l?"Open current task details":"Show task availability"} for ${n.title}: ${Kc(n)}`}function E_(n){return`Dismiss ${Kc(n)} notification for ${n.title}`}function Rb(n,l){return n.filter(({id:r})=>r!==l)}function A_({initialized:n,notifications:l,seenIds:r=new Set,signatures:o},s){const u=new Map(o);for(const p of s)u.set(p.id,S_(p));const f=new Set(r);if(!n){for(const p of s){f.add(Uo(p,"created").id);const h=qs(p);h&&f.add(h.id),f.add(Uo(p).id)}return{additions:[],notifications:l,seenIds:f,signatures:u}}const m=[];for(const p of s){const h=[];if(o.has(p.id)){if(o.get(p.id)!==u.get(p.id)&&!x_(o.get(p.id),u.get(p.id))){h.push(Uo(p));const g=qs(p);g&&h.push(g)}}else{const g=qs(p);(p.turnRef||p.turnId||p.status!=="working"||g)&&(h.push(Uo(p)),g&&h.push(g)),h.push(Uo(p,"created"))}for(const g of h)f.has(g.id)||m.push(g),f.add(g.id);const S=qs(p);S&&f.add(S.id),f.add(Uo(p).id)}return{additions:m,notifications:[...m,...l].slice(0,s_),seenIds:f,signatures:u}}function __({onConnection:n,onError:l,onSnapshot:r}){const o=new EventSource("/api/events");return o.addEventListener("open",()=>n(!0)),o.addEventListener("error",()=>n(!1)),o.addEventListener("snapshot",s=>{n(!0),r(JSON.parse(s.data))}),o.addEventListener("dashboard-error",s=>{const u=JSON.parse(s.data);l(u.message??"The task log is temporarily unavailable.")}),o}async function Fc(n,l){const r=await fetch(n,l),o=await r.json().catch(()=>({}));if(!r.ok)throw Object.assign(new Error(o.message??"Request failed."),{payload:o});return o}async function N_(){return(await Fc("/api/health")).taskchefVersion}async function M_(n){return(await Fc(`/api/tasks/${encodeURIComponent(n)}`)).task}async function O_(n){return(await Fc(`/api/tasks/${encodeURIComponent(n)}/open-codex`,{method:"POST"})).message??null}async function j_(n,l,r){const o=new AbortController,s=window.setTimeout(()=>o.abort(),1e4);try{return{ok:!0,task:(await Fc(`/api/tasks/${encodeURIComponent(n.id)}/manual-transition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({schemaVersion:1,actionId:r,expected:{status:n.status,turnRef:n.turnRef,threadId:n.threadId,updatedAt:n.updatedAt},targetStatus:l}),signal:o.signal})).task}}catch(u){const f=u.payload;return{ok:!1,code:(f==null?void 0:f.code)??(o.signal.aborted?"request_timeout":"network_error"),message:(f==null?void 0:f.message)??(o.signal.aborted?"Task state change timed out. Try again.":"Task state changes are temporarily unavailable. Try again."),task:(f==null?void 0:f.task)??null}}finally{window.clearTimeout(s)}}function z_(n,l,r){const o=n.notifications.filter(({id:s})=>s!==l.id);return r?{...n,detailTaskId:l.taskId,detailOpened:!0,highlightTurnRef:l.turnRef??l.turnId,notifications:o,refreshGeneration:n.refreshGeneration+1}:{...n,notifications:o}}function Eb(n){return{...n,notifications:[]}}function Ab(n,l){const r=Array.isArray(n.turns)&&Array.isArray(n.results),o=!Array.isArray(l.turns)&&!Array.isArray(l.results);return{...n,...l,...r&&o?{results:n.results,turns:n.turns,usage:n.usage}:{}}}function Vs(n){var l,r,o,s,u,f,m;return JSON.stringify([((l=n==null?void 0:n.usage)==null?void 0:l.generationTurnRef)??null,((r=n==null?void 0:n.usage)==null?void 0:r.status)??null,((o=n==null?void 0:n.usage)==null?void 0:o.updatedAt)??null,((u=(s=n==null?void 0:n.usage)==null?void 0:s.task)==null?void 0:u.totalTokens)??null,((m=(f=n==null?void 0:n.usage)==null?void 0:f.task)==null?void 0:m.estimatedCostUsd)??null])}const D_=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,3}))?(Z|[+-]\d{2}:\d{2})$/;function LS(n,l){const r=_b(n),o=_b(l);if(r===null||o===null)return null;const s=o-r;return s>=0?s:null}function BS(n){var r;const l=LS(n.startedAt,(r=n.result)==null?void 0:r.updatedAt);return l===0?null:l}function $_(n){const l=n.filter(s=>s.result!==null),r=l.map(BS).filter(s=>s!==null),o=r.length===0?l.length===0?0:null:r.reduce((s,u)=>s+u,0);return Object.freeze({terminalTurns:l.length,validTurns:r.length,totalMilliseconds:o===null||Number.isSafeInteger(o)?o:null})}function _b(n){if(typeof n!="string")return null;const l=n.match(D_);if(!l)return null;const[,r,o,s,u,f,m,,p]=l,h=Number(r),S=Number(o),g=Number(s),v=Number(u),w=Number(f),E=Number(m),C=p==="Z"?0:Number(p.slice(1,3)),T=p==="Z"?0:Number(p.slice(4,6)),N=[31,h%4===0&&(h%100!==0||h%400===0)?29:28,31,30,31,30,31,31,30,31,30,31];if(S<1||S>12||g<1||g>N[S-1]||v>23||w>59||E>59||C>23||T>59)return null;const _=Date.parse(n);return Number.isFinite(_)?_:null}const am=1e3,om=60*am,rm=60*om,L_=24*rm,Pn="n/a";function kS(n){if(!Number.isFinite(n)||n<0)return null;if(n>0&&n<am)return"<1s";const l=Math.floor(n/am);if(n<om)return`${l}s`;if(n<rm)return`${Math.floor(l/60)}m ${l%60}s`;const r=Math.floor(n/om);if(n<L_)return`${Math.floor(r/60)}h ${r%60}m`;const o=Math.floor(n/rm);return`${Math.floor(o/24)}d ${o%24}h`}function HS(n){const l=n.turns===void 0?n.reportedWork:$_(n.turns??[]);if(l===void 0)return{accessibleLabel:"Reported work unavailable because terminal turn history is not available.",kind:"unavailable",title:"Reported wall-clock elapsed time requires the terminal turn history from the task detail projection.",value:Pn};if(l.terminalTurns===0)return{accessibleLabel:"Reported work not yet reported. Unfinished turns are excluded.",kind:"not-reported",title:"Reported wall-clock elapsed time is added only after a turn reaches a terminal state.",value:Pn};if(l.validTurns===0)return{accessibleLabel:"Reported work unavailable because completed turn timestamps are missing or invalid.",kind:"unavailable",title:"Reported wall-clock elapsed time is unavailable because no terminal turn has a valid start and end timestamp.",value:Pn};const r=l.totalMilliseconds===null?null:kS(l.totalMilliseconds);if(r===null)return{accessibleLabel:"Reported work unavailable because the duration total is outside the supported range.",kind:"unavailable",title:"Reported wall-clock elapsed time is unavailable because the duration total is outside the supported range.",value:Pn};const o=l.terminalTurns-l.validTurns,s=o>0?` ${o} terminal ${o===1?"turn was":"turns were"} unavailable and excluded.`:"";return{accessibleLabel:`Reported work ${r}. This is reported wall-clock elapsed time.${s}`,kind:"available",title:`Sum of valid terminal-turn wall-clock elapsed times; unfinished turns and idle gaps are excluded.${s}`,value:r}}function B_(n,l=Date.now()){const r=n.result===null,o=r?LS(n.startedAt,new Date(l).toISOString()):BS(n),s=r?"Elapsed so far":"Elapsed",u=o===null?Pn:kS(o)??Pn;return{accessibleLabel:`${s} ${o===null?"unavailable":u}. ${r?"Current":"Completed"} turn reported wall-clock elapsed time.`,kind:o===null?"unavailable":"available",label:s,title:o===null?"Reported wall-clock elapsed time is unavailable because the turn timestamps are missing, invalid, or reversed.":`Reported wall-clock elapsed time from startedAt ${r?"to the current time":"to result.updatedAt"}.`,value:u}}function Tp(n,l){return new Intl.NumberFormat(l,{maximumFractionDigits:2,notation:"compact"}).format(n)}function ri(n,l){return new Intl.NumberFormat(l,{maximumFractionDigits:2}).format(n)}function Za(n,l){return typeof n!="number"||!Number.isFinite(n)?"—":new Intl.NumberFormat(l,{currency:"USD",currencyDisplay:"narrowSymbol",maximumFractionDigits:2,minimumFractionDigits:2,style:"currency"}).format(n)}function US(n){var s;const l=n.usage,r=n.turnRef??((s=n.latestTurn)==null?void 0:s.turnRef)??null,o=(l==null?void 0:l.generationTurnRef)!=null&&r!=null&&l.generationTurnRef!==r;return n.status==="working"?l!=null&&l.task?Nb(l.task,!0):{kind:"pending",label:"Token usage pending"}:(l==null?void 0:l.status)==="calculating"||o?{kind:"calculating",label:"Calculating token usage"}:(l==null?void 0:l.status)==="available"&&l.task?Nb(l.task,!1):!l&&n.threadId&&["completed","failed","needs_input"].includes(n.status??"")?{kind:"calculating",label:"Calculating token usage"}:{kind:"unavailable",label:(l==null?void 0:l.reason)??"Token usage unavailable"}}function Nb(n,l){const r=Tp(n.totalTokens),o=n.estimatedCostUsd==null?"Estimated cost n/a":`Estimated cost ${Za(n.estimatedCostUsd)}`;return{kind:"ready",knownSoFar:l,label:`${r} tokens · ${o}${l?" · known so far":""}`,usage:n}}function k_(n,l){var s,u;if(l.result===null)return{kind:"pending",label:"Turn usage pending"};const r=l.turnRef??l.turnId,o=r?(u=(s=n.usage)==null?void 0:s.turns)==null?void 0:u[r]:null;if((o==null?void 0:o.status)==="calculating")return{kind:"calculating",label:"Calculating turn usage"};if((o==null?void 0:o.status)==="available"&&typeof o.totalTokens=="number"){const f=ri(o.totalTokens),m=o.estimatedCostUsd==null?"Estimated cost n/a":`Estimated cost ${Za(o.estimatedCostUsd)}`;return{kind:"ready",label:`${f} tokens · ${m}`}}return{kind:"unavailable",label:(o==null?void 0:o.reason)??"Turn usage unavailable"}}function H_(n,l){var u,f;const r=k_(n,l);if(r.kind==="ready"){const m=l.turnRef??l.turnId,p=m?(f=(u=n.usage)==null?void 0:u.turns)==null?void 0:f[m]:null,h=typeof(p==null?void 0:p.totalTokens)=="number"?ri(p.totalTokens):Pn,S=(p==null?void 0:p.estimatedCostUsd)==null?Pn:Za(p.estimatedCostUsd);return{animated:!1,cost:{accessibleLabel:`Estimated cost ${(p==null?void 0:p.estimatedCostUsd)==null?"unavailable":S.toLowerCase()}`,value:S},kind:r.kind,note:null,title:r.label,tokens:{accessibleLabel:`${h} tokens`,value:h}}}const o=r.kind==="pending"?"Pending":r.kind==="calculating"?"Calculating":Pn,s=r.kind==="unavailable"?"unavailable":o.toLowerCase();return{animated:r.kind==="pending"||r.kind==="calculating",cost:{accessibleLabel:`Estimated cost ${s}${r.kind==="unavailable"?`: ${r.label}`:""}`,value:o},kind:r.kind,note:r.kind==="unavailable"&&r.label!=="Turn usage unavailable"?r.label:null,title:r.label,tokens:{accessibleLabel:`Tokens ${s}${r.kind==="unavailable"?`: ${r.label}`:""}`,value:o}}}function U_(n){var l,r;return n.status!=="working"&&(((l=n.usage)==null?void 0:l.status)==="calculating"||Object.values(((r=n.usage)==null?void 0:r.turns)??{}).some(o=>o.status==="calculating"))}function Y_(n){var h;const l=US(n);if(l.kind==="pending"||l.kind==="calculating")return{accessibleLabel:l.label,kind:l.kind,label:l.label,title:l.label};if(l.kind==="unavailable")return{accessibleLabel:`Token usage unavailable${l.label==="Token usage unavailable"?"":`: ${l.label}`}`,kind:"unavailable",label:`${Pn} tokens`,title:l.label};const r=Tp(l.usage.totalTokens),o=ri(l.usage.totalTokens),s=l.usage.estimatedCostUsd==null?"cost n/a":`est. ${Za(l.usage.estimatedCostUsd)}`,u=l.knownSoFar?" · Updating…":"",f=l.knownSoFar?"; updating":"",m=l.usage.sourceUpdatedAt??l.usage.sampledAt??((h=n.usage)==null?void 0:h.updatedAt)??null,p=m&&!Number.isNaN(Date.parse(m))?` Cached usage updated ${new Date(m).toLocaleString()}.`:"";return{accessibleLabel:`${o} tokens; ${l.usage.estimatedCostUsd==null?"estimated cost unavailable":`estimated cost ${Za(l.usage.estimatedCostUsd)}`}${f}.${p}`,kind:"ready",label:`${r} tokens · ${s}${u}`,title:`${o} tokens · ${l.usage.estimatedCostUsd==null?"estimated cost unavailable":`unrounded estimate $${l.usage.estimatedCostUsd}`}${u}.${p}`}}function q_(n){return n==="completed"?"teal":n==="needs_input"?"yellow":n==="failed"?"red":n==="working"?"blue":"gray"}function V_(n){return n===null?"Unresolved":n.replaceAll("_"," ")}const G_=30,Vo=6e4,ii=60*Vo,Pr=24*ii;function YS(n){if(typeof n!="string"||n.trim()==="")return null;const l=Date.parse(n);return Number.isFinite(l)?{date:new Date(l),iso:new Date(l).toISOString(),milliseconds:l}:null}function X_(n,{locale:l,timeZone:r}={}){const o=YS(n);return o?new Intl.DateTimeFormat(l,{dateStyle:"medium",timeStyle:"short",timeZone:r}).format(o.date):"—"}function I_(n,l){const r=Math.floor(n/ii),o=Math.floor(n%ii/Vo),s=r===1?"1 hour":`${r} hours`,u=r<6&&o>0?` ${o} minutes`:"";return l==="future"?`in ${s}${u}`:`${s}${u} ago`}function Rp(n,{now:l=Date.now(),locale:r,timeZone:o}={}){const s=YS(n);if(!s)return"—";const u=l-s.milliseconds,f=u<0,m=Math.abs(u);if(m<Vo)return"just now";if(m<2*Vo)return f?"in 1 minute":"1 minute ago";if(m<ii){const p=f?Math.ceil(m/Vo):Math.floor(m/Vo);return f?`in ${p} minutes`:`${p} minutes ago`}if(m<2*ii)return f?"in 1 hour":"1 hour ago";if(m<Pr)return I_(m,f?"future":"past");if(m<2*Pr)return f?"in 1 day":"1 day ago";if(m<G_*Pr){const p=f?Math.ceil(m/Pr):Math.floor(m/Pr);return f?`in ${p} days`:`${p} days ago`}return new Intl.DateTimeFormat(r,{dateStyle:"medium",timeZone:o}).format(s.date)}function Jc({status:n}){return y.jsx(Mc,{className:"taskchef-status-badge",color:q_(n),size:"sm",variant:"light",children:V_(n)})}function Mb({notifications:n,announcements:l=n,onClear:r,onDismiss:o,onOpen:s,tasks:u,withinPortal:f=!0}){if(n.length===0)return null;const m=y.jsxs(y.Fragment,{children:[y.jsxs(Ln,{"aria-label":"Task notifications",className:"taskchef-notifications",p:"sm",radius:"md",role:"region",shadow:"xl",withBorder:!0,children:[y.jsxs(Ct,{justify:"space-between",mb:"xs",children:[y.jsxs(Ct,{gap:6,children:[y.jsx(G3,{"aria-hidden":!0,size:16}),y.jsx(Oe,{fw:700,size:"sm",children:"Updates"})]}),y.jsx(Nl,{onClick:r,size:"compact-xs",variant:"subtle",children:"Clear all"})]}),y.jsx($n.Autosize,{className:"taskchef-notification-scroll",mah:"min(55vh, 520px)",type:"auto",children:y.jsx(Tn,{className:"taskchef-notification-list",gap:6,children:n.map(p=>{const h=u.some(w=>w.id===p.taskId),S=`notification-${Math.abs(Q_(p.id))}`,g=`${S}-summary`,v=`${S}-metadata`;return y.jsx(Ln,{className:"taskchef-notification",p:"xs",radius:"sm",children:y.jsxs(Ct,{align:"flex-start",gap:"xs",wrap:"nowrap",children:[y.jsxs("button",{"aria-describedby":[p.summary?g:null,v].filter(Boolean).join(" "),"aria-label":R_(p,h),className:"taskchef-notification-open",onClick:()=>s(p),type:"button",children:[y.jsxs(Ct,{gap:"xs",justify:"space-between",wrap:"nowrap",children:[y.jsx(Oe,{fw:700,size:"sm",children:Kc(p)}),y.jsx(Jc,{status:p.status})]}),y.jsx(Oe,{lineClamp:1,size:"sm",children:p.title}),p.summary&&y.jsx(Oe,{className:"taskchef-preserve-lines",id:g,lineClamp:3,size:"xs",children:p.summary}),y.jsxs(Oe,{c:"dimmed",id:v,size:"xs",children:[Rp(p.timestamp),h?"":" · Task no longer available"]})]}),y.jsx(Bl,{label:"Dismiss notification",children:y.jsx(ba,{"aria-label":E_(p),color:"gray",onClick:()=>o(p),size:"compact-sm",variant:"subtle",children:y.jsx(OS,{"aria-hidden":!0,size:14})})})]})},p.id)})})})]}),y.jsx(fe,{"aria-atomic":"true","aria-live":"polite",className:"taskchef-visually-hidden",role:"status",children:l.map(Z_).join(" ")})]});return f?y.jsx(Vm,{children:m}):m}function Z_(n){return[Kc(n),n.title,n.summary,n.turnRef?`Turn ref ${n.turnRef}`:null,Rp(n.timestamp)].filter(Boolean).map(l=>String(l).replace(/[.\s]+$/,"")).join(". ")+"."}function Q_(n){let l=0;for(const r of n)l=(l<<5)-l+r.charCodeAt(0)|0;return l}const K_=/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})\/[A-Za-z0-9._-]+$/,F_=/https?:\/\/(?:www\.)?github\.com\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))\/([A-Za-z0-9._-]+)\/(issues|pull)\/([1-9]\d*)(?![A-Za-z0-9_])|([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))\/([A-Za-z0-9._-]+)#([1-9]\d*)(?![A-Za-z0-9_])|#([1-9]\d*)(?![A-Za-z0-9_])|https?:\/\/(?:www\.)?github\.com\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))\/([A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9_-])?)\/?(?=$|[\s#),.;:!?'"\]}>])/gi,J_=/https?:\/\/[^\s<>"'`]+/gi;function Pc(n){return!(n!=null&&n.owner)||!(n!=null&&n.repository)?null:`${n.owner.toLowerCase()}/${n.repository.toLowerCase()}`}function P_(n){const l=new Map;for(const r of n){const o=Pc(r);if(!o)continue;const s=r.repository.toLowerCase(),u=l.get(s)??new Set;u.add(o),l.set(s,u)}return new Set([...l].filter(([,r])=>r.size>1).map(([r])=>r))}function W_(n,l){return l.has(n.repository.toLowerCase())?`${n.owner}/${n.repository}`:n.repository}function qS(n,{related:l=!1}={}){const r=P_(n);let o=null;return n.map(s=>{if(s.provider!=="github"&&!s.owner)return s.label??s.text;const u=Pc(s),f=W_(s,r);if(s.type==="repository")return f;if(l){const m=u===o?`#${s.number}`:`${f} #${s.number}`;return o=u,m}return s.type==="pull"?`${f} PR #${s.number}`:s.type==="issue"?`${f} Issue #${s.number}`:`${f} #${s.number}`})}function eN(n,l){const r=String(n.number??""),o=String(l.number??"");return r.length-o.length||r.localeCompare(o)}function tN(n){const l=new Map,r=new Set,o=new Set,s=new Set;for(const u of n??[]){const f=Pc(u),m=u.number?`${f}#${u.number}`:null;if(u.type==="repository"||!f||r.has(u.label)||s.has(u.url)||m&&o.has(m))continue;r.add(u.label),s.add(u.url),m&&o.add(m);const p=l.get(f)??[];p.push(u),l.set(f,p)}return[...l.values()].map(u=>[...u].sort(eN))}function VS(n){const l=Pc(n);return l?n.type==="repository"?l:n.type==="pull"?`${l} PR #${n.number}`:n.type==="issue"?`${l} Issue #${n.number}`:`${l} #${n.number}`:n.label??n.text}function GS(n,l){return`${n.toLowerCase()}/${l.toLowerCase()}`}function XS(n){return n!=="."&&n!==".."}function IS(n){if(typeof n!="string")return null;let l=n.trim();const r=l.match(/^https?:\/\/(?:www\.)?github\.com\/([^/?#]+)\/([^/?#]+?)(?:\.git)?\/?$/i);if(r&&(l=`${r[1]}/${r[2]}`),!K_.test(l))return null;const[o,s]=l.split("/");return XS(s)?GS(o,s):null}function nN(n){var s;const l=String(n??""),r=ZS(l),o=[];for(const u of l.matchAll(F_)){const f=u.index,m=f>0?l[f-1]:"";let p=null;const h=r.find(T=>f>=T.start&&f<T.end);if(h){const T=!!(u[1]||u[9]);let A=null;try{A=new URL(h.text).hostname.toLowerCase()}catch{}if(!(T&&f===h.start&&(A==="github.com"||A==="www.github.com"))||!QS(h.text))continue;p={end:h.end,suffix:h.text.slice(u[0].length),text:h.text}}if(u[8]&&/[\w&#/]/.test(m)||(u[5]||u[1]||u[9])&&/[\w/]/.test(m))continue;let S=u[1]??u[5]??u[9]??null,g=u[2]??u[6]??u[10]??null;u[9]&&(g=g.replace(/\.git$/i,""));const v=u[4]??u[7]??u[8]??null,w=(s=u[3])==null?void 0:s.toLowerCase(),E=u[9]?"repository":w==="pull"?"pull":w==="issues"?"issue":"generic",C=!!(S&&g);if(C){if(!XS(g))continue;[S,g]=GS(S,g).split("/")}o.push({end:(p==null?void 0:p.end)??f+u[0].length,explicit:C,number:v,owner:S,repository:g,start:f,text:(p==null?void 0:p.text)??u[0],type:E,urlSuffix:(p==null?void 0:p.suffix)??""})}return o}function lN(n){const l=new Set(n.filter(({explicit:r})=>r).map(({owner:r,repository:o})=>`${r}/${o}`));return l.size===1?[...l][0]:null}function aN(n){const l=new Set((n??[]).map(IS).filter(Boolean));return l.size===1?[...l][0]:null}function oN(n,l){const r=n.explicit?`${n.owner}/${n.repository}`:l;if(!r)return null;const[o,s]=r.split("/");if(n.type==="repository")return{kind:"link",label:`${o}/${s}`,number:null,owner:o,provider:"github",repository:s,text:n.text,type:n.type,url:`https://github.com/${o}/${s}${n.urlSuffix}`};const u=n.type==="pull"?"pull":"issues";return{kind:"link",label:`${o}/${s}#${n.number}`,number:n.number,owner:o,provider:"github",repository:s,text:n.text,type:n.type,url:`https://github.com/${o}/${s}/${u}/${n.number}${n.urlSuffix}`}}function rN(n){let l=n,r;do{r=l,l=l.replace(/[.,;:!?]+$/u,"");for(const[o,s]of[["(",")"],["[","]"],["{","}"]])for(;l.endsWith(s);){const u=[...l].filter(m=>m===o).length;if([...l].filter(m=>m===s).length<=u)break;l=l.slice(0,-1)}}while(l!==r);return l}function ZS(n){const l=[];for(const r of String(n??"").matchAll(J_)){const o=rN(r[0]);o&&l.push({end:r.index+o.length,start:r.index,text:o})}return l}function iN(n){const l=n.slice(n.indexOf("//")+2).split(/[?#]/u,1)[0],r=l.indexOf("/");return r<0?!1:l.slice(r).split("/").some(o=>{try{const s=decodeURIComponent(o);return s==="."||s===".."}catch{return!0}})}function QS(n){try{const l=new URL(n);return!l.hostname||l.username||l.password||n.includes("\\")||iN(n)?null:l.href}catch{return null}}function sN(n){const l=[];for(const r of ZS(n)){const o=QS(r.text);o&&l.push({end:r.end,kind:"link",label:r.text,provider:"web",start:r.start,text:r.text,type:"url",url:o})}return l}function cN(n,{projectRepositories:l=[],taskRepository:r=null}={}){const o=String(n??""),s=nN(o),f=lN(s)??IS(r)??aN(l),m=[];let p=0;for(const h of s){h.start>p&&m.push({kind:"text",text:o.slice(p,h.start)});const S=oN(h,f);S?m.push(S):m.push({kind:"ambiguous",reason:`GitHub reference ${h.text} is not linked because the repository is ambiguous.`,text:h.text}),p=h.end}return p<o.length&&m.push({kind:"text",text:o.slice(p)}),m}function uN(n,l={}){const r=String(n??""),o=cN(r,l),s=[];let u=0;for(const h of o){const S=r.indexOf(h.text,u);S<0||(h.kind!=="text"&&s.push({end:S+h.text.length,segment:h,start:S}),u=S+h.text.length)}const f=sN(r).filter(h=>!s.some(({end:S,start:g})=>h.start<S&&h.end>g));if(f.length===0)return o;s.push(...f.map(h=>({end:h.end,segment:h,start:h.start}))),s.sort((h,S)=>h.start-S.start);const m=[];let p=0;for(const h of s)h.start<p||(h.start>p&&m.push({kind:"text",text:r.slice(p,h.start)}),m.push(h.segment),p=h.end);return p<r.length&&m.push({kind:"text",text:r.slice(p)}),m}function KS({task:n}){const l=n.relatedGitHubLinks??[];if(l.length===0&&!n.relatedGitHubLinksTruncated)return null;const r=tN(l),o=qS(r.flat(),{related:!0});let s=0;return y.jsxs(fe,{"aria-label":`Related GitHub links for ${n.title}`,className:"taskchef-github-groups",component:"nav",children:[r.map(u=>y.jsx(Ct,{className:"taskchef-github-group",gap:5,wrap:"wrap",children:u.map(f=>{const m=o[s];s+=1;const p=f.type==="pull"?", GitHub pull request":f.type==="issue"?", GitHub issue":" on GitHub";return y.jsx(_c,{"aria-label":`${VS(f)}${p} (opens in a new tab)`,className:"taskchef-github-link",href:f.url,rel:"noopener noreferrer",size:"xs",target:"_blank",children:m},f.url)})},`${u[0].owner}/${u[0].repository}`)),n.relatedGitHubLinksTruncated&&y.jsx(Oe,{c:"dimmed",size:"xs",children:"More links in task history"})]})}function oc({task:n,text:l}){const r=uN(l,{projectRepositories:n.project.githubRepos,taskRepository:n.relatedGitHubRepository}),o=r.filter(f=>f.kind==="link"),s=qS(o);let u=0;return r.map((f,m)=>{if(f.kind==="text")return f.text;if(f.kind==="ambiguous")return y.jsx("span",{"aria-label":f.reason,className:"taskchef-github-reference-ambiguous",tabIndex:0,title:f.reason,children:f.text},`${m}:${f.text}`);const p=s[u];u+=1;const h=f.type==="pull"?", GitHub pull request":f.type==="issue"?", GitHub issue":f.owner?" on GitHub":"";return y.jsx(_c,{"aria-label":`${VS(f)}${h} (opens in a new tab)`,className:"taskchef-github-link",href:f.url,rel:"noopener noreferrer",target:"_blank",children:p},`${m}:${f.url}`)})}function FS({loading:n,onClick:l,taskTitle:r}){return y.jsx(Nl,{"aria-label":`Open chat for ${r}`,leftSection:y.jsx(e_,{"aria-hidden":!0,size:15}),loading:n,onClick:l,size:"compact-sm",variant:"default",children:"Open chat"})}const JS=x.createContext(null);function fN({children:n,now:l}){return y.jsx(JS,{value:l,children:n})}function rc({label:n,value:l}){const[r,o]=x.useState(!1);x.useContext(JS);const s=r?X_(l):Rp(l);return y.jsx(Bl,{label:r?"Show relative time":"Show exact time",children:y.jsxs(zl,{"aria-label":`${n}: ${s}. ${r?"Show relative time":"Show exact time"}`,className:"taskchef-time",onClick:()=>o(u=>!u),children:[y.jsx(F3,{"aria-hidden":!0,size:12}),y.jsx("span",{className:"taskchef-time-label",children:s})]})})}function Si({children:n,className:l="",...r}){return y.jsx("span",{className:`taskchef-shimmer ${l}`.trim(),"data-animation":"text-shimmer",...r,children:n})}function dN({task:n}){const l=Y_(n),r=l.kind==="pending"||l.kind==="calculating"?y.jsx(Si,{children:l.label}):l.label;return y.jsx(Oe,{"aria-label":l.accessibleLabel,"aria-live":"polite",c:"dimmed",className:"taskchef-task-usage","data-usage-state":l.kind,size:"xs",title:l.title,children:r})}function mN({onOpenCodex:n,onOpenDetail:l,task:r}){const o=h_(r),s=HS(r);return y.jsx(Ln,{className:"taskchef-task-row",component:"article",p:"md",radius:"md",withBorder:!0,children:y.jsxs(Tn,{className:"taskchef-task-main",gap:"sm",children:[y.jsxs(fe,{children:[y.jsxs(fe,{className:"taskchef-card-heading",children:[y.jsx(Mn,{order:3,size:"h5",children:y.jsx("button",{className:"taskchef-title-button",onClick:()=>l(r),type:"button",children:r.title})}),y.jsxs(Tn,{align:"flex-end",className:"taskchef-card-metadata",gap:4,children:[y.jsx(Jc,{status:r.status}),y.jsx(dN,{task:r})]})]}),y.jsx(Oe,{c:"dimmed",mt:2,size:"xs",children:r.project.name})]}),y.jsxs(fe,{className:"taskchef-summary-grid",children:[y.jsx(Oe,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Request"}),y.jsx(Oe,{className:"taskchef-preserve-lines",lineClamp:3,size:"sm",children:y.jsx(oc,{task:r,text:o.requestSummary})}),y.jsx(Oe,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Result"}),y.jsx(Oe,{className:"taskchef-preserve-lines",lineClamp:3,size:"sm",children:o.resultStatus==="working"?y.jsx(Si,{children:o.resultSummary}):y.jsx(oc,{task:r,text:o.resultSummary})})]}),y.jsx(KS,{task:r}),y.jsxs(Ct,{className:"taskchef-card-footer",gap:"md",justify:"space-between",children:[y.jsxs(Ct,{className:"taskchef-card-timing",gap:"sm",children:[y.jsx(rc,{label:`Updated time for ${r.title}`,value:r.meaningfulUpdatedAt??r.updatedAt}),y.jsxs(Oe,{"aria-label":s.accessibleLabel,className:"taskchef-card-duration",size:"xs",title:s.title,children:[y.jsx("span",{children:"Reported work"}),y.jsx("span",{children:s.value})]})]}),y.jsx(FS,{onClick:()=>n(r),taskTitle:r.title})]})]})})}function pN({highlightTurnRef:n,task:l}){const r=g_(l,[]);return r!=null&&r.length?y.jsx(Tn,{gap:"sm",children:[...r].reverse().map((o,s)=>{const u=v_(o),f=o.turnRef??o.turnId??`turn-${s}`,m=f===n,p=H_(l,o);return y.jsx(Ln,{className:`taskchef-turn${m?" taskchef-turn-highlighted":""}`,"data-turn-ref":f,p:"sm",radius:"md",tabIndex:m?-1:void 0,withBorder:!0,children:y.jsxs(Tn,{gap:7,children:[y.jsxs(fe,{className:"taskchef-turn-heading",children:[y.jsx(Jc,{status:u.status}),y.jsxs(fe,{className:"taskchef-turn-timing",children:[y.jsx(rc,{label:"Turn update time",value:u.updatedAt}),y.jsx(hN,{turn:o})]})]}),u.sourceLabel&&y.jsx(Oe,{c:"dimmed",size:"xs",children:u.sourceLabel}),y.jsxs(fe,{children:[y.jsx(Oe,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Request"}),y.jsx(Oe,{className:"taskchef-preserve-lines",size:"sm",children:y.jsx(oc,{task:l,text:o.requestSummary??"Request not recorded."})})]}),y.jsxs(fe,{children:[y.jsx(Oe,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Result"}),y.jsx(Oe,{className:"taskchef-preserve-lines",size:"sm",children:u.status==="working"?y.jsx(Si,{children:u.summary}):y.jsx(oc,{task:l,text:u.summary})})]}),y.jsxs(fe,{className:"taskchef-turn-metrics",children:[y.jsx(Ob,{accessibleLabel:p.tokens.accessibleLabel,animated:p.animated,label:"Tokens",title:p.title,value:p.tokens.value}),y.jsx(Ob,{accessibleLabel:p.cost.accessibleLabel,animated:p.animated,label:"Estimated cost",title:p.title,value:p.cost.value})]}),p.note&&y.jsx(Oe,{c:"dimmed",size:"xs",children:p.note}),y.jsxs(Oe,{c:"dimmed",className:"taskchef-mono",size:"xs",children:["Turn ref: ",f??"—"]})]})},f)})}):y.jsx(Oe,{c:"dimmed",size:"sm",children:"No turn history has been recorded."})}function hN({turn:n}){const l=vN(n.result===null),r=B_(n,l);return y.jsxs(Oe,{"aria-label":r.accessibleLabel,c:"dimmed",className:"taskchef-turn-duration",size:"xs",title:r.title,children:[y.jsx("span",{className:"taskchef-field-label",children:r.label}),y.jsx("span",{children:r.value})]})}function Ob({accessibleLabel:n,animated:l=!1,label:r,title:o,value:s}){return y.jsxs(fe,{className:"taskchef-turn-metric",title:o,children:[y.jsx(Oe,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:r}),y.jsx(Oe,{"aria-label":n,c:"dimmed",size:"xs",children:l?y.jsx(Si,{children:s}):s})]})}function vN(n){const[l,r]=x.useState(()=>Date.now());return x.useEffect(()=>{if(!n)return;r(Date.now());const o=window.setInterval(()=>r(Date.now()),1e3);return()=>window.clearInterval(o)},[n]),l}function gN({task:n}){const l=US(n),r=HS(n),o=l.kind==="ready"?l:null,s=(o==null?void 0:o.usage.cachedInputTokens)??0,u=(o==null?void 0:o.usage.inputTokens)??0,f=o&&u+s>0?`${Math.round(s/(u+s)*100)}%`:"n/a",m=Object.keys((o==null?void 0:o.usage.models)??{}).join(", "),p=l.kind==="pending"?"Pending":l.kind==="calculating"?"Calculating":"n/a",h=l.kind==="unavailable"?"unavailable":p.toLowerCase(),S=[{accessibleValue:o?`${ri(o.usage.totalTokens)} tokens`:l.label,animated:l.kind==="pending"||l.kind==="calculating",label:o!=null&&o.knownSoFar?"Tokens · known so far":"Tokens",title:o?`${ri(o.usage.totalTokens)} tokens`:l.label,value:o?Tp(o.usage.totalTokens):p},{accessibleValue:o?o.usage.estimatedCostUsd==null?"Estimated cost unavailable":`Estimated cost ${Za(o.usage.estimatedCostUsd)}`:`Estimated cost ${h}${l.kind==="unavailable"?`: ${l.label}`:""}`,animated:l.kind==="pending"||l.kind==="calculating",label:"Estimated cost",title:(o==null?void 0:o.usage.estimatedCostUsd)==null?"Estimated cost unavailable":`Unrounded estimate: $${o.usage.estimatedCostUsd}`,value:o?o.usage.estimatedCostUsd==null?"n/a":Za(o.usage.estimatedCostUsd):p},{accessibleValue:r.accessibleLabel,label:"Reported work",title:r.title,value:r.value},...o?[{accessibleValue:m||"Model unavailable",label:"Model",title:m||"Model unavailable",value:m||"n/a"},{accessibleValue:f==="n/a"?"Cache ratio unavailable":`Cache ratio ${f}`,label:"Cache ratio",title:f==="n/a"?"Cache ratio unavailable because no input-token total is available.":void 0,value:f}]:[]];return y.jsxs(fe,{"aria-live":"polite",children:[y.jsx(fe,{className:"taskchef-metrics",children:S.map(({accessibleValue:g,animated:v,label:w,title:E,value:C})=>y.jsxs(Ln,{className:"taskchef-metric",p:"sm",radius:"md",withBorder:!0,children:[y.jsx(Oe,{c:"dimmed",size:"xs",children:w}),y.jsx(Oe,{"aria-label":g,className:"taskchef-metric-value",fw:650,size:"sm",title:E,children:v?y.jsx(Si,{children:C}):C})]},w))}),l.kind==="unavailable"&&l.label!=="Token usage unavailable"&&y.jsx(Oe,{c:"dimmed",mt:"xs",size:"xs",children:l.label})]})}function yN({busy:n,error:l,highlightTurnRef:r,onClose:o,onCopy:s,onOpenCodex:u,onTransition:f,opened:m,task:p,notifications:h,notice:S}){var T;const g=pm("(max-width: 48em)"),[v,w]=x.useState(null);if(x.useEffect(()=>{m||w(null)},[m]),x.useEffect(()=>{m&&r&&requestAnimationFrame(()=>{var A;(A=document.querySelector(`[data-turn-ref="${CSS.escape(r)}"]`))==null||A.focus()})},[r,m,(T=p==null?void 0:p.turns)==null?void 0:T.length,p==null?void 0:p.updatedAt]),x.useEffect(()=>{v&&(!p||!jb(p).includes(v))&&w(null)},[v,p==null?void 0:p.status]),!p)return null;const E=jb(p),C=y.jsxs(Tn,{gap:"lg",children:[h,y.jsxs(fe,{children:[y.jsxs(Ct,{align:"flex-start",gap:"sm",justify:"space-between",wrap:"nowrap",children:[y.jsxs(fe,{children:[y.jsx(Oe,{c:"teal",fw:700,size:"xs",tt:"uppercase",children:p.project.name}),y.jsx(Mn,{id:"task-detail-title",order:2,size:"h3",tabIndex:-1,children:p.title})]}),y.jsx(Jc,{status:p.status})]}),y.jsxs(Ct,{gap:"xs",mt:"md",children:[y.jsx(FS,{loading:n,onClick:u,taskTitle:p.title}),y.jsxs(ht,{position:"bottom-start",shadow:"md",withinPortal:!0,zIndex:360,children:[y.jsx(ht.Target,{children:y.jsx(Bl,{label:"More task actions",children:y.jsx(ba,{"aria-label":"More task actions",disabled:n,variant:"default",children:y.jsx(P3,{"aria-hidden":!0,size:17})})})}),y.jsxs(ht.Dropdown,{children:[y.jsx(ht.Item,{leftSection:y.jsx(Q3,{size:14}),onClick:s,children:"Copy Task ID"}),E.includes("completed")&&y.jsx(ht.Item,{leftSection:y.jsx(I3,{size:14}),onClick:()=>w("completed"),children:"Mark completed"}),E.includes("failed")&&y.jsx(ht.Item,{color:"red",leftSection:y.jsx(OS,{size:14}),onClick:()=>w("failed"),children:"Mark failed"})]})]})]}),y.jsx(fe,{mt:"sm",children:y.jsx(KS,{task:p})})]}),v&&y.jsx(bN,{busy:n,onCancel:()=>w(null),onTransition:f,status:v},v),S&&y.jsx(Ia,{color:"teal",role:"status",children:S}),l&&y.jsx(Ia,{color:"red",role:"alert",children:l}),y.jsxs("section",{"aria-labelledby":"usage-heading",children:[y.jsx(Mn,{id:"usage-heading",mb:"xs",order:3,size:"h5",children:"Usage"}),y.jsx(gN,{task:p})]}),y.jsx(zc,{}),y.jsxs("section",{"aria-labelledby":"activity-heading",children:[y.jsx(Mn,{id:"activity-heading",mb:"sm",order:3,size:"h5",children:"Activity timeline"}),y.jsx(pN,{highlightTurnRef:r,task:p})]}),y.jsxs("section",{"aria-labelledby":"instruction-heading",children:[y.jsx(Mn,{id:"instruction-heading",mb:"xs",order:3,size:"h5",children:"Original instruction"}),y.jsx(fe,{className:"taskchef-code-panel",component:"pre",children:p.instruction})]}),y.jsxs("section",{"aria-labelledby":"metadata-heading",children:[y.jsx(Mn,{id:"metadata-heading",mb:"xs",order:3,size:"h5",children:"Metadata"}),y.jsxs("dl",{className:"taskchef-metadata",children:[y.jsx("dt",{children:"Task ID"}),y.jsx("dd",{children:p.id}),y.jsx("dt",{children:"Thread ID"}),y.jsx("dd",{children:p.threadId??"—"}),y.jsx("dt",{children:"Current turn ref"}),y.jsx("dd",{children:p.turnRef??"—"}),y.jsx("dt",{children:"Project path"}),y.jsx("dd",{children:p.project.path}),y.jsx("dt",{children:"Created"}),y.jsx("dd",{children:y.jsx(rc,{label:"Created time",value:p.createdAt})}),y.jsx("dt",{children:"Updated"}),y.jsx("dd",{children:y.jsx(rc,{label:"Updated time",value:p.meaningfulUpdatedAt??p.updatedAt})}),y.jsx("dt",{children:"Updated by"}),y.jsx("dd",{children:p.updatedBy??"—"})]})]})]});return g?y.jsx(Un,{closeOnClickOutside:!n,closeOnEscape:!n,onClose:o,opened:m,overlayProps:{backgroundOpacity:.55,blur:2},position:"bottom",scrollAreaComponent:$n.Autosize,size:"92%",title:y.jsx("span",{className:"taskchef-visually-hidden",children:"Task details"}),trapFocus:!0,zIndex:300,children:C}):y.jsx(qn,{"aria-labelledby":"task-detail-title",closeOnClickOutside:!n,closeOnEscape:!n,onClose:o,opened:m,overlayProps:{backgroundOpacity:.55,blur:2},scrollAreaComponent:$n.Autosize,size:"min(820px, calc(100vw - 32px))",title:y.jsx("span",{className:"taskchef-visually-hidden",children:"Task details"}),trapFocus:!0,zIndex:300,children:C})}function jb(n){return n.status==="completed"?["failed"]:n.status==="failed"?["completed"]:n.status==="working"||n.status==="needs_input"?["completed","failed"]:[]}function bN({busy:n,onCancel:l,onTransition:r,status:o}){const s=x.useRef(crypto.randomUUID());return y.jsxs(Ia,{color:o==="failed"?"red":"teal",role:"alert",title:`Mark task ${o}?`,children:[y.jsx(Oe,{mb:"sm",size:"sm",children:"This interrupts active work and appends an audited manual dashboard turn."}),y.jsxs(Ct,{gap:"xs",children:[y.jsx(Nl,{color:o==="failed"?"red":"teal",loading:n,onClick:async()=>{const u=await r(o,s.current);u.ok?(l(),requestAnimationFrame(()=>{var f;return(f=document.getElementById("task-detail-title"))==null?void 0:f.focus()})):u.rotateActionId&&(s.current=crypto.randomUUID())},size:"compact-sm",children:"Confirm"}),y.jsx(Nl,{disabled:n,onClick:l,size:"compact-sm",variant:"default",children:"Cancel"})]})]})}const SN={primaryColor:"teal",colors:{teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#087f5b","#067052","#055e46","#044d39"]},defaultRadius:"md",fontFamily:"Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif",headings:{fontFamily:"inherit",fontWeight:"680"},components:{Button:{defaultProps:{radius:"md"}},Paper:{defaultProps:{radius:"md"}}}};var Db;const zb=(Db=document.querySelector('meta[name="taskchef-style-nonce"]'))==null?void 0:Db.content;function xN({totalCount:n,visibleCount:l}){return y.jsxs(Oe,{"aria-live":"polite",className:"taskchef-results-summary",id:"task-results-summary",children:["Tasks: ",l," of ",n]})}function wN({connect:n=!0,initialFilters:l={},initialTasks:r=[]}){const[o,s]=x.useState(r),[u,f]=x.useState(!1),[m,p]=x.useState(null),[h,S]=x.useState(null),[g,v]=x.useState(l.project??""),[w,E]=x.useState(l.status??""),[C,T]=x.useState(l.date??"all"),[A,N]=x.useState(()=>Date.now()),[_,j]=x.useState(null),[L,k]=x.useState(!1),[D,H]=x.useState(!1),[te,le]=x.useState(null),[oe,ee]=x.useState(null),[F,V]=x.useState(null),[ce,O]=x.useState({initialized:r.length>0,announcements:[],notifications:[],seenIds:new Set,signatures:new Map}),B=(_==null?void 0:_.id)??null,U=x.useRef(B);U.current=B;const Z=x.useRef(0),P=x.useRef(null),M=x.useRef(Vs(null)),Y=x.useCallback(ie=>{s(ie.tasks),O(Ne=>{const Te=A_(Ne,ie.tasks);return{initialized:!0,announcements:Te.additions,notifications:Te.notifications,seenIds:Te.seenIds,signatures:Te.signatures}}),p(ie.healthy===!1?"The task log is temporarily unavailable. Showing the last valid snapshot.":null);const ye=U.current;if(ye){const Ne=ie.tasks.find(Te=>Te.id===ye);Ne&&j(Te=>Te?Ab(Te,Ne):Ne)}},[]);x.useEffect(()=>{const ie=window.setInterval(()=>N(Date.now()),3e4);return()=>window.clearInterval(ie)},[]),x.useEffect(()=>{if(!n)return;N_().then(S).catch(()=>S(null));const ie=__({onConnection:f,onError:p,onSnapshot:Y});return()=>ie.close()},[Y,n]);const J=x.useCallback(async(ie,ye=null)=>{const Ne=++Z.current;P.current=ie.updatedAt,M.current=Vs(ie),j(Te=>(Te==null?void 0:Te.id)===ie.id?Ab(Te,ie):ie),k(!0),V(ye),le(null),ee(null);try{for(let Te=0;Te<=40;Te+=1){if(Ne!==Z.current)return;const Ve=await M_(ie.id);if(Ne!==Z.current||(P.current=Ve.updatedAt,M.current=Vs(Ve),j(Ve),!U_(Ve)||Te===40))return;await new Promise(ut=>window.setTimeout(ut,1500))}}catch{Ne===Z.current&&le("Task activity is temporarily unavailable. Showing the latest list snapshot.")}},[]),ae=o.find(ie=>ie.id===B)??null,se=Vs(ae);x.useEffect(()=>{!L||!B||!n||ae&&(ae.updatedAt===P.current&&se===M.current||J(ae,F))},[ae==null?void 0:ae.updatedAt,se]);const de=x.useMemo(()=>[{label:"All projects",value:""},...[...new Set(o.map(ie=>ie.project.name))].sort().map(ie=>({label:ie,value:ie}))],[o]),ge=x.useMemo(()=>DS(o,{project:g,status:w,date:C,now:A}),[o,g,w,C,A]),pe=x.useMemo(()=>b_(o,{project:g,date:C,now:A}),[o,g,C,A]),he=jS.map(({label:ie,value:ye})=>({label:pe[ye]>0?`${ie} ${pe[ye]}`:ie,value:ye}));async function Me(ie){H(!0);try{const ye=await O_(ie.id);ye&&p(ye)}catch{p("Codex could not be opened. Open the project and select the recorded task instead.")}finally{H(!1)}}async function Se(ie,ye){if(!_)return{ok:!1};const Ne=_,Te=m_(Ne);H(!0),le(null);const Ve=await j_(Ne,ie,ye);return H(!1),Ve.task&&(j(ut=>Tb({requestTask:Ne,expected:Te,responseTask:Ve.task,selectedTask:ut})),s(ut=>ut.map(jt=>jt.id===Ne.id?Tb({requestTask:Ne,expected:Te,responseTask:Ve.task,selectedTask:jt}):jt))),Ve.ok&&Ve.task?(V(Ve.task.turnRef??Ve.task.turnId),{ok:!0}):(le(Ve.message??"Task state could not be changed."),{ok:!1,rotateActionId:Ve.code==="stale_task"})}function Ce(ie){const ye=o.find(Te=>Te.id===ie.taskId),Ne=z_({detailTaskId:B,detailOpened:L,highlightTurnRef:F,notifications:ce.notifications,refreshGeneration:Z.current},ie,!!ye);if(O(Te=>({...Te,notifications:Ne.notifications})),!ye){p("This task is no longer present in the current snapshot.");return}J(ye,Ne.highlightTurnRef)}return y.jsx(e0,{defaultColorScheme:"auto",getStyleNonce:zb?()=>zb:void 0,theme:SN,children:y.jsxs(fN,{now:A,children:[y.jsxs(Bn,{className:"taskchef-shell",padding:0,children:[y.jsx(oi,{className:"taskchef-header",component:"header",size:1080,children:y.jsxs(Ct,{className:"taskchef-header-layout",align:"stretch",justify:"space-between",wrap:"nowrap",children:[y.jsxs(fe,{className:"taskchef-header-copy",children:[y.jsxs(Oe,{c:"var(--taskchef-accent)",fw:750,size:"xs",tt:"uppercase",children:["TaskChef ",h&&y.jsxs("span",{className:"taskchef-version",children:["v",h]})]}),y.jsxs(Ct,{gap:"sm",mt:5,wrap:"nowrap",children:[y.jsx(TN,{}),y.jsx(Mn,{order:1,size:"h2",children:"Dashboard"})]})]}),y.jsxs(Tn,{align:"flex-end",className:"taskchef-header-actions",gap:0,justify:"space-between",children:[y.jsxs(Ct,{"aria-live":"polite",className:"taskchef-connection",gap:7,role:"status",wrap:"nowrap",children:[y.jsx(i_,{"aria-hidden":!0,color:u?"var(--mantine-color-teal-6)":"var(--mantine-color-yellow-6)",size:9}),y.jsx(Oe,{c:"dimmed",size:"xs",children:u?"Live":n?"Connecting…":"Fixture preview"})]}),y.jsx(CN,{})]})]})}),y.jsx(Bn.Main,{children:y.jsxs(oi,{className:"taskchef-main",pb:80,size:1080,children:[y.jsx(Ln,{className:"taskchef-toolbar",p:"sm",radius:"md",withBorder:!0,children:y.jsxs(Tn,{gap:"sm",children:[y.jsxs(Ct,{align:"end",gap:"sm",children:[y.jsx(ac,{"aria-label":"Project",data:de,label:"Project",onChange:ie=>v(ie??""),size:"sm",value:g}),y.jsx(ac,{"aria-label":"Updated",data:[{label:"Latest 24 hours",value:"24h"},{label:"Latest 7 days",value:"7d"},{label:"All time",value:"all"}],label:"Updated",onChange:ie=>T(ie??"all"),size:"sm",value:C})]}),y.jsxs(fe,{children:[y.jsx(Oe,{className:"taskchef-filter-label",mb:5,children:"Status"}),y.jsx(Qc,{"aria-label":"Status",data:he,fullWidth:!0,onChange:E,size:"xs",value:w})]})]})}),y.jsx(xN,{totalCount:o.length,visibleCount:ge.length}),m&&y.jsx(Ia,{color:"yellow",icon:y.jsx(q3,{"aria-hidden":!0,size:17}),mt:"md",role:"status",children:y.jsxs(Ct,{gap:"sm",justify:"space-between",wrap:"nowrap",children:[y.jsx(Oe,{size:"sm",children:m}),y.jsx(Ka,{"aria-label":"Dismiss dashboard message",onClick:()=>p(null),size:"sm"})]})}),y.jsxs(Tn,{"aria-describedby":"task-results-summary","aria-label":"Tasks",component:"section",gap:"sm",mt:"xs",children:[ge.map(ie=>y.jsx(mN,{onOpenCodex:Me,onOpenDetail:ye=>void J(ye),task:ie},ie.id)),ge.length===0&&y.jsxs(Ln,{className:"taskchef-empty",p:48,ta:"center",withBorder:!0,children:[y.jsx(Mn,{order:2,size:"h4",children:"No tasks match these filters"}),y.jsx(Oe,{c:"dimmed",mt:4,size:"sm",children:"Choose a different project, date, or status."})]})]})]})})]}),y.jsx(yN,{busy:D,error:te,highlightTurnRef:F,onClose:()=>{D||(Z.current+=1,k(!1),V(null))},onCopy:()=>{_&&(ee(null),navigator.clipboard.writeText(_.id).then(()=>ee("Task ID copied."),()=>ee("Clipboard access is unavailable. Copy the Task ID from metadata.")))},onOpenCodex:()=>_&&void Me(_),onTransition:Se,opened:L,task:_,notice:oe,notifications:L?y.jsx(Mb,{announcements:ce.announcements,notifications:ce.notifications,onClear:()=>O(ie=>({...ie,notifications:Eb({detailTaskId:B,detailOpened:L,highlightTurnRef:F,notifications:ie.notifications,refreshGeneration:Z.current}).notifications})),onDismiss:ie=>O(ye=>({...ye,notifications:Rb(ye.notifications,ie.id)})),onOpen:Ce,tasks:o,withinPortal:!1}):null}),!L&&y.jsx(Mb,{announcements:ce.announcements,notifications:ce.notifications,onClear:()=>O(ie=>({...ie,notifications:Eb({detailTaskId:B,detailOpened:L,highlightTurnRef:F,notifications:ie.notifications,refreshGeneration:Z.current}).notifications})),onDismiss:ie=>O(ye=>({...ye,notifications:Rb(ye.notifications,ie.id)})),onOpen:Ce,tasks:o})]})})}function CN(){const{setColorScheme:n}=Qb(),l=Kb("light"),r=l==="dark"?"light":"dark";return y.jsx(Bl,{label:`Use ${r} theme`,children:y.jsx(ba,{"aria-label":`Use ${r} theme`,color:"gray",onClick:()=>n(r),size:"lg",variant:"subtle",children:l==="dark"?y.jsx(a_,{"aria-hidden":!0,size:18}):y.jsx(n_,{"aria-hidden":!0,size:18})})})}function TN(){const n=Kb("light");return y.jsx("img",{alt:"","aria-hidden":!0,className:"taskchef-brand-icon",height:"42",src:n==="dark"?"/assets/taskchef-dark.svg":"/assets/taskchef.svg",width:"42"})}S2.createRoot(document.getElementById("root")).render(y.jsx(x.StrictMode,{children:y.jsx(wN,{})}));
159
159
  //# sourceMappingURL=app.js.map