taskchef 7.25.2 → 7.26.1

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 t2(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 Nb(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var fd={exports:{}},Zr={};/**
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={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ function t2(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 yy;function n2(){if(yy)return Zr;yy=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 Zr.Fragment=l,Zr.jsx=r,Zr.jsxs=r,Zr}var by;function l2(){return by||(by=1,fd.exports=n2()),fd.exports}var y=l2(),dd={exports:{}},Re={};/**
9
+ */var xy;function u2(){if(xy)return Zr;xy=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 wy;function f2(){return wy||(wy=1,fd.exports=u2()),fd.exports}var y=f2(),dd={exports:{}},Re={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ function t2(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 Sy;function a2(){if(Sy)return Re;Sy=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"),v=Symbol.for("react.activity"),g=Symbol.iterator;function w(M){return M===null||typeof M!="object"?null:(M=g&&M[g]||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 z=_.prototype=new N;z.constructor=_,C(z,A.prototype),z.isPureReactComponent=!0;var L=Array.isArray;function H(){}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(H,H):(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 ve=!1;if(M===null)ve=!0;else switch(de){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(M.$$typeof){case n:case l:ve=!0;break;case S:return ve=M._init,O(ve(M._payload),Y,J,ae,se)}}if(ve)return se=se(M),ve=ae===""?"."+V(M,0):ae,L(se)?(J="",ve!=null&&(J=ve.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,"$&/")+"/")+ve)),Y.push(se)),1;ve=0;var pe=ae===""?".":ae+":";if(L(M))for(var he=0;he<M.length;he++)ae=M[he],de=pe+V(ae,he),ve+=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++),ve+=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 ve}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 k(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=v,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 ve=Array(de),pe=0;pe<de;pe++)ve[pe]=arguments[pe+2];ae.children=ve}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 ve=arguments.length-2;if(ve===1)se.children=J;else if(1<ve){for(var pe=Array(ve),he=0;he<ve;he++)pe[he]=arguments[he+2];se.children=pe}if(M&&M.defaultProps)for(ae in ve=M.defaultProps,ve)se[ae]===void 0&&(se[ae]=ve[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:k}},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(H,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 xy;function lm(){return xy||(xy=1,dd.exports=a2()),dd.exports}var x=lm();const Hd=Nb(x),Mb=t2({__proto__:null,default:Hd},[x]);var md={exports:{}},Qr={},pd={exports:{}},hd={};/**
17
+ */var Cy;function d2(){if(Cy)return Re;Cy=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 Ty;function rm(){return Ty||(Ty=1,dd.exports=d2()),dd.exports}var x=rm();const kd=Db(x),$b=c2({__proto__:null,default:kd},[x]);var md={exports:{}},Qr={},pd={exports:{}},hd={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ function t2(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 wy;function o2(){return wy||(wy=1,(function(n){function l(O,B){var k=O.length;O.push(B);e:for(;0<k;){var Z=k-1>>>1,P=O[Z];if(0<s(P,B))O[Z]=B,O[k]=P,k=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],k=O.pop();if(k!==B){O[0]=k;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,k))ae<P&&0>s(se,J)?(O[Z]=se,O[ae]=k,Z=ae):(O[Z]=J,O[Y]=k,Z=Y);else if(ae<P&&0>s(se,k))O[Z]=se,O[ae]=k,Z=ae;else break e}}return B}function s(O,B){var k=O.sortIndex-B.sortIndex;return k!==0?k: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,v=null,g=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 z(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,z(O),!E)if(r(p)!==null)E=!0,H||(H=!0,ee());else{var B=r(h);B!==null&&ce(L,B.startTime-O)}}var H=!1,D=-1,U=5,te=-1;function le(){return T?!0:!(n.unstable_now()-te<U)}function oe(){if(T=!1,H){var O=n.unstable_now();te=O;var B=!0;try{e:{E=!1,C&&(C=!1,N(D),D=-1),w=!0;var k=g;try{t:{for(z(O),v=r(p);v!==null&&!(v.expirationTime>O&&le());){var Z=v.callback;if(typeof Z=="function"){v.callback=null,g=v.priorityLevel;var P=Z(v.expirationTime<=O);if(O=n.unstable_now(),typeof P=="function"){v.callback=P,z(O),B=!0;break t}v===r(p)&&o(p),z(O)}else o(p);v=r(p)}if(v!==null)B=!0;else{var M=r(h);M!==null&&ce(L,M.startTime-O),B=!1}}break e}finally{v=null,g=k,w=!1}B=void 0}}finally{B?ee():H=!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 g},n.unstable_next=function(O){switch(g){case 1:case 2:case 3:var B=3;break;default:B=g}var k=g;g=B;try{return O()}finally{g=k}},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 k=g;g=O;try{return B()}finally{g=k}},n.unstable_scheduleCallback=function(O,B,k){var Z=n.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?Z+k:Z):k=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=k+P,O={id:S++,callback:B,priorityLevel:O,startTime:k,expirationTime:P,sortIndex:-1},k>Z?(O.sortIndex=k,l(h,O),r(p)===null&&O===r(h)&&(C?(N(D),D=-1):C=!0,ce(L,k-Z))):(O.sortIndex=P,l(p,O),E||w||(E=!0,H||(H=!0,ee()))),O},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(O){var B=g;return function(){var k=g;g=B;try{return O.apply(this,arguments)}finally{g=k}}}})(hd)),hd}var Cy;function r2(){return Cy||(Cy=1,pd.exports=o2()),pd.exports}var gd={exports:{}},$t={};/**
25
+ */var Ry;function m2(){return Ry||(Ry=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 Ey;function p2(){return Ey||(Ey=1,pd.exports=m2()),pd.exports}var vd={exports:{}},$t={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ function t2(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 Ty;function i2(){if(Ty)return $t;Ty=1;var n=lm();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 v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,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,v=m(S,h.crossOrigin),g=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:v,integrity:g,fetchPriority:w}):S==="script"&&o.d.X(p,{crossOrigin:v,integrity:g,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,v=m(S,h.crossOrigin);o.d.L(p,S,{crossOrigin:v,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 Ry;function Ob(){if(Ry)return gd.exports;Ry=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=i2(),gd.exports}/**
33
+ */var Ay;function h2(){if(Ay)return $t;Ay=1;var n=rm();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 _y;function Lb(){if(_y)return vd.exports;_y=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}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,24 +38,24 @@ function t2(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 Ey;function s2(){if(Ey)return Qr;Ey=1;var n=r2(),l=lm(),r=Ob();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 v=Object.assign,g=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"),z=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),H=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 H: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 z: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,k={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),ve=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)?Yv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yv(t),e=qv(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(ve,e);var t=ae.current,a=qv(t,e.type);t!==a&&(J(se,e),J(ae,a))}function Se(e){se.current===e&&(Y(ae),Y(se)),ve.current===e&&(Y(ve),Vr._currentValue=k)}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 Ny;function v2(){if(Ny)return Qr;Ny=1;var n=p2(),l=rm(),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)?Gg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gg(t),e=Xg(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=Xg(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(`
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 d=i.DetermineComponentFrameRoot(),b=d[0],R=d[1];if(b&&R){var j=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 m=i.DetermineComponentFrameRoot(),b=m[0],R=m[1];if(b&&R){var z=b.split(`
44
44
  `),X=R.split(`
45
- `);for(c=i=0;i<j.length&&!j[i].includes("DetermineComponentFrameRoot");)i++;for(;c<X.length&&!X[c].includes("DetermineComponentFrameRoot");)c++;if(i===j.length||c===X.length)for(i=j.length-1,c=X.length-1;1<=i&&0<=c&&j[i]!==X[c];)c--;for(;1<=i&&0<=c;i--,c--)if(j[i]!==X[c]){if(i!==1||c!==1)do if(i--,c--,0>c||j[i]!==X[c]){var W=`
46
- `+j[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`
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
+ `+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 zt=Object.prototype.hasOwnProperty,fn=n.unstable_scheduleCallback,dn=n.unstable_cancelCallback,jt=n.unstable_shouldYield,Pt=n.unstable_requestPaint,ze=n.unstable_now,Bl=n.unstable_getCurrentPriorityLevel,yt=n.unstable_ImmediatePriority,Sa=n.unstable_UserBlockingPriority,Ye=n.unstable_NormalPriority,Hl=n.unstable_LowPriority,ol=n.unstable_IdlePriority,Dt=n.log,_n=n.unstable_setDisableYieldValue,Wt=null,St=null;function en(e){if(typeof Dt=="function"&&_n(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Wt,e)}catch{}}var Ee=Math.clz32?Math.clz32:Si,Gn=Math.log,bi=Math.LN2;function Si(e){return e>>>=0,e===0?32:31-(Gn(e)/bi|0)|0}var Qa=256,Ka=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 nr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qS(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 wp(){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 VS(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,j=e.expirationTimes,X=e.hiddenUpdates;for(a=b&~a;0<a;){var W=31-Ee(a),re=1<<W;R[W]=0,j[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&&Cp(e,i,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(b&~t))}function Cp(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 Tp(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 Rp(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 Ep(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:fy(e.type))}function Ap(e,t){var a=B.p;try{return B.p=e,t()}finally{B.p=a}}var kl=Math.random().toString(36).slice(2),Rt="__reactFiber$"+kl,kt="__reactProps$"+kl,Fa="__reactContainer$"+kl,tu="__reactEvents$"+kl,GS="__reactListeners$"+kl,XS="__reactHandles$"+kl,_p="__reactResources$"+kl,ar="__reactMarker$"+kl;function nu(e){delete e[Rt],delete e[kt],delete e[tu],delete e[GS],delete e[XS]}function Ja(e){var t=e[Rt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Fa]||a[Rt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Kv(e);e!==null;){if(a=e[Rt])return a;e=Kv(e)}return t}e=a,a=e.parentNode}return null}function Pa(e){if(e=e[Rt]||e[Fa]){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 Wa(e){var t=e[_p];return t||(t=e[_p]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[ar]=!0}var Np=new Set,Mp={};function xa(e,t){eo(e,t),eo(e+"Capture",t)}function eo(e,t){for(Mp[e]=t,e=0;e<t.length;e++)Np.add(t[e])}var IS=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]*$"),Op={},zp={};function ZS(e){return zt.call(zp,e)?!0:zt.call(Op,e)?!1:IS.test(e)?zp[e]=!0:(Op[e]=!0,!1)}function xi(e,t,a){if(ZS(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 wi(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 jp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function QS(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 lu(e){if(!e._valueTracker){var t=jp(e)?"checked":"value";e._valueTracker=QS(e,t,""+e[t])}}function Dp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=jp(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Ci(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 KS=/[\n"\\]/g;function pn(e){return e.replace(KS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function au(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?ou(e,b,mn(t)):a!=null?ou(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 $p(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)){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"&&Ci(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function to(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 Lp(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 Bp(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 no(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var FS=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 Hp(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||FS.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Up(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&&Hp(e,c,i)}else for(var d in t)t.hasOwnProperty(d)&&Hp(e,d,t[d])}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 JS=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"]]),PS=/^[\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 Ti(e){return PS.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 lo=null,ao=null;function kp(e){var t=Pa(e);if(t&&(e=t.stateNode)){var a=e[kt]||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[kt]||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&&Dp(i)}break e;case"textarea":Lp(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&to(e,!!a.multiple,t,!1)}}}var cu=!1;function Yp(e,t,a){if(cu)return e(t,a);cu=!0;try{var i=e(t);return i}finally{if(cu=!1,(lo!==null||ao!==null)&&(fs(),lo&&(t=lo,e=ao,ao=lo=null,kp(t),e)))for(t=0;t<e.length;t++)kp(e[t])}}function rr(e,t){var a=e.stateNode;if(a===null)return null;var i=a[kt]||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,Ri=null;function qp(){if(Ri)return Ri;var e,t=fu,a=t.length,i,c="value"in Yl?Yl.value:Yl.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 Ri=c.slice(e,1<i?1-i:void 0)}function Ei(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 Ai(){return!0}function Vp(){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)?Ai:Vp,this.isPropagationStopped=Vp,this}return v(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=Ai)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ai)},persist:function(){},isPersistent:Ai}),t}var wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_i=Yt(wa),sr=v({},wa,{view:0,detail:0}),WS=Yt(sr),du,mu,cr,Ni=v({},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}}),Gp=Yt(Ni),ex=v({},Ni,{dataTransfer:0}),tx=Yt(ex),nx=v({},sr,{relatedTarget:0}),pu=Yt(nx),lx=v({},wa,{animationName:0,elapsedTime:0,pseudoElement:0}),ax=Yt(lx),ox=v({},wa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rx=Yt(ox),ix=v({},wa,{data:0}),Xp=Yt(ix),sx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cx={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"},ux={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ux[e])?!!t[e]:!1}function hu(){return fx}var dx=v({},sr,{key:function(e){if(e.key){var t=sx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ei(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cx[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"?Ei(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ei(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mx=Yt(dx),px=v({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ip=Yt(px),hx=v({},sr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hu}),gx=Yt(hx),vx=v({},wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),yx=Yt(vx),bx=v({},Ni,{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}),Sx=Yt(bx),xx=v({},wa,{newState:0,oldState:0}),wx=Yt(xx),Cx=[9,13,27,32],gu=sl&&"CompositionEvent"in window,ur=null;sl&&"documentMode"in document&&(ur=document.documentMode);var Tx=sl&&"TextEvent"in window&&!ur,Zp=sl&&(!gu||ur&&8<ur&&11>=ur),Qp=" ",Kp=!1;function Fp(e,t){switch(e){case"keyup":return Cx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function Rx(e,t){switch(e){case"compositionend":return Jp(t);case"keypress":return t.which!==32?null:(Kp=!0,Qp);case"textInput":return e=t.data,e===Qp&&Kp?null:e;default:return null}}function Ex(e,t){if(oo)return e==="compositionend"||!gu&&Fp(e,t)?(e=qp(),Ri=fu=Yl=null,oo=!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 Zp&&t.locale!=="ko"?null:t.data;default:return null}}var Ax={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 Pp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ax[e.type]:t==="textarea"}function Wp(e,t,a,i){lo?ao?ao.push(i):ao=[i]:lo=i,t=ys(t,"onChange"),0<t.length&&(a=new _i("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var fr=null,dr=null;function _x(e){$v(e,0)}function Mi(e){var t=or(e);if(Dp(t))return e}function eh(e,t){if(e==="change")return t}var th=!1;if(sl){var vu;if(sl){var yu="oninput"in document;if(!yu){var nh=document.createElement("div");nh.setAttribute("oninput","return;"),yu=typeof nh.oninput=="function"}vu=yu}else vu=!1;th=vu&&(!document.documentMode||9<document.documentMode)}function lh(){fr&&(fr.detachEvent("onpropertychange",ah),dr=fr=null)}function ah(e){if(e.propertyName==="value"&&Mi(dr)){var t=[];Wp(t,dr,e,su(e)),Yp(_x,t)}}function Nx(e,t,a){e==="focusin"?(lh(),fr=t,dr=a,fr.attachEvent("onpropertychange",ah)):e==="focusout"&&lh()}function Mx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mi(dr)}function Ox(e,t){if(e==="click")return Mi(t)}function zx(e,t){if(e==="input"||e==="change")return Mi(t)}function jx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:jx;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(!zt.call(t,c)||!tn(e[c],t[c]))return!1}return!0}function oh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rh(e,t){var a=oh(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=oh(a)}}function ih(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ih(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ci(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=Ci(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 Dx=sl&&"documentMode"in document&&11>=document.documentMode,ro=null,Su=null,pr=null,xu=!1;function ch(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;xu||ro==null||ro!==Ci(i)||(i=ro,"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=ys(Su,"onSelect"),0<i.length&&(t=new _i("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ro)))}function Ca(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var io={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={},uh={};sl&&(uh=document.createElement("div").style,"AnimationEvent"in window||(delete io.animationend.animation,delete io.animationiteration.animation,delete io.animationstart.animation),"TransitionEvent"in window||delete io.transitionend.transition);function Ta(e){if(wu[e])return wu[e];if(!io[e])return e;var t=io[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in uh)return wu[e]=t[a];return e}var fh=Ta("animationend"),dh=Ta("animationiteration"),mh=Ta("animationstart"),$x=Ta("transitionrun"),Lx=Ta("transitionstart"),Bx=Ta("transitioncancel"),ph=Ta("transitionend"),hh=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 Nn(e,t){hh.set(e,t),xa(t,[e])}var Oi=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=[],so=0,Tu=0;function zi(){for(var e=so,t=Tu=so=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&&gh(a,c,d)}}function ji(e,t,a,i){hn[so++]=e,hn[so++]=t,hn[so++]=a,hn[so++]=i,Tu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Ru(e,t,a,i){return ji(e,t,a,i),Di(e)}function Ra(e,t){return ji(e,null,null,t),Di(e)}function gh(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 Di(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 co={};function Hx(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 Hx(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 vh(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 $i(e,t,a,i,c,d){var b=0;if(i=e,typeof e=="function")Eu(e)&&(b=1);else if(typeof e=="string")b=Vw(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 Ea(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 H:return e=nn(19,a,t,c),e.elementType=H,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 z: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=d,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 yh(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 bh=new WeakMap;function gn(e,t){if(typeof e=="object"&&e!==null){var a=bh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ut(t)},bh.set(e,t),t)}return{value:e,source:t,stack:ut(t)}}var uo=[],fo=0,Li=null,hr=0,vn=[],yn=0,ql=null,Xn=1,In="";function ul(e,t){uo[fo++]=hr,uo[fo++]=Li,Li=e,hr=t}function Sh(e,t,a){vn[yn++]=Xn,vn[yn++]=In,vn[yn++]=ql,ql=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 Nu(e){e.return!==null&&(ul(e,1),Sh(e,1,0))}function Mu(e){for(;e===Li;)Li=uo[--fo],uo[fo]=null,hr=uo[--fo],uo[fo]=null;for(;e===ql;)ql=vn[--yn],vn[yn]=null,In=vn[--yn],vn[yn]=null,Xn=vn[--yn],vn[yn]=null}function xh(e,t){vn[yn++]=Xn,vn[yn++]=In,vn[yn++]=ql,Xn=t.id,In=t.overflow,ql=e}var Et=null,We=null,He=!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 gr(gn(t,e)),Ou}function wh(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Rt]=e,t[kt]=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<Hr.length;a++)De(Hr[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),$p(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),Bp(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||Uv(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 Ch(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 mo(e){if(e!==Et)return!1;if(!He)return Ch(e),He=!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),Ch(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Qv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Qv(e)}else t===27?(t=We,aa(e.type)?(e=td,td=null,We=e):We=t):We=Et?xn(e.stateNode.nextSibling):null;return!0}function Aa(){We=Et=null,He=!1}function zu(){var e=Vl;return e!==null&&(Xt===null?Xt=e:Xt.push.apply(Xt,e),Vl=null),e}function gr(e){Vl===null?Vl=[e]:Vl.push(e)}var ju=M(null),_a=null,fl=null;function Xl(e,t,a){J(ju,t._currentValue),t._currentValue=a}function dl(e){e._currentValue=ju.current,Y(ju)}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 d=c.dependencies;if(d!==null){var b=c.child;d=d.firstContext;e:for(;d!==null;){var R=d;d=c;for(var j=0;j<t.length;j++)if(R.context===t[j]){d.lanes|=a,R=d.alternate,R!==null&&(R.lanes|=a),Du(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),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 po(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===ve.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 Bi(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 At(e){return Th(_a,e)}function Hi(e,t){return _a===null&&Na(e),Th(e,t)}function Th(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 Ux=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()})}},kx=n.unstable_scheduleCallback,Yx=n.unstable_NormalPriority,ft={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lu(){return{controller:new Ux,data:new Map,refCount:0}}function vr(e){e.refCount--,e.refCount===0&&kx(Yx,function(){e.controller.abort()})}var yr=null,Bu=0,ho=0,go=null;function qx(e,t){if(yr===null){var a=yr=[];Bu=0,ho=Yf(),go={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Bu++,t.then(Rh,Rh),t}function Rh(){if(--Bu===0&&yr!==null){go!==null&&(go.status="fulfilled");var e=yr;yr=null,ho=0,go=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Vx(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 Eh=O.S;O.S=function(e,t){cv=ze(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&qx(e,t),Eh!==null&&Eh(e,t)};var Ma=M(null);function Hu(){var e=Ma.current;return e!==null?e:Fe.pooledCache}function Ui(e,t){t===null?J(Ma,Ma.current):J(Ma,t.pool)}function Ah(){var e=Hu();return e===null?null:{parent:ft._currentValue,pool:e}}var vo=Error(o(460)),Uu=Error(o(474)),ki=Error(o(542)),Yi={then:function(){}};function _h(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Nh(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,Oh(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,Oh(e),e}throw za=t,vo}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(za=a,vo):a}}var za=null;function Mh(){if(za===null)throw Error(o(459));var e=za;return za=null,e}function Oh(e){if(e===vo||e===ki)throw Error(o(483))}var yo=null,br=0;function qi(e){var t=br;return br+=1,yo===null&&(yo=[]),Nh(yo,e,t)}function Sr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Vi(e,t){throw t.$$typeof===g?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function zh(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 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?($=Au(G,q.mode,ne),$.return=q,$):($=c($,G),$.return=q,$)}function j(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,$):($=$i(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=$i($.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,qi($),G);if($.$$typeof===_)return re(q,Hi(q,$),G);Vi(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?j(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,$,qi(G),ne);if(G.$$typeof===_)return I(q,$,Hi(q,G),ne);Vi(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,j($,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,qi(ne),xe);if(ne.$$typeof===_)return Q(q,$,G,Hi($,ne),xe);Vi($,ne)}return null}function ge(q,$,G,ne){for(var xe=null,Ue=null,be=$,_e=$=0,Le=null;be!==null&&_e<G.length;_e++){be.index>_e?(Le=be,be=null):Le=be.sibling;var ke=I(q,be,G[_e],ne);if(ke===null){be===null&&(be=Le);break}e&&be&&ke.alternate===null&&t(q,be),$=d(ke,$,_e),Ue===null?xe=ke:Ue.sibling=ke,Ue=ke,be=Le}if(_e===G.length)return a(q,be),He&&ul(q,_e),xe;if(be===null){for(;_e<G.length;_e++)be=re(q,G[_e],ne),be!==null&&($=d(be,$,_e),Ue===null?xe=be:Ue.sibling=be,Ue=be);return He&&ul(q,_e),xe}for(be=i(be);_e<G.length;_e++)Le=Q(be,q,_e,G[_e],ne),Le!==null&&(e&&Le.alternate!==null&&be.delete(Le.key===null?_e:Le.key),$=d(Le,$,_e),Ue===null?xe=Le:Ue.sibling=Le,Ue=Le);return e&&be.forEach(function(ca){return t(q,ca)}),He&&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,Le=null,ke=G.next();be!==null&&!ke.done;_e++,ke=G.next()){be.index>_e?(Le=be,be=null):Le=be.sibling;var ca=I(q,be,ke.value,ne);if(ca===null){be===null&&(be=Le);break}e&&be&&ca.alternate===null&&t(q,be),$=d(ca,$,_e),Ue===null?xe=ca:Ue.sibling=ca,Ue=ca,be=Le}if(ke.done)return a(q,be),He&&ul(q,_e),xe;if(be===null){for(;!ke.done;_e++,ke=G.next())ke=re(q,ke.value,ne),ke!==null&&($=d(ke,$,_e),Ue===null?xe=ke:Ue.sibling=ke,Ue=ke);return He&&ul(q,_e),xe}for(be=i(be);!ke.done;_e++,ke=G.next())ke=Q(be,q,_e,ke.value,ne),ke!==null&&(e&&ke.alternate!==null&&be.delete(ke.key===null?_e:ke.key),$=d(ke,$,_e),Ue===null?xe=ke:Ue.sibling=ke,Ue=ke);return e&&be.forEach(function(e2){return t(q,e2)}),He&&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=$i(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 ge(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,$,qi(G),ne);if(G.$$typeof===_)return Ke(q,$,Hi(q,G),ne);Vi(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 yo=null,xe}catch(be){if(be===vo||be===ki)throw be;var Ue=nn(29,be,null,q.mode);return Ue.lanes=ne,Ue.return=q,Ue}finally{}}}var ja=zh(!0),jh=zh(!1),Il=!1;function ku(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=Di(e),gh(e,null,a),t}return ji(e,i,t,a),Di(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,Tp(e,a)}}function qu(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 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 d=c.firstBaseUpdate,b=c.lastBaseUpdate,R=c.shared.pending;if(R!==null){c.shared.pending=null;var j=R,X=j.next;j.next=null,b===null?d=X:b.next=X,b=j;var W=e.alternate;W!==null&&(W=W.updateQueue,R=W.lastBaseUpdate,R!==b&&(R===null?W.firstBaseUpdate=X:R.next=X,W.lastBaseUpdate=j))}if(d!==null){var re=c.baseState;b=0,W=X=j=null,R=d;do{var I=R.lane&-536870913,Q=I!==R.lane;if(Q?($e&I)===I:(i&I)===I){I!==0&&I===ho&&(Vu=!0),W!==null&&(W=W.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var ge=e,we=R;I=t;var Ke=a;switch(we.tag){case 1:if(ge=we.payload,typeof ge=="function"){re=ge.call(Ke,re,I);break e}re=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=we.payload,I=typeof ge=="function"?ge.call(Ke,re,I):ge,I==null)break e;re=v({},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,j=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&&(j=re),c.baseState=j,c.firstBaseUpdate=X,c.lastBaseUpdate=W,d===null&&(c.shared.lanes=0),Wl|=b,e.lanes=b,e.memoizedState=re}}function Dh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function $h(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Dh(a[e],t)}var bo=M(null),Gi=M(0);function Lh(e,t){e=xl,J(Gi,e),J(bo,t),xl=e|t.baseLanes}function Gu(){J(Gi,xl),J(bo,bo.current)}function Xu(){xl=Gi.current,Y(bo),Y(Gi)}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||bo.current!==null||t.memoizedState!==null)&&(Sn=e)}function Iu(e){J(st,st.current),J(ln,e),Sn===null&&(Sn=e)}function Bh(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 Xi(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,Ii=!1,So=!1,Da=!1,Zi=0,Tr=0,xo=null,Gx=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,d){return ml=d,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Sg:uf,Da=!1,d=a(i,c),Da=!1,So&&(d=Uh(t,a,i,c)),Hh(e),d}function Hh(e){O.H=Ar;var t=Ze!==null&&Ze.next!==null;if(ml=0,dt=Ze=Ae=null,Ii=!1,Tr=0,xo=null,t)throw Error(o(300));e===null||mt||(e=e.dependencies,e!==null&&Bi(e)&&(mt=!0))}function Uh(e,t,a,i){Ae=e;var c=0;do{if(So&&(xo=null),Tr=0,So=!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=xg,d=t(a,i)}while(So);return d}function Xx(){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=Zi!==0;return Zi=0,e}function Fu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ju(e){if(Ii){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ii=!1}ml=0,dt=Ze=Ae=null,So=!1,Tr=Zi=0,xo=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 Qi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rr(e){var t=Tr;return Tr+=1,xo===null&&(xo=[]),e=Nh(xo,e,t),t=Ae,(dt===null?t.memoizedState:dt.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Sg:uf),e}function Ki(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rr(e);if(e.$$typeof===_)return At(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=Qi(),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 Fi(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,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,j=null,X=t,W=!1;do{var re=X.lane&-536870913;if(re!==X.lane?($e&re)===re:(ml&re)===re){var I=X.revertLane;if(I===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),re===ho&&(W=!0);else if((ml&I)===I){X=X.next,I===ho&&(W=!0);continue}else re={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},j===null?(R=j=re,b=d):j=j.next=re,Ae.lanes|=I,Wl|=I;re=X.action,Da&&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},j===null?(R=j=I,b=d):j=j.next=I,Ae.lanes|=re,Wl|=re;X=X.next}while(X!==null&&X!==t);if(j===null?b=d:j.next=R,!tn(d,e.memoizedState)&&(mt=!0,W&&(a=go,a!==null)))throw a;e.memoizedState=d,e.baseState=b,e.baseQueue=j,i.lastRenderedState=d}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,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 kh(e,t,a){var i=Ae,c=ct(),d=He;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,lf(Vh.bind(null,i,c,e),[e]),c.getSnapshot!==t||b||dt!==null&&dt.memoizedState.tag&1){if(i.flags|=2048,wo(9,{destroy:void 0},qh.bind(null,i,c,a,t),null),Fe===null)throw Error(o(349));d||(ml&127)!==0||Yh(i,t,a)}return a}function Yh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ae.updateQueue,t===null?(t=Qi(),Ae.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function qh(e,t,a,i){t.value=a,t.getSnapshot=i,Gh(t)&&Xh(e)}function Vh(e,t,a){return a(function(){Gh(t)&&Xh(e)})}function Gh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!tn(e,a)}catch{return!0}}function Xh(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 Ih(e,t,a,i){return e.baseState=a,Wu(e,Ze,typeof i=="function"?i:pl)}function Ix(e,t,a,i,c){if(Wi(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,Zh(t,d)):(d.next=a.next,t.pending=a.next=d)}}function Zh(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),j=O.S;j!==null&&j(b,R),Qh(e,t,R)}catch(X){nf(e,t,X)}finally{d!==null&&b.types!==null&&(d.types=b.types),O.T=d}}else try{d=a(c,i),Qh(e,t,d)}catch(X){nf(e,t,X)}}function Qh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Kh(e,t,i)},function(i){return nf(e,t,i)}):Kh(e,t,a)}function Kh(e,t,a){t.status="fulfilled",t.value=a,Fh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Zh(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,Fh(t),t=t.next;while(t!==i)}e.action=null}function Fh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jh(e,t){return t}function Ph(e,t){if(He){var a=Fe.formState;if(a!==null){e:{var i=Ae;if(He){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}}Gl(i)}i=!1}i&&(t=a[0])}}return a=Lt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jh,lastRenderedState:t},a.queue=i,a=vg.bind(null,Ae,i),i.dispatch=a,i=tf(!1),d=cf.bind(null,Ae,!1,i.queue),i=Lt(),c={state:t,dispatch:null,action:e,pending:null},i.queue=c,a=Ix.bind(null,Ae,c,d,a),c.dispatch=a,i.memoizedState=e,[t,a,!1]}function Wh(e){var t=ct();return eg(t,Ze,e)}function eg(e,t,a){if(t=Wu(e,t,Jh)[0],e=Fi(pl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Rr(t)}catch(b){throw b===vo?ki:b}else i=t;t=ct();var c=t.queue,d=c.dispatch;return a!==t.memoizedState&&(Ae.flags|=2048,wo(9,{destroy:void 0},Zx.bind(null,c,a),null)),[i,d,e]}function Zx(e,t){e.action=t}function tg(e){var t=ct(),a=Ze;if(a!==null)return eg(t,a,e);ct(),t=t.memoizedState,a=ct();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function wo(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=Qi(),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 ng(){return ct().memoizedState}function Ji(e,t,a,i){var c=Lt();Ae.flags|=e,c.memoizedState=wo(1|t,{destroy:void 0},a,i===void 0?null:i)}function Pi(e,t,a,i){var c=ct();i=i===void 0?null:i;var d=c.memoizedState.inst;Ze!==null&&i!==null&&Zu(i,Ze.memoizedState.deps)?c.memoizedState=wo(t,d,a,i):(Ae.flags|=e,c.memoizedState=wo(1|t,d,a,i))}function lg(e,t){Ji(8390656,8,e,t)}function lf(e,t){Pi(2048,8,e,t)}function Qx(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=Qi(),Ae.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function ag(e){var t=ct().memoizedState;return Qx({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function og(e,t){return Pi(4,2,e,t)}function rg(e,t){return Pi(4,4,e,t)}function ig(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 sg(e,t,a){a=a!=null?a.concat([e]):null,Pi(4,4,ig.bind(null,t,e),a)}function af(){}function cg(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 ug(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&&($e&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=fv(),Ae.lanes|=e,Wl|=e,a)}function fg(e,t,a,i){return tn(a,t)?a:bo.current!==null?(e=of(e,a,i),tn(e,t)||(mt=!0),e):(ml&42)===0||(ml&1073741824)!==0&&($e&261930)===0?(mt=!0,e.memoizedState=a):(e=fv(),Ae.lanes|=e,Wl|=e,t)}function dg(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,cf(e,!1,t,a);try{var j=c(),X=O.S;if(X!==null&&X(R,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var W=Vx(j,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=d,b!==null&&R.types!==null&&(b.types=R.types),O.T=b}}function Kx(){}function rf(e,t,a,i){if(e.tag!==5)throw Error(o(476));var c=mg(e).queue;dg(e,c,t,k,a===null?Kx:function(){return pg(e),a(i)})}function mg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:k},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 pg(e){var t=mg(e);t.next===null&&(t=e.alternate.memoizedState),Er(e,t.next.queue,{},sn())}function sf(){return At(Vr)}function hg(){return ct().memoizedState}function gg(){return ct().memoizedState}function Fx(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 Jx(e,t,a){var i=sn();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Wi(e)?yg(t,a):(a=Ru(e,t,a,i),a!==null&&(It(a,e,i),bg(a,t,i)))}function vg(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(Wi(e))yg(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 ji(e,t,c,0),Fe===null&&zi(),!1}catch{}finally{}if(a=Ru(e,t,c,i),a!==null)return It(a,e,i),bg(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},Wi(e)){if(t)throw Error(o(479))}else t=Ru(e,a,i,2),t!==null&&It(t,e,2)}function Wi(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function yg(e,t){So=Ii=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function bg(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Tp(e,a)}}var Ar={readContext:At,use:Ki,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 Sg={readContext:At,use:Ki,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:lg,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ji(4194308,4,ig.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ji(4194308,4,e,t)},useInsertionEffect:function(e,t){Ji(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=Jx.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=vg.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=dg.bind(null,Ae,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Ae,c=Lt();if(He){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Fe===null)throw Error(o(349));($e&127)!==0||Yh(i,t,a)}c.memoizedState=a;var d={value:a,getSnapshot:t};return c.queue=d,lg(Vh.bind(null,i,d,e),[e]),i.flags|=2048,wo(9,{destroy:void 0},qh.bind(null,i,d,a,t),null),a},useId:function(){var e=Lt(),t=Fe.identifierPrefix;if(He){var a=In,i=Xn;a=(i&~(1<<32-Ee(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Zi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Gx++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:sf,useFormState:Ph,useActionState:Ph,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=Fx.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:At,use:Ki,useCallback:cg,useContext:At,useEffect:lf,useImperativeHandle:sg,useInsertionEffect:og,useLayoutEffect:rg,useMemo:ug,useReducer:Fi,useRef:ng,useState:function(){return Fi(pl)},useDebugValue:af,useDeferredValue:function(e,t){var a=ct();return fg(a,Ze.memoizedState,e,t)},useTransition:function(){var e=Fi(pl)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:Rr(e),t]},useSyncExternalStore:kh,useId:hg,useHostTransitionStatus:sf,useFormState:Wh,useActionState:Wh,useOptimistic:function(e,t){var a=ct();return Ih(a,Ze,e,t)},useMemoCache:Pu,useCacheRefresh:gg};uf.useEffectEvent=ag;var xg={readContext:At,use:Ki,useCallback:cg,useContext:At,useEffect:lf,useImperativeHandle:sg,useInsertionEffect:og,useLayoutEffect:rg,useMemo:ug,useReducer:ef,useRef:ng,useState:function(){return ef(pl)},useDebugValue:af,useDeferredValue:function(e,t){var a=ct();return Ze===null?of(a,e,t):fg(a,Ze.memoizedState,e,t)},useTransition:function(){var e=ef(pl)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:Rr(e),t]},useSyncExternalStore:kh,useId:hg,useHostTransitionStatus:sf,useFormState:tg,useActionState:tg,useOptimistic:function(e,t){var a=ct();return Ze!==null?Ih(a,Ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Pu,useCacheRefresh:gg};xg.useEffectEvent=ag;function ff(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:v({},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 wg(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?!mr(a,i)||!mr(c,d):!0}function Cg(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=v({},a));for(var c in e)a[c]===void 0&&(a[c]=e[c])}return a}function Tg(e){Oi(e)}function Rg(e){console.error(e)}function Eg(e){Oi(e)}function es(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Ag(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(){es(e,t)},a}function _g(e){return e=Zl(e),e.tag=3,e}function Ng(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(){Ag(t,a,i)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Ag(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 Px(e,t,a,i,c){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&po(t,a,c,!0),a=ln.current,a!==null){switch(a.tag){case 31:case 13:return Sn===null?ds():a.alternate===null&&rt===0&&(rt=3),a.flags&=-257,a.flags|=65536,a.lanes=c,i===Yi?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===Yi?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),ds(),!1}if(He)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}),gr(gn(e,a)))):(i!==Ou&&(t=Error(o(423),{cause:i}),gr(gn(t,a))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,i=gn(i,a),c=mf(e.stateNode,i,c),qu(e,c),rt!==4&&(rt=2)),!1;var d=Error(o(520),{cause:i});if(d=gn(d,a),$r===null?$r=[d]:$r.push(d),rt!==4&&(rt=2),t===null)return!0;i=gn(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,d=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ea===null||!ea.has(d))))return a.flags|=65536,c&=-c,a.lanes|=c,c=_g(c),Ng(c,e,a,i),qu(a,c),!1}a=a.return}while(a!==null);return!1}var pf=Error(o(461)),mt=!1;function _t(e,t,a,i){t.child=e===null?jh(t,null,a,i):ja(t,e.child,a,i)}function Mg(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 Na(t),i=Qu(e,t,a,b,d,c),R=Ku(),e!==null&&!mt?(Fu(e,t,c),hl(e,t,c)):(He&&R&&Nu(t),t.flags|=1,_t(e,t,i,c),t.child)}function Og(e,t,a,i,c){if(e===null){var d=a.type;return typeof d=="function"&&!Eu(d)&&d.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=d,zg(e,t,d,i,c)):(e=$i(a.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!wf(e,c)){var b=d.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(d,i),e.ref=t.ref,e.return=t,t.child=e}function zg(e,t,a,i,c){if(e!==null){var d=e.memoizedProps;if(mr(d,i)&&e.ref===t.ref)if(mt=!1,t.pendingProps=i=d,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 jg(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 Dg(e,t,d,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ui(t,d!==null?d.cachePool:null),d!==null?Lh(t,d):Gu(),Bh(t);else return i=t.lanes=536870912,Dg(e,t,d!==null?d.baseLanes|a:a,a,i)}else d!==null?(Ui(t,d.cachePool),Lh(t,d),Fl(),t.memoizedState=null):(e!==null&&Ui(t,null),Gu(),Fl());return _t(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 Dg(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&&Ui(t,null),Gu(),Bh(t),e!==null&&po(e,t,i,!0),t.childLanes=c,null}function ts(e,t){return t=ls({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function $g(e,t,a){return ja(t,e.child,null,a),e=ts(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function Wx(e,t,a){var i=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(He){if(i.mode==="hidden")return e=ts(t,i),t.lanes=536870912,_r(null,e);if(Iu(t),(e=We)?(e=Zv(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=yh(e),a.return=t,t.child=a,Et=t,We=null)):e=null,e===null)throw Gl(t);return t.lanes=536870912,null}return ts(t,i)}var d=e.memoizedState;if(d!==null){var b=d.dehydrated;if(Iu(t),c)if(t.flags&256)t.flags&=-257,t=$g(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||po(e,t,a,!1),c=(a&e.childLanes)!==0,mt||c){if(i=Fe,i!==null&&(b=Rp(i,a),b!==0&&b!==d.retryLane))throw d.retryLane=b,Ra(e,b),It(i,e,b),pf;ds(),t=$g(e,t,a)}else e=d.treeContext,We=xn(b.nextSibling),Et=t,He=!0,Vl=null,bn=!1,e!==null&&xh(t,e),t=ts(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 ns(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)):(He&&i&&Nu(t),t.flags|=1,_t(e,t,a,c),t.child)}function Lg(e,t,a,i,c,d){return Na(t),t.updateQueue=null,a=Uh(t,i,a,c),Hh(e),i=Ku(),e!==null&&!mt?(Fu(e,t,d),hl(e,t,d)):(He&&i&&Nu(t),t.flags|=1,_t(e,t,a,d),t.child)}function Bg(e,t,a,i,c){if(Na(t),t.stateNode===null){var d=co,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=df,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=i,d.state=t.memoizedState,d.refs={},ku(t),b=a.contextType,d.context=typeof b=="object"&&b!==null?At(b):co,d.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(ff(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&&df.enqueueReplaceState(d,d.state,null),Cr(t,i,d,c),wr(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){d=t.stateNode;var R=t.memoizedProps,j=$a(a,R);d.props=j;var X=d.context,W=a.contextType;b=co,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)&&Cg(t,d,i,b),Il=!1;var I=t.memoizedState;d.state=I,Cr(t,i,d,c),wr(),X=t.memoizedState,R||I!==X||Il?(typeof re=="function"&&(ff(t,a,re,i),X=t.memoizedState),(j=Il||wg(t,a,j,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=j):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{d=t.stateNode,Yu(e,t),b=t.memoizedProps,W=$a(a,b),d.props=W,re=t.pendingProps,I=d.context,X=a.contextType,j=co,typeof X=="object"&&X!==null&&(j=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!==j)&&Cg(t,d,i,j),Il=!1,I=t.memoizedState,d.state=I,Cr(t,i,d,c),wr();var Q=t.memoizedState;b!==re||I!==Q||Il||e!==null&&e.dependencies!==null&&Bi(e.dependencies)?(typeof R=="function"&&(ff(t,a,R,i),Q=t.memoizedState),(W=Il||wg(t,a,W,i,I,Q,j)||e!==null&&e.dependencies!==null&&Bi(e.dependencies))?(X||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(i,Q,j),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(i,Q,j)),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=j,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,ns(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=ja(t,e.child,null,c),t.child=ja(t,null,a,c)):_t(e,t,a,c),t.memoizedState=d.state,e=t.child):e=hl(e,t,c),e}function Hg(e,t,a,i){return Aa(),t.flags|=256,_t(e,t,a,i),t.child}var gf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vf(e){return{baseLanes:e,cachePool:Ah()}}function yf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=rn),e}function Ug(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(He){if(c?Kl(t):Fl(),(e=We)?(e=Zv(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=yh(e),a.return=t,t.child=a,Et=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=ls({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=vf(a),i.childLanes=yf(e,b,a),t.memoizedState=gf,_r(null,i)):(Kl(t),bf(t,R))}var j=e.memoizedState;if(j!==null&&(R=j.dehydrated,R!==null)){if(d)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=ls({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,ja(t,e.child,null,a),i=t.child,i.memoizedState=vf(a),i.childLanes=yf(e,b,a),t.memoizedState=gf,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,gr({value:i,source:null,stack:null}),t=Sf(e,t,a)}else if(mt||po(e,t,a,!1),b=(a&e.childLanes)!==0,mt||b){if(b=Fe,b!==null&&(i=Rp(b,a),i!==0&&i!==j.retryLane))throw j.retryLane=i,Ra(e,i),It(b,e,i),pf;Wf(R)||ds(),t=Sf(e,t,a)}else Wf(R)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,We=xn(R.nextSibling),Et=t,He=!0,Vl=null,bn=!1,e!==null&&xh(t,e),t=bf(t,i.children),t.flags|=4096);return t}return c?(Fl(),R=i.fallback,c=t.mode,j=e.child,X=j.sibling,i=cl(j,{mode:"hidden",children:i.children}),i.subtreeFlags=j.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=vf(a):(c=R.cachePool,c!==null?(j=ft._currentValue,c=c.parent!==j?{parent:j,pool:j}:c):c=Ah(),R={baseLanes:R.baseLanes|a,cachePool:c}),i.memoizedState=R,i.childLanes=yf(e,b,a),t.memoizedState=gf,_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=ls({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ls(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function Sf(e,t,a){return ja(t,e.child,null,a),e=bf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kg(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,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 Yg(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=He?hr:0,!R&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kg(e,a,t);else if(e.tag===19)kg(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&&Xi(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,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&&Xi(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}xf(t,!0,a,null,d,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(po(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&&Bi(e)))}function ew(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?Ug(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||(po(e,t,a,!1),i=(a&t.childLanes)!==0),c){if(i)return Yg(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,jg(e,t,a,t.pendingProps);case 24:Xl(t,ft,e.memoizedState.cache)}return hl(e,t,a)}function qg(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,ew(e,t,a);mt=(e.flags&131072)!==0}else mt=!1,He&&(t.flags&1048576)!==0&&Sh(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=Bg(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===z){t.tag=11,t=Mg(null,t,e,i,a);break e}else if(c===D){t.tag=14,t=Og(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),Bg(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,Yu(e,t),Cr(t,i,null,a);var b=t.memoizedState;if(i=b.cache,Xl(t,ft,i),i!==d.cache&&$u(t,[ft],a,!0),wr(),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=Hg(e,t,i,a);break e}else if(i!==c){c=gn(Error(o(424)),t),gr(c),t=Hg(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,He=!0,Vl=null,bn=!0,a=jh(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}_t(e,t,i,a)}t=t.child}return t;case 26:return ns(e,t),e===null?(a=Wv(t.type,null,t.pendingProps,null))?t.memoizedState=a:He||(a=t.type,e=t.pendingProps,i=bs(de.current).createElement(a),i[Rt]=t,i[kt]=e,Nt(i,a,e),xt(i),t.stateNode=i):t.memoizedState=Wv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Me(t),e===null&&He&&(i=t.stateNode=Fv(t.type,t.pendingProps,de.current),Et=t,bn=!0,c=We,aa(t.type)?(td=c,We=xn(i.firstChild)):We=c),_t(e,t,t.pendingProps.children,a),ns(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&He&&((c=i=We)&&(i=Mw(i,t.type,t.pendingProps,bn),i!==null?(t.stateNode=i,Et=t,We=xn(i.firstChild),bn=!1,c=!0):c=!1),c||Gl(t)),Me(t),c=t.type,d=t.pendingProps,b=e!==null?e.memoizedProps:null,i=d.children,Ff(c,d)?i=null:b!==null&&Ff(c,b)&&(t.flags|=32),t.memoizedState!==null&&(c=Qu(e,t,Xx,null,null,a),Vr._currentValue=c),ns(e,t),_t(e,t,i,a),t.child;case 6:return e===null&&He&&((e=a=We)&&(a=Ow(a,t.pendingProps,bn),a!==null?(t.stateNode=a,Et=t,We=null,e=!0):e=!1),e||Gl(t)),null;case 13:return Ug(e,t,a);case 4:return pe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ja(t,null,i,a):_t(e,t,i,a),t.child;case 11:return Mg(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,Xl(t,t.type,i.value),_t(e,t,i.children,a),t.child;case 9:return c=t.type._context,i=t.pendingProps.children,Na(t),c=At(c),i=i(c),t.flags|=1,_t(e,t,i,a),t.child;case 14:return Og(e,t,t.type,t.pendingProps,a);case 15:return zg(e,t,t.type,t.pendingProps,a);case 19:return Yg(e,t,a);case 31:return Wx(e,t,a);case 22:return jg(e,t,a,t.pendingProps);case 24:return Na(t),i=At(ft),e===null?(c=Hu(),c===null&&(c=Fe,d=Lu(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=a),c=d),t.memoizedState={parent:i,cache:c},ku(t),Xl(t,ft,c)):((e.lanes&a)!==0&&(Yu(e,t),Cr(t,null,null,a),wr()),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),Xl(t,ft,i)):(i=d.cache,Xl(t,ft,i),i!==c.cache&&$u(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 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(hv())e.flags|=8192;else throw za=Yi,Uu}else e.flags&=-16777217}function Vg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ay(t))if(hv())e.flags|=8192;else throw za=Yi,Uu}function as(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wp():536870912,e.lanes|=t,Eo|=t)}function Nr(e,t){if(!He)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 tw(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)&&(mo(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),Vg(t,d)):(et(t),Cf(t,c,null,i,a))):d?d!==e.memoizedState?(gl(t),et(t),Vg(t,d)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&gl(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&&gl(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return et(t),null}e=ae.current,mo(t)?wh(t):(e=Fv(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,mo(t))wh(t);else{var b=bs(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[kt]=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),Cf(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,mo(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||Uv(e.nodeValue,a)),e||Gl(t,!0)}else e=bs(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=mo(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 Aa(),(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=mo(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 Aa(),(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),as(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,d=i.rendering,d===null)if(c)Nr(i,!1);else{if(rt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Xi(e),d!==null){for(t.flags|=128,Nr(i,!1),e=d.updateQueue,t.updateQueue=e,as(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)vh(a,e),a=a.sibling;return J(st,st.current&1|2),He&&ul(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&ze()>cs&&(t.flags|=128,c=!0,Nr(i,!1),t.lanes=4194304)}else{if(!c)if(e=Xi(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,as(t,e),Nr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!He)return et(t),null}else 2*ze()-i.renderingStartTime>cs&&a!==536870912&&(t.flags|=128,c=!0,Nr(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),He&&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&&as(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 nw(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 Gg(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 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 Jl(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 j=a,X=R;try{X()}catch(W){Xe(c,j,W)}}}i=i.next}while(i!==d)}}catch(W){Xe(t,t.return,W)}}function Xg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{$h(t,a)}catch(i){Xe(e,e.return,i)}}}function Ig(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 Zg(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;Tw(i,e.type,a,t),i[kt]=t}catch(c){Xe(e,e.return,c)}}function Qg(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||Qg(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 os(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(os(e,t,a),e=e.sibling;e!==null;)os(e,t,a),e=e.sibling}function Kg(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[kt]=a}catch(d){Xe(e,e.return,d)}}var vl=!1,pt=!1,Af=!1,Fg=typeof WeakSet=="function"?WeakSet:Set,wt=null;function lw(e,t){if(e=e.containerInfo,Qf=Es,e=sh(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,d=i.focusNode;i=i.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var b=0,R=-1,j=-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||(j=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&&(j=b),(Q=re.nextSibling)!==null)break;re=I,I=re.parentNode}re=Q}a=R===-1||j===-1?null:{start:R,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(Kf={focusedElem:e,selectionRange:a},Es=!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 ge=$a(a.type,c);e=i.getSnapshotBeforeUpdate(ge,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)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 Jg(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&&Xg(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{$h(e,t)}catch(b){Xe(a,a.return,b)}}break;case 27:t===null&&i&4&&Kg(a);case 26:case 5:bl(e,a),t===null&&i&4&&Zg(a),i&512&&Or(a,a.return);break;case 12:bl(e,a);break;case 31:bl(e,a),i&4&&ev(e,a);break;case 13:bl(e,a),i&4&&tv(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=dw.bind(null,a),zw(e,a))));break;case 22:if(i=a.memoizedState!==null||vl,!i){t=t!==null&&t.memoizedState!==null||pt,c=vl;var d=pt;vl=i,(pt=t)&&!d?Sl(e,a,(a.subtreeFlags&8772)!==0):bl(e,a),vl=c,pt=d}break;case 30:break;default:bl(e,a)}}function Pg(e){var t=e.alternate;t!==null&&(e.alternate=null,Pg(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;)Wg(e,t,a),a=a.sibling}function Wg(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),kr(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(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,Xv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Do(e)):Xv(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"&&Ig(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 ev(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Do(e)}catch(a){Xe(t,t.return,a)}}}function tv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Do(e)}catch(a){Xe(t,t.return,a)}}function aw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Fg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Fg),t;default:throw Error(o(435,e.tag))}}function rs(e,t){var a=aw(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var c=mw.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(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));Wg(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;)nv(t,e),t=t.sibling}var Mn=null;function nv(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&&vl&&(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=Mn;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[ar]||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=ny("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=ny("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 ly(c,e.type,e.stateNode);else e.stateNode=ty(c,i,e.memoizedProps);else d!==i?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,i===null?ly(c,e.type,e.stateNode):ty(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{no(c,"")}catch(ge){Xe(e,e.return,ge)}}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(ge){Xe(e,e.return,ge)}}break;case 3:if(ws=null,c=Mn,Mn=Ss(t.containerInfo),Vt(t,e),Mn=c,Gt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Do(t.containerInfo)}catch(ge){Xe(e,e.return,ge)}Af&&(Af=!1,lv(e));break;case 4:i=Mn,Mn=Ss(e.stateNode.containerInfo),Vt(t,e),Gt(e),Mn=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,rs(e,i)));break;case 13:Vt(t,e),Gt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ss=ze()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,rs(e,i)));break;case 22:c=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,X=vl,W=pt;if(vl=X||c,pt=W||j,Vt(t,e),pt=W,vl=X,Gt(e),i&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(a===null||j||vl||pt||La(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(d=j.stateNode,c)b=d.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{R=j.stateNode;var re=j.memoizedProps.style,I=re!=null&&re.hasOwnProperty("display")?re.display:null;R.style.display=I==null||typeof I=="boolean"?"":(""+I).trim()}}catch(ge){Xe(j,j.return,ge)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=c?"":j.memoizedProps}catch(ge){Xe(j,j.return,ge)}}}else if(t.tag===18){if(a===null){j=t;try{var Q=j.stateNode;c?Iv(Q,!0):Iv(j.stateNode,!1)}catch(ge){Xe(j,j.return,ge)}}}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,rs(e,a))));break;case 19:Vt(t,e),Gt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,rs(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(Qg(i)){a=i;break}i=i.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var c=a.stateNode,d=Rf(e);os(e,d,c);break;case 5:var b=a.stateNode;a.flags&32&&(no(b,""),a.flags&=-33);var R=Rf(e);os(e,R,b);break;case 3:case 4:var j=a.stateNode.containerInfo,X=Rf(e);Ef(e,X,j);break;default:throw Error(o(161))}}catch(W){Xe(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lv(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;)Jg(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"&&Ig(t,t.return,a),La(t);break;case 27:kr(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,d=t,b=d.flags;switch(d.tag){case 0:case 11:case 15:Sl(c,d,a),Mr(4,d);break;case 1:if(Sl(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 j=c.shared.hiddenCallbacks;if(j!==null)for(c.shared.hiddenCallbacks=null,c=0;c<j.length;c++)Dh(j[c],R)}catch(X){Xe(i,i.return,X)}}a&&b&64&&Xg(d),Or(d,d.return);break;case 27:Kg(d);case 26:case 5:Sl(c,d,a),a&&i===null&&b&4&&Zg(d),Or(d,d.return);break;case 12:Sl(c,d,a);break;case 31:Sl(c,d,a),a&&b&4&&ev(c,d);break;case 13:Sl(c,d,a),a&&b&4&&tv(c,d);break;case 22:d.memoizedState===null&&Sl(c,d,a),Or(d,d.return);break;case 30:break;default:Sl(c,d,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&&vr(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&&vr(e))}function On(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)av(e,t,a,i),t=t.sibling}function av(e,t,a,i){var c=t.flags;switch(t.tag){case 0:case 11:case 15:On(e,t,a,i),c&2048&&Mr(9,t);break;case 1:On(e,t,a,i);break;case 3:On(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&&vr(e)));break;case 12:if(c&2048){On(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(j){Xe(t,t.return,j)}}else On(e,t,a,i);break;case 31:On(e,t,a,i);break;case 13:On(e,t,a,i);break;case 23:break;case 22:d=t.stateNode,b=t.alternate,t.memoizedState!==null?d._visibility&2?On(e,t,a,i):zr(e,t):d._visibility&2?On(e,t,a,i):(d._visibility|=2,Co(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),c&2048&&_f(b,t);break;case 24:On(e,t,a,i),c&2048&&Nf(t.alternate,t);break;default:On(e,t,a,i)}}function Co(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,j=i,X=b.flags;switch(b.tag){case 0:case 11:case 15:Co(d,b,R,j,c),Mr(8,b);break;case 23:break;case 22:var W=b.stateNode;b.memoizedState!==null?W._visibility&2?Co(d,b,R,j,c):zr(d,b):(W._visibility|=2,Co(d,b,R,j,c)),c&&X&2048&&_f(b.alternate,b);break;case 24:Co(d,b,R,j,c),c&&X&2048&&Nf(b.alternate,b);break;default:Co(d,b,R,j,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&&_f(i.alternate,i);break;case 24:zr(a,i),c&2048&&Nf(i.alternate,i);break;default:zr(a,i)}t=t.sibling}}var jr=8192;function To(e,t,a){if(e.subtreeFlags&jr)for(e=e.child;e!==null;)ov(e,t,a),e=e.sibling}function ov(e,t,a){switch(e.tag){case 26:To(e,t,a),e.flags&jr&&e.memoizedState!==null&&Gw(a,Mn,e.memoizedState,e.memoizedProps);break;case 5:To(e,t,a);break;case 3:case 4:var i=Mn;Mn=Ss(e.stateNode.containerInfo),To(e,t,a),Mn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=jr,jr=16777216,To(e,t,a),jr=i):To(e,t,a));break;default:To(e,t,a)}}function rv(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,sv(i,e)}rv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)iv(e),e=e.sibling}function iv(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,is(e)):Dr(e);break;default:Dr(e)}}function is(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,sv(i,e)}rv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jl(8,t,t.return),is(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,is(t));break;default:is(t)}e=e.sibling}}function sv(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:vr(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(Pg(i),i===a){wt=null;break e}if(c!==null){c.return=d,wt=c;break e}wt=d}}}var ow={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}},rw=typeof WeakMap=="function"?WeakMap:Map,qe=0,Fe=null,je=null,$e=0,Ge=0,on=null,Pl=!1,Ro=!1,Mf=!1,xl=0,rt=0,Wl=0,Ba=0,Of=0,rn=0,Eo=0,$r=null,Xt=null,zf=!1,ss=0,cv=0,cs=1/0,us=null,ea=null,bt=0,ta=null,Ao=null,wl=0,jf=0,Df=null,uv=null,Lr=0,$f=null;function sn(){return(qe&2)!==0&&$e!==0?$e&-$e:O.T!==null?Yf():Ep()}function fv(){if(rn===0)if(($e&536870912)===0||He){var e=Ka;Ka<<=1,(Ka&3932160)===0&&(Ka=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)&&(_o(e,0),na(e,$e,rn,!1)),lr(e,a),((qe&2)===0||e!==Fe)&&(e===Fe&&((qe&2)===0&&(Ba|=a),rt===4&&na(e,$e,rn,!1)),Qn(e))}function dv(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?cw(e,t):Bf(e,t,!0),d=i;do{if(c===0){Ro&&!i&&na(e,t,0,!1);break}else{if(a=e.current.alternate,d&&!iw(a)){c=Bf(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=$r;var j=R.current.memoizedState.isDehydrated;if(j&&(_o(R,b).flags|=256),b=Bf(R,b,!1),b!==2){if(Mf&&!j){R.errorRecoveryDisabledLanes|=d,Ba|=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){_o(e,0),na(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: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=ss+300-ze(),10<c)){if(na(i,t,rn,!Pl),Ul(i,0,!0)!==0)break e;wl=t,i.timeoutHandle=Vv(mv.bind(null,i,a,Xt,us,zf,t,rn,Ba,Eo,Pl,d,"Throttled",-0,0),c);break e}mv(i,a,Xt,us,zf,t,rn,Ba,Eo,Pl,d,null,-0,0)}}break}while(!0);Qn(e)}function mv(e,t,a,i,c,d,b,R,j,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},ov(t,d,re);var ge=(d&62914560)===d?ss-ze():(d&4194048)===d?cv-ze():0;if(ge=Xw(re,ge),ge!==null){wl=d,e.cancelPendingCommit=ge(xv.bind(null,e,t,d,a,i,c,b,R,j,W,re,null,I,Q)),na(e,d,b,!X);return}}xv(e,t,d,a,i,c,b,R,j)}function iw(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 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 d=31-Ee(c),b=1<<d;i[d]=-1,c&=~b}a!==0&&Cp(e,a,t)}function fs(){return(qe&6)===0?(Br(0),!1):!0}function Lf(){if(je!==null){if(Ge===0)var e=je.return;else e=je,fl=_a=null,Ju(e),yo=null,br=0,e=je;for(;e!==null;)Gg(e.alternate,e),e=e.return;je=null}}function _o(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Aw(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),wl=0,Lf(),Fe=e,je=a=cl(e.current,null),$e=t,Ge=0,on=null,Pl=!1,Ro=nr(e,t),Mf=!1,Eo=rn=Of=Ba=Wl=rt=0,Xt=$r=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 xl=t,zi(),a}function pv(e,t){Ae=null,O.H=Ar,t===vo||t===ki?(t=Mh(),Ge=3):t===Uu?(t=Mh(),Ge=4):Ge=t===pf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,on=t,je===null&&(rt=1,es(e,gn(t,e.current)))}function hv(){var e=ln.current;return e===null?!0:($e&4194048)===$e?Sn===null:($e&62914560)===$e||($e&536870912)!==0?e===Sn:!1}function gv(){var e=O.H;return O.H=Ar,e===null?Ar:e}function vv(){var e=O.A;return O.A=ow,e}function ds(){rt=4,Pl||($e&4194048)!==$e&&ln.current!==null||(Ro=!0),(Wl&134217727)===0&&(Ba&134217727)===0||Fe===null||na(Fe,$e,rn,!1)}function Bf(e,t,a){var i=qe;qe|=2;var c=gv(),d=vv();(Fe!==e||$e!==t)&&(us=null,_o(e,t)),t=!1;var b=rt;e:do try{if(Ge!==0&&je!==null){var R=je,j=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,No(e,R,j,X),a&&Ro){b=0;break e}break;default:X=Ge,Ge=0,on=null,No(e,R,j,X)}}sw(),b=rt;break}catch(W){pv(e,W)}while(!0);return t&&e.shellSuspendCounter++,fl=_a=null,qe=i,O.H=c,O.A=d,je===null&&(Fe=null,$e=0,zi()),b}function sw(){for(;je!==null;)yv(je)}function cw(e,t){var a=qe;qe|=2;var i=gv(),c=vv();Fe!==e||$e!==t?(us=null,cs=ze()+500,_o(e,t)):Ro=nr(e,t);e:do try{if(Ge!==0&&je!==null){t=je;var d=on;t:switch(Ge){case 1:Ge=0,on=null,No(e,t,d,1);break;case 2:case 9:if(_h(d)){Ge=0,on=null,bv(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:_h(d)?(Ge=0,on=null,bv(t)):(Ge=0,on=null,No(e,t,d,7));break;case 5:var b=null;switch(je.tag){case 26:b=je.memoizedState;case 5:case 27:var R=je;if(b?ay(b):R.stateNode.complete){Ge=0,on=null;var j=R.sibling;if(j!==null)je=j;else{var X=R.return;X!==null?(je=X,ms(X)):je=null}break t}}Ge=0,on=null,No(e,t,d,5);break;case 6:Ge=0,on=null,No(e,t,d,6);break;case 8:Lf(),rt=6;break e;default:throw Error(o(462))}}uw();break}catch(W){pv(e,W)}while(!0);return fl=_a=null,O.H=i,O.A=c,qe=a,je!==null?0:(Fe=null,$e=0,zi(),rt)}function uw(){for(;je!==null&&!jt();)yv(je)}function yv(e){var t=qg(e.alternate,e,xl);e.memoizedProps=e.pendingProps,t===null?ms(e):je=t}function bv(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Lg(a,t,t.pendingProps,t.type,void 0,$e);break;case 11:t=Lg(a,t,t.pendingProps,t.type.render,t.ref,$e);break;case 5:Ju(t);default:Gg(a,t),t=je=vh(t,xl),t=qg(a,t,xl)}e.memoizedProps=e.pendingProps,t===null?ms(e):je=t}function No(e,t,a,i){fl=_a=null,Ju(t),yo=null,br=0;var c=t.return;try{if(Px(e,c,t,a,$e)){rt=1,es(e,gn(a,e.current)),je=null;return}}catch(d){if(c!==null)throw je=c,d;rt=1,es(e,gn(a,e.current)),je=null;return}t.flags&32768?(He||i===1?e=!0:Ro||($e&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))),Sv(t,e)):ms(t)}function ms(e){var t=e;do{if((t.flags&32768)!==0){Sv(t,Pl);return}e=t.return;var a=tw(t.alternate,t,xl);if(a!==null){je=a;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);rt===0&&(rt=5)}function Sv(e,t){do{var a=nw(e.alternate,e);if(a!==null){a.flags&=32767,je=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=a}while(e!==null);rt=6,je=null}function xv(e,t,a,i,c,d,b,R,j){e.cancelPendingCommit=null;do ps();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|=Tu,VS(e,a,d,b,R,j),e===Fe&&(je=Fe=null,$e=0),Ao=t,ta=e,wl=a,jf=d,Df=c,uv=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,pw(Ye,function(){return Ev(),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{lw(e,t,a)}finally{qe=b,B.p=c,O.T=i}}bt=1,wv(),Cv(),Tv()}}function wv(){if(bt===1){bt=0;var e=ta,t=Ao,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{nv(t,e);var d=Kf,b=sh(e.containerInfo),R=d.focusedElem,j=d.selectionRange;if(b!==R&&R&&R.ownerDocument&&ih(R.ownerDocument.documentElement,R)){if(j!==null&&bu(R)){var X=j.start,W=j.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(),ge=R.textContent.length,we=Math.min(j.start,ge),Ke=j.end===void 0?we:Math.min(j.end,ge);!Q.extend&&we>Ke&&(b=Ke,Ke=we,we=b);var q=rh(R,we),$=rh(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}}Es=!!Qf,Kf=Qf=null}finally{qe=c,B.p=i,O.T=a}}e.current=t,bt=2}}function Cv(){if(bt===2){bt=0;var e=ta,t=Ao,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{Jg(e,t.alternate,t)}finally{qe=c,B.p=i,O.T=a}}bt=3}}function Tv(){if(bt===4||bt===3){bt=0,Pt();var e=ta,t=Ao,a=wl,i=uv;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?bt=5:(bt=0,Ao=ta=null,Rv(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 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}}(wl&3)!==0&&ps(),Qn(e),c=e.pendingLanes,(a&261930)!==0&&(c&42)!==0?e===$f?Lr++:(Lr=0,$f=e):Lr=0,Br(0)}}function Rv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vr(t)))}function ps(){return wv(),Cv(),Tv(),Ev()}function Ev(){if(bt!==5)return!1;var e=ta,t=jf;jf=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 d=ta,b=wl;if(bt=0,Ao=ta=null,wl=0,(qe&6)!==0)throw Error(o(331));var R=qe;if(qe|=4,iv(d.current),av(d,d.current,b,a),qe=R,Br(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Wt,d)}catch{}return!0}finally{B.p=c,O.T=i,Rv(e,t)}}function Av(e,t,a){t=gn(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)Av(e,e,a);else for(;t!==null;){if(t.tag===3){Av(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=gn(a,e),a=_g(2),i=Ql(t,a,2),i!==null&&(Ng(a,i,t,e),lr(i,2),Qn(i));break}}t=t.return}}function Hf(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new rw;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=fw.bind(null,e,t,a),t.then(e,e))}function fw(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Fe===e&&($e&a)===a&&(rt===4||rt===3&&($e&62914560)===$e&&300>ze()-ss?(qe&2)===0&&_o(e,0):Of|=a,Eo===$e&&(Eo=0)),Qn(e)}function _v(e,t){t===0&&(t=wp()),e=Ra(e,t),e!==null&&(lr(e,t),Qn(e))}function dw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),_v(e,a)}function mw(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),_v(e,a)}function pw(e,t){return fn(e,t)}var hs=null,Mo=null,Uf=!1,gs=!1,kf=!1,la=0;function Qn(e){e!==Mo&&e.next===null&&(Mo===null?hs=Mo=e:Mo=Mo.next=e),gs=!0,Uf||(Uf=!0,gw())}function Br(e,t){if(!kf&&gs){kf=!0;do for(var a=!1,i=hs;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,zv(i,d))}else d=$e,d=Ul(i,i===Fe?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||nr(i,d)||(a=!0,zv(i,d));i=i.next}while(a);kf=!1}}function hw(){Nv()}function Nv(){gs=Uf=!1;var e=0;la!==0&&Ew()&&(e=la);for(var t=ze(),a=null,i=hs;i!==null;){var c=i.next,d=Mv(i,t);d===0?(i.next=null,a===null?hs=c:a.next=c,c===null&&(Mo=a)):(a=i,(e!==0||(d&3)!==0)&&(gs=!0)),i=c}bt!==0&&bt!==5||Br(e),la!==0&&(la=0)}function Mv(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,j=c[b];j===-1?((R&a)===0||(R&i)!==0)&&(c[b]=qS(R,t)):j<=t&&(e.expiredLanes|=R),d&=~R}if(t=Fe,a=$e,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=Ov.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 Ov(e,t){if(bt!==0&&bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ps()&&e.callbackNode!==a)return null;var i=$e;return i=Ul(e,e===Fe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(dv(e,i,t),Mv(e,ze()),e.callbackNode!=null&&e.callbackNode===a?Ov.bind(null,e):null)}function zv(e,t){if(ps())return null;dv(e,t,!0)}function gw(){_w(function(){(qe&6)!==0?fn(yt,hw):Nv()})}function Yf(){if(la===0){var e=ho;e===0&&(e=Qa,Qa<<=1,(Qa&261888)===0&&(Qa=256)),la=e}return la}function jv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ti(""+e)}function Dv(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 vw(e,t,a,i,c){if(t==="submit"&&a&&a.stateNode===c){var d=jv((c[kt]||null).action),b=i.submitter;b&&(t=(t=b[kt]||null)?jv(t.formAction):b.getAttribute("formAction"),t!==null&&(d=t,b=null));var R=new _i("action","action",null,i,c);e.push({event:R,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(la!==0){var j=b?Dv(c,b):new FormData(c);rf(a,{pending:!0,data:j,method:c.method,action:d},null,j)}}else typeof d=="function"&&(R.preventDefault(),j=b?Dv(c,b):new FormData(c),rf(a,{pending:!0,data:j,method:c.method,action:d},d,j))},currentTarget:c}]})}}for(var qf=0;qf<Cu.length;qf++){var Vf=Cu[qf],yw=Vf.toLowerCase(),bw=Vf[0].toUpperCase()+Vf.slice(1);Nn(yw,"on"+bw)}Nn(fh,"onAnimationEnd"),Nn(dh,"onAnimationIteration"),Nn(mh,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn($x,"onTransitionRun"),Nn(Lx,"onTransitionStart"),Nn(Bx,"onTransitionCancel"),Nn(ph,"onTransitionEnd"),eo("onMouseEnter",["mouseout","mouseover"]),eo("onMouseLeave",["mouseout","mouseover"]),eo("onPointerEnter",["pointerout","pointerover"]),eo("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 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(" "),Sw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hr));function $v(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],j=R.instance,X=R.currentTarget;if(R=R.listener,j!==d&&c.isPropagationStopped())break e;d=R,c.currentTarget=X;try{d(c)}catch(W){Oi(W)}c.currentTarget=null,d=j}else for(b=0;b<i.length;b++){if(R=i[b],j=R.instance,X=R.currentTarget,R=R.listener,j!==d&&c.isPropagationStopped())break e;d=R,c.currentTarget=X;try{d(c)}catch(W){Oi(W)}c.currentTarget=null,d=j}}}}function De(e,t){var a=t[tu];a===void 0&&(a=t[tu]=new Set);var i=e+"__bubble";a.has(i)||(Lv(t,e,2,!1),a.add(i))}function Gf(e,t,a){var i=0;t&&(i|=4),Lv(a,e,i,t)}var vs="_reactListening"+Math.random().toString(36).slice(2);function Xf(e){if(!e[vs]){e[vs]=!0,Np.forEach(function(a){a!=="selectionchange"&&(Sw.has(a)||Gf(a,!1,e),Gf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vs]||(t[vs]=!0,Gf("selectionchange",!1,t))}}function Lv(e,t,a,i){switch(fy(t)){case 2:var c=Qw;break;case 8:c=Kw;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 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 j=b.tag;if((j===3||j===4)&&b.stateNode.containerInfo===c)return;b=b.return}for(;R!==null;){if(b=Ja(R),b===null)return;if(j=b.tag,j===5||j===6||j===26||j===27){i=d=b;continue e}R=R.parentNode}}i=i.return}Yp(function(){var X=d,W=su(a),re=[];e:{var I=hh.get(e);if(I!==void 0){var Q=_i,ge=e;switch(e){case"keypress":if(Ei(a)===0)break e;case"keydown":case"keyup":Q=mx;break;case"focusin":ge="focus",Q=pu;break;case"focusout":ge="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=Gp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=tx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=gx;break;case fh:case dh:case mh:Q=ax;break;case ph:Q=yx;break;case"scroll":case"scrollend":Q=WS;break;case"wheel":Q=Sx;break;case"copy":case"cut":case"paste":Q=rx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Ip;break;case"toggle":case"beforetoggle":Q=wx}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,ge,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&&(ge=a.relatedTarget||a.fromElement)&&(Ja(ge)||ge[Fa]))break e;if((Q||I)&&(I=W.window===W?W:(I=W.ownerDocument)?I.defaultView||I.parentWindow:window,Q?(ge=a.relatedTarget||a.toElement,Q=X,ge=ge?Ja(ge):null,ge!==null&&(Ke=u(ge),we=ge.tag,ge!==Ke||we!==5&&we!==27&&we!==6)&&(ge=null)):(Q=null,ge=X),Q!==ge)){if(we=Gp,ne="onMouseLeave",q="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(we=Ip,ne="onPointerLeave",q="onPointerEnter",$="pointer"),Ke=Q==null?I:or(Q),G=ge==null?I:or(ge),I=new we(ne,$+"leave",Q,a,W),I.target=Ke,I.relatedTarget=G,ne=null,Ja(W)===X&&(we=new we(q,$+"enter",ge,a,W),we.target=G,we.relatedTarget=Ke,ne=we),Ke=ne,Q&&ge)t:{for(we=xw,q=Q,$=ge,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&&Bv(re,I,Q,we,!1),ge!==null&&Ke!==null&&Bv(re,Ke,ge,we,!0)}}e:{if(I=X?or(X):window,Q=I.nodeName&&I.nodeName.toLowerCase(),Q==="select"||Q==="input"&&I.type==="file")var Ue=eh;else if(Pp(I))if(th)Ue=zx;else{Ue=Mx;var be=Nx}else Q=I.nodeName,!Q||Q.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?X&&ru(X.elementType)&&(Ue=eh):Ue=Ox;if(Ue&&(Ue=Ue(e,X))){Wp(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":(Pp(be)||be.contentEditable==="true")&&(ro=be,Su=X,pr=null);break;case"focusout":pr=Su=ro=null;break;case"mousedown":xu=!0;break;case"contextmenu":case"mouseup":case"dragend":xu=!1,ch(re,a,W);break;case"selectionchange":if(Dx)break;case"keydown":case"keyup":ch(re,a,W)}var _e;if(gu)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else oo?Fp(e,a)&&(Le="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Le="onCompositionStart");Le&&(Zp&&a.locale!=="ko"&&(oo||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&oo&&(_e=qp()):(Yl=W,fu="value"in Yl?Yl.value:Yl.textContent,oo=!0)),be=ys(X,Le),0<be.length&&(Le=new Xp(Le,e,null,a,W),re.push({event:Le,listeners:be}),_e?Le.data=_e:(_e=Jp(a),_e!==null&&(Le.data=_e)))),(_e=Tx?Rx(e,a):Ex(e,a))&&(Le=ys(X,"onBeforeInput"),0<Le.length&&(be=new Xp("onBeforeInput","beforeinput",null,a,W),re.push({event:be,listeners:Le}),be.data=_e)),vw(re,e,X,a,W)}$v(re,t)})}function Ur(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ys(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=rr(e,a),c!=null&&i.unshift(Ur(e,c,d)),c=rr(e,t),c!=null&&i.push(Ur(e,c,d))),e.tag===3)return i;e=e.return}return[]}function xw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bv(e,t,a,i,c){for(var d=t._reactName,b=[];a!==null&&a!==i;){var R=a,j=R.alternate,X=R.stateNode;if(R=R.tag,j!==null&&j===i)break;R!==5&&R!==26&&R!==27||X===null||(j=X,c?(X=rr(a,d),X!=null&&b.unshift(Ur(a,X,j))):c||(X=rr(a,d),X!=null&&b.push(Ur(a,X,j)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var ww=/\r\n?/g,Cw=/\u0000|\uFFFD/g;function Hv(e){return(typeof e=="string"?e:""+e).replace(ww,`
49
- `).replace(Cw,"")}function Uv(e,t){return t=Hv(t),Hv(e)===t}function Qe(e,t,a,i,c,d){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||no(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&no(e,""+i);break;case"className":wi(e,"class",i);break;case"tabIndex":wi(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":wi(e,a,i);break;case"style":Up(e,i,d);break;case"data":if(t!=="object"){wi(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=Ti(""+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=Ti(""+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=Ti(""+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),xi(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":xi(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=JS.get(a)||a,xi(e,a,i))}}function Zf(e,t,a,i,c,d){switch(a){case"style":Up(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"?no(e,i):(typeof i=="number"||typeof i=="bigint")&&no(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(!Mp.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[kt]||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,""):xi(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":De("error",e),De("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":De("invalid",e);var R=d=b=c=null,j=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":j=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)}}$p(e,d,R,j,X,b,c,!1);return;case"select":De("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?to(e,!!i,t,!1):a!=null&&to(e,!!i,a,!0);return;case"textarea":De("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)}Bp(e,i,c,d);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(i=a[j],i!=null))switch(j){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Qe(e,t,j,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<Hr.length;i++)De(Hr[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 Tw(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,j=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":j=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)}}au(e,b,R,j,X,W,d,c);return;case"select":Q=b=R=I=null;for(d in a)if(j=a[d],a.hasOwnProperty(d)&&j!=null)switch(d){case"value":break;case"multiple":Q=j;default:i.hasOwnProperty(d)||Qe(e,t,d,null,i,j)}for(c in i)if(d=i[c],j=a[c],i.hasOwnProperty(c)&&(d!=null||j!=null))switch(c){case"value":I=d;break;case"defaultValue":R=d;break;case"multiple":b=d;default:d!==j&&Qe(e,t,c,d,i,j)}t=R,a=b,i=Q,I!=null?to(e,!!a,I,!1):!!i!=!!a&&(t!=null?to(e,!!a,t,!0):to(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)}Lp(e,I,Q);return;case"option":for(var ge in a)if(I=a[ge],a.hasOwnProperty(ge)&&I!=null&&!i.hasOwnProperty(ge))switch(ge){case"selected":e.selected=!1;break;default:Qe(e,t,ge,null,i,I)}for(j in i)if(I=i[j],Q=a[j],i.hasOwnProperty(j)&&I!==Q&&(I!=null||Q!=null))switch(j){case"selected":e.selected=I&&typeof I!="function"&&typeof I!="symbol";break;default:Qe(e,t,j,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 kv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rw(){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&&kv(b)){for(b=0,R=c.responseEnd,i+=1;i<a.length;i++){var j=a[i],X=j.startTime;if(X>R)break;var W=j.transferSize,re=j.initiatorType;W&&kv(re)&&(j=j.responseEnd,b+=W*(j<R?1:(R-X)/(j-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 Qf=null,Kf=null;function bs(e){return e.nodeType===9?e:e.ownerDocument}function Yv(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 qv(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 Ew(){var e=window.event;return e&&e.type==="popstate"?e===Jf?!1:(Jf=e,!0):(Jf=null,!1)}var Vv=typeof setTimeout=="function"?setTimeout:void 0,Aw=typeof clearTimeout=="function"?clearTimeout:void 0,Gv=typeof Promise=="function"?Promise:void 0,_w=typeof queueMicrotask=="function"?queueMicrotask:typeof Gv<"u"?function(e){return Gv.resolve(null).then(e).catch(Nw)}:Vv;function Nw(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function Xv(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),Do(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")kr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,kr(a);for(var d=a.firstChild;d;){var b=d.nextSibling,R=d.nodeName;d[ar]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&d.rel.toLowerCase()==="stylesheet"||a.removeChild(d),d=b}}else a==="body"&&kr(e.ownerDocument.body);a=c}while(a);Do(t)}function Iv(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 Mw(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(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 Ow(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 Zv(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 zw(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 Qv(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 Kv(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 Fv(e,t,a){switch(t=bs(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 kr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);nu(e)}var wn=new Map,Jv=new Set;function Ss(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cl=B.d;B.d={f:jw,r:Dw,D:$w,C:Lw,L:Bw,m:Hw,X:kw,S:Uw,M:Yw};function jw(){var e=Cl.f(),t=fs();return e||t}function Dw(e){var t=Pa(e);t!==null&&t.tag===5&&t.type==="form"?pg(t):Cl.r(e)}var Oo=typeof document>"u"?null:document;function Pv(e,t,a){var i=Oo;if(i&&typeof t=="string"&&t){var c=pn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),Jv.has(c)||(Jv.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 $w(e){Cl.D(e),Pv("dns-prefetch",e,null)}function Lw(e,t){Cl.C(e,t),Pv("preconnect",e,t)}function Bw(e,t,a){Cl.L(e,t,a);var i=Oo;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=zo(e);break;case"script":d=jo(e)}wn.has(d)||(e=v({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(Yr(d))||t==="script"&&i.querySelector(qr(d))||(t=i.createElement("link"),Nt(t,"link",e),xt(t),i.head.appendChild(t)))}}function Hw(e,t){Cl.m(e,t);var a=Oo;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=jo(e)}if(!wn.has(d)&&(e=v({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(qr(d)))return}i=a.createElement("link"),Nt(i,"link",e),xt(i),a.head.appendChild(i)}}}function Uw(e,t,a){Cl.S(e,t,a);var i=Oo;if(i&&e){var c=Wa(i).hoistableStyles,d=zo(e);t=t||"default";var b=c.get(d);if(!b){var R={loading:0,preload:null};if(b=i.querySelector(Yr(d)))R.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=wn.get(d))&&nd(e,a);var j=b=i.createElement("link");xt(j),Nt(j,"link",e),j._p=new Promise(function(X,W){j.onload=X,j.onerror=W}),j.addEventListener("load",function(){R.loading|=1}),j.addEventListener("error",function(){R.loading|=2}),R.loading|=4,xs(b,t,i)}b={type:"stylesheet",instance:b,count:1,state:R},c.set(d,b)}}}function kw(e,t){Cl.X(e,t);var a=Oo;if(a&&e){var i=Wa(a).hoistableScripts,c=jo(e),d=i.get(c);d||(d=a.querySelector(qr(c)),d||(e=v({src:e,async:!0},t),(t=wn.get(c))&&ld(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 Yw(e,t){Cl.M(e,t);var a=Oo;if(a&&e){var i=Wa(a).hoistableScripts,c=jo(e),d=i.get(c);d||(d=a.querySelector(qr(c)),d||(e=v({src:e,async:!0,type:"module"},t),(t=wn.get(c))&&ld(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 Wv(e,t,a,i){var c=(c=de.current)?Ss(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=Wa(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 d=Wa(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(Yr(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||qw(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=jo(a),a=Wa(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 ey(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function qw(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 jo(e){return'[src="'+pn(e)+'"]'}function qr(e){return"script[async]"+e}function ty(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=v({},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),xs(i,a.precedence,e),t.instance=i;case"stylesheet":c=zo(a.href);var d=e.querySelector(Yr(c));if(d)return t.state.loading|=4,t.instance=d,xt(d),d;i=ey(a),(c=wn.get(c))&&nd(i,c),d=(e.ownerDocument||e).createElement("link"),xt(d);var b=d;return b._p=new Promise(function(R,j){b.onload=R,b.onerror=j}),Nt(d,"link",i),t.state.loading|=4,xs(d,a.precedence,e),t.instance=d;case"script":return d=jo(a.src),(c=e.querySelector(qr(d)))?(t.instance=c,xt(c),c):(i=a,(c=wn.get(d))&&(i=v({},a),ld(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,xs(i,a.precedence,e));return t.instance}function xs(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 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 ws=null;function ny(e,t,a){if(ws===null){var i=new Map,c=ws=new Map;c.set(a,i)}else c=ws,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[ar]||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 ly(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Vw(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 ay(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Gw(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),d=t.querySelector(Yr(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Cs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,xt(d);return}d=t.ownerDocument||t,i=ey(i),(c=wn.get(c))&&nd(i,c),d=d.createElement("link"),xt(d);var b=d;b._p=new Promise(function(R,j){b.onload=R,b.onerror=j}),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=Cs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ad=0;function Xw(e,t){return e.stylesheets&&e.count===0&&Rs(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&ad===0&&(ad=62500*Rw());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>ad?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function Cs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ts=null;function Rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ts=new Map,t.forEach(Iw,e),Ts=null,Cs.call(e))}function Iw(e,t){if(!(t.state.loading&4)){var a=Ts.get(e);if(a)var i=a.get(null);else{a=new Map,Ts.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=Cs.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 Vr={$$typeof:_,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function Zw(e,t,a,i,c,d,b,R,j){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=d,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function oy(e,t,a,i,c,d,b,R,j,X,W,re){return e=new Zw(e,t,a,b,j,X,W,re,R),t=1,d===!0&&(t|=24),d=nn(3,null,null,t),e.current=d,d.stateNode=e,t=Lu(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:i,isDehydrated:a,cache:t},ku(d),e}function ry(e){return e?(e=co,e):co}function iy(e,t,a,i,c,d){c=ry(c),i.context===null?i.context=c:i.pendingContext=c,i=Zl(t),i.payload={element:a},d=d===void 0?null:d,d!==null&&(i.callback=d),a=Ql(e,i,t),a!==null&&(It(a,e,t),xr(a,e,t))}function sy(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){sy(e,t),(e=e.alternate)&&sy(e,t)}function cy(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&It(t,e,67108864),od(e,67108864)}}function uy(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 Es=!0;function Qw(e,t,a,i){var c=O.T;O.T=null;var d=B.p;try{B.p=2,rd(e,t,a,i)}finally{B.p=d,O.T=c}}function Kw(e,t,a,i){var c=O.T;O.T=null;var d=B.p;try{B.p=8,rd(e,t,a,i)}finally{B.p=d,O.T=c}}function rd(e,t,a,i){if(Es){var c=id(i);if(c===null)If(e,t,i,As,a),dy(e,i);else if(Jw(c,e,t,a,i))i.stopPropagation();else if(dy(e,i),t&4&&-1<Fw.indexOf(e)){for(;c!==null;){var d=Pa(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 j=1<<31-Ee(b);R.entanglements[1]|=j,b&=~j}Qn(d),(qe&6)===0&&(cs=ze()+500,Br(0))}}break;case 31:case 13:R=Ra(d,2),R!==null&&It(R,d,2),fs(),od(d,2)}if(d=id(i),d===null&&If(e,t,i,As,a),d===c)break;c=d}c!==null&&i.stopPropagation()}else If(e,t,i,null,a)}}function id(e){return e=su(e),sd(e)}var As=null;function sd(e){if(As=null,e=Ja(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 As=e,null}function fy(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 Hl: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=[],Fw="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 dy(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,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:d,targetContainers:[c]},t!==null&&(t=Pa(t),t!==null&&cy(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Jw(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 d=c.pointerId;return Gr.set(d,Ir(Gr.get(d)||null,e,t,a,i,c)),!0;case"gotpointercapture":return d=c.pointerId,Xr.set(d,Ir(Xr.get(d)||null,e,t,a,i,c)),!0}return!1}function my(e){var t=Ja(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,Ap(e.priority,function(){uy(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,Ap(e.priority,function(){uy(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 _s(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=Pa(a),t!==null&&cy(t),e.blockedOn=a,!1;t.shift()}return!0}function py(e,t,a){_s(e)&&a.delete(t)}function Pw(){cd=!1,oa!==null&&_s(oa)&&(oa=null),ra!==null&&_s(ra)&&(ra=null),ia!==null&&_s(ia)&&(ia=null),Gr.forEach(py),Xr.forEach(py)}function Ns(e,t){e.blockedOn===t&&(e.blockedOn=null,cd||(cd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Pw)))}var Ms=null;function hy(e){Ms!==e&&(Ms=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ms===e&&(Ms=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 d=Pa(a);d!==null&&(e.splice(t,3),t-=3,rf(d,{pending:!0,data:c,method:a.method,action:i},i,c))}}))}function Do(e){function t(j){return Ns(j,e)}oa!==null&&Ns(oa,e),ra!==null&&Ns(ra,e),ia!==null&&Ns(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);)my(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],d=a[i+1],b=c[kt]||null;if(typeof d=="function")b||hy(a);else if(b){var R=null;if(d&&d.hasAttribute("formAction")){if(c=d,b=d[kt]||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),hy(a)}}}function gy(){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 ud(e){this._internalRoot=e}Os.prototype.render=ud.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,i=sn();iy(a,i,e,t,null,null)},Os.prototype.unmount=ud.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;iy(e.current,2,null,e,null,null),fs(),t[Fa]=null}};function Os(e){this._internalRoot=e}Os.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ep();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&&my(e)}};var vy=l.version;if(vy!=="19.2.0")throw Error(o(527,vy,"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 Ww={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(Ww),St=zs}catch{}}return Qr.createRoot=function(e,t){if(!s(e))throw Error(o(299));var a=!1,i="",c=Tg,d=Rg,b=Eg;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=oy(e,1,!1,null,null,a,i,null,c,d,b,gy),e[Fa]=t.current,Xf(e),new ud(t)},Qr.hydrateRoot=function(e,t,a){if(!s(e))throw Error(o(299));var i=!1,c="",d=Tg,b=Rg,R=Eg,j=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&&(j=a.formState)),t=oy(e,1,!0,t,a??null,i,c,j,d,b,R,gy),t.context=ry(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[Fa]=t.current,Xf(e),new Os(t)},Qr.version="19.2.0",Qr}var Ay;function c2(){if(Ay)return md.exports;Ay=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=s2(),md.exports}var u2=c2();function Mt(n){return Object.keys(n)}function vd(n){return n&&typeof n=="object"&&!Array.isArray(n)}function am(n,l){const r={...n},o=l;return vd(n)&&vd(l)&&Object.keys(l).forEach(s=>{vd(o[s])&&s in n?r[s]=am(r[s],o[s]):r[s]=o[s]}),r}function f2(n){return n.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`)}function d2(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=d2(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 _y(n){return n==="0rem"?"0rem":`calc(${n} * var(--mantine-scale))`}function zb(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?_y(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?_y(u):u}}return o}return r}const K=zb("rem",{shouldScale:!0}),Qs=zb("em");function om(n){return Object.keys(n).reduce((l,r)=>(n[r]!==void 0&&(l[r]=n[r]),l),{})}function jb(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 rm(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 Ks(n,l){let r=n;for(;(r=r.parentElement)&&!r.matches(l););return r}function Ny(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 My(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 m2(n,l,r){return Ks(n,r)===Ks(l,r)}function im({parentSelector:n,siblingSelector:l,onKeyDown:r,loop:o=!0,activateOnFocus:s=!1,dir:u="rtl",orientation:f}){return m=>{var g,w,E;r==null||r(m);const p=Array.from(((g=Ks(m.currentTarget,n))==null?void 0:g.querySelectorAll(l))||[]).filter(C=>m2(m.currentTarget,C,n)),h=p.findIndex(C=>m.currentTarget===C),S=My(h,p,o),v=Ny(h,p,o);switch(m.key){case"ArrowRight":break;case"ArrowLeft":break;case"ArrowUp":m.stopPropagation(),m.preventDefault(),p[v].focus(),s&&p[v].click();break;case"ArrowDown":m.stopPropagation(),m.preventDefault(),p[S].focus(),s&&p[S].click();break;case"Home":m.stopPropagation(),m.preventDefault(),(w=p[My(-1,p,!1)])==null||w.focus();break;case"End":m.stopPropagation(),m.preventDefault(),(E=p[Ny(p.length,p,!1)])==null||E.focus();break}}}const p2={app:100,modal:200,popover:300,overlay:400,max:9999};function Qt(n){return p2[n]}const Db=()=>{};function h2(n,l={active:!0}){return typeof n!="function"||!l.active?l.onKeyDown||Db: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 jb(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 Tt(n){return Je(n,"mantine-font-size")}function g2(n){return Je(n,"mantine-line-height",!1)}function sm(n){if(n)return Je(n,"mantine-shadow",!1)}function at(n,l){return r=>{n==null||n(r),l==null||l(r)}}function cm(n,l){return n in l?Ud(l[n]):Ud(n)}function Oy(n,l){const r=n.map(o=>({value:o,px:cm(o,l)}));return r.sort((o,s)=>o.px-s.px),r}function v2(n,l,r){var o;return r?Array.from(((o=Ks(r,l))==null?void 0:o.querySelectorAll(n))||[]).findIndex(s=>s===r):null}function kd(n="mantine-"){return`${n}${Math.random().toString(36).slice(2,11)}`}function y2(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 ko(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=ko(n),m=x.useRef(0),p=x.useRef(0),h=x.useRef(null),S=x.useMemo(()=>{const v=Object.assign((...g)=>{window.clearTimeout(m.current),h.current=g;const w=v._isFirstCall;v._isFirstCall=!1;function E(){window.clearTimeout(m.current),window.clearTimeout(p.current),m.current=0,p.current=0,v._isFirstCall=!0,v._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(...g);const N=()=>{E()},_=()=>{m.current!==0&&(E(),f(...g))},z=()=>{E()};v.flush=_,v.cancel=z,m.current=window.setTimeout(N,r),C();return}if(s&&!w){v._hasPendingCallback=!0;const N=()=>{m.current!==0&&(E(),f(...g))},_=()=>{E()};v.flush=N,v.cancel=_;const z=()=>{E()};m.current=window.setTimeout(z,r),C();return}v._hasPendingCallback=!0;const T=()=>{m.current!==0&&(E(),f(...g))},A=()=>{E()};v.flush=T,v.cancel=A,m.current=window.setTimeout(T,r),C()},{flush:()=>{},cancel:()=>{},isPending:()=>v._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return v},[f,r,s,u]);return x.useEffect(()=>()=>{o?S.flush():S.cancel()},[S,o]),S}const b2=["mousedown","touchstart"];function S2(n,l,r,o=!0){const s=x.useRef(null),u=l||b2,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(v=>!!v&&!S.includes(v))&&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 x2(n,l){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(n).matches:!1}function um(n,l,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[o,s]=x.useState(r?l:x2(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 $b(n,l){return um("(prefers-color-scheme: dark)",n==="dark",l)?"dark":"light"}const Wn=typeof document<"u"?x.useLayoutEffect:x.useEffect;function fm(n,l){const r=x.useRef(!1);x.useEffect(()=>()=>{r.current=!1},[]),x.useEffect(()=>{if(r.current)return n();r.current=!0},l)}function Lb({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 fm(()=>{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 w2=/input|select|textarea|button|object/,Bb="a, input, select, textarea, button, object, [tabindex]";function C2(n){return n.style.display==="none"}function T2(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(C2(l))return!1;l=l.parentNode}return!0}function Hb(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(Hb(n));return(w2.test(l)&&!n.disabled||n instanceof HTMLAnchorElement&&n.href||r)&&T2(n)}function Ub(n){const l=Hb(n);return(Number.isNaN(l)||l>=0)&&Yd(n)}function R2(n){return Array.from(n.querySelectorAll(Bb)).filter(Ub)}function E2(n,l){const r=R2(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 A2(n=!0){const l=x.useRef(null),r=s=>{let u=s.querySelector("[data-autofocus]");if(!u){const f=Array.from(s.querySelectorAll(Bb));u=f.find(Ub)||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&&E2(l.current,u)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n]),o}function Un(n){const[l,r]=x.useState(`mantine-${x.useId().replace(/:/g,"")}`),o=x.useRef(!1);return Wn(()=>{o.current||(o.current=!0,r(kd()))},[]),typeof n=="string"?n:l}function kb(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 _2(...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(_2(...n),n)}function el({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 dm(n,l){return um("(prefers-reduced-motion: reduce)",n,l)}function N2(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(!y2(n[r],l[r]))return!1;return!0}function M2(n){const l=x.useRef([]),r=x.useRef(0);return N2(l.current,n)||(l.current=n,r.current+=1),[r.current]}function O2(n,l){x.useEffect(n,M2(l))}function z2(n,l,r={autoInvoke:!1}){const o=x.useRef(null),s=ko(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 j2(n){const l=x.useRef(void 0);return x.useEffect(()=>{l.current=n},[n]),l.current}function D2(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 $2(){const[n,l]=x.useState(!1);return x.useEffect(()=>l(!0),[]),n}const L2=["mouse","touch"],B2=10;function H2(n,l={}){const{threshold:r=400,events:o=L2,cancelOnMove:s=!1,onStart:u,onFinish:f,onCancel:m}=l,p=x.useRef(!1),h=x.useRef(!1),S=x.useRef(-1),v=x.useRef(null);return x.useEffect(()=>()=>window.clearTimeout(S.current),[]),x.useMemo(()=>{if(typeof n!="function")return{};const g=s!==!1,w=s===!0?B2:s===!1?0:s,E=N=>{!jy(N)&&!Vd(N)||(u&&u(N),v.current=zy(N),h.current=!0,S.current=window.setTimeout(()=>{n(N),p.current=!0},r))},C=N=>{!jy(N)&&!Vd(N)||(p.current?f&&f(N):h.current&&m&&m(N),p.current=!1,h.current=!1,v.current=null,S.current!==-1&&(window.clearTimeout(S.current),S.current=-1))},T=N=>{if(!g||!h.current||p.current)return;const _=zy(N);if(!_||!v.current)return;const z=_.x-v.current.x,L=_.y-v.current.y;Math.sqrt(z*z+L*L)>w&&C(N)},A={};return o.includes("mouse")&&(A.onMouseDown=E,A.onMouseUp=C,A.onMouseLeave=C,g&&(A.onMouseMove=T)),o.includes("touch")&&(A.onTouchStart=E,A.onTouchEnd=C,A.onTouchCancel=C,g&&(A.onTouchMove=T)),A},[n,r,m,f,u,s,o.join(",")])}function zy(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 jy(n){return n.nativeEvent instanceof MouseEvent}var mm=Ob();const U2=Nb(mm);var k2={};function Y2(){return"development"}function ic(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 q2(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||typeof n=="bigint"}function qs(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=qs(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 m=Tl(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 Ml(n){const l=x.Children.toArray(n);return l.length!==1||!rm(l[0])?null:l[0]}function Yb(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=Yb(n[l]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function vt(){for(var n,l,r=0,o="",s=arguments.length;r<s;r++)(n=arguments[r])&&(l=Yb(n))&&(o&&(o+=" "),o+=l);return o}const V2={};function G2(n){const l={};return n.forEach(r=>{Object.entries(r).forEach(([o,s])=>{l[o]?l[o]=vt(l[o],s):l[o]=s})}),l}function ei({theme:n,classNames:l,props:r,stylesCtx:o}){return G2((Array.isArray(l)?l:[l]).map(s=>typeof s=="function"?s(n,r,o):s||V2))}function Fs({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 Dy(n){return n==="auto"||n==="dark"||n==="light"}function X2({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 Dy(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&&Dy(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 I2(n){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(n)}function Z2(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 Q2(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 K2(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,v,g;return m>=0&&m<1?(S=f,v=p,g=0):m>=1&&m<2?(S=p,v=f,g=0):m>=2&&m<3?(S=0,v=f,g=p):m>=3&&m<4?(S=0,v=p,g=f):m>=4&&m<5?(S=p,v=0,g=f):(S=f,v=0,g=p),{r:Math.round((S+h)*255),g:Math.round((v+h)*255),b:Math.round((g+h)*255),a:u||1}}function pm(n){return I2(n)?Z2(n):n.startsWith("rgb")?Q2(n):n.startsWith("hsl")?K2(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 F2(n){const l=n.match(/oklch\((.*?)%\s/);return l?parseFloat(l[1]):null}function J2(n){if(n.startsWith("oklch("))return(F2(n)||0)/100;const{r:l,g:r,b:o}=pm(n),s=l/255,u=r/255,f=o/255,m=yd(s),p=yd(u),h=yd(f);return .2126*m+.7152*p+.0722*h}function Kr(n,l=.179){return n.startsWith("var(")?!1:J2(n)>l}function va({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 m=u!==void 0?l.colors[o][u]:l.colors[o][ti(l,r||"light")];return{color:o,value:m,shade:u,isThemeColor:f,isLight:Kr(m,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=va({color:n||l.primaryColor,theme:l});return r.variable?`var(${r.variable})`:n}function hm(n){return!!n&&typeof n=="object"&&"mantine-virtual-color"in n}function ka(n,l){if(n.startsWith("var("))return`color-mix(in srgb, ${n}, black ${l*100}%)`;const{r,g:o,b:s,a:u}=pm(n),f=1-l,m=p=>Math.round(p*f);return`rgba(${m(r)}, ${m(o)}, ${m(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}=pm(n);return`rgba(${r}, ${o}, ${s}, ${l})`}const $y=ua,P2=({color:n,theme:l,variant:r,gradient:o,autoContrast:s})=>{const u=va({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&&hm(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:ka(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:ka(m,.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 m=l.colors[u.color][u.shade];return{background:"transparent",hover:ua(m,.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:ka(l.white,.01),color:`var(--mantine-color-${n}-filled)`,border:`${K(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:ka(l.white,.01),color:`var(--mantine-color-${u.color}-${u.shade})`,border:`${K(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:ka(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 gm({color:n,theme:l,autoContrast:r,colorScheme:o}){return(typeof r=="boolean"?r:l.autoContrast)&&va({color:n||l.primaryColor,theme:l,colorScheme:o}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Xd(n,l,r){return gm({color:r==="dark"?n.dark:n.light,theme:l,colorScheme:r,autoContrast:!0})}function Ly(n,l){const r=n.colors[n.primaryColor];return hm(r)?n.autoContrast?Xd(r,n,l):"var(--mantine-color-white)":gm({color:r[ti(n,l)],theme:n,autoContrast:null})}const vm=x.createContext(null);function ll(){const n=x.use(vm);if(!n)throw new Error("[@mantine/core] MantineProvider was not found in tree");return n}function W2(){return ll().cssVariablesResolver}function eC(){return ll().classNamesPrefix}function sc(){return ll().getStyleNonce}function tC(){return ll().withStaticClasses}function nC(){return ll().headless}function lC(){var n;return(n=ll().stylesTransform)==null?void 0:n.sx}function aC(){var n;return(n=ll().stylesTransform)==null?void 0:n.styles}function ym(){return ll().env||"default"}function oC(){return ll().deduplicateInlineStyles}function By(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(Db),r=x.useRef(-1),o=x.use(vm),s=x.useRef((S=sc())==null?void 0:S());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const u=v=>{o.setColorScheme(v),l.current=n?()=>{}:By(s.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{var g;(g=l.current)==null||g.call(l)},10)},f=()=>{o.clearColorScheme(),l.current=n?()=>{}:By(s.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{var v;(v=l.current)==null||v.call(l)},10)},m=$b("light",{getInitialValueInEffect:!1}),p=o.colorScheme==="auto"?m:o.colorScheme,h=x.useCallback(()=>u(p==="light"?"dark":"light"),[u,p]);return x.useEffect(()=>()=>{var v;(v=l.current)==null||v.call(l),window.clearTimeout(r.current)},[]),{colorScheme:o.colorScheme,setColorScheme:u,clearColorScheme:f,toggleColorScheme:h}}function $o(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 rC({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||($o(S,r),f(S),n.set(S))},[n.set,m,o]),h=x.useCallback(()=>{f(l),$o(l,r),n.clear()},[n.clear,l]);return x.useEffect(()=>(n.subscribe(p),n.unsubscribe),[n.subscribe,n.unsubscribe]),Wn(()=>{$o(n.get(l),r)},[]),x.useEffect(()=>{var v;if(o)return $o(o,r),()=>{};o===void 0&&$o(u,r),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const S=g=>{u==="auto"&&$o(g.matches?"dark":"light",r)};return(v=s.current)==null||v.addEventListener("change",S),()=>{var g;return(g=s.current)==null?void 0:g.removeEventListener("change",S)}},[u,o]),{colorScheme:m,setColorScheme:p,clearColorScheme:h}}function Vb(n,l={getInitialValueInEffect:!0}){const r=$b(n,l),{colorScheme:o}=qb();return o==="auto"?r:o}const iC={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"]},Hy="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",bm={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:iC,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:P2,autoContrast:!1,luminanceThreshold:.3,fontFamily:Hy,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:Hy,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:{}},sC="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Uy="[@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 ky(n){if(!(n.primaryColor in n.colors))throw new Error(sC);if(typeof n.primaryShade=="object"&&(!bd(n.primaryShade.dark)||!bd(n.primaryShade.light)))throw new Error(Uy);if(typeof n.primaryShade=="number"&&!bd(n.primaryShade))throw new Error(Uy)}function cC(n,l){var o;if(!l)return ky(n),n;const r=am(n,l);return l.fontFamily&&!((o=l.headings)!=null&&o.fontFamily)&&(r.headings={...r.headings,fontFamily:l.fontFamily}),ky(r),r}const Sm=x.createContext(null),uC=()=>x.use(Sm)||bm;function cn(){const n=x.use(Sm);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 Gb({theme:n,children:l,inherit:r=!0}){const o=uC(),s=x.useMemo(()=>cC(r?o:bm,n),[n,o,r]);return y.jsx(Sm,{value:s,children:l})}Gb.displayName="@mantine/core/MantineThemeProvider";function Sd(n){return Object.entries(n).map(([l,r])=>`${l}: ${r};`).join("")}function Xb(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),m=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,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 Rp(){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&&Ep(e,i,0),m!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=m&~(b&~t))}function Ep(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 Ap(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 _p(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 Np(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:py(e.type))}function Mp(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,Op="__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=Pg(e);e!==null;){if(a=e[Tt])return a;e=Pg(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[Op];return t||(t=e[Op]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[ar]=!0}var jp=new Set,zp={};function xa(e,t){to(e,t),to(e+"Capture",t)}function to(e,t){for(zp[e]=t,e=0;e<t.length;e++)jp.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]*$"),Dp={},$p={};function tx(e){return jt.call($p,e)?!0:jt.call(Dp,e)?!1:ex.test(e)?$p[e]=!0:(Dp[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 Lp(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=Lp(e)?"checked":"value";e._valueTracker=nx(e,t,""+e[t])}}function Bp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Lp(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 kp(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 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 Hp(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 Yp(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 qp(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&&Yp(e,c,i)}else for(var m in t)t.hasOwnProperty(m)&&Yp(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 Vp(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&&Bp(i)}break e;case"textarea":Up(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&no(e,!!a.multiple,t,!1)}}}var cu=!1;function Gp(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,Vp(t),e)))for(t=0;t<e.length;t++)Vp(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 Xp(){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 Ip(){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:Ip,this.isPropagationStopped=Ip,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}}),Zp=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}),Qp=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}),Kp=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,Fp=sl&&(!vu||ur&&8<ur&&11>=ur),Jp=" ",Pp=!1;function Wp(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 eh(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 eh(t);case"keypress":return t.which!==32?null:(Pp=!0,Jp);case"textInput":return e=t.data,e===Jp&&Pp?null:e;default:return null}}function Dx(e,t){if(ro)return e==="compositionend"||!vu&&Wp(e,t)?(e=Xp(),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 Fp&&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 th(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$x[e.type]:t==="textarea"}function nh(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){kg(e,0)}function Oi(e){var t=or(e);if(Bp(t))return e}function lh(e,t){if(e==="change")return t}var ah=!1;if(sl){var gu;if(sl){var yu="oninput"in document;if(!yu){var oh=document.createElement("div");oh.setAttribute("oninput","return;"),yu=typeof oh.oninput=="function"}gu=yu}else gu=!1;ah=gu&&(!document.documentMode||9<document.documentMode)}function rh(){fr&&(fr.detachEvent("onpropertychange",ih),dr=fr=null)}function ih(e){if(e.propertyName==="value"&&Oi(dr)){var t=[];nh(t,dr,e,su(e)),Gp(Lx,t)}}function Bx(e,t,a){e==="focusin"?(rh(),fr=t,dr=a,fr.attachEvent("onpropertychange",ih)):e==="focusout"&&rh()}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 sh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ch(e,t){var a=sh(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=sh(a)}}function uh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fh(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 dh(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={},mh={};sl&&(mh=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 mh)return wu[e]=t[a];return e}var ph=Ta("animationend"),hh=Ta("animationiteration"),vh=Ta("animationstart"),Vx=Ta("transitionrun"),Gx=Ta("transitionstart"),Xx=Ta("transitioncancel"),gh=Ta("transitionend"),yh=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){yh.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&&bh(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 bh(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 Sh(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 xh(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 wh=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var a=wh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ut(t)},wh.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 Ch(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),Ch(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 Th(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 Rh(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Tt]=e,t[Ht]=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<kr.length;a++)$e(kr[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),kp(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),Hp(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||qg(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=il),t=!0):t=!1,t||Gl(e,!0)}function Eh(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 Eh(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),Eh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Jg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Jg(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 Ah(_a,e)}function Ui(e,t){return _a===null&&Na(e),Ah(e,t)}function Ah(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(_h,_h),t}function _h(){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 Nh=O.S;O.S=function(e,t){dg=je(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Fx(e,t),Nh!==null&&Nh(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 Mh(){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 Oh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jh(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,Dh(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,Dh(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 zh(){if(ja===null)throw Error(o(459));var e=ja;return ja=null,e}function Dh(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=[]),jh(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 $h(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=$h(!0),Lh=$h(!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),bh(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,Ap(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 Bh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function kh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Bh(a[e],t)}var So=M(null),Xi=M(0);function Uh(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 Hh(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?Cv:uf,Da=!1,m=a(i,c),Da=!1,xo&&(m=qh(t,a,i,c)),Yh(e),m}function Yh(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 qh(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=Tv,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=jh(wo,e,t),t=Ae,(dt===null?t.memoizedState:dt.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Cv: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 Vh(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(Ih.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},Xh.bind(null,i,c,a,t),null),Fe===null)throw Error(o(349));m||(ml&127)!==0||Gh(i,t,a)}return a}function Gh(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 Xh(e,t,a,i){t.value=a,t.getSnapshot=i,Zh(t)&&Qh(e)}function Ih(e,t,a){return a(function(){Zh(t)&&Qh(e)})}function Zh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!tn(e,a)}catch{return!0}}function Qh(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 Kh(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,Fh(t,m)):(m.next=a.next,t.pending=a.next=m)}}function Fh(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),Jh(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),Jh(e,t,m)}catch(X){nf(e,t,X)}}function Jh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Ph(e,t,i)},function(i){return nf(e,t,i)}):Ph(e,t,a)}function Ph(e,t,a){t.status="fulfilled",t.value=a,Wh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Fh(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,Wh(t),t=t.next;while(t!==i)}e.action=null}function Wh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ev(e,t){return t}function tv(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:ev,lastRenderedState:t},a.queue=i,a=Sv.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 nv(e){var t=ct();return lv(t,Ze,e)}function lv(e,t,a){if(t=Wu(e,t,ev)[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 av(e){var t=ct(),a=Ze;if(a!==null)return lv(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 ov(){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 rv(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 iv(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 sv(e,t){return Wi(4,2,e,t)}function cv(e,t){return Wi(4,4,e,t)}function uv(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 fv(e,t,a){a=a!=null?a.concat([e]):null,Wi(4,4,uv.bind(null,t,e),a)}function af(){}function dv(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 mv(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=pg(),Ae.lanes|=e,Wl|=e,a)}function pv(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=pg(),Ae.lanes|=e,Wl|=e,t)}function hv(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=vv(e).queue;hv(e,c,t,H,a===null?lw:function(){return gv(e),a(i)})}function vv(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 gv(e){var t=vv(e);t.next===null&&(t=e.alternate.memoizedState),Er(e,t.next.queue,{},sn())}function sf(){return Et(Vr)}function yv(){return ct().memoizedState}function bv(){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)?xv(t,a):(a=Ru(e,t,a,i),a!==null&&(It(a,e,i),wv(a,t,i)))}function Sv(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))xv(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),wv(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 xv(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 wv(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Ap(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 Cv={readContext:Et,use:Fi,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:rv,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Pi(4194308,4,uv.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=Sv.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=hv.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||Gh(i,t,a)}c.memoizedState=a;var m={value:a,getSnapshot:t};return c.queue=m,rv(Ih.bind(null,i,m,e),[e]),i.flags|=2048,Co(9,{destroy:void 0},Xh.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:tv,useActionState:tv,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:dv,useContext:Et,useEffect:lf,useImperativeHandle:fv,useInsertionEffect:sv,useLayoutEffect:cv,useMemo:mv,useReducer:Ji,useRef:ov,useState:function(){return Ji(pl)},useDebugValue:af,useDeferredValue:function(e,t){var a=ct();return pv(a,Ze.memoizedState,e,t)},useTransition:function(){var e=Ji(pl)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:Rr(e),t]},useSyncExternalStore:Vh,useId:yv,useHostTransitionStatus:sf,useFormState:nv,useActionState:nv,useOptimistic:function(e,t){var a=ct();return Kh(a,Ze,e,t)},useMemoCache:Pu,useCacheRefresh:bv};uf.useEffectEvent=iv;var Tv={readContext:Et,use:Fi,useCallback:dv,useContext:Et,useEffect:lf,useImperativeHandle:fv,useInsertionEffect:sv,useLayoutEffect:cv,useMemo:mv,useReducer:ef,useRef:ov,useState:function(){return ef(pl)},useDebugValue:af,useDeferredValue:function(e,t){var a=ct();return Ze===null?of(a,e,t):pv(a,Ze.memoizedState,e,t)},useTransition:function(){var e=ef(pl)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:Rr(e),t]},useSyncExternalStore:Vh,useId:yv,useHostTransitionStatus:sf,useFormState:av,useActionState:av,useOptimistic:function(e,t){var a=ct();return Ze!==null?Kh(a,Ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Pu,useCacheRefresh:bv};Tv.useEffectEvent=iv;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 Rv(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 Ev(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 Av(e){ji(e)}function _v(e){console.error(e)}function Nv(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 Mv(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 Ov(e){return e=Zl(e),e.tag=3,e}function jv(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(){Mv(t,a,i)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Mv(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=Ov(c),jv(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?Lh(t,null,a,i):za(t,e.child,a,i)}function zv(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 Dv(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,$v(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 $v(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 Lv(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 Bv(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?Uh(t,m):Gu(),Hh(t);else return i=t.lanes=536870912,Bv(e,t,m!==null?m.baseLanes|a:a,a,i)}else m!==null?(Hi(t,m.cachePool),Uh(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 Bv(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(),Hh(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 kv(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=Fg(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=xh(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=kv(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=_p(i,a),b!==0&&b!==m.retryLane))throw m.retryLane=b,Ra(e,b),It(i,e,b),pf;ms(),t=kv(e,t,a)}else e=m.treeContext,We=xn(b.nextSibling),Rt=t,ke=!0,Vl=null,bn=!1,e!==null&&Th(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 Uv(e,t,a,i,c,m){return Na(t),t.updateQueue=null,a=qh(t,i,a,c),Yh(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 Hv(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)&&Ev(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||Rv(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)&&Ev(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||Rv(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 Yv(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:Mh()}}function yf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=rn),e}function qv(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=Fg(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=xh(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=_p(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&&Th(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=Mh(),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 Vv(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 Gv(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&&Vv(e,a,t);else if(e.tag===19)Vv(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?qv(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 Gv(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,Lv(e,t,a,t.pendingProps);case 24:Xl(t,ft,e.memoizedState.cache)}return hl(e,t,a)}function Xv(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&&Ch(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=Hv(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=zv(null,t,e,i,a);break e}else if(c===D){t.tag=14,t=Dv(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),Hv(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=Yv(e,t,i,a);break e}else if(i!==c){c=vn(Error(o(424)),t),vr(c),t=Yv(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=Lh(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=ny(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=ny(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Me(t),e===null&&ke&&(i=t.stateNode=Wg(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 qv(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 zv(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 Dv(e,t,t.type,t.pendingProps,a);case 15:return $v(e,t,t.type,t.pendingProps,a);case 19:return Gv(e,t,a);case 31:return iw(e,t,a);case 22:return Lv(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(yg())e.flags|=8192;else throw ja=qi,Uu}else e.flags&=-16777217}function Iv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!iy(t))if(yg())e.flags|=8192;else throw ja=qi,Uu}function os(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Rp():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),Iv(t,m)):(et(t),Cf(t,c,null,i,a))):m?m!==e.memoizedState?(vl(t),et(t),Iv(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)?Rh(t):(e=Wg(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))Rh(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||qg(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;)Sh(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 Zv(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 Qv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{kh(t,a)}catch(i){Xe(e,e.return,i)}}}function Kv(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 Fv(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 Jv(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||Jv(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 Pv(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,Wv=typeof WeakSet=="function"?WeakSet:Set,wt=null;function fw(e,t){if(e=e.containerInfo,Qf=As,e=fh(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 eg(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&&Qv(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{kh(e,t)}catch(b){Xe(a,a.return,b)}}break;case 27:t===null&&i&4&&Pv(a);case 26:case 5:bl(e,a),t===null&&i&4&&Fv(a),i&512&&Or(a,a.return);break;case 12:bl(e,a);break;case 31:bl(e,a),i&4&&lg(e,a);break;case 13:bl(e,a),i&4&&ag(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 tg(e){var t=e.alternate;t!==null&&(e.alternate=null,tg(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;)ng(e,t,a),a=a.sibling}function ng(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,Qg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),$o(e)):Qg(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"&&Kv(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 lg(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 ag(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 Wv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Wv),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));ng(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;)og(t,e),t=t.sibling}var _n=null;function og(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=oy("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=oy("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 ry(c,e.type,e.stateNode);else e.stateNode=ay(c,i,e.memoizedProps);else m!==i?(m===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):m.count--,i===null?ry(c,e.type,e.stateNode):ay(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,rg(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?Kg(Q,!0):Kg(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(Jv(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 rg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;rg(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;)eg(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"&&Kv(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++)Bh(z[c],R)}catch(X){Xe(i,i.return,X)}}a&&b&64&&Qv(m),Or(m,m.return);break;case 27:Pv(m);case 26:case 5:Sl(c,m,a),a&&i===null&&b&4&&Fv(m),Or(m,m.return);break;case 12:Sl(c,m,a);break;case 31:Sl(c,m,a),a&&b&4&&lg(c,m);break;case 13:Sl(c,m,a),a&&b&4&&ag(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;)ig(e,t,a,i),t=t.sibling}function ig(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;)sg(e,t,a),e=e.sibling}function sg(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 cg(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,fg(i,e)}cg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ug(e),e=e.sibling}function ug(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,fg(i,e)}cg(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 fg(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(tg(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,De=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,dg=0,us=1/0,fs=null,ea=null,bt=0,ta=null,_o=null,wl=0,zf=0,Df=null,mg=null,Lr=0,$f=null;function sn(){return(qe&2)!==0&&Le!==0?Le&-Le:O.T!==null?Yf():Np()}function pg(){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 hg(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=Ig(vg.bind(null,i,a,Xt,fs,jf,t,rn,Ba,Ao,Pl,m,"Throttled",-0,0),c);break e}vg(i,a,Xt,fs,jf,t,rn,Ba,Ao,Pl,m,null,-0,0)}}break}while(!0);Qn(e)}function vg(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},sg(t,m,re);var ve=(m&62914560)===m?cs-je():(m&4194048)===m?dg-je():0;if(ve=Ww(re,ve),ve!==null){wl=m,e.cancelPendingCommit=ve(Tg.bind(null,e,t,m,a,i,c,b,R,z,W,re,null,I,Q)),na(e,m,b,!X);return}}Tg(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&&Ep(e,a,t)}function ds(){return(qe&6)===0?(Br(0),!1):!0}function Lf(){if(De!==null){if(Ge===0)var e=De.return;else e=De,fl=_a=null,Ju(e),bo=null,br=0,e=De;for(;e!==null;)Zv(e.alternate,e),e=e.return;De=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,De=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 gg(e,t){Ae=null,O.H=Ar,t===yo||t===Yi?(t=zh(),Ge=3):t===Uu?(t=zh(),Ge=4):Ge=t===pf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,on=t,De===null&&(rt=1,ts(e,vn(t,e.current)))}function yg(){var e=ln.current;return e===null?!0:(Le&4194048)===Le?Sn===null:(Le&62914560)===Le||(Le&536870912)!==0?e===Sn:!1}function bg(){var e=O.H;return O.H=Ar,e===null?Ar:e}function Sg(){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=bg(),m=Sg();(Fe!==e||Le!==t)&&(fs=null,No(e,t)),t=!1;var b=rt;e:do try{if(Ge!==0&&De!==null){var R=De,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){gg(e,W)}while(!0);return t&&e.shellSuspendCounter++,fl=_a=null,qe=i,O.H=c,O.A=m,De===null&&(Fe=null,Le=0,zi()),b}function vw(){for(;De!==null;)xg(De)}function gw(e,t){var a=qe;qe|=2;var i=bg(),c=Sg();Fe!==e||Le!==t?(fs=null,us=je()+500,No(e,t)):Eo=nr(e,t);e:do try{if(Ge!==0&&De!==null){t=De;var m=on;t:switch(Ge){case 1:Ge=0,on=null,Mo(e,t,m,1);break;case 2:case 9:if(Oh(m)){Ge=0,on=null,wg(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:Oh(m)?(Ge=0,on=null,wg(t)):(Ge=0,on=null,Mo(e,t,m,7));break;case 5:var b=null;switch(De.tag){case 26:b=De.memoizedState;case 5:case 27:var R=De;if(b?iy(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,ps(X)):De=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){gg(e,W)}while(!0);return fl=_a=null,O.H=i,O.A=c,qe=a,De!==null?0:(Fe=null,Le=0,zi(),rt)}function yw(){for(;De!==null&&!zt();)xg(De)}function xg(e){var t=Xv(e.alternate,e,xl);e.memoizedProps=e.pendingProps,t===null?ps(e):De=t}function wg(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:Ju(t);default:Zv(a,t),t=De=Sh(t,xl),t=Xv(a,t,xl)}e.memoizedProps=e.pendingProps,t===null?ps(e):De=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)),De=null;return}}catch(m){if(c!==null)throw De=c,m;rt=1,ts(e,vn(a,e.current)),De=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))),Cg(t,e)):ps(t)}function ps(e){var t=e;do{if((t.flags&32768)!==0){Cg(t,Pl);return}e=t.return;var a=cw(t.alternate,t,xl);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 Cg(e,t){do{var a=uw(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 Tg(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&&(De=Fe=null,Le=0),_o=t,ta=e,wl=a,zf=m,Df=c,mg=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ww(Ye,function(){return Ng(),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,Rg(),Eg(),Ag()}}function Rg(){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{og(t,e);var m=Kf,b=fh(e.containerInfo),R=m.focusedElem,z=m.selectionRange;if(b!==R&&R&&R.ownerDocument&&uh(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=ch(R,we),$=ch(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 Eg(){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{eg(e,t.alternate,t)}finally{qe=c,B.p=i,O.T=a}}bt=3}}function Ag(){if(bt===4||bt===3){bt=0,Pt();var e=ta,t=_o,a=wl,i=mg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?bt=5:(bt=0,_o=ta=null,_g(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 _g(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,gr(t)))}function hs(){return Rg(),Eg(),Ag(),Ng()}function Ng(){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,ug(m.current),ig(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,_g(e,t)}}function Mg(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)Mg(e,e,a);else for(;t!==null;){if(t.tag===3){Mg(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=Ov(2),i=Ql(t,a,2),i!==null&&(jv(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 Og(e,t){t===0&&(t=Rp()),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),Og(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),Og(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,$g(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,$g(i,m));i=i.next}while(a);Hf=!1}}function Cw(){jg()}function jg(){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=zg(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 zg(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=Dg.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 Dg(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:(hg(e,i,t),zg(e,je()),e.callbackNode!=null&&e.callbackNode===a?Dg.bind(null,e):null)}function $g(e,t){if(hs())return null;hg(e,t,!0)}function Tw(){Lw(function(){(qe&6)!==0?fn(yt,Cw):jg()})}function Yf(){if(la===0){var e=vo;e===0&&(e=Ka,Ka<<=1,(Ka&261888)===0&&(Ka=256)),la=e}return la}function Lg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ri(""+e)}function Bg(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=Lg((c[Ht]||null).action),b=i.submitter;b&&(t=(t=b[Ht]||null)?Lg(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?Bg(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?Bg(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(ph,"onAnimationEnd"),An(hh,"onAnimationIteration"),An(vh,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(Vx,"onTransitionRun"),An(Gx,"onTransitionStart"),An(Xx,"onTransitionCancel"),An(gh,"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 kg(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 $e(e,t){var a=t[tu];a===void 0&&(a=t[tu]=new Set);var i=e+"__bubble";a.has(i)||(Ug(t,e,2,!1),a.add(i))}function Gf(e,t,a){var i=0;t&&(i|=4),Ug(a,e,i,t)}var ys="_reactListening"+Math.random().toString(36).slice(2);function Xf(e){if(!e[ys]){e[ys]=!0,jp.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 Ug(e,t,a,i){switch(py(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}Gp(function(){var X=m,W=su(a),re=[];e:{var I=yh.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=Zp;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 ph:case hh:case vh:Q=dx;break;case gh: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=Kp;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=Zp,ne="onMouseLeave",q="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(we=Kp,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&&Hg(re,I,Q,we,!1),ve!==null&&Ke!==null&&Hg(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=lh;else if(th(I))if(ah)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=lh):Ue=Ux;if(Ue&&(Ue=Ue(e,X))){nh(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":(th(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,dh(re,a,W);break;case"selectionchange":if(qx)break;case"keydown":case"keyup":dh(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?Wp(e,a)&&(Be="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Be="onCompositionStart");Be&&(Fp&&a.locale!=="ko"&&(ro||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&ro&&(_e=Xp()):(Yl=W,fu="value"in Yl?Yl.value:Yl.textContent,ro=!0)),be=bs(X,Be),0<be.length&&(Be=new Qp(Be,e,null,a,W),re.push({event:Be,listeners:be}),_e?Be.data=_e:(_e=eh(a),_e!==null&&(Be.data=_e)))),(_e=jx?zx(e,a):Dx(e,a))&&(Be=bs(X,"onBeforeInput"),0<Be.length&&(be=new Qp("onBeforeInput","beforeinput",null,a,W),re.push({event:be,listeners:Be}),be.data=_e)),Rw(re,e,X,a,W)}kg(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 Hg(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 Yg(e){return(typeof e=="string"?e:""+e).replace(Mw,`
49
+ `).replace(Ow,"")}function qg(e,t){return t=Yg(t),Yg(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":qp(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&&$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=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":$e("beforetoggle",e),$e("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":qp(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&&$e("scroll",e);break;case"onScrollEnd":i!=null&&$e("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(!zp.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":$e("error",e),$e("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":$e("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)}}kp(e,m,R,z,X,b,c,!1);return;case"select":$e("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":$e("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)}Hp(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":$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<kr.length;i++)$e(kr[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(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)}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(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 Vg(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&&Vg(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&&Vg(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 Gg(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 Xg(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 Ig=typeof setTimeout=="function"?setTimeout:void 0,$w=typeof clearTimeout=="function"?clearTimeout:void 0,Zg=typeof Promise=="function"?Promise:void 0,Lw=typeof queueMicrotask=="function"?queueMicrotask:typeof Zg<"u"?function(e){return Zg.resolve(null).then(e).catch(Bw)}:Ig;function Bw(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function Qg(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 Kg(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 Fg(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 Jg(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 Pg(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 Wg(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,ey=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"?gv(t):Cl.r(e)}var jo=typeof document>"u"?null:document;function ty(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+'"]'),ey.has(c)||(ey.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),ty("dns-prefetch",e,null)}function Gw(e,t){Cl.C(e,t),ty("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 ny(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 ly(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 ay(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=ly(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 oy(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 ry(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 iy(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=ly(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 sy(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 cy(e){return e?(e=uo,e):uo}function uy(e,t,a,i,c,m){c=cy(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 fy(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){fy(e,t),(e=e.alternate)&&fy(e,t)}function dy(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&It(t,e,67108864),od(e,67108864)}}function my(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),hy(e,i);else if(o2(c,e,t,a,i))i.stopPropagation();else if(hy(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 py(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 hy(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&&dy(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 vy(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,Mp(e.priority,function(){my(a)});return}}else if(t===31){if(t=d(a),t!==null){e.blockedOn=t,Mp(e.priority,function(){my(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&&dy(t),e.blockedOn=a,!1;t.shift()}return!0}function gy(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(gy),Xr.forEach(gy)}function Ms(e,t){e.blockedOn===t&&(e.blockedOn=null,cd||(cd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,r2)))}var Os=null;function yy(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);)vy(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||yy(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),yy(a)}}}function by(){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();uy(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;uy(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=Np();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&&vy(e)}};var Sy=l.version;if(Sy!=="19.2.0")throw Error(o(527,Sy,"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=Av,m=_v,b=Nv;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=sy(e,1,!1,null,null,a,i,null,c,m,b,by),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=Av,b=_v,R=Nv,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=sy(e,1,!0,t,a??null,i,c,z,m,b,R,by),t.context=cy(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 My;function g2(){if(My)return md.exports;My=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 im(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]=im(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 Oy(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?Oy(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?Oy(u):u}}return o}return r}const K=Bb("rem",{shouldScale:!0}),Ks=Bb("em");function sm(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 cm(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 jy(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 zy(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 um({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=zy(h,p,o),g=jy(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[zy(-1,p,!1)])==null||w.focus();break;case"End":d.stopPropagation(),d.preventDefault(),(E=p[jy(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 fm(n){if(n)return Je(n,"mantine-shadow",!1)}function at(n,l){return r=>{n==null||n(r),l==null||l(r)}}function dm(n,l){return n in l?Ud(l[n]):Ud(n)}function Dy(n,l){const r=n.map(o=>({value:o,px:dm(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 mm(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 mm("(prefers-color-scheme: dark)",n==="dark",l)?"dark":"light"}const Wn=typeof document<"u"?x.useLayoutEffect:x.useEffect;function pm(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 pm(()=>{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 hm(n,l){return mm("(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=>{!Ly(N)&&!Vd(N)||(u&&u(N),g.current=$y(N),h.current=!0,S.current=window.setTimeout(()=>{n(N),p.current=!0},r))},C=N=>{!Ly(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 _=$y(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 $y(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 Ly(n){return n.nativeEvent instanceof MouseEvent}var vm=Lb();const Z2=Db(vm);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||!cm(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 By(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 By(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&&By(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 gm(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}=gm(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 ym(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}=gm(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}=gm(n);return`rgba(${r}, ${o}, ${s}, ${l})`}const ky=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&&ym(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 bm({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 bm({color:r==="dark"?n.dark:n.light,theme:l,colorScheme:r,autoContrast:!0})}function Uy(n,l){const r=n.colors[n.primaryColor];return ym(r)?n.autoContrast?Xd(r,n,l):"var(--mantine-color-white)":bm({color:r[ti(n,l)],theme:n,autoContrast:null})}const Sm=x.createContext(null);function ll(){const n=x.use(Sm);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 xm(){return ll().env||"default"}function mC(){return ll().deduplicateInlineStyles}function Hy(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(Sm),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?()=>{}:Hy(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?()=>{}:Hy(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"]},Yy="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",wm={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:Yy,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:Yy,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",qy="[@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 Vy(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(qy);if(typeof n.primaryShade=="number"&&!bd(n.primaryShade))throw new Error(qy)}function gC(n,l){var o;if(!l)return Vy(n),n;const r=im(n,l);return l.fontFamily&&!((o=l.headings)!=null&&o.fontFamily)&&(r.headings={...r.headings,fontFamily:l.fontFamily}),Vy(r),r}const Cm=x.createContext(null),yC=()=>x.use(Cm)||wm;function cn(){const n=x.use(Cm);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:wm,n),[n,o,r]);return y.jsx(Cm,{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}
50
50
 
51
- ${u?`${m("dark")}{${u}}`:""}
51
+ ${u?`${d("dark")}{${u}}`:""}
52
52
 
53
- ${f?`${m("light")}{${f}}`:""}`}function js({theme:n,color:l,colorScheme:r,name:o=l,withColorValues:s=!0}){if(!n.colors[l])return{};if(r==="light"){const m=ti(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`]:$y(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=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`]:ka(n.colors[l][9],.5),[`--mantine-color-${o}-light-hover`]:ka(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`]:$y(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 Ib=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":Ly(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":Ly(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(hm(f)){Object.assign(o.light,js({theme:n,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,js({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((m,p)=>{o.variables[`--mantine-color-${u}-${p}`]=m}),Object.assign(o.light,js({theme:n,color:u,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,js({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 fC(){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`:Qs(f-.1)}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${u?`${f}px`:Qs(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 dC({theme:n,generator:l}){const r=Ib(n),o=l==null?void 0:l(n);return o?am(r,o):r}const xd=Ib(bm);function mC(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 pC(n){return Xb({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},n)}function Zb({cssVariablesSelector:n,deduplicateCssVariables:l}){const r=cn(),o=sc(),s=dC({theme:r,generator:W2()}),u=(n===void 0||n===":root"||n===":host")&&l,f=Xb(u?mC(s):s,n);return f?y.jsx("style",{"data-mantine-styles":!0,nonce:o==null?void 0:o(),dangerouslySetInnerHTML:{__html:`${f}${u?"":pC(n)}`}}):null}Zb.displayName="@mantine/CssVariables";function hC({respectReducedMotion:n,getRootElement:l}){Wn(()=>{var r;n&&((r=l())==null||r.setAttribute("data-respect-reduced-motion","true"))},[n])}function Qb({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=X2(),defaultColorScheme:S="light",getRootElement:v=()=>document.documentElement,cssVariablesResolver:g,forceColorScheme:w,stylesTransform:E,env:C,deduplicateInlineStyles:T=!1}){const{colorScheme:A,setColorScheme:N,clearColorScheme:_}=rC({defaultColorScheme:S,forceColorScheme:w,manager:h,getRootElement:v});return hC({respectReducedMotion:(n==null?void 0:n.respectReducedMotion)||!1,getRootElement:v}),y.jsx(vm,{value:{colorScheme:A,setColorScheme:N,clearColorScheme:_,getRootElement:v,classNamesPrefix:p,getStyleNonce:r,cssVariablesResolver:g,cssVariablesSelector:m??":root",withStaticClasses:o,stylesTransform:E,env:C,deduplicateInlineStyles:T},children:y.jsxs(Gb,{theme:n,children:[f&&y.jsx(Zb,{cssVariablesSelector:m,deduplicateCssVariables:u}),s&&y.jsx(fC,{}),l]})})}Qb.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,...om(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:Fs({theme:s,styles:l,props:r,stylesCtx:o||void 0})}}const gC={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function vC({theme:n,options:l,unstyled:r}){return vt((l==null?void 0:l.focusable)&&!r&&(n.focusClassName||gC[n.focusRing]),(l==null?void 0:l.active)&&!r&&n.activeClassName)}function yC({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 bC({selector:n,stylesCtx:l,theme:r,classNames:o,props:s}){return ei({theme:r,classNames:o,props:s,stylesCtx:l})[n]}function SC({rootSelector:n,selector:l,className:r}){return n===l?r:void 0}function xC({selector:n,classes:l,unstyled:r}){return r?void 0:l[n]}function wC({themeName:n,classNamesPrefix:l,selector:r,withStaticClass:o}){return o===!1?[]:n.map(s=>`${l}-${s}-${r}`)}function CC({options:n,classes:l,selector:r,unstyled:o}){return n!=null&&n.variant&&!o?l[`${r}--${n.variant}`]:void 0}function TC({theme:n,options:l,themeName:r,selector:o,classNamesPrefix:s,resolvedClassNames:u,resolvedThemeClassNames:f,classes:m,unstyled:p,className:h,rootSelector:S,props:v,stylesCtx:g,withStaticClasses:w,headless:E,transformedStyles:C}){return vt(vC({theme:n,options:l,unstyled:p||E}),f.map(T=>T[o]),CC({options:l,classes:m,selector:o,unstyled:p||E}),u[o],bC({selector:o,stylesCtx:g,theme:n,classNames:C,props:v}),yC({selector:o,stylesCtx:g,options:l,props:v,theme:n}),SC({rootSelector:S,selector:o,className:h}),xC({selector:o,classes:m,unstyled:p||E}),w&&!E&&wC({themeName:r,classNamesPrefix:s,selector:o,withStaticClass:l==null?void 0:l.withStaticClass}),l==null?void 0:l.className)}function xm({style:n,theme:l}){return Array.isArray(n)?n.reduce((r,o)=>({...r,...xm({style:o,theme:l})}),{}):typeof n=="function"?n(l):n??{}}function RC({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&&Fs({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,...xm({style:r==null?void 0:r.style,theme:n})}}function EC(n){return n.reduce((l,r)=>(r&&Object.keys(r).forEach(o=>{l[o]={...l[o],...om(r[o])}}),l),{})}function AC({props:n,stylesCtx:l,themeName:r,theme:o}){var f;const s=(f=aC())==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 Oe({name:n,classes:l,props:r,stylesCtx:o,className:s,style:u,rootSelector:f="root",unstyled:m,classNames:p,styles:h,vars:S,varsResolver:v,attributes:g}){var le;const w=cn(),E=eC(),C=tC(),T=nC(),A=(Array.isArray(n)?n:[n]).filter(oe=>oe),{withStylesTransform:N,getTransformedStyles:_}=AC({props:r,stylesCtx:o,themeName:A,theme:w}),z=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})}),H=N?{}:Fs({theme:w,styles:h,props:r,stylesCtx:o}),D={};if(!N)for(const oe of A){const ee=Fs({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=EC([T?{}:v==null?void 0:v(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=xm({style:u,theme:w});return(oe,ee)=>({...g==null?void 0:g[oe],className:TC({theme:w,options:ee,themeName:A,selector:oe,classNamesPrefix:E,resolvedClassNames:z,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:RC({theme:w,selector:oe,options:ee,props:r,stylesCtx:o,rootSelector:f,withStylesTransform:N,resolvedStyles:H,resolvedThemeStyles:D,resolvedVars:U,resolvedRootStyle:te})})}function Pr(n){return Mt(n).reduce((l,r)=>n[r]!==void 0?`${l}${f2(r)}:${n[r]};`:l,"").trim()}function _C({selector:n,styles:l,media:r,container:o}){const s=l?Pr(l):"",u=Array.isArray(r)?r.map(m=>`@media${m.query}{${n}{${Pr(m.styles)}}}`):[],f=Array.isArray(o)?o.map(m=>`@container ${m.query}{${n}{${Pr(m.styles)}}}`):[];return`${s?`${n}{${s}}`:""}${u.join("")}${f.join("")}`.trim()}function NC(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 Kb({deduplicate:n,...l}){const r=sc(),o=_C(l);return n?y.jsx("style",{href:`mantine-${NC(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 MC(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 OC(n,l){return`__mdi__-${MC(`${n?Pr(n):""}|${Array.isArray(l)?l.map(r=>`${r.query}:${Pr(r.styles)}`).join("|"):""}`)}`}function wm(n){const{m:l,mx:r,my:o,mt:s,mb:u,ml:f,mr:m,me:p,ms:h,mis:S,mie:v,p:g,px:w,py:E,pt:C,pb:T,pl:A,pr:N,pe:_,ps:z,pis:L,pie:H,bd:D,bdrs:U,bg:te,c:le,opacity:oe,ff:ee,fz:F,fw:V,lts:ce,ta:O,lh:B,fs:k,tt:Z,td:P,w:M,miw:Y,maw:J,h:ae,mih:se,mah:de,bgsz:ve,bgp:pe,bgr:he,bga:Me,pos:Se,top:Ce,left:ie,bottom:ye,right:Ne,inset:Te,display:Ve,flex:ut,hiddenFrom:zt,visibleFrom:fn,lightHidden:dn,darkHidden:jt,sx:Pt,...ze}=n;return{styleProps:om({m:l,mx:r,my:o,mt:s,mb:u,ml:f,mr:m,me:p,ms:h,mis:S,mie:v,p:g,px:w,py:E,pt:C,pb:T,pl:A,pr:N,pis:L,pie:H,pe:_,ps:z,bd:D,bg:te,c:le,opacity:oe,ff:ee,fz:F,fw:V,lts:ce,ta:O,lh:B,fs:k,tt:Z,td:P,w:M,miw:Y,maw:J,h:ae,mih:se,mah:de,bgsz:ve,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:zt,visibleFrom:fn,lightHidden:dn,darkHidden:jt,sx:Pt}),rest:ze}}const zC={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 Cm(n,l){const r=va({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 jC(n,l){const r=va({color:n,theme:l});return r.isThemeColor&&r.shade===void 0?`var(--mantine-color-${r.color}-text)`:Cm(n,l)}function DC(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+=` ${Cm(s.join(" "),l)}`),u.trim()}return n}const Yy={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 $C(n){return typeof n=="string"&&n in Yy?Yy[n]:n}const LC=["h1","h2","h3","h4","h5","h6"];function BC(n,l){return typeof n=="string"&&n in l.fontSizes?`var(--mantine-font-size-${n})`:typeof n=="string"&&LC.includes(n)?`var(--mantine-${n}-font-size)`:typeof n=="number"||typeof n=="string"?K(n):n}function HC(n){return n}const UC=["h1","h2","h3","h4","h5","h6"];function kC(n,l){return typeof n=="string"&&n in l.lineHeights?`var(--mantine-line-height-${n})`:typeof n=="string"&&UC.includes(n)?`var(--mantine-${n}-line-height)`:n}function YC(n,l){return typeof n=="string"&&n in l.radius?`var(--mantine-radius-${n})`:typeof n=="number"||typeof n=="string"?K(n):n}function qC(n){return typeof n=="number"?K(n):n}function VC(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:Cm,textColor:jC,fontSize:BC,spacing:VC,radius:YC,identity:HC,size:qC,lineHeight:kC,fontFamily:$C,border:DC};function qy(n){return n.replace("(min-width: ","").replace("em)","")}function GC({media:n,...l}){const r=Object.keys(n).sort((o,s)=>Number(qy(o))-Number(qy(s))).map(o=>({query:o,styles:n[o]}));return{...l,media:r}}function XC(n){if(typeof n!="object"||n===null)return!1;const l=Object.keys(n);return!(l.length===1&&l[0]==="base")}function IC(n){return typeof n=="object"&&n!==null?"base"in n?n.base:void 0:n}function ZC(n){return typeof n=="object"&&n!==null?Mt(n).filter(l=>l!=="base"):[]}function QC(n,l){return typeof n=="object"&&n!==null&&l in n?n[l]:n}function KC({styleProps:n,data:l,theme:r}){return GC(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=IC(n[s]);if(!XC(n[s]))return f.forEach(h=>{o.inlineStyles[h]=wd[u.type](m,r)}),o;o.hasResponsiveStyles=!0;const p=ZC(n[s]);return f.forEach(h=>{m!=null&&(o.styles[h]=wd[u.type](m,r)),p.forEach(S=>{const v=`(min-width: ${r.breakpoints[S]})`;o.media[v]={...o.media[v],[h]:wd[u.type](QC(n[s],S),r)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function FC(){return`__m__-${x.useId().replace(/[:«»]/g,"")}`}function Fb(n,l){return Array.isArray(n)?[...n].reduce((r,o)=>({...r,...Fb(o,l)}),{}):typeof n=="function"?n(l):n??{}}function JC(n){return n}const PC=JC;function Jb(n){return n}function me(n){const l=n;return l.extend=Jb,l.withProps=r=>{const o=s=>y.jsx(l,{...r,...s});return o.extend=l.extend,o.displayName=`WithProps(${l.displayName})`,o},l}function Pb(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=Jb,l}function Wb(n){return`data-${(n.startsWith("data-")?n.slice(5):n).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`}function WC(n){return Object.keys(n).reduce((l,r)=>{const o=n[r];return o===void 0||o===""||o===!1||o===null||(l[Wb(r)]=n[r]),l},{})}function e0(n){return n?typeof n=="string"?{[Wb(n)]:!0}:Array.isArray(n)?[...n].reduce((l,r)=>({...l,...e0(r)}),{}):WC(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 eT({theme:n,style:l,vars:r,styleProps:o}){const s=Id(l,n),u=Id(r,n);return{...s,...u,...o}}function t0({component:n,style:l,__vars:r,className:o,variant:s,mod:u,size:f,hiddenFrom:m,visibleFrom:p,lightHidden:h,darkHidden:S,renderRoot:v,__size:g,ref:w,...E}){var te,le;const C=cn(),T=n||"div",{styleProps:A,rest:N}=wm(E),_=(le=(te=lC())==null?void 0:te())==null?void 0:le(A.sx),z=FC(),L=KC({styleProps:A,theme:C,data:zC}),H=oC(),D=H&&L.hasResponsiveStyles?OC(L.styles,L.media):z,U={ref:w,style:eT({theme:C,style:l,vars:r,styleProps:L.inlineStyles}),className:vt(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":jb(f)?void 0:f||void 0,size:g,...e0(u),...N};return y.jsxs(y.Fragment,{children:[L.hasResponsiveStyles&&y.jsx(Kb,{selector:`.${D}`,styles:L.styles,media:L.media,deduplicate:H}),typeof v=="function"?v(U):y.jsx(T,{...U})]})}t0.displayName="@mantine/core/Box";const fe=PC(t0),tT=x.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function al(){return x.use(tT)}const[nT,En]=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 lT(n){const{style:l,...r}=n,o=En(),[s,u]=x.useState(0),[f,m]=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),m(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 aT(n){const l=En(),r=!!(l.scrollbarX&&l.scrollbarY);return l.type!=="scroll"&&r?y.jsx(lT,{...n}):null}const oT={scrollHideDelay:1e3,type:"hover"};function n0(n){const{type:l,scrollHideDelay:r,scrollbars:o,getStyles:s,ref:u,...f}=ue("ScrollAreaRoot",oT,n),[m,p]=x.useState(null),[h,S]=x.useState(null),[v,g]=x.useState(null),[w,E]=x.useState(null),[C,T]=x.useState(null),[A,N]=x.useState(0),[_,z]=x.useState(0),[L,H]=x.useState(!1),[D,U]=x.useState(!1),te=it(u,p);return y.jsx(nT,{value:{type:l,scrollHideDelay:r,scrollArea:m,viewport:h,onViewportChange:S,content:v,onContentChange:g,scrollbarX:w,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:H,scrollbarY:C,onScrollbarYChange:T,scrollbarYEnabled:D,onScrollbarYEnabledChange:U,onCornerWidthChange:N,onCornerHeightChange:z,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`}})})}n0.displayName="@mantine/core/ScrollAreaRoot";function l0(n,l){const r=n/l;return Number.isNaN(r)?0:r}function uc(n){const l=l0(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,o=(n.scrollbar.size-r)*l;return Math.max(o,18)}function a0(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 rT(n,[l,r]){return Math.min(r,Math.max(l,n))}function Vy(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,m=u-o,p=rT(n,r==="ltr"?[0,f]:[f*-1,0]);return a0([0,f],[0,m])(p)}function iT(n,l,r,o="ltr"){const s=uc(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,v=o==="ltr"?[0,S]:[S*-1,0];return a0([p,h],v)(n)}function o0(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[sT,r0]=Nl("ScrollAreaScrollbar was not found in tree");function i0(n){const{sizes:l,hasThumb:r,onThumbChange:o,onThumbPointerUp:s,onThumbPointerDown:u,onThumbPositionChange:f,onDragScroll:m,onWheelScroll:p,onResize:h,ref:S,...v}=n,g=En(),[w,E]=x.useState(null),C=it(S,E),T=x.useRef(null),A=x.useRef(""),{viewport:N}=g,_=l.content-l.viewport,z=x.useEffectEvent(p),L=ko(f),H=rc(h,10),D=U=>{if(T.current){const te=U.clientX-T.current.left,le=U.clientY-T.current.top;m({x:te,y:le})}};return x.useEffect(()=>{const U=te=>{const le=te.target;w!=null&&w.contains(le)&&z(te,_)};return document.addEventListener("wheel",U,{passive:!1}),()=>document.removeEventListener("wheel",U,{passive:!1})},[N,w,_]),x.useEffect(L,[l,L]),ha(w,H),ha(g.content,H),y.jsx(sT,{value:{scrollbar:w,hasThumb:r,onThumbChange:ko(o),onThumbPointerUp:ko(s),onThumbPositionChange:L,onThumbPointerDown:ko(u)},children:y.jsx("div",{...v,ref:C,"data-mantine-scrollbar":!0,style:{position:"absolute",...v.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 s0=n=>{const{sizes:l,onSizesChange:r,style:o,ref:s,...u}=n,f=En(),[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(i0,{"data-orientation":"horizontal",...u,ref:S,sizes:l,style:{...o,"--sa-thumb-width":`${uc(l)}px`},onThumbPointerDown:v=>n.onThumbPointerDown(v.x),onDragScroll:v=>n.onDragScroll(v.x),onWheelScroll:(v,g)=>{if(f.viewport){const w=f.viewport.scrollLeft+v.deltaX;n.onWheelScroll(w),o0(w,g)&&v.preventDefault()}},onResize:()=>{h.current&&f.viewport&&m&&r({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:fa(m.paddingLeft),paddingEnd:fa(m.paddingRight)}})}})};s0.displayName="@mantine/core/ScrollAreaScrollbarX";function c0(n){const{sizes:l,onSizesChange:r,style:o,ref:s,...u}=n,f=En(),[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(i0,{...u,"data-orientation":"vertical",ref:S,sizes:l,style:{"--sa-thumb-height":`${uc(l)}px`,...o},onThumbPointerDown:v=>n.onThumbPointerDown(v.y),onDragScroll:v=>n.onDragScroll(v.y),onWheelScroll:(v,g)=>{if(f.viewport){const w=f.viewport.scrollTop+v.deltaY;n.onWheelScroll(w),o0(w,g)&&v.preventDefault()}},onResize:()=>{h.current&&f.viewport&&m&&r({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:fa(m.paddingTop),paddingEnd:fa(m.paddingBottom)}})}})}c0.displayName="@mantine/core/ScrollAreaScrollbarY";function fc(n){const{orientation:l="vertical",...r}=n,{dir:o}=al(),s=En(),u=x.useRef(null),f=x.useRef(0),[m,p]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=l0(m.viewport,m.content),S={...r,sizes:m,onSizesChange:p,hasThumb:h>0&&h<1,onThumbChange:g=>{u.current=g},onThumbPointerUp:()=>{f.current=0},onThumbPointerDown:g=>{f.current=g}},v=(g,w)=>iT(g,f.current,m,w);return l==="horizontal"?y.jsx(s0,{...S,onThumbPositionChange:()=>{if(s.viewport&&u.current){const g=s.viewport.scrollLeft,w=Vy(g,m,o);u.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:g=>{s.viewport&&(s.viewport.scrollLeft=g)},onDragScroll:g=>{s.viewport&&(s.viewport.scrollLeft=v(g,o))}}):l==="vertical"?y.jsx(c0,{...S,onThumbPositionChange:()=>{if(s.viewport&&u.current){const g=s.viewport.scrollTop,w=Vy(g,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:g=>{s.viewport&&(s.viewport.scrollTop=g)},onDragScroll:g=>{s.viewport&&(s.viewport.scrollTop=v(g))}}):null}fc.displayName="@mantine/core/ScrollAreaScrollbarVisible";function Tm(n){const l=En(),{forceMount:r,...o}=n,[s,u]=x.useState(!1),f=n.orientation==="horizontal",m=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,m),ha(l.content,m),r||s?y.jsx(fc,{"data-state":s?"visible":"hidden",...o}):null}Tm.displayName="@mantine/core/ScrollAreaScrollbarAuto";function u0(n){const{forceMount:l,...r}=n,o=En(),[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(Tm,{"data-state":s?"visible":"hidden",...r}):null}u0.displayName="@mantine/core/ScrollAreaScrollbarHover";function cT(n){const{forceMount:l,...r}=n,o=En(),s=n.orientation==="horizontal",[u,f]=x.useState("hidden"),m=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 v=()=>{const g=p[h];S!==g&&(f("scrolling"),m()),S=g};return p.addEventListener("scroll",v),()=>p.removeEventListener("scroll",v)}},[o.viewport,s,m]),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=En(),{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(u0,{...r,forceMount:l}):o.type==="scroll"?y.jsx(cT,{...r,forceMount:l}):o.type==="auto"?y.jsx(Tm,{...r,forceMount:l}):o.type==="always"?y.jsx(fc,{...r}):null}Zd.displayName="@mantine/core/ScrollAreaScrollbar";function uT(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 f0(n){const{style:l,ref:r,...o}=n,s=En(),u=r0(),{onThumbPositionChange:f}=u,m=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 v=()=>{if(h(),!p.current){const g=uT(S,f);p.current=g,f()}};return f(),S.addEventListener("scroll",v),()=>S.removeEventListener("scroll",v)}},[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:qa(n.onPointerDownCapture,S=>{const v=S.target.getBoundingClientRect(),g=S.clientX-v.left,w=S.clientY-v.top;u.onThumbPointerDown({x:g,y:w})}),onPointerUp:qa(n.onPointerUp,u.onThumbPointerUp)})}f0.displayName="@mantine/core/ScrollAreaThumb";function Qd(n){const{forceMount:l,...r}=n,o=r0();return l||o.hasThumb?y.jsx(f0,{...r}):null}Qd.displayName="@mantine/core/ScrollAreaThumb";function d0({children:n,style:l,ref:r,onWheel:o,...s}){const u=En(),f=it(r,u.onViewportChange),m=p=>{if(o==null||o(p),u.scrollbarXEnabled&&u.viewport&&p.shiftKey){const{scrollTop:h,scrollHeight:S,clientHeight:v,scrollWidth:g,clientWidth:w}=u.viewport,E=h<1,C=h>=S-v-1;g>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})})}d0.displayName="@mantine/core/ScrollAreaViewport";var Rm={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 m0(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=(m0(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function m0(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 kn(n){return dc()?n instanceof HTMLElement||n instanceof Bt(n).HTMLElement:!1}function Js(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}=$n(n);return/auto|scroll|overlay|hidden|clip/.test(l+o+r)&&s!=="inline"&&s!=="contents"}function fT(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 dT=/transform|translate|scale|rotate|perspective|filter/,mT=/paint|layout|strict|content/,Ua=n=>!!n&&n!=="none";let Cd;function Em(n){const l=tt(n)?$n(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))||dT.test(l.willChange||"")||mT.test(l.contain||"")}function pT(n){let l=ga(n);for(;kn(l)&&!da(l);){if(Em(l))return l;if(pc(l))return null;l=ga(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 $n(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(Zo(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Js(n)&&n.host||Ol(n);return Js(l)?l.host:l}function p0(n){const l=ga(n);return da(l)?(n.ownerDocument||n).body:kn(l)&&mc(l)?l:p0(l)}function Rl(n,l,r){var o;l===void 0&&(l=[]),r===void 0&&(r=!0);const s=p0(n),u=s===((o=n.ownerDocument)==null?void 0:o.body),f=Bt(s);if(u){const m=Kd(f);return l.concat(f,f.visualViewport||[],mc(s)?s:[],m&&r?Rl(m):[])}else return l.concat(s,Rl(s,[],r))}function Kd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const hT=["top","right","bottom","left"],Ln=Math.min,Cn=Math.max,Ps=Math.round,Ds=Math.floor,El=n=>({x:n,y:n}),gT={left:"right",right:"left",bottom:"top",top:"bottom"};function h0(n,l,r){return Cn(n,Ln(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 Am(n){return n==="x"?"y":"x"}function _m(n){return n==="y"?"height":"width"}function jn(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function Nm(n){return Am(jn(n))}function vT(n,l,r){r===void 0&&(r=!1);const o=Qo(n),s=Nm(n),u=_m(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return l.reference[u]>l.floating[u]&&(f=Ws(f)),[f,Ws(f)]}function yT(n){const l=Ws(n);return[Fd(n),l,Fd(l)]}function Fd(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Gy=["left","right"],Xy=["right","left"],bT=["top","bottom"],ST=["bottom","top"];function xT(n,l,r){switch(n){case"top":case"bottom":return r?l?Xy:Gy:l?Gy:Xy;case"left":case"right":return l?bT:ST;default:return[]}}function wT(n,l,r,o){const s=Qo(n);let u=xT(nl(n),r==="start",o);return s&&(u=u.map(f=>f+"-"+s),l&&(u=u.concat(u.map(Fd)))),u}function Ws(n){const l=nl(n);return gT[l]+n.slice(l.length)}function CT(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 Mm(n){return typeof n!="number"?CT(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 TT(){const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform}function RT(){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 ET(){return/apple/i.test(navigator.vendor)}function AT(){return TT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function _T(){return RT().includes("jsdom/")}const Iy="data-floating-ui-focusable",NT="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Zy(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&&Js(r)){let o=l;for(;o;){if(n===o)return!0;o=o.parentNode||o.host}}return!1}function Uo(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 MT(n){return n.matches("html,body")}function Ya(n){return(n==null?void 0:n.ownerDocument)||document}function OT(n){return kn(n)&&n.matches(NT)}function zT(n){if(!n||_T())return!0;try{return n.matches(":focus-visible")}catch{return!0}}function jT(n){return n?n.hasAttribute(Iy)?n:n.querySelector("["+Iy+"]")||n:null}function Vs(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,...Vs(n,s.id,r)])}function DT(n){return"nativeEvent"in n}function Jd(n,l){const r=["mouse","pen"];return r.push("",void 0),r.includes(n)}var $T=typeof document<"u",LT=function(){},Pn=$T?x.useLayoutEffect:LT;const BT={...Mb};function $s(n){const l=x.useRef(n);return Pn(()=>{l.current=n}),l}const HT=BT.useInsertionEffect,UT=HT||(n=>n());function Fn(n){const l=x.useRef(()=>{});return UT(()=>{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 Qy(n,l,r){let{reference:o,floating:s}=n;const u=jn(l),f=Nm(l),m=_m(f),p=nl(l),h=u==="y",S=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,g=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:v};break;case"left":w={x:o.x-s.width,y:v};break;default:w={x:o.x,y:o.y}}const E=Qo(l);return E&&(w[f]+=g*(E==="end"?1:-1)*(r&&h?-1:1)),w}async function kT(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:v="floating",altBoundary:g=!1,padding:w=0}=tl(l,n),E=Mm(w),T=m[g?v==="floating"?"reference":"floating":v],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(m.floating)),boundary:h,rootBoundary:S,strategy:p})),N=v==="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)),z=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:m,rect:N,offsetParent:_,strategy:p}):N);return{top:(A.top-L.top+E.top)/z.y,bottom:(L.bottom-A.bottom+E.bottom)/z.y,left:(A.left-L.left+E.left)/z.x,right:(L.right-A.right+E.right)/z.x}}const YT=50,qT=async(n,l,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:u=[],platform:f}=r,m=f.detectOverflow?f:{...f,detectOverflow:kT},p=await(f.isRTL==null?void 0:f.isRTL(l));let h=await f.getElementRects({reference:n,floating:l,strategy:s}),{x:S,y:v}=Qy(h,o,p),g=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:z,data:L,reset:H}=await N({x:S,y:v,initialPlacement:o,placement:g,strategy:s,middlewareData:E,rects:h,platform:m,elements:{reference:n,floating:l}});S=_??S,v=z??v,E[A]={...E[A],...L},H&&w<YT&&(w++,typeof H=="object"&&(H.placement&&(g=H.placement),H.rects&&(h=H.rects===!0?await f.getElementRects({reference:n,floating:l,strategy:s}):H.rects),{x:S,y:v}=Qy(h,g,p)),C=-1)}return{x:S,y:v,placement:g,strategy:s,middlewareData:E}},VT=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}=tl(n,l)||{};if(h==null)return{};const v=Mm(S),g={x:r,y:o},w=Nm(s),E=_m(w),C=await f.getDimensions(h),T=w==="y",A=T?"top":"left",N=T?"bottom":"right",_=T?"clientHeight":"clientWidth",z=u.reference[E]+u.reference[w]-g[w]-u.floating[E],L=g[w]-u.reference[w],H=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h));let D=H?H[_]:0;(!D||!await(f.isElement==null?void 0:f.isElement(H)))&&(D=m.floating[_]||u.floating[E]);const U=z/2-L/2,te=D/2-C[E]/2-1,le=Ln(v[A],te),oe=Ln(v[N],te),ee=D-C[E]-oe,F=D/2-C[E]/2+U,V=h0(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]:g[w]+O,data:{[w]:V,centerOffset:F-V-O,...ce&&{alignmentOffset:O}},reset:ce}}}),GT=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:v=!0,fallbackPlacements:g,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=jn(m),_=nl(m)===m,z=await(p.isRTL==null?void 0:p.isRTL(h.floating)),L=g||(_||!C?[Ws(m)]:yT(m)),H=E!=="none";!g&&H&&L.push(...wT(m,C,E,z));const D=[m,...L],U=await p.detectOverflow(l,T),te=[];let le=((o=u.flip)==null?void 0:o.overflows)||[];if(S&&te.push(U[A]),v){const V=vT(s,f,z);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&&(!(v==="alignment"?N!==jn(ce):!1)||le.every(k=>jn(k.placement)===N?k.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,k)=>B.overflows[1]-k.overflows[1])[0])==null?void 0:ee.placement;if(!O)switch(w){case"bestFit":{var F;const B=(F=le.filter(k=>{if(H){const Z=jn(k.placement);return Z===N||Z==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(Z=>Z>0).reduce((Z,P)=>Z+P,0)]).sort((k,Z)=>k[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 Ky(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Fy(n){return hT.some(l=>n[l]>=0)}const XT=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"}),m=Ky(f,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:Fy(m)}}}case"escaped":{const f=await o.detectOverflow(l,{...u,altBoundary:!0}),m=Ky(f,r.floating);return{data:{escapedOffsets:m,escaped:Fy(m)}}}default:return{}}}}};function g0(n){const l=Ln(...n.map(u=>u.left)),r=Ln(...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 IT(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(g0(s)))}const ZT=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}=tl(n,l),S=Array.from(await(u.getClientRects==null?void 0:u.getClientRects(o.reference))||[]);if(!S.length)return{};const v=IT(S),g=ma(g0(S)),w=Mm(m);function E(){if(v.length===2&&(v[0].left>v[1].right||v[1].left>v[0].right)&&p!=null&&h!=null)return v.find(T=>p>T.left-w.left&&p<T.right+w.right&&h>T.top-w.top&&h<T.bottom+w.bottom)||g;if(v.length>=2){if(jn(r)==="y"){const H=v[0],D=v[v.length-1],U=nl(r)==="top",te=H.top,le=D.bottom,oe=U?H.left:D.left,ee=U?H.right:D.right;return ma({x:oe,y:te,width:ee-oe,height:le-te})}const T=nl(r)==="left",A=Cn(...v.map(H=>H.right)),N=Ln(...v.map(H=>H.left)),_=v.filter(H=>T?H.left===N:H.right===A),z=_[0].top,L=_[_.length-1].bottom;return ma({x:N,y:z,width:A-N,height:L-z})}return g}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}}:{}}}},v0=new Set(["left","top"]);async function QT(n,l){const{placement:r,platform:o,elements:s}=n,u=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=nl(r),m=Qo(r),p=jn(r)==="y",h=v0.has(f)?-1:1,S=u&&p?-1:1,v=tl(l,n);let{mainAxis:g,crossAxis:w,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return m&&typeof E=="number"&&(w=m==="end"?E*-1:E),p?{x:w*S,y:g*h}:{x:g*h,y:w*S}}const KT=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 QT(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}}}}},FT=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:z}=N;return{x:_,y:z}}},...h}=tl(n,l),S={x:r,y:o},v=await u.detectOverflow(l,h),g=jn(s),w=Am(g);let E=S[w],C=S[g];const T=(N,_)=>h0(_+v[N==="y"?"top":"left"],_,_-v[N==="y"?"bottom":"right"]);f&&(E=T(w,E)),m&&(C=T(g,C));const A=p.fn({...l,[w]:E,[g]:C});return{...A,data:{x:A.x-r,y:A.y-o,enabled:{[w]:f,[g]:m}}}}}},JT=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:v=!0}=tl(n,l),g={x:s,y:u},w=jn(f),E=Am(w);let C=g[E],T=g[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",H=m.reference[E]-m.floating[L]+N.mainAxis,D=m.reference[E]+m.reference[L]-N.mainAxis;C<H?C=H:C>D&&(C=D)}if(v){var _,z;const L=E==="y"?"width":"height",H=v0.has(nl(f)),D=m.reference[w]-m.floating[L]+(H&&((_=p.offset)==null?void 0:_[w])||0)+(H?0:N.crossAxis),U=m.reference[w]+m.reference[L]+(H?0:((z=p.offset)==null?void 0:z[w])||0)-(H?N.crossAxis:0);T<D?T=D:T>U&&(T=U)}return{[E]:C,[w]:T}}}},PT=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}=tl(n,l),p=await s.detectOverflow(l,m),h=nl(r),S=Qo(r),v=jn(r)==="y",{width:g,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=g-p.left-p.right,N=Ln(w-p[E],T),_=Ln(g-p[C],A),z=l.middlewareData.shift,L=!z;let H=N,D=_;z!=null&&z.enabled.x&&(D=A),z!=null&&z.enabled.y&&(H=T),L&&!S&&(v?D=g-2*Cn(p.left,p.right):H=w-2*Cn(p.top,p.bottom)),await f({...l,availableWidth:D,availableHeight:H});const U=await s.getDimensions(u.floating);return g!==U.width||w!==U.height?{reset:{rects:!0}}:{}}}};function y0(n){const l=$n(n);let r=parseFloat(l.width)||0,o=parseFloat(l.height)||0;const s=kn(n),u=s?n.offsetWidth:r,f=s?n.offsetHeight:o,m=Ps(r)!==u||Ps(o)!==f;return m&&(r=u,o=f),{width:r,height:o,$:m}}function Om(n){return tt(n)?n:n.contextElement}function qo(n){const l=Om(n);if(!kn(l))return El(1);const r=l.getBoundingClientRect(),{width:o,height:s,$:u}=y0(l);let f=(u?Ps(r.width):r.width)/o,m=(u?Ps(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!m||!Number.isFinite(m))&&(m=1),{x:f,y:m}}const WT=El(0);function b0(n){const l=Bt(n);return!hc()||!l.visualViewport?WT:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function eR(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=Om(n);let f=El(1);l&&(o?tt(o)&&(f=qo(o)):f=qo(n));const m=eR(u,r,o)?b0(u):El(0);let p=(s.left+m.x)/f.x,h=(s.top+m.y)/f.y,S=s.width/f.x,v=s.height/f.y;if(u&&o){const g=Bt(u),w=tt(o)?Bt(o):o;let E=g,C=Kd(E);for(;C&&w!==E;){const T=qo(C),A=C.getBoundingClientRect(),N=$n(C),_=A.left+(C.clientLeft+parseFloat(N.paddingLeft))*T.x,z=A.top+(C.clientTop+parseFloat(N.paddingTop))*T.y;p*=T.x,h*=T.y,S*=T.x,v*=T.y,p+=_,h+=z,E=Bt(C),C=Kd(E)}}return ma({width:S,height:v,x:p,y:h})}function vc(n,l){const r=gc(n).scrollLeft;return l?l.left+r:Va(Ol(n)).left+r}function S0(n,l){const r=n.getBoundingClientRect(),o=r.left+l.scrollLeft-vc(n,r),s=r.top+l.scrollTop;return{x:o,y:s}}function tR(n){let{elements:l,rect:r,offsetParent:o,strategy:s}=n;const u=s==="fixed",f=Ol(o),m=l?pc(l.floating):!1;if(o===f||m&&u)return r;let p={scrollLeft:0,scrollTop:0},h=El(1);const S=El(0),v=kn(o);if((v||!u)&&((Zo(o)!=="body"||mc(f))&&(p=gc(o)),v)){const w=Va(o);h=qo(o),S.x=w.x+o.clientLeft,S.y=w.y+o.clientTop}const g=f&&!v&&!u?S0(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+g.x,y:r.y*h.y-p.scrollTop*h.y+S.y+g.y}}function nR(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function lR(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+vc(n);const f=-l.scrollTop;return $n(r).direction==="rtl"&&(u+=Cn(n.clientWidth,r.clientWidth)-o),{width:o,height:s,x:u,y:f}}const aR=25;function oR(n,l,r){r===void 0&&(r="viewport");const o=r==="layoutViewport",s=Bt(n),u=Ol(n),f=s.visualViewport;let m=u.clientWidth,p=u.clientHeight,h=0,S=0;if(f){const g=!hc()||l==="fixed";o?g||(h=-f.offsetLeft,S=-f.offsetTop):(m=f.width,p=f.height,g&&(h=f.offsetLeft,S=f.offsetTop))}if(vc(u)<=0){const g=u.ownerDocument,w=g.body,E=getComputedStyle(w),C=g.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<=aR&&(m-=A)}return{width:m,height:p,x:h,y:S}}function rR(n,l){const r=Va(n,!0,l==="fixed"),o=r.top+n.clientTop,s=r.left+n.clientLeft,u=qo(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 Jy(n,l,r){let o;if(l==="viewport"||l==="layoutViewport")o=oR(n,r,l);else if(l==="document")o=lR(Ol(n));else if(tt(l))o=rR(l,r);else{const s=b0(n);o={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return ma(o)}function iR(n,l){const r=l.get(n);if(r)return r;let o=Rl(n,[],!1).filter(m=>tt(m)&&Zo(m)!=="body"),s=null;const u=$n(n).position==="fixed";let f=u?ga(n):n;for(;tt(f)&&!da(f);){const m=$n(f),p=Em(f),h=s?s.position:u?"fixed":"";!p&&(h==="fixed"||h==="absolute"&&m.position==="static")?o=o.filter(v=>v!==f):s=m,f=ga(f)}return l.set(n,o),o}function sR(n){let{element:l,boundary:r,rootBoundary:o,strategy:s}=n;const f=[...r==="clippingAncestors"?pc(l)?[]:iR(l,this._c):[].concat(r),o],m=Jy(l,f[0],s);let p=m.top,h=m.right,S=m.bottom,v=m.left;for(let g=1;g<f.length;g++){const w=Jy(l,f[g],s);p=Cn(w.top,p),h=Ln(w.right,h),S=Ln(w.bottom,S),v=Cn(w.left,v)}return{width:h-v,height:S-p,x:v,y:p}}function cR(n){const{width:l,height:r}=y0(n);return{width:l,height:r}}function uR(n,l,r){const o=kn(l),s=Ol(l),u=r==="fixed",f=Va(n,!0,u,l);let m={scrollLeft:0,scrollTop:0};const p=El(0);if((o||!u)&&((Zo(l)!=="body"||mc(s))&&(m=gc(l)),o)){const g=Va(l,!0,u,l);p.x=g.x+l.clientLeft,p.y=g.y+l.clientTop}!o&&s&&(p.x=vc(s));const h=s&&!o&&!u?S0(s,m):El(0),S=f.left+m.scrollLeft-p.x-h.x,v=f.top+m.scrollTop-p.y-h.y;return{x:S,y:v,width:f.width,height:f.height}}function Rd(n){return $n(n).position==="static"}function Py(n,l){if(!kn(n)||$n(n).position==="fixed")return null;if(l)return l(n);let r=n.offsetParent;return Ol(n)===r&&(r=r.ownerDocument.body),r}function x0(n,l){const r=Bt(n);if(pc(n))return r;if(!kn(n)){let s=ga(n);for(;s&&!da(s);){if(tt(s)&&!Rd(s))return s;s=ga(s)}return r}let o=Py(n,l);for(;o&&fT(o)&&Rd(o);)o=Py(o,l);return o&&da(o)&&Rd(o)&&!Em(o)?r:o||pT(n)||r}const fR=async function(n){const l=this.getOffsetParent||x0,r=this.getDimensions,o=await r(n.floating);return{reference:uR(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function dR(n){return $n(n).direction==="rtl"}const mR={convertOffsetParentRelativeRectToViewportRelativeRect:tR,getDocumentElement:Ol,getClippingRect:sR,getOffsetParent:x0,getElementRects:fR,getClientRects:nR,getDimensions:cR,getScale:qo,isElement:tt,isRTL:dR};function w0(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function pR(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 m(S,v){S===void 0&&(S=!1),v===void 0&&(v=1),f();const g=n.getBoundingClientRect(),{left:w,top:E,width:C,height:T}=g;if(S||l(),!C||!T)return;const A=Ds(E),N=Ds(u.clientWidth-(w+C)),_=Ds(u.clientHeight-(E+T)),z=Ds(w),H={rootMargin:-A+"px "+-N+"px "+-_+"px "+-z+"px",threshold:Cn(0,Ln(1,v))||1};let D=!0;function U(te){const le=te[0].intersectionRatio;if(!w0(g,n.getBoundingClientRect()))return m();if(le!==v){if(!D)return m();le?m(!1,le):s=setTimeout(()=>{m(!1,1e-7)},1e3)}D=!1}try{o=new IntersectionObserver(U,{...H,root:u.ownerDocument})}catch{o=new IntersectionObserver(U,H)}o.observe(n)}const p=Bt(n),h=()=>m(r);return p.addEventListener("resize",h),m(!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:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,h=Om(n),S=s||u?[...h?Rl(h):[],...l?Rl(l):[]]:[];S.forEach(A=>{s&&A.addEventListener("scroll",r),u&&A.addEventListener("resize",r)});const v=h&&m?pR(h,r,u):null;let g=-1,w=null;f&&(w=new ResizeObserver(A=>{let[N]=A;N&&N.target===h&&w&&l&&(w.unobserve(l),cancelAnimationFrame(g),g=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&&!w0(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)}),v==null||v(),(A=w)==null||A.disconnect(),w=null,p&&cancelAnimationFrame(E)}}const hR=KT,gR=FT,vR=GT,yR=PT,bR=XT,Wy=VT,SR=ZT,xR=JT,wR=(n,l,r)=>{const o=new Map,s=r??{},u={...mR,...s.platform,_c:o};return qT(n,l,{...s,platform:u})};var CR=typeof document<"u",TR=function(){},Gs=CR?x.useLayoutEffect:TR;function ec(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(!ec(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)&&!ec(n[u],l[u]))return!1}return!0}return n!==n&&l!==l}function C0(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function eb(n,l){const r=C0(n);return Math.round(l*r)/r}function Ed(n){const l=x.useRef(n);return Gs(()=>{l.current=n}),l}function RR(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,v]=x.useState({x:0,y:0,strategy:r,placement:l,middlewareData:{},isPositioned:!1}),[g,w]=x.useState(o);ec(g,o)||w(o);const[E,C]=x.useState(null),[T,A]=x.useState(null),N=x.useCallback(k=>{k!==H.current&&(H.current=k,C(k))},[]),_=x.useCallback(k=>{k!==D.current&&(D.current=k,A(k))},[]),z=u||E,L=f||T,H=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(!H.current||!D.current)return;const k={placement:l,strategy:r,middleware:g};oe.current&&(k.platform=oe.current),wR(H.current,D.current,k).then(Z=>{const P={...Z,isPositioned:ee.current!==!1};V.current&&!ec(U.current,P)&&(U.current=P,mm.flushSync(()=>{v(P)}))})},[g,l,r,oe,ee]);Gs(()=>{h===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,v(k=>({...k,isPositioned:!1})))},[h]);const V=x.useRef(!1);Gs(()=>(V.current=!0,()=>{V.current=!1}),[]),Gs(()=>{if(z&&(H.current=z),L&&(D.current=L),z&&L){if(le.current)return le.current(z,L,F);F()}},[z,L,F,le,te]);const ce=x.useMemo(()=>({reference:H,floating:D,setReference:N,setFloating:_}),[N,_]),O=x.useMemo(()=>({reference:z,floating:L}),[z,L]),B=x.useMemo(()=>{const k={position:r,left:0,top:0};if(!O.floating)return k;const Z=eb(O.floating,S.x),P=eb(O.floating,S.y);return m?{...k,transform:"translate("+Z+"px, "+P+"px)",...C0(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 ER=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?Wy({element:o.current,padding:s}).fn(r):{}:o?Wy({element:o,padding:s}).fn(r):{}}}},T0=(n,l)=>{const r=hR(n);return{name:r.name,fn:r.fn,options:[n,l]}},zm=(n,l)=>{const r=gR(n);return{name:r.name,fn:r.fn,options:[n,l]}},AR=(n,l)=>({fn:xR(n).fn,options:[n,l]}),Wd=(n,l)=>{const r=vR(n);return{name:r.name,fn:r.fn,options:[n,l]}},_R=(n,l)=>{const r=yR(n);return{name:r.name,fn:r.fn,options:[n,l]}},NR=(n,l)=>{const r=bR(n);return{name:r.name,fn:r.fn,options:[n,l]}},Wr=(n,l)=>{const r=SR(n);return{name:r.name,fn:r.fn,options:[n,l]}},R0=(n,l)=>{const r=ER(n);return{name:r.name,fn:r.fn,options:[n,l]}};function E0(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 MR="data-floating-ui-focusable",tb="active",nb="selected",OR={...Mb};let lb=!1,zR=0;const ab=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+zR++;function jR(){const[n,l]=x.useState(()=>lb?ab():void 0);return Pn(()=>{n==null&&l(ab())},[]),x.useEffect(()=>{lb=!0},[]),n}const DR=OR.useId,A0=DR||jR;function $R(){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 LR=x.createContext(null),BR=x.createContext(null),jm=()=>{var n;return((n=x.useContext(LR))==null?void 0:n.id)||null},Dm=()=>x.useContext(BR);function $m(n){return"data-floating-ui-"+n}function Zt(n){n.current!==-1&&(clearTimeout(n.current),n.current=-1)}const ob=$m("safe-polygon");function Xs(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 _0(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:v=0,move:g=!0}=l,w=Dm(),E=jm(),C=$s(h),T=$s(p),A=$s(r),N=$s(v),_=x.useRef(),z=x.useRef(-1),L=x.useRef(),H=x.useRef(-1),D=x.useRef(!0),U=x.useRef(!1),te=x.useRef(()=>{}),le=x.useRef(!1),oe=Fn(()=>{var B;const k=(B=s.current.openEvent)==null?void 0:B.type;return(k==null?void 0:k.includes("mouse"))&&k!=="mousedown"});x.useEffect(()=>{if(!m)return;function B(k){let{open:Z}=k;Z||(Zt(z),Zt(H),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 k=Ya(f.floating).documentElement;return k.addEventListener("mouseleave",B),()=>{k.removeEventListener("mouseleave",B)}},[f.floating,r,o,m,C,oe]);const ee=x.useCallback(function(B,k,Z){k===void 0&&(k=!0),Z===void 0&&(Z="hover");const P=Xs(T.current,"close",_.current);P&&!L.current?(Zt(z),z.current=window.setTimeout(()=>o(!1,B,Z),P)):k&&(Zt(z),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(ob),U.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(z),D.current=!1,S&&!Jd(_.current)||Ad(N.current)>0&&!Xs(T.current,"open"))return;const J=Xs(T.current,"open",_.current);J?z.current=window.setTimeout(()=>{A.current||o(!0,Y,"hover")},J):r||o(!0,Y,"hover")}function k(Y){if(ce()){V();return}te.current();const J=Ya(f.floating);if(Zt(H),le.current=!1,C.current&&s.current.floatingContext){r||Zt(z),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(z)}function M(Y){ce()||ee(Y,!1)}if(tt(f.domReference)){const Y=f.domReference,J=f.floating;return r&&Y.addEventListener("mouseleave",Z),g&&Y.addEventListener("mousemove",B,{once:!0}),Y.addEventListener("mouseenter",B),Y.addEventListener("mouseleave",k),J&&(J.addEventListener("mouseleave",Z),J.addEventListener("mouseenter",P),J.addEventListener("mouseleave",M)),()=>{r&&Y.removeEventListener("mouseleave",Z),g&&Y.removeEventListener("mousemove",B),Y.removeEventListener("mouseenter",B),Y.removeEventListener("mouseleave",k),J&&(J.removeEventListener("mouseleave",Z),J.removeEventListener("mouseenter",P),J.removeEventListener("mouseleave",M))}}},[f,m,n,S,g,ee,F,V,o,r,A,w,T,C,s,ce,N]),Pn(()=>{var B;if(m&&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 k;const P=Ya(f.floating).body;P.setAttribute(ob,"");const M=f.domReference,Y=w==null||(k=w.nodesRef.current.find(J=>J.id===E))==null||(k=k.context)==null?void 0:k.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]),Pn(()=>{r||(_.current=void 0,le.current=!1,F(),V())},[r,F,V]),x.useEffect(()=>()=>{F(),Zt(z),Zt(H),V()},[m,f.domReference,F,V]);const O=x.useMemo(()=>{function B(k){_.current=k.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(k){const{nativeEvent:Z}=k;function P(){!D.current&&!A.current&&o(!0,Z,"hover")}S&&!Jd(_.current)||r||Ad(N.current)===0||le.current&&k.movementX**2+k.movementY**2<2||(Zt(H),_.current==="touch"?P():(le.current=!0,H.current=window.setTimeout(P,Ad(N.current))))}}},[S,o,r,A,N]);return x.useMemo(()=>m?{reference:O}:{},[m,O])}const em=()=>{},N0=x.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:em,setState:em,isInstantPhase:!1}),HR=()=>x.useContext(N0);function UR(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 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(N0.Provider,{value:x.useMemo(()=>({...s,setState:u,setCurrentId:m}),[s,m]),children:l})}function kR(n,l){l===void 0&&(l={});const{open:r,onOpenChange:o,floatingId:s}=n,{id:u,enabled:f=!0}=l,m=u??s,p=HR(),{currentId:h,setCurrentId:S,initialDelay:v,setState:g,timeoutMs:w}=p;return Pn(()=>{f&&h&&(g({delay:{open:1,close:Xs(v,"close")}}),h!==m&&o(!1))},[f,m,o,g,h,v]),Pn(()=>{function E(){o(!1),g({delay:v,currentId:null})}if(f&&h&&!r&&h===m){if(w){const C=window.setTimeout(E,w);return()=>{clearTimeout(C)}}E()}},[f,r,g,h,m,o,v,w]),Pn(()=>{f&&(S===em||!r||S(m))},[f,r,S,m]),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&&Js(r)){let o=l;for(;o;){if(n===o)return!0;o=o.parentNode||o.host}}return!1}function YR(n){return"composedPath"in n?n.composedPath()[0]:n.target}const qR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},VR={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},rb=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 GR(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:v="pointerdown",ancestorScroll:g=!1,bubbles:w,capture:E}=l,C=Dm(),T=Fn(typeof p=="function"?p:()=>!1),A=typeof p=="function"?T:p,N=x.useRef(!1),{escapeKey:_,outsidePress:z}=rb(w),{escapeKey:L,outsidePress:H}=rb(E),D=x.useRef(!1),U=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?Vs(C.nodesRef.current,O):[];if(!_&&(V.stopPropagation(),B.length>0)){let k=!0;if(B.forEach(Z=>{var P;if((P=Z.context)!=null&&P.open&&!Z.context.dataRef.current.__escapeKeyBubbles){k=!1;return}}),!k)return}o(!1,DT(V)?V.nativeEvent:V,"escape-key")}),te=Fn(V=>{var ce;const O=()=>{var B;U(V),(B=Uo(V))==null||B.removeEventListener("keydown",O)};(ce=Uo(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 k=Uo(V),Z="["+$m("inert")+"]",P=Ya(s.floating).querySelectorAll(Z);let M=tt(k)?k:null;for(;M&&!da(M);){const se=ga(M);if(da(se)||!tt(se))break;M=se}if(P.length&&tt(k)&&!MT(k)&&!ni(k,s.floating)&&Array.from(P).every(se=>!ni(M,se)))return;if(kn(k)&&F){const se=da(k),de=$n(k),ve=/auto|scroll/,pe=se||ve.test(de.overflowX),he=se||ve.test(de.overflowY),Me=pe&&k.clientWidth>0&&k.scrollWidth>k.clientWidth,Se=he&&k.clientHeight>0&&k.scrollHeight>k.clientHeight,Ce=de.direction==="rtl",ie=Se&&(Ce?V.offsetX<=k.offsetWidth-k.clientWidth:V.offsetX>k.clientWidth),ye=Me&&V.offsetY>k.clientHeight;if(ie||ye)return}const Y=(ce=u.current.floatingContext)==null?void 0:ce.nodeId,J=C&&Vs(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?Vs(C.nodesRef.current,Y):[];if(ae.length>0){let se=!0;if(ae.forEach(de=>{var ve;if((ve=de.context)!=null&&ve.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=Uo(V))==null||B.removeEventListener(h,O)};(ce=Uo(V))==null||ce.addEventListener(h,O)});x.useEffect(()=>{if(!r||!f)return;u.current.__escapeKeyBubbles=_,u.current.__outsidePressBubbles=z;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 k=Ya(s.floating);m&&(k.addEventListener("keydown",L?te:U,L),k.addEventListener("compositionstart",O),k.addEventListener("compositionend",B)),A&&k.addEventListener(h,H?oe:le,H);let Z=[];return g&&(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=k.defaultView)==null?void 0:M.visualViewport)}),Z.forEach(P=>{P.addEventListener("scroll",ce)}),()=>{m&&(k.removeEventListener("keydown",L?te:U,L),k.removeEventListener("compositionstart",O),k.removeEventListener("compositionend",B)),A&&k.removeEventListener(h,H?oe:le,H),Z.forEach(P=>{P.removeEventListener("scroll",ce)}),window.clearTimeout(V)}},[u,s,m,A,h,r,o,g,f,_,z,U,L,te,le,H,oe]),x.useEffect(()=>{u.current.insideReactTree=!1},[u,A,h]);const ee=x.useMemo(()=>({onKeyDown:U,...S&&{[qR[v]]:V=>{o(!1,V.nativeEvent,"reference-press")},...v!=="click"&&{onClick(V){o(!1,V.nativeEvent,"reference-press")}}}}),[U,o,S,v]),F=x.useMemo(()=>{function V(ce){ce.button===0&&(N.current=!0)}return{onKeyDown:U,onMouseDown:V,onMouseUp:V,[VR[h]]:()=>{u.current.insideReactTree=!0}}},[U,h,u]);return x.useMemo(()=>f?{reference:ee,floating:F}:{},[f,ee,F])}function XR(n){const{open:l=!1,onOpenChange:r,elements:o}=n,s=A0(),u=x.useRef({}),[f]=x.useState(()=>$R()),m=jm()!=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)}),v=x.useMemo(()=>({setPositionReference:h}),[]),g=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:g,events:f,floatingId:s,refs:v}),[l,S,g,f,s,v])}function yc(n){var l,r;let{elements:o,...s}=n===void 0?{}:n;const{nodeId:u}=s,f=XR({...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),[v,g]=x.useState(null),E=(p==null?void 0:p.domReference)||h,C=x.useRef(null),T=Dm();Pn(()=>{E&&(C.current=E)},[E]);const A=RR({...s,elements:{...p,...v&&{reference:v}}}),N=x.useCallback(D=>{const U=tt(D)?{getBoundingClientRect:()=>D.getBoundingClientRect(),getClientRects:()=>D.getClientRects(),contextElement:D}:D;g(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]),z=x.useMemo(()=>({...A.refs,setReference:_,setPositionReference:N,domReference:C}),[A.refs,_,N]),L=x.useMemo(()=>({...A.elements,domReference:E}),[A.elements,E]),H=x.useMemo(()=>({...A,...m,refs:z,elements:L,nodeId:u}),[A,z,L,u,m]);return Pn(()=>{m.dataRef.current.floatingContext=H;const D=T==null?void 0:T.nodesRef.current.find(U=>U.id===u);D&&(D.context=H)}),x.useMemo(()=>({...A,context:H,refs:z,elements:L}),[A,z,L,H])}function Nd(){return AT()&&ET()}function IR(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),v=x.useRef(!0);x.useEffect(()=>{if(!m)return;const w=Bt(f.domReference);function E(){!r&&kn(f.domReference)&&f.domReference===Zy(Ya(f.domReference))&&(h.current=!0)}function C(){v.current=!0}function T(){v.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,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 g=x.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(w){if(h.current)return;const E=Uo(w.nativeEvent);if(p&&tt(E)){if(Nd()&&!w.relatedTarget){if(!v.current&&!OT(E))return}else if(!zT(E))return}o(!0,w.nativeEvent,"focus")},onBlur(w){h.current=!1;const E=w.relatedTarget,C=w.nativeEvent,T=tt(E)&&E.hasAttribute($m("focus-guard"))&&E.getAttribute("data-type")==="outside";S.current=window.setTimeout(()=>{var A;const N=Zy(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(()=>m?{reference:g}:{},[m,g])}function Md(n,l,r){const o=new Map,s=r==="item";let u=n;if(s&&n){const{[tb]:f,[nb]:m,...p}=n;u=p}return{...r==="floating"&&{tabIndex:-1,[MR]:""},...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&&[tb,nb].includes(h)))if(h.indexOf("on")===0){if(o.has(h)||o.set(h,[]),typeof S=="function"){var v;(v=o.get(h))==null||v.push(S),f[h]=function(){for(var g,w=arguments.length,E=new Array(w),C=0;C<w;C++)E[C]=arguments[C];return(g=o.get(h))==null?void 0:g.map(T=>T(...E)).find(T=>T!==void 0)}}}else f[h]=S}),f),{})}}function M0(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=>Md(m,n,"reference"),l),u=x.useCallback(m=>Md(m,n,"floating"),r),f=x.useCallback(m=>Md(m,n,"item"),o);return x.useMemo(()=>({getReferenceProps:s,getFloatingProps:u,getItemProps:f}),[s,u,f])}const ZR=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function QR(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=A0(),S=((r=u.domReference)==null?void 0:r.id)||h,v=x.useMemo(()=>{var N;return((N=jT(u.floating))==null?void 0:N.id)||f},[u.floating,f]),g=(o=ZR.get(p))!=null?o:p,E=jm()!=null,C=x.useMemo(()=>g==="tooltip"||p==="label"?{["aria-"+(p==="label"?"labelledby":"describedby")]:s?v:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":s?v:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:S},...g==="menu"&&E&&{role:"menuitem"},...p==="select"&&{"aria-autocomplete":"none"},...p==="combobox"&&{"aria-autocomplete":"list"}},[g,v,E,s,S,p]),T=x.useMemo(()=>{const N={id:v,...g&&{role:g}};return g==="tooltip"||p==="label"?N:{...N,...g==="menu"&&{"aria-labelledby":S}}},[g,v,S,p]),A=x.useCallback(N=>{let{active:_,selected:z}=N;const L={role:"option",..._&&{id:v+"-fui-option"}};switch(p){case"select":case"combobox":return{...L,"aria-selected":z}}return{}},[v,p]);return x.useMemo(()=>m?{reference:C,floating:T,item:A}:{},[m,C,T,A])}function O0(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,...O0(n,s.id,r)])}function ib(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,v]=l[m]||[0,0];h>=o!=v>=o&&r<=(S-p)*(o-h)/(v-h)+p&&(s=!s)}return s}function KR(n,l){return n[0]>=l.x&&n[0]<=l.x+l.width&&n[1]>=l.y&&n[1]<=l.y+l.height}function z0(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(v,g){const w=performance.now(),E=w-p;if(f===null||m===null||E===0)return f=v,m=g,p=w,null;const C=v-f,T=g-m,N=Math.sqrt(C*C+T*T)/E;return f=v,m=g,p=w,N}const S=v=>{let{x:g,y:w,placement:E,elements:C,onClose:T,nodeId:A,tree:N}=v;return function(z){function L(){Zt(s),T()}if(Zt(s),!C.domReference||!C.floating||E==null||g==null||w==null)return;const{clientX:H,clientY:D}=z,U=[H,D],te=YR(z),le=z.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=g>V.right-V.width/2,B=w>V.bottom-V.height/2,k=KR(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(z.relatedTarget)&&_d(C.floating,z.relatedTarget)||N&&O0(N.nodesRef.current,A).length)return;if(ce==="top"&&w>=F.bottom-1||ce==="bottom"&&w<=F.top+1||ce==="left"&&g>=F.right-1||ce==="right"&&g<=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(ve){let[pe,he]=ve;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(!ib([H,D],se)){if(u&&!k)return L();if(!le&&o){const ve=h(z.clientX,z.clientY);if(ve!==null&&ve<.1)return L()}ib([H,D],de([g,w]))?!u&&o&&(s.current=window.setTimeout(L,40)):L()}}};return S.__options={blockPointerEvents:r},S}const j0={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},D0=(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}}},Bn=me(n=>{const l=ue("ScrollArea",j0,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,scrollbarSize:m,vars:p,type:h,scrollHideDelay:S,viewportProps:v,viewportRef:g,onScrollPositionChange:w,children:E,offsetScrollbars:C,scrollbars:T,onBottomReached:A,onTopReached:N,onLeftReached:_,onRightReached:z,overscrollBehavior:L,startScrollPosition:H,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),k=x.useRef(!0),Z=x.useRef(!1),P=Oe({name:"ScrollArea",props:l,classes:Rm,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:U,vars:p,varsResolver:D0}),M=x.useRef(null),[Y,J]=x.useState(null),ae=E0([g,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(()=>{H&&M.current&&M.current.scrollTo({left:H.x??0,top:H.y??0})},[]),y.jsxs(n0,{getStyles:P,type:h==="never"?"always":h,scrollHideDelay:S,scrollbars:T,...P("root"),...te,children:[y.jsx(d0,{...v,...P("viewport",{style:v==null?void 0:v.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=v==null?void 0:v.onScroll)==null||Te.call(v,se),w==null||w({x:se.currentTarget.scrollLeft,y:se.currentTarget.scrollTop});const{scrollTop:de,scrollHeight:ve,clientHeight:pe,scrollLeft:he,scrollWidth:Me,clientWidth:Se}=se.currentTarget,Ce=de-(ve-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&&(z==null||z()),Ne&&!k.current&&(_==null||_()),Z.current=ye,k.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(aT,{...P("corner"),"data-vertical-scrollbar-position":D||void 0,"data-hovered":le||void 0,"data-hidden":h==="never"||void 0})]})});Bn.displayName="@mantine/core/ScrollArea";const Lm=me(n=>{const{children:l,classNames:r,styles:o,scrollbarSize:s,scrollHideDelay:u,type:f,dir:m,offsetScrollbars:p,overscrollBehavior:h,viewportRef:S,onScrollPositionChange:v,unstyled:g,variant:w,viewportProps:E,scrollbars:C,style:T,vars:A,onBottomReached:N,onTopReached:_,startScrollPosition:z,verticalScrollbarPosition:L,onOverflowChange:H,...D}=ue("ScrollAreaAutosize",j0,n),U=x.useRef(null),[te,le]=x.useState(null),oe=E0([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||!H)return;const O=ce.scrollHeight>ce.clientHeight;O!==ee.current&&(F.current?H(O):(F.current=!0,O&&H(!0)),ee.current=O)});return ha(H?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(Bn,{classNames:r,styles:o,scrollHideDelay:u,scrollbarSize:s,type:f,dir:m,offsetScrollbars:p,overscrollBehavior:h,viewportRef:oe,onScrollPositionChange:v,unstyled:g,variant:w,viewportProps:E,vars:A,scrollbars:C,onBottomReached:N,onTopReached:_,startScrollPosition:z,verticalScrollbarPosition:L,"data-autosize":"true",children:l})})})});Bn.classes=Rm;Bn.varsResolver=D0;Lm.displayName="@mantine/core/ScrollAreaAutosize";Lm.classes=Rm;Bn.Autosize=Lm;var $0={root:"m_87cf2631"};const FR={__staticSelector:"UnstyledButton"},zl=Kt(n=>{const l=ue("UnstyledButton",FR,n),{className:r,component:o="button",__staticSelector:s,unstyled:u,classNames:f,styles:m,style:p,attributes:h,...S}=l;return y.jsx(fe,{...Oe({name:s,props:l,classes:$0,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=$0;zl.displayName="@mantine/core/UnstyledButton";var L0={root:"m_515a97f8"};const Bm=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",...Oe({name:"VisuallyHidden",classes:L0,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:p})("root"),...h})});Bm.classes=L0;Bm.displayName="@mantine/core/VisuallyHidden";var B0={root:"m_1b7284a3"};const H0=(n,{radius:l,shadow:r})=>({root:{"--paper-radius":l===void 0?void 0:Ut(l),"--paper-shadow":sm(r)}}),Rn=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:v,mod:g,attributes:w,...E}=l,C=Oe({name:"Paper",props:l,classes:B0,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:w,vars:p,varsResolver:H0});return y.jsx(fe,{mod:[{"data-with-border":m},g],...C("root"),variant:v,...E})});Rn.classes=B0;Rn.varsResolver=H0;Rn.displayName="@mantine/core/Paper";function sb(n,l,r,o){return n==="center"||o==="center"?{top:l}:n==="end"?{bottom:r}:n==="start"?{top:r}:{}}function cb(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 JR={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function PR({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 WR({position:n,arrowSize:l,arrowOffset:r,arrowRadius:o,arrowPosition:s,arrowX:u,arrowY:f,dir:m}){if(s==="merge"){const g=PR({position:n,arrowSize:l,dir:m});if(g)return g}const[p,h="center"]=n.split("-"),S={width:l,height:l,transform:"rotate(45deg)",position:"absolute",[JR[p]]:o},v=-l/2;return p==="left"?{...S,...sb(h,f,r,s),right:v,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...S,...sb(h,f,r,s),left:v,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...S,...cb(h,u,r,s,m),bottom:v,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...S,...cb(h,u,r,s,m),top:v,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}function U0({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 tc({position:n,arrowSize:l,arrowOffset:r,arrowRadius:o,arrowPosition:s,visible:u,arrowX:f,arrowY:m,style:p,...h}){const{dir:S}=al();return u?y.jsx("div",{role:"presentation",...h,style:{...p,...WR({position:n,arrowSize:l,arrowOffset:r,arrowRadius:o,arrowPosition:s,dir:S,arrowX:f,arrowY:m})}}):null}tc.displayName="@mantine/core/FloatingArrow";function Hm(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 eE({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 k0={root:"m_9814e45f"};const tE={zIndex:Qt("modal")},Y0=(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",tE,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,fixed:p,center:h,children:S,radius:v,zIndex:g,gradient:w,blur:E,color:C,backgroundOpacity:T,mod:A,attributes:N,..._}=l;return y.jsx(fe,{...Oe({name:"Overlay",props:l,classes:k0,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:N,vars:m,varsResolver:Y0})("root"),mod:[{center:h,fixed:p},A],..._,children:S})});si.classes=k0;si.varsResolver=Y0;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 nE({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 lE={reuseTargetNode:!0},Um=me(n=>{const{children:l,target:r,reuseTargetNode:o,ref:s,...u}=ue("Portal",lE,n),[f,m]=x.useState(!1),p=x.useRef(null);return Wn(()=>(m(!0),p.current=nE({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:mm.createPortal(y.jsx(y.Fragment,{children:l}),p.current)});Um.displayName="@mantine/core/Portal";const Ga=me(({withinPortal:n=!0,children:l,...r})=>ym()==="test"||!n?y.jsx(y.Fragment,{children:l}):y.jsx(Um,{...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"}),Ls={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"}}},ub={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function fb({transition:n,state:l,duration:r,timingFunction:o}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${r}ms`,transitionTimingFunction:o};return typeof n=="string"?n in Ls?{transitionProperty:Ls[n].transitionProperty,...s,...Ls[n].common,...Ls[n][ub[l]]}:{}:{transitionProperty:n.transitionProperty,...s,...n.common,...n[ub[l]]}}function aE({duration:n,exitDuration:l,timingFunction:r,mounted:o,onEnter:s,onExit:u,onEntered:f,onExited:m,enterDelay:p,exitDelay:h}){const S=cn(),v=dm(),g=S.respectReducedMotion?v:!1,[w,E]=x.useState(g?0:n),[C,T]=x.useState(o?"entered":"exited"),A=x.useRef(-1),N=x.useRef(-1),_=x.useRef(-1);function z(){window.clearTimeout(A.current),window.clearTimeout(N.current),cancelAnimationFrame(_.current)}const L=D=>{z();const U=D?s:u,te=D?f:m,le=g?0:D?n:l;E(le),le===0?(typeof U=="function"&&U(),typeof te=="function"&&te(),T(D?"entered":"exited")):_.current=requestAnimationFrame(()=>{U2.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)})})},H=D=>{if(z(),typeof(D?p:h)!="number"){L(D);return}N.current=window.setTimeout(()=>{L(D)},D?p:h)};return fm(()=>{H(o)},[o]),x.useEffect(()=>()=>{z()},[]),{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:m="ease",onExit:p,onEntered:h,onEnter:S,onExited:v,enterDelay:g,exitDelay:w}){const E=ym(),{transitionDuration:C,transitionStatus:T,transitionTimingFunction:A}=aE({mounted:u,exitDuration:s,duration:o,timingFunction:m,onExit:p,onEntered:h,onEnter:S,onExited:v,enterDelay:g,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"}:{}:fb({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(fb({transition:r,duration:C,state:T,timingFunction:A}))})}Al.displayName="@mantine/core/Transition";const oE={duration:100,transition:"fade"};function db(n,l){return{...oE,...l,...n}}const[rE,bc]=Nl("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()},v=at(n.onMouseDown,E=>{l||E.button===2&&E.stopPropagation()}),g=at(n.onContextMenu,E=>{l||E.defaultPrevented||(E.preventDefault(),!m.current&&(S(E.clientX,E.clientY,E.currentTarget),f.current&&(m.current=!0)))}),w=H2(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:g,onMouseDown:v,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 V0(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,q0({childProps:s.props,disabled:r||u.disabled,opened:u.opened,longPressDelay:o,setReference:u.reference,open:()=>{u.opened||u.onToggle()}}))}V0.displayName="@mantine/core/PopoverContextMenu";function Sc({children:n,active:l=!0,refProp:r="ref",innerRef:o}){const s=it(A2(l),o),u=Ml(n);return u?x.cloneElement(u,{[r]:s}):n}function G0(n){return y.jsx(Bm,{tabIndex:-1,"data-autofocus":!0,...n})}Sc.displayName="@mantine/core/FocusTrap";G0.displayName="@mantine/core/FocusTrapInitialFocus";Sc.InitialFocus=G0;var X0={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const km=me(n=>{var N,_,z,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,...v}=l,g=bc(),{dir:w}=al(),E=g.arrowPosition==="merge"&&g.withArrow?U0({position:g.placement,dir:w}):void 0,C=Lb({opened:g.opened,shouldReturnFocus:g.returnFocus}),T=g.withRoles?{"aria-labelledby":g.getTargetId(),id:g.getDropdownId(),role:"dialog",tabIndex:-1}:{},A=it(S,g.floating);return g.disabled?null:y.jsx(Ga,{...g.portalProps,withinPortal:g.withinPortal,children:y.jsx(Al,{mounted:g.opened,...g.transitionProps,transition:((N=g.transitionProps)==null?void 0:N.transition)||"fade",duration:((_=g.transitionProps)==null?void 0:_.duration)??150,keepMounted:g.keepMounted,keepMountedMode:g.keepMountedMode,exitDuration:typeof((z=g.transitionProps)==null?void 0:z.exitDuration)=="number"?g.transitionProps.exitDuration:(L=g.transitionProps)==null?void 0:L.duration,children:H=>{var D;return y.jsx(Sc,{active:g.trapFocus&&g.opened,innerRef:A,children:y.jsxs(fe,{...T,...v,variant:m,onKeyDownCapture:h2(()=>{var U,te;(U=g.onClose)==null||U.call(g),(te=g.onDismiss)==null||te.call(g)},{active:g.closeOnEscape,onTrigger:C,onKeyDown:f}),"data-position":g.placement,"data-fixed":g.floatingStrategy==="fixed"||void 0,...g.getStyles("dropdown",{className:r,props:l,classNames:p,styles:h,style:[{...H,...E,zIndex:g.zIndex,top:g.y??0,left:g.x??0,width:g.width==="target"?void 0:K(g.width),...g.referenceHidden?{display:"none"}:null},(D=g.resolvedStyles)==null?void 0:D.dropdown,h==null?void 0:h.dropdown,o]}),children:[u,y.jsx(tc,{ref:g.arrowRef,arrowX:g.arrowX,arrowY:g.arrowY,visible:g.withArrow,position:g.placement,arrowSize:g.arrowSize,arrowRadius:g.arrowRadius,arrowOffset:g.arrowOffset,arrowPosition:g.arrowPosition,...g.getStyles("arrow",{props:l,classNames:p,styles:h})})]})})}})})});km.classes=X0;km.displayName="@mantine/core/PopoverDropdown";const iE={refProp:"ref",popupType:"dialog"},I0=me(n=>{const{children:l,refProp:r,popupType:o,ref:s,...u}=ue("PopoverTarget",iE,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 m=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()}:{},v=f.props;return x.cloneElement(f,{...m,...S,...p.targetProps,className:vt(p.targetProps.className,m.className,v.className),[r]:h,...p.controlled?null:{onClick:g=>{var w;p.onToggle(),(w=v.onClick)==null||w.call(v,g)}}})});I0.displayName="@mantine/core/PopoverTarget";function sE(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 cE(n,l,r,o){const s=sE(n.middlewares),u=[T0(n.offset),NR()];if(s.flip&&!r){const f=typeof s.flip=="boolean"?{}:s.flip,m=o?{fallbackStrategy:"initialPlacement",...f}:f;u.push(Wd(m))}if(s.shift){const f=typeof s.shift=="boolean"?{}:s.shift;u.push(zm(m=>{const p=m.placement.startsWith("top")||m.placement.startsWith("bottom");return{limiter:AR(),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(R0({element:n.arrowRef,padding:n.arrowOffset})),(s.size||n.width==="target")&&u.push(_R({...typeof s.size=="boolean"?{}:s.size,apply({rects:f,availableWidth:m,availableHeight:p,...h}){var v;const S=((v=l().refs.floating.current)==null?void 0:v.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 uE(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,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)},v=yc({open:l,strategy:n.strategy,placement:f?s??n.position:n.position,middleware:cE(n,()=>v,f&&s!==null,f),whileElementsMounted:n.keepMounted?void 0:Pd});x.useEffect(()=>{if(!n.keepMounted)return;const E=v.refs.reference.current,C=v.refs.floating.current;if(l&&E&&C)return Pd(E,C,v.update)},[n.keepMounted,l,v.update,v.elements.reference,v.elements.floating]);const g=x.useRef(!1);Wn(()=>{if(!l){g.current=!1;return}if(!f||s!==null)return;const E=v.refs.floating.current;if(!(!E||E.offsetHeight===0||E.offsetWidth===0)){if(!g.current){g.current=!0,v.update();return}v.isPositioned&&u(v.placement)}},[f,l,v.isPositioned,v.placement,s,v.update]);const w=x.useRef(v.placement);return Wn(()=>{var E;w.current!==v.placement&&(w.current=v.placement,(E=n.onPositionChange)==null||E.call(n,v.placement))},[v.placement]),fm(()=>{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:v,controlled:typeof n.opened=="boolean",opened:l,onClose:h,onToggle:S,resetLockedPlacement:p}}const fE={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"},Z0=(n,{radius:l,shadow:r})=>({dropdown:{"--popover-radius":l===void 0?void 0:Ut(l),"--popover-shadow":sm(r)}});function gt(n){var Hl,ol,Dt,_n,Wt,St,en;const l=ue("Popover",fE,n),{children:r,position:o,offset:s,onPositionChange:u,opened:f,transitionProps:m,onExitTransitionEnd:p,onEnterTransitionEnd:h,width:S,middlewares:v,withArrow:g,arrowSize:w,arrowOffset:E,arrowRadius:C,arrowPosition:T,unstyled:A,classNames:N,styles:_,closeOnClickOutside:z,withinPortal:L,portalProps:H,closeOnEscape:D,clickOutsideEvents:U,trapFocus:te,onClose:le,onDismiss:oe,onOpen:ee,onChange:F,zIndex:V,radius:ce,shadow:O,id:B,defaultOpened:k,__staticSelector:Z,withRoles:P,disabled:M,returnFocus:Y,variant:J,keepMounted:ae,keepMountedMode:se,vars:de,floatingStrategy:ve,withOverlay:pe,overlayProps:he,hideDetached:Me,attributes:Se,preventPositionChangeWhenVisible:Ce,...ie}=l,ye=Oe({name:Z,props:l,classes:X0,classNames:N,styles:_,unstyled:A,attributes:Se,rootSelector:"dropdown",vars:de,varsResolver:Z0}),{resolvedStyles:Ne}=cc({classNames:N,styles:_,props:l}),Te=x.useRef(null),[Ve,ut]=x.useState(null),[zt,fn]=x.useState(null),{dir:dn}=al(),jt=ym(),Pt=Un(B),ze=uE({middlewares:v,width:S,position:Hm(dn,o),offset:typeof s=="number"?s+(g?w/2:0):s,arrowRef:Te,arrowOffset:E,onPositionChange:u,opened:f,defaultOpened:k,onChange:F,onOpen:ee,onClose:le,onDismiss:oe,strategy:ve,disabled:M,preventPositionChangeWhenVisible:Ce,keepMounted:ae});S2(()=>{z&&(ze.onClose(),oe==null||oe())},U,[Ve,zt]);const Bl=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]),Sa=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(rE,{value:{returnFocus:Y,disabled:M,controlled:ze.controlled,reference:Bl,floating:yt,x:ze.floating.x,y:ze.floating.y,arrowX:(Dt=(ol=(Hl=ze.floating)==null?void 0:Hl.middlewareData)==null?void 0:ol.arrow)==null?void 0:Dt.x,arrowY:(St=(Wt=(_n=ze.floating)==null?void 0:_n.middlewareData)==null?void 0:Wt.arrow)==null?void 0:St.y,opened:ze.opened,arrowRef:Te,transitionProps:{...m,onExited:Sa,onEntered:Ye},width:S,withArrow:g,arrowSize:w,arrowOffset:E,arrowRadius:C,arrowPosition:T,placement:ze.floating.placement,trapFocus:te,withinPortal:L,portalProps:H,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:ve,referenceHidden:Me&&jt!=="test"?(en=ze.floating.middlewareData.hide)==null?void 0:en.referenceHidden:!1},children:[r,pe&&y.jsx(Al,{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(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]})})})})]})}gt.Target=I0;gt.Dropdown=km;gt.ContextMenu=V0;gt.varsResolver=Z0;gt.displayName="@mantine/core/Popover";gt.extend=n=>n;gt.withProps=n=>{const l=r=>y.jsx(gt,{...n,...r});return l.extend=gt.extend,l.displayName=`WithProps(${gt.displayName})`,l};var Dn={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 Q0=({className:n,...l})=>y.jsxs(fe,{component:"span",className:vt(Dn.barsLoader,n),...l,children:[y.jsx("span",{className:Dn.bar}),y.jsx("span",{className:Dn.bar}),y.jsx("span",{className:Dn.bar})]});Q0.displayName="@mantine/core/Bars";const K0=({className:n,...l})=>y.jsxs(fe,{component:"span",className:vt(Dn.dotsLoader,n),...l,children:[y.jsx("span",{className:Dn.dot}),y.jsx("span",{className:Dn.dot}),y.jsx("span",{className:Dn.dot})]});K0.displayName="@mantine/core/Dots";const F0=({className:n,...l})=>y.jsx(fe,{component:"span",className:vt(Dn.ovalLoader,n),...l});F0.displayName="@mantine/core/Oval";const J0={bars:Q0,oval:F0,dots:K0},dE={loaders:J0,type:"oval"},P0=(n,{size:l,color:r})=>({root:{"--loader-size":Je(l,"loader-size"),"--loader-color":r?pa(r,n):void 0}}),Ia=me(n=>{const l=ue("Loader",dE,n),{size:r,color:o,type:s,vars:u,className:f,style:m,classNames:p,styles:h,unstyled:S,loaders:v,variant:g,children:w,attributes:E,...C}=l,T=Oe({name:"Loader",props:l,classes:Dn,className:f,style:m,classNames:p,styles:h,unstyled:S,attributes:E,vars:u,varsResolver:P0});return w?y.jsx(fe,{...T("root"),...C,children:w}):y.jsx(fe,{...T("root"),component:v[s],variant:g,size:r,...C})});Ia.defaultLoaders=J0;Ia.classes=Dn;Ia.varsResolver=P0;Ia.displayName="@mantine/core/Loader";var Ko={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const mE={orientation:"horizontal"},W0=(n,{borderWidth:l})=>({group:{"--ai-border-width":K(l)}}),xc=me(n=>{const l=ue("ActionIconGroup",mE,n),{className:r,style:o,classNames:s,styles:u,unstyled:f,orientation:m,vars:p,borderWidth:h,variant:S,mod:v,attributes:g,...w}=l;return y.jsx(fe,{...Oe({name:"ActionIconGroup",props:l,classes:Ko,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:g,vars:p,varsResolver:W0,rootSelector:"group"})("group"),variant:S,mod:[{"data-orientation":m},v],role:"group",...w})});xc.classes=Ko;xc.varsResolver=W0;xc.displayName="@mantine/core/ActionIconGroup";const e1=(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:Ut(l),"--section-bg":r||s?m.background:void 0,"--section-color":m.color,"--section-bd":r||s?m.border:void 0}}},wc=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:v,attributes:g,...w}=l;return y.jsx(fe,{...Oe({name:"ActionIconGroupSection",props:l,classes:Ko,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:g,vars:m,varsResolver:e1,rootSelector:"groupSection"})("groupSection"),variant:p,...w})});wc.classes=Ko;wc.varsResolver=e1;wc.displayName="@mantine/core/ActionIconGroupSection";const t1=(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:Ut(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}}},ya=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:v,radius:g,__staticSelector:w,gradient:E,vars:C,children:T,disabled:A,"data-disabled":N,autoContrast:_,mod:z,attributes:L,...H}=l,D=Oe({name:["ActionIcon",w],props:l,className:r,style:m,classes:Ko,classNames:u,styles:f,unstyled:o,attributes:L,vars:C,varsResolver:t1});return y.jsxs(zl,{...D("root",{active:!A&&!p&&!N}),"aria-busy":p||void 0,...H,unstyled:o,variant:s,size:S,disabled:A||p,mod:[{loading:p,disabled:A||N},z],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(Ia,{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=t1;ya.displayName="@mantine/core/ActionIcon";ya.Group=xc;ya.GroupSection=wc;function n1({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"})})}n1.displayName="@mantine/core/CloseIcon";var l1={root:"m_86a44da5","root--subtle":"m_220c80f2"};const pE={variant:"subtle"},a1=(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)}}),Za=Kt(n=>{const l=ue("CloseButton",pE,n),{iconSize:r,children:o,vars:s,radius:u,className:f,classNames:m,style:p,styles:h,unstyled:S,"data-disabled":v,disabled:g,variant:w,icon:E,mod:C,attributes:T,__staticSelector:A,...N}=l,_=Oe({name:A||"CloseButton",props:l,className:f,style:p,classes:l1,classNames:m,styles:h,unstyled:S,attributes:T,vars:s,varsResolver:a1});return y.jsxs(zl,{...N,unstyled:S,variant:w,disabled:g,mod:[{disabled:g||v},C],..._("root",{variant:w,active:!g&&!v}),children:[E||y.jsx(n1,{}),o]})});Za.classes=l1;Za.varsResolver=a1;Za.displayName="@mantine/core/CloseButton";function hE(n){return x.Children.toArray(n).filter(Boolean)}var o1={root:"m_4081bf90"};const gE={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},r1=(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":ii(o),"--group-align":s,"--group-justify":u,"--group-wrap":f}}),Ct=me(n=>{const l=ue("Group",gE,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,children:m,gap:p,align:h,justify:S,wrap:v,grow:g,preventGrowOverflow:w,vars:E,variant:C,__size:T,mod:A,attributes:N,..._}=l,z=hE(m),L=z.length,H=ii(p??"md");return y.jsx(fe,{...Oe({name:"Group",props:l,stylesCtx:{childWidth:`calc(${100/L}% - (${H} - ${H} / ${L}))`},className:o,style:s,classes:o1,classNames:r,styles:u,unstyled:f,attributes:N,vars:E,varsResolver:r1})("root"),variant:C,mod:[{grow:g},A],size:T,..._,children:z})});Ct.classes=o1;Ct.varsResolver=r1;Ct.displayName="@mantine/core/Group";const[vE,jl]=Nl("ModalBase component was not found in tree");function yE({opened:n,transitionDuration:l}){const[r,o]=x.useState(n),s=x.useRef(-1),u=dm()?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 bE({id:n,transitionProps:l,opened:r,trapFocus:o,closeOnEscape:s,onClose:u,returnFocus:f}){const m=Un(n),[p,h]=x.useState(!1),[S,v]=x.useState(!1),g=yE({opened:r,transitionDuration:typeof(l==null?void 0:l.duration)=="number"?l==null?void 0:l.duration:200});return kb("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}),Lb({opened:r,shouldReturnFocus:o&&f}),{_id:m,titleMounted:p,bodyMounted:S,shouldLockScroll:g,setTitleMounted:h,setBodyMounted:v}}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 i1(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 SE(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 Is="right-scroll-bar-position",Zs="width-before-scroll-bar",xE="with-scroll-bars-hidden",wE="--removed-body-scroll-bar-size";function zd(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function CE(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 TE=typeof window<"u"?x.useLayoutEffect:x.useEffect,mb=new WeakMap;function RE(n,l){var r=CE(null,function(o){return n.forEach(function(s){return zd(s,o)})});return TE(function(){var o=mb.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)})}mb.set(r,n)},[n]),r}function EE(n){return n}function AE(n,l){l===void 0&&(l=EE);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 _E(n){n===void 0&&(n={});var l=AE(null);return l.options=Jn({async:!0,ssr:!1},n),l}var s1=function(n){var l=n.sideCar,r=i1(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))};s1.isSideCarExport=!0;function NE(n,l){return n.useMedium(l),s1}var c1=_E(),jd=function(){},Cc=x.forwardRef(function(n,l){var r=x.useRef(null),o=x.useState({onScrollCapture:jd,onWheelCapture:jd,onTouchMoveCapture:jd}),s=o[0],u=o[1],f=n.forwardProps,m=n.children,p=n.className,h=n.removeScrollBar,S=n.enabled,v=n.shards,g=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,z=i1(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=g,H=RE([r,l]),D=Jn(Jn({},z),s);return x.createElement(x.Fragment,null,S&&x.createElement(L,{sideCar:c1,removeScrollBar:h,shards:v,noRelative:w,noIsolation:E,inert:C,setCallbacks:u,allowPinchZoom:!!T,lockRef:r,gapMode:_}),f?x.cloneElement(x.Children.only(m),Jn(Jn({},D),{ref:H})):x.createElement(N,Jn({},D,{className:p,ref:H}),m))});Cc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Cc.classNames={fullWidth:Zs,zeroRight:Is};var ME=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function OE(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=ME();return l&&n.setAttribute("nonce",l),n}function zE(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function jE(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var DE=function(){var n=0,l=null;return{add:function(r){n==0&&(l=OE())&&(zE(l,r),jE(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},$E=function(){var n=DE();return function(l,r){x.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&r])}},u1=function(){var n=$E(),l=function(r){var o=r.styles,s=r.dynamic;return n(o,s),null};return l},LE={left:0,top:0,right:0,gap:0},Dd=function(n){return parseInt(n||"",10)||0},BE=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)]},HE=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return LE;var l=BE(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])}},UE=u1(),Vo="data-scroll-locked",kE=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(xE,` {
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`]:ky(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`]:ky(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":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)"}};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(ym(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?im(r,o):r}const xd=Jb(wm);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(Sm,{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,...sm(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 Tm({style:n,theme:l}){return Array.isArray(n)?n.reduce((r,o)=>({...r,...Tm({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,...Tm({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],...sm(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=Tm({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 Rm(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:sm({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 Em(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)`:Em(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+=` ${Em(s.join(" "),l)}`),u.trim()}return n}const Gy={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 Gy?Gy[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:Em,textColor:YC,fontSize:XC,spacing:JC,radius:KC,identity:IC,size:FC,lineHeight:QC,fontFamily:VC,border:qC};function Xy(n){return n.replace("(min-width: ","").replace("em)","")}function PC({media:n,...l}){const r=Object.keys(n).sort((o,s)=>Number(Xy(o))-Number(Xy(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}=Rm(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 Iy(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=Iy(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=Iy(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 Am(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}Am.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(Am,{"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(Am,{...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 _m={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 Nm(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(Nm(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 Mm(n){return n==="x"?"y":"x"}function Om(n){return n==="y"?"height":"width"}function On(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function jm(n){return Mm(On(n))}function RT(n,l,r){r===void 0&&(r=!1);const o=Qo(n),s=jm(n),u=Om(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 Zy=["left","right"],Qy=["right","left"],AT=["top","bottom"],_T=["bottom","top"];function NT(n,l,r){switch(n){case"top":case"bottom":return r?l?Qy:Zy:l?Zy:Qy;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 zm(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 Ky="data-floating-ui-focusable",BT="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Fy(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(Ky)?n:n.querySelector("["+Ky+"]")||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 Jy(n,l,r){let{reference:o,floating:s}=n;const u=On(l),f=jm(l),d=Om(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=zm(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}=Jy(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}=Jy(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=zm(S),v={x:r,y:o},w=jm(s),E=Om(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 Py(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Wy(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=Py(f,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Wy(d)}}}case"escaped":{const f=await o.detectOverflow(l,{...u,altBoundary:!0}),d=Py(f,r.floating);return{data:{escapedOffsets:d,escaped:Wy(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=zm(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=Mm(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=Mm(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 Dm(n){return tt(n)?n:n.contextElement}function Vo(n){const l=Dm(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=Dm(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 eb(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=Nm(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=eb(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=eb(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 tb(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=tb(n,l);for(;o&&bT(o)&&Rd(o);)o=tb(o,l);return o&&da(o)&&Rd(o)&&!Nm(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=Dm(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,nb=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 lb(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,vm.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=lb(O.floating,S.x),P=lb(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?nb({element:o.current,padding:s}).fn(r):{}:o?nb({element:o,padding:s}).fn(r):{}}}},N0=(n,l)=>{const r=CR(n);return{name:r.name,fn:r.fn,options:[n,l]}},$m=(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",ab="active",ob="selected",UR={...$b};let rb=!1,HR=0;const ib=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+HR++;function YR(){const[n,l]=x.useState(()=>rb?ib():void 0);return Pn(()=>{n==null&&l(ib())},[]),x.useEffect(()=>{rb=!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),Lm=()=>{var n;return((n=x.useContext(GR))==null?void 0:n.id)||null},Bm=()=>x.useContext(XR);function km(n){return"data-floating-ui-"+n}function Zt(n){n.current!==-1&&(clearTimeout(n.current),n.current=-1)}const sb=km("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=Bm(),E=Lm(),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(sb),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(sb,"");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"},cb=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=Bm(),T=Fn(typeof p=="function"?p:()=>!1),A=typeof p=="function"?T:p,N=x.useRef(!1),{escapeKey:_,outsidePress:j}=cb(w),{escapeKey:L,outsidePress:k}=cb(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="["+km("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=Lm()!=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=Bm();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===Fy(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(km("focus-guard"))&&E.getAttribute("data-type")==="outside";S.current=window.setTimeout(()=>{var A;const N=Fy(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{[ab]:f,[ob]: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&&[ab,ob].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=Lm()!=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 ub(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(!ub([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()}ub([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:_m,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 Um=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=_m;$n.varsResolver=U0;Um.displayName="@mantine/core/ScrollAreaAutosize";Um.classes=_m;$n.Autosize=Um;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 Hm=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})});Hm.classes=Y0;Hm.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":fm(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 fb(n,l,r,o){return n==="center"||o==="center"?{top:l}:n==="end"?{bottom:r}:n==="start"?{top:r}:{}}function db(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,...fb(h,f,r,s),right:g,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...S,...fb(h,f,r,s),left:g,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...S,...db(h,u,r,s,d),bottom:g,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...S,...db(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 Ym(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},qm=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:vm.createPortal(y.jsx(y.Fragment,{children:l}),p.current)});qm.displayName="@mantine/core/Portal";const Ga=me(({withinPortal:n=!0,children:l,...r})=>xm()==="test"||!n?y.jsx(y.Fragment,{children:l}):y.jsx(qm,{...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"}}},mb={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function pb({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][mb[l]]}:{}:{transitionProperty:n.transitionProperty,...s,...n.common,...n[mb[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=hm(),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 pm(()=>{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=xm(),{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"}:{}:pb({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(pb({transition:r,duration:C,state:T,timingFunction:A}))})}Al.displayName="@mantine/core/Transition";const mE={duration:100,transition:"fade"};function hb(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(Hm,{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 Vm=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})})]})})}})})});Vm.classes=F0;Vm.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($m(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]),pm(()=>{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":fm(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=xm(),Pt=kn(B),je=yE({middlewares:g,width:S,position:Ym(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=Vm;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=hm()?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,vb=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=vb.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)})}vb.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,` {
55
55
  overflow: hidden `).concat(o,`;
56
- padding-right: `).concat(m,"px ").concat(o,`;
56
+ padding-right: `).concat(d,"px ").concat(o,`;
57
57
  }
58
- body[`).concat(Vo,`] {
58
+ body[`).concat(Go,`] {
59
59
  overflow: hidden `).concat(o,`;
60
60
  overscroll-behavior: contain;
61
61
  `).concat([l&&"position: relative ".concat(o,";"),r==="margin"&&`
@@ -64,101 +64,96 @@ ${f?`${m("light")}{${f}}`:""}`}function js({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(m,"px ").concat(o,`;
68
- `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(o,";")].filter(Boolean).join(""),`
67
+ margin-right: `).concat(d,"px ").concat(o,`;
68
+ `),r==="padding"&&"padding-right: ".concat(d,"px ").concat(o,";")].filter(Boolean).join(""),`
69
69
  }
70
70
 
71
- .`).concat(Is,` {
72
- right: `).concat(m,"px ").concat(o,`;
71
+ .`).concat(Zs,` {
72
+ right: `).concat(d,"px ").concat(o,`;
73
73
  }
74
74
 
75
- .`).concat(Zs,` {
76
- margin-right: `).concat(m,"px ").concat(o,`;
75
+ .`).concat(Qs,` {
76
+ margin-right: `).concat(d,"px ").concat(o,`;
77
77
  }
78
78
 
79
- .`).concat(Is," .").concat(Is,` {
79
+ .`).concat(Zs," .").concat(Zs,` {
80
80
  right: 0 `).concat(o,`;
81
81
  }
82
82
 
83
- .`).concat(Zs," .").concat(Zs,` {
83
+ .`).concat(Qs," .").concat(Qs,` {
84
84
  margin-right: 0 `).concat(o,`;
85
85
  }
86
86
 
87
- body[`).concat(Vo,`] {
88
- `).concat(wE,": ").concat(m,`px;
87
+ body[`).concat(Go,`] {
88
+ `).concat(ME,": ").concat(d,`px;
89
89
  }
90
- `)},pb=function(){var n=parseInt(document.body.getAttribute(Vo)||"0",10);return isFinite(n)?n:0},YE=function(){x.useEffect(function(){return document.body.setAttribute(Vo,(pb()+1).toString()),function(){var n=pb()-1;n<=0?document.body.removeAttribute(Vo):document.body.setAttribute(Vo,n.toString())}},[])},qE=function(n){var l=n.noRelative,r=n.noImportant,o=n.gapMode,s=o===void 0?"margin":o;YE();var u=x.useMemo(function(){return HE(s)},[s]);return x.createElement(UE,{styles:kE(u,!l,s,r?"":"!important")})},tm=!1;if(typeof window<"u")try{var Bs=Object.defineProperty({},"passive",{get:function(){return tm=!0,!0}});window.addEventListener("test",Bs,Bs),window.removeEventListener("test",Bs,Bs)}catch{tm=!1}var Lo=tm?{passive:!1}:!1,VE=function(n){return n.tagName==="TEXTAREA"},f1=function(n,l){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[l]!=="hidden"&&!(r.overflowY===r.overflowX&&!VE(n)&&r[l]==="visible")},GE=function(n){return f1(n,"overflowY")},XE=function(n){return f1(n,"overflowX")},hb=function(n,l){var r=l.ownerDocument,o=l;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=d1(n,o);if(s){var u=m1(n,o),f=u[1],m=u[2];if(f>m)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},IE=function(n){var l=n.scrollTop,r=n.scrollHeight,o=n.clientHeight;return[l,r,o]},ZE=function(n){var l=n.scrollLeft,r=n.scrollWidth,o=n.clientWidth;return[l,r,o]},d1=function(n,l){return n==="v"?GE(l):XE(l)},m1=function(n,l){return n==="v"?IE(l):ZE(l)},QE=function(n,l){return n==="h"&&l==="rtl"?-1:1},KE=function(n,l,r,o,s){var u=QE(n,window.getComputedStyle(l).direction),f=u*o,m=r.target,p=l.contains(m),h=!1,S=f>0,v=0,g=0;do{if(!m)break;var w=m1(n,m),E=w[0],C=w[1],T=w[2],A=C-T-u*E;(E||A)&&d1(n,m)&&(v+=A,g+=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(v)<1||!S&&Math.abs(g)<1)&&(h=!0),h},Hs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},gb=function(n){return[n.deltaX,n.deltaY]},vb=function(n){return n&&"current"in n?n.current:n},FE=function(n,l){return n[0]===l[0]&&n[1]===l[1]},JE=function(n){return`
90
+ `)},gb=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,(gb()+1).toString()),function(){var n=gb()-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")},yb=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]},bb=function(n){return[n.deltaX,n.deltaY]},Sb=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`
91
91
  .block-interactivity-`.concat(n,` {pointer-events: none;}
92
92
  .allow-interactivity-`).concat(n,` {pointer-events: all;}
93
- `)},PE=0,Bo=[];function WE(n){var l=x.useRef([]),r=x.useRef([0,0]),o=x.useRef(),s=x.useState(PE++)[0],u=x.useState(u1)[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=SE([n.lockRef.current],(n.shards||[]).map(vb),!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=Hs(C),N=r.current,_="deltaX"in C?C.deltaX:N[0]-A[0],z="deltaY"in C?C.deltaY:N[1]-A[1],L,H=C.target,D=Math.abs(_)>Math.abs(z)?"h":"v";if("touches"in C&&D==="h"&&H.type==="range")return!1;var U=window.getSelection(),te=U&&U.anchorNode,le=te?te===H||te.contains(H):!1;if(le)return!1;var oe=hb(D,H);if(!oe)return!0;if(oe?L=D:(L=D==="v"?"h":"v",oe=hb(D,H)),!oe)return!1;if(!o.current&&"changedTouches"in C&&(_||z)&&(o.current=L),!L)return!0;var ee=o.current||L;return KE(ee,T,C,ee==="h"?_:z)},[]),p=x.useCallback(function(C){var T=C;if(!(!Bo.length||Bo[Bo.length-1]!==u)){var A="deltaY"in T?gb(T):Hs(T),N=l.current.filter(function(L){return L.name===T.type&&(L.target===T.target||T.target===L.shadowParent)&&FE(L.delta,A)})[0];if(N&&N.should){T.cancelable&&T.preventDefault();return}if(!N){var _=(f.current.shards||[]).map(vb).filter(Boolean).filter(function(L){return L.contains(T.target)}),z=_.length>0?m(T,_[0]):!f.current.noIsolation;z&&T.cancelable&&T.preventDefault()}}},[]),h=x.useCallback(function(C,T,A,N){var _={name:C,delta:T,target:A,should:N,shadowParent:eA(A)};l.current.push(_),setTimeout(function(){l.current=l.current.filter(function(z){return z!==_})},1)},[]),S=x.useCallback(function(C){r.current=Hs(C),o.current=void 0},[]),v=x.useCallback(function(C){h(C.type,gb(C),C.target,m(C,n.lockRef.current))},[]),g=x.useCallback(function(C){h(C.type,Hs(C),C.target,m(C,n.lockRef.current))},[]);x.useEffect(function(){return Bo.push(u),n.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:g}),document.addEventListener("wheel",p,Lo),document.addEventListener("touchmove",p,Lo),document.addEventListener("touchstart",S,Lo),function(){Bo=Bo.filter(function(C){return C!==u}),document.removeEventListener("wheel",p,Lo),document.removeEventListener("touchmove",p,Lo),document.removeEventListener("touchstart",S,Lo)}},[]);var w=n.removeScrollBar,E=n.inert;return x.createElement(x.Fragment,null,E?x.createElement(u,{styles:JE(s)}):null,w?x.createElement(qE,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function eA(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const tA=NE(c1,WE);var ci=x.forwardRef(function(n,l){return x.createElement(Cc,Jn({},n,{ref:l,sideCar:tA}))});ci.classNames=Cc.classNames;function Ym({keepMounted:n,keepMountedMode:l="activity",opened:r,onClose:o,id:s,transitionProps:u,onExitTransitionEnd:f,onEnterTransitionEnd:m,trapFocus:p,closeOnEscape:h,returnFocus:S,closeOnClickOutside:v,withinPortal:g,portalProps:w,lockScroll:E,children:C,zIndex:T,shadow:A,padding:N,__vars:_,unstyled:z,removeScrollProps:L,...H}){const{_id:D,titleMounted:U,bodyMounted:te,shouldLockScroll:le,setTitleMounted:oe,setBodyMounted:ee}=bE({id:s,transitionProps:u,opened:r,trapFocus:p,closeOnEscape:h,onClose:o,returnFocus:S}),{key:F,...V}=L||{};return y.jsx(Ga,{...w,withinPortal:g,children:y.jsx(vE,{value:{opened:r,onClose:o,closeOnClickOutside:v,onExitTransitionEnd:f,onEnterTransitionEnd:m,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:z},children:y.jsx(ci,{enabled:le&&E,...V,children:y.jsx(fe,{...H,id:D,__vars:{..._,"--mb-z-index":(T||Qt("modal")).toString(),"--mb-shadow":sm(A),"--mb-padding":ii(N)},children:C})},F)})})}Ym.displayName="@mantine/core/ModalBase";function nA(){const n=jl();return x.useEffect(()=>(n.setBodyMounted(!0),()=>n.setBodyMounted(!1)),[]),n.getBodyId()}var Go={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function qm({className:n,...l}){const r=nA(),o=jl();return y.jsx(fe,{id:r,className:vt({[Go.body]:!o.unstyled},n),...l})}qm.displayName="@mantine/core/ModalBaseBody";function Vm({className:n,onClick:l,...r}){const o=jl();return y.jsx(Za,{...r,onClick:s=>{o.onClose(),l==null||l(s)},className:vt({[Go.close]:!o.unstyled},n),unstyled:o.unstyled})}Vm.displayName="@mantine/core/ModalBaseCloseButton";function Gm({transitionProps:n,className:l,innerProps:r,onKeyDown:o,style:s,ref:u,...f}){const m=jl();return y.jsx(Al,{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:vt({[Go.inner]:!m.unstyled},r.className),children:y.jsx(Sc,{active:m.opened&&m.trapFocus,innerRef:u,children:y.jsx(Rn,{...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:vt({[Go.content]:!m.unstyled},l),unstyled:m.unstyled,children:f.children})})})})}Gm.displayName="@mantine/core/ModalBaseContent";function Xm({className:n,...l}){const r=jl();return y.jsx(fe,{component:"header",className:vt({[Go.header]:!r.unstyled},n),...l})}Xm.displayName="@mantine/core/ModalBaseHeader";const lA={duration:200,timingFunction:"ease",transition:"fade"};function aA(n){const l=jl();return{...lA,...l.transitionProps,...n}}function Im({onClick:n,transitionProps:l,style:r,visible:o,...s}){const u=jl(),f=aA(l);return y.jsx(Al,{mounted:o!==void 0?o:u.opened,...f,transition:"fade",children:m=>y.jsx(si,{fixed:!0,style:[r,m],zIndex:u.zIndex,unstyled:u.unstyled,onClick:p=>{n==null||n(p),u.closeOnClickOutside&&u.onClose()},...s})})}Im.displayName="@mantine/core/ModalBaseOverlay";function oA(){const n=jl();return x.useEffect(()=>(n.setTitleMounted(!0),()=>n.setTitleMounted(!1)),[]),n.getTitleId()}function Zm({className:n,...l}){const r=oA(),o=jl();return y.jsx(fe,{component:"h2",className:vt({[Go.title]:!o.unstyled},n),id:r,...l})}Zm.displayName="@mantine/core/ModalBaseTitle";function p1({children:n}){return y.jsx(y.Fragment,{children:n})}const h1=x.createContext({size:"sm"}),g1=me(n=>{const l=ue("InputClearButton",null,n),{size:r,variant:o,vars:s,classNames:u,styles:f,...m}=l,p=x.use(h1),{resolvedClassNames:h,resolvedStyles:S}=cc({classNames:u,styles:f,props:l});return y.jsx(Za,{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})});g1.displayName="@mantine/core/InputClearButton";const rA={xs:7,sm:8,md:10,lg:12,xl:15};function iA({__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:rA[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 v1=(n,{size:l})=>({description:{"--input-description-size":l===void 0?void 0:`calc(${Tt(l)} - ${K(2)})`}}),ui=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,...v}=ue("InputDescription",null,l),g=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:m,varsResolver:v1});return y.jsx(fe,{component:"p",...(h&&(g==null?void 0:g.getStyles)||w)("description",g!=null&&g.getStyles?{className:o,style:s}:void 0),...v})});ui.classes=Ft;ui.varsResolver=v1;ui.displayName="@mantine/core/InputDescription";const y1=(n,{size:l})=>({error:{"--input-error-size":l===void 0?void 0:`calc(${Tt(l)} - ${K(2)})`}}),fi=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,...v}=l,g=Oe({name:["InputWrapper",h],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:p,rootSelector:"error",vars:m,varsResolver:y1}),w=x.use(Fo);return y.jsx(fe,{component:"p",...(S&&(w==null?void 0:w.getStyles)||g)("error",w!=null&&w.getStyles?{className:o,style:s}:void 0),...v})});fi.classes=Ft;fi.varsResolver=y1;fi.displayName="@mantine/core/InputError";const sA={labelElement:"label"},b1=(n,{size:l})=>({label:{"--input-label-size":Tt(l),"--input-asterisk-color":void 0}}),di=me(n=>{const l=ue("InputLabel",sA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,labelElement:p,required:h,htmlFor:S,onMouseDown:v,children:g,__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:m,varsResolver:b1}),N=x.use(Fo),_=(N==null?void 0:N.getStyles)||A,z=T.component||p,L=typeof z!="string"||z==="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:H=>{v==null||v(H),!H.defaultPrevented&&H.detail>1&&H.preventDefault()},...T,children:[g,h&&y.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});di.classes=Ft;di.varsResolver=b1;di.displayName="@mantine/core/InputLabel";const Qm=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:v,...g}=l;return y.jsx(fe,{...Oe({name:["InputPlaceholder",p],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:v,rootSelector:"placeholder"})("placeholder"),mod:[{error:!!h},S],component:"span",...g})});Qm.classes=Ft;Qm.displayName="@mantine/core/InputPlaceholder";const S1=(n,{size:l})=>({success:{"--input-success-size":l===void 0?void 0:`calc(${Tt(l)} - ${K(2)})`}}),mi=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,...v}=l,g=Oe({name:["InputWrapper",h],props:l,classes:Ft,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:p,rootSelector:"success",vars:m,varsResolver:S1}),w=x.use(Fo);return y.jsx(fe,{component:"p",...(S&&(w==null?void 0:w.getStyles)||g)("success",w!=null&&w.getStyles?{className:o,style:s}:void 0),...v})});mi.classes=Ft;mi.varsResolver=S1;mi.displayName="@mantine/core/InputSuccess";function cA(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 uA={labelElement:"label",inputContainer:n=>n,inputWrapperOrder:["label","description","input","error"]},x1=(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)})`}}),Tc=me(n=>{const l=ue("InputWrapper",uA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,size:p,variant:h,__staticSelector:S,inputContainer:v,inputWrapperOrder:g,label:w,error:E,success:C,description:T,labelProps:A,descriptionProps:N,errorProps:_,successProps:z,labelElement:L,children:H,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:m,varsResolver:x1}),ce={size:p,variant:h,__staticSelector:S},O=Un(U),B=typeof D=="boolean"?D:te,k=(_==null?void 0:_.id)||`${O}-error`,Z=(z==null?void 0:z.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&&g.includes("error"),de=J&&g.includes("error"),ve=ae&&g.includes("description"),pe=`${se?k:""} ${de?Z:""} ${ve?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:v(H)},"input"),ye=Y&&x.createElement(fi,{..._,...ce,size:(_==null?void 0:_.size)||ce.size,key:"error",id:(_==null?void 0:_.id)||k},E),Ne=J&&x.createElement(mi,{...z,...ce,size:(z==null?void 0:z.size)||ce.size,key:"success",id:(z==null?void 0:z.id)||Z},C),Te=g.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,...cA(g,{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=x1;Tc.displayName="@mantine/core/InputWrapper";const fA={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:"sm",loading:!1,loadingPosition:"right"},w1=(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: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",fA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,required:m,__staticSelector:p,__stylesApiProps:h,size:S,wrapperProps:v,error:g,success:w,disabled:E,leftSection:C,leftSectionProps:T,leftSectionWidth:A,rightSection:N,rightSectionProps:_,rightSectionWidth:z,rightSectionPointerEvents:L,leftSectionPointerEvents:H,variant:D,vars:U,pointer:te,multiline:le,radius:oe,id:ee,withAria:F,withErrorStyles:V,withSuccessStyles:ce,mod:O,inputSize:B,attributes:k,__clearSection:Z,__clearable:P,__clearSectionMode:M,__defaultRightSection:Y,loading:J,loadingPosition:ae,__bottomSection:se,__bottomSectionProps:de,rootRef:ve,dir:pe,...he}=l,{styleProps:Me,rest:Se}=wm(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:k,stylesCtx:ie,rootSelector:"wrapper",vars:U,varsResolver:w1}),Ne=F?{required:m,disabled:E,"aria-invalid":g?!0:void 0,"aria-describedby":Ce==null?void 0:Ce.describedBy,id:(Ce==null?void 0:Ce.inputId)||ee}:{},Te=J?y.jsx(Ia,{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=iA({__clearable:P,__clearSection:Z,rightSection:J&&ae==="right"?Te:N,__defaultRightSection:Y,size:S,__clearSectionMode:M});return y.jsx(h1,{value:{size:S||"sm"},children:y.jsxs(fe,{ref:ve,dir:pe,...ye("wrapper"),...Me,...v,mod:[{error:!!g&&V,success:!!w&&!g&&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:!!g&&V,success:!!w&&!g&&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=w1;Ot.Wrapper=Tc;Ot.Label=di;Ot.Error=fi;Ot.Success=mi;Ot.Description=ui;Ot.Placeholder=Qm;Ot.ClearButton=g1;Ot.displayName="@mantine/core/Input";function dA(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:v,unstyled:g,__staticSelector:w,__stylesApiProps:E,errorProps:C,successProps:T,labelProps:A,descriptionProps:N,wrapperProps:_,id:z,size:L,style:H,inputContainer:D,inputWrapperOrder:U,withAsterisk:te,variant:le,vars:oe,mod:ee,attributes:F,...V}=o,{styleProps:ce,rest:O}=wm(V),B={label:s,description:u,error:f,success:m,required:p,classNames:h,className:v,__staticSelector:w,__stylesApiProps:E||o,errorProps:C,successProps:T,labelProps:A,descriptionProps:N,unstyled:g,styles:S,size:L,style:H,inputContainer:D,inputWrapperOrder:U,withAsterisk:te,variant:le,id:z,mod:ee,attributes:F,..._};return{...O,classNames:h,styles:S,unstyled:g,wrapperProps:{...B,...ce},inputProps:{required:p,classNames:h,styles:S,unstyled:g,size:L,__staticSelector:w,__stylesApiProps:E||o,error:f,success:m,variant:le,id:z,attributes:F}}}const mA={__staticSelector:"InputBase",withAria:!0,size:"sm"},Rc=Kt(n=>{const{inputProps:l,wrapperProps:r,...o}=dA("InputBase",mA,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 pA(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 hA({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,v]=x.useState(typeof o=="boolean"?o:!1),g=()=>{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,z=window.getComputedStyle(n),L=window.getComputedStyle(l),H=fa(z.borderTopWidth)+fa(L.borderTopWidth),D=fa(z.borderLeftWidth)+fa(L.borderLeftWidth),U={top:(T.top-A.top)/_-H,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"),g(),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,g(),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=>{pA(A.target,l)&&(w(),v(!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]),z2(()=>{Y2()!=="test"&&h(!0)},20,{autoInvoke:!0}),D2(T=>{T.forEach(A=>{A.type==="attributes"&&A.attributeName==="dir"&&w()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:p,hidden:S}}var C1={root:"m_96b553a6"};const T1=(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:m,target:p,parent:h,transitionDuration:S,mod:v,displayAfterTransitionEnd:g,onTransitionStart:w,onTransitionEnd:E,attributes:C,ref:T,...A}=l,N=dm(),_=Oe({name:"FloatingIndicator",classes:C1,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:C,vars:m,varsResolver:T1,stylesCtx:{shouldReduceMotion:N}}),z=x.useRef(null),{initialized:L,hidden:H}=hA({target:p,parent:h,ref:z,displayAfterTransitionEnd:g,onTransitionStart:w,onTransitionEnd:E}),D=it(T,z);return!p||!h?null:y.jsx(fe,{ref:D,mod:[{initialized:L,hidden:H},v],..._("root"),...A})});Ec.displayName="@mantine/core/FloatingIndicator";Ec.classes=C1;Ec.varsResolver=T1;function R1({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"})})}R1.displayName="@mantine/core/AccordionChevron";var E1={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 A1=(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:m,radius:p,color:h,title:S,children:v,id:g,icon:w,withCloseButton:E,onClose:C,closeButtonLabel:T,variant:A,autoContrast:N,role:_,attributes:z,...L}=l,H=Oe({name:"Alert",classes:E1,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:z,vars:m,varsResolver:A1}),D=Un(g),U=S&&`${D}-title`||void 0,te=`${D}-body`;return y.jsx(fe,{id:D,...H("root",{variant:A}),variant:A,...L,role:_||"alert","aria-describedby":v?te:void 0,"aria-labelledby":S?U:void 0,children:y.jsxs("div",{...H("wrapper"),children:[w&&y.jsx("div",{...H("icon"),children:w}),y.jsxs("div",{...H("body"),children:[S&&y.jsx("div",{...H("title"),"data-with-close-button":E||void 0,children:y.jsx("span",{id:U,...H("label"),children:S})}),v&&y.jsx("div",{id:te,...H("message"),"data-variant":A,children:v})]}),E&&y.jsx(Za,{...H("closeButton"),onClick:C,variant:"transparent",size:16,iconSize:16,"aria-label":T,unstyled:f})]})})});Xa.classes=E1;Xa.varsResolver=A1;Xa.displayName="@mantine/core/Alert";var _1={root:"m_b6d8b162"};function gA(n){if(n==="start")return"start";if(n==="end"||n)return"end"}const vA={inherit:!1},N1=(n,{variant:l,lineClamp:r,gradient:o,size:s,textWrap:u})=>({root:{"--text-fz":Tt(s),"--text-lh":g2(s),"--text-gradient":l==="gradient"?Gd(o,n):void 0,"--text-line-clamp":typeof r=="number"?r.toString():void 0,"--text-text-wrap":u}}),Be=Kt(n=>{const l=ue("Text",vA,n),{lineClamp:r,truncate:o,inline:s,inherit:u,gradient:f,span:m,textWrap:p,__staticSelector:h,vars:S,className:v,style:g,classNames:w,styles:E,unstyled:C,variant:T,mod:A,size:N,attributes:_,...z}=l;return y.jsx(fe,{...Oe({name:["Text",h],props:l,classes:_1,className:v,style:g,classNames:w,styles:E,unstyled:C,attributes:_,vars:S,varsResolver:N1})("root",{focusable:!0}),component:m?"span":"p",variant:T,mod:[{"data-truncate":gA(o),"data-line-clamp":typeof r=="number","data-inline":s,"data-inherit":u},A],size:N,...z})});Be.classes=_1;Be.varsResolver=N1;Be.displayName="@mantine/core/Text";var M1={root:"m_849cf0da"};const yA={underline:"hover"},Ac=Kt(n=>{const{underline:l,className:r,unstyled:o,mod:s,...u}=ue("Anchor",yA,n);return y.jsx(Be,{component:"a",className:vt({[M1.root]:!o},r),...u,mod:[{underline:l},s],__staticSelector:"Anchor",unstyled:o})});Ac.classes=M1;Ac.displayName="@mantine/core/Anchor";const[bA,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 Km=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),v=Jo();return v.disabled?null:y.jsx(fe,{component:"aside",mod:[{"with-border":m??v.withBorder},h],...v.getStyles("aside",{className:vt({[ci.classNames.zeroRight]:v.offsetScrollbars},r),classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-aside-z-index":`calc(${p??v.zIndex} + 1)`}})});Km.classes=ba;Km.displayName="@mantine/core/AppShellAside";const Fm=me(n=>{var g;const{classNames:l,className:r,style:o,styles:s,unstyled:u,vars:f,withBorder:m,zIndex:p,mod:h,...S}=ue("AppShellFooter",null,n),v=Jo();return v.disabled?null:y.jsx(fe,{component:"footer",mod:[{"with-border":m??v.withBorder},h],...v.getStyles("footer",{className:vt({[ci.classNames.zeroRight]:v.offsetScrollbars},r),classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-footer-z-index":(g=p??v.zIndex)==null?void 0:g.toString()}})});Fm.classes=ba;Fm.displayName="@mantine/core/AppShellFooter";const Jm=me(n=>{var g;const{classNames:l,className:r,style:o,styles:s,unstyled:u,vars:f,withBorder:m,zIndex:p,mod:h,...S}=ue("AppShellHeader",null,n),v=Jo();return v.disabled?null:y.jsx(fe,{component:"header",mod:[{"with-border":m??v.withBorder},h],...v.getStyles("header",{className:vt({[ci.classNames.zeroRight]:v.offsetScrollbars},r),classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-header-z-index":(g=p??v.zIndex)==null?void 0:g.toString()}})});Jm.classes=ba;Jm.displayName="@mantine/core/AppShellHeader";const Pm=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})});Pm.classes=ba;Pm.displayName="@mantine/core/AppShellMain";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("AppShellNavbar",null,n),v=Jo();return v.disabled?null:y.jsx(fe,{component:"nav",mod:[{"with-border":m??v.withBorder},h],...v.getStyles("navbar",{className:r,classNames:l,styles:s,style:o}),...S,__vars:{"--app-shell-navbar-z-index":`calc(${p??v.zIndex} + 1)`}})});Wm.classes=ba;Wm.displayName="@mantine/core/AppShellNavbar";const ep=Kt(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,grow:f,mod:m,...p}=ue("AppShellSection",null,n),h=Jo();return y.jsx(fe,{mod:[{grow:f},m],...h.getStyles("section",{className:r,style:o,classNames:l,styles:s}),...p})});ep.classes=ba;ep.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 gi(n){return!(typeof n!="object"||n===null||Object.keys(n).length===1&&"base"in n)}function SA({baseStyles:n,minMediaStyles:l,maxMediaStyles:r,aside:o,theme:s,mode:u}){var h,S,v;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")),hi(f)){const g=K(pi(f));n["--app-shell-aside-width"]=g,n["--app-shell-aside-offset"]=g}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(g=>{g!=="base"&&(l[g]=l[g]||{},l[g]["--app-shell-aside-width"]=K(f[g]),l[g]["--app-shell-aside-offset"]=K(f[g]))})),(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 g=o.breakpoint;l[g]=l[g]||{},l[g]["--app-shell-aside-transform"]=m,l[g]["--app-shell-aside-transform-rtl"]=p,u==="fixed"?l[g]["--app-shell-aside-offset"]="0px !important":(l[g]["--app-shell-aside-width"]="0px",l[g]["--app-shell-aside-display"]="none",l[g]["--app-shell-main-column-end"]="-1"),l[g]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if((v=o==null?void 0:o.collapsed)!=null&&v.mobile){const g=cm(o.breakpoint,s.breakpoints)-.1;r[g]=r[g]||{},u==="fixed"?(r[g]["--app-shell-aside-width"]="100%",r[g]["--app-shell-aside-offset"]="0px"):r[g]["--app-shell-aside-width"]="0px",r[g]["--app-shell-aside-transform"]=m,r[g]["--app-shell-aside-transform-rtl"]=p,r[g]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function xA({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 m=K(pi(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 wA({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 m=K(pi(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 CA({baseStyles:n,minMediaStyles:l,maxMediaStyles:r,navbar:o,theme:s,mode:u}){var h,S,v;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")),hi(f)){const g=K(pi(f));n["--app-shell-navbar-width"]=g,n["--app-shell-navbar-offset"]=g,u==="static"&&(n["--app-shell-navbar-grid-width"]=g)}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(g=>{g!=="base"&&(l[g]=l[g]||{},l[g]["--app-shell-navbar-width"]=K(f[g]),l[g]["--app-shell-navbar-offset"]=K(f[g]),u==="static"&&(l[g]["--app-shell-navbar-grid-width"]=K(f[g])))})),(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 g=o.breakpoint;l[g]=l[g]||{},l[g]["--app-shell-navbar-transform"]=m,l[g]["--app-shell-navbar-transform-rtl"]=p,u==="fixed"?l[g]["--app-shell-navbar-offset"]="0px !important":(l[g]["--app-shell-navbar-width"]="0px",l[g]["--app-shell-navbar-display"]="none",l[g]["--app-shell-main-column-start"]="1")}if((v=o==null?void 0:o.collapsed)!=null&&v.mobile){const g=cm(o.breakpoint,s.breakpoints)-.1;r[g]=r[g]||{},r[g]["--app-shell-navbar-width"]="100%",r[g]["--app-shell-navbar-offset"]="0px",u==="static"&&(r[g]["--app-shell-navbar-grid-width"]="0px"),r[g]["--app-shell-navbar-transform"]=m,r[g]["--app-shell-navbar-transform-rtl"]=p}}function $d(n){return Number(n)===0?"0px":ii(n)}function TA({padding:n,baseStyles:l,minMediaStyles:r}){hi(n)&&(l["--app-shell-padding"]=$d(pi(n))),gi(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 RA({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"),CA({baseStyles:h,minMediaStyles:m,maxMediaStyles:p,navbar:n,theme:u,mode:f}),SA({baseStyles:h,minMediaStyles:m,maxMediaStyles:p,aside:o,theme:u,mode:f}),wA({baseStyles:h,minMediaStyles:m,header:l,mode:f}),xA({baseStyles:h,minMediaStyles:m,footer:r,mode:f}),TA({baseStyles:h,minMediaStyles:m,padding:s});const S=Oy(Mt(m),u.breakpoints).map(g=>({query:`(min-width: ${Qs(g.px)})`,styles:m[g.value]})),v=Oy(Mt(p),u.breakpoints).map(g=>({query:`(max-width: ${Qs(g.px)})`,styles:p[g.value]}));return{baseStyles:h,media:[...S,...v]}}function EA({navbar:n,header:l,aside:r,footer:o,padding:s,mode:u,selector:f}){const m=cn(),p=ll(),{media:h,baseStyles:S}=RA({navbar:n,header:l,footer:o,aside:r,padding:s,theme:m,mode:u});return y.jsx(Kb,{media:h,styles:S,selector:f||p.cssVariablesSelector})}function AA({transitionDuration:n,disabled:l}){const[r,o]=x.useState(!0),s=x.useRef(-1),u=x.useRef(-1);return kb("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 _A={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Qt("app"),mode:"fixed"},O1=(n,{transitionDuration:l,transitionTimingFunction:r})=>({root:{"--app-shell-transition-duration":`${l}ms`,"--app-shell-transition-timing-function":r}}),Hn=me(n=>{const l=ue("AppShell",_A,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,navbar:p,withBorder:h,padding:S,transitionDuration:v,transitionTimingFunction:g,header:w,zIndex:E,layout:C,disabled:T,aside:A,footer:N,offsetScrollbars:_=!0,mode:z,mod:L,attributes:H,id:D,...U}=l,te=Oe({name:"AppShell",classes:ba,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:H,vars:m,varsResolver:O1}),le=AA({disabled:T,transitionDuration:v}),oe=Un(D);return y.jsxs(bA,{value:{getStyles:te,withBorder:h,zIndex:E,disabled:T,offsetScrollbars:_,mode:z},children:[y.jsx(EA,{navbar:p,header:w,aside:A,footer:N,padding:S,mode:z,selector:z==="static"?`#${oe}`:void 0}),y.jsx(fe,{...te("root"),id:oe,mod:[{resizing:le,layout:C,disabled:T,mode:z},L],...U})]})});Hn.classes=ba;Hn.varsResolver=O1;Hn.displayName="@mantine/core/AppShell";Hn.Navbar=Wm;Hn.Header=Jm;Hn.Main=Pm;Hn.Aside=Km;Hn.Footer=Fm;Hn.Section=ep;function z1(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=>z1(l))}:typeof n=="number"||typeof n=="bigint"||typeof n=="boolean"?{value:n,label:`${n}`}:n}function NA(n){return n?n.map(l=>z1(l)):[]}function j1(n){return n.reduce((l,r)=>"group"in r?{...l,...j1(r.items)}:(l[`${r.value}`]=r,l),{})}var Ht={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 MA={error:null},D1=(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",MA,n),{size:r,error:o,style:s,className:u,classNames:f,styles:m,unstyled:p,vars:h,attributes:S,mod:v,...g}=l,w=Oe({name:"ComboboxChevron",classes:Ht,props:l,style:s,className:u,classNames:f,styles:m,unstyled:p,vars:h,varsResolver:D1,attributes:S,rootSelector:"chevron"});return y.jsx(fe,{component:"svg",...g,...w("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},v],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=Ht;_c.varsResolver=D1;_c.displayName="@mantine/core/ComboboxChevron";const[OA,un]=Nl("Combobox component was not found in tree");function $1({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)}})}$1.displayName="@mantine/core/ComboboxClearButton";const tp=me(n=>{const{classNames:l,styles:r,className:o,style:s,hidden:u,...f}=ue("ComboboxDropdown",null,n),m=un();return y.jsx(gt.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})})});tp.classes=Ht;tp.displayName="@mantine/core/ComboboxDropdown";const zA={refProp:"ref"},L1=me(n=>{const{children:l,refProp:r,ref:o}=ue("ComboboxDropdownTarget",zA,n);if(un(),!rm(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(gt.Target,{ref:o,refProp:r,children:l})});L1.displayName="@mantine/core/ComboboxDropdownTarget";const np=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})});np.classes=Ht;np.displayName="@mantine/core/ComboboxEmpty";function lp({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 jA={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},B1=me(n=>{const{children:l,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:u,targetType:f,autoComplete:m,ref:p,...h}=ue("ComboboxEventsTarget",jA,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 v=un();return x.cloneElement(S,{...lp({targetType:f,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:u,onKeyDown:S.props.onKeyDown,onClick:S.props.onClick,autoComplete:m}),...h,[r]:it(p,v.store.targetRef,ic(S))})});B1.displayName="@mantine/core/ComboboxEventsTarget";const ap=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()}})});ap.classes=Ht;ap.displayName="@mantine/core/ComboboxFooter";const op=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(),v=Un(p),g=m!=null&&m!==!1&&m!=="";return y.jsxs(fe,{role:"group","aria-labelledby":g?v:void 0,...S.getStyles("group",{className:r,classNames:l,style:o,styles:s}),...h,children:[g&&y.jsx("div",{id:v,...S.getStyles("groupLabel",{classNames:l,styles:s}),children:m}),f]})});op.classes=Ht;op.displayName="@mantine/core/ComboboxGroup";const rp=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()}})});rp.classes=Ht;rp.displayName="@mantine/core/ComboboxHeader";function H1({value:n,valuesDivider:l=",",...r}){return y.jsx("input",{type:"hidden",value:Array.isArray(n)?n.join(l):n?`${n}`:"",...r})}H1.displayName="@mantine/core/ComboboxHiddenInput";const ip=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:v,disabled:g,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":g,"combobox-selected":w},E],role:"option",onClick:_=>{var z;g?_.preventDefault():((z=T.onOptionSubmit)==null||z.call(T,l.value,l),m==null||m(_))},onMouseDown:_=>{_.preventDefault(),S==null||S(_)},onMouseOver:_=>{T.resetSelectionOnOptionHover&&T.store.resetSelectedOption(),v==null||v(_)}})});ip.classes=Ht;ip.displayName="@mantine/core/ComboboxOption";const sp=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=Un(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:v=>{v.preventDefault(),f==null||f(v)}})});sp.classes=Ht;sp.displayName="@mantine/core/ComboboxOptions";const DA={withAriaAttributes:!0,withKeyboardNavigation:!0},cp=me(n=>{const{classNames:l,styles:r,unstyled:o,vars:s,withAriaAttributes:u,onKeyDown:f,onClick:m,withKeyboardNavigation:p,size:h,ref:S,...v}=ue("ComboboxSearch",DA,n),g=un(),w=g.getStyles("search"),E=lp({targetType:"input",withAriaAttributes:u,withKeyboardNavigation:p,withExpandedAttribute:!1,onKeyDown:f,onClick:m,autoComplete:"off"});return y.jsx(Ot,{ref:it(S,g.store.searchRef),classNames:[{input:w.className},l],styles:[{input:w.style},r],size:h||g.size,...E,...v,__staticSelector:"Combobox"})});cp.classes=Ht;cp.displayName="@mantine/core/ComboboxSearch";const $A={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},U1=me(n=>{const{children:l,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:u,targetType:f,autoComplete:m,ref:p,...h}=ue("ComboboxTarget",$A,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 v=un(),g=x.cloneElement(S,{...lp({targetType:f,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:u,onKeyDown:S.props.onKeyDown,onClick:S.props.onClick,autoComplete:m}),...h});return y.jsx(gt.Target,{refProp:r,ref:it(p,v.store.targetRef),children:g})});U1.displayName="@mantine/core/ComboboxTarget";function LA(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 BA(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 HA(n){for(let l=0;l<n.length;l+=1)if(!n[l].hasAttribute("data-combobox-disabled"))return l;return-1}function k1({defaultOpened:n,opened:l,onOpenedChange:r,onDropdownClose:o,onDropdownOpen:s,loop:u=!0,scrollBehavior:f="instant"}={}){const[m,p]=el({value:l,defaultValue:n,finalValue:!1,onChange:r}),h=x.useRef(null),S=x.useRef(-1),v=x.useRef(null),g=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(g.current),B=qs(`#${h.current} [data-combobox-selected]`,O);B==null||B.removeAttribute("data-combobox-selected"),B==null||B.removeAttribute("aria-selected")},[]),z=x.useCallback(O=>{const B=Kn(g.current),k=qs(`#${h.current}`,B),Z=k?Tl("[data-combobox-option]",k):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(g.current),B=qs(`#${h.current} [data-combobox-active]`,O);if(B){const k=Tl(`#${h.current} [data-combobox-option]`,O).findIndex(Z=>Z===B);return z(k)}return z(0)},[z]),H=x.useCallback(()=>{const O=Kn(g.current),B=Tl(`#${h.current} [data-combobox-option]`,O);return z(BA(S.current,B,u))},[z,u]),D=x.useCallback(()=>{const O=Kn(g.current),B=Tl(`#${h.current} [data-combobox-option]`,O);return z(LA(S.current,B,u))},[z,u]),U=x.useCallback(()=>{const O=Kn(g.current),B=Tl(`#${h.current} [data-combobox-option]`,O);return z(HA(B))},[z]),te=x.useCallback((O="selected",B)=>{var k;if(typeof O=="number"){S.current=O;const Z=Kn(g.current),P=Tl(`#${h.current} [data-combobox-option]`,Z);B!=null&&B.scrollIntoView&&((k=P[O])==null||k.scrollIntoView({block:"nearest",behavior:f}));return}C.current=window.setTimeout(()=>{var Y;const Z=Kn(g.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,k;const O=Kn(g.current);(k=(B=Tl(`#${h.current} [data-combobox-option]`,O))==null?void 0:B[S.current])==null||k.click()},[]),ee=x.useCallback(O=>{h.current=O},[]),F=x.useCallback(()=>{w.current=window.setTimeout(()=>{var O;return(O=v.current)==null?void 0:O.focus()},0)},[]),V=x.useCallback(()=>{E.current=window.setTimeout(()=>{var O;return(O=g.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:z,selectFirstOption:U,selectActiveOption:L,selectNextOption:H,selectPreviousOption:D,resetSelectedOption:le,updateSelectedOptionIndex:te,listId:h.current,setListId:ee,clickSelectedOption:oe,searchRef:v,focusSearchInput:F,targetRef:g,focusTarget:V}}const UA={keepMounted:!0,keepMountedMode:"display-none",withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},Y1=(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",UA,n),{classNames:r,styles:o,unstyled:s,children:u,store:f,vars:m,onOptionSubmit:p,onClose:h,size:S,dropdownPadding:v,resetSelectionOnOptionHover:g,__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,z=k1(),L=f||z,H=Oe({name:w||"Combobox",classes:Ht,props:l,classNames:r,styles:o,unstyled:s,attributes:C,vars:m,varsResolver:Y1}),D=()=>{h==null||h(),L.closeDropdown()};return y.jsx(OA,{value:{getStyles:H,store:L,onOptionSubmit:p,size:S,resetSelectionOnOptionHover:g,readOnly:E,floatingHeight:T},children:y.jsx(gt,{opened:L.dropdownOpened,...N,middlewares:_,onChange:U=>!U&&D(),withRoles:!1,unstyled:s,children:u})})},kA=n=>n;Ie.extend=kA;Ie.classes=Ht;Ie.varsResolver=Y1;Ie.displayName="@mantine/core/Combobox";Ie.Target=U1;Ie.Dropdown=tp;Ie.Options=sp;Ie.Option=ip;Ie.Search=cp;Ie.Empty=np;Ie.Chevron=_c;Ie.Footer=ap;Ie.Header=rp;Ie.EventsTarget=B1;Ie.DropdownTarget=L1;Ie.Group=op;Ie.ClearButton=$1;Ie.HiddenInput=H1;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 li(n){return"group"in n}function V1({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:V1({options:f.items,search:l,limit:r-s.length})}),li(f)||f.label.toLowerCase().includes(o)&&s.push(f)}return s}function YA(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 G1(n,l=new Set){if(Array.isArray(n))for(const r of n)if(li(r))G1(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 qA(n,l){return Array.isArray(n)?n.includes(l):n===l}function X1({data:n,withCheckIcon:l,withAlignedLabels:r,value:o,checkIconPosition:s,unstyled:u,renderOption:f}){if(!li(n)){const p=qA(o,n.value),h=l&&(p?y.jsx(q1,{className:Ht.optionsDropdownCheckIcon}):r?y.jsx("div",{className:Ht.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:vt({[Ht.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(X1,{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 VA({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:v=!1,value:g,checkIconPosition:w,nothingFoundMessage:E,unstyled:C,labelId:T,renderOption:A,scrollAreaProps:N,"aria-label":_}){const z=un();G1(n);const L=typeof s=="string"?(o||V1)({options:n,search:h?s:"",limit:u??1/0}):n,H=YA(L),D=L.map((U,te)=>y.jsx(X1,{data:U,withCheckIcon:S,withAlignedLabels:v,value:g,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&&H,"data-composed":!0,children:y.jsxs(Ie.Options,{labelledBy:T,"aria-label":_,children:[p?y.jsx(Bn.Autosize,{mah:(m??z.floatingHeight)==="viewport"?"var(--combobox-floating-options-max-height)":f??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...N,children:D}):D,H&&E&&y.jsx(Ie.Empty,{children:E})]})})}var I1={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const Z1=(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: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:m,radius:p,color:h,gradient:S,leftSection:v,rightSection:g,children:w,variant:E,fullWidth:C,autoContrast:T,circle:A,mod:N,attributes:_,...z}=l,L=Oe({name:"Badge",props:l,classes:I1,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:_,vars:m,varsResolver:Z1});return y.jsxs(fe,{variant:E,mod:[{block:C,circle:A,"with-right-section":!!g,"with-left-section":!!v},N],...L("root",{variant:E}),...z,children:[v&&y.jsx("span",{...L("section"),"data-position":"left",children:v}),y.jsx("span",{...L("label"),children:w}),g&&y.jsx("span",{...L("section"),"data-position":"right",children:g})]})});Nc.classes=I1;Nc.varsResolver=Z1;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 yb={orientation:"horizontal"},Q1=(n,{borderWidth:l})=>({group:{"--button-border-width":K(l)}}),Mc=me(n=>{const l=ue("ButtonGroup",yb,n),{className:r,style:o,classNames:s,styles:u,unstyled:f,orientation:m,vars:p,borderWidth:h,mod:S,attributes:v,...g}=ue("ButtonGroup",yb,n);return y.jsx(fe,{...Oe({name:"ButtonGroup",props:l,classes:Po,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:v,vars:p,varsResolver:Q1,rootSelector:"group"})("group"),mod:[{"data-orientation":m},S],role:"group",...g})});Mc.classes=Po;Mc.varsResolver=Q1;Mc.displayName="@mantine/core/ButtonGroup";const K1=(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:Ut(l),"--section-bg":r||s?m.background:void 0,"--section-color":m.color,"--section-bd":r||s?m.border:void 0}}},Oc=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:v,...g}=l;return y.jsx(fe,{...Oe({name:"ButtonGroupSection",props:l,classes:Po,className:r,style:o,classNames:s,styles:u,unstyled:f,attributes:v,vars:m,varsResolver:K1,rootSelector:"groupSection"})("groupSection"),...g})});Oc.classes=Po;Oc.varsResolver=K1;Oc.displayName="@mantine/core/ButtonGroupSection";const GA={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${K(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},F1=(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: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:m,leftSection:p,rightSection:h,fullWidth:S,variant:v,radius:g,loading:w,loaderProps:E,gradient:C,classNames:T,styles:A,unstyled:N,"data-disabled":_,autoContrast:z,mod:L,attributes:H,...D}=l,U=Oe({name:"Button",props:l,classes:Po,className:s,style:r,classNames:T,styles:A,unstyled:N,attributes:H,vars:o,varsResolver:F1}),te=!!p,le=!!h;return y.jsxs(zl,{...U("root",{active:!f&&!w&&!_}),unstyled:N,variant:v,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:GA,duration:150,children:oe=>y.jsx(fe,{component:"span",...U("loader",{style:oe}),"aria-hidden":!0,children:y.jsx(Ia,{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:m}),h&&y.jsx(fe,{component:"span",...U("section"),mod:{position:"right"},children:h})]})]})});_l.classes=Po;_l.varsResolver=F1;_l.displayName="@mantine/core/Button";_l.Group=Mc;_l.GroupSection=Oc;function XA(n){const l=n.currentTarget;return Kn(l).activeElement!==l}var J1={root:"m_7485cace"};const IA={strategy:"block"},P1=(n,{size:l,fluid:r})=>({root:{"--container-size":r?void 0:Je(l,"container-size")}}),ai=me(n=>{const l=ue("Container",IA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,fluid:p,mod:h,attributes:S,strategy:v,...g}=l,w=Oe({name:"Container",classes:J1,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:S,vars:m,varsResolver:P1});return y.jsx(fe,{mod:[{fluid:p,strategy:v},h],...w("root"),...g})});ai.classes=J1;ai.varsResolver=P1;ai.displayName="@mantine/core/Container";var W1={root:"m_3eebeb36",label:"m_9e365f20"};const ZA={orientation:"horizontal"},eS=(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")}}),zc=me(n=>{const l=ue("Divider",ZA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,color:p,orientation:h,label:S,labelPosition:v,mod:g,attributes:w,...E}=l,C=Oe({name:"Divider",classes:W1,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:w,vars:m,varsResolver:eS});return y.jsx(fe,{mod:[{orientation:h,withLabel:!!S},g],role:"separator",...C("root"),...E,children:S&&y.jsx(fe,{component:"span",mod:{position:v},...C("label"),children:S})})});zc.classes=W1;zc.varsResolver=eS;zc.displayName="@mantine/core/Divider";const[QA,Wo]=Nl("Drawer component was not found in tree");var Dl={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const jc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("DrawerBody",null,n);return y.jsx(qm,{...Wo().getStyles("body",{classNames:l,style:o,styles:s,className:r}),...f})});jc.classes=Dl;jc.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(Vm,{...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:m,__hidden:p,...h}=ue("DrawerContent",null,n),S=Wo(),v=S.scrollAreaComponent||p1;return y.jsx(Gm,{...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(v,{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(Xm,{...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(Im,{...Wo().getStyles("overlay",{classNames:l,style:o,styles:s,className:r}),...f})});Bc.classes=Dl;Bc.displayName="@mantine/core/DrawerOverlay";function KA(n){switch(n){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function FA(n){if(n==="top"||n==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const JA={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},PA={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},WA={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Qt("modal"),position:"left"},tS=(n,{position:l,size:r,offset:o})=>({root:{"--drawer-size":Je(r,"drawer-size"),"--drawer-flex":FA(l),"--drawer-height":l==="left"||l==="right"?void 0:"var(--drawer-size)","--drawer-align":KA(l),"--drawer-justify":l==="right"?"flex-end":void 0,"--drawer-offset":K(o)}}),vi=me(n=>{const l=ue("DrawerRoot",WA,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,scrollAreaComponent:p,position:h,transitionProps:S,radius:v,attributes:g,...w}=l,{dir:E}=al(),C=Oe({name:"Drawer",classes:Dl,props:l,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:g,vars:m,varsResolver:tS}),T=(E==="rtl"?PA:JA)[h];return y.jsx(QA,{value:{scrollAreaComponent:p,getStyles:C,radius:v},children:y.jsx(Ym,{...C("root"),transitionProps:{transition:T,...S},"data-offset-scrollbars":p===Bn.Autosize||void 0,unstyled:f,...w})})});vi.classes=Dl;vi.varsResolver=tS;vi.displayName="@mantine/core/DrawerRoot";const nS=x.createContext(null);function lS({children:n}){const[l,r]=x.useState([]),[o,s]=x.useState(Qt("modal"));return y.jsx(nS,{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})}lS.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(Zm,{...Wo().getStyles("title",{classNames:l,style:o,styles:s,className:r}),...f})});Hc.classes=Dl;Hc.displayName="@mantine/core/DrawerTitle";const e3={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Qt("modal"),withOverlay:!0,withCloseButton:!0},Yn=me(n=>{const{title:l,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:u,children:f,opened:m,stackId:p,zIndex:h,...S}=ue("Drawer",e3,n),v=x.use(nS),g=!!l||s,w=v&&p?{closeOnEscape:v.currentId===p,trapFocus:v.currentId===p,zIndex:v.getZIndex(p)}:{},E=r===!1?!1:p&&v?v.currentId===p:m;return x.useEffect(()=>{v&&p&&(m?v.addModal(p,h||Qt("modal")):v.removeModal(p))},[m,p,h]),y.jsxs(vi,{opened:m,zIndex:v&&p?v.getZIndex(p):h,...S,...w,children:[r&&y.jsx(Bc,{visible:E,transitionProps:v&&p?{duration:0}:void 0,...o}),y.jsxs($c,{__hidden:v&&p&&m?p!==v.currentId:!1,children:[g&&y.jsxs(Lc,{children:[l&&y.jsx(Hc,{children:l}),s&&y.jsx(Dc,{...u})]}),y.jsx(jc,{children:f})]})]})});Yn.classes=Dl;Yn.displayName="@mantine/core/Drawer";Yn.Root=vi;Yn.Overlay=Bc;Yn.Content=$c;Yn.Body=jc;Yn.Header=Lc;Yn.Title=Hc;Yn.CloseButton=Dc;Yn.Stack=lS;const[t3,Jt]=Nl("Menu component was not found in the tree"),aS=x.createContext(null);function oS(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(aS,{value:{values:u,onChange:x.useCallback(m=>{f(u.includes(m)?u.filter(p=>p!==m):[...u,m])},[u,f])},children:s})}oS.displayName="@mantine/core/MenuCheckboxGroup";const Xo=x.createContext(null);function rS({role:n,checked:l,indicator:r,onSelect:o,color:s,closeMenuOnClick:u,rightSection:f,children:m,disabled:p,dataDisabled:h,className:S,style:v,styles:g,classNames:w,buttonRef:E,others:C}){const T=Jt(),A=x.use(Xo),N=cn(),{dir:_}=al(),z=x.useRef(null),L=at(C.onClick,()=>{h||(o(),u&&T.closeDropdownImmediately())}),H=at(C.onMouseMove,()=>{var ee;if(!T.hasSearch)return;const oe=(ee=z.current)==null?void 0:ee.closest("[data-menu-dropdown]");oe&&oe.querySelectorAll("[data-menu-active]").forEach(F=>{F!==z.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?va({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:v,styles:g,classNames:w}),ref:it(z,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:H,onKeyDown:im({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:g,classNames:w}),"data-checked":l||void 0,children:l?r:null}),m&&y.jsx("div",{...T.getStyles("itemLabel",{styles:g,classNames:w}),"data-menu-item-label":!0,children:m}),f&&y.jsx("div",{...T.getStyles("itemSection",{styles:g,classNames:w}),"data-position":"right",children:f})]})}var qn={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 up=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":v,value:g,checked:w,defaultChecked:E,onChange:C,checkIcon:T,ref:A,...N}=ue("MenuCheckboxItem",null,n),_=Jt(),z=x.use(aS),L=z&&g!==void 0?z.values.includes(g):void 0,[H,D]=el({value:w??L,defaultValue:E,finalValue:!1,onChange:C});return y.jsx(rS,{role:"menuitemcheckbox",checked:H,indicator:T??_.checkIcon??y.jsx(q1,{size:10}),onSelect:()=>{C?D(!H):z&&g!==void 0?z.onChange(g):D(!H)},color:f,closeMenuOnClick:m,rightSection:p,disabled:S,dataDisabled:v,className:r,style:o,styles:s,classNames:l,buttonRef:A,others:N,children:h})});up.classes=qn;up.displayName="@mantine/core/MenuCheckboxItem";function iS(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,q0({childProps:s.props,disabled:r||f.disabled,opened:u.opened,longPressDelay:o,setReference:f.reference,open:()=>u.openDropdown()}))}iS.displayName="@mantine/core/MenuContextMenu";const fp=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})});fp.classes=qn;fp.displayName="@mantine/core/MenuDivider";const n3=500;function bb(n){return((n.querySelector("[data-menu-item-label]")??n).textContent??"").trim().toLowerCase()}function l3(n){return n.length>1&&n.split("").every(l=>l===n[0])}function sS({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(g=>g.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},n3);const h=document.activeElement,S=h?m.indexOf(h):-1;let v=null;if(p.buffer.length===1||l3(p.buffer)){const g=p.buffer[0],w=S+1;for(let E=0;E<m.length;E+=1){const C=(w+E)%m.length;if(bb(m[C]).startsWith(g)){v=m[C];break}}}else for(let g=0;g<m.length;g+=1)if(bb(m[g]).startsWith(p.buffer)){v=m[g];break}v&&(s.preventDefault(),v.focus())}}const dp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,onMouseEnter:f,onMouseLeave:m,onKeyDown:p,children:h,ref:S,...v}=ue("MenuDropdown",null,n),g=x.useRef(null),w=Jt(),E=sS({enabled:!w.hasSearch,opened:w.opened,getDropdown:()=>g.current}),C=at(p,N=>{var _,z;E(N),!(N.defaultPrevented||w.hasSearch)&&(N.key==="ArrowUp"||N.key==="ArrowDown")&&(N.preventDefault(),(z=(_=g.current)==null?void 0:_.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||z.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(gt.Dropdown,{...v,onMouseEnter:T,onMouseLeave:A,role:"menu","aria-orientation":"vertical",ref:it(S,g),...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]})});dp.classes=qn;dp.displayName="@mantine/core/MenuDropdown";const mp=Kt(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,color:f,closeMenuOnClick:m,leftSection:p,rightSection:h,children:S,disabled:v,"data-disabled":g,ref:w,...E}=ue("MenuItem",null,n),C=Jt(),T=x.use(Xo),A=cn(),{dir:N}=al(),_=x.useRef(null),z=E,L=at(z.onClick,()=>{g||(typeof m=="boolean"?m&&C.closeDropdownImmediately():C.closeOnItemClick&&C.closeDropdownImmediately())}),H=at(z.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?va({color:f,theme:A}):null,te=at(z.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:v,"data-menu-item":!0,"data-disabled":v||g||void 0,"data-mantine-stop-propagation":!0,onClick:L,onMouseMove:H,onKeyDown:im({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})]})});mp.classes=qn;mp.displayName="@mantine/core/MenuItem";const pp=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})});pp.classes=qn;pp.displayName="@mantine/core/MenuLabel";const cS=x.createContext(null);function uS(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(cS,{value:{value:u,onChange:m=>f(m)},children:s})}uS.displayName="@mantine/core/MenuRadioGroup";function a3({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 hp=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":v,value:g,checked:w,onChange:E,checkIcon:C,ref:T,...A}=ue("MenuRadioItem",null,n),N=Jt(),_=x.use(cS),z=w??(_?_.value===g:!1);return y.jsx(rS,{role:"menuitemradio",checked:z,indicator:C??N.checkIcon??y.jsx(a3,{size:5}),onSelect:()=>{z||(E?E(g):_&&_.onChange(g))},color:f,closeMenuOnClick:m,rightSection:p,disabled:S,dataDisabled:v,className:r,style:o,styles:s,classNames:l,buttonRef:T,others:A,children:h})});hp.classes=qn;hp.displayName="@mantine/core/MenuRadioItem";const o3="[data-menu-item]:not([data-disabled])",r3="[data-menu-active]";function Ld(n){return n==null?void 0:n.closest("[data-menu-dropdown]")}function i3(n){return n?Array.from(n.querySelectorAll(o3)).filter(l=>l.closest("[data-menu-dropdown]")===n):[]}function nm(n){n&&n.querySelectorAll(r3).forEach(l=>{l.closest("[data-menu-dropdown]")===n&&l.removeAttribute("data-menu-active")})}function Us(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 s3={clearSearchOnClose:!0},gp=me(n=>{const{classNames:l,styles:r,onKeyDown:o,onChange:s,size:u,clearSearchOnClose:f,ref:m,...p}=ue("MenuSearch",s3,n),h=Jt(),S=x.useRef(null),v=it(m,S),g=x.useRef(s);g.current=s,x.useEffect(()=>h.registerSearch(),[h.registerSearch]),x.useEffect(()=>{f?h.searchExitClearRef.current=()=>{var T;(T=g.current)==null||T.call(g,{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=i3(A);if(T.key==="ArrowDown"){if(T.preventDefault(),N.length===0)return;const _=Bd(N);Us(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);Us(N[_<=0?_===-1||h.loop?N.length-1:0:_-1]??null,A)}else if(T.key==="Home")T.preventDefault(),N.length>0&&Us(N[0],A);else if(T.key==="End")T.preventDefault(),N.length>0&&Us(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:v,classNames:[{input:C.className},l],styles:[{input:C.style},r],onKeyDown:E,onChange:w,__staticSelector:"Menu"})});gp.classes=qn;gp.displayName="@mantine/core/MenuSearch";const vp=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,onMouseEnter:f,onMouseLeave:m,onPointerEnter:p,onPointerLeave:h,onKeyDown:S,children:v,ref:g,...w}=ue("MenuSubDropdown",null,n),E=x.useRef(null),C=Jt(),T=x.use(Xo),A=sS({enabled:!C.hasSearch,opened:(T==null?void 0:T.opened)??!1,getDropdown:()=>E.current}),N=at(S,z=>{A(z),!z.ctrlKey&&!z.metaKey&&!z.altKey&&z.key.length===1&&z.key!==" "&&z.stopPropagation()}),_=T==null?void 0:T.getFloatingProps({onMouseEnter:f,onMouseLeave:m,onPointerEnter:p,onPointerLeave:h});return y.jsx(gt.Dropdown,{...w,..._,role:"menu","aria-orientation":"vertical",ref:it(g,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:v})});vp.classes=qn;vp.displayName="@mantine/core/MenuSubDropdown";const yp=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":v,closeMenuOnClick:g,ref:w,...E}=ue("MenuSubItem",null,n),C=Jt(),T=x.use(Xo),A=cn(),{dir:N}=al(),_=x.useRef(null),z=E,L=f?A.variantColorResolver({color:f,theme:A,variant:"light"}):void 0,H=f?va({color:f,theme:A}):null,D=at(z.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(z.onClick,()=>{!v&&g&&C.closeDropdownImmediately()}),te=at(z.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:z.onMouseEnter,onMouseLeave:z.onMouseLeave,onPointerEnter:z.onPointerEnter,onPointerLeave:z.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||v||void 0,"data-mantine-stop-propagation":!0,onClick:U,onMouseMove:te,onKeyDown:im({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":H!=null&&H.isThemeColor&&(H==null?void 0:H.shade)===void 0?`var(--mantine-color-${H.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(R1,{...C.getStyles("chevron"),size:14})})]})});yp.classes=qn;yp.displayName="@mantine/core/MenuSubItem";function fS({children:n,refProp:l}){if(!rm(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(gt.Target,{refProp:l,popupType:"menu",children:n})}fS.displayName="@mantine/core/MenuSubTarget";const c3={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:m,...p}=ue("MenuSub",c3,n),h=Un(),[S,v]=el({value:f,finalValue:!1,onChange:m}),g=x.use(Xo),w=Jt(),{dir:E}=al(),C=Hm(E,s),T=(g==null?void 0:g.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(v);_.current=v;const z=x.useCallback(()=>_.current(!0),[]),L=x.useCallback(()=>_.current(!1),[]);x.useEffect(()=>{if(S)return T(L)},[S,T,L]);const{context:H,refs:D}=yc({placement:C,open:S,onOpenChange:ee=>{ee?z():L()}}),{getReferenceProps:U,getFloatingProps:te}=M0([_0(H,{handleClose:u?z0(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(Xo,{value:{opened:S,close:L,open:z,focusFirstItem:le,focusParentItem:oe,parentContext:g,setReference:D.setReference,setFloating:D.setFloating,getReferenceProps:U,getFloatingProps:te,registerOpenSub:N},children:y.jsx(gt,{opened:S,onChange:ee=>ee?z():L(),withinPortal:!1,withArrow:!1,id:h,position:s,...p,children:l})})}er.extend=n=>n;er.displayName="@mantine/core/MenuSub";er.Target=fS;er.Dropdown=vp;er.Item=yp;const u3={refProp:"ref"};function dS(n){const{children:l,refProp:r,...o}=ue("MenuTarget",u3,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,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(gt.Target,{refProp:r,popupType:"menu",...o,children:x.cloneElement(s,{onClick:m,onMouseEnter:p,onMouseLeave:h,"data-expanded":u.opened?!0:void 0})})}dS.displayName="@mantine/core/MenuTarget";const f3={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",f3,n),{children:r,onOpen:o,onClose:s,opened:u,defaultOpened:f,trapFocus:m,onChange:p,closeOnItemClick:h,loop:S,closeOnEscape:v,trigger:g,openDelay:w,closeDelay:E,classNames:C,styles:T,unstyled:A,variant:N,vars:_,menuItemTabIndex:z,keepMounted:L,withInitialFocusPlaceholder:H,attributes:D,onExitTransitionEnd:U,alignItemsLabels:te,checkIcon:le,...oe}=l,ee=Oe({name:"Menu",classes:qn,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())},k=()=>{V(!0),!F&&(o==null||o())},Z=()=>{F?B():k()},{openDropdown:P,closeDropdown:M}=eE({open:k,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),ve=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=>v2("[data-menu-item]","[data-menu-dropdown]",ie),{resolvedClassNames:Se,resolvedStyles:Ce}=cc({classNames:C,styles:T,props:l});return y.jsx(t3,{value:{getStyles:ee,opened:F,toggleDropdown:Z,getItemIndex:Me,openedViaClick:ce,setOpenedViaClick:O,closeOnItemClick:h,closeDropdown:g==="click"?B:M,openDropdown:g==="click"?k:P,closeDropdownImmediately:B,loop:S,trigger:g,unstyled:A,menuItemTabIndex:z,withInitialFocusPlaceholder:H,registerOpenSub:J,hasSearch:se,registerSearch:ve,searchExitClearRef:pe,alignItemsLabels:te,checkIcon:le},children:y.jsx(gt,{returnFocus:!0,...oe,opened:F,onChange:Z,defaultOpened:f,trapFocus:L?!1:m,closeOnEscape:v,__staticSelector:"Menu",classNames:Se,styles:Ce,unstyled:A,variant:N,keepMounted:L,onExitTransitionEnd:he,children:r})})});ht.displayName="@mantine/core/Menu";ht.classes=qn;ht.Item=mp;ht.Label=pp;ht.Dropdown=dp;ht.Target=dS;ht.Divider=fp;ht.Search=gp;ht.Sub=er;ht.CheckboxItem=up;ht.CheckboxGroup=oS;ht.RadioItem=hp;ht.RadioGroup=uS;ht.ContextMenu=iS;const[d3,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(qm,{...tr().getStyles("body",{classNames:l,style:o,styles:s,className:r}),...f})});Uc.classes=$l;Uc.displayName="@mantine/core/ModalBody";const kc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,...f}=ue("ModalCloseButton",null,n);return y.jsx(Vm,{...tr().getStyles("close",{classNames:l,style:o,styles:s,className:r}),...f})});kc.classes=$l;kc.displayName="@mantine/core/ModalCloseButton";const Yc=me(n=>{const{classNames:l,className:r,style:o,styles:s,vars:u,children:f,__hidden:m,...p}=ue("ModalContent",null,n),h=tr(),S=h.scrollAreaComponent||p1;return y.jsx(Gm,{...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})})});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(Xm,{...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(Im,{...tr().getStyles("overlay",{classNames:l,style:o,styles:s,className:r}),...f})});Vc.classes=$l;Vc.displayName="@mantine/core/ModalOverlay";const m3={__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"},mS=(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",m3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,yOffset:p,scrollAreaComponent:h,radius:S,fullScreen:v,centered:g,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:m,varsResolver:mS});return y.jsx(d3,{value:{yOffset:p,scrollAreaComponent:h,getStyles:A,fullScreen:v},children:y.jsx(Ym,{...A("root"),"data-full-screen":v||void 0,"data-centered":g||void 0,"data-offset-scrollbars":h===Bn.Autosize||void 0,unstyled:f,...T})})});yi.classes=$l;yi.varsResolver=mS;yi.displayName="@mantine/core/ModalRoot";const pS=x.createContext(null);function hS({children:n}){const[l,r]=x.useState([]),[o,s]=x.useState(Qt("modal"));return y.jsx(pS,{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})}hS.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(Zm,{...tr().getStyles("title",{classNames:l,style:o,styles:s,className:r}),...f})});Gc.classes=$l;Gc.displayName="@mantine/core/ModalTitle";const p3={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},Vn=me(n=>{const{title:l,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:u,children:f,radius:m,opened:p,stackId:h,zIndex:S,...v}=ue("Modal",p3,n),g=x.use(pS),w=!!l||s,E=g&&h?{closeOnEscape:g.currentId===h,trapFocus:g.currentId===h,zIndex:g.getZIndex(h)}:{},C=r===!1?!1:h&&g?g.currentId===h:p;return x.useEffect(()=>{g&&h&&(p?g.addModal(h,S||Qt("modal")):g.removeModal(h))},[p,h,S]),y.jsxs(yi,{radius:m,opened:p,zIndex:g&&h?g.getZIndex(h):S,...v,...E,children:[r&&y.jsx(Vc,{visible:C,transitionProps:g&&h?{duration:0}:void 0,...o}),y.jsxs(Yc,{radius:m,__hidden:g&&h&&p?h!==g.currentId:!1,children:[w&&y.jsxs(qc,{children:[l&&y.jsx(Gc,{children:l}),s&&y.jsx(kc,{...u})]}),y.jsx(Uc,{children:f})]})]})});Vn.classes=$l;Vn.displayName="@mantine/core/Modal";Vn.Root=yi;Vn.Overlay=Vc;Vn.Content=Yc;Vn.Body=Uc;Vn.Header=qc;Vn.Title=Gc;Vn.CloseButton=kc;Vn.Stack=hS;function h3(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 g3({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:v}=yc({placement:l,middleware:[zm({crossAxis:!0,padding:5,rootBoundary:"document"})]}),g=v.includes("right")?n:l.includes("left")?n*-1:0,w=v.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+g,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:m,opened:o,setOpened:s,boundaryRef:u,floating:h.setFloating}}var Xc={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const v3={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Qt("popover")},gS=(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",v3,n),{children:r,refProp:o,withinPortal:s,style:u,className:f,classNames:m,styles:p,unstyled:h,radius:S,color:v,label:g,offset:w,position:E,multiline:C,zIndex:T,disabled:A,defaultOpened:N,variant:_,vars:z,portalProps:L,attributes:H,ref:D,...U}=l,te=cn(),le=Oe({name:"TooltipFloating",props:l,classes:Xc,className:f,style:u,classNames:m,styles:p,unstyled:h,attributes:H,rootSelector:"tooltip",vars:z,varsResolver:gS}),{handleMouseMove:oe,x:ee,y:F,opened:V,boundaryRef:ce,floating:O,setOpened:B}=g3({offset:w,position:E,defaultOpened:N}),k=Ml(r);if(!k)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(k),D),P=k.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:{...Fb(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:g})}),x.cloneElement(k,{...P,[o]:Z,onMouseEnter:M,onMouseLeave:Y})]})});Ic.classes=Xc;Ic.varsResolver=gS;Ic.displayName="@mantine/core/TooltipFloating";const vS=x.createContext({withinGroup:!1}),y3={openDelay:0,closeDelay:0};function bp(n){const{openDelay:l,closeDelay:r,children:o}=ue("TooltipGroup",y3,n);return y.jsx(vS,{value:{withinGroup:!0},children:y.jsx(UR,{delay:{open:l,close:r},children:o})})}bp.displayName="@mantine/core/TooltipGroup";bp.extend=n=>n;function b3(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 S3(n){const l=b3(n.middlewares),r=[T0(n.offset)];return l.shift&&r.push(zm(typeof l.shift=="boolean"?{padding:8}:{padding:8,...l.shift})),l.flip&&r.push(typeof l.flip=="boolean"?Wd():Wd(l.flip)),r.push(R0({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 x3(n){var L,H,D;const[l,r]=x.useState(n.defaultOpened),o=typeof n.opened=="boolean"?n.opened:l,s=x.use(vS).withinGroup,u=Un(),f=x.useCallback(U=>{r(U),U&&T(u)},[u]),{x:m,y:p,context:h,refs:S,placement:v,middlewareData:{arrow:{x:g,y:w}={}}}=yc({strategy:n.strategy,placement:n.position,open:o,onOpenChange:f,middleware:S3(n),whileElementsMounted:Pd}),{delay:E,currentId:C,setCurrentId:T}=kR(h,{id:u}),{getReferenceProps:A,getFloatingProps:N}=M0([_0(h,{enabled:(L=n.events)==null?void 0:L.hover,delay:s?E:{open:n.openDelay,close:n.closeDelay},mouseOnly:!((H=n.events)!=null&&H.touch),handleClose:n.interactive?z0():null}),IR(h,{enabled:(D=n.events)==null?void 0:D.focus,visibleOnly:!0}),QR(h,{role:"tooltip"}),GR(h,{enabled:typeof n.opened>"u"})]),_=x.useRef(v);Wn(()=>{var U;_.current!==v&&(_.current=v,(U=n.onPositionChange)==null||U.call(n,v))},[v]);const z=o&&C&&C!==u;return{x:m,y:p,arrowX:g,arrowY:w,reference:S.setReference,floating:S.setFloating,getFloatingProps:N,getReferenceProps:A,isGroupPhase:z,opened:o,placement:v}}const w3={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}},yS=(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",w3,n),{children:r,position:o,refProp:s,label:u,openDelay:f,closeDelay:m,onPositionChange:p,opened:h,defaultOpened:S,withinPortal:v,radius:g,color:w,classNames:E,styles:C,unstyled:T,style:A,className:N,withArrow:_,arrowSize:z,arrowOffset:L,arrowRadius:H,arrowPosition:D,offset:U,transitionProps:te,multiline:le,events:oe,interactive:ee,zIndex:F,disabled:V,onClick:ce,onMouseEnter:O,onMouseLeave:B,inline:k,variant:Z,keepMounted:P,vars:M,portalProps:Y,mod:J,floatingStrategy:ae,middlewares:se,autoContrast:de,attributes:ve,target:pe,ref:he,...Me}=l,{dir:Se}=al(),Ce=x.useRef(null),ie=x3({position:Hm(Se,o),closeDelay:m,openDelay:f,onPositionChange:p,opened:h,defaultOpened:S,events:oe,interactive:ee,arrowRef:Ce,arrowOffset:L,offset:typeof U=="number"?U+(_?z/2:0):U,inline:k,strategy:ae,middlewares:se});x.useEffect(()=>{const jt=pe instanceof HTMLElement?pe:typeof pe=="string"?document.querySelector(pe):(pe==null?void 0:pe.current)||null;jt&&ie.reference(jt)},[pe,ie]);const ye=Oe({name:"Tooltip",props:l,classes:Xc,className:N,style:A,classNames:E,styles:C,unstyled:T,attributes:ve,rootSelector:"tooltip",vars:M,varsResolver:yS}),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"&&_?U0({position:ie.placement,dir:Se}):void 0;if(pe){const jt=db(te,{duration:100,transition:"fade"});return y.jsx(y.Fragment,{children:y.jsx(Ga,{...Y,withinPortal:v,children:y.jsx(Al,{...jt,keepMounted:P,mounted:!V&&!!ie.opened,duration:ie.isGroupPhase?10:jt.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(tc,{ref:Ce,arrowX:ie.arrowX,arrowY:ie.arrowY,visible:_,position:ie.placement,arrowSize:z,arrowOffset:L,arrowRadius:H,arrowPosition:D,...ye("arrow")})]})})})})}const zt=Ne.props,fn=it(ie.reference,ic(Ne),he),dn=db(te,{duration:100,transition:"fade"});return y.jsxs(y.Fragment,{children:[y.jsx(Ga,{...Y,withinPortal:v,children:y.jsx(Al,{...dn,keepMounted:P,mounted:!V&&!!ie.opened,duration:ie.isGroupPhase?10:dn.duration,children:jt=>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,...jt,...ut,zIndex:F,top:ie.y??0,left:ie.x??0}}),children:[u,y.jsx(tc,{ref:Ce,arrowX:ie.arrowX,arrowY:ie.arrowY,visible:_,position:ie.placement,arrowSize:z,arrowOffset:L,arrowRadius:H,arrowPosition:D,...ye("arrow")})]})})}),x.cloneElement(Ne,ie.getReferenceProps({onClick:ce,onMouseEnter:O,onMouseLeave:B,onMouseMove:l.onMouseMove,onPointerDown:l.onPointerDown,onPointerEnter:l.onPointerEnter,...zt,className:vt(N,zt.className),[s]:fn}))]})});Ll.classes=Xc;Ll.varsResolver=yS;Ll.displayName="@mantine/core/Tooltip";Ll.Floating=Ic;Ll.Group=bp;var bS={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const C3={withItemsBorders:!0},SS=(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":Tt(s)}}),Zc=Pb(n=>{var he,Me;const l=ue("SegmentedControl",C3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,data:p,value:h,defaultValue:S,onChange:v,size:g,name:w,disabled:E,readOnly:C,fullWidth:T,orientation:A,radius:N,color:_,transitionDuration:z,transitionTimingFunction:L,variant:H,autoContrast:D,withItemsBorders:U,mod:te,attributes:le,ref:oe,...ee}=l,F=Oe({name:"SegmentedControl",props:l,classes:bS,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:le,vars:m,varsResolver:SS}),V=cn(),ce=p.map(Se=>q2(Se)?{label:`${Se}`,value:Se}:Se),O=$2(),[B,k]=x.useState(kd()),[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:v}),de=Un(w),ve=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?gm({color:_,theme:V,autoContrast:D}):void 0},key:`${Se.value}-label`},y.jsx("span",{...F("innerLabel"),children:Se.label})))),pe=it(oe,P);return O2(()=>{k(kd())},[p.length]),p.length===0?null:y.jsxs(fe,{...F("root"),variant:H,size:g,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),ve]})});Zc.classes=bS;Zc.varsResolver=SS;Zc.displayName="@mantine/core/SegmentedControl";const T3={size:"sm",withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},nc=Pb(n=>{const l=ue(["Input","InputWrapper","Select"],T3,n),{classNames:r,styles:o,unstyled:s,vars:u,dropdownOpened:f,defaultDropdownOpened:m,onDropdownClose:p,onDropdownOpen:h,onFocus:S,onBlur:v,onClick:g,onChange:w,data:E,value:C,defaultValue:T,selectFirstOptionOnChange:A,selectFirstOptionOnDropdownOpen:N,onOptionSubmit:_,comboboxProps:z,readOnly:L,disabled:H,filter:D,limit:U,withScrollArea:te,maxDropdownHeight:le,floatingHeight:oe,size:ee,searchable:F,rightSection:V,checkIconPosition:ce,withCheckIcon:O,withAlignedLabels:B,nothingFoundMessage:k,name:Z,form:P,searchValue:M,defaultSearchValue:Y,onSearchChange:J,allowDeselect:ae,error:se,rightSectionPointerEvents:de,id:ve,clearable:pe,clearSectionMode:he,clearButtonProps:Me,hiddenInputProps:Se,renderOption:Ce,onClear:ie,autoComplete:ye,scrollAreaProps:Ne,__defaultRightSection:Te,__clearSection:Ve,__clearable:ut,chevronColor:zt,autoSelectOnBlur:fn,openOnFocus:dn,attributes:jt,...Pt}=l,ze=x.useMemo(()=>NA(E),[E]),Bl=x.useRef({}),yt=x.useMemo(()=>j1(ze),[ze]),Sa=Un(ve),[Ye,Hl,ol]=el({value:C,defaultValue:T,finalValue:null,onChange:w}),Dt=Ye!=null?`${Ye}`in yt?yt[`${Ye}`]:Bl.current[`${Ye}`]:void 0,_n=j2(Dt),[Wt,St,en]=el({value:M,defaultValue:Y,finalValue:Dt?Dt.label:"",onChange:J}),Ee=k1({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:bi,resolvedStyles:Si}=cc({props:l,styles:o,classNames:r});x.useEffect(()=>{A&&Ee.selectFirstOption()},[A,Wt]),x.useEffect(()=>{C===null&&Gn(""),C!=null&&Dt&&((_n==null?void 0:_n.value)!==Dt.value||(_n==null?void 0:_n.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 Qa=y.jsx(Ie.ClearButton,{...Me,onClear:()=>{Hl(null,null),Gn(""),ie==null||ie()}}),Ka=pe&&Ye!=null&&!H&&!L;return y.jsxs(y.Fragment,{children:[y.jsxs(Ie,{store:Ee,__staticSelector:"Select",classNames:bi,styles:Si,unstyled:s,readOnly:L,size:ee,attributes:jt,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),!ol&&Gn(Ul!=null&&(Pe==null?void 0:Pe.label)||""),Ee.closeDropdown()},...z,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:zt}),__clearSection:Qa,__clearable:Ka,__clearSectionMode:he,rightSection:V,rightSectionPointerEvents:de||"none",...Pt,size:ee,__staticSelector:"Select",disabled:H,readOnly:L||!F,value:Wt,onChange:nt=>{if(XA(nt)){if(!L){const Pe=h3(yt,nt.currentTarget.value);Pe&&`${Pe.value}`!=`${Ye}`&&(Hl(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||""),v==null||v(nt)},onClick:nt=>{F?Ee.openDropdown():Ee.toggleDropdown(),g==null||g(nt)},classNames:bi,styles:Si,unstyled:s,pointer:!F,error:se,attributes:jt})}),y.jsx(VA,{data:ze,hidden:L||H,filter:D,search:Wt,limit:U,hiddenWhenEmpty:!k,withScrollArea:te,maxDropdownHeight:le,filterOptions:!!F&&(Dt==null?void 0:Dt.label)!==Wt,value:Ye,checkIconPosition:ce,withCheckIcon:O,withAlignedLabels:B,nothingFoundMessage:k,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:H,...Se})]})});nc.classes={...Rc.classes,...Ie.classes};nc.displayName="@mantine/core/Select";var xS={root:"m_6d731127"};const R3={gap:"md",align:"stretch",justify:"flex-start"},wS=(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",R3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,vars:m,align:p,justify:h,gap:S,variant:v,attributes:g,...w}=l;return y.jsx(fe,{...Oe({name:"Stack",props:l,classes:xS,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:g,vars:m,varsResolver:wS})("root"),variant:v,...w})});Tn.classes=xS;Tn.varsResolver=wS;Tn.displayName="@mantine/core/Stack";const E3=["h1","h2","h3","h4","h5","h6"],A3=["xs","sm","md","lg","xl"];function _3(n,l){const r=l!==void 0?l:`h${n}`;return E3.includes(r)?{fontSize:`var(--mantine-${r}-font-size)`,fontWeight:`var(--mantine-${r}-font-weight)`,lineHeight:`var(--mantine-${r}-line-height)`}:A3.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 CS={root:"m_8a5d1357"};const N3={order:1},TS=(n,{order:l,size:r,lineClamp:o,textWrap:s})=>{const u=_3(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}}},zn=me(n=>{const l=ue("Title",N3,n),{classNames:r,className:o,style:s,styles:u,unstyled:f,order:m,vars:p,size:h,variant:S,lineClamp:v,textWrap:g,mod:w,attributes:E,...C}=l,T=Oe({name:"Title",props:l,classes:CS,className:o,style:s,classNames:r,styles:u,unstyled:f,attributes:E,vars:p,varsResolver:TS});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 v=="number"},w],size:h,...C}):null});zn.classes=CS;zn.varsResolver=TS;zn.displayName="@mantine/core/Title";/**
94
- * @license @tabler/icons-react v3.35.0 - MIT
95
- *
96
- * This source code is licensed under the MIT license.
97
- * See the LICENSE file in the root directory of this source tree.
98
- */var M3={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"}};/**
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(Sb),!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=yb(D,k);if(!oe)return!0;if(oe?L=D:(L=D==="v"?"h":"v",oe=yb(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?bb(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(Sb).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,bb(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 Gm({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":fm(A),"--mb-padding":ii(N)},children:C})},F)})})}Gm.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 Xm({className:n,...l}){const r=uA(),o=zl();return y.jsx(fe,{id:r,className:gt({[Xo.body]:!o.unstyled},n),...l})}Xm.displayName="@mantine/core/ModalBaseBody";function Im({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})}Im.displayName="@mantine/core/ModalBaseCloseButton";function Zm({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})})})})}Zm.displayName="@mantine/core/ModalBaseContent";function Qm({className:n,...l}){const r=zl();return y.jsx(fe,{component:"header",className:gt({[Xo.header]:!r.unstyled},n),...l})}Qm.displayName="@mantine/core/ModalBaseHeader";const fA={duration:200,timingFunction:"ease",transition:"fade"};function dA(n){const l=zl();return{...fA,...l.transitionProps,...n}}function Km({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})})}Km.displayName="@mantine/core/ModalBaseOverlay";function mA(){const n=zl();return x.useEffect(()=>(n.setTitleMounted(!0),()=>n.setTitleMounted(!1)),[]),n.getTitleId()}function Fm({className:n,...l}){const r=mA(),o=zl();return y.jsx(fe,{component:"h2",className:gt({[Xo.title]:!o.unstyled},n),id:r,...l})}Fm.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 Jm=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})});Jm.classes=Ft;Jm.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}=Rm(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=Jm;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}=Rm(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=hm(),_=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}}),ze=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})});ze.classes=z1;ze.varsResolver=D1;ze.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(ze,{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 Pm=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)`}})});Pm.classes=ba;Pm.displayName="@mantine/core/AppShellAside";const Wm=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()}})});Wm.classes=ba;Wm.displayName="@mantine/core/AppShellFooter";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("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()}})});ep.classes=ba;ep.displayName="@mantine/core/AppShellHeader";const tp=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})});tp.classes=ba;tp.displayName="@mantine/core/AppShellMain";const np=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)`}})});np.classes=ba;np.displayName="@mantine/core/AppShellNavbar";const lp=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})});lp.classes=ba;lp.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=dm(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=dm(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=Dy(Mt(d),u.breakpoints).map(v=>({query:`(min-width: ${Ks(v.px)})`,styles:d[v.value]})),g=Dy(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=np;Bn.Header=ep;Bn.Main=tp;Bn.Aside=Pm;Bn.Footer=Wm;Bn.Section=lp;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 ap=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})})});ap.classes=kt;ap.displayName="@mantine/core/ComboboxDropdown";const HA={refProp:"ref"},Y1=me(n=>{const{children:l,refProp:r,ref:o}=ue("ComboboxDropdownTarget",HA,n);if(un(),!cm(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 op=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})});op.classes=kt;op.displayName="@mantine/core/ComboboxEmpty";function rp({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,{...rp({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 ip=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()}})});ip.classes=kt;ip.displayName="@mantine/core/ComboboxFooter";const sp=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]})});sp.classes=kt;sp.displayName="@mantine/core/ComboboxGroup";const cp=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()}})});cp.classes=kt;cp.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 up=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(_)}})});up.classes=kt;up.displayName="@mantine/core/ComboboxOption";const fp=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)}})});fp.classes=kt;fp.displayName="@mantine/core/ComboboxOptions";const qA={withAriaAttributes:!0,withKeyboardNavigation:!0},dp=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=rp({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"})});dp.classes=kt;dp.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,{...rp({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=ap;Ie.Options=fp;Ie.Option=up;Ie.Search=dp;Ie.Empty=op;Ie.Chevron=_c;Ie.Footer=ip;Ie.Header=cp;Ie.EventsTarget=q1;Ie.DropdownTarget=Y1;Ie.Group=sp;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 xb={orientation:"horizontal"},W1=(n,{borderWidth:l})=>({group:{"--button-border-width":K(l)}}),Mc=me(n=>{const l=ue("ButtonGroup",xb,n),{className:r,style:o,classNames:s,styles:u,unstyled:f,orientation:d,vars:p,borderWidth:h,mod:S,attributes:g,...v}=ue("ButtonGroup",xb,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(Xm,{...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(Im,{...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(Zm,{...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(Qm,{...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(Km,{...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(Gm,{...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(Fm,{...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:um({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 mp=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})});mp.classes=Yn;mp.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 pp=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})});pp.classes=Yn;pp.displayName="@mantine/core/MenuDivider";const u3=500;function wb(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(wb(d[C]).startsWith(v)){g=d[C];break}}}else for(let v=0;v<d.length;v+=1)if(wb(d[v]).startsWith(p.buffer)){g=d[v];break}g&&(s.preventDefault(),g.focus())}}const hp=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]})});hp.classes=Yn;hp.displayName="@mantine/core/MenuDropdown";const vp=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:um({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})]})});vp.classes=Yn;vp.displayName="@mantine/core/MenuItem";const gp=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})});gp.classes=Yn;gp.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 yp=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})});yp.classes=Yn;yp.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},bp=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"})});bp.classes=Yn;bp.displayName="@mantine/core/MenuSearch";const Sp=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})});Sp.classes=Yn;Sp.displayName="@mantine/core/MenuSubDropdown";const xp=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:um({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})})]})});xp.classes=Yn;xp.displayName="@mantine/core/MenuSubItem";function vS({children:n,refProp:l}){if(!cm(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=Ym(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=Sp;er.Item=xp;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=vp;ht.Label=gp;ht.Dropdown=hp;ht.Target=gS;ht.Divider=pp;ht.Search=bp;ht.Sub=er;ht.CheckboxItem=mp;ht.CheckboxGroup=uS;ht.RadioItem=yp;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(Xm,{...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(Im,{...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(Zm,{...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(Qm,{...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(Km,{...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(Gm,{...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(Fm,{...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:[$m({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 wp(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})})}wp.displayName="@mantine/core/TooltipGroup";wp.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($m(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:Ym(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=hb(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=hb(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=wp;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?bm({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";/**
99
94
  * @license @tabler/icons-react v3.35.0 - MIT
100
95
  *
101
96
  * This source code is licensed under the MIT license.
102
97
  * See the LICENSE file in the root directory of this source tree.
103
- */const An=(n,l,r,o)=>{const s=x.forwardRef(({color:u="currentColor",size:f=24,stroke:m=2,title:p,className:h,children:S,...v},g)=>x.createElement("svg",{ref:g,...M3[n],width:f,height:f,className:["tabler-icon",`tabler-icon-${l}`,h].join(" "),...n==="filled"?{fill:u}:{strokeWidth:m,stroke:u},...v},[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};/**
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"}};/**
104
99
  * @license @tabler/icons-react v3.35.0 - MIT
105
100
  *
106
101
  * This source code is licensed under the MIT license.
107
102
  * See the LICENSE file in the root directory of this source tree.
108
- */const O3=[["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"}]],z3=An("outline","alert-triangle","AlertTriangle",O3);/**
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};/**
109
104
  * @license @tabler/icons-react v3.35.0 - MIT
110
105
  *
111
106
  * This source code is licensed under the MIT license.
112
107
  * See the LICENSE file in the root directory of this source tree.
113
- */const j3=[["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"}]],D3=An("outline","bell","Bell",j3);/**
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);/**
114
109
  * @license @tabler/icons-react v3.35.0 - MIT
115
110
  *
116
111
  * This source code is licensed under the MIT license.
117
112
  * See the LICENSE file in the root directory of this source tree.
118
- */const $3=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],L3=An("outline","check","Check",$3);/**
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);/**
119
114
  * @license @tabler/icons-react v3.35.0 - MIT
120
115
  *
121
116
  * This source code is licensed under the MIT license.
122
117
  * See the LICENSE file in the root directory of this source tree.
123
- */const B3=[["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"}]],H3=An("outline","clipboard","Clipboard",B3);/**
118
+ */const V3=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],G3=Vn("outline","check","Check",V3);/**
124
119
  * @license @tabler/icons-react v3.35.0 - MIT
125
120
  *
126
121
  * This source code is licensed under the MIT license.
127
122
  * See the LICENSE file in the root directory of this source tree.
128
- */const U3=[["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"}]],k3=An("outline","clock","Clock",U3);/**
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);/**
129
124
  * @license @tabler/icons-react v3.35.0 - MIT
130
125
  *
131
126
  * This source code is licensed under the MIT license.
132
127
  * See the LICENSE file in the root directory of this source tree.
133
- */const Y3=[["path",{d:"M9 14c0 1.657 2.686 3 6 3s6 -1.343 6 -3s-2.686 -3 -6 -3s-6 1.343 -6 3z",key:"svg-0"}],["path",{d:"M9 14v4c0 1.656 2.686 3 6 3s6 -1.344 6 -3v-4",key:"svg-1"}],["path",{d:"M3 6c0 1.072 1.144 2.062 3 2.598s4.144 .536 6 0c1.856 -.536 3 -1.526 3 -2.598c0 -1.072 -1.144 -2.062 -3 -2.598s-4.144 -.536 -6 0c-1.856 .536 -3 1.526 -3 2.598z",key:"svg-2"}],["path",{d:"M3 6v10c0 .888 .772 1.45 2 2",key:"svg-3"}],["path",{d:"M3 11c0 .888 .772 1.45 2 2",key:"svg-4"}]],q3=An("outline","coins","Coins",Y3);/**
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);/**
134
129
  * @license @tabler/icons-react v3.35.0 - MIT
135
130
  *
136
131
  * This source code is licensed under the MIT license.
137
132
  * See the LICENSE file in the root directory of this source tree.
138
- */const V3=[["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"}]],G3=An("outline","dots","Dots",V3);/**
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);/**
139
134
  * @license @tabler/icons-react v3.35.0 - MIT
140
135
  *
141
136
  * This source code is licensed under the MIT license.
142
137
  * See the LICENSE file in the root directory of this source tree.
143
- */const X3=[["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"}]],I3=An("outline","external-link","ExternalLink",X3);/**
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);/**
144
139
  * @license @tabler/icons-react v3.35.0 - MIT
145
140
  *
146
141
  * This source code is licensed under the MIT license.
147
142
  * See the LICENSE file in the root directory of this source tree.
148
- */const Z3=[["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"}]],Q3=An("outline","moon","Moon",Z3);/**
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);/**
149
144
  * @license @tabler/icons-react v3.35.0 - MIT
150
145
  *
151
146
  * This source code is licensed under the MIT license.
152
147
  * See the LICENSE file in the root directory of this source tree.
153
- */const K3=[["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"}]],F3=An("outline","sun","Sun",K3);/**
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_);/**
154
149
  * @license @tabler/icons-react v3.35.0 - MIT
155
150
  *
156
151
  * This source code is licensed under the MIT license.
157
152
  * See the LICENSE file in the root directory of this source tree.
158
- */const J3=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],RS=An("outline","x","X",J3);/**
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_);/**
159
154
  * @license @tabler/icons-react v3.35.0 - MIT
160
155
  *
161
156
  * This source code is licensed under the MIT license.
162
157
  * See the LICENSE file in the root directory of this source tree.
163
- */const P3=[["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"}]],W3=An("filled","circle-filled","CircleFilled",P3),e_=50,t_="Turn interrupted before a terminal report.",ES=[{value:"",label:"All"},{value:"working",label:"Working"},{value:"needs input",label:"Needs input"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}],n_=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"]]),l_=new Map([["24h",1440*60*1e3],["7d",10080*60*1e3],["all",null]]);function a_(n){return Date.parse(n.meaningfulUpdatedAt??n.updatedAt??n.createdAt)}function AS(n){return n.status===null?"unresolved":n.status.replaceAll("_"," ")}function o_(n){return{status:n.status,turnRef:n.turnRef,threadId:n.threadId,updatedAt:n.updatedAt}}function r_(n,l){return!!l&&n.status===l.status&&n.turnRef===l.turnRef&&n.threadId===l.threadId&&n.updatedAt===l.updatedAt}function Sb({requestTask:n,expected:l,responseTask:r,selectedTask:o}){const s=(o==null?void 0:o.id)===n.id?o:n;return r_(s,l)?r??s:s}function i_(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 s_(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 c_(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:t_,updatedAt:n.latestTurn.startedAt}}),r.push(n.latestTurn)),r}function Qc(n){return n_.get(n.event)??"Task updated"}function u_(n,l,r=Date.now()){const o=l_.get(l);if(o===null)return!0;if(o===void 0)return!1;const s=a_(n);return Number.isFinite(s)&&s>=r-o}function _S(n,{project:l="",status:r="",date:o="all",now:s=Date.now()}={}){return n.filter(u=>(!l||u.project.name===l)&&(!r||AS(u)===r)&&u_(u,o,s))}function f_(n,{project:l="",date:r="all",now:o=Date.now()}={}){const s=_S(n,{project:l,date:r,now:o});return Object.fromEntries(ES.map(({value:u})=>[u,u?s.filter(f=>AS(f)===u).length:s.length]))}function d_(n){return JSON.stringify([n.id,n.turnRef??n.turnId??null,n.turnId??null,n.status??"unresolved"])}function m_(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 p_(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 NS(n,l){return JSON.stringify(l==="created"?[n.id,null,l,n.createdAt??null]:[n.id,n.turnRef??n.turnId??null,l])}function h_(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 g_(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 Ho(n,l=p_(n)){const r=l==="created";return Object.freeze({id:NS(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:h_(n,l),summary:g_(n,l)})}function ks(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:NS({...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 v_(n,l){return`${l?"Open current task details":"Show task availability"} for ${n.title}: ${Qc(n)}`}function y_(n){return`Dismiss ${Qc(n)} notification for ${n.title}`}function xb(n,l){return n.filter(({id:r})=>r!==l)}function b_({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,d_(p));const f=new Set(r);if(!n){for(const p of s){f.add(Ho(p,"created").id);const h=ks(p);h&&f.add(h.id),f.add(Ho(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)&&!m_(o.get(p.id),u.get(p.id))){h.push(Ho(p));const v=ks(p);v&&h.push(v)}}else{const v=ks(p);(p.turnRef||p.turnId||p.status!=="working"||v)&&(h.push(Ho(p)),v&&h.push(v)),h.push(Ho(p,"created"))}for(const v of h)f.has(v.id)||m.push(v),f.add(v.id);const S=ks(p);S&&f.add(S.id),f.add(Ho(p).id)}return{additions:m,notifications:[...m,...l].slice(0,e_),seenIds:f,signatures:u}}function S_({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 x_(){return(await Kc("/api/health")).taskchefVersion}async function w_(n){return(await Kc(`/api/tasks/${encodeURIComponent(n)}`)).task}async function C_(n){return(await Kc(`/api/tasks/${encodeURIComponent(n)}/open-codex`,{method:"POST"})).message??null}async function T_(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 R_(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 wb(n){return{...n,notifications:[]}}function Cb(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 Ys(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])}function Sp(n,l){return new Intl.NumberFormat(l,{maximumFractionDigits:2,notation:"compact"}).format(n)}function lc(n,l){return new Intl.NumberFormat(l,{maximumFractionDigits:2}).format(n)}function Io(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 MS(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?Tb(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?Tb(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 Tb(n,l){const r=Sp(n.totalTokens),o=n.estimatedCostUsd==null?"Estimated cost unavailable":`Estimated cost ${Io(n.estimatedCostUsd)}`;return{kind:"ready",knownSoFar:l,label:`${r} tokens · ${o}${l?" · known so far":""}`,usage:n}}function E_(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=lc(o.totalTokens),m=o.estimatedCostUsd==null?"Estimated cost unavailable":`Estimated cost ${Io(o.estimatedCostUsd)}`;return{kind:"ready",label:`${f} tokens · ${m}`}}return{kind:"unavailable",label:(o==null?void 0:o.reason)??"Turn usage unavailable"}}function A_(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 __(n){var h;const l=MS(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=Sp(l.usage.totalTokens),o=lc(l.usage.totalTokens),s=l.usage.estimatedCostUsd==null?"cost unavailable":`est. ${Io(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 ${Io(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 N_(n){return n==="completed"?"teal":n==="needs_input"?"yellow":n==="failed"?"red":n==="working"?"blue":"gray"}function M_(n){return n===null?"Unresolved":n.replaceAll("_"," ")}const O_=30,Yo=6e4,oi=60*Yo,Jr=24*oi;function OS(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 z_(n,{locale:l,timeZone:r}={}){const o=OS(n);return o?new Intl.DateTimeFormat(l,{dateStyle:"medium",timeStyle:"short",timeZone:r}).format(o.date):"—"}function j_(n,l){const r=Math.floor(n/oi),o=Math.floor(n%oi/Yo),s=r===1?"1 hour":`${r} hours`,u=r<6&&o>0?` ${o} minutes`:"";return l==="future"?`in ${s}${u}`:`${s}${u} ago`}function xp(n,{now:l=Date.now(),locale:r,timeZone:o}={}){const s=OS(n);if(!s)return"—";const u=l-s.milliseconds,f=u<0,m=Math.abs(u);if(m<Yo)return"just now";if(m<2*Yo)return f?"in 1 minute":"1 minute ago";if(m<oi){const p=f?Math.ceil(m/Yo):Math.floor(m/Yo);return f?`in ${p} minutes`:`${p} minutes ago`}if(m<2*oi)return f?"in 1 hour":"1 hour ago";if(m<Jr)return j_(m,f?"future":"past");if(m<2*Jr)return f?"in 1 day":"1 day ago";if(m<O_*Jr){const p=f?Math.ceil(m/Jr):Math.floor(m/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:N_(n),size:"sm",variant:"light",children:M_(n)})}function Rb({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(Rn,{"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(D3,{"aria-hidden":!0,size:16}),y.jsx(Be,{fw:700,size:"sm",children:"Updates"})]}),y.jsx(_l,{onClick:r,size:"compact-xs",variant:"subtle",children:"Clear all"})]}),y.jsx(Bn.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($_(p.id))}`,v=`${S}-summary`,g=`${S}-metadata`;return y.jsx(Rn,{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?v:null,g].filter(Boolean).join(" "),"aria-label":v_(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(Be,{fw:700,size:"sm",children:Qc(p)}),y.jsx(Fc,{status:p.status})]}),y.jsx(Be,{lineClamp:1,size:"sm",children:p.title}),p.summary&&y.jsx(Be,{className:"taskchef-preserve-lines",id:v,lineClamp:3,size:"xs",children:p.summary}),y.jsxs(Be,{c:"dimmed",id:g,size:"xs",children:[xp(p.timestamp),h?"":" · Task no longer available"]})]}),y.jsx(Ll,{label:"Dismiss notification",children:y.jsx(ya,{"aria-label":y_(p),color:"gray",onClick:()=>o(p),size:"compact-sm",variant:"subtle",children:y.jsx(RS,{"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(D_).join(" ")})]});return f?y.jsx(Um,{children:m}):m}function D_(n){return[Qc(n),n.title,n.summary,n.turnRef?`Turn ref ${n.turnRef}`:null,xp(n.timestamp)].filter(Boolean).map(l=>String(l).replace(/[.\s]+$/,"")).join(". ")+"."}function $_(n){let l=0;for(const r of n)l=(l<<5)-l+r.charCodeAt(0)|0;return l}const L_=/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})\/[A-Za-z0-9._-]+$/,B_=/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,H_=/https?:\/\/[^\s<>"'`]+/gi;function Jc(n){return!(n!=null&&n.owner)||!(n!=null&&n.repository)?null:`${n.owner.toLowerCase()}/${n.repository.toLowerCase()}`}function U_(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 k_(n,l){return l.has(n.repository.toLowerCase())?`${n.owner}/${n.repository}`:n.repository}function zS(n,{related:l=!1}={}){const r=U_(n);let o=null;return n.map(s=>{if(s.provider!=="github"&&!s.owner)return s.label??s.text;const u=Jc(s),f=k_(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 Y_(n,l){const r=String(n.number??""),o=String(l.number??"");return r.length-o.length||r.localeCompare(o)}function q_(n){const l=new Map,r=new Set,o=new Set,s=new Set;for(const u of n??[]){const f=Jc(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(Y_))}function jS(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 DS(n,l){return`${n.toLowerCase()}/${l.toLowerCase()}`}function $S(n){return n!=="."&&n!==".."}function LS(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]}`),!L_.test(l))return null;const[o,s]=l.split("/");return $S(s)?DS(o,s):null}function V_(n){var s;const l=String(n??""),r=BS(l),o=[];for(const u of l.matchAll(B_)){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"))||!HS(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,v=u[2]??u[6]??u[10]??null;u[9]&&(v=v.replace(/\.git$/i,""));const g=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&&v);if(C){if(!$S(v))continue;[S,v]=DS(S,v).split("/")}o.push({end:(p==null?void 0:p.end)??f+u[0].length,explicit:C,number:g,owner:S,repository:v,start:f,text:(p==null?void 0:p.text)??u[0],type:E,urlSuffix:(p==null?void 0:p.suffix)??""})}return o}function G_(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 X_(n){const l=new Set((n??[]).map(LS).filter(Boolean));return l.size===1?[...l][0]:null}function I_(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 Z_(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 BS(n){const l=[];for(const r of String(n??"").matchAll(H_)){const o=Z_(r[0]);o&&l.push({end:r.index+o.length,start:r.index,text:o})}return l}function Q_(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 HS(n){try{const l=new URL(n);return!l.hostname||l.username||l.password||n.includes("\\")||Q_(n)?null:l.href}catch{return null}}function K_(n){const l=[];for(const r of BS(n)){const o=HS(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 F_(n,{projectRepositories:l=[],taskRepository:r=null}={}){const o=String(n??""),s=V_(o),f=G_(s)??LS(r)??X_(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=I_(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 J_(n,l={}){const r=String(n??""),o=F_(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=K_(r).filter(h=>!s.some(({end:S,start:v})=>h.start<S&&h.end>v));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 US({task:n}){const l=n.relatedGitHubLinks??[];if(l.length===0&&!n.relatedGitHubLinksTruncated)return null;const r=q_(l),o=zS(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(Ac,{"aria-label":`${jS(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(Be,{c:"dimmed",size:"xs",children:"More links in task history"})]})}function ac({task:n,text:l}){const r=J_(l,{projectRepositories:n.project.githubRepos,taskRepository:n.relatedGitHubRepository}),o=r.filter(f=>f.kind==="link"),s=zS(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(Ac,{"aria-label":`${jS(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 kS({loading:n,onClick:l,taskTitle:r}){return y.jsx(_l,{"aria-label":`Open chat for ${r}`,leftSection:y.jsx(I3,{"aria-hidden":!0,size:15}),loading:n,onClick:l,size:"compact-sm",variant:"default",children:"Open chat"})}const YS=x.createContext(null);function P_({children:n,now:l}){return y.jsx(YS,{value:l,children:n})}function oc({label:n,value:l}){const[r,o]=x.useState(!1);x.useContext(YS);const s=r?z_(l):xp(l);return y.jsx(Ll,{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(k3,{"aria-hidden":!0,size:12}),y.jsx("span",{className:"taskchef-time-label",children:s})]})})}function ri({children:n,className:l="",...r}){return y.jsx("span",{className:`taskchef-shimmer ${l}`.trim(),"data-animation":"text-shimmer",...r,children:n})}function W_({task:n}){const l=__(n),r=l.kind==="pending"||l.kind==="calculating"?y.jsx(ri,{children:l.label}):l.label;return y.jsx(Be,{"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 eN({onOpenCodex:n,onOpenDetail:l,task:r}){const o=i_(r);return y.jsx(Rn,{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(zn,{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(W_,{task:r})]})]}),y.jsx(Be,{c:"dimmed",mt:2,size:"xs",children:r.project.name})]}),y.jsxs(fe,{className:"taskchef-summary-grid",children:[y.jsx(Be,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Request"}),y.jsx(Be,{className:"taskchef-preserve-lines",lineClamp:3,size:"sm",children:y.jsx(ac,{task:r,text:o.requestSummary})}),y.jsx(Be,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Result"}),y.jsx(Be,{className:"taskchef-preserve-lines",lineClamp:3,size:"sm",children:o.resultStatus==="working"?y.jsx(ri,{children:o.resultSummary}):y.jsx(ac,{task:r,text:o.resultSummary})})]}),y.jsx(US,{task:r}),y.jsxs(Ct,{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(kS,{onClick:()=>n(r),taskTitle:r.title})]})]})})}function tN({highlightTurnRef:n,task:l}){const r=c_(l,[]);return r!=null&&r.length?y.jsx(Tn,{gap:"sm",children:[...r].reverse().map((o,s)=>{const u=s_(o),f=o.turnRef??o.turnId??`turn-${s}`,m=f===n,p=E_(l,o);return y.jsx(Rn,{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(Fc,{status:u.status}),y.jsx(oc,{label:"Turn update time",value:u.updatedAt})]}),u.sourceLabel&&y.jsx(Be,{c:"dimmed",size:"xs",children:u.sourceLabel}),y.jsxs(fe,{children:[y.jsx(Be,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Request"}),y.jsx(Be,{className:"taskchef-preserve-lines",size:"sm",children:y.jsx(ac,{task:l,text:o.requestSummary??"Request not recorded."})})]}),y.jsxs(fe,{children:[y.jsx(Be,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Result"}),y.jsx(Be,{className:"taskchef-preserve-lines",size:"sm",children:u.status==="working"?y.jsx(ri,{children:u.summary}):y.jsx(ac,{task:l,text:u.summary})})]}),y.jsx(Be,{c:"dimmed",className:p.kind==="calculating"||p.kind==="pending"?"taskchef-turn-usage":void 0,size:"xs",children:p.kind==="calculating"||p.kind==="pending"?y.jsx(ri,{children:p.label}):p.label}),y.jsxs(Be,{c:"dimmed",className:"taskchef-mono",size:"xs",children:["Turn ref: ",f??"—"]})]})},f)})}):y.jsx(Be,{c:"dimmed",size:"sm",children:"No turn history has been recorded."})}function nN({task:n}){const l=MS(n);if(l.kind==="pending"||l.kind==="calculating")return y.jsx(Rn,{"aria-live":"polite",className:"taskchef-subtle-panel",p:"sm",radius:"md",children:y.jsxs(Ct,{gap:"xs",children:[y.jsx(q3,{"aria-hidden":!0,size:16}),y.jsx(Be,{size:"sm",children:y.jsx(ri,{children:l.label})})]})});if(l.kind==="unavailable")return y.jsx(Be,{"aria-live":"polite",c:"dimmed",size:"sm",children:l.label});const r=l.usage.cachedInputTokens??0,o=l.usage.inputTokens??0,s=o+r>0?`${Math.round(r/(o+r)*100)}%`:"—",u=[{accessibleValue:`${lc(l.usage.totalTokens)} tokens`,label:l.knownSoFar?"Tokens · known so far":"Tokens",title:`${lc(l.usage.totalTokens)} tokens`,value:Sp(l.usage.totalTokens)},{accessibleValue:l.usage.estimatedCostUsd==null?"Estimated cost unavailable":`Estimated cost ${Io(l.usage.estimatedCostUsd)}`,label:"Estimated cost",title:l.usage.estimatedCostUsd==null?void 0:`Unrounded estimate: $${l.usage.estimatedCostUsd}`,value:Io(l.usage.estimatedCostUsd)},{label:"Model",value:Object.keys(l.usage.models??{}).join(", ")||"—"},{label:"Cache ratio",value:s}];return y.jsx(fe,{"aria-live":"polite",className:"taskchef-metrics",children:u.map(({accessibleValue:f,label:m,title:p,value:h})=>y.jsxs(Rn,{className:"taskchef-metric",p:"sm",radius:"md",withBorder:!0,children:[y.jsx(Be,{c:"dimmed",size:"xs",children:m}),y.jsx(Be,{"aria-label":f,className:"taskchef-metric-value",fw:650,size:"sm",title:p,children:h})]},m))})}function lN({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 v=um("(max-width: 48em)"),[g,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(()=>{g&&(!p||!Eb(p).includes(g))&&w(null)},[g,p==null?void 0:p.status]),!p)return null;const E=Eb(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(Be,{c:"teal",fw:700,size:"xs",tt:"uppercase",children:p.project.name}),y.jsx(zn,{id:"task-detail-title",order:2,size:"h3",tabIndex:-1,children:p.title})]}),y.jsx(Fc,{status:p.status})]}),y.jsxs(Ct,{gap:"xs",mt:"md",children:[y.jsx(kS,{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(G3,{"aria-hidden":!0,size:17})})})}),y.jsxs(ht.Dropdown,{children:[y.jsx(ht.Item,{leftSection:y.jsx(H3,{size:14}),onClick:s,children:"Copy Task ID"}),E.includes("completed")&&y.jsx(ht.Item,{leftSection:y.jsx(L3,{size:14}),onClick:()=>w("completed"),children:"Mark completed"}),E.includes("failed")&&y.jsx(ht.Item,{color:"red",leftSection:y.jsx(RS,{size:14}),onClick:()=>w("failed"),children:"Mark failed"})]})]})]}),y.jsx(fe,{mt:"sm",children:y.jsx(US,{task:p})})]}),g&&y.jsx(aN,{busy:n,onCancel:()=>w(null),onTransition:f,status:g},g),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(zn,{id:"usage-heading",mb:"xs",order:3,size:"h5",children:"Usage"}),y.jsx(nN,{task:p})]}),y.jsx(zc,{}),y.jsxs("section",{"aria-labelledby":"activity-heading",children:[y.jsx(zn,{id:"activity-heading",mb:"sm",order:3,size:"h5",children:"Activity timeline"}),y.jsx(tN,{highlightTurnRef:r,task:p})]}),y.jsxs("section",{"aria-labelledby":"instruction-heading",children:[y.jsx(zn,{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(zn,{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 v?y.jsx(Yn,{closeOnClickOutside:!n,closeOnEscape:!n,onClose:o,opened:m,overlayProps:{backgroundOpacity:.55,blur:2},position:"bottom",scrollAreaComponent:Bn.Autosize,size:"92%",title:y.jsx("span",{className:"taskchef-visually-hidden",children:"Task details"}),trapFocus:!0,zIndex:300,children:C}):y.jsx(Vn,{"aria-labelledby":"task-detail-title",closeOnClickOutside:!n,closeOnEscape:!n,onClose:o,opened:m,overlayProps:{backgroundOpacity:.55,blur:2},scrollAreaComponent:Bn.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 Eb(n){return n.status==="completed"?["failed"]:n.status==="failed"?["completed"]:n.status==="working"||n.status==="needs_input"?["completed","failed"]:[]}function aN({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(Be,{mb:"sm",size:"sm",children:"This interrupts active work and appends an audited manual dashboard turn."}),y.jsxs(Ct,{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 oN={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 _b;const Ab=(_b=document.querySelector('meta[name="taskchef-style-nonce"]'))==null?void 0:_b.content;function rN({totalCount:n,visibleCount:l}){return y.jsxs(Be,{"aria-live":"polite",className:"taskchef-results-summary",id:"task-results-summary",children:["Tasks: ",l," of ",n]})}function iN({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),[v,g]=x.useState(l.project??""),[w,E]=x.useState(l.status??""),[C,T]=x.useState(l.date??"all"),[A,N]=x.useState(()=>Date.now()),[_,z]=x.useState(null),[L,H]=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,k=x.useRef(B);k.current=B;const Z=x.useRef(0),P=x.useRef(null),M=x.useRef(Ys(null)),Y=x.useCallback(ie=>{s(ie.tasks),O(Ne=>{const Te=b_(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=k.current;if(ye){const Ne=ie.tasks.find(Te=>Te.id===ye);Ne&&z(Te=>Te?Cb(Te,Ne):Ne)}},[]);x.useEffect(()=>{const ie=window.setInterval(()=>N(Date.now()),3e4);return()=>window.clearInterval(ie)},[]),x.useEffect(()=>{if(!n)return;x_().then(S).catch(()=>S(null));const ie=S_({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=Ys(ie),z(Te=>(Te==null?void 0:Te.id)===ie.id?Cb(Te,ie):ie),H(!0),V(ye),le(null),ee(null);try{for(let Te=0;Te<=40;Te+=1){if(Ne!==Z.current)return;const Ve=await w_(ie.id);if(Ne!==Z.current||(P.current=Ve.updatedAt,M.current=Ys(Ve),z(Ve),!A_(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=Ys(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]),ve=x.useMemo(()=>_S(o,{project:v,status:w,date:C,now:A}),[o,v,w,C,A]),pe=x.useMemo(()=>f_(o,{project:v,date:C,now:A}),[o,v,C,A]),he=ES.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 C_(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=o_(Ne);U(!0),le(null);const Ve=await T_(Ne,ie,ye);return U(!1),Ve.task&&(z(ut=>Sb({requestTask:Ne,expected:Te,responseTask:Ve.task,selectedTask:ut})),s(ut=>ut.map(zt=>zt.id===Ne.id?Sb({requestTask:Ne,expected:Te,responseTask:Ve.task,selectedTask:zt}):zt))),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=R_({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(Qb,{defaultColorScheme:"auto",getStyleNonce:Ab?()=>Ab:void 0,theme:oN,children:y.jsxs(P_,{now:A,children:[y.jsxs(Hn,{className:"taskchef-shell",padding:0,children:[y.jsx(ai,{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(Be,{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(cN,{}),y.jsx(zn,{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(W3,{"aria-hidden":!0,color:u?"var(--mantine-color-teal-6)":"var(--mantine-color-yellow-6)",size:9}),y.jsx(Be,{c:"dimmed",size:"xs",children:u?"Live":n?"Connecting…":"Fixture preview"})]}),y.jsx(sN,{})]})]})}),y.jsx(Hn.Main,{children:y.jsxs(ai,{className:"taskchef-main",pb:80,size:1080,children:[y.jsx(Rn,{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(nc,{"aria-label":"Project",data:de,label:"Project",onChange:ie=>g(ie??""),size:"sm",value:v}),y.jsx(nc,{"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(Be,{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(rN,{totalCount:o.length,visibleCount:ve.length}),m&&y.jsx(Xa,{color:"yellow",icon:y.jsx(z3,{"aria-hidden":!0,size:17}),mt:"md",role:"status",children:y.jsxs(Ct,{gap:"sm",justify:"space-between",wrap:"nowrap",children:[y.jsx(Be,{size:"sm",children:m}),y.jsx(Za,{"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:[ve.map(ie=>y.jsx(eN,{onOpenCodex:Me,onOpenDetail:ye=>void J(ye),task:ie},ie.id)),ve.length===0&&y.jsxs(Rn,{className:"taskchef-empty",p:48,ta:"center",withBorder:!0,children:[y.jsx(zn,{order:2,size:"h4",children:"No tasks match these filters"}),y.jsx(Be,{c:"dimmed",mt:4,size:"sm",children:"Choose a different project, date, or status."})]})]})]})})]}),y.jsx(lN,{busy:D,error:te,highlightTurnRef:F,onClose:()=>{D||(Z.current+=1,H(!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(Rb,{announcements:ce.announcements,notifications:ce.notifications,onClear:()=>O(ie=>({...ie,notifications:wb({detailTaskId:B,detailOpened:L,highlightTurnRef:F,notifications:ie.notifications,refreshGeneration:Z.current}).notifications})),onDismiss:ie=>O(ye=>({...ye,notifications:xb(ye.notifications,ie.id)})),onOpen:Ce,tasks:o,withinPortal:!1}):null}),!L&&y.jsx(Rb,{announcements:ce.announcements,notifications:ce.notifications,onClear:()=>O(ie=>({...ie,notifications:wb({detailTaskId:B,detailOpened:L,highlightTurnRef:F,notifications:ie.notifications,refreshGeneration:Z.current}).notifications})),onDismiss:ie=>O(ye=>({...ye,notifications:xb(ye.notifications,ie.id)})),onOpen:Ce,tasks:o})]})})}function sN(){const{setColorScheme:n}=qb(),l=Vb("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(F3,{"aria-hidden":!0,size:18}):y.jsx(Q3,{"aria-hidden":!0,size:18})})})}function cN(){const n=Vb("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"})}u2.createRoot(document.getElementById("root")).render(y.jsx(x.StrictMode,{children:y.jsx(iN,{})}));
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 Cb({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 Tb(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 Rb(n){return{...n,notifications:[]}}function Eb(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=Ab(n),o=Ab(l);if(r===null||o===null)return null;const s=o-r;return s>=0?s:null}function Ab(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 Cp(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?_b(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?_b(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 _b(n,l){const r=Cp(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=Cp(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 Tp(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 Nb({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(ze,{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(ze,{fw:700,size:"sm",children:Qc(p)}),y.jsx(Fc,{status:p.status})]}),y.jsx(ze,{lineClamp:1,size:"sm",children:p.title}),p.summary&&y.jsx(ze,{className:"taskchef-preserve-lines",id:g,lineClamp:3,size:"xs",children:p.summary}),y.jsxs(ze,{c:"dimmed",id:v,size:"xs",children:[Tp(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(qm,{children:d}):d}function G_(n){return[Qc(n),n.title,n.summary,n.turnRef?`Turn ref ${n.turnRef}`:null,Tp(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(ze,{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):Tp(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(ze,{"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(ze,{c:"dimmed",mt:2,size:"xs",children:r.project.name})]}),y.jsxs(fe,{className:"taskchef-summary-grid",children:[y.jsx(ze,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Request"}),y.jsx(ze,{className:"taskchef-preserve-lines",lineClamp:3,size:"sm",children:y.jsx(ac,{task:r,text:o.requestSummary})}),y.jsx(ze,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Result"}),y.jsx(ze,{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.jsxs(fe,{className:"taskchef-turn-timing",children:[y.jsx(oc,{label:"Turn update time",value:u.updatedAt}),y.jsx(dN,{turn:o})]})]}),u.sourceLabel&&y.jsx(ze,{c:"dimmed",size:"xs",children:u.sourceLabel}),y.jsxs(fe,{children:[y.jsx(ze,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Request"}),y.jsx(ze,{className:"taskchef-preserve-lines",size:"sm",children:y.jsx(ac,{task:l,text:o.requestSummary??"Request not recorded."})})]}),y.jsxs(fe,{children:[y.jsx(ze,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:"Result"}),y.jsx(ze,{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(Mb,{accessibleLabel:p.tokens.accessibleLabel,animated:p.animated,label:"Tokens",title:p.title,value:p.tokens.value}),y.jsx(Mb,{accessibleLabel:p.cost.accessibleLabel,animated:p.animated,label:"Estimated cost",title:p.title,value:p.cost.value})]}),p.note&&y.jsx(ze,{c:"dimmed",size:"xs",children:p.note}),y.jsxs(ze,{c:"dimmed",className:"taskchef-mono",size:"xs",children:["Turn ref: ",f??"—"]})]})},f)})}):y.jsx(ze,{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.jsxs(ze,{"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 Mb({accessibleLabel:n,animated:l=!1,label:r,title:o,value:s}){return y.jsxs(fe,{className:"taskchef-turn-metric",title:o,children:[y.jsx(ze,{c:"dimmed",className:"taskchef-field-label",size:"xs",children:r}),y.jsx(ze,{"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?Cp(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(ze,{c:"dimmed",size:"xs",children:g}),y.jsx(ze,{"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(ze,{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=mm("(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(ze,{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(ze,{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(ze,{"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?Eb(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?Eb(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=>Cb({requestTask:Ne,expected:Te,responseTask:Ve.task,selectedTask:ut})),s(ut=>ut.map(jt=>jt.id===Ne.id?Cb({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(ze,{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(ze,{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(ze,{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(ze,{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(ze,{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(Nb,{announcements:ce.announcements,notifications:ce.notifications,onClear:()=>O(ie=>({...ie,notifications:Rb({detailTaskId:B,detailOpened:L,highlightTurnRef:F,notifications:ie.notifications,refreshGeneration:Z.current}).notifications})),onDismiss:ie=>O(ye=>({...ye,notifications:Tb(ye.notifications,ie.id)})),onOpen:Ce,tasks:o,withinPortal:!1}):null}),!L&&y.jsx(Nb,{announcements:ce.announcements,notifications:ce.notifications,onClear:()=>O(ie=>({...ie,notifications:Rb({detailTaskId:B,detailOpened:L,highlightTurnRef:F,notifications:ie.notifications,refreshGeneration:Z.current}).notifications})),onDismiss:ie=>O(ye=>({...ye,notifications:Tb(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,{})}));
164
159
  //# sourceMappingURL=app.js.map