var qw=Object.defineProperty;var Yw=(n,a,r)=>a in n?qw(n,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[a]=r;var de=(n,a,r)=>Yw(n,typeof a!="symbol"?a+"":a,r);function Gw(n,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(n,s,c.get?c:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function Hv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var bd={exports:{}},ti={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var vy;function Vw(){if(vy)return ti;vy=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var m in s)m!=="key"&&(c[m]=s[m])}else c=s;return s=c.ref,{$$typeof:n,type:i,key:f,ref:s!==void 0?s:null,props:c}}return ti.Fragment=a,ti.jsx=r,ti.jsxs=r,ti}var by;function Xw(){return by||(by=1,bd.exports=Vw()),bd.exports}var S=Xw(),xd={exports:{}},we={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var xy;function Zw(){if(xy)return we;xy=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=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"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=v&&j[v]||j["@@iterator"],typeof j=="function"?j:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function A(j,Y,W){this.props=j,this.context=Y,this.refs=C,this.updater=W||T}A.prototype.isReactComponent={},A.prototype.setState=function(j,Y){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,Y,"setState")},A.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function M(){}M.prototype=A.prototype;function _(j,Y,W){this.props=j,this.context=Y,this.refs=C,this.updater=W||T}var z=_.prototype=new M;z.constructor=_,w(z,A.prototype),z.isPureReactComponent=!0;var U=Array.isArray;function q(){}var H={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function P(j,Y,W){var ae=W.ref;return{$$typeof:n,type:j,key:Y,ref:ae!==void 0?ae:null,props:W}}function ee(j,Y){return P(j.type,Y,j.props)}function I(j){return typeof j=="object"&&j!==null&&j.$$typeof===n}function V(j){var Y={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(W){return Y[W]})}var X=/\/+/g;function N(j,Y){return typeof j=="object"&&j!==null&&j.key!=null?V(""+j.key):Y.toString(36)}function te(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(q,q):(j.status="pending",j.then(function(Y){j.status==="pending"&&(j.status="fulfilled",j.value=Y)},function(Y){j.status==="pending"&&(j.status="rejected",j.reason=Y)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function D(j,Y,W,ae,se){var ce=typeof j;(ce==="undefined"||ce==="boolean")&&(j=null);var ue=!1;if(j===null)ue=!0;else switch(ce){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(j.$$typeof){case n:case a:ue=!0;break;case y:return ue=j._init,D(ue(j._payload),Y,W,ae,se)}}if(ue)return se=se(j),ue=ae===""?"."+N(j,0):ae,U(se)?(W="",ue!=null&&(W=ue.replace(X,"$&/")+"/"),D(se,Y,W,"",function(Se){return Se})):se!=null&&(I(se)&&(se=ee(se,W+(se.key==null||j&&j.key===se.key?"":(""+se.key).replace(X,"$&/")+"/")+ue)),Y.push(se)),1;ue=0;var me=ae===""?".":ae+":";if(U(j))for(var he=0;he<j.length;he++)ae=j[he],ce=me+N(ae,he),ue+=D(ae,Y,W,ce,se);else if(he=x(j),typeof he=="function")for(j=he.call(j),he=0;!(ae=j.next()).done;)ae=ae.value,ce=me+N(ae,he++),ue+=D(ae,Y,W,ce,se);else if(ce==="object"){if(typeof j.then=="function")return D(te(j),Y,W,ae,se);throw Y=String(j),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ue}function B(j,Y,W){if(j==null)return j;var ae=[],se=0;return D(j,ae,"","",function(ce){return Y.call(W,ce,se++)}),ae}function $(j){if(j._status===-1){var Y=j._result;Y=Y(),Y.then(function(W){(j._status===0||j._status===-1)&&(j._status=1,j._result=W)},function(W){(j._status===0||j._status===-1)&&(j._status=2,j._result=W)}),j._status===-1&&(j._status=0,j._result=Y)}if(j._status===1)return j._result.default;throw j._result}var J=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},oe={map:B,forEach:function(j,Y,W){B(j,function(){Y.apply(this,arguments)},W)},count:function(j){var Y=0;return B(j,function(){Y++}),Y},toArray:function(j){return B(j,function(Y){return Y})||[]},only:function(j){if(!I(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return we.Activity=g,we.Children=oe,we.Component=A,we.Fragment=r,we.Profiler=s,we.PureComponent=_,we.StrictMode=i,we.Suspense=p,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,we.__COMPILER_RUNTIME={__proto__:null,c:function(j){return H.H.useMemoCache(j)}},we.cache=function(j){return function(){return j.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(j,Y,W){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ae=w({},j.props),se=j.key;if(Y!=null)for(ce in Y.key!==void 0&&(se=""+Y.key),Y)!k.call(Y,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&Y.ref===void 0||(ae[ce]=Y[ce]);var ce=arguments.length-2;if(ce===1)ae.children=W;else if(1<ce){for(var ue=Array(ce),me=0;me<ce;me++)ue[me]=arguments[me+2];ae.children=ue}return P(j.type,se,ae)},we.createContext=function(j){return j={$$typeof:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:c,_context:j},j},we.createElement=function(j,Y,W){var ae,se={},ce=null;if(Y!=null)for(ae in Y.key!==void 0&&(ce=""+Y.key),Y)k.call(Y,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(se[ae]=Y[ae]);var ue=arguments.length-2;if(ue===1)se.children=W;else if(1<ue){for(var me=Array(ue),he=0;he<ue;he++)me[he]=arguments[he+2];se.children=me}if(j&&j.defaultProps)for(ae in ue=j.defaultProps,ue)se[ae]===void 0&&(se[ae]=ue[ae]);return P(j,ce,se)},we.createRef=function(){return{current:null}},we.forwardRef=function(j){return{$$typeof:m,render:j}},we.isValidElement=I,we.lazy=function(j){return{$$typeof:y,_payload:{_status:-1,_result:j},_init:$}},we.memo=function(j,Y){return{$$typeof:h,type:j,compare:Y===void 0?null:Y}},we.startTransition=function(j){var Y=H.T,W={};H.T=W;try{var ae=j(),se=H.S;se!==null&&se(W,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(q,J)}catch(ce){J(ce)}finally{Y!==null&&W.types!==null&&(Y.types=W.types),H.T=Y}},we.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},we.use=function(j){return H.H.use(j)},we.useActionState=function(j,Y,W){return H.H.useActionState(j,Y,W)},we.useCallback=function(j,Y){return H.H.useCallback(j,Y)},we.useContext=function(j){return H.H.useContext(j)},we.useDebugValue=function(){},we.useDeferredValue=function(j,Y){return H.H.useDeferredValue(j,Y)},we.useEffect=function(j,Y){return H.H.useEffect(j,Y)},we.useEffectEvent=function(j){return H.H.useEffectEvent(j)},we.useId=function(){return H.H.useId()},we.useImperativeHandle=function(j,Y,W){return H.H.useImperativeHandle(j,Y,W)},we.useInsertionEffect=function(j,Y){return H.H.useInsertionEffect(j,Y)},we.useLayoutEffect=function(j,Y){return H.H.useLayoutEffect(j,Y)},we.useMemo=function(j,Y){return H.H.useMemo(j,Y)},we.useOptimistic=function(j,Y){return H.H.useOptimistic(j,Y)},we.useReducer=function(j,Y,W){return H.H.useReducer(j,Y,W)},we.useRef=function(j){return H.H.useRef(j)},we.useState=function(j){return H.H.useState(j)},we.useSyncExternalStore=function(j,Y,W){return H.H.useSyncExternalStore(j,Y,W)},we.useTransition=function(){return H.H.useTransition()},we.version="19.2.7",we}var Sy;function Sm(){return Sy||(Sy=1,xd.exports=Zw()),xd.exports}var E=Sm();const Wd=Hv(E),Uv=Gw({__proto__:null,default:Wd},[E]);var Sd={exports:{}},ni={},wd={exports:{}},Ed={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var wy;function Kw(){return wy||(wy=1,(function(n){function a(D,B){var $=D.length;D.push(B);e:for(;0<$;){var J=$-1>>>1,oe=D[J];if(0<s(oe,B))D[J]=B,D[$]=oe,$=J;else break e}}function r(D){return D.length===0?null:D[0]}function i(D){if(D.length===0)return null;var B=D[0],$=D.pop();if($!==B){D[0]=$;e:for(var J=0,oe=D.length,j=oe>>>1;J<j;){var Y=2*(J+1)-1,W=D[Y],ae=Y+1,se=D[ae];if(0>s(W,$))ae<oe&&0>s(se,W)?(D[J]=se,D[ae]=$,J=ae):(D[J]=W,D[Y]=$,J=Y);else if(ae<oe&&0>s(se,$))D[J]=se,D[ae]=$,J=ae;else break e}}return B}function s(D,B){var $=D.sortIndex-B.sortIndex;return $!==0?$:D.id-B.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,m=f.now();n.unstable_now=function(){return f.now()-m}}var p=[],h=[],y=1,g=null,v=3,x=!1,T=!1,w=!1,C=!1,A=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function z(D){for(var B=r(h);B!==null;){if(B.callback===null)i(h);else if(B.startTime<=D)i(h),B.sortIndex=B.expirationTime,a(p,B);else break;B=r(h)}}function U(D){if(w=!1,z(D),!T)if(r(p)!==null)T=!0,q||(q=!0,V());else{var B=r(h);B!==null&&te(U,B.startTime-D)}}var q=!1,H=-1,k=5,P=-1;function ee(){return C?!0:!(n.unstable_now()-P<k)}function I(){if(C=!1,q){var D=n.unstable_now();P=D;var B=!0;try{e:{T=!1,w&&(w=!1,M(H),H=-1),x=!0;var $=v;try{t:{for(z(D),g=r(p);g!==null&&!(g.expirationTime>D&&ee());){var J=g.callback;if(typeof J=="function"){g.callback=null,v=g.priorityLevel;var oe=J(g.expirationTime<=D);if(D=n.unstable_now(),typeof oe=="function"){g.callback=oe,z(D),B=!0;break t}g===r(p)&&i(p),z(D)}else i(p);g=r(p)}if(g!==null)B=!0;else{var j=r(h);j!==null&&te(U,j.startTime-D),B=!1}}break e}finally{g=null,v=$,x=!1}B=void 0}}finally{B?V():q=!1}}}var V;if(typeof _=="function")V=function(){_(I)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,N=X.port2;X.port1.onmessage=I,V=function(){N.postMessage(null)}}else V=function(){A(I,0)};function te(D,B){H=A(function(){D(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(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(D){switch(v){case 1:case 2:case 3:var B=3;break;default:B=v}var $=v;v=B;try{return D()}finally{v=$}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(D,B){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var $=v;v=D;try{return B()}finally{v=$}},n.unstable_scheduleCallback=function(D,B,$){var J=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?J+$:J):$=J,D){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=$+oe,D={id:y++,callback:B,priorityLevel:D,startTime:$,expirationTime:oe,sortIndex:-1},$>J?(D.sortIndex=$,a(h,D),r(p)===null&&D===r(h)&&(w?(M(H),H=-1):w=!0,te(U,$-J))):(D.sortIndex=oe,a(p,D),T||x||(T=!0,q||(q=!0,V()))),D},n.unstable_shouldYield=ee,n.unstable_wrapCallback=function(D){var B=v;return function(){var $=v;v=B;try{return D.apply(this,arguments)}finally{v=$}}}})(Ed)),Ed}var Ey;function Qw(){return Ey||(Ey=1,wd.exports=Kw()),wd.exports}var Rd={exports:{}},Nt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ry;function Iw(){if(Ry)return Nt;Ry=1;var n=Sm();function a(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}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 i={d:{f:r,r:function(){throw Error(a(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 c(p,h,y){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:y}}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 Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Nt.createPortal=function(p,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(a(299));return c(p,h,null,y)},Nt.flushSync=function(p){var h=f.T,y=i.p;try{if(f.T=null,i.p=2,p)return p()}finally{f.T=h,i.p=y,i.d.f()}},Nt.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(p,h))},Nt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Nt.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var y=h.as,g=m(y,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?i.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:x}):y==="script"&&i.d.X(p,{crossOrigin:g,integrity:v,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Nt.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=m(h.as,h.crossOrigin);i.d.M(p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(p)},Nt.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,g=m(y,h.crossOrigin);i.d.L(p,y,{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})}},Nt.preloadModule=function(p,h){if(typeof p=="string")if(h){var y=m(h.as,h.crossOrigin);i.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(p)},Nt.requestFormReset=function(p){i.d.r(p)},Nt.unstable_batchedUpdates=function(p,h){return p(h)},Nt.useFormState=function(p,h,y){return f.H.useFormState(p,h,y)},Nt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Nt.version="19.2.7",Nt}var Cy;function $v(){if(Cy)return Rd.exports;Cy=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(a){console.error(a)}}return n(),Rd.exports=Iw(),Rd.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ty;function Fw(){if(Ty)return ni;Ty=1;var n=Qw(),a=Sm(),r=$v();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o])}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 c(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o: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(c(e)!==e)throw Error(i(188))}function h(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t!==e?null:e}for(var o=e,l=t;;){var u=o.return;if(u===null)break;var d=u.alternate;if(d===null){if(l=u.return,l!==null){o=l;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===o)return p(u),e;if(d===l)return p(u),t;d=d.sibling}throw Error(i(188))}if(o.return!==l.return)o=u,l=d;else{for(var b=!1,R=u.child;R;){if(R===o){b=!0,o=u,l=d;break}if(R===l){b=!0,l=u,o=d;break}R=R.sibling}if(!b){for(R=d.child;R;){if(R===o){b=!0,o=d,l=u;break}if(R===l){b=!0,l=d,o=u;break}R=R.sibling}if(!b)throw Error(i(189))}}if(o.alternate!==l)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),_=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function V(e){return e===null||typeof e!="object"?null:(e=I&&e[I]||e["@@iterator"],typeof e=="function"?e:null)}var X=Symbol.for("react.client.reference");function N(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===X?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case A:return"Profiler";case C:return"StrictMode";case U:return"Suspense";case q:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case _:return e.displayName||"Context";case M: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 H:return t=e.displayName||null,t!==null?t:N(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return N(e(t))}catch{}}return null}var te=Array.isArray,D=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},J=[],oe=-1;function j(e){return{current:e}}function Y(e){0>oe||(e.current=J[oe],J[oe]=null,oe--)}function W(e,t){oe++,J[oe]=e.current,e.current=t}var ae=j(null),se=j(null),ce=j(null),ue=j(null);function me(e,t){switch(W(ce,t),W(se,e),W(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qg(t),e=Yg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(ae),W(ae,e)}function he(){Y(ae),Y(se),Y(ce)}function Se(e){e.memoizedState!==null&&W(ue,e);var t=ae.current,o=Yg(t,e.type);t!==o&&(W(se,e),W(ae,o))}function Ne(e){se.current===e&&(Y(ae),Y(se)),ue.current===e&&(Y(ue),Jl._currentValue=$)}var ve,ze;function De(e){if(ve===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||"",ze=-1<o.stack.indexOf(`
    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ve+e+ze}var Ke=!1;function lt(e,t){if(!e||Ke)return"";Ke=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(F){var Q=F}Reflect.construct(e,[],le)}else{try{le.call()}catch(F){Q=F}e.call(le.prototype)}}else{try{throw Error()}catch(F){Q=F}(le=e())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(F){if(F&&Q&&typeof F.stack=="string")return[F.stack,Q.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),b=d[0],R=d[1];if(b&&R){var O=b.split(`
`),K=R.split(`
`);for(u=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;u<K.length&&!K[u].includes("DetermineComponentFrameRoot");)u++;if(l===O.length||u===K.length)for(l=O.length-1,u=K.length-1;1<=l&&0<=u&&O[l]!==K[u];)u--;for(;1<=l&&0<=u;l--,u--)if(O[l]!==K[u]){if(l!==1||u!==1)do if(l--,u--,0>u||O[l]!==K[u]){var ne=`
`+O[l].replace(" at new "," at ");return e.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",e.displayName)),ne}while(1<=l&&0<=u);break}}}finally{Ke=!1,Error.prepareStackTrace=o}return(o=e?e.displayName||e.name:"")?De(o):""}function Un(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return lt(e.type,!1);case 11:return lt(e.type.render,!1);case 1:return lt(e.type,!0);case 31:return De("Activity");default:return""}}function $n(e){try{var t="",o=null;do t+=Un(e,o),o=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var it=Object.prototype.hasOwnProperty,Fe=n.unstable_scheduleCallback,ea=n.unstable_cancelCallback,tr=n.unstable_shouldYield,We=n.unstable_requestPaint,Ct=n.unstable_now,ru=n.unstable_getCurrentPriorityLevel,Ei=n.unstable_ImmediatePriority,Ri=n.unstable_UserBlockingPriority,mo=n.unstable_NormalPriority,Ci=n.unstable_LowPriority,cl=n.unstable_IdlePriority,Ti=n.log,Ai=n.unstable_setDisableYieldValue,Ma=null,Ot=null;function Pe(e){if(typeof Ti=="function"&&Ai(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Ma,e)}catch{}}var en=Math.clz32?Math.clz32:Ax,Cx=Math.log,Tx=Math.LN2;function Ax(e){return e>>>=0,e===0?32:31-(Cx(e)/Tx|0)|0}var _i=256,Mi=262144,ji=4194304;function ho(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 zi(e,t,o){var l=e.pendingLanes;if(l===0)return 0;var u=0,d=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var R=l&134217727;return R!==0?(l=R&~d,l!==0?u=ho(l):(b&=R,b!==0?u=ho(b):o||(o=R&~e,o!==0&&(u=ho(o))))):(R=l&~d,R!==0?u=ho(R):b!==0?u=ho(b):o||(o=l&~e,o!==0&&(u=ho(o)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,o=t&-t,d>=o||d===32&&(o&4194048)!==0)?t:u}function ul(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _x(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 wh(){var e=ji;return ji<<=1,(ji&62914560)===0&&(ji=4194304),e}function lu(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function fl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Mx(e,t,o,l,u,d){var b=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var R=e.entanglements,O=e.expirationTimes,K=e.hiddenUpdates;for(o=b&~o;0<o;){var ne=31-en(o),le=1<<ne;R[ne]=0,O[ne]=-1;var Q=K[ne];if(Q!==null)for(K[ne]=null,ne=0;ne<Q.length;ne++){var F=Q[ne];F!==null&&(F.lane&=-536870913)}o&=~le}l!==0&&Eh(e,l,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(b&~t))}function Eh(e,t,o){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-en(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|o&261930}function Rh(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var l=31-en(o),u=1<<l;u&t|e[l]&t&&(e[l]|=t),o&=~u}}function Ch(e,t){var o=t&-t;return o=(o&42)!==0?1:iu(o),(o&(e.suspendedLanes|t))!==0?0:o}function iu(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 su(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Th(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:fy(e.type))}function Ah(e,t){var o=B.p;try{return B.p=e,t()}finally{B.p=o}}var ja=Math.random().toString(36).slice(2),Tt="__reactFiber$"+ja,$t="__reactProps$"+ja,nr="__reactContainer$"+ja,cu="__reactEvents$"+ja,jx="__reactListeners$"+ja,zx="__reactHandles$"+ja,_h="__reactResources$"+ja,dl="__reactMarker$"+ja;function uu(e){delete e[Tt],delete e[$t],delete e[cu],delete e[jx],delete e[zx]}function ar(e){var t=e[Tt];if(t)return t;for(var o=e.parentNode;o;){if(t=o[nr]||o[Tt]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=Ig(e);e!==null;){if(o=e[Tt])return o;e=Ig(e)}return t}e=o,o=e.parentNode}return null}function or(e){if(e=e[Tt]||e[nr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ml(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function rr(e){var t=e[_h];return t||(t=e[_h]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function yt(e){e[dl]=!0}var Mh=new Set,jh={};function po(e,t){lr(e,t),lr(e+"Capture",t)}function lr(e,t){for(jh[e]=t,e=0;e<t.length;e++)Mh.add(t[e])}var Ox=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]*$"),zh={},Oh={};function Nx(e){return it.call(Oh,e)?!0:it.call(zh,e)?!1:Ox.test(e)?Oh[e]=!0:(zh[e]=!0,!1)}function Oi(e,t,o){if(Nx(t))if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+o)}}function Ni(e,t,o){if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+o)}}function ta(e,t,o,l){if(l===null)e.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}e.setAttributeNS(t,o,""+l)}}function fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dx(e,t,o){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,d=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(b){o=""+b,d.call(this,b)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fu(e){if(!e._valueTracker){var t=Nh(e)?"checked":"value";e._valueTracker=Dx(e,t,""+e[t])}}function Dh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),l="";return e&&(l=Nh(e)?e.checked?"true":"false":e.value),e=l,e!==o?(t.setValue(e),!0):!1}function Di(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 Bx=/[\n"\\]/g;function dn(e){return e.replace(Bx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function du(e,t,o,l,u,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=""+fn(t)):e.value!==""+fn(t)&&(e.value=""+fn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?mu(e,b,fn(t)):o!=null?mu(e,b,fn(o)):l!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+fn(R):e.removeAttribute("name")}function Bh(e,t,o,l,u,d,b,R){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||o!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){fu(e);return}o=o!=null?""+fn(o):"",t=t!=null?""+fn(t):o,R||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=R?e.checked:!!l,e.defaultChecked=!!l,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),fu(e)}function mu(e,t,o){t==="number"&&Di(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function ir(e,t,o,l){if(e=e.options,t){t={};for(var u=0;u<o.length;u++)t["$"+o[u]]=!0;for(o=0;o<e.length;o++)u=t.hasOwnProperty("$"+e[o].value),e[o].selected!==u&&(e[o].selected=u),u&&l&&(e[o].defaultSelected=!0)}else{for(o=""+fn(o),t=null,u=0;u<e.length;u++){if(e[u].value===o){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Lh(e,t,o){if(t!=null&&(t=""+fn(t),t!==e.value&&(e.value=t),o==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=o!=null?""+fn(o):""}function kh(e,t,o,l){if(t==null){if(l!=null){if(o!=null)throw Error(i(92));if(te(l)){if(1<l.length)throw Error(i(93));l=l[0]}o=l}o==null&&(o=""),t=o}o=fn(t),e.defaultValue=o,l=e.textContent,l===o&&l!==""&&l!==null&&(e.value=l),fu(e)}function sr(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var Lx=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 Hh(e,t,o){var l=t.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,o):typeof o!="number"||o===0||Lx.has(t)?t==="float"?e.cssFloat=o:e[t]=(""+o).trim():e[t]=o+"px"}function Uh(e,t,o){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,o!=null){for(var l in o)!o.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&o[u]!==l&&Hh(e,u,l)}else for(var d in t)t.hasOwnProperty(d)&&Hh(e,d,t[d])}function hu(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 kx=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"]]),Hx=/^[\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 Bi(e){return Hx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var pu=null;function gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cr=null,ur=null;function $h(e){var t=or(e);if(t&&(e=t.stateNode)){var o=e[$t]||null;e:switch(e=t.stateNode,t.type){case"input":if(du(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+dn(""+t)+'"][type="radio"]'),t=0;t<o.length;t++){var l=o[t];if(l!==e&&l.form===e.form){var u=l[$t]||null;if(!u)throw Error(i(90));du(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<o.length;t++)l=o[t],l.form===e.form&&Dh(l)}break e;case"textarea":Lh(e,o.value,o.defaultValue);break e;case"select":t=o.value,t!=null&&ir(e,!!o.multiple,t,!1)}}}var yu=!1;function qh(e,t,o){if(yu)return e(t,o);yu=!0;try{var l=e(t);return l}finally{if(yu=!1,(cr!==null||ur!==null)&&(ws(),cr&&(t=cr,e=ur,ur=cr=null,$h(t),e)))for(t=0;t<e.length;t++)$h(e[t])}}function hl(e,t){var o=e.stateNode;if(o===null)return null;var l=o[$t]||null;if(l===null)return null;o=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,t,typeof o));return o}var aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vu=!1;if(aa)try{var pl={};Object.defineProperty(pl,"passive",{get:function(){vu=!0}}),window.addEventListener("test",pl,pl),window.removeEventListener("test",pl,pl)}catch{vu=!1}var za=null,bu=null,Li=null;function Yh(){if(Li)return Li;var e,t=bu,o=t.length,l,u="value"in za?za.value:za.textContent,d=u.length;for(e=0;e<o&&t[e]===u[e];e++);var b=o-e;for(l=1;l<=b&&t[o-l]===u[d-l];l++);return Li=u.slice(e,1<l?1-l:void 0)}function ki(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 Hi(){return!0}function Gh(){return!1}function qt(e){function t(o,l,u,d,b){this._reactName=o,this._targetInst=u,this.type=l,this.nativeEvent=d,this.target=b,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(o=e[R],this[R]=o?o(d):d[R]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Hi:Gh,this.isPropagationStopped=Gh,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Hi)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Hi)},persist:function(){},isPersistent:Hi}),t}var go={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ui=qt(go),gl=g({},go,{view:0,detail:0}),Ux=qt(gl),xu,Su,yl,$i=g({},gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eu,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!==yl&&(yl&&e.type==="mousemove"?(xu=e.screenX-yl.screenX,Su=e.screenY-yl.screenY):Su=xu=0,yl=e),xu)},movementY:function(e){return"movementY"in e?e.movementY:Su}}),Vh=qt($i),$x=g({},$i,{dataTransfer:0}),qx=qt($x),Yx=g({},gl,{relatedTarget:0}),wu=qt(Yx),Gx=g({},go,{animationName:0,elapsedTime:0,pseudoElement:0}),Vx=qt(Gx),Xx=g({},go,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zx=qt(Xx),Kx=g({},go,{data:0}),Xh=qt(Kx),Qx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ix={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"},Fx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Fx[e])?!!t[e]:!1}function Eu(){return Jx}var Wx=g({},gl,{key:function(e){if(e.key){var t=Qx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ki(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ix[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eu,charCode:function(e){return e.type==="keypress"?ki(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ki(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Px=qt(Wx),eS=g({},$i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zh=qt(eS),tS=g({},gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eu}),nS=qt(tS),aS=g({},go,{propertyName:0,elapsedTime:0,pseudoElement:0}),oS=qt(aS),rS=g({},$i,{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}),lS=qt(rS),iS=g({},go,{newState:0,oldState:0}),sS=qt(iS),cS=[9,13,27,32],Ru=aa&&"CompositionEvent"in window,vl=null;aa&&"documentMode"in document&&(vl=document.documentMode);var uS=aa&&"TextEvent"in window&&!vl,Kh=aa&&(!Ru||vl&&8<vl&&11>=vl),Qh=" ",Ih=!1;function Fh(e,t){switch(e){case"keyup":return cS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fr=!1;function fS(e,t){switch(e){case"compositionend":return Jh(t);case"keypress":return t.which!==32?null:(Ih=!0,Qh);case"textInput":return e=t.data,e===Qh&&Ih?null:e;default:return null}}function dS(e,t){if(fr)return e==="compositionend"||!Ru&&Fh(e,t)?(e=Yh(),Li=bu=za=null,fr=!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 Kh&&t.locale!=="ko"?null:t.data;default:return null}}var mS={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 Wh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mS[e.type]:t==="textarea"}function Ph(e,t,o,l){cr?ur?ur.push(l):ur=[l]:cr=l,t=Ms(t,"onChange"),0<t.length&&(o=new Ui("onChange","change",null,o,l),e.push({event:o,listeners:t}))}var bl=null,xl=null;function hS(e){Bg(e,0)}function qi(e){var t=ml(e);if(Dh(t))return e}function ep(e,t){if(e==="change")return t}var tp=!1;if(aa){var Cu;if(aa){var Tu="oninput"in document;if(!Tu){var np=document.createElement("div");np.setAttribute("oninput","return;"),Tu=typeof np.oninput=="function"}Cu=Tu}else Cu=!1;tp=Cu&&(!document.documentMode||9<document.documentMode)}function ap(){bl&&(bl.detachEvent("onpropertychange",op),xl=bl=null)}function op(e){if(e.propertyName==="value"&&qi(xl)){var t=[];Ph(t,xl,e,gu(e)),qh(hS,t)}}function pS(e,t,o){e==="focusin"?(ap(),bl=t,xl=o,bl.attachEvent("onpropertychange",op)):e==="focusout"&&ap()}function gS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qi(xl)}function yS(e,t){if(e==="click")return qi(t)}function vS(e,t){if(e==="input"||e==="change")return qi(t)}function bS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:bS;function Sl(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),l=Object.keys(t);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var u=o[l];if(!it.call(t,u)||!tn(e[u],t[u]))return!1}return!0}function rp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lp(e,t){var o=rp(e);e=0;for(var l;o;){if(o.nodeType===3){if(l=e+o.textContent.length,e<=t&&l>=t)return{node:o,offset:t-e};e=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=rp(o)}}function ip(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ip(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Di(e.document);t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch{o=!1}if(o)e=t.contentWindow;else break;t=Di(e.document)}return t}function Au(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 xS=aa&&"documentMode"in document&&11>=document.documentMode,dr=null,_u=null,wl=null,Mu=!1;function cp(e,t,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Mu||dr==null||dr!==Di(l)||(l=dr,"selectionStart"in l&&Au(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),wl&&Sl(wl,l)||(wl=l,l=Ms(_u,"onSelect"),0<l.length&&(t=new Ui("onSelect","select",null,t,o),e.push({event:t,listeners:l}),t.target=dr)))}function yo(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var mr={animationend:yo("Animation","AnimationEnd"),animationiteration:yo("Animation","AnimationIteration"),animationstart:yo("Animation","AnimationStart"),transitionrun:yo("Transition","TransitionRun"),transitionstart:yo("Transition","TransitionStart"),transitioncancel:yo("Transition","TransitionCancel"),transitionend:yo("Transition","TransitionEnd")},ju={},up={};aa&&(up=document.createElement("div").style,"AnimationEvent"in window||(delete mr.animationend.animation,delete mr.animationiteration.animation,delete mr.animationstart.animation),"TransitionEvent"in window||delete mr.transitionend.transition);function vo(e){if(ju[e])return ju[e];if(!mr[e])return e;var t=mr[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in up)return ju[e]=t[o];return e}var fp=vo("animationend"),dp=vo("animationiteration"),mp=vo("animationstart"),SS=vo("transitionrun"),wS=vo("transitionstart"),ES=vo("transitioncancel"),hp=vo("transitionend"),pp=new Map,zu="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(" ");zu.push("scrollEnd");function Tn(e,t){pp.set(e,t),po(t,[e])}var Yi=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)},mn=[],hr=0,Ou=0;function Gi(){for(var e=hr,t=Ou=hr=0;t<e;){var o=mn[t];mn[t++]=null;var l=mn[t];mn[t++]=null;var u=mn[t];mn[t++]=null;var d=mn[t];if(mn[t++]=null,l!==null&&u!==null){var b=l.pending;b===null?u.next=u:(u.next=b.next,b.next=u),l.pending=u}d!==0&&gp(o,u,d)}}function Vi(e,t,o,l){mn[hr++]=e,mn[hr++]=t,mn[hr++]=o,mn[hr++]=l,Ou|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Nu(e,t,o,l){return Vi(e,t,o,l),Xi(e)}function bo(e,t){return Vi(e,null,null,t),Xi(e)}function gp(e,t,o){e.lanes|=o;var l=e.alternate;l!==null&&(l.lanes|=o);for(var u=!1,d=e.return;d!==null;)d.childLanes|=o,l=d.alternate,l!==null&&(l.childLanes|=o),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-en(o),e=d.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=o|536870912),d):null}function Xi(e){if(50<Vl)throw Vl=0,Gf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pr={};function RS(e,t,o,l){this.tag=e,this.key=o,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,o,l){return new RS(e,t,o,l)}function Du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oa(e,t){var o=e.alternate;return o===null?(o=nn(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&65011712,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o}function yp(e,t){e.flags&=65011714;var o=e.alternate;return o===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=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,t=o.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Zi(e,t,o,l,u,d){var b=0;if(l=e,typeof e=="function")Du(e)&&(b=1);else if(typeof e=="string")b=Mw(e,o,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case P:return e=nn(31,o,t,u),e.elementType=P,e.lanes=d,e;case w:return xo(o.children,u,d,t);case C:b=8,u|=24;break;case A:return e=nn(12,o,t,u|2),e.elementType=A,e.lanes=d,e;case U:return e=nn(13,o,t,u),e.elementType=U,e.lanes=d,e;case q:return e=nn(19,o,t,u),e.elementType=q,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:b=10;break e;case M:b=9;break e;case z:b=11;break e;case H:b=14;break e;case k:b=16,l=null;break e}b=29,o=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=nn(b,o,t,u),t.elementType=e,t.type=l,t.lanes=d,t}function xo(e,t,o,l){return e=nn(7,e,l,t),e.lanes=o,e}function Bu(e,t,o){return e=nn(6,e,null,t),e.lanes=o,e}function vp(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function Lu(e,t,o){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bp=new WeakMap;function hn(e,t){if(typeof e=="object"&&e!==null){var o=bp.get(e);return o!==void 0?o:(t={value:e,source:t,stack:$n(t)},bp.set(e,t),t)}return{value:e,source:t,stack:$n(t)}}var gr=[],yr=0,Ki=null,El=0,pn=[],gn=0,Oa=null,qn=1,Yn="";function ra(e,t){gr[yr++]=El,gr[yr++]=Ki,Ki=e,El=t}function xp(e,t,o){pn[gn++]=qn,pn[gn++]=Yn,pn[gn++]=Oa,Oa=e;var l=qn;e=Yn;var u=32-en(l)-1;l&=~(1<<u),o+=1;var d=32-en(t)+u;if(30<d){var b=u-u%5;d=(l&(1<<b)-1).toString(32),l>>=b,u-=b,qn=1<<32-en(t)+u|o<<u|l,Yn=d+e}else qn=1<<d|o<<u|l,Yn=e}function ku(e){e.return!==null&&(ra(e,1),xp(e,1,0))}function Hu(e){for(;e===Ki;)Ki=gr[--yr],gr[yr]=null,El=gr[--yr],gr[yr]=null;for(;e===Oa;)Oa=pn[--gn],pn[gn]=null,Yn=pn[--gn],pn[gn]=null,qn=pn[--gn],pn[gn]=null}function Sp(e,t){pn[gn++]=qn,pn[gn++]=Yn,pn[gn++]=Oa,qn=t.id,Yn=t.overflow,Oa=e}var At=null,Qe=null,Oe=!1,Na=null,yn=!1,Uu=Error(i(519));function Da(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rl(hn(t,e)),Uu}function wp(e){var t=e.stateNode,o=e.type,l=e.memoizedProps;switch(t[Tt]=e,t[$t]=l,o){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(o=0;o<Zl.length;o++)_e(Zl[o],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),Bh(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),kh(t,l.value,l.defaultValue,l.children)}o=l.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||t.textContent===""+o||l.suppressHydrationWarning===!0||Ug(t.textContent,o)?(l.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),l.onScroll!=null&&_e("scroll",t),l.onScrollEnd!=null&&_e("scrollend",t),l.onClick!=null&&(t.onclick=na),t=!0):t=!1,t||Da(e,!0)}function Ep(e){for(At=e.return;At;)switch(At.tag){case 5:case 31:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:At=At.return}}function vr(e){if(e!==At)return!1;if(!Oe)return Ep(e),Oe=!0,!1;var t=e.tag,o;if((o=t!==3&&t!==27)&&((o=t===5)&&(o=e.type,o=!(o!=="form"&&o!=="button")||od(e.type,e.memoizedProps)),o=!o),o&&Qe&&Da(e),Ep(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Qe=Qg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Qe=Qg(e)}else t===27?(t=Qe,Qa(e.type)?(e=cd,cd=null,Qe=e):Qe=t):Qe=At?bn(e.stateNode.nextSibling):null;return!0}function So(){Qe=At=null,Oe=!1}function $u(){var e=Na;return e!==null&&(Xt===null?Xt=e:Xt.push.apply(Xt,e),Na=null),e}function Rl(e){Na===null?Na=[e]:Na.push(e)}var qu=j(null),wo=null,la=null;function Ba(e,t,o){W(qu,t._currentValue),t._currentValue=o}function ia(e){e._currentValue=qu.current,Y(qu)}function Yu(e,t,o){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===o)break;e=e.return}}function Gu(e,t,o,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var b=u.child;d=d.firstContext;e:for(;d!==null;){var R=d;d=u;for(var O=0;O<t.length;O++)if(R.context===t[O]){d.lanes|=o,R=d.alternate,R!==null&&(R.lanes|=o),Yu(d.return,o,e),l||(b=null);break e}d=R.next}}else if(u.tag===18){if(b=u.return,b===null)throw Error(i(341));b.lanes|=o,d=b.alternate,d!==null&&(d.lanes|=o),Yu(b,o,e),b=null}else b=u.child;if(b!==null)b.return=u;else for(b=u;b!==null;){if(b===e){b=null;break}if(u=b.sibling,u!==null){u.return=b.return,b=u;break}b=b.return}u=b}}function br(e,t,o,l){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var b=u.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var R=u.type;tn(u.pendingProps.value,b.value)||(e!==null?e.push(R):e=[R])}}else if(u===ue.current){if(b=u.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Jl):e=[Jl])}u=u.return}e!==null&&Gu(t,e,o,l),t.flags|=262144}function Qi(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Eo(e){wo=e,la=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _t(e){return Rp(wo,e)}function Ii(e,t){return wo===null&&Eo(e),Rp(e,t)}function Rp(e,t){var o=t._currentValue;if(t={context:t,memoizedValue:o,next:null},la===null){if(e===null)throw Error(i(308));la=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else la=la.next=t;return o}var CS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(o,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(o){return o()})}},TS=n.unstable_scheduleCallback,AS=n.unstable_NormalPriority,st={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vu(){return{controller:new CS,data:new Map,refCount:0}}function Cl(e){e.refCount--,e.refCount===0&&TS(AS,function(){e.controller.abort()})}var Tl=null,Xu=0,xr=0,Sr=null;function _S(e,t){if(Tl===null){var o=Tl=[];Xu=0,xr=If(),Sr={status:"pending",value:void 0,then:function(l){o.push(l)}}}return Xu++,t.then(Cp,Cp),t}function Cp(){if(--Xu===0&&Tl!==null){Sr!==null&&(Sr.status="fulfilled");var e=Tl;Tl=null,xr=0,Sr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function MS(e,t){var o=[],l={status:"pending",value:null,reason:null,then:function(u){o.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<o.length;u++)(0,o[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<o.length;u++)(0,o[u])(void 0)}),l}var Tp=D.S;D.S=function(e,t){cg=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&_S(e,t),Tp!==null&&Tp(e,t)};var Ro=j(null);function Zu(){var e=Ro.current;return e!==null?e:Ve.pooledCache}function Fi(e,t){t===null?W(Ro,Ro.current):W(Ro,t.pool)}function Ap(){var e=Zu();return e===null?null:{parent:st._currentValue,pool:e}}var wr=Error(i(460)),Ku=Error(i(474)),Ji=Error(i(542)),Wi={then:function(){}};function _p(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mp(e,t,o){switch(o=e[o],o===void 0?e.push(t):o!==t&&(t.then(na,na),t=o),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zp(e),e;default:if(typeof t.status=="string")t.then(na,na);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zp(e),e}throw To=t,wr}}function Co(e){try{var t=e._init;return t(e._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(To=o,wr):o}}var To=null;function jp(){if(To===null)throw Error(i(459));var e=To;return To=null,e}function zp(e){if(e===wr||e===Ji)throw Error(i(483))}var Er=null,Al=0;function Pi(e){var t=Al;return Al+=1,Er===null&&(Er=[]),Mp(Er,e,t)}function _l(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function es(e,t){throw t.$$typeof===v?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Op(e){function t(G,L){if(e){var Z=G.deletions;Z===null?(G.deletions=[L],G.flags|=16):Z.push(L)}}function o(G,L){if(!e)return null;for(;L!==null;)t(G,L),L=L.sibling;return null}function l(G){for(var L=new Map;G!==null;)G.key!==null?L.set(G.key,G):L.set(G.index,G),G=G.sibling;return L}function u(G,L){return G=oa(G,L),G.index=0,G.sibling=null,G}function d(G,L,Z){return G.index=Z,e?(Z=G.alternate,Z!==null?(Z=Z.index,Z<L?(G.flags|=67108866,L):Z):(G.flags|=67108866,L)):(G.flags|=1048576,L)}function b(G){return e&&G.alternate===null&&(G.flags|=67108866),G}function R(G,L,Z,re){return L===null||L.tag!==6?(L=Bu(Z,G.mode,re),L.return=G,L):(L=u(L,Z),L.return=G,L)}function O(G,L,Z,re){var be=Z.type;return be===w?ne(G,L,Z.props.children,re,Z.key):L!==null&&(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===k&&Co(be)===L.type)?(L=u(L,Z.props),_l(L,Z),L.return=G,L):(L=Zi(Z.type,Z.key,Z.props,null,G.mode,re),_l(L,Z),L.return=G,L)}function K(G,L,Z,re){return L===null||L.tag!==4||L.stateNode.containerInfo!==Z.containerInfo||L.stateNode.implementation!==Z.implementation?(L=Lu(Z,G.mode,re),L.return=G,L):(L=u(L,Z.children||[]),L.return=G,L)}function ne(G,L,Z,re,be){return L===null||L.tag!==7?(L=xo(Z,G.mode,re,be),L.return=G,L):(L=u(L,Z),L.return=G,L)}function le(G,L,Z){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Bu(""+L,G.mode,Z),L.return=G,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case x:return Z=Zi(L.type,L.key,L.props,null,G.mode,Z),_l(Z,L),Z.return=G,Z;case T:return L=Lu(L,G.mode,Z),L.return=G,L;case k:return L=Co(L),le(G,L,Z)}if(te(L)||V(L))return L=xo(L,G.mode,Z,null),L.return=G,L;if(typeof L.then=="function")return le(G,Pi(L),Z);if(L.$$typeof===_)return le(G,Ii(G,L),Z);es(G,L)}return null}function Q(G,L,Z,re){var be=L!==null?L.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return be!==null?null:R(G,L,""+Z,re);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case x:return Z.key===be?O(G,L,Z,re):null;case T:return Z.key===be?K(G,L,Z,re):null;case k:return Z=Co(Z),Q(G,L,Z,re)}if(te(Z)||V(Z))return be!==null?null:ne(G,L,Z,re,null);if(typeof Z.then=="function")return Q(G,L,Pi(Z),re);if(Z.$$typeof===_)return Q(G,L,Ii(G,Z),re);es(G,Z)}return null}function F(G,L,Z,re,be){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return G=G.get(Z)||null,R(L,G,""+re,be);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case x:return G=G.get(re.key===null?Z:re.key)||null,O(L,G,re,be);case T:return G=G.get(re.key===null?Z:re.key)||null,K(L,G,re,be);case k:return re=Co(re),F(G,L,Z,re,be)}if(te(re)||V(re))return G=G.get(Z)||null,ne(L,G,re,be,null);if(typeof re.then=="function")return F(G,L,Z,Pi(re),be);if(re.$$typeof===_)return F(G,L,Z,Ii(L,re),be);es(L,re)}return null}function pe(G,L,Z,re){for(var be=null,Be=null,ye=L,Te=L=0,je=null;ye!==null&&Te<Z.length;Te++){ye.index>Te?(je=ye,ye=null):je=ye.sibling;var Le=Q(G,ye,Z[Te],re);if(Le===null){ye===null&&(ye=je);break}e&&ye&&Le.alternate===null&&t(G,ye),L=d(Le,L,Te),Be===null?be=Le:Be.sibling=Le,Be=Le,ye=je}if(Te===Z.length)return o(G,ye),Oe&&ra(G,Te),be;if(ye===null){for(;Te<Z.length;Te++)ye=le(G,Z[Te],re),ye!==null&&(L=d(ye,L,Te),Be===null?be=ye:Be.sibling=ye,Be=ye);return Oe&&ra(G,Te),be}for(ye=l(ye);Te<Z.length;Te++)je=F(ye,G,Te,Z[Te],re),je!==null&&(e&&je.alternate!==null&&ye.delete(je.key===null?Te:je.key),L=d(je,L,Te),Be===null?be=je:Be.sibling=je,Be=je);return e&&ye.forEach(function(Pa){return t(G,Pa)}),Oe&&ra(G,Te),be}function xe(G,L,Z,re){if(Z==null)throw Error(i(151));for(var be=null,Be=null,ye=L,Te=L=0,je=null,Le=Z.next();ye!==null&&!Le.done;Te++,Le=Z.next()){ye.index>Te?(je=ye,ye=null):je=ye.sibling;var Pa=Q(G,ye,Le.value,re);if(Pa===null){ye===null&&(ye=je);break}e&&ye&&Pa.alternate===null&&t(G,ye),L=d(Pa,L,Te),Be===null?be=Pa:Be.sibling=Pa,Be=Pa,ye=je}if(Le.done)return o(G,ye),Oe&&ra(G,Te),be;if(ye===null){for(;!Le.done;Te++,Le=Z.next())Le=le(G,Le.value,re),Le!==null&&(L=d(Le,L,Te),Be===null?be=Le:Be.sibling=Le,Be=Le);return Oe&&ra(G,Te),be}for(ye=l(ye);!Le.done;Te++,Le=Z.next())Le=F(ye,G,Te,Le.value,re),Le!==null&&(e&&Le.alternate!==null&&ye.delete(Le.key===null?Te:Le.key),L=d(Le,L,Te),Be===null?be=Le:Be.sibling=Le,Be=Le);return e&&ye.forEach(function($w){return t(G,$w)}),Oe&&ra(G,Te),be}function Ge(G,L,Z,re){if(typeof Z=="object"&&Z!==null&&Z.type===w&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case x:e:{for(var be=Z.key;L!==null;){if(L.key===be){if(be=Z.type,be===w){if(L.tag===7){o(G,L.sibling),re=u(L,Z.props.children),re.return=G,G=re;break e}}else if(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===k&&Co(be)===L.type){o(G,L.sibling),re=u(L,Z.props),_l(re,Z),re.return=G,G=re;break e}o(G,L);break}else t(G,L);L=L.sibling}Z.type===w?(re=xo(Z.props.children,G.mode,re,Z.key),re.return=G,G=re):(re=Zi(Z.type,Z.key,Z.props,null,G.mode,re),_l(re,Z),re.return=G,G=re)}return b(G);case T:e:{for(be=Z.key;L!==null;){if(L.key===be)if(L.tag===4&&L.stateNode.containerInfo===Z.containerInfo&&L.stateNode.implementation===Z.implementation){o(G,L.sibling),re=u(L,Z.children||[]),re.return=G,G=re;break e}else{o(G,L);break}else t(G,L);L=L.sibling}re=Lu(Z,G.mode,re),re.return=G,G=re}return b(G);case k:return Z=Co(Z),Ge(G,L,Z,re)}if(te(Z))return pe(G,L,Z,re);if(V(Z)){if(be=V(Z),typeof be!="function")throw Error(i(150));return Z=be.call(Z),xe(G,L,Z,re)}if(typeof Z.then=="function")return Ge(G,L,Pi(Z),re);if(Z.$$typeof===_)return Ge(G,L,Ii(G,Z),re);es(G,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,L!==null&&L.tag===6?(o(G,L.sibling),re=u(L,Z),re.return=G,G=re):(o(G,L),re=Bu(Z,G.mode,re),re.return=G,G=re),b(G)):o(G,L)}return function(G,L,Z,re){try{Al=0;var be=Ge(G,L,Z,re);return Er=null,be}catch(ye){if(ye===wr||ye===Ji)throw ye;var Be=nn(29,ye,null,G.mode);return Be.lanes=re,Be.return=G,Be}finally{}}}var Ao=Op(!0),Np=Op(!1),La=!1;function Qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Iu(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 ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ha(e,t,o){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ke&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Xi(e),gp(e,null,o),t}return Vi(e,l,t,o),Xi(e)}function Ml(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,o|=l,t.lanes=o,Rh(e,o)}}function Fu(e,t){var o=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var u=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var b={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};d===null?u=d=b:d=d.next=b,o=o.next}while(o!==null);d===null?u=d=t:d=d.next=t}else u=d=t;o={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}var Ju=!1;function jl(){if(Ju){var e=Sr;if(e!==null)throw e}}function zl(e,t,o,l){Ju=!1;var u=e.updateQueue;La=!1;var d=u.firstBaseUpdate,b=u.lastBaseUpdate,R=u.shared.pending;if(R!==null){u.shared.pending=null;var O=R,K=O.next;O.next=null,b===null?d=K:b.next=K,b=O;var ne=e.alternate;ne!==null&&(ne=ne.updateQueue,R=ne.lastBaseUpdate,R!==b&&(R===null?ne.firstBaseUpdate=K:R.next=K,ne.lastBaseUpdate=O))}if(d!==null){var le=u.baseState;b=0,ne=K=O=null,R=d;do{var Q=R.lane&-536870913,F=Q!==R.lane;if(F?(Me&Q)===Q:(l&Q)===Q){Q!==0&&Q===xr&&(Ju=!0),ne!==null&&(ne=ne.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var pe=e,xe=R;Q=t;var Ge=o;switch(xe.tag){case 1:if(pe=xe.payload,typeof pe=="function"){le=pe.call(Ge,le,Q);break e}le=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=xe.payload,Q=typeof pe=="function"?pe.call(Ge,le,Q):pe,Q==null)break e;le=g({},le,Q);break e;case 2:La=!0}}Q=R.callback,Q!==null&&(e.flags|=64,F&&(e.flags|=8192),F=u.callbacks,F===null?u.callbacks=[Q]:F.push(Q))}else F={lane:Q,tag:R.tag,payload:R.payload,callback:R.callback,next:null},ne===null?(K=ne=F,O=le):ne=ne.next=F,b|=Q;if(R=R.next,R===null){if(R=u.shared.pending,R===null)break;F=R,R=F.next,F.next=null,u.lastBaseUpdate=F,u.shared.pending=null}}while(!0);ne===null&&(O=le),u.baseState=O,u.firstBaseUpdate=K,u.lastBaseUpdate=ne,d===null&&(u.shared.lanes=0),Ga|=b,e.lanes=b,e.memoizedState=le}}function Dp(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Bp(e,t){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)Dp(o[e],t)}var Rr=j(null),ts=j(0);function Lp(e,t){e=ga,W(ts,e),W(Rr,t),ga=e|t.baseLanes}function Wu(){W(ts,ga),W(Rr,Rr.current)}function Pu(){ga=ts.current,Y(Rr),Y(ts)}var an=j(null),vn=null;function Ua(e){var t=e.alternate;W(at,at.current&1),W(an,e),vn===null&&(t===null||Rr.current!==null||t.memoizedState!==null)&&(vn=e)}function ef(e){W(at,at.current),W(an,e),vn===null&&(vn=e)}function kp(e){e.tag===22?(W(at,at.current),W(an,e),vn===null&&(vn=e)):$a()}function $a(){W(at,at.current),W(an,an.current)}function on(e){Y(an),vn===e&&(vn=null),Y(at)}var at=j(0);function ns(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||id(o)||sd(o)))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 sa=0,Ce=null,qe=null,ct=null,as=!1,Cr=!1,_o=!1,os=0,Ol=0,Tr=null,jS=0;function et(){throw Error(i(321))}function tf(e,t){if(t===null)return!1;for(var o=0;o<t.length&&o<e.length;o++)if(!tn(e[o],t[o]))return!1;return!0}function nf(e,t,o,l,u,d){return sa=d,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?x0:vf,_o=!1,d=o(l,u),_o=!1,Cr&&(d=Up(t,o,l,u)),Hp(e),d}function Hp(e){D.H=Bl;var t=qe!==null&&qe.next!==null;if(sa=0,ct=qe=Ce=null,as=!1,Ol=0,Tr=null,t)throw Error(i(300));e===null||ut||(e=e.dependencies,e!==null&&Qi(e)&&(ut=!0))}function Up(e,t,o,l){Ce=e;var u=0;do{if(Cr&&(Tr=null),Ol=0,Cr=!1,25<=u)throw Error(i(301));if(u+=1,ct=qe=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}D.H=S0,d=t(o,l)}while(Cr);return d}function zS(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Nl(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Ce.flags|=1024),t}function af(){var e=os!==0;return os=0,e}function of(e,t,o){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o}function rf(e){if(as){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}as=!1}sa=0,ct=qe=Ce=null,Cr=!1,Ol=os=0,Tr=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Ce.memoizedState=ct=e:ct=ct.next=e,ct}function ot(){if(qe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=ct===null?Ce.memoizedState:ct.next;if(t!==null)ct=t,qe=e;else{if(e===null)throw Ce.alternate===null?Error(i(467)):Error(i(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},ct===null?Ce.memoizedState=ct=e:ct=ct.next=e}return ct}function rs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nl(e){var t=Ol;return Ol+=1,Tr===null&&(Tr=[]),e=Mp(Tr,e,t),t=Ce,(ct===null?t.memoizedState:ct.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?x0:vf),e}function ls(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nl(e);if(e.$$typeof===_)return _t(e)}throw Error(i(438,String(e)))}function lf(e){var t=null,o=Ce.updateQueue;if(o!==null&&(t=o.memoCache),t==null){var l=Ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),o===null&&(o=rs(),Ce.updateQueue=o),o.memoCache=t,o=t.data[t.index],o===void 0)for(o=t.data[t.index]=Array(e),l=0;l<e;l++)o[l]=ee;return t.index++,o}function ca(e,t){return typeof t=="function"?t(e):t}function is(e){var t=ot();return sf(t,qe,e)}function sf(e,t,o){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=o;var u=e.baseQueue,d=l.pending;if(d!==null){if(u!==null){var b=u.next;u.next=d.next,d.next=b}t.baseQueue=u=d,l.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var R=b=null,O=null,K=t,ne=!1;do{var le=K.lane&-536870913;if(le!==K.lane?(Me&le)===le:(sa&le)===le){var Q=K.revertLane;if(Q===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),le===xr&&(ne=!0);else if((sa&Q)===Q){K=K.next,Q===xr&&(ne=!0);continue}else le={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(R=O=le,b=d):O=O.next=le,Ce.lanes|=Q,Ga|=Q;le=K.action,_o&&o(d,le),d=K.hasEagerState?K.eagerState:o(d,le)}else Q={lane:le,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(R=O=Q,b=d):O=O.next=Q,Ce.lanes|=le,Ga|=le;K=K.next}while(K!==null&&K!==t);if(O===null?b=d:O.next=R,!tn(d,e.memoizedState)&&(ut=!0,ne&&(o=Sr,o!==null)))throw o;e.memoizedState=d,e.baseState=b,e.baseQueue=O,l.lastRenderedState=d}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function cf(e){var t=ot(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var l=o.dispatch,u=o.pending,d=t.memoizedState;if(u!==null){o.pending=null;var b=u=u.next;do d=e(d,b.action),b=b.next;while(b!==u);tn(d,t.memoizedState)||(ut=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),o.lastRenderedState=d}return[d,l]}function $p(e,t,o){var l=Ce,u=ot(),d=Oe;if(d){if(o===void 0)throw Error(i(407));o=o()}else o=t();var b=!tn((qe||u).memoizedState,o);if(b&&(u.memoizedState=o,ut=!0),u=u.queue,df(Gp.bind(null,l,u,e),[e]),u.getSnapshot!==t||b||ct!==null&&ct.memoizedState.tag&1){if(l.flags|=2048,Ar(9,{destroy:void 0},Yp.bind(null,l,u,o,t),null),Ve===null)throw Error(i(349));d||(sa&127)!==0||qp(l,t,o)}return o}function qp(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=Ce.updateQueue,t===null?(t=rs(),Ce.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function Yp(e,t,o,l){t.value=o,t.getSnapshot=l,Vp(t)&&Xp(e)}function Gp(e,t,o){return o(function(){Vp(t)&&Xp(e)})}function Vp(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!tn(e,o)}catch{return!0}}function Xp(e){var t=bo(e,2);t!==null&&Zt(t,e,2)}function uf(e){var t=Ut();if(typeof e=="function"){var o=e;if(e=o(),_o){Pe(!0);try{o()}finally{Pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e},t}function Zp(e,t,o,l){return e.baseState=o,sf(e,qe,typeof l=="function"?l:ca)}function OS(e,t,o,l,u){if(us(e))throw Error(i(485));if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){d.listeners.push(b)}};D.T!==null?o(!0):d.isTransition=!1,l(d),o=t.pending,o===null?(d.next=t.pending=d,Kp(t,d)):(d.next=o.next,t.pending=o.next=d)}}function Kp(e,t){var o=t.action,l=t.payload,u=e.state;if(t.isTransition){var d=D.T,b={};D.T=b;try{var R=o(u,l),O=D.S;O!==null&&O(b,R),Qp(e,t,R)}catch(K){ff(e,t,K)}finally{d!==null&&b.types!==null&&(d.types=b.types),D.T=d}}else try{d=o(u,l),Qp(e,t,d)}catch(K){ff(e,t,K)}}function Qp(e,t,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(l){Ip(e,t,l)},function(l){return ff(e,t,l)}):Ip(e,t,o)}function Ip(e,t,o){t.status="fulfilled",t.value=o,Fp(t),e.state=o,t=e.pending,t!==null&&(o=t.next,o===t?e.pending=null:(o=o.next,t.next=o,Kp(e,o)))}function ff(e,t,o){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=o,Fp(t),t=t.next;while(t!==l)}e.action=null}function Fp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jp(e,t){return t}function Wp(e,t){if(Oe){var o=Ve.formState;if(o!==null){e:{var l=Ce;if(Oe){if(Qe){t:{for(var u=Qe,d=yn;u.nodeType!==8;){if(!d){u=null;break t}if(u=bn(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){Qe=bn(u.nextSibling),l=u.data==="F!";break e}}Da(l)}l=!1}l&&(t=o[0])}}return o=Ut(),o.memoizedState=o.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jp,lastRenderedState:t},o.queue=l,o=y0.bind(null,Ce,l),l.dispatch=o,l=uf(!1),d=yf.bind(null,Ce,!1,l.queue),l=Ut(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,o=OS.bind(null,Ce,u,d,o),u.dispatch=o,l.memoizedState=e,[t,o,!1]}function Pp(e){var t=ot();return e0(t,qe,e)}function e0(e,t,o){if(t=sf(e,t,Jp)[0],e=is(ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Nl(t)}catch(b){throw b===wr?Ji:b}else l=t;t=ot();var u=t.queue,d=u.dispatch;return o!==t.memoizedState&&(Ce.flags|=2048,Ar(9,{destroy:void 0},NS.bind(null,u,o),null)),[l,d,e]}function NS(e,t){e.action=t}function t0(e){var t=ot(),o=qe;if(o!==null)return e0(t,o,e);ot(),t=t.memoizedState,o=ot();var l=o.queue.dispatch;return o.memoizedState=e,[t,l,!1]}function Ar(e,t,o,l){return e={tag:e,create:o,deps:l,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=rs(),Ce.updateQueue=t),o=t.lastEffect,o===null?t.lastEffect=e.next=e:(l=o.next,o.next=e,e.next=l,t.lastEffect=e),e}function n0(){return ot().memoizedState}function ss(e,t,o,l){var u=Ut();Ce.flags|=e,u.memoizedState=Ar(1|t,{destroy:void 0},o,l===void 0?null:l)}function cs(e,t,o,l){var u=ot();l=l===void 0?null:l;var d=u.memoizedState.inst;qe!==null&&l!==null&&tf(l,qe.memoizedState.deps)?u.memoizedState=Ar(t,d,o,l):(Ce.flags|=e,u.memoizedState=Ar(1|t,d,o,l))}function a0(e,t){ss(8390656,8,e,t)}function df(e,t){cs(2048,8,e,t)}function DS(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=rs(),Ce.updateQueue=t,t.events=[e];else{var o=t.events;o===null?t.events=[e]:o.push(e)}}function o0(e){var t=ot().memoizedState;return DS({ref:t,nextImpl:e}),function(){if((ke&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function r0(e,t){return cs(4,2,e,t)}function l0(e,t){return cs(4,4,e,t)}function i0(e,t){if(typeof t=="function"){e=e();var o=t(e);return function(){typeof o=="function"?o():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function s0(e,t,o){o=o!=null?o.concat([e]):null,cs(4,4,i0.bind(null,t,e),o)}function mf(){}function c0(e,t){var o=ot();t=t===void 0?null:t;var l=o.memoizedState;return t!==null&&tf(t,l[1])?l[0]:(o.memoizedState=[e,t],e)}function u0(e,t){var o=ot();t=t===void 0?null:t;var l=o.memoizedState;if(t!==null&&tf(t,l[1]))return l[0];if(l=e(),_o){Pe(!0);try{e()}finally{Pe(!1)}}return o.memoizedState=[l,t],l}function hf(e,t,o){return o===void 0||(sa&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=o,e=fg(),Ce.lanes|=e,Ga|=e,o)}function f0(e,t,o,l){return tn(o,t)?o:Rr.current!==null?(e=hf(e,o,l),tn(e,t)||(ut=!0),e):(sa&42)===0||(sa&1073741824)!==0&&(Me&261930)===0?(ut=!0,e.memoizedState=o):(e=fg(),Ce.lanes|=e,Ga|=e,t)}function d0(e,t,o,l,u){var d=B.p;B.p=d!==0&&8>d?d:8;var b=D.T,R={};D.T=R,yf(e,!1,t,o);try{var O=u(),K=D.S;if(K!==null&&K(R,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var ne=MS(O,l);Dl(e,t,ne,sn(e))}else Dl(e,t,l,sn(e))}catch(le){Dl(e,t,{then:function(){},status:"rejected",reason:le},sn())}finally{B.p=d,b!==null&&R.types!==null&&(b.types=R.types),D.T=b}}function BS(){}function pf(e,t,o,l){if(e.tag!==5)throw Error(i(476));var u=m0(e).queue;d0(e,u,t,$,o===null?BS:function(){return h0(e),o(l)})}function m0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:$},next:null};var o={};return t.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:o},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function h0(e){var t=m0(e);t.next===null&&(t=e.alternate.memoizedState),Dl(e,t.next.queue,{},sn())}function gf(){return _t(Jl)}function p0(){return ot().memoizedState}function g0(){return ot().memoizedState}function LS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var o=sn();e=ka(o);var l=Ha(t,e,o);l!==null&&(Zt(l,t,o),Ml(l,t,o)),t={cache:Vu()},e.payload=t;return}t=t.return}}function kS(e,t,o){var l=sn();o={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},us(e)?v0(t,o):(o=Nu(e,t,o,l),o!==null&&(Zt(o,e,l),b0(o,t,l)))}function y0(e,t,o){var l=sn();Dl(e,t,o,l)}function Dl(e,t,o,l){var u={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(us(e))v0(t,u);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,o);if(u.hasEagerState=!0,u.eagerState=R,tn(R,b))return Vi(e,t,u,0),Ve===null&&Gi(),!1}catch{}finally{}if(o=Nu(e,t,u,l),o!==null)return Zt(o,e,l),b0(o,t,l),!0}return!1}function yf(e,t,o,l){if(l={lane:2,revertLane:If(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},us(e)){if(t)throw Error(i(479))}else t=Nu(e,o,l,2),t!==null&&Zt(t,e,2)}function us(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function v0(e,t){Cr=as=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function b0(e,t,o){if((o&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,o|=l,t.lanes=o,Rh(e,o)}}var Bl={readContext:_t,use:ls,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};Bl.useEffectEvent=et;var x0={readContext:_t,use:ls,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:a0,useImperativeHandle:function(e,t,o){o=o!=null?o.concat([e]):null,ss(4194308,4,i0.bind(null,t,e),o)},useLayoutEffect:function(e,t){return ss(4194308,4,e,t)},useInsertionEffect:function(e,t){ss(4,2,e,t)},useMemo:function(e,t){var o=Ut();t=t===void 0?null:t;var l=e();if(_o){Pe(!0);try{e()}finally{Pe(!1)}}return o.memoizedState=[l,t],l},useReducer:function(e,t,o){var l=Ut();if(o!==void 0){var u=o(t);if(_o){Pe(!0);try{o(t)}finally{Pe(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=kS.bind(null,Ce,e),[l.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:function(e){e=uf(e);var t=e.queue,o=y0.bind(null,Ce,t);return t.dispatch=o,[e.memoizedState,o]},useDebugValue:mf,useDeferredValue:function(e,t){var o=Ut();return hf(o,e,t)},useTransition:function(){var e=uf(!1);return e=d0.bind(null,Ce,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,o){var l=Ce,u=Ut();if(Oe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=t(),Ve===null)throw Error(i(349));(Me&127)!==0||qp(l,t,o)}u.memoizedState=o;var d={value:o,getSnapshot:t};return u.queue=d,a0(Gp.bind(null,l,d,e),[e]),l.flags|=2048,Ar(9,{destroy:void 0},Yp.bind(null,l,d,o,t),null),o},useId:function(){var e=Ut(),t=Ve.identifierPrefix;if(Oe){var o=Yn,l=qn;o=(l&~(1<<32-en(l)-1)).toString(32)+o,t="_"+t+"R_"+o,o=os++,0<o&&(t+="H"+o.toString(32)),t+="_"}else o=jS++,t="_"+t+"r_"+o.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:gf,useFormState:Wp,useActionState:Wp,useOptimistic:function(e){var t=Ut();t.memoizedState=t.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=o,t=yf.bind(null,Ce,!0,o),o.dispatch=t,[e,t]},useMemoCache:lf,useCacheRefresh:function(){return Ut().memoizedState=LS.bind(null,Ce)},useEffectEvent:function(e){var t=Ut(),o={impl:e};return t.memoizedState=o,function(){if((ke&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},vf={readContext:_t,use:ls,useCallback:c0,useContext:_t,useEffect:df,useImperativeHandle:s0,useInsertionEffect:r0,useLayoutEffect:l0,useMemo:u0,useReducer:is,useRef:n0,useState:function(){return is(ca)},useDebugValue:mf,useDeferredValue:function(e,t){var o=ot();return f0(o,qe.memoizedState,e,t)},useTransition:function(){var e=is(ca)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:$p,useId:p0,useHostTransitionStatus:gf,useFormState:Pp,useActionState:Pp,useOptimistic:function(e,t){var o=ot();return Zp(o,qe,e,t)},useMemoCache:lf,useCacheRefresh:g0};vf.useEffectEvent=o0;var S0={readContext:_t,use:ls,useCallback:c0,useContext:_t,useEffect:df,useImperativeHandle:s0,useInsertionEffect:r0,useLayoutEffect:l0,useMemo:u0,useReducer:cf,useRef:n0,useState:function(){return cf(ca)},useDebugValue:mf,useDeferredValue:function(e,t){var o=ot();return qe===null?hf(o,e,t):f0(o,qe.memoizedState,e,t)},useTransition:function(){var e=cf(ca)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:$p,useId:p0,useHostTransitionStatus:gf,useFormState:t0,useActionState:t0,useOptimistic:function(e,t){var o=ot();return qe!==null?Zp(o,qe,e,t):(o.baseState=e,[e,o.queue.dispatch])},useMemoCache:lf,useCacheRefresh:g0};S0.useEffectEvent=o0;function bf(e,t,o,l){t=e.memoizedState,o=o(l,t),o=o==null?t:g({},t,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var xf={enqueueSetState:function(e,t,o){e=e._reactInternals;var l=sn(),u=ka(l);u.payload=t,o!=null&&(u.callback=o),t=Ha(e,u,l),t!==null&&(Zt(t,e,l),Ml(t,e,l))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var l=sn(),u=ka(l);u.tag=1,u.payload=t,o!=null&&(u.callback=o),t=Ha(e,u,l),t!==null&&(Zt(t,e,l),Ml(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=sn(),l=ka(o);l.tag=2,t!=null&&(l.callback=t),t=Ha(e,l,o),t!==null&&(Zt(t,e,o),Ml(t,e,o))}};function w0(e,t,o,l,u,d,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,b):t.prototype&&t.prototype.isPureReactComponent?!Sl(o,l)||!Sl(u,d):!0}function E0(e,t,o,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(o,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(o,l),t.state!==e&&xf.enqueueReplaceState(t,t.state,null)}function Mo(e,t){var o=t;if("ref"in t){o={};for(var l in t)l!=="ref"&&(o[l]=t[l])}if(e=e.defaultProps){o===t&&(o=g({},o));for(var u in e)o[u]===void 0&&(o[u]=e[u])}return o}function R0(e){Yi(e)}function C0(e){console.error(e)}function T0(e){Yi(e)}function fs(e,t){try{var o=e.onUncaughtError;o(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function A0(e,t,o){try{var l=e.onCaughtError;l(o.value,{componentStack:o.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Sf(e,t,o){return o=ka(o),o.tag=3,o.payload={element:null},o.callback=function(){fs(e,t)},o}function _0(e){return e=ka(e),e.tag=3,e}function M0(e,t,o,l){var u=o.type.getDerivedStateFromError;if(typeof u=="function"){var d=l.value;e.payload=function(){return u(d)},e.callback=function(){A0(t,o,l)}}var b=o.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){A0(t,o,l),typeof u!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var R=l.stack;this.componentDidCatch(l.value,{componentStack:R!==null?R:""})})}function HS(e,t,o,l,u){if(o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=o.alternate,t!==null&&br(t,o,u,!0),o=an.current,o!==null){switch(o.tag){case 31:case 13:return vn===null?Es():o.alternate===null&&tt===0&&(tt=3),o.flags&=-257,o.flags|=65536,o.lanes=u,l===Wi?o.flags|=16384:(t=o.updateQueue,t===null?o.updateQueue=new Set([l]):t.add(l),Zf(e,l,u)),!1;case 22:return o.flags|=65536,l===Wi?o.flags|=16384:(t=o.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},o.updateQueue=t):(o=t.retryQueue,o===null?t.retryQueue=new Set([l]):o.add(l)),Zf(e,l,u)),!1}throw Error(i(435,o.tag))}return Zf(e,l,u),Es(),!1}if(Oe)return t=an.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Uu&&(e=Error(i(422),{cause:l}),Rl(hn(e,o)))):(l!==Uu&&(t=Error(i(423),{cause:l}),Rl(hn(t,o))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=hn(l,o),u=Sf(e.stateNode,l,u),Fu(e,u),tt!==4&&(tt=2)),!1;var d=Error(i(520),{cause:l});if(d=hn(d,o),Gl===null?Gl=[d]:Gl.push(d),tt!==4&&(tt=2),t===null)return!0;l=hn(l,o),o=t;do{switch(o.tag){case 3:return o.flags|=65536,e=u&-u,o.lanes|=e,e=Sf(o.stateNode,l,e),Fu(o,e),!1;case 1:if(t=o.type,d=o.stateNode,(o.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Va===null||!Va.has(d))))return o.flags|=65536,u&=-u,o.lanes|=u,u=_0(u),M0(u,e,o,l),Fu(o,u),!1}o=o.return}while(o!==null);return!1}var wf=Error(i(461)),ut=!1;function Mt(e,t,o,l){t.child=e===null?Np(t,null,o,l):Ao(t,e.child,o,l)}function j0(e,t,o,l,u){o=o.render;var d=t.ref;if("ref"in l){var b={};for(var R in l)R!=="ref"&&(b[R]=l[R])}else b=l;return Eo(t),l=nf(e,t,o,b,d,u),R=af(),e!==null&&!ut?(of(e,t,u),ua(e,t,u)):(Oe&&R&&ku(t),t.flags|=1,Mt(e,t,l,u),t.child)}function z0(e,t,o,l,u){if(e===null){var d=o.type;return typeof d=="function"&&!Du(d)&&d.defaultProps===void 0&&o.compare===null?(t.tag=15,t.type=d,O0(e,t,d,l,u)):(e=Zi(o.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!jf(e,u)){var b=d.memoizedProps;if(o=o.compare,o=o!==null?o:Sl,o(b,l)&&e.ref===t.ref)return ua(e,t,u)}return t.flags|=1,e=oa(d,l),e.ref=t.ref,e.return=t,t.child=e}function O0(e,t,o,l,u){if(e!==null){var d=e.memoizedProps;if(Sl(d,l)&&e.ref===t.ref)if(ut=!1,t.pendingProps=l=d,jf(e,u))(e.flags&131072)!==0&&(ut=!0);else return t.lanes=e.lanes,ua(e,t,u)}return Ef(e,t,o,l,u)}function N0(e,t,o,l){var u=l.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|o:o,e!==null){for(l=t.child=e.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~d}else l=0,t.child=null;return D0(e,t,d,o,l)}if((o&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Fi(t,d!==null?d.cachePool:null),d!==null?Lp(t,d):Wu(),kp(t);else return l=t.lanes=536870912,D0(e,t,d!==null?d.baseLanes|o:o,o,l)}else d!==null?(Fi(t,d.cachePool),Lp(t,d),$a(),t.memoizedState=null):(e!==null&&Fi(t,null),Wu(),$a());return Mt(e,t,u,o),t.child}function Ll(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function D0(e,t,o,l,u){var d=Zu();return d=d===null?null:{parent:st._currentValue,pool:d},t.memoizedState={baseLanes:o,cachePool:d},e!==null&&Fi(t,null),Wu(),kp(t),e!==null&&br(e,t,l,!0),t.childLanes=u,null}function ds(e,t){return t=hs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function B0(e,t,o){return Ao(t,e.child,null,o),e=ds(t,t.pendingProps),e.flags|=2,on(t),t.memoizedState=null,e}function US(e,t,o){var l=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(l.mode==="hidden")return e=ds(t,l),t.lanes=536870912,Ll(null,e);if(ef(t),(e=Qe)?(e=Kg(e,yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:qn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},o=vp(e),o.return=t,t.child=o,At=t,Qe=null)):e=null,e===null)throw Da(t);return t.lanes=536870912,null}return ds(t,l)}var d=e.memoizedState;if(d!==null){var b=d.dehydrated;if(ef(t),u)if(t.flags&256)t.flags&=-257,t=B0(e,t,o);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ut||br(e,t,o,!1),u=(o&e.childLanes)!==0,ut||u){if(l=Ve,l!==null&&(b=Ch(l,o),b!==0&&b!==d.retryLane))throw d.retryLane=b,bo(e,b),Zt(l,e,b),wf;Es(),t=B0(e,t,o)}else e=d.treeContext,Qe=bn(b.nextSibling),At=t,Oe=!0,Na=null,yn=!1,e!==null&&Sp(t,e),t=ds(t,l),t.flags|=4096;return t}return e=oa(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ms(e,t){var o=t.ref;if(o===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(e===null||e.ref!==o)&&(t.flags|=4194816)}}function Ef(e,t,o,l,u){return Eo(t),o=nf(e,t,o,l,void 0,u),l=af(),e!==null&&!ut?(of(e,t,u),ua(e,t,u)):(Oe&&l&&ku(t),t.flags|=1,Mt(e,t,o,u),t.child)}function L0(e,t,o,l,u,d){return Eo(t),t.updateQueue=null,o=Up(t,l,o,u),Hp(e),l=af(),e!==null&&!ut?(of(e,t,d),ua(e,t,d)):(Oe&&l&&ku(t),t.flags|=1,Mt(e,t,o,d),t.child)}function k0(e,t,o,l,u){if(Eo(t),t.stateNode===null){var d=pr,b=o.contextType;typeof b=="object"&&b!==null&&(d=_t(b)),d=new o(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=xf,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},Qu(t),b=o.contextType,d.context=typeof b=="object"&&b!==null?_t(b):pr,d.state=t.memoizedState,b=o.getDerivedStateFromProps,typeof b=="function"&&(bf(t,o,b,l),d.state=t.memoizedState),typeof o.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&&xf.enqueueReplaceState(d,d.state,null),zl(t,l,d,u),jl(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var R=t.memoizedProps,O=Mo(o,R);d.props=O;var K=d.context,ne=o.contextType;b=pr,typeof ne=="object"&&ne!==null&&(b=_t(ne));var le=o.getDerivedStateFromProps;ne=typeof le=="function"||typeof d.getSnapshotBeforeUpdate=="function",R=t.pendingProps!==R,ne||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(R||K!==b)&&E0(t,d,l,b),La=!1;var Q=t.memoizedState;d.state=Q,zl(t,l,d,u),jl(),K=t.memoizedState,R||Q!==K||La?(typeof le=="function"&&(bf(t,o,le,l),K=t.memoizedState),(O=La||w0(t,o,O,l,Q,K,b))?(ne||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=l,t.memoizedState=K),d.props=l,d.state=K,d.context=b,l=O):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,Iu(e,t),b=t.memoizedProps,ne=Mo(o,b),d.props=ne,le=t.pendingProps,Q=d.context,K=o.contextType,O=pr,typeof K=="object"&&K!==null&&(O=_t(K)),R=o.getDerivedStateFromProps,(K=typeof R=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b!==le||Q!==O)&&E0(t,d,l,O),La=!1,Q=t.memoizedState,d.state=Q,zl(t,l,d,u),jl();var F=t.memoizedState;b!==le||Q!==F||La||e!==null&&e.dependencies!==null&&Qi(e.dependencies)?(typeof R=="function"&&(bf(t,o,R,l),F=t.memoizedState),(ne=La||w0(t,o,ne,l,Q,F,O)||e!==null&&e.dependencies!==null&&Qi(e.dependencies))?(K||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,F,O),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,F,O)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=F),d.props=l,d.state=F,d.context=O,l=ne):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,ms(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,o=l&&typeof o.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=Ao(t,e.child,null,u),t.child=Ao(t,null,o,u)):Mt(e,t,o,u),t.memoizedState=d.state,e=t.child):e=ua(e,t,u),e}function H0(e,t,o,l){return So(),t.flags|=256,Mt(e,t,o,l),t.child}var Rf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cf(e){return{baseLanes:e,cachePool:Ap()}}function Tf(e,t,o){return e=e!==null?e.childLanes&~o:0,t&&(e|=ln),e}function U0(e,t,o){var l=t.pendingProps,u=!1,d=(t.flags&128)!==0,b;if((b=d)||(b=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),b&&(u=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(u?Ua(t):$a(),(e=Qe)?(e=Kg(e,yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:qn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},o=vp(e),o.return=t,t.child=o,At=t,Qe=null)):e=null,e===null)throw Da(t);return sd(e)?t.lanes=32:t.lanes=536870912,null}var R=l.children;return l=l.fallback,u?($a(),u=t.mode,R=hs({mode:"hidden",children:R},u),l=xo(l,u,o,null),R.return=t,l.return=t,R.sibling=l,t.child=R,l=t.child,l.memoizedState=Cf(o),l.childLanes=Tf(e,b,o),t.memoizedState=Rf,Ll(null,l)):(Ua(t),Af(t,R))}var O=e.memoizedState;if(O!==null&&(R=O.dehydrated,R!==null)){if(d)t.flags&256?(Ua(t),t.flags&=-257,t=_f(e,t,o)):t.memoizedState!==null?($a(),t.child=e.child,t.flags|=128,t=null):($a(),R=l.fallback,u=t.mode,l=hs({mode:"visible",children:l.children},u),R=xo(R,u,o,null),R.flags|=2,l.return=t,R.return=t,l.sibling=R,t.child=l,Ao(t,e.child,null,o),l=t.child,l.memoizedState=Cf(o),l.childLanes=Tf(e,b,o),t.memoizedState=Rf,t=Ll(null,l));else if(Ua(t),sd(R)){if(b=R.nextSibling&&R.nextSibling.dataset,b)var K=b.dgst;b=K,l=Error(i(419)),l.stack="",l.digest=b,Rl({value:l,source:null,stack:null}),t=_f(e,t,o)}else if(ut||br(e,t,o,!1),b=(o&e.childLanes)!==0,ut||b){if(b=Ve,b!==null&&(l=Ch(b,o),l!==0&&l!==O.retryLane))throw O.retryLane=l,bo(e,l),Zt(b,e,l),wf;id(R)||Es(),t=_f(e,t,o)}else id(R)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,Qe=bn(R.nextSibling),At=t,Oe=!0,Na=null,yn=!1,e!==null&&Sp(t,e),t=Af(t,l.children),t.flags|=4096);return t}return u?($a(),R=l.fallback,u=t.mode,O=e.child,K=O.sibling,l=oa(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,K!==null?R=oa(K,R):(R=xo(R,u,o,null),R.flags|=2),R.return=t,l.return=t,l.sibling=R,t.child=l,Ll(null,l),l=t.child,R=e.child.memoizedState,R===null?R=Cf(o):(u=R.cachePool,u!==null?(O=st._currentValue,u=u.parent!==O?{parent:O,pool:O}:u):u=Ap(),R={baseLanes:R.baseLanes|o,cachePool:u}),l.memoizedState=R,l.childLanes=Tf(e,b,o),t.memoizedState=Rf,Ll(e.child,l)):(Ua(t),o=e.child,e=o.sibling,o=oa(o,{mode:"visible",children:l.children}),o.return=t,o.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=o,t.memoizedState=null,o)}function Af(e,t){return t=hs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function hs(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function _f(e,t,o){return Ao(t,e.child,null,o),e=Af(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $0(e,t,o){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Yu(e.return,t,o)}function Mf(e,t,o,l,u,d){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:u,treeForkCount:d}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=l,b.tail=o,b.tailMode=u,b.treeForkCount=d)}function q0(e,t,o){var l=t.pendingProps,u=l.revealOrder,d=l.tail;l=l.children;var b=at.current,R=(b&2)!==0;if(R?(b=b&1|2,t.flags|=128):b&=1,W(at,b),Mt(e,t,l,o),l=Oe?El:0,!R&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$0(e,o,t);else if(e.tag===19)$0(e,o,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(u){case"forwards":for(o=t.child,u=null;o!==null;)e=o.alternate,e!==null&&ns(e)===null&&(u=o),o=o.sibling;o=u,o===null?(u=t.child,t.child=null):(u=o.sibling,o.sibling=null),Mf(t,!1,u,o,d,l);break;case"backwards":case"unstable_legacy-backwards":for(o=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&ns(e)===null){t.child=u;break}e=u.sibling,u.sibling=o,o=u,u=e}Mf(t,!0,o,null,d,l);break;case"together":Mf(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ua(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),Ga|=t.lanes,(o&t.childLanes)===0)if(e!==null){if(br(e,t,o,!1),(o&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,o=oa(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=oa(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function jf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qi(e)))}function $S(e,t,o){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Ba(t,st,e.memoizedState.cache),So();break;case 27:case 5:Se(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Ba(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ef(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ua(t),t.flags|=128,null):(o&t.child.childLanes)!==0?U0(e,t,o):(Ua(t),e=ua(e,t,o),e!==null?e.sibling:null);Ua(t);break;case 19:var u=(e.flags&128)!==0;if(l=(o&t.childLanes)!==0,l||(br(e,t,o,!1),l=(o&t.childLanes)!==0),u){if(l)return q0(e,t,o);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),W(at,at.current),l)break;return null;case 22:return t.lanes=0,N0(e,t,o,t.pendingProps);case 24:Ba(t,st,e.memoizedState.cache)}return ua(e,t,o)}function Y0(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps)ut=!0;else{if(!jf(e,o)&&(t.flags&128)===0)return ut=!1,$S(e,t,o);ut=(e.flags&131072)!==0}else ut=!1,Oe&&(t.flags&1048576)!==0&&xp(t,El,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Co(t.elementType),t.type=e,typeof e=="function")Du(e)?(l=Mo(e,l),t.tag=1,t=k0(null,t,e,l,o)):(t.tag=0,t=Ef(null,t,e,l,o));else{if(e!=null){var u=e.$$typeof;if(u===z){t.tag=11,t=j0(null,t,e,l,o);break e}else if(u===H){t.tag=14,t=z0(null,t,e,l,o);break e}}throw t=N(e)||e,Error(i(306,t,""))}}return t;case 0:return Ef(e,t,t.type,t.pendingProps,o);case 1:return l=t.type,u=Mo(l,t.pendingProps),k0(e,t,l,u,o);case 3:e:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));l=t.pendingProps;var d=t.memoizedState;u=d.element,Iu(e,t),zl(t,l,null,o);var b=t.memoizedState;if(l=b.cache,Ba(t,st,l),l!==d.cache&&Gu(t,[st],o,!0),jl(),l=b.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=H0(e,t,l,o);break e}else if(l!==u){u=hn(Error(i(424)),t),Rl(u),t=H0(e,t,l,o);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(Qe=bn(e.firstChild),At=t,Oe=!0,Na=null,yn=!0,o=Np(t,null,l,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(So(),l===u){t=ua(e,t,o);break e}Mt(e,t,l,o)}t=t.child}return t;case 26:return ms(e,t),e===null?(o=Pg(t.type,null,t.pendingProps,null))?t.memoizedState=o:Oe||(o=t.type,e=t.pendingProps,l=js(ce.current).createElement(o),l[Tt]=t,l[$t]=e,jt(l,o,e),yt(l),t.stateNode=l):t.memoizedState=Pg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Se(t),e===null&&Oe&&(l=t.stateNode=Fg(t.type,t.pendingProps,ce.current),At=t,yn=!0,u=Qe,Qa(t.type)?(cd=u,Qe=bn(l.firstChild)):Qe=u),Mt(e,t,t.pendingProps.children,o),ms(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((u=l=Qe)&&(l=gw(l,t.type,t.pendingProps,yn),l!==null?(t.stateNode=l,At=t,Qe=bn(l.firstChild),yn=!1,u=!0):u=!1),u||Da(t)),Se(t),u=t.type,d=t.pendingProps,b=e!==null?e.memoizedProps:null,l=d.children,od(u,d)?l=null:b!==null&&od(u,b)&&(t.flags|=32),t.memoizedState!==null&&(u=nf(e,t,zS,null,null,o),Jl._currentValue=u),ms(e,t),Mt(e,t,l,o),t.child;case 6:return e===null&&Oe&&((e=o=Qe)&&(o=yw(o,t.pendingProps,yn),o!==null?(t.stateNode=o,At=t,Qe=null,e=!0):e=!1),e||Da(t)),null;case 13:return U0(e,t,o);case 4:return me(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ao(t,null,l,o):Mt(e,t,l,o),t.child;case 11:return j0(e,t,t.type,t.pendingProps,o);case 7:return Mt(e,t,t.pendingProps,o),t.child;case 8:return Mt(e,t,t.pendingProps.children,o),t.child;case 12:return Mt(e,t,t.pendingProps.children,o),t.child;case 10:return l=t.pendingProps,Ba(t,t.type,l.value),Mt(e,t,l.children,o),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,Eo(t),u=_t(u),l=l(u),t.flags|=1,Mt(e,t,l,o),t.child;case 14:return z0(e,t,t.type,t.pendingProps,o);case 15:return O0(e,t,t.type,t.pendingProps,o);case 19:return q0(e,t,o);case 31:return US(e,t,o);case 22:return N0(e,t,o,t.pendingProps);case 24:return Eo(t),l=_t(st),e===null?(u=Zu(),u===null&&(u=Ve,d=Vu(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=o),u=d),t.memoizedState={parent:l,cache:u},Qu(t),Ba(t,st,u)):((e.lanes&o)!==0&&(Iu(e,t),zl(t,null,null,o),jl()),u=e.memoizedState,d=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Ba(t,st,l)):(l=d.cache,Ba(t,st,l),l!==u.cache&&Gu(t,[st],o,!0))),Mt(e,t,t.pendingProps.children,o),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fa(e){e.flags|=4}function zf(e,t,o,l,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(pg())e.flags|=8192;else throw To=Wi,Ku}else e.flags&=-16777217}function G0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!oy(t))if(pg())e.flags|=8192;else throw To=Wi,Ku}function ps(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wh():536870912,e.lanes|=t,zr|=t)}function kl(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ie(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,l=0;if(t)for(var u=e.child;u!==null;)o|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=o,t}function qS(e,t,o){var l=t.pendingProps;switch(Hu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ie(t),null;case 1:return Ie(t),null;case 3:return o=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ia(st),he(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(vr(t)?fa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$u())),Ie(t),null;case 26:var u=t.type,d=t.memoizedState;return e===null?(fa(t),d!==null?(Ie(t),G0(t,d)):(Ie(t),zf(t,u,null,l,o))):d?d!==e.memoizedState?(fa(t),Ie(t),G0(t,d)):(Ie(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&fa(t),Ie(t),zf(t,u,e,l,o)),null;case 27:if(Ne(t),o=ce.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&fa(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ie(t),null}e=ae.current,vr(t)?wp(t):(e=Fg(u,l,o),t.stateNode=e,fa(t))}return Ie(t),null;case 5:if(Ne(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&fa(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ie(t),null}if(d=ae.current,vr(t))wp(t);else{var b=js(ce.current);switch(d){case 1:d=b.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=b.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=b.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof l.is=="string"?b.createElement("select",{is:l.is}):b.createElement("select"),l.multiple?d.multiple=!0:l.size&&(d.size=l.size);break;default:d=typeof l.is=="string"?b.createElement(u,{is:l.is}):b.createElement(u)}}d[Tt]=t,d[$t]=l;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(jt(d,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&fa(t)}}return Ie(t),zf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,o),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&fa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(e=ce.current,vr(t)){if(e=t.stateNode,o=t.memoizedProps,l=null,u=At,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===o||l!==null&&l.suppressHydrationWarning===!0||Ug(e.nodeValue,o)),e||Da(t,!0)}else e=js(e).createTextNode(l),e[Tt]=t,t.stateNode=e}return Ie(t),null;case 31:if(o=t.memoizedState,e===null||e.memoizedState!==null){if(l=vr(t),o!==null){if(e===null){if(!l)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[Tt]=t}else So(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),e=!1}else o=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),e=!0;if(!e)return t.flags&256?(on(t),t):(on(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Ie(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=vr(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[Tt]=t}else So(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),u=!1}else u=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(on(t),t):(on(t),null)}return on(t),(t.flags&128)!==0?(t.lanes=o,t):(o=l!==null,e=e!==null&&e.memoizedState!==null,o&&(l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==u&&(l.flags|=2048)),o!==e&&o&&(t.child.flags|=8192),ps(t,t.updateQueue),Ie(t),null);case 4:return he(),e===null&&Pf(t.stateNode.containerInfo),Ie(t),null;case 10:return ia(t.type),Ie(t),null;case 19:if(Y(at),l=t.memoizedState,l===null)return Ie(t),null;if(u=(t.flags&128)!==0,d=l.rendering,d===null)if(u)kl(l,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=ns(e),d!==null){for(t.flags|=128,kl(l,!1),e=d.updateQueue,t.updateQueue=e,ps(t,e),t.subtreeFlags=0,e=o,o=t.child;o!==null;)yp(o,e),o=o.sibling;return W(at,at.current&1|2),Oe&&ra(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ct()>xs&&(t.flags|=128,u=!0,kl(l,!1),t.lanes=4194304)}else{if(!u)if(e=ns(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,ps(t,e),kl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!d.alternate&&!Oe)return Ie(t),null}else 2*Ct()-l.renderingStartTime>xs&&o!==536870912&&(t.flags|=128,u=!0,kl(l,!1),t.lanes=4194304);l.isBackwards?(d.sibling=t.child,t.child=d):(e=l.last,e!==null?e.sibling=d:t.child=d,l.last=d)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ct(),e.sibling=null,o=at.current,W(at,u?o&1|2:o&1),Oe&&ra(t,l.treeForkCount),e):(Ie(t),null);case 22:case 23:return on(t),Pu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(o&536870912)!==0&&(t.flags&128)===0&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),o=t.updateQueue,o!==null&&ps(t,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==o&&(t.flags|=2048),e!==null&&Y(Ro),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ia(st),Ie(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function YS(e,t){switch(Hu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ia(st),he(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ne(t),null;case 31:if(t.memoizedState!==null){if(on(t),t.alternate===null)throw Error(i(340));So()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(on(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));So()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(at),null;case 4:return he(),null;case 10:return ia(t.type),null;case 22:case 23:return on(t),Pu(),e!==null&&Y(Ro),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ia(st),null;case 25:return null;default:return null}}function V0(e,t){switch(Hu(t),t.tag){case 3:ia(st),he();break;case 26:case 27:case 5:Ne(t);break;case 4:he();break;case 31:t.memoizedState!==null&&on(t);break;case 13:on(t);break;case 19:Y(at);break;case 10:ia(t.type);break;case 22:case 23:on(t),Pu(),e!==null&&Y(Ro);break;case 24:ia(st)}}function Hl(e,t){try{var o=t.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var u=l.next;o=u;do{if((o.tag&e)===e){l=void 0;var d=o.create,b=o.inst;l=d(),b.destroy=l}o=o.next}while(o!==u)}}catch(R){Ue(t,t.return,R)}}function qa(e,t,o){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var d=u.next;l=d;do{if((l.tag&e)===e){var b=l.inst,R=b.destroy;if(R!==void 0){b.destroy=void 0,u=t;var O=o,K=R;try{K()}catch(ne){Ue(u,O,ne)}}}l=l.next}while(l!==d)}}catch(ne){Ue(t,t.return,ne)}}function X0(e){var t=e.updateQueue;if(t!==null){var o=e.stateNode;try{Bp(t,o)}catch(l){Ue(e,e.return,l)}}}function Z0(e,t,o){o.props=Mo(e.type,e.memoizedProps),o.state=e.memoizedState;try{o.componentWillUnmount()}catch(l){Ue(e,t,l)}}function Ul(e,t){try{var o=e.ref;if(o!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof o=="function"?e.refCleanup=o(l):o.current=l}}catch(u){Ue(e,t,u)}}function Gn(e,t){var o=e.ref,l=e.refCleanup;if(o!==null)if(typeof l=="function")try{l()}catch(u){Ue(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(u){Ue(e,t,u)}else o.current=null}function K0(e){var t=e.type,o=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":o.autoFocus&&l.focus();break e;case"img":o.src?l.src=o.src:o.srcSet&&(l.srcset=o.srcSet)}}catch(u){Ue(e,e.return,u)}}function Of(e,t,o){try{var l=e.stateNode;uw(l,e.type,o,t),l[$t]=t}catch(u){Ue(e,e.return,u)}}function Q0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function Nf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Q0(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&&Qa(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 Df(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,t):(t=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,t.appendChild(e),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=na));else if(l!==4&&(l===27&&Qa(e.type)&&(o=e.stateNode,t=null),e=e.child,e!==null))for(Df(e,t,o),e=e.sibling;e!==null;)Df(e,t,o),e=e.sibling}function gs(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(l!==4&&(l===27&&Qa(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(gs(e,t,o),e=e.sibling;e!==null;)gs(e,t,o),e=e.sibling}function I0(e){var t=e.stateNode,o=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);jt(t,l,o),t[Tt]=e,t[$t]=o}catch(d){Ue(e,e.return,d)}}var da=!1,ft=!1,Bf=!1,F0=typeof WeakSet=="function"?WeakSet:Set,vt=null;function GS(e,t){if(e=e.containerInfo,nd=ks,e=sp(e),Au(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var u=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{o.nodeType,d.nodeType}catch{o=null;break e}var b=0,R=-1,O=-1,K=0,ne=0,le=e,Q=null;t:for(;;){for(var F;le!==o||u!==0&&le.nodeType!==3||(R=b+u),le!==d||l!==0&&le.nodeType!==3||(O=b+l),le.nodeType===3&&(b+=le.nodeValue.length),(F=le.firstChild)!==null;)Q=le,le=F;for(;;){if(le===e)break t;if(Q===o&&++K===u&&(R=b),Q===d&&++ne===l&&(O=b),(F=le.nextSibling)!==null)break;le=Q,Q=le.parentNode}le=F}o=R===-1||O===-1?null:{start:R,end:O}}else o=null}o=o||{start:0,end:0}}else o=null;for(ad={focusedElem:e,selectionRange:o},ks=!1,vt=t;vt!==null;)if(t=vt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,vt=e;else for(;vt!==null;){switch(t=vt,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(o=0;o<e.length;o++)u=e[o],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,o=t,u=d.memoizedProps,d=d.memoizedState,l=o.stateNode;try{var pe=Mo(o.type,u);e=l.getSnapshotBeforeUpdate(pe,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Ue(o,o.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,o=e.nodeType,o===9)ld(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ld(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,vt=e;break}vt=t.return}}function J0(e,t,o){var l=o.flags;switch(o.tag){case 0:case 11:case 15:ha(e,o),l&4&&Hl(5,o);break;case 1:if(ha(e,o),l&4)if(e=o.stateNode,t===null)try{e.componentDidMount()}catch(b){Ue(o,o.return,b)}else{var u=Mo(o.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ue(o,o.return,b)}}l&64&&X0(o),l&512&&Ul(o,o.return);break;case 3:if(ha(e,o),l&64&&(e=o.updateQueue,e!==null)){if(t=null,o.child!==null)switch(o.child.tag){case 27:case 5:t=o.child.stateNode;break;case 1:t=o.child.stateNode}try{Bp(e,t)}catch(b){Ue(o,o.return,b)}}break;case 27:t===null&&l&4&&I0(o);case 26:case 5:ha(e,o),t===null&&l&4&&K0(o),l&512&&Ul(o,o.return);break;case 12:ha(e,o);break;case 31:ha(e,o),l&4&&eg(e,o);break;case 13:ha(e,o),l&4&&tg(e,o),l&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(o=WS.bind(null,o),vw(e,o))));break;case 22:if(l=o.memoizedState!==null||da,!l){t=t!==null&&t.memoizedState!==null||ft,u=da;var d=ft;da=l,(ft=t)&&!d?pa(e,o,(o.subtreeFlags&8772)!==0):ha(e,o),da=u,ft=d}break;case 30:break;default:ha(e,o)}}function W0(e){var t=e.alternate;t!==null&&(e.alternate=null,W0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&uu(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 Je=null,Yt=!1;function ma(e,t,o){for(o=o.child;o!==null;)P0(e,t,o),o=o.sibling}function P0(e,t,o){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Ma,o)}catch{}switch(o.tag){case 26:ft||Gn(o,t),ma(e,t,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:ft||Gn(o,t);var l=Je,u=Yt;Qa(o.type)&&(Je=o.stateNode,Yt=!1),ma(e,t,o),Ql(o.stateNode),Je=l,Yt=u;break;case 5:ft||Gn(o,t);case 6:if(l=Je,u=Yt,Je=null,ma(e,t,o),Je=l,Yt=u,Je!==null)if(Yt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(o.stateNode)}catch(d){Ue(o,t,d)}else try{Je.removeChild(o.stateNode)}catch(d){Ue(o,t,d)}break;case 18:Je!==null&&(Yt?(e=Je,Xg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),Ur(e)):Xg(Je,o.stateNode));break;case 4:l=Je,u=Yt,Je=o.stateNode.containerInfo,Yt=!0,ma(e,t,o),Je=l,Yt=u;break;case 0:case 11:case 14:case 15:qa(2,o,t),ft||qa(4,o,t),ma(e,t,o);break;case 1:ft||(Gn(o,t),l=o.stateNode,typeof l.componentWillUnmount=="function"&&Z0(o,t,l)),ma(e,t,o);break;case 21:ma(e,t,o);break;case 22:ft=(l=ft)||o.memoizedState!==null,ma(e,t,o),ft=l;break;default:ma(e,t,o)}}function eg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ur(e)}catch(o){Ue(t,t.return,o)}}}function tg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ur(e)}catch(o){Ue(t,t.return,o)}}function VS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new F0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new F0),t;default:throw Error(i(435,e.tag))}}function ys(e,t){var o=VS(e);t.forEach(function(l){if(!o.has(l)){o.add(l);var u=PS.bind(null,e,l);l.then(u,u)}})}function Gt(e,t){var o=t.deletions;if(o!==null)for(var l=0;l<o.length;l++){var u=o[l],d=e,b=t,R=b;e:for(;R!==null;){switch(R.tag){case 27:if(Qa(R.type)){Je=R.stateNode,Yt=!1;break e}break;case 5:Je=R.stateNode,Yt=!1;break e;case 3:case 4:Je=R.stateNode.containerInfo,Yt=!0;break e}R=R.return}if(Je===null)throw Error(i(160));P0(d,b,u),Je=null,Yt=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ng(t,e),t=t.sibling}var An=null;function ng(e,t){var o=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Gt(t,e),Vt(e),l&4&&(qa(3,e,e.return),Hl(3,e),qa(5,e,e.return));break;case 1:Gt(t,e),Vt(e),l&512&&(ft||o===null||Gn(o,o.return)),l&64&&da&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(o=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=o===null?l:o.concat(l))));break;case 26:var u=An;if(Gt(t,e),Vt(e),l&512&&(ft||o===null||Gn(o,o.return)),l&4){var d=o!==null?o.memoizedState:null;if(l=e.memoizedState,o===null)if(l===null)if(e.stateNode===null){e:{l=e.type,o=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":d=u.getElementsByTagName("title")[0],(!d||d[dl]||d[Tt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(l),u.head.insertBefore(d,u.querySelector("head > title"))),jt(d,l,o),d[Tt]=e,yt(d),l=d;break e;case"link":var b=ny("link","href",u).get(l+(o.href||""));if(b){for(var R=0;R<b.length;R++)if(d=b[R],d.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&d.getAttribute("rel")===(o.rel==null?null:o.rel)&&d.getAttribute("title")===(o.title==null?null:o.title)&&d.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){b.splice(R,1);break t}}d=u.createElement(l),jt(d,l,o),u.head.appendChild(d);break;case"meta":if(b=ny("meta","content",u).get(l+(o.content||""))){for(R=0;R<b.length;R++)if(d=b[R],d.getAttribute("content")===(o.content==null?null:""+o.content)&&d.getAttribute("name")===(o.name==null?null:o.name)&&d.getAttribute("property")===(o.property==null?null:o.property)&&d.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&d.getAttribute("charset")===(o.charSet==null?null:o.charSet)){b.splice(R,1);break t}}d=u.createElement(l),jt(d,l,o),u.head.appendChild(d);break;default:throw Error(i(468,l))}d[Tt]=e,yt(d),l=d}e.stateNode=l}else ay(u,e.type,e.stateNode);else e.stateNode=ty(u,l,e.memoizedProps);else d!==l?(d===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):d.count--,l===null?ay(u,e.type,e.stateNode):ty(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Of(e,e.memoizedProps,o.memoizedProps)}break;case 27:Gt(t,e),Vt(e),l&512&&(ft||o===null||Gn(o,o.return)),o!==null&&l&4&&Of(e,e.memoizedProps,o.memoizedProps);break;case 5:if(Gt(t,e),Vt(e),l&512&&(ft||o===null||Gn(o,o.return)),e.flags&32){u=e.stateNode;try{sr(u,"")}catch(pe){Ue(e,e.return,pe)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Of(e,u,o!==null?o.memoizedProps:u)),l&1024&&(Bf=!0);break;case 6:if(Gt(t,e),Vt(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,o=e.stateNode;try{o.nodeValue=l}catch(pe){Ue(e,e.return,pe)}}break;case 3:if(Ns=null,u=An,An=zs(t.containerInfo),Gt(t,e),An=u,Vt(e),l&4&&o!==null&&o.memoizedState.isDehydrated)try{Ur(t.containerInfo)}catch(pe){Ue(e,e.return,pe)}Bf&&(Bf=!1,ag(e));break;case 4:l=An,An=zs(e.stateNode.containerInfo),Gt(t,e),Vt(e),An=l;break;case 12:Gt(t,e),Vt(e);break;case 31:Gt(t,e),Vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ys(e,l)));break;case 13:Gt(t,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(bs=Ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ys(e,l)));break;case 22:u=e.memoizedState!==null;var O=o!==null&&o.memoizedState!==null,K=da,ne=ft;if(da=K||u,ft=ne||O,Gt(t,e),ft=ne,da=K,Vt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(o===null||O||da||ft||jo(e)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){O=o=t;try{if(d=O.stateNode,u)b=d.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{R=O.stateNode;var le=O.memoizedProps.style,Q=le!=null&&le.hasOwnProperty("display")?le.display:null;R.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(pe){Ue(O,O.return,pe)}}}else if(t.tag===6){if(o===null){O=t;try{O.stateNode.nodeValue=u?"":O.memoizedProps}catch(pe){Ue(O,O.return,pe)}}}else if(t.tag===18){if(o===null){O=t;try{var F=O.stateNode;u?Zg(F,!0):Zg(O.stateNode,!1)}catch(pe){Ue(O,O.return,pe)}}}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;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(o=l.retryQueue,o!==null&&(l.retryQueue=null,ys(e,o))));break;case 19:Gt(t,e),Vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ys(e,l)));break;case 30:break;case 21:break;default:Gt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{for(var o,l=e.return;l!==null;){if(Q0(l)){o=l;break}l=l.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var u=o.stateNode,d=Nf(e);gs(e,d,u);break;case 5:var b=o.stateNode;o.flags&32&&(sr(b,""),o.flags&=-33);var R=Nf(e);gs(e,R,b);break;case 3:case 4:var O=o.stateNode.containerInfo,K=Nf(e);Df(e,K,O);break;default:throw Error(i(161))}}catch(ne){Ue(e,e.return,ne)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ag(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ag(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ha(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)J0(e,t.alternate,t),t=t.sibling}function jo(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qa(4,t,t.return),jo(t);break;case 1:Gn(t,t.return);var o=t.stateNode;typeof o.componentWillUnmount=="function"&&Z0(t,t.return,o),jo(t);break;case 27:Ql(t.stateNode);case 26:case 5:Gn(t,t.return),jo(t);break;case 22:t.memoizedState===null&&jo(t);break;case 30:jo(t);break;default:jo(t)}e=e.sibling}}function pa(e,t,o){for(o=o&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,d=t,b=d.flags;switch(d.tag){case 0:case 11:case 15:pa(u,d,o),Hl(4,d);break;case 1:if(pa(u,d,o),l=d,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(K){Ue(l,l.return,K)}if(l=d,u=l.updateQueue,u!==null){var R=l.stateNode;try{var O=u.shared.hiddenCallbacks;if(O!==null)for(u.shared.hiddenCallbacks=null,u=0;u<O.length;u++)Dp(O[u],R)}catch(K){Ue(l,l.return,K)}}o&&b&64&&X0(d),Ul(d,d.return);break;case 27:I0(d);case 26:case 5:pa(u,d,o),o&&l===null&&b&4&&K0(d),Ul(d,d.return);break;case 12:pa(u,d,o);break;case 31:pa(u,d,o),o&&b&4&&eg(u,d);break;case 13:pa(u,d,o),o&&b&4&&tg(u,d);break;case 22:d.memoizedState===null&&pa(u,d,o),Ul(d,d.return);break;case 30:break;default:pa(u,d,o)}t=t.sibling}}function Lf(e,t){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==o&&(e!=null&&e.refCount++,o!=null&&Cl(o))}function kf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e))}function _n(e,t,o,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)og(e,t,o,l),t=t.sibling}function og(e,t,o,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:_n(e,t,o,l),u&2048&&Hl(9,t);break;case 1:_n(e,t,o,l);break;case 3:_n(e,t,o,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e)));break;case 12:if(u&2048){_n(e,t,o,l),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(O){Ue(t,t.return,O)}}else _n(e,t,o,l);break;case 31:_n(e,t,o,l);break;case 13:_n(e,t,o,l);break;case 23:break;case 22:d=t.stateNode,b=t.alternate,t.memoizedState!==null?d._visibility&2?_n(e,t,o,l):$l(e,t):d._visibility&2?_n(e,t,o,l):(d._visibility|=2,_r(e,t,o,l,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Lf(b,t);break;case 24:_n(e,t,o,l),u&2048&&kf(t.alternate,t);break;default:_n(e,t,o,l)}}function _r(e,t,o,l,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,b=t,R=o,O=l,K=b.flags;switch(b.tag){case 0:case 11:case 15:_r(d,b,R,O,u),Hl(8,b);break;case 23:break;case 22:var ne=b.stateNode;b.memoizedState!==null?ne._visibility&2?_r(d,b,R,O,u):$l(d,b):(ne._visibility|=2,_r(d,b,R,O,u)),u&&K&2048&&Lf(b.alternate,b);break;case 24:_r(d,b,R,O,u),u&&K&2048&&kf(b.alternate,b);break;default:_r(d,b,R,O,u)}t=t.sibling}}function $l(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var o=e,l=t,u=l.flags;switch(l.tag){case 22:$l(o,l),u&2048&&Lf(l.alternate,l);break;case 24:$l(o,l),u&2048&&kf(l.alternate,l);break;default:$l(o,l)}t=t.sibling}}var ql=8192;function Mr(e,t,o){if(e.subtreeFlags&ql)for(e=e.child;e!==null;)rg(e,t,o),e=e.sibling}function rg(e,t,o){switch(e.tag){case 26:Mr(e,t,o),e.flags&ql&&e.memoizedState!==null&&jw(o,An,e.memoizedState,e.memoizedProps);break;case 5:Mr(e,t,o);break;case 3:case 4:var l=An;An=zs(e.stateNode.containerInfo),Mr(e,t,o),An=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ql,ql=16777216,Mr(e,t,o),ql=l):Mr(e,t,o));break;default:Mr(e,t,o)}}function lg(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 Yl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var o=0;o<t.length;o++){var l=t[o];vt=l,sg(l,e)}lg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ig(e),e=e.sibling}function ig(e){switch(e.tag){case 0:case 11:case 15:Yl(e),e.flags&2048&&qa(9,e,e.return);break;case 3:Yl(e);break;case 12:Yl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,vs(e)):Yl(e);break;default:Yl(e)}}function vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var o=0;o<t.length;o++){var l=t[o];vt=l,sg(l,e)}lg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qa(8,t,t.return),vs(t);break;case 22:o=t.stateNode,o._visibility&2&&(o._visibility&=-3,vs(t));break;default:vs(t)}e=e.sibling}}function sg(e,t){for(;vt!==null;){var o=vt;switch(o.tag){case 0:case 11:case 15:qa(8,o,t);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var l=o.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Cl(o.memoizedState.cache)}if(l=o.child,l!==null)l.return=o,vt=l;else e:for(o=e;vt!==null;){l=vt;var u=l.sibling,d=l.return;if(W0(l),l===o){vt=null;break e}if(u!==null){u.return=d,vt=u;break e}vt=d}}}var XS={getCacheForType:function(e){var t=_t(st),o=t.data.get(e);return o===void 0&&(o=e(),t.data.set(e,o)),o},cacheSignal:function(){return _t(st).controller.signal}},ZS=typeof WeakMap=="function"?WeakMap:Map,ke=0,Ve=null,Ae=null,Me=0,He=0,rn=null,Ya=!1,jr=!1,Hf=!1,ga=0,tt=0,Ga=0,zo=0,Uf=0,ln=0,zr=0,Gl=null,Xt=null,$f=!1,bs=0,cg=0,xs=1/0,Ss=null,Va=null,ht=0,Xa=null,Or=null,ya=0,qf=0,Yf=null,ug=null,Vl=0,Gf=null;function sn(){return(ke&2)!==0&&Me!==0?Me&-Me:D.T!==null?If():Th()}function fg(){if(ln===0)if((Me&536870912)===0||Oe){var e=Mi;Mi<<=1,(Mi&3932160)===0&&(Mi=262144),ln=e}else ln=536870912;return e=an.current,e!==null&&(e.flags|=32),ln}function Zt(e,t,o){(e===Ve&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Nr(e,0),Za(e,Me,ln,!1)),fl(e,o),((ke&2)===0||e!==Ve)&&(e===Ve&&((ke&2)===0&&(zo|=o),tt===4&&Za(e,Me,ln,!1)),Vn(e))}function dg(e,t,o){if((ke&6)!==0)throw Error(i(327));var l=!o&&(t&127)===0&&(t&e.expiredLanes)===0||ul(e,t),u=l?IS(e,t):Xf(e,t,!0),d=l;do{if(u===0){jr&&!l&&Za(e,t,0,!1);break}else{if(o=e.current.alternate,d&&!KS(o)){u=Xf(e,t,!1),d=!1;continue}if(u===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;u=Gl;var O=R.current.memoizedState.isDehydrated;if(O&&(Nr(R,b).flags|=256),b=Xf(R,b,!1),b!==2){if(Hf&&!O){R.errorRecoveryDisabledLanes|=d,zo|=d,u=4;break e}d=Xt,Xt=u,d!==null&&(Xt===null?Xt=d:Xt.push.apply(Xt,d))}u=b}if(d=!1,u!==2)continue}}if(u===1){Nr(e,0),Za(e,t,0,!0);break}e:{switch(l=e,d=u,d){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Za(l,t,ln,!Ya);break e;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(u=bs+300-Ct(),10<u)){if(Za(l,t,ln,!Ya),zi(l,0,!0)!==0)break e;ya=t,l.timeoutHandle=Gg(mg.bind(null,l,o,Xt,Ss,$f,t,ln,zo,zr,Ya,d,"Throttled",-0,0),u);break e}mg(l,o,Xt,Ss,$f,t,ln,zo,zr,Ya,d,null,-0,0)}}break}while(!0);Vn(e)}function mg(e,t,o,l,u,d,b,R,O,K,ne,le,Q,F){if(e.timeoutHandle=-1,le=t.subtreeFlags,le&8192||(le&16785408)===16785408){le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},rg(t,d,le);var pe=(d&62914560)===d?bs-Ct():(d&4194048)===d?cg-Ct():0;if(pe=zw(le,pe),pe!==null){ya=d,e.cancelPendingCommit=pe(Sg.bind(null,e,t,d,o,l,u,b,R,O,ne,le,null,Q,F)),Za(e,d,b,!K);return}}Sg(e,t,d,o,l,u,b,R,O)}function KS(e){for(var t=e;;){var o=t.tag;if((o===0||o===11||o===15)&&t.flags&16384&&(o=t.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var l=0;l<o.length;l++){var u=o[l],d=u.getSnapshot;u=u.value;try{if(!tn(d(),u))return!1}catch{return!1}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;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 Za(e,t,o,l){t&=~Uf,t&=~zo,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var d=31-en(u),b=1<<d;l[d]=-1,u&=~b}o!==0&&Eh(e,o,t)}function ws(){return(ke&6)===0?(Xl(0),!1):!0}function Vf(){if(Ae!==null){if(He===0)var e=Ae.return;else e=Ae,la=wo=null,rf(e),Er=null,Al=0,e=Ae;for(;e!==null;)V0(e.alternate,e),e=e.return;Ae=null}}function Nr(e,t){var o=e.timeoutHandle;o!==-1&&(e.timeoutHandle=-1,mw(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),ya=0,Vf(),Ve=e,Ae=o=oa(e.current,null),Me=t,He=0,rn=null,Ya=!1,jr=ul(e,t),Hf=!1,zr=ln=Uf=zo=Ga=tt=0,Xt=Gl=null,$f=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-en(l),d=1<<u;t|=e[u],l&=~d}return ga=t,Gi(),o}function hg(e,t){Ce=null,D.H=Bl,t===wr||t===Ji?(t=jp(),He=3):t===Ku?(t=jp(),He=4):He=t===wf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,Ae===null&&(tt=1,fs(e,hn(t,e.current)))}function pg(){var e=an.current;return e===null?!0:(Me&4194048)===Me?vn===null:(Me&62914560)===Me||(Me&536870912)!==0?e===vn:!1}function gg(){var e=D.H;return D.H=Bl,e===null?Bl:e}function yg(){var e=D.A;return D.A=XS,e}function Es(){tt=4,Ya||(Me&4194048)!==Me&&an.current!==null||(jr=!0),(Ga&134217727)===0&&(zo&134217727)===0||Ve===null||Za(Ve,Me,ln,!1)}function Xf(e,t,o){var l=ke;ke|=2;var u=gg(),d=yg();(Ve!==e||Me!==t)&&(Ss=null,Nr(e,t)),t=!1;var b=tt;e:do try{if(He!==0&&Ae!==null){var R=Ae,O=rn;switch(He){case 8:Vf(),b=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(t=!0);var K=He;if(He=0,rn=null,Dr(e,R,O,K),o&&jr){b=0;break e}break;default:K=He,He=0,rn=null,Dr(e,R,O,K)}}QS(),b=tt;break}catch(ne){hg(e,ne)}while(!0);return t&&e.shellSuspendCounter++,la=wo=null,ke=l,D.H=u,D.A=d,Ae===null&&(Ve=null,Me=0,Gi()),b}function QS(){for(;Ae!==null;)vg(Ae)}function IS(e,t){var o=ke;ke|=2;var l=gg(),u=yg();Ve!==e||Me!==t?(Ss=null,xs=Ct()+500,Nr(e,t)):jr=ul(e,t);e:do try{if(He!==0&&Ae!==null){t=Ae;var d=rn;t:switch(He){case 1:He=0,rn=null,Dr(e,t,d,1);break;case 2:case 9:if(_p(d)){He=0,rn=null,bg(t);break}t=function(){He!==2&&He!==9||Ve!==e||(He=7),Vn(e)},d.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:_p(d)?(He=0,rn=null,bg(t)):(He=0,rn=null,Dr(e,t,d,7));break;case 5:var b=null;switch(Ae.tag){case 26:b=Ae.memoizedState;case 5:case 27:var R=Ae;if(b?oy(b):R.stateNode.complete){He=0,rn=null;var O=R.sibling;if(O!==null)Ae=O;else{var K=R.return;K!==null?(Ae=K,Rs(K)):Ae=null}break t}}He=0,rn=null,Dr(e,t,d,5);break;case 6:He=0,rn=null,Dr(e,t,d,6);break;case 8:Vf(),tt=6;break e;default:throw Error(i(462))}}FS();break}catch(ne){hg(e,ne)}while(!0);return la=wo=null,D.H=l,D.A=u,ke=o,Ae!==null?0:(Ve=null,Me=0,Gi(),tt)}function FS(){for(;Ae!==null&&!tr();)vg(Ae)}function vg(e){var t=Y0(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?Rs(e):Ae=t}function bg(e){var t=e,o=t.alternate;switch(t.tag){case 15:case 0:t=L0(o,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=L0(o,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:rf(t);default:V0(o,t),t=Ae=yp(t,ga),t=Y0(o,t,ga)}e.memoizedProps=e.pendingProps,t===null?Rs(e):Ae=t}function Dr(e,t,o,l){la=wo=null,rf(t),Er=null,Al=0;var u=t.return;try{if(HS(e,u,t,o,Me)){tt=1,fs(e,hn(o,e.current)),Ae=null;return}}catch(d){if(u!==null)throw Ae=u,d;tt=1,fs(e,hn(o,e.current)),Ae=null;return}t.flags&32768?(Oe||l===1?e=!0:jr||(Me&536870912)!==0?e=!1:(Ya=e=!0,(l===2||l===9||l===3||l===6)&&(l=an.current,l!==null&&l.tag===13&&(l.flags|=16384))),xg(t,e)):Rs(t)}function Rs(e){var t=e;do{if((t.flags&32768)!==0){xg(t,Ya);return}e=t.return;var o=qS(t.alternate,t,ga);if(o!==null){Ae=o;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);tt===0&&(tt=5)}function xg(e,t){do{var o=YS(e.alternate,e);if(o!==null){o.flags&=32767,Ae=o;return}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=o}while(e!==null);tt=6,Ae=null}function Sg(e,t,o,l,u,d,b,R,O){e.cancelPendingCommit=null;do Cs();while(ht!==0);if((ke&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(d=t.lanes|t.childLanes,d|=Ou,Mx(e,o,d,b,R,O),e===Ve&&(Ae=Ve=null,Me=0),Or=t,Xa=e,ya=o,qf=d,Yf=u,ug=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ew(mo,function(){return Tg(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,u=B.p,B.p=2,b=ke,ke|=4;try{GS(e,t,o)}finally{ke=b,B.p=u,D.T=l}}ht=1,wg(),Eg(),Rg()}}function wg(){if(ht===1){ht=0;var e=Xa,t=Or,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=D.T,D.T=null;var l=B.p;B.p=2;var u=ke;ke|=4;try{ng(t,e);var d=ad,b=sp(e.containerInfo),R=d.focusedElem,O=d.selectionRange;if(b!==R&&R&&R.ownerDocument&&ip(R.ownerDocument.documentElement,R)){if(O!==null&&Au(R)){var K=O.start,ne=O.end;if(ne===void 0&&(ne=K),"selectionStart"in R)R.selectionStart=K,R.selectionEnd=Math.min(ne,R.value.length);else{var le=R.ownerDocument||document,Q=le&&le.defaultView||window;if(Q.getSelection){var F=Q.getSelection(),pe=R.textContent.length,xe=Math.min(O.start,pe),Ge=O.end===void 0?xe:Math.min(O.end,pe);!F.extend&&xe>Ge&&(b=Ge,Ge=xe,xe=b);var G=lp(R,xe),L=lp(R,Ge);if(G&&L&&(F.rangeCount!==1||F.anchorNode!==G.node||F.anchorOffset!==G.offset||F.focusNode!==L.node||F.focusOffset!==L.offset)){var Z=le.createRange();Z.setStart(G.node,G.offset),F.removeAllRanges(),xe>Ge?(F.addRange(Z),F.extend(L.node,L.offset)):(Z.setEnd(L.node,L.offset),F.addRange(Z))}}}}for(le=[],F=R;F=F.parentNode;)F.nodeType===1&&le.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<le.length;R++){var re=le[R];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}ks=!!nd,ad=nd=null}finally{ke=u,B.p=l,D.T=o}}e.current=t,ht=2}}function Eg(){if(ht===2){ht=0;var e=Xa,t=Or,o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=D.T,D.T=null;var l=B.p;B.p=2;var u=ke;ke|=4;try{J0(e,t.alternate,t)}finally{ke=u,B.p=l,D.T=o}}ht=3}}function Rg(){if(ht===4||ht===3){ht=0,We();var e=Xa,t=Or,o=ya,l=ug;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ht=5:(ht=0,Or=Xa=null,Cg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Va=null),su(o),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Ma,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,u=B.p,B.p=2,D.T=null;try{for(var d=e.onRecoverableError,b=0;b<l.length;b++){var R=l[b];d(R.value,{componentStack:R.stack})}}finally{D.T=t,B.p=u}}(ya&3)!==0&&Cs(),Vn(e),u=e.pendingLanes,(o&261930)!==0&&(u&42)!==0?e===Gf?Vl++:(Vl=0,Gf=e):Vl=0,Xl(0)}}function Cg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cl(t)))}function Cs(){return wg(),Eg(),Rg(),Tg()}function Tg(){if(ht!==5)return!1;var e=Xa,t=qf;qf=0;var o=su(ya),l=D.T,u=B.p;try{B.p=32>o?32:o,D.T=null,o=Yf,Yf=null;var d=Xa,b=ya;if(ht=0,Or=Xa=null,ya=0,(ke&6)!==0)throw Error(i(331));var R=ke;if(ke|=4,ig(d.current),og(d,d.current,b,o),ke=R,Xl(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Ma,d)}catch{}return!0}finally{B.p=u,D.T=l,Cg(e,t)}}function Ag(e,t,o){t=hn(o,t),t=Sf(e.stateNode,t,2),e=Ha(e,t,2),e!==null&&(fl(e,2),Vn(e))}function Ue(e,t,o){if(e.tag===3)Ag(e,e,o);else for(;t!==null;){if(t.tag===3){Ag(t,e,o);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Va===null||!Va.has(l))){e=hn(o,e),o=_0(2),l=Ha(t,o,2),l!==null&&(M0(o,l,t,e),fl(l,2),Vn(l));break}}t=t.return}}function Zf(e,t,o){var l=e.pingCache;if(l===null){l=e.pingCache=new ZS;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(o)||(Hf=!0,u.add(o),e=JS.bind(null,e,t,o),t.then(e,e))}function JS(e,t,o){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,Ve===e&&(Me&o)===o&&(tt===4||tt===3&&(Me&62914560)===Me&&300>Ct()-bs?(ke&2)===0&&Nr(e,0):Uf|=o,zr===Me&&(zr=0)),Vn(e)}function _g(e,t){t===0&&(t=wh()),e=bo(e,t),e!==null&&(fl(e,t),Vn(e))}function WS(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),_g(e,o)}function PS(e,t){var o=0;switch(e.tag){case 31:case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(o=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(t),_g(e,o)}function ew(e,t){return Fe(e,t)}var Ts=null,Br=null,Kf=!1,As=!1,Qf=!1,Ka=0;function Vn(e){e!==Br&&e.next===null&&(Br===null?Ts=Br=e:Br=Br.next=e),As=!0,Kf||(Kf=!0,nw())}function Xl(e,t){if(!Qf&&As){Qf=!0;do for(var o=!1,l=Ts;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var d=0;else{var b=l.suspendedLanes,R=l.pingedLanes;d=(1<<31-en(42|e)+1)-1,d&=u&~(b&~R),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(o=!0,Og(l,d))}else d=Me,d=zi(l,l===Ve?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||ul(l,d)||(o=!0,Og(l,d));l=l.next}while(o);Qf=!1}}function tw(){Mg()}function Mg(){As=Kf=!1;var e=0;Ka!==0&&dw()&&(e=Ka);for(var t=Ct(),o=null,l=Ts;l!==null;){var u=l.next,d=jg(l,t);d===0?(l.next=null,o===null?Ts=u:o.next=u,u===null&&(Br=o)):(o=l,(e!==0||(d&3)!==0)&&(As=!0)),l=u}ht!==0&&ht!==5||Xl(e),Ka!==0&&(Ka=0)}function jg(e,t){for(var o=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var b=31-en(d),R=1<<b,O=u[b];O===-1?((R&o)===0||(R&l)!==0)&&(u[b]=_x(R,t)):O<=t&&(e.expiredLanes|=R),d&=~R}if(t=Ve,o=Me,o=zi(e,e===t?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,o===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&ea(l),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||ul(e,o)){if(t=o&-o,t===e.callbackPriority)return t;switch(l!==null&&ea(l),su(o)){case 2:case 8:o=Ri;break;case 32:o=mo;break;case 268435456:o=cl;break;default:o=mo}return l=zg.bind(null,e),o=Fe(o,l),e.callbackPriority=t,e.callbackNode=o,t}return l!==null&&l!==null&&ea(l),e.callbackPriority=2,e.callbackNode=null,2}function zg(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(Cs()&&e.callbackNode!==o)return null;var l=Me;return l=zi(e,e===Ve?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(dg(e,l,t),jg(e,Ct()),e.callbackNode!=null&&e.callbackNode===o?zg.bind(null,e):null)}function Og(e,t){if(Cs())return null;dg(e,t,!0)}function nw(){hw(function(){(ke&6)!==0?Fe(Ei,tw):Mg()})}function If(){if(Ka===0){var e=xr;e===0&&(e=_i,_i<<=1,(_i&261888)===0&&(_i=256)),Ka=e}return Ka}function Ng(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Bi(""+e)}function Dg(e,t){var o=t.ownerDocument.createElement("input");return o.name=t.name,o.value=t.value,e.id&&o.setAttribute("form",e.id),t.parentNode.insertBefore(o,t),e=new FormData(e),o.parentNode.removeChild(o),e}function aw(e,t,o,l,u){if(t==="submit"&&o&&o.stateNode===u){var d=Ng((u[$t]||null).action),b=l.submitter;b&&(t=(t=b[$t]||null)?Ng(t.formAction):b.getAttribute("formAction"),t!==null&&(d=t,b=null));var R=new Ui("action","action",null,l,u);e.push({event:R,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ka!==0){var O=b?Dg(u,b):new FormData(u);pf(o,{pending:!0,data:O,method:u.method,action:d},null,O)}}else typeof d=="function"&&(R.preventDefault(),O=b?Dg(u,b):new FormData(u),pf(o,{pending:!0,data:O,method:u.method,action:d},d,O))},currentTarget:u}]})}}for(var Ff=0;Ff<zu.length;Ff++){var Jf=zu[Ff],ow=Jf.toLowerCase(),rw=Jf[0].toUpperCase()+Jf.slice(1);Tn(ow,"on"+rw)}Tn(fp,"onAnimationEnd"),Tn(dp,"onAnimationIteration"),Tn(mp,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(SS,"onTransitionRun"),Tn(wS,"onTransitionStart"),Tn(ES,"onTransitionCancel"),Tn(hp,"onTransitionEnd"),lr("onMouseEnter",["mouseout","mouseover"]),lr("onMouseLeave",["mouseout","mouseover"]),lr("onPointerEnter",["pointerout","pointerover"]),lr("onPointerLeave",["pointerout","pointerover"]),po("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),po("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),po("onBeforeInput",["compositionend","keypress","textInput","paste"]),po("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),po("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),po("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zl="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(" "),lw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zl));function Bg(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var l=e[o],u=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var b=l.length-1;0<=b;b--){var R=l[b],O=R.instance,K=R.currentTarget;if(R=R.listener,O!==d&&u.isPropagationStopped())break e;d=R,u.currentTarget=K;try{d(u)}catch(ne){Yi(ne)}u.currentTarget=null,d=O}else for(b=0;b<l.length;b++){if(R=l[b],O=R.instance,K=R.currentTarget,R=R.listener,O!==d&&u.isPropagationStopped())break e;d=R,u.currentTarget=K;try{d(u)}catch(ne){Yi(ne)}u.currentTarget=null,d=O}}}}function _e(e,t){var o=t[cu];o===void 0&&(o=t[cu]=new Set);var l=e+"__bubble";o.has(l)||(Lg(t,e,2,!1),o.add(l))}function Wf(e,t,o){var l=0;t&&(l|=4),Lg(o,e,l,t)}var _s="_reactListening"+Math.random().toString(36).slice(2);function Pf(e){if(!e[_s]){e[_s]=!0,Mh.forEach(function(o){o!=="selectionchange"&&(lw.has(o)||Wf(o,!1,e),Wf(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_s]||(t[_s]=!0,Wf("selectionchange",!1,t))}}function Lg(e,t,o,l){switch(fy(t)){case 2:var u=Dw;break;case 8:u=Bw;break;default:u=hd}o=u.bind(null,t,o,e),u=void 0,!vu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,o,{capture:!0,passive:u}):e.addEventListener(t,o,!0):u!==void 0?e.addEventListener(t,o,{passive:u}):e.addEventListener(t,o,!1)}function ed(e,t,o,l,u){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var b=l.tag;if(b===3||b===4){var R=l.stateNode.containerInfo;if(R===u)break;if(b===4)for(b=l.return;b!==null;){var O=b.tag;if((O===3||O===4)&&b.stateNode.containerInfo===u)return;b=b.return}for(;R!==null;){if(b=ar(R),b===null)return;if(O=b.tag,O===5||O===6||O===26||O===27){l=d=b;continue e}R=R.parentNode}}l=l.return}qh(function(){var K=d,ne=gu(o),le=[];e:{var Q=pp.get(e);if(Q!==void 0){var F=Ui,pe=e;switch(e){case"keypress":if(ki(o)===0)break e;case"keydown":case"keyup":F=Px;break;case"focusin":pe="focus",F=wu;break;case"focusout":pe="blur",F=wu;break;case"beforeblur":case"afterblur":F=wu;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Vh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=qx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=nS;break;case fp:case dp:case mp:F=Vx;break;case hp:F=oS;break;case"scroll":case"scrollend":F=Ux;break;case"wheel":F=lS;break;case"copy":case"cut":case"paste":F=Zx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Zh;break;case"toggle":case"beforetoggle":F=sS}var xe=(t&4)!==0,Ge=!xe&&(e==="scroll"||e==="scrollend"),G=xe?Q!==null?Q+"Capture":null:Q;xe=[];for(var L=K,Z;L!==null;){var re=L;if(Z=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||Z===null||G===null||(re=hl(L,G),re!=null&&xe.push(Kl(L,re,Z))),Ge)break;L=L.return}0<xe.length&&(Q=new F(Q,pe,null,o,ne),le.push({event:Q,listeners:xe}))}}if((t&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",Q&&o!==pu&&(pe=o.relatedTarget||o.fromElement)&&(ar(pe)||pe[nr]))break e;if((F||Q)&&(Q=ne.window===ne?ne:(Q=ne.ownerDocument)?Q.defaultView||Q.parentWindow:window,F?(pe=o.relatedTarget||o.toElement,F=K,pe=pe?ar(pe):null,pe!==null&&(Ge=c(pe),xe=pe.tag,pe!==Ge||xe!==5&&xe!==27&&xe!==6)&&(pe=null)):(F=null,pe=K),F!==pe)){if(xe=Vh,re="onMouseLeave",G="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Zh,re="onPointerLeave",G="onPointerEnter",L="pointer"),Ge=F==null?Q:ml(F),Z=pe==null?Q:ml(pe),Q=new xe(re,L+"leave",F,o,ne),Q.target=Ge,Q.relatedTarget=Z,re=null,ar(ne)===K&&(xe=new xe(G,L+"enter",pe,o,ne),xe.target=Z,xe.relatedTarget=Ge,re=xe),Ge=re,F&&pe)t:{for(xe=iw,G=F,L=pe,Z=0,re=G;re;re=xe(re))Z++;re=0;for(var be=L;be;be=xe(be))re++;for(;0<Z-re;)G=xe(G),Z--;for(;0<re-Z;)L=xe(L),re--;for(;Z--;){if(G===L||L!==null&&G===L.alternate){xe=G;break t}G=xe(G),L=xe(L)}xe=null}else xe=null;F!==null&&kg(le,Q,F,xe,!1),pe!==null&&Ge!==null&&kg(le,Ge,pe,xe,!0)}}e:{if(Q=K?ml(K):window,F=Q.nodeName&&Q.nodeName.toLowerCase(),F==="select"||F==="input"&&Q.type==="file")var Be=ep;else if(Wh(Q))if(tp)Be=vS;else{Be=gS;var ye=pS}else F=Q.nodeName,!F||F.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?K&&hu(K.elementType)&&(Be=ep):Be=yS;if(Be&&(Be=Be(e,K))){Ph(le,Be,o,ne);break e}ye&&ye(e,Q,K),e==="focusout"&&K&&Q.type==="number"&&K.memoizedProps.value!=null&&mu(Q,"number",Q.value)}switch(ye=K?ml(K):window,e){case"focusin":(Wh(ye)||ye.contentEditable==="true")&&(dr=ye,_u=K,wl=null);break;case"focusout":wl=_u=dr=null;break;case"mousedown":Mu=!0;break;case"contextmenu":case"mouseup":case"dragend":Mu=!1,cp(le,o,ne);break;case"selectionchange":if(xS)break;case"keydown":case"keyup":cp(le,o,ne)}var Te;if(Ru)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else fr?Fh(e,o)&&(je="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(je="onCompositionStart");je&&(Kh&&o.locale!=="ko"&&(fr||je!=="onCompositionStart"?je==="onCompositionEnd"&&fr&&(Te=Yh()):(za=ne,bu="value"in za?za.value:za.textContent,fr=!0)),ye=Ms(K,je),0<ye.length&&(je=new Xh(je,e,null,o,ne),le.push({event:je,listeners:ye}),Te?je.data=Te:(Te=Jh(o),Te!==null&&(je.data=Te)))),(Te=uS?fS(e,o):dS(e,o))&&(je=Ms(K,"onBeforeInput"),0<je.length&&(ye=new Xh("onBeforeInput","beforeinput",null,o,ne),le.push({event:ye,listeners:je}),ye.data=Te)),aw(le,e,K,o,ne)}Bg(le,t)})}function Kl(e,t,o){return{instance:e,listener:t,currentTarget:o}}function Ms(e,t){for(var o=t+"Capture",l=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=hl(e,o),u!=null&&l.unshift(Kl(e,u,d)),u=hl(e,t),u!=null&&l.push(Kl(e,u,d))),e.tag===3)return l;e=e.return}return[]}function iw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kg(e,t,o,l,u){for(var d=t._reactName,b=[];o!==null&&o!==l;){var R=o,O=R.alternate,K=R.stateNode;if(R=R.tag,O!==null&&O===l)break;R!==5&&R!==26&&R!==27||K===null||(O=K,u?(K=hl(o,d),K!=null&&b.unshift(Kl(o,K,O))):u||(K=hl(o,d),K!=null&&b.push(Kl(o,K,O)))),o=o.return}b.length!==0&&e.push({event:t,listeners:b})}var sw=/\r\n?/g,cw=/\u0000|\uFFFD/g;function Hg(e){return(typeof e=="string"?e:""+e).replace(sw,`
`).replace(cw,"")}function Ug(e,t){return t=Hg(t),Hg(e)===t}function Ye(e,t,o,l,u,d){switch(o){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||sr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&sr(e,""+l);break;case"className":Ni(e,"class",l);break;case"tabIndex":Ni(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ni(e,o,l);break;case"style":Uh(e,l,d);break;case"data":if(t!=="object"){Ni(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||o!=="href")){e.removeAttribute(o);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(o);break}l=Bi(""+l),e.setAttribute(o,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(o,"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"&&(o==="formAction"?(t!=="input"&&Ye(e,t,"name",u.name,u,null),Ye(e,t,"formEncType",u.formEncType,u,null),Ye(e,t,"formMethod",u.formMethod,u,null),Ye(e,t,"formTarget",u.formTarget,u,null)):(Ye(e,t,"encType",u.encType,u,null),Ye(e,t,"method",u.method,u,null),Ye(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(o);break}l=Bi(""+l),e.setAttribute(o,l);break;case"onClick":l!=null&&(e.onclick=na);break;case"onScroll":l!=null&&_e("scroll",e);break;case"onScrollEnd":l!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(o=l.__html,o!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=o}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}o=Bi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(o,""+l):e.removeAttribute(o);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":l===!0?e.setAttribute(o,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(o,l):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(o,l):e.removeAttribute(o);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(o):e.setAttribute(o,l);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Oi(e,"popover",l);break;case"xlinkActuate":ta(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ta(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ta(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ta(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ta(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ta(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ta(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ta(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ta(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Oi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=kx.get(o)||o,Oi(e,o,l))}}function td(e,t,o,l,u,d){switch(o){case"style":Uh(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(o=l.__html,o!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=o}}break;case"children":typeof l=="string"?sr(e,l):(typeof l=="number"||typeof l=="bigint")&&sr(e,""+l);break;case"onScroll":l!=null&&_e("scroll",e);break;case"onScrollEnd":l!=null&&_e("scrollend",e);break;case"onClick":l!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jh.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(u=o.endsWith("Capture"),t=o.slice(2,u?o.length-7:void 0),d=e[$t]||null,d=d!=null?d[o]:null,typeof d=="function"&&e.removeEventListener(t,d,u),typeof l=="function")){typeof d!="function"&&d!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(t,l,u);break e}o in e?e[o]=l:l===!0?e.setAttribute(o,""):Oi(e,o,l)}}}function jt(e,t,o){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 l=!1,u=!1,d;for(d in o)if(o.hasOwnProperty(d)){var b=o[d];if(b!=null)switch(d){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ye(e,t,d,b,o,null)}}u&&Ye(e,t,"srcSet",o.srcSet,o,null),l&&Ye(e,t,"src",o.src,o,null);return;case"input":_e("invalid",e);var R=d=b=u=null,O=null,K=null;for(l in o)if(o.hasOwnProperty(l)){var ne=o[l];if(ne!=null)switch(l){case"name":u=ne;break;case"type":b=ne;break;case"checked":O=ne;break;case"defaultChecked":K=ne;break;case"value":d=ne;break;case"defaultValue":R=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,t));break;default:Ye(e,t,l,ne,o,null)}}Bh(e,d,R,O,K,b,u,!1);return;case"select":_e("invalid",e),l=b=d=null;for(u in o)if(o.hasOwnProperty(u)&&(R=o[u],R!=null))switch(u){case"value":d=R;break;case"defaultValue":b=R;break;case"multiple":l=R;default:Ye(e,t,u,R,o,null)}t=d,o=b,e.multiple=!!l,t!=null?ir(e,!!l,t,!1):o!=null&&ir(e,!!l,o,!0);return;case"textarea":_e("invalid",e),d=u=l=null;for(b in o)if(o.hasOwnProperty(b)&&(R=o[b],R!=null))switch(b){case"value":l=R;break;case"defaultValue":u=R;break;case"children":d=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Ye(e,t,b,R,o,null)}kh(e,l,u,d);return;case"option":for(O in o)if(o.hasOwnProperty(O)&&(l=o[O],l!=null))switch(O){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ye(e,t,O,l,o,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(l=0;l<Zl.length;l++)_e(Zl[l],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(K in o)if(o.hasOwnProperty(K)&&(l=o[K],l!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ye(e,t,K,l,o,null)}return;default:if(hu(t)){for(ne in o)o.hasOwnProperty(ne)&&(l=o[ne],l!==void 0&&td(e,t,ne,l,o,void 0));return}}for(R in o)o.hasOwnProperty(R)&&(l=o[R],l!=null&&Ye(e,t,R,l,o,null))}function uw(e,t,o,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,b=null,R=null,O=null,K=null,ne=null;for(F in o){var le=o[F];if(o.hasOwnProperty(F)&&le!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":O=le;default:l.hasOwnProperty(F)||Ye(e,t,F,null,l,le)}}for(var Q in l){var F=l[Q];if(le=o[Q],l.hasOwnProperty(Q)&&(F!=null||le!=null))switch(Q){case"type":d=F;break;case"name":u=F;break;case"checked":K=F;break;case"defaultChecked":ne=F;break;case"value":b=F;break;case"defaultValue":R=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(i(137,t));break;default:F!==le&&Ye(e,t,Q,F,l,le)}}du(e,b,R,O,K,ne,d,u);return;case"select":F=b=R=Q=null;for(d in o)if(O=o[d],o.hasOwnProperty(d)&&O!=null)switch(d){case"value":break;case"multiple":F=O;default:l.hasOwnProperty(d)||Ye(e,t,d,null,l,O)}for(u in l)if(d=l[u],O=o[u],l.hasOwnProperty(u)&&(d!=null||O!=null))switch(u){case"value":Q=d;break;case"defaultValue":R=d;break;case"multiple":b=d;default:d!==O&&Ye(e,t,u,d,l,O)}t=R,o=b,l=F,Q!=null?ir(e,!!o,Q,!1):!!l!=!!o&&(t!=null?ir(e,!!o,t,!0):ir(e,!!o,o?[]:"",!1));return;case"textarea":F=Q=null;for(R in o)if(u=o[R],o.hasOwnProperty(R)&&u!=null&&!l.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Ye(e,t,R,null,l,u)}for(b in l)if(u=l[b],d=o[b],l.hasOwnProperty(b)&&(u!=null||d!=null))switch(b){case"value":Q=u;break;case"defaultValue":F=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(i(91));break;default:u!==d&&Ye(e,t,b,u,l,d)}Lh(e,Q,F);return;case"option":for(var pe in o)if(Q=o[pe],o.hasOwnProperty(pe)&&Q!=null&&!l.hasOwnProperty(pe))switch(pe){case"selected":e.selected=!1;break;default:Ye(e,t,pe,null,l,Q)}for(O in l)if(Q=l[O],F=o[O],l.hasOwnProperty(O)&&Q!==F&&(Q!=null||F!=null))switch(O){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Ye(e,t,O,Q,l,F)}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 xe in o)Q=o[xe],o.hasOwnProperty(xe)&&Q!=null&&!l.hasOwnProperty(xe)&&Ye(e,t,xe,null,l,Q);for(K in l)if(Q=l[K],F=o[K],l.hasOwnProperty(K)&&Q!==F&&(Q!=null||F!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,t));break;default:Ye(e,t,K,Q,l,F)}return;default:if(hu(t)){for(var Ge in o)Q=o[Ge],o.hasOwnProperty(Ge)&&Q!==void 0&&!l.hasOwnProperty(Ge)&&td(e,t,Ge,void 0,l,Q);for(ne in l)Q=l[ne],F=o[ne],!l.hasOwnProperty(ne)||Q===F||Q===void 0&&F===void 0||td(e,t,ne,Q,l,F);return}}for(var G in o)Q=o[G],o.hasOwnProperty(G)&&Q!=null&&!l.hasOwnProperty(G)&&Ye(e,t,G,null,l,Q);for(le in l)Q=l[le],F=o[le],!l.hasOwnProperty(le)||Q===F||Q==null&&F==null||Ye(e,t,le,Q,l,F)}function $g(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,o=performance.getEntriesByType("resource"),l=0;l<o.length;l++){var u=o[l],d=u.transferSize,b=u.initiatorType,R=u.duration;if(d&&R&&$g(b)){for(b=0,R=u.responseEnd,l+=1;l<o.length;l++){var O=o[l],K=O.startTime;if(K>R)break;var ne=O.transferSize,le=O.initiatorType;ne&&$g(le)&&(O=O.responseEnd,b+=ne*(O<R?1:(R-K)/(O-K)))}if(--l,t+=8*(d+b)/(u.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 nd=null,ad=null;function js(e){return e.nodeType===9?e:e.ownerDocument}function qg(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 Yg(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 od(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 rd=null;function dw(){var e=window.event;return e&&e.type==="popstate"?e===rd?!1:(rd=e,!0):(rd=null,!1)}var Gg=typeof setTimeout=="function"?setTimeout:void 0,mw=typeof clearTimeout=="function"?clearTimeout:void 0,Vg=typeof Promise=="function"?Promise:void 0,hw=typeof queueMicrotask=="function"?queueMicrotask:typeof Vg<"u"?function(e){return Vg.resolve(null).then(e).catch(pw)}:Gg;function pw(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function Xg(e,t){var o=t,l=0;do{var u=o.nextSibling;if(e.removeChild(o),u&&u.nodeType===8)if(o=u.data,o==="/$"||o==="/&"){if(l===0){e.removeChild(u),Ur(t);return}l--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")l++;else if(o==="html")Ql(e.ownerDocument.documentElement);else if(o==="head"){o=e.ownerDocument.head,Ql(o);for(var d=o.firstChild;d;){var b=d.nextSibling,R=d.nodeName;d[dl]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&d.rel.toLowerCase()==="stylesheet"||o.removeChild(d),d=b}}else o==="body"&&Ql(e.ownerDocument.body);o=u}while(o);Ur(t)}function Zg(e,t){var o=e;e=0;do{var l=o.nextSibling;if(o.nodeType===1?t?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(t?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),l&&l.nodeType===8)if(o=l.data,o==="/$"){if(e===0)break;e--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||e++;o=l}while(o)}function ld(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var o=t;switch(t=t.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":ld(o),uu(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function gw(e,t,o,l){for(;e.nodeType===1;){var u=o;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[dl])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!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=bn(e.nextSibling),e===null)break}return null}function yw(e,t,o){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o||(e=bn(e.nextSibling),e===null))return null;return e}function Kg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=bn(e.nextSibling),e===null))return null;return e}function id(e){return e.data==="$?"||e.data==="$~"}function sd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function vw(e,t){var o=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||o.readyState!=="loading")t();else{var l=function(){t(),o.removeEventListener("DOMContentLoaded",l)};o.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function bn(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 cd=null;function Qg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"||o==="/&"){if(t===0)return bn(e.nextSibling);t--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||t++}e=e.nextSibling}return null}function Ig(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(t===0)return e;t--}else o!=="/$"&&o!=="/&"||t++}e=e.previousSibling}return null}function Fg(e,t,o){switch(t=js(o),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Ql(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);uu(e)}var xn=new Map,Jg=new Set;function zs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var va=B.d;B.d={f:bw,r:xw,D:Sw,C:ww,L:Ew,m:Rw,X:Tw,S:Cw,M:Aw};function bw(){var e=va.f(),t=ws();return e||t}function xw(e){var t=or(e);t!==null&&t.tag===5&&t.type==="form"?h0(t):va.r(e)}var Lr=typeof document>"u"?null:document;function Wg(e,t,o){var l=Lr;if(l&&typeof t=="string"&&t){var u=dn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof o=="string"&&(u+='[crossorigin="'+o+'"]'),Jg.has(u)||(Jg.add(u),e={rel:e,crossOrigin:o,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),jt(t,"link",e),yt(t),l.head.appendChild(t)))}}function Sw(e){va.D(e),Wg("dns-prefetch",e,null)}function ww(e,t){va.C(e,t),Wg("preconnect",e,t)}function Ew(e,t,o){va.L(e,t,o);var l=Lr;if(l&&e&&t){var u='link[rel="preload"][as="'+dn(t)+'"]';t==="image"&&o&&o.imageSrcSet?(u+='[imagesrcset="'+dn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(u+='[imagesizes="'+dn(o.imageSizes)+'"]')):u+='[href="'+dn(e)+'"]';var d=u;switch(t){case"style":d=kr(e);break;case"script":d=Hr(e)}xn.has(d)||(e=g({rel:"preload",href:t==="image"&&o&&o.imageSrcSet?void 0:e,as:t},o),xn.set(d,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Il(d))||t==="script"&&l.querySelector(Fl(d))||(t=l.createElement("link"),jt(t,"link",e),yt(t),l.head.appendChild(t)))}}function Rw(e,t){va.m(e,t);var o=Lr;if(o&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+dn(l)+'"][href="'+dn(e)+'"]',d=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Hr(e)}if(!xn.has(d)&&(e=g({rel:"modulepreload",href:e},t),xn.set(d,e),o.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Fl(d)))return}l=o.createElement("link"),jt(l,"link",e),yt(l),o.head.appendChild(l)}}}function Cw(e,t,o){va.S(e,t,o);var l=Lr;if(l&&e){var u=rr(l).hoistableStyles,d=kr(e);t=t||"default";var b=u.get(d);if(!b){var R={loading:0,preload:null};if(b=l.querySelector(Il(d)))R.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},o),(o=xn.get(d))&&ud(e,o);var O=b=l.createElement("link");yt(O),jt(O,"link",e),O._p=new Promise(function(K,ne){O.onload=K,O.onerror=ne}),O.addEventListener("load",function(){R.loading|=1}),O.addEventListener("error",function(){R.loading|=2}),R.loading|=4,Os(b,t,l)}b={type:"stylesheet",instance:b,count:1,state:R},u.set(d,b)}}}function Tw(e,t){va.X(e,t);var o=Lr;if(o&&e){var l=rr(o).hoistableScripts,u=Hr(e),d=l.get(u);d||(d=o.querySelector(Fl(u)),d||(e=g({src:e,async:!0},t),(t=xn.get(u))&&fd(e,t),d=o.createElement("script"),yt(d),jt(d,"link",e),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(u,d))}}function Aw(e,t){va.M(e,t);var o=Lr;if(o&&e){var l=rr(o).hoistableScripts,u=Hr(e),d=l.get(u);d||(d=o.querySelector(Fl(u)),d||(e=g({src:e,async:!0,type:"module"},t),(t=xn.get(u))&&fd(e,t),d=o.createElement("script"),yt(d),jt(d,"link",e),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(u,d))}}function Pg(e,t,o,l){var u=(u=ce.current)?zs(u):null;if(!u)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(t=kr(o.href),o=rr(u).hoistableStyles,l=o.get(t),l||(l={type:"style",instance:null,count:0,state:null},o.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){e=kr(o.href);var d=rr(u).hoistableStyles,b=d.get(e);if(b||(u=u.ownerDocument||u,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,b),(d=u.querySelector(Il(e)))&&!d._p&&(b.instance=d,b.state.loading=5),xn.has(e)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},xn.set(e,o),d||_w(u,e,o,b.state))),t&&l===null)throw Error(i(528,""));return b}if(t&&l!==null)throw Error(i(529,""));return null;case"script":return t=o.async,o=o.src,typeof o=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Hr(o),o=rr(u).hoistableScripts,l=o.get(t),l||(l={type:"script",instance:null,count:0,state:null},o.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function kr(e){return'href="'+dn(e)+'"'}function Il(e){return'link[rel="stylesheet"]['+e+"]"}function ey(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function _w(e,t,o,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),jt(t,"link",o),yt(t),e.head.appendChild(t))}function Hr(e){return'[src="'+dn(e)+'"]'}function Fl(e){return"script[async]"+e}function ty(e,t,o){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+dn(o.href)+'"]');if(l)return t.instance=l,yt(l),l;var u=g({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),yt(l),jt(l,"style",u),Os(l,o.precedence,e),t.instance=l;case"stylesheet":u=kr(o.href);var d=e.querySelector(Il(u));if(d)return t.state.loading|=4,t.instance=d,yt(d),d;l=ey(o),(u=xn.get(u))&&ud(l,u),d=(e.ownerDocument||e).createElement("link"),yt(d);var b=d;return b._p=new Promise(function(R,O){b.onload=R,b.onerror=O}),jt(d,"link",l),t.state.loading|=4,Os(d,o.precedence,e),t.instance=d;case"script":return d=Hr(o.src),(u=e.querySelector(Fl(d)))?(t.instance=u,yt(u),u):(l=o,(u=xn.get(d))&&(l=g({},o),fd(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),yt(u),jt(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Os(l,o.precedence,e));return t.instance}function Os(e,t,o){for(var l=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,d=u,b=0;b<l.length;b++){var R=l[b];if(R.dataset.precedence===t)d=R;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=o.nodeType===9?o.head:o,t.insertBefore(e,t.firstChild))}function ud(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ns=null;function ny(e,t,o){if(Ns===null){var l=new Map,u=Ns=new Map;u.set(o,l)}else u=Ns,l=u.get(o),l||(l=new Map,u.set(o,l));if(l.has(e))return l;for(l.set(e,null),o=o.getElementsByTagName(e),u=0;u<o.length;u++){var d=o[u];if(!(d[dl]||d[Tt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var b=d.getAttribute(t)||"";b=e+b;var R=l.get(b);R?R.push(d):l.set(b,[d])}}return l}function ay(e,t,o){e=e.ownerDocument||e,e.head.insertBefore(o,t==="title"?e.querySelector("head > title"):null)}function Mw(e,t,o){if(o===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 oy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function jw(e,t,o,l){if(o.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var u=kr(l.href),d=t.querySelector(Il(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ds.bind(e),t.then(e,e)),o.state.loading|=4,o.instance=d,yt(d);return}d=t.ownerDocument||t,l=ey(l),(u=xn.get(u))&&ud(l,u),d=d.createElement("link"),yt(d);var b=d;b._p=new Promise(function(R,O){b.onload=R,b.onerror=O}),jt(d,"link",l),o.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,t),(t=o.state.preload)&&(o.state.loading&3)===0&&(e.count++,o=Ds.bind(e),t.addEventListener("load",o),t.addEventListener("error",o))}}var dd=0;function zw(e,t){return e.stylesheets&&e.count===0&&Ls(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var l=setTimeout(function(){if(e.stylesheets&&Ls(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&dd===0&&(dd=62500*fw());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ls(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>dd?50:800)+t);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Ds(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ls(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Bs=null;function Ls(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bs=new Map,t.forEach(Ow,e),Bs=null,Ds.call(e))}function Ow(e,t){if(!(t.state.loading&4)){var o=Bs.get(e);if(o)var l=o.get(null);else{o=new Map,Bs.set(e,o);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var b=u[d];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(o.set(b.dataset.precedence,b),l=b)}l&&o.set(null,l)}u=t.instance,b=u.getAttribute("data-precedence"),d=o.get(b)||l,d===l&&o.set(null,u),o.set(b,u),this.count++,l=Ds.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Jl={$$typeof:_,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Nw(e,t,o,l,u,d,b,R,O){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=lu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lu(0),this.hiddenUpdates=lu(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function ry(e,t,o,l,u,d,b,R,O,K,ne,le){return e=new Nw(e,t,o,b,O,K,ne,le,R),t=1,d===!0&&(t|=24),d=nn(3,null,null,t),e.current=d,d.stateNode=e,t=Vu(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:o,cache:t},Qu(d),e}function ly(e){return e?(e=pr,e):pr}function iy(e,t,o,l,u,d){u=ly(u),l.context===null?l.context=u:l.pendingContext=u,l=ka(t),l.payload={element:o},d=d===void 0?null:d,d!==null&&(l.callback=d),o=Ha(e,l,t),o!==null&&(Zt(o,e,t),Ml(o,e,t))}function sy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function md(e,t){sy(e,t),(e=e.alternate)&&sy(e,t)}function cy(e){if(e.tag===13||e.tag===31){var t=bo(e,67108864);t!==null&&Zt(t,e,67108864),md(e,67108864)}}function uy(e){if(e.tag===13||e.tag===31){var t=sn();t=iu(t);var o=bo(e,t);o!==null&&Zt(o,e,t),md(e,t)}}var ks=!0;function Dw(e,t,o,l){var u=D.T;D.T=null;var d=B.p;try{B.p=2,hd(e,t,o,l)}finally{B.p=d,D.T=u}}function Bw(e,t,o,l){var u=D.T;D.T=null;var d=B.p;try{B.p=8,hd(e,t,o,l)}finally{B.p=d,D.T=u}}function hd(e,t,o,l){if(ks){var u=pd(l);if(u===null)ed(e,t,l,Hs,o),dy(e,l);else if(kw(u,e,t,o,l))l.stopPropagation();else if(dy(e,l),t&4&&-1<Lw.indexOf(e)){for(;u!==null;){var d=or(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var b=ho(d.pendingLanes);if(b!==0){var R=d;for(R.pendingLanes|=2,R.entangledLanes|=2;b;){var O=1<<31-en(b);R.entanglements[1]|=O,b&=~O}Vn(d),(ke&6)===0&&(xs=Ct()+500,Xl(0))}}break;case 31:case 13:R=bo(d,2),R!==null&&Zt(R,d,2),ws(),md(d,2)}if(d=pd(l),d===null&&ed(e,t,l,Hs,o),d===u)break;u=d}u!==null&&l.stopPropagation()}else ed(e,t,l,null,o)}}function pd(e){return e=gu(e),gd(e)}var Hs=null;function gd(e){if(Hs=null,e=ar(e),e!==null){var t=c(e);if(t===null)e=null;else{var o=t.tag;if(o===13){if(e=f(t),e!==null)return e;e=null}else if(o===31){if(e=m(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Hs=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(ru()){case Ei:return 2;case Ri:return 8;case mo:case Ci:return 32;case cl:return 268435456;default:return 32}default:return 32}}var yd=!1,Ia=null,Fa=null,Ja=null,Wl=new Map,Pl=new Map,Wa=[],Lw="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":Ia=null;break;case"dragenter":case"dragleave":Fa=null;break;case"mouseover":case"mouseout":Ja=null;break;case"pointerover":case"pointerout":Wl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(t.pointerId)}}function ei(e,t,o,l,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:o,eventSystemFlags:l,nativeEvent:d,targetContainers:[u]},t!==null&&(t=or(t),t!==null&&cy(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function kw(e,t,o,l,u){switch(t){case"focusin":return Ia=ei(Ia,e,t,o,l,u),!0;case"dragenter":return Fa=ei(Fa,e,t,o,l,u),!0;case"mouseover":return Ja=ei(Ja,e,t,o,l,u),!0;case"pointerover":var d=u.pointerId;return Wl.set(d,ei(Wl.get(d)||null,e,t,o,l,u)),!0;case"gotpointercapture":return d=u.pointerId,Pl.set(d,ei(Pl.get(d)||null,e,t,o,l,u)),!0}return!1}function my(e){var t=ar(e.target);if(t!==null){var o=c(t);if(o!==null){if(t=o.tag,t===13){if(t=f(o),t!==null){e.blockedOn=t,Ah(e.priority,function(){uy(o)});return}}else if(t===31){if(t=m(o),t!==null){e.blockedOn=t,Ah(e.priority,function(){uy(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Us(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=pd(e.nativeEvent);if(o===null){o=e.nativeEvent;var l=new o.constructor(o.type,o);pu=l,o.target.dispatchEvent(l),pu=null}else return t=or(o),t!==null&&cy(t),e.blockedOn=o,!1;t.shift()}return!0}function hy(e,t,o){Us(e)&&o.delete(t)}function Hw(){yd=!1,Ia!==null&&Us(Ia)&&(Ia=null),Fa!==null&&Us(Fa)&&(Fa=null),Ja!==null&&Us(Ja)&&(Ja=null),Wl.forEach(hy),Pl.forEach(hy)}function $s(e,t){e.blockedOn===t&&(e.blockedOn=null,yd||(yd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Hw)))}var qs=null;function py(e){qs!==e&&(qs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){qs===e&&(qs=null);for(var t=0;t<e.length;t+=3){var o=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(gd(l||o)===null)continue;break}var d=or(o);d!==null&&(e.splice(t,3),t-=3,pf(d,{pending:!0,data:u,method:o.method,action:l},l,u))}}))}function Ur(e){function t(O){return $s(O,e)}Ia!==null&&$s(Ia,e),Fa!==null&&$s(Fa,e),Ja!==null&&$s(Ja,e),Wl.forEach(t),Pl.forEach(t);for(var o=0;o<Wa.length;o++){var l=Wa[o];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Wa.length&&(o=Wa[0],o.blockedOn===null);)my(o),o.blockedOn===null&&Wa.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(l=0;l<o.length;l+=3){var u=o[l],d=o[l+1],b=u[$t]||null;if(typeof d=="function")b||py(o);else if(b){var R=null;if(d&&d.hasAttribute("formAction")){if(u=d,b=d[$t]||null)R=b.formAction;else if(gd(u)!==null)continue}else R=b.action;typeof R=="function"?o[l+1]=R:(o.splice(l,3),l-=3),py(o)}}}function gy(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(b){return u=b})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),l||setTimeout(o,20)}function o(){if(!l&&!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 l=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(o,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function vd(e){this._internalRoot=e}Ys.prototype.render=vd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var o=t.current,l=sn();iy(o,l,e,t,null,null)},Ys.prototype.unmount=vd.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),ws(),t[nr]=null}};function Ys(e){this._internalRoot=e}Ys.prototype.unstable_scheduleHydration=function(e){if(e){var t=Th();e={blockedOn:null,target:e,priority:t};for(var o=0;o<Wa.length&&t!==0&&t<Wa[o].priority;o++);Wa.splice(o,0,e),o===0&&my(e)}};var yy=a.version;if(yy!=="19.2.7")throw Error(i(527,yy,"19.2.7"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=h(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Uw={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gs.isDisabled&&Gs.supportsFiber)try{Ma=Gs.inject(Uw),Ot=Gs}catch{}}return ni.createRoot=function(e,t){if(!s(e))throw Error(i(299));var o=!1,l="",u=R0,d=C0,b=T0;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=ry(e,1,!1,null,null,o,l,null,u,d,b,gy),e[nr]=t.current,Pf(e),new vd(t)},ni.hydrateRoot=function(e,t,o){if(!s(e))throw Error(i(299));var l=!1,u="",d=R0,b=C0,R=T0,O=null;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onUncaughtError!==void 0&&(d=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(R=o.onRecoverableError),o.formState!==void 0&&(O=o.formState)),t=ry(e,1,!0,t,o??null,l,u,O,d,b,R,gy),t.context=ly(null),o=t.current,l=sn(),l=iu(l),u=ka(l),u.callback=null,Ha(o,u,l),o=l,t.current.lanes=o,fl(t,o),Vn(t),e[nr]=t.current,Pf(e),new Ys(t)},ni.version="19.2.7",ni}var Ay;function Jw(){if(Ay)return Sd.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(a){console.error(a)}}return n(),Sd.exports=Fw(),Sd.exports}var Ww=Jw();function It(n){return Object.keys(n)}function Cd(n){return n&&typeof n=="object"&&!Array.isArray(n)}function wm(n,a){const r={...n},i=a;return Cd(n)&&Cd(a)&&Object.keys(a).forEach(s=>{Cd(i[s])&&s in n?r[s]=wm(r[s],i[s]):r[s]=i[s]}),r}function Pw(n){return n.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`)}function eE(n){var a;return typeof n!="string"||!n.includes("var(--mantine-scale)")?n:(a=n.match(/^calc\((.*?)\)$/))==null?void 0:a[1].split("*")[0].trim()}function fi(n){const a=eE(n);return typeof a=="number"?a:typeof a=="string"?a.includes("calc")||a.includes("var")?a:a.includes("px")?Number(a.replace("px","")):a.includes("rem")?Number(a.replace("rem",""))*16:a.includes("em")?Number(a.replace("em",""))*16:Number(a):NaN}function _y(n){return n==="0rem"?"0rem":`calc(${n} * var(--mantine-scale))`}function qv(n,{shouldScale:a=!1}={}){function r(i){if(i===0||i==="0")return`0${n}`;if(typeof i=="number"){const s=`${i/16}${n}`;return a?_y(s):s}if(typeof i=="string"){if(i===""||i.startsWith("calc(")||i.startsWith("clamp(")||i.includes("rgba("))return i;if(i.includes(","))return i.split(",").map(c=>r(c)).join(",");if(i.includes(" "))return i.split(" ").map(c=>r(c)).join(" ");const s=i.replace("px","");if(!Number.isNaN(Number(s))){const c=`${Number(s)/16}${n}`;return a?_y(c):c}}return i}return r}const ie=qv("rem",{shouldScale:!0}),My=qv("em");function Wr(n){return Object.keys(n).reduce((a,r)=>(n[r]!==void 0&&(a[r]=n[r]),a),{})}function Yv(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 a=/^[+-]?[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=>a.test(r))}return!1}function Gv(n){return Array.isArray(n)||n===null?!1:typeof n=="object"?n.type!==E.Fragment:!1}function gi(n){const a=E.createContext(null);return[a,()=>{const i=E.use(a);if(i===null)throw new Error(n);return i}]}function rc(n,a){let r=n;for(;(r=r.parentElement)&&!r.matches(a););return r}function tE(n,a,r){for(let i=n-1;i>=0;i-=1)if(!a[i].disabled)return i;if(r){for(let i=a.length-1;i>-1;i-=1)if(!a[i].disabled)return i}return n}function nE(n,a,r){for(let i=n+1;i<a.length;i+=1)if(!a[i].disabled)return i;if(r){for(let i=0;i<a.length;i+=1)if(!a[i].disabled)return i}return n}function aE(n,a,r){return rc(n,r)===rc(a,r)}function Em({parentSelector:n,siblingSelector:a,onKeyDown:r,loop:i=!0,activateOnFocus:s=!1,dir:c="rtl",orientation:f}){return m=>{var v;r==null||r(m);const p=Array.from(((v=rc(m.currentTarget,n))==null?void 0:v.querySelectorAll(a))||[]).filter(x=>aE(m.currentTarget,x,n)),h=p.findIndex(x=>m.currentTarget===x),y=nE(h,p,i),g=tE(h,p,i);switch(m.key){case"ArrowRight":break;case"ArrowLeft":break;case"ArrowUp":m.stopPropagation(),m.preventDefault(),p[g].focus(),s&&p[g].click();break;case"ArrowDown":m.stopPropagation(),m.preventDefault(),p[y].focus(),s&&p[y].click();break;case"Home":m.stopPropagation(),m.preventDefault(),!p[0].disabled&&p[0].focus();break;case"End":{m.stopPropagation(),m.preventDefault();const x=p.length-1;!p[x].disabled&&p[x].focus();break}}}}const oE={app:100,modal:200,popover:300,overlay:400,max:9999};function Rc(n){return oE[n]}const rE=()=>{};function lE(n,a={active:!0}){return typeof n!="function"||!a.active?a.onKeyDown||rE:r=>{var i;r.key==="Escape"&&(n(r),(i=a.onTrigger)==null||i.call(a))}}function Xe(n,a="size",r=!0){if(n!==void 0)return Yv(n)?r?ie(n):n:`var(--${a}-${n})`}function cn(n){return Xe(n,"mantine-spacing")}function Et(n){return n===void 0?"var(--mantine-radius-default)":Xe(n,"mantine-radius")}function Ft(n){return Xe(n,"mantine-font-size")}function iE(n){return Xe(n,"mantine-line-height",!1)}function Vv(n){if(n)return Xe(n,"mantine-shadow",!1)}function dt(n,a){return r=>{n==null||n(r),a==null||a(r)}}function sE(n,a){return n in a?fi(a[n]):fi(n)}function cE(n,a){const r=n.map(i=>({value:i,px:sE(i,a)}));return r.sort((i,s)=>i.px-s.px),r}function Xr(n){return typeof n=="object"&&n!==null?"base"in n?n.base:void 0:n}function uE(n,a,r){var i;return r?Array.from(((i=rc(r,a))==null?void 0:i.querySelectorAll(n))||[]).findIndex(s=>s===r):null}function fE(n="mantine-"){return`${n}${Math.random().toString(36).slice(2,11)}`}function li(n){const a=E.useRef(n);return E.useEffect(()=>{a.current=n}),E.useMemo(()=>((...r)=>{var i;return(i=a.current)==null?void 0:i.call(a,...r)}),[])}function Cc(n,a){const{delay:r,flushOnUnmount:i,leading:s,maxWait:c}=typeof a=="number"?{delay:a,flushOnUnmount:!1,leading:!1,maxWait:void 0}:a,f=li(n),m=E.useRef(0),p=E.useRef(0),h=E.useRef(null),y=E.useMemo(()=>{const g=Object.assign((...v)=>{window.clearTimeout(m.current),h.current=v;const x=g._isFirstCall;g._isFirstCall=!1;function T(){window.clearTimeout(m.current),window.clearTimeout(p.current),m.current=0,p.current=0,g._isFirstCall=!0,g._hasPendingCallback=!1}function w(){c!==void 0&&p.current===0&&(p.current=window.setTimeout(()=>{if(m.current!==0){const M=h.current;T(),f(...M)}},c))}if(s&&x){f(...v);const M=()=>{T()},_=()=>{m.current!==0&&(T(),f(...v))},z=()=>{T()};g.flush=_,g.cancel=z,m.current=window.setTimeout(M,r),w();return}if(s&&!x){g._hasPendingCallback=!0;const M=()=>{m.current!==0&&(T(),f(...v))},_=()=>{T()};g.flush=M,g.cancel=_;const z=()=>{T()};m.current=window.setTimeout(z,r),w();return}g._hasPendingCallback=!0;const C=()=>{m.current!==0&&(T(),f(...v))},A=()=>{T()};g.flush=C,g.cancel=A,m.current=window.setTimeout(C,r),w()},{flush:()=>{},cancel:()=>{},isPending:()=>g._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return g},[f,r,s,c]);return E.useEffect(()=>()=>{i?y.flush():y.cancel()},[y,i]),y}const dE=["mousedown","touchstart"];function mE(n,a,r,i=!0){const s=E.useRef(null),c=a||dE,f=E.useEffectEvent(p=>{const{target:h}=p??{};if(!document.body.contains(h)&&(h==null?void 0:h.tagName)!=="HTML")return;const y=p.composedPath();Array.isArray(r)?r.every(g=>!!g&&!y.includes(g))&&n(p):s.current&&!y.includes(s.current)&&n(p)}),m=c.join(",");return E.useEffect(()=>{if(!i)return;const p=m.split(",");return p.forEach(h=>document.addEventListener(h,f)),()=>{p.forEach(h=>document.removeEventListener(h,f))}},[m,i]),s}function hE(n={}){const a=n.timeout??2e3,[r,i]=E.useState(null),[s,c]=E.useState(!1),f=E.useRef(null);E.useEffect(()=>()=>{window.clearTimeout(f.current)},[]);const m=y=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c(!1),a),c(y)};return{copy:y=>{"clipboard"in navigator?navigator.clipboard.writeText(y).then(()=>{i(null),m(!0)}).catch(g=>i(g)):i(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{c(!1),i(null),window.clearTimeout(f.current)},error:r,copied:s}}function pE(n,a){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(n).matches:!1}function gE(n,a,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[i,s]=E.useState(r?a:pE(n));return E.useEffect(()=>{try{if("matchMedia"in window){const c=window.matchMedia(n);s(c.matches);const f=m=>s(m.matches);return c.addEventListener("change",f),()=>{c.removeEventListener("change",f)}}}catch{return}},[n]),i||!1}const Ca=typeof document<"u"?E.useLayoutEffect:E.useEffect;function Rm(n,a){const r=E.useRef(!1);E.useEffect(()=>()=>{r.current=!1},[]),E.useEffect(()=>{if(r.current)return n();r.current=!0},a)}function yE({opened:n,shouldReturnFocus:a=!0}){const r=E.useRef(null),i=()=>{var s;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((s=r.current)==null||s.focus({preventScroll:!0}))};return Rm(()=>{let s=-1;const c=f=>{f.key==="Tab"&&window.clearTimeout(s)};if(document.addEventListener("keydown",c),n)r.current=document.activeElement;else if(a){const f=document.activeElement;s=window.setTimeout(()=>{const m=document.activeElement;(m===null||m===document.body||m===f)&&i()},10)}return()=>{window.clearTimeout(s),document.removeEventListener("keydown",c)}},[n,a]),i}const vE=/input|select|textarea|button|object/,Xv="a, input, select, textarea, button, object, [tabindex]";function bE(n){return n.style.display==="none"}function xE(n){if(n.getAttribute("aria-hidden")||n.getAttribute("hidden")||n.getAttribute("type")==="hidden")return!1;let a=n;for(;a&&!(a===document.body||a.nodeType===11);){if(bE(a))return!1;a=a.parentNode}return!0}function Zv(n){let a=n.getAttribute("tabindex");return a===null&&(a=void 0),parseInt(a,10)}function Pd(n){const a=n.nodeName.toLowerCase(),r=!Number.isNaN(Zv(n));return(vE.test(a)&&!n.disabled||n instanceof HTMLAnchorElement&&n.href||r)&&xE(n)}function Kv(n){const a=Zv(n);return(Number.isNaN(a)||a>=0)&&Pd(n)}function SE(n){return Array.from(n.querySelectorAll(Xv)).filter(Kv)}function wE(n,a){const r=SE(n);if(!r.length){a.preventDefault();return}const i=r[a.shiftKey?0:r.length-1],s=n.getRootNode();let c=i===s.activeElement||n===s.activeElement;const f=s.activeElement;if(f.tagName==="INPUT"&&f.getAttribute("type")==="radio"&&(c=r.filter(p=>p.getAttribute("type")==="radio"&&p.getAttribute("name")===f.getAttribute("name")).includes(i)),!c)return;a.preventDefault();const m=r[a.shiftKey?r.length-1:0];m&&m.focus()}function EE(n=!0){const a=E.useRef(null),r=s=>{let c=s.querySelector("[data-autofocus]");if(!c){const f=Array.from(s.querySelectorAll(Xv));c=f.find(Kv)||f.find(Pd)||null,!c&&Pd(s)&&(c=s)}c?c.focus({preventScroll:!0}):console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node",s)},i=E.useCallback(s=>{if(n){if(s===null){a.current=null;return}a.current!==s&&(setTimeout(()=>{s.getRootNode()?r(s):console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom",s)}),a.current=s)}},[n]);return E.useEffect(()=>{if(!n)return;a.current&&setTimeout(()=>{a.current&&r(a.current)});const s=c=>{c.key==="Tab"&&a.current&&wE(a.current,c)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n]),i}function Io(n){const[a,r]=E.useState(`mantine-${E.useId().replace(/:/g,"")}`);return Ca(()=>{r(fE())},[]),typeof n=="string"?n:a}function em(n,a){if(typeof n=="function")return n(a);typeof n=="object"&&n!==null&&"current"in n&&(n.current=a)}function RE(...n){const a=new Map;return r=>{if(n.forEach(i=>{const s=em(i,r);s&&a.set(i,s)}),a.size>0)return()=>{n.forEach(i=>{const s=a.get(i);s&&typeof s=="function"?s():em(i,null)}),a.clear()}}}function gt(...n){return E.useCallback(RE(...n),n)}function uo({value:n,defaultValue:a,finalValue:r,onChange:i=()=>{}}){const[s,c]=E.useState(a!==void 0?a:r),f=(m,...p)=>{c(m),i==null||i(m,...p)};return n!==void 0?[n,i,!0]:[s,f,!1]}function CE(n,a){return gE("(prefers-reduced-motion: reduce)",n,a)}function TE(n=!1,a={}){const[r,i]=E.useState(n),s=E.useCallback(()=>{i(f=>{var m;return f||((m=a.onOpen)==null||m.call(a),!0)})},[a.onOpen]),c=E.useCallback(()=>{i(f=>{var m;return f&&((m=a.onClose)==null||m.call(a),!1)})},[a.onClose]);return[r,{open:s,close:c,toggle:E.useCallback(()=>{r?c():s()},[c,s,r]),set:i}]}var Cm=$v();const AE=Hv(Cm);var _E={};function ME(){return"development"}function Tm(n){var r;const a=Wd.version;return typeof Wd.version!="string"||a.startsWith("18.")?n==null?void 0:n.ref:(r=n==null?void 0:n.props)==null?void 0:r.ref}function Fo(n){const a=E.Children.toArray(n);return a.length!==1||!Gv(a[0])?null:a[0]}function Qv(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(a=0;a<s;a++)n[a]&&(r=Qv(n[a]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function Ln(){for(var n,a,r=0,i="",s=arguments.length;r<s;r++)(n=arguments[r])&&(a=Qv(n))&&(i&&(i+=" "),i+=a);return i}const jE={};function zE(n){const a={};return n.forEach(r=>{Object.entries(r).forEach(([i,s])=>{a[i]?a[i]=Ln(a[i],s):a[i]=s})}),a}function di({theme:n,classNames:a,props:r,stylesCtx:i}){return zE((Array.isArray(a)?a:[a]).map(s=>typeof s=="function"?s(n,r,i):s||jE))}function lc({theme:n,styles:a,props:r,stylesCtx:i}){const s=Array.isArray(a)?a:[a],c={};for(const f of s)typeof f=="function"?Object.assign(c,f(n,r,i)):f&&Object.assign(c,f);return c}function jy(n){return n==="auto"||n==="dark"||n==="light"}function OE({key:n="mantine-color-scheme-value"}={}){let a;return{get:r=>{if(typeof window>"u")return r;try{const i=window.localStorage.getItem(n);return jy(i)?i:r}catch{return r}},set:r=>{try{window.localStorage.setItem(n,r)}catch(i){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",i)}},subscribe:r=>{a=i=>{i.storageArea===window.localStorage&&i.key===n&&jy(i.newValue)&&r(i.newValue)},window.addEventListener("storage",a)},unsubscribe:()=>{window.removeEventListener("storage",a)},clear:()=>{window.localStorage.removeItem(n)}}}function mi(n,a){return typeof n.primaryShade=="number"?n.primaryShade:a==="dark"?n.primaryShade.dark:n.primaryShade.light}function NE(n){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(n)}function DE(n){let a=n.replace("#","");if(a.length===3){const i=a.split("");a=[i[0],i[0],i[1],i[1],i[2],i[2]].join("")}if(a.length===8){const i=parseInt(a.slice(6,8),16)/255;return{r:parseInt(a.slice(0,2),16),g:parseInt(a.slice(2,4),16),b:parseInt(a.slice(4,6),16),a:i}}const r=parseInt(a,16);return{r:r>>16&255,g:r>>8&255,b:r&255,a:1}}function BE(n){const[a,r,i,s]=n.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:a,g:r,b:i,a:s===void 0?1:s}}function LE(n){const a=n.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!a)return{r:0,g:0,b:0,a:1};const r=parseInt(a[1],10),i=parseInt(a[2],10)/100,s=parseInt(a[3],10)/100,c=a[5]?parseFloat(a[5]):void 0,f=(1-Math.abs(2*s-1))*i,m=r/60,p=f*(1-Math.abs(m%2-1)),h=s-f/2;let y,g,v;return m>=0&&m<1?(y=f,g=p,v=0):m>=1&&m<2?(y=p,g=f,v=0):m>=2&&m<3?(y=0,g=f,v=p):m>=3&&m<4?(y=0,g=p,v=f):m>=4&&m<5?(y=p,g=0,v=f):(y=f,g=0,v=p),{r:Math.round((y+h)*255),g:Math.round((g+h)*255),b:Math.round((v+h)*255),a:c||1}}function Am(n){return NE(n)?DE(n):n.startsWith("rgb")?BE(n):n.startsWith("hsl")?LE(n):{r:0,g:0,b:0,a:1}}function Td(n){return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}function kE(n){const a=n.match(/oklch\((.*?)%\s/);return a?parseFloat(a[1]):null}function HE(n){if(n.startsWith("oklch("))return(kE(n)||0)/100;const{r:a,g:r,b:i}=Am(n),s=a/255,c=r/255,f=i/255,m=Td(s),p=Td(c),h=Td(f);return .2126*m+.7152*p+.0722*h}function ai(n,a=.179){return n.startsWith("var(")?!1:HE(n)>a}function Wn({color:n,theme:a,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"?a.white:a.black,shade:void 0,isThemeColor:!1,isLight:ai(r==="dark"?a.white:a.black,a.luminanceThreshold),variable:"--mantine-color-bright"};if(n==="dimmed")return{color:n,value:r==="dark"?a.colors.dark[2]:a.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:ai(r==="dark"?a.colors.dark[2]:a.colors.gray[6],a.luminanceThreshold),variable:"--mantine-color-dimmed"};if(n==="white"||n==="black")return{color:n,value:n==="white"?a.white:a.black,shade:void 0,isThemeColor:!1,isLight:ai(n==="white"?a.white:a.black,a.luminanceThreshold),variable:`--mantine-color-${n}`};const[i,s]=n.split("."),c=s?Number(s):void 0,f=i in a.colors;if(f){const m=c!==void 0?a.colors[i][c]:a.colors[i][mi(a,r||"light")];return{color:i,value:m,shade:c,isThemeColor:f,isLight:ai(m,a.luminanceThreshold),variable:s?`--mantine-color-${i}-${c}`:`--mantine-color-${i}-filled`}}return{color:n,value:n,isThemeColor:f,isLight:ai(n,a.luminanceThreshold),shade:c,variable:void 0}}function On(n,a){const r=Wn({color:n||a.primaryColor,theme:a});return r.variable?`var(${r.variable})`:n}function Lo(n,a){if(n.startsWith("var("))return`color-mix(in srgb, ${n}, black ${a*100}%)`;const{r,g:i,b:s,a:c}=Am(n),f=1-a,m=p=>Math.round(p*f);return`rgba(${m(r)}, ${m(i)}, ${m(s)}, ${c})`}function tm(n,a){const r={from:(n==null?void 0:n.from)||a.defaultGradient.from,to:(n==null?void 0:n.to)||a.defaultGradient.to,deg:(n==null?void 0:n.deg)??a.defaultGradient.deg??0},i=On(r.from,a),s=On(r.to,a);return`linear-gradient(${r.deg}deg, ${i} 0%, ${s} 100%)`}function ro(n,a){if(typeof n!="string"||a>1||a<0)return"rgba(0, 0, 0, 1)";if(n.startsWith("var("))return`color-mix(in srgb, ${n}, transparent ${(1-a)*100}%)`;if(n.startsWith("oklch"))return n.includes("/")?n.replace(/\/\s*[\d.]+\s*\)/,`/ ${a})`):n.replace(")",` / ${a})`);const{r,g:i,b:s}=Am(n);return`rgba(${r}, ${i}, ${s}, ${a})`}const zy=ro,UE=({color:n,theme:a,variant:r,gradient:i,autoContrast:s})=>{const c=Wn({color:n,theme:a}),f=typeof s=="boolean"?s:a.autoContrast;if(r==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(r==="filled"){const m=f&&c.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return c.isThemeColor?c.shade===void 0?{background:`var(--mantine-color-${n}-filled)`,hover:`var(--mantine-color-${n}-filled-hover)`,color:m,border:`${ie(1)} solid transparent`}:{background:`var(--mantine-color-${c.color}-${c.shade})`,hover:`var(--mantine-color-${c.color}-${c.shade===9?8:c.shade+1})`,color:m,border:`${ie(1)} solid transparent`}:{background:n,hover:Lo(n,.1),color:m,border:`${ie(1)} solid transparent`}}if(r==="light"){if(c.isThemeColor){if(c.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:`${ie(1)} solid transparent`};const m=a.colors[c.color][c.shade];return{background:m,hover:Lo(m,.1),color:`var(--mantine-color-${c.color}-light-color)`,border:`${ie(1)} solid transparent`}}return{background:ro(n,.1),hover:ro(n,.12),color:n,border:`${ie(1)} solid transparent`}}if(r==="outline")return c.isThemeColor?c.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${n}-outline-hover)`,color:`var(--mantine-color-${n}-outline)`,border:`${ie(1)} solid var(--mantine-color-${n}-outline)`}:{background:"transparent",hover:ro(a.colors[c.color][c.shade],.05),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${ie(1)} solid var(--mantine-color-${c.color}-${c.shade})`}:{background:"transparent",hover:ro(n,.05),color:n,border:`${ie(1)} solid ${n}`};if(r==="subtle"){if(c.isThemeColor){if(c.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${n}-light-hover)`,color:`var(--mantine-color-${n}-light-color)`,border:`${ie(1)} solid transparent`};const m=a.colors[c.color][c.shade];return{background:"transparent",hover:ro(m,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${ie(1)} solid transparent`}}return{background:"transparent",hover:ro(n,.12),color:n,border:`${ie(1)} solid transparent`}}return r==="transparent"?c.isThemeColor?c.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${n}-light-color)`,border:`${ie(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${ie(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:n,border:`${ie(1)} solid transparent`}:r==="white"?c.isThemeColor?c.shade===void 0?{background:"var(--mantine-color-white)",hover:Lo(a.white,.01),color:`var(--mantine-color-${n}-filled)`,border:`${ie(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Lo(a.white,.01),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${ie(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Lo(a.white,.01),color:n,border:`${ie(1)} solid transparent`}:r==="gradient"?{background:tm(i,a),hover:tm(i,a),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:`${ie(1)} solid var(--mantine-color-default-border)`}:{}};function _m({color:n,theme:a,autoContrast:r}){return(typeof r=="boolean"?r:a.autoContrast)&&Wn({color:n||a.primaryColor,theme:a}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Oy(n,a){return _m({color:n.colors[n.primaryColor][mi(n,a)],theme:n,autoContrast:null})}function Iv(n,a){return typeof n=="boolean"?n:a.autoContrast}const Fv=E.createContext(null);function Aa(){const n=E.use(Fv);if(!n)throw new Error("[@mantine/core] MantineProvider was not found in tree");return n}function $E(){return Aa().cssVariablesResolver}function qE(){return Aa().classNamesPrefix}function Mm(){return Aa().getStyleNonce}function YE(){return Aa().withStaticClasses}function GE(){return Aa().headless}function VE(){var n;return(n=Aa().stylesTransform)==null?void 0:n.sx}function XE(){var n;return(n=Aa().stylesTransform)==null?void 0:n.styles}function jm(){return Aa().env||"default"}function Jv(){return Aa().deduplicateInlineStyles}function $r(n,a){var s,c;const r=typeof window<"u"&&"matchMedia"in window&&((s=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:s.matches),i=n!=="auto"?n:r?"dark":"light";(c=a())==null||c.setAttribute("data-mantine-color-scheme",i)}function ZE({manager:n,defaultColorScheme:a,getRootElement:r,forceColorScheme:i}){const s=E.useRef(null),[c,f]=E.useState(()=>n.get(a)),m=i||c,p=E.useCallback(y=>{i||($r(y,r),f(y),n.set(y))},[n.set,m,i]),h=E.useCallback(()=>{f(a),$r(a,r),n.clear()},[n.clear,a]);return E.useEffect(()=>(n.subscribe(p),n.unsubscribe),[n.subscribe,n.unsubscribe]),Ca(()=>{$r(n.get(a),r)},[]),E.useEffect(()=>{var g;if(i)return $r(i,r),()=>{};i===void 0&&$r(c,r),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const y=v=>{c==="auto"&&$r(v.matches?"dark":"light",r)};return(g=s.current)==null||g.addEventListener("change",y),()=>{var v;return(v=s.current)==null?void 0:v.removeEventListener("change",y)}},[c,i]),{colorScheme:m,setColorScheme:p,clearColorScheme:h}}const KE={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"]},Ny="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",zm={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:KE,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:UE,autoContrast:!1,luminanceThreshold:.3,fontFamily:Ny,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:Ny,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:ie(34),lineHeight:"1.3"},h2:{fontSize:ie(26),lineHeight:"1.35"},h3:{fontSize:ie(22),lineHeight:"1.4"},h4:{fontSize:ie(18),lineHeight:"1.45"},h5:{fontSize:ie(16),lineHeight:"1.5"},h6:{fontSize:ie(14),lineHeight:"1.5"}}},fontSizes:{xs:ie(12),sm:ie(14),md:ie(16),lg:ie(18),xl:ie(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:ie(2),sm:ie(4),md:ie(8),lg:ie(16),xl:ie(32)},spacing:{xs:ie(10),sm:ie(12),md:ie(16),lg:ie(20),xl:ie(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${ie(1)} ${ie(3)} rgba(0, 0, 0, 0.05), 0 ${ie(1)} ${ie(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${ie(1)} ${ie(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ie(10)} ${ie(15)} ${ie(-5)}, rgba(0, 0, 0, 0.04) 0 ${ie(7)} ${ie(7)} ${ie(-5)}`,md:`0 ${ie(1)} ${ie(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ie(20)} ${ie(25)} ${ie(-5)}, rgba(0, 0, 0, 0.04) 0 ${ie(10)} ${ie(10)} ${ie(-5)}`,lg:`0 ${ie(1)} ${ie(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ie(28)} ${ie(23)} ${ie(-7)}, rgba(0, 0, 0, 0.04) 0 ${ie(12)} ${ie(12)} ${ie(-7)}`,xl:`0 ${ie(1)} ${ie(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ie(36)} ${ie(28)} ${ie(-7)}, rgba(0, 0, 0, 0.04) 0 ${ie(17)} ${ie(17)} ${ie(-7)}`},other:{},components:{}},QE="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Dy="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Ad(n){return n<0||n>9?!1:parseInt(n.toString(),10)===n}function By(n){if(!(n.primaryColor in n.colors))throw new Error(QE);if(typeof n.primaryShade=="object"&&(!Ad(n.primaryShade.dark)||!Ad(n.primaryShade.light)))throw new Error(Dy);if(typeof n.primaryShade=="number"&&!Ad(n.primaryShade))throw new Error(Dy)}function IE(n,a){var i;if(!a)return By(n),n;const r=wm(n,a);return a.fontFamily&&!((i=a.headings)!=null&&i.fontFamily)&&(r.headings={...r.headings,fontFamily:a.fontFamily}),By(r),r}const Om=E.createContext(null),FE=()=>E.use(Om)||zm;function un(){const n=E.use(Om);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 Wv({theme:n,children:a,inherit:r=!0}){const i=FE();return S.jsx(Om,{value:E.useMemo(()=>IE(r?i:zm,n),[n,i,r]),children:a})}Wv.displayName="@mantine/core/MantineThemeProvider";function _d(n){return Object.entries(n).map(([a,r])=>`${a}: ${r};`).join("")}function Pv(n,a){const r=a?[a]:[":root",":host"],i=_d(n.variables),s=i?`${r.join(", ")}{${i}}`:"",c=_d(n.dark),f=_d(n.light),m=p=>r.map(h=>h===":host"?`${h}([data-mantine-color-scheme="${p}"])`:`${h}[data-mantine-color-scheme="${p}"]`).join(", ");return`${s}

${c?`${m("dark")}{${c}}`:""}

${f?`${m("light")}{${f}}`:""}`}function Vs({theme:n,color:a,colorScheme:r,name:i=a,withColorValues:s=!0}){if(!n.colors[a])return{};if(r==="light"){const m=mi(n,"light"),p={[`--mantine-color-${i}-text`]:`var(--mantine-color-${i}-filled)`,[`--mantine-color-${i}-filled`]:`var(--mantine-color-${i}-${m})`,[`--mantine-color-${i}-filled-hover`]:`var(--mantine-color-${i}-${m===9?8:m+1})`,[`--mantine-color-${i}-light`]:`var(--mantine-color-${i}-1)`,[`--mantine-color-${i}-light-hover`]:`var(--mantine-color-${i}-2)`,[`--mantine-color-${i}-light-color`]:`var(--mantine-color-${i}-9)`,[`--mantine-color-${i}-outline`]:`var(--mantine-color-${i}-${m})`,[`--mantine-color-${i}-outline-hover`]:zy(n.colors[a][m],.05)};return s?{[`--mantine-color-${i}-0`]:n.colors[a][0],[`--mantine-color-${i}-1`]:n.colors[a][1],[`--mantine-color-${i}-2`]:n.colors[a][2],[`--mantine-color-${i}-3`]:n.colors[a][3],[`--mantine-color-${i}-4`]:n.colors[a][4],[`--mantine-color-${i}-5`]:n.colors[a][5],[`--mantine-color-${i}-6`]:n.colors[a][6],[`--mantine-color-${i}-7`]:n.colors[a][7],[`--mantine-color-${i}-8`]:n.colors[a][8],[`--mantine-color-${i}-9`]:n.colors[a][9],...p}:p}const c=mi(n,"dark"),f={[`--mantine-color-${i}-text`]:`var(--mantine-color-${i}-4)`,[`--mantine-color-${i}-filled`]:`var(--mantine-color-${i}-${c})`,[`--mantine-color-${i}-filled-hover`]:`var(--mantine-color-${i}-${c===9?8:c+1})`,[`--mantine-color-${i}-light`]:Lo(n.colors[a][9],.5),[`--mantine-color-${i}-light-hover`]:Lo(n.colors[a][9],.3),[`--mantine-color-${i}-light-color`]:`var(--mantine-color-${i}-0)`,[`--mantine-color-${i}-outline`]:`var(--mantine-color-${i}-${Math.max(c-4,0)})`,[`--mantine-color-${i}-outline-hover`]:zy(n.colors[a][Math.max(c-4,0)],.05)};return s?{[`--mantine-color-${i}-0`]:n.colors[a][0],[`--mantine-color-${i}-1`]:n.colors[a][1],[`--mantine-color-${i}-2`]:n.colors[a][2],[`--mantine-color-${i}-3`]:n.colors[a][3],[`--mantine-color-${i}-4`]:n.colors[a][4],[`--mantine-color-${i}-5`]:n.colors[a][5],[`--mantine-color-${i}-6`]:n.colors[a][6],[`--mantine-color-${i}-7`]:n.colors[a][7],[`--mantine-color-${i}-8`]:n.colors[a][8],[`--mantine-color-${i}-9`]:n.colors[a][9],...f}:f}function JE(n){return!!n&&typeof n=="object"&&"mantine-virtual-color"in n}function Oo(n,a,r){It(a).forEach(i=>Object.assign(n,{[`--mantine-${r}-${i}`]:a[i]}))}const eb=n=>{const a=mi(n,"light"),r=n.defaultRadius in n.radius?n.radius[n.defaultRadius]:ie(n.defaultRadius),i={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":Oy(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-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${n.primaryColor}-${a})`,"--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":Oy(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-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)"}};Oo(i.variables,n.breakpoints,"breakpoint"),Oo(i.variables,n.spacing,"spacing"),Oo(i.variables,n.fontSizes,"font-size"),Oo(i.variables,n.lineHeights,"line-height"),Oo(i.variables,n.shadows,"shadow"),Oo(i.variables,n.radius,"radius"),Oo(i.variables,n.fontWeights,"font-weight"),n.colors[n.primaryColor].forEach((c,f)=>{i.variables[`--mantine-primary-color-${f}`]=`var(--mantine-color-${n.primaryColor}-${f})`}),It(n.colors).forEach(c=>{const f=n.colors[c];if(JE(f)){Object.assign(i.light,Vs({theme:n,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(i.dark,Vs({theme:n,name:f.name,color:f.dark,colorScheme:"dark",withColorValues:!0}));return}f.forEach((m,p)=>{i.variables[`--mantine-color-${c}-${p}`]=m}),Object.assign(i.light,Vs({theme:n,color:c,colorScheme:"light",withColorValues:!1})),Object.assign(i.dark,Vs({theme:n,color:c,colorScheme:"dark",withColorValues:!1}))});const s=n.headings.sizes;return It(s).forEach(c=>{i.variables[`--mantine-${c}-font-size`]=s[c].fontSize,i.variables[`--mantine-${c}-line-height`]=s[c].lineHeight,i.variables[`--mantine-${c}-font-weight`]=s[c].fontWeight||n.headings.fontWeight}),i};function WE(){const n=un(),a=Mm(),r=It(n.breakpoints).reduce((i,s)=>{const c=n.breakpoints[s].includes("px"),f=fi(n.breakpoints[s]);return`${i}@media (max-width: ${c?`${f-.1}px`:My(f-.1)}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${c?`${f}px`:My(f)}) {.mantine-hidden-from-${s} {display: none !important;}}`},"");return S.jsx("style",{"data-mantine-styles":"classes",nonce:a==null?void 0:a(),dangerouslySetInnerHTML:{__html:r}})}function PE({theme:n,generator:a}){const r=eb(n),i=a==null?void 0:a(n);return i?wm(r,i):r}const Md=eb(zm);function e6(n){const a={variables:{},light:{},dark:{}};return It(n.variables).forEach(r=>{Md.variables[r]!==n.variables[r]&&(a.variables[r]=n.variables[r])}),It(n.light).forEach(r=>{Md.light[r]!==n.light[r]&&(a.light[r]=n.light[r])}),It(n.dark).forEach(r=>{Md.dark[r]!==n.dark[r]&&(a.dark[r]=n.dark[r])}),a}function t6(n){return Pv({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},n)}function tb({cssVariablesSelector:n,deduplicateCssVariables:a}){const r=un(),i=Mm(),s=PE({theme:r,generator:$E()}),c=(n===void 0||n===":root"||n===":host")&&a,f=Pv(c?e6(s):s,n);return f?S.jsx("style",{"data-mantine-styles":!0,nonce:i==null?void 0:i(),dangerouslySetInnerHTML:{__html:`${f}${c?"":t6(n)}`}}):null}tb.displayName="@mantine/CssVariables";function n6({respectReducedMotion:n,getRootElement:a}){Ca(()=>{var r;n&&((r=a())==null||r.setAttribute("data-respect-reduced-motion","true"))},[n])}function nb({theme:n,children:a,getStyleNonce:r,withStaticClasses:i=!0,withGlobalClasses:s=!0,deduplicateCssVariables:c=!0,withCssVariables:f=!0,cssVariablesSelector:m,classNamesPrefix:p="mantine",colorSchemeManager:h=OE(),defaultColorScheme:y="light",getRootElement:g=()=>document.documentElement,cssVariablesResolver:v,forceColorScheme:x,stylesTransform:T,env:w,deduplicateInlineStyles:C=!1}){const{colorScheme:A,setColorScheme:M,clearColorScheme:_}=ZE({defaultColorScheme:y,forceColorScheme:x,manager:h,getRootElement:g});return n6({respectReducedMotion:(n==null?void 0:n.respectReducedMotion)||!1,getRootElement:g}),S.jsx(Fv,{value:{colorScheme:A,setColorScheme:M,clearColorScheme:_,getRootElement:g,classNamesPrefix:p,getStyleNonce:r,cssVariablesResolver:v,cssVariablesSelector:m??":root",withStaticClasses:i,stylesTransform:T,env:w,deduplicateInlineStyles:C},children:S.jsxs(Wv,{theme:n,children:[f&&S.jsx(tb,{cssVariablesSelector:m,deduplicateCssVariables:c}),s&&S.jsx(WE,{}),a]})})}nb.displayName="@mantine/core/MantineProvider";function fe(n,a,r){var f;const i=un(),s=(Array.isArray(n)?n:[n]).filter(Boolean);let c={};for(const m of s){const p=(f=i.components[m])==null?void 0:f.defaultProps,h=typeof p=="function"?p(i):p;h&&(c={...c,...h})}return{...a,...c,...Wr(r)}}function Tc({classNames:n,styles:a,props:r,stylesCtx:i}){const s=un();return{resolvedClassNames:n===void 0?void 0:di({theme:s,classNames:n,props:r,stylesCtx:i||void 0}),resolvedStyles:a===void 0?void 0:lc({theme:s,styles:a,props:r,stylesCtx:i||void 0})}}const a6={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function o6({theme:n,options:a,unstyled:r}){return Ln((a==null?void 0:a.focusable)&&!r&&(n.focusClassName||a6[n.focusRing]),(a==null?void 0:a.active)&&!r&&n.activeClassName)}function r6({selector:n,stylesCtx:a,options:r,props:i,theme:s}){return di({theme:s,classNames:r==null?void 0:r.classNames,props:(r==null?void 0:r.props)||i,stylesCtx:a})[n]}function l6({selector:n,stylesCtx:a,theme:r,classNames:i,props:s}){return di({theme:r,classNames:i,props:s,stylesCtx:a})[n]}function i6({rootSelector:n,selector:a,className:r}){return n===a?r:void 0}function s6({selector:n,classes:a,unstyled:r}){return r?void 0:a[n]}function c6({themeName:n,classNamesPrefix:a,selector:r,withStaticClass:i}){return i===!1?[]:n.map(s=>`${a}-${s}-${r}`)}function u6({options:n,classes:a,selector:r,unstyled:i}){return n!=null&&n.variant&&!i?a[`${r}--${n.variant}`]:void 0}function f6({theme:n,options:a,themeName:r,selector:i,classNamesPrefix:s,resolvedClassNames:c,resolvedThemeClassNames:f,classes:m,unstyled:p,className:h,rootSelector:y,props:g,stylesCtx:v,withStaticClasses:x,headless:T,transformedStyles:w}){return Ln(o6({theme:n,options:a,unstyled:p||T}),f.map(C=>C[i]),u6({options:a,classes:m,selector:i,unstyled:p||T}),c[i],l6({selector:i,stylesCtx:v,theme:n,classNames:w,props:g}),r6({selector:i,stylesCtx:v,options:a,props:g,theme:n}),i6({rootSelector:y,selector:i,className:h}),s6({selector:i,classes:m,unstyled:p||T}),x&&!T&&c6({themeName:r,classNamesPrefix:s,selector:i,withStaticClass:a==null?void 0:a.withStaticClass}),a==null?void 0:a.className)}function Nm({style:n,theme:a}){return Array.isArray(n)?n.reduce((r,i)=>({...r,...Nm({style:i,theme:a})}),{}):typeof n=="function"?n(a):n??{}}function d6({theme:n,selector:a,options:r,props:i,stylesCtx:s,rootSelector:c,withStylesTransform:f,resolvedStyles:m,resolvedThemeStyles:p,resolvedVars:h,resolvedRootStyle:y}){return{...p[a],...m[a],...!f&&lc({theme:n,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||i,stylesCtx:s})[a],...h[a],...c===a?y:null,...Nm({style:r==null?void 0:r.style,theme:n})}}function m6(n){return n.reduce((a,r)=>(r&&Object.keys(r).forEach(i=>{a[i]={...a[i],...Wr(r[i])}}),a),{})}function h6({props:n,stylesCtx:a,themeName:r,theme:i}){var f;const s=(f=XE())==null?void 0:f();return{getTransformedStyles:m=>s?[...m.map(p=>s(p,{props:n,theme:i,ctx:a})),...r.map(p=>{var h;return s((h=i.components[p])==null?void 0:h.styles,{props:n,theme:i,ctx:a})})].filter(Boolean):[],withStylesTransform:!!s}}function Re({name:n,classes:a,props:r,stylesCtx:i,className:s,style:c,rootSelector:f="root",unstyled:m,classNames:p,styles:h,vars:y,varsResolver:g,attributes:v}){var ee;const x=un(),T=qE(),w=YE(),C=GE(),A=(Array.isArray(n)?n:[n]).filter(I=>I),{withStylesTransform:M,getTransformedStyles:_}=h6({props:r,stylesCtx:i,themeName:A,theme:x}),z=di({theme:x,classNames:p,props:r,stylesCtx:i}),U=A.map(I=>{var V;return di({theme:x,classNames:(V=x.components[I])==null?void 0:V.classNames,props:r,stylesCtx:i})}),q=M?{}:lc({theme:x,styles:h,props:r,stylesCtx:i}),H={};if(!M)for(const I of A){const V=lc({theme:x,styles:(ee=x.components[I])==null?void 0:ee.styles,props:r,stylesCtx:i});for(const X of Object.keys(V))H[X]={...H[X],...V[X]}}const k=m6([C?{}:g==null?void 0:g(x,r,i),...A.map(I=>{var V,X,N;return(N=(X=(V=x.components)==null?void 0:V[I])==null?void 0:X.vars)==null?void 0:N.call(X,x,r,i)}),y==null?void 0:y(x,r,i)]),P=Nm({style:c,theme:x});return(I,V)=>({...v==null?void 0:v[I],className:f6({theme:x,options:V,themeName:A,selector:I,classNamesPrefix:T,resolvedClassNames:z,resolvedThemeClassNames:U,classes:a,unstyled:m,className:s,rootSelector:f,props:r,stylesCtx:i,withStaticClasses:w,headless:C,transformedStyles:_([V==null?void 0:V.styles,h])}),style:d6({theme:x,selector:I,options:V,props:r,stylesCtx:i,rootSelector:f,withStylesTransform:M,resolvedStyles:q,resolvedThemeStyles:H,resolvedVars:k,resolvedRootStyle:P})})}function si(n){return It(n).reduce((a,r)=>n[r]!==void 0?`${a}${Pw(r)}:${n[r]};`:a,"").trim()}function p6({selector:n,styles:a,media:r,container:i}){const s=a?si(a):"",c=Array.isArray(r)?r.map(m=>`@media${m.query}{${n}{${si(m.styles)}}}`):[],f=Array.isArray(i)?i.map(m=>`@container ${m.query}{${n}{${si(m.styles)}}}`):[];return`${s?`${n}{${s}}`:""}${c.join("")}${f.join("")}`.trim()}function g6(n){let a=5381;for(let r=0;r<n.length;r++)a=(a<<5)+a+n.charCodeAt(r)&4294967295;return(a>>>0).toString(36)}function Ac({deduplicate:n,...a}){const r=Mm(),i=p6(a);return n?S.jsx("style",{href:`mantine-${g6(i)}`,precedence:"mantine",nonce:r==null?void 0:r(),children:i}):S.jsx("style",{"data-mantine-styles":"inline",nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:i}})}function y6(n){let a=5381;for(let r=0;r<n.length;r++)a=(a<<5)+a+n.charCodeAt(r)&4294967295;return(a>>>0).toString(36)}function ab(n,a){return`__mdi__-${y6(`${n?si(n):""}|${Array.isArray(a)?a.map(r=>`${r.query}:${si(r.styles)}`).join("|"):""}`)}`}function yi(n){const{m:a,mx:r,my:i,mt:s,mb:c,ml:f,mr:m,me:p,ms:h,mis:y,mie:g,p:v,px:x,py:T,pt:w,pb:C,pl:A,pr:M,pe:_,ps:z,pis:U,pie:q,bd:H,bdrs:k,bg:P,c:ee,opacity:I,ff:V,fz:X,fw:N,lts:te,ta:D,lh:B,fs:$,tt:J,td:oe,w:j,miw:Y,maw:W,h:ae,mih:se,mah:ce,bgsz:ue,bgp:me,bgr:he,bga:Se,pos:Ne,top:ve,left:ze,bottom:De,right:Ke,inset:lt,display:Un,flex:$n,hiddenFrom:it,visibleFrom:Fe,lightHidden:ea,darkHidden:tr,sx:We,...Ct}=n;return{styleProps:Wr({m:a,mx:r,my:i,mt:s,mb:c,ml:f,mr:m,me:p,ms:h,mis:y,mie:g,p:v,px:x,py:T,pt:w,pb:C,pl:A,pr:M,pis:U,pie:q,pe:_,ps:z,bd:H,bg:P,c:ee,opacity:I,ff:V,fz:X,fw:N,lts:te,ta:D,lh:B,fs:$,tt:J,td:oe,w:j,miw:Y,maw:W,h:ae,mih:se,mah:ce,bgsz:ue,bgp:me,bgr:he,bga:Se,pos:Ne,top:ve,left:ze,bottom:De,right:Ke,inset:lt,display:Un,flex:$n,bdrs:k,hiddenFrom:it,visibleFrom:Fe,lightHidden:ea,darkHidden:tr,sx:We}),rest:Ct}}const v6={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 Dm(n,a){const r=Wn({color:n,theme:a});return r.color==="dimmed"?"var(--mantine-color-dimmed)":r.color==="bright"?"var(--mantine-color-bright)":r.variable?`var(${r.variable})`:r.color}function b6(n,a){const r=Wn({color:n,theme:a});return r.isThemeColor&&r.shade===void 0?`var(--mantine-color-${r.color}-text)`:Dm(n,a)}function x6(n,a){if(typeof n=="number")return ie(n);if(typeof n=="string"){const[r,i,...s]=n.split(" ").filter(f=>f.trim()!=="");let c=`${ie(r)}`;return i&&(c+=` ${i}`),s.length>0&&(c+=` ${Dm(s.join(" "),a)}`),c.trim()}return n}const Ly={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 S6(n){return typeof n=="string"&&n in Ly?Ly[n]:n}const w6=["h1","h2","h3","h4","h5","h6"];function E6(n,a){return typeof n=="string"&&n in a.fontSizes?`var(--mantine-font-size-${n})`:typeof n=="string"&&w6.includes(n)?`var(--mantine-${n}-font-size)`:typeof n=="number"||typeof n=="string"?ie(n):n}function R6(n){return n}const C6=["h1","h2","h3","h4","h5","h6"];function T6(n,a){return typeof n=="string"&&n in a.lineHeights?`var(--mantine-line-height-${n})`:typeof n=="string"&&C6.includes(n)?`var(--mantine-${n}-line-height)`:n}function A6(n,a){return typeof n=="string"&&n in a.radius?`var(--mantine-radius-${n})`:typeof n=="number"||typeof n=="string"?ie(n):n}function _6(n){return typeof n=="number"?ie(n):n}function M6(n,a){if(typeof n=="number")return ie(n);if(typeof n=="string"){const r=n.replace("-","");if(!(r in a.spacing))return ie(n);const i=`--mantine-spacing-${r}`;return n.startsWith("-")?`calc(var(${i}) * -1)`:`var(${i})`}return n}const jd={color:Dm,textColor:b6,fontSize:E6,spacing:M6,radius:A6,identity:R6,size:_6,lineHeight:T6,fontFamily:S6,border:x6};function ky(n){return n.replace("(min-width: ","").replace("em)","")}function j6({media:n,...a}){const r=Object.keys(n).sort((i,s)=>Number(ky(i))-Number(ky(s))).map(i=>({query:i,styles:n[i]}));return{...a,media:r}}function z6(n){if(typeof n!="object"||n===null)return!1;const a=Object.keys(n);return!(a.length===1&&a[0]==="base")}function O6(n){return typeof n=="object"&&n!==null?"base"in n?n.base:void 0:n}function N6(n){return typeof n=="object"&&n!==null?It(n).filter(a=>a!=="base"):[]}function D6(n,a){return typeof n=="object"&&n!==null&&a in n?n[a]:n}function ob({styleProps:n,data:a,theme:r}){return j6(It(n).reduce((i,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return i;const c=a[s],f=Array.isArray(c.property)?c.property:[c.property],m=O6(n[s]);if(!z6(n[s]))return f.forEach(h=>{i.inlineStyles[h]=jd[c.type](m,r)}),i;i.hasResponsiveStyles=!0;const p=N6(n[s]);return f.forEach(h=>{m!=null&&(i.styles[h]=jd[c.type](m,r)),p.forEach(y=>{const g=`(min-width: ${r.breakpoints[y]})`;i.media[g]={...i.media[g],[h]:jd[c.type](D6(n[s],y),r)}})}),i},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Bm(){return`__m__-${E.useId().replace(/[:«»]/g,"")}`}function rb(n,a){return Array.isArray(n)?[...n].reduce((r,i)=>({...r,...rb(i,a)}),{}):typeof n=="function"?n(a):n??{}}function B6(n){return n}const L6=B6;function lb(n){return n}function Ee(n){const a=n;return a.extend=lb,a.withProps=r=>{const i=s=>S.jsx(a,{...r,...s});return i.extend=a.extend,i.displayName=`WithProps(${a.displayName})`,i},a}function k6(n){return Ee(n)}function Rt(n){const a=n;return a.withProps=r=>{const i=s=>S.jsx(a,{...r,...s});return i.extend=a.extend,i.displayName=`WithProps(${a.displayName})`,i},a.extend=lb,a}function ib(n){return`data-${(n.startsWith("data-")?n.slice(5):n).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`}function H6(n){return Object.keys(n).reduce((a,r)=>{const i=n[r];return i===void 0||i===""||i===!1||i===null||(a[ib(r)]=n[r]),a},{})}function sb(n){return n?typeof n=="string"?{[ib(n)]:!0}:Array.isArray(n)?[...n].reduce((a,r)=>({...a,...sb(r)}),{}):H6(n):null}function nm(n,a){return Array.isArray(n)?[...n].reduce((r,i)=>({...r,...nm(i,a)}),{}):typeof n=="function"?n(a):n??{}}function U6({theme:n,style:a,vars:r,styleProps:i}){const s=nm(a,n),c=nm(r,n);return{...s,...c,...i}}function cb({component:n,style:a,__vars:r,className:i,variant:s,mod:c,size:f,hiddenFrom:m,visibleFrom:p,lightHidden:h,darkHidden:y,renderRoot:g,__size:v,ref:x,...T}){var P,ee;const w=un(),C=n||"div",{styleProps:A,rest:M}=yi(T),_=(ee=(P=VE())==null?void 0:P())==null?void 0:ee(A.sx),z=Bm(),U=ob({styleProps:A,theme:w,data:v6}),q=Jv(),H=q&&U.hasResponsiveStyles?ab(U.styles,U.media):z,k={ref:x,style:U6({theme:w,style:a,vars:r,styleProps:U.inlineStyles}),className:Ln(i,_,{[H]:U.hasResponsiveStyles,"mantine-light-hidden":h,"mantine-dark-hidden":y,[`mantine-hidden-from-${m}`]:m,[`mantine-visible-from-${p}`]:p}),"data-variant":s,"data-size":Yv(f)?void 0:f||void 0,size:v,...sb(c),...M};return S.jsxs(S.Fragment,{children:[U.hasResponsiveStyles&&S.jsx(Ac,{selector:`.${H}`,styles:U.styles,media:U.media,deduplicate:q}),typeof g=="function"?g(k):S.jsx(C,{...k})]})}cb.displayName="@mantine/core/Box";const ge=L6(cb),$6=E.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function _a(){return E.use($6)}const[q6,En]=gi("ScrollArea.Root component was not found in tree");function lo(n,a){const r=E.useEffectEvent(a);Ca(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n])}function Y6(n){const{style:a,...r}=n,i=En(),[s,c]=E.useState(0),[f,m]=E.useState(0),p=!!(s&&f);return lo(i.scrollbarX,()=>{var y;const h=((y=i.scrollbarX)==null?void 0:y.offsetHeight)||0;i.onCornerHeightChange(h),m(h)}),lo(i.scrollbarY,()=>{var y;const h=((y=i.scrollbarY)==null?void 0:y.offsetWidth)||0;i.onCornerWidthChange(h),c(h)}),p?S.jsx("div",{...r,style:{...a,width:s,height:f}}):null}function G6(n){const a=En(),r=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&r?S.jsx(Y6,{...n}):null}const V6={scrollHideDelay:1e3,type:"hover"};function ub(n){const{type:a,scrollHideDelay:r,scrollbars:i,getStyles:s,ref:c,...f}=fe("ScrollAreaRoot",V6,n),[m,p]=E.useState(null),[h,y]=E.useState(null),[g,v]=E.useState(null),[x,T]=E.useState(null),[w,C]=E.useState(null),[A,M]=E.useState(0),[_,z]=E.useState(0),[U,q]=E.useState(!1),[H,k]=E.useState(!1),P=gt(c,p);return S.jsx(q6,{value:{type:a,scrollHideDelay:r,scrollArea:m,viewport:h,onViewportChange:y,content:g,onContentChange:v,scrollbarX:x,onScrollbarXChange:T,scrollbarXEnabled:U,onScrollbarXEnabledChange:q,scrollbarY:w,onScrollbarYChange:C,scrollbarYEnabled:H,onScrollbarYEnabledChange:k,onCornerWidthChange:M,onCornerHeightChange:z,getStyles:s},children:S.jsx(ge,{...f,ref:P,__vars:{"--sa-corner-width":i!=="xy"?"0px":`${A}px`,"--sa-corner-height":i!=="xy"?"0px":`${_}px`}})})}ub.displayName="@mantine/core/ScrollAreaRoot";function fb(n,a){const r=n/a;return Number.isNaN(r)?0:r}function _c(n){const a=fb(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*a;return Math.max(i,18)}function db(n,a){return r=>{if(n[0]===n[1]||a[0]===a[1])return a[0];const i=(a[1]-a[0])/(n[1]-n[0]);return a[0]+i*(r-n[0])}}function X6(n,[a,r]){return Math.min(r,Math.max(a,n))}function Hy(n,a,r="ltr"){const i=_c(a),s=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,c=a.scrollbar.size-s,f=a.content-a.viewport,m=c-i,p=X6(n,r==="ltr"?[0,f]:[f*-1,0]);return db([0,f],[0,m])(p)}function Z6(n,a,r,i="ltr"){const s=_c(r),c=s/2,f=a||c,m=s-f,p=r.scrollbar.paddingStart+f,h=r.scrollbar.size-r.scrollbar.paddingEnd-m,y=r.content-r.viewport,g=i==="ltr"?[0,y]:[y*-1,0];return db([p,h],g)(n)}function mb(n,a){return n>0&&n<a}function ic(n){return n?parseInt(n,10):0}function qo(n,a,{checkForDefaultPrevented:r=!0}={}){return i=>{n==null||n(i),(r===!1||!i.defaultPrevented)&&(a==null||a(i))}}const[K6,hb]=gi("ScrollAreaScrollbar was not found in tree");function pb(n){const{sizes:a,hasThumb:r,onThumbChange:i,onThumbPointerUp:s,onThumbPointerDown:c,onThumbPositionChange:f,onDragScroll:m,onWheelScroll:p,onResize:h,ref:y,...g}=n,v=En(),[x,T]=E.useState(null),w=gt(y,T),C=E.useRef(null),A=E.useRef(""),{viewport:M}=v,_=a.content-a.viewport,z=E.useEffectEvent(p),U=li(f),q=Cc(h,10),H=k=>{C.current&&m({x:k.clientX-C.current.left,y:k.clientY-C.current.top})};return E.useEffect(()=>{const k=P=>{const ee=P.target;x!=null&&x.contains(ee)&&z(P,_)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[M,x,_]),E.useEffect(U,[a,U]),lo(x,q),lo(v.content,q),S.jsx(K6,{value:{scrollbar:x,hasThumb:r,onThumbChange:li(i),onThumbPointerUp:li(s),onThumbPositionChange:U,onThumbPointerDown:li(c)},children:S.jsx("div",{...g,ref:w,"data-mantine-scrollbar":!0,style:{position:"absolute",...g.style},onPointerDown:qo(n.onPointerDown,k=>{k.preventDefault(),k.button===0&&(k.target.setPointerCapture(k.pointerId),C.current=x.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",H(k))}),onPointerMove:qo(n.onPointerMove,H),onPointerUp:qo(n.onPointerUp,k=>{const P=k.target;P.hasPointerCapture(k.pointerId)&&(k.preventDefault(),P.releasePointerCapture(k.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=A.current,C.current=null}})})}const gb=n=>{const{sizes:a,onSizesChange:r,style:i,ref:s,...c}=n,f=En(),[m,p]=E.useState(),h=E.useRef(null),y=gt(s,h,f.onScrollbarXChange);return E.useEffect(()=>{h.current&&p(getComputedStyle(h.current))},[h]),S.jsx(pb,{"data-orientation":"horizontal",...c,ref:y,sizes:a,style:{...i,"--sa-thumb-width":`${_c(a)}px`},onThumbPointerDown:g=>n.onThumbPointerDown(g.x),onDragScroll:g=>n.onDragScroll(g.x),onWheelScroll:(g,v)=>{if(f.viewport){const x=f.viewport.scrollLeft+g.deltaX;n.onWheelScroll(x),mb(x,v)&&g.preventDefault()}},onResize:()=>{h.current&&f.viewport&&m&&r({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:ic(m.paddingLeft),paddingEnd:ic(m.paddingRight)}})}})};gb.displayName="@mantine/core/ScrollAreaScrollbarX";function yb(n){const{sizes:a,onSizesChange:r,style:i,ref:s,...c}=n,f=En(),[m,p]=E.useState(),h=E.useRef(null),y=gt(s,h,f.onScrollbarYChange);return E.useEffect(()=>{h.current&&p(window.getComputedStyle(h.current))},[]),S.jsx(pb,{...c,"data-orientation":"vertical",ref:y,sizes:a,style:{"--sa-thumb-height":`${_c(a)}px`,...i},onThumbPointerDown:g=>n.onThumbPointerDown(g.y),onDragScroll:g=>n.onDragScroll(g.y),onWheelScroll:(g,v)=>{if(f.viewport){const x=f.viewport.scrollTop+g.deltaY;n.onWheelScroll(x),mb(x,v)&&g.preventDefault()}},onResize:()=>{h.current&&f.viewport&&m&&r({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:ic(m.paddingTop),paddingEnd:ic(m.paddingBottom)}})}})}yb.displayName="@mantine/core/ScrollAreaScrollbarY";function Mc(n){const{orientation:a="vertical",...r}=n,{dir:i}=_a(),s=En(),c=E.useRef(null),f=E.useRef(0),[m,p]=E.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=fb(m.viewport,m.content),y={...r,sizes:m,onSizesChange:p,hasThumb:h>0&&h<1,onThumbChange:v=>{c.current=v},onThumbPointerUp:()=>{f.current=0},onThumbPointerDown:v=>{f.current=v}},g=(v,x)=>Z6(v,f.current,m,x);return a==="horizontal"?S.jsx(gb,{...y,onThumbPositionChange:()=>{if(s.viewport&&c.current){const v=s.viewport.scrollLeft,x=Hy(v,m,i);c.current.style.transform=`translate3d(${x}px, 0, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollLeft=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollLeft=g(v,i))}}):a==="vertical"?S.jsx(yb,{...y,onThumbPositionChange:()=>{if(s.viewport&&c.current){const v=s.viewport.scrollTop,x=Hy(v,m);m.scrollbar.size===0?c.current.style.setProperty("--thumb-opacity","0"):c.current.style.setProperty("--thumb-opacity","1"),c.current.style.transform=`translate3d(0, ${x}px, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollTop=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollTop=g(v))}}):null}Mc.displayName="@mantine/core/ScrollAreaScrollbarVisible";function Lm(n){const a=En(),{forceMount:r,...i}=n,[s,c]=E.useState(!1),f=n.orientation==="horizontal",m=Cc(()=>{if(a.viewport){const p=a.viewport.offsetWidth<a.viewport.scrollWidth,h=a.viewport.offsetHeight<a.viewport.scrollHeight;c(f?p:h)}},10);return lo(a.viewport,m),lo(a.content,m),r||s?S.jsx(Mc,{"data-state":s?"visible":"hidden",...i}):null}Lm.displayName="@mantine/core/ScrollAreaScrollbarAuto";function vb(n){const{forceMount:a,...r}=n,i=En(),[s,c]=E.useState(!1);return E.useEffect(()=>{const{scrollArea:f}=i;let m=0;if(f){const p=()=>{window.clearTimeout(m),c(!0)},h=()=>{m=window.setTimeout(()=>c(!1),i.scrollHideDelay)};return f.addEventListener("pointerenter",p),f.addEventListener("pointerleave",h),()=>{window.clearTimeout(m),f.removeEventListener("pointerenter",p),f.removeEventListener("pointerleave",h)}}},[i.scrollArea,i.scrollHideDelay]),a||s?S.jsx(Lm,{"data-state":s?"visible":"hidden",...r}):null}vb.displayName="@mantine/core/ScrollAreaScrollbarHover";function Q6(n){const{forceMount:a,...r}=n,i=En(),s=n.orientation==="horizontal",[c,f]=E.useState("hidden"),m=Cc(()=>f("idle"),100);return E.useEffect(()=>{if(c==="idle"){const p=window.setTimeout(()=>f("hidden"),i.scrollHideDelay);return()=>window.clearTimeout(p)}},[c,i.scrollHideDelay]),E.useEffect(()=>{const{viewport:p}=i,h=s?"scrollLeft":"scrollTop";if(p){let y=p[h];const g=()=>{const v=p[h];y!==v&&(f("scrolling"),m()),y=v};return p.addEventListener("scroll",g),()=>p.removeEventListener("scroll",g)}},[i.viewport,s,m]),a||c!=="hidden"?S.jsx(Mc,{"data-state":c==="hidden"?"hidden":"visible",...r,onPointerEnter:qo(n.onPointerEnter,()=>f("interacting")),onPointerLeave:qo(n.onPointerLeave,()=>f("idle"))}):null}function am(n){const{forceMount:a,...r}=n,i=En(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=i,f=n.orientation==="horizontal";return E.useEffect(()=>(f?s(!0):c(!0),()=>{f?s(!1):c(!1)}),[f,s,c]),i.type==="hover"?S.jsx(vb,{...r,forceMount:a}):i.type==="scroll"?S.jsx(Q6,{...r,forceMount:a}):i.type==="auto"?S.jsx(Lm,{...r,forceMount:a}):i.type==="always"?S.jsx(Mc,{...r}):null}am.displayName="@mantine/core/ScrollAreaScrollbar";function I6(n,a=()=>{}){let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function s(){const c={left:n.scrollLeft,top:n.scrollTop},f=r.left!==c.left,m=r.top!==c.top;(f||m)&&a(),r=c,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)}function bb(n){const{style:a,ref:r,...i}=n,s=En(),c=hb(),{onThumbPositionChange:f}=c,m=gt(r,c.onThumbChange),p=E.useRef(void 0),h=Cc(()=>{p.current&&(p.current(),p.current=void 0)},100);return E.useEffect(()=>{const{viewport:y}=s;if(y){const g=()=>{h(),p.current||(p.current=I6(y,f),f())};return f(),y.addEventListener("scroll",g),()=>y.removeEventListener("scroll",g)}},[s.viewport,h,f]),S.jsx("div",{"data-state":c.hasThumb?"visible":"hidden",...i,ref:m,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...a},onPointerDownCapture:qo(n.onPointerDownCapture,y=>{const g=y.target.getBoundingClientRect(),v=y.clientX-g.left,x=y.clientY-g.top;c.onThumbPointerDown({x:v,y:x})}),onPointerUp:qo(n.onPointerUp,c.onThumbPointerUp)})}bb.displayName="@mantine/core/ScrollAreaThumb";function om(n){const{forceMount:a,...r}=n,i=hb();return a||i.hasThumb?S.jsx(bb,{...r}):null}om.displayName="@mantine/core/ScrollAreaThumb";function xb({children:n,style:a,ref:r,onWheel:i,...s}){const c=En(),f=gt(r,c.onViewportChange),m=p=>{if(i==null||i(p),c.scrollbarXEnabled&&c.viewport&&p.shiftKey){const{scrollTop:h,scrollHeight:y,clientHeight:g,scrollWidth:v,clientWidth:x}=c.viewport,T=h<1,w=h>=y-g-1;v>x&&(T||w)&&p.stopPropagation()}};return S.jsx(ge,{...s,ref:f,onWheel:m,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...a},children:S.jsx("div",{...c.getStyles("content"),ref:c.onContentChange,children:n})})}xb.displayName="@mantine/core/ScrollAreaViewport";var km={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};function jc(){return typeof window<"u"}function Pr(n){return Sb(n)?(n.nodeName||"").toLowerCase():"#document"}function Jt(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function Pn(n){var a;return(a=(Sb(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function Sb(n){return jc()?n instanceof Node||n instanceof Jt(n).Node:!1}function Ze(n){return jc()?n instanceof Element||n instanceof Jt(n).Element:!1}function Rn(n){return jc()?n instanceof HTMLElement||n instanceof Jt(n).HTMLElement:!1}function sc(n){return!jc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Jt(n).ShadowRoot}function vi(n){const{overflow:a,overflowX:r,overflowY:i,display:s}=Sn(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&s!=="inline"&&s!=="contents"}function F6(n){return/^(table|td|th)$/.test(Pr(n))}function zc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const J6=/transform|translate|scale|rotate|perspective|filter/,W6=/paint|layout|strict|content/,No=n=>!!n&&n!=="none";let zd;function Hm(n){const a=Ze(n)?Sn(n):n;return No(a.transform)||No(a.translate)||No(a.scale)||No(a.rotate)||No(a.perspective)||!Oc()&&(No(a.backdropFilter)||No(a.filter))||J6.test(a.willChange||"")||W6.test(a.contain||"")}function P6(n){let a=Ta(n);for(;Rn(a)&&!wa(a);){if(Hm(a))return a;if(zc(a))return null;a=Ta(a)}return null}function Oc(){return zd==null&&(zd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zd}function wa(n){return/^(html|body|#document)$/.test(Pr(n))}function Sn(n){return Jt(n).getComputedStyle(n)}function Nc(n){return Ze(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ta(n){if(Pr(n)==="html")return n;const a=n.assignedSlot||n.parentNode||sc(n)&&n.host||Pn(n);return sc(a)?a.host:a}function wb(n){const a=Ta(n);return wa(a)?n.ownerDocument?n.ownerDocument.body:n.body:Rn(a)&&vi(a)?a:wb(a)}function Ea(n,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const s=wb(n),c=s===((i=n.ownerDocument)==null?void 0:i.body),f=Jt(s);if(c){const m=rm(f);return a.concat(f,f.visualViewport||[],vi(s)?s:[],m&&r?Ea(m):[])}else return a.concat(s,Ea(s,[],r))}function rm(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const e3=["top","right","bottom","left"],Nn=Math.min,Bt=Math.max,cc=Math.round,Xs=Math.floor,Kn=n=>({x:n,y:n}),t3={left:"right",right:"left",bottom:"top",top:"bottom"};function lm(n,a,r){return Bt(n,Nn(a,r))}function Jn(n,a){return typeof n=="function"?n(a):n}function Dn(n){return n.split("-")[0]}function el(n){return n.split("-")[1]}function Um(n){return n==="x"?"y":"x"}function $m(n){return n==="y"?"height":"width"}function jn(n){const a=n[0];return a==="t"||a==="b"?"y":"x"}function qm(n){return Um(jn(n))}function n3(n,a,r){r===void 0&&(r=!1);const i=el(n),s=qm(n),c=$m(s);let f=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(f=uc(f)),[f,uc(f)]}function a3(n){const a=uc(n);return[im(n),a,im(a)]}function im(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Uy=["left","right"],$y=["right","left"],o3=["top","bottom"],r3=["bottom","top"];function l3(n,a,r){switch(n){case"top":case"bottom":return r?a?$y:Uy:a?Uy:$y;case"left":case"right":return a?o3:r3;default:return[]}}function i3(n,a,r,i){const s=el(n);let c=l3(Dn(n),r==="start",i);return s&&(c=c.map(f=>f+"-"+s),a&&(c=c.concat(c.map(im)))),c}function uc(n){const a=Dn(n);return t3[a]+n.slice(a.length)}function s3(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ym(n){return typeof n!="number"?s3(n):{top:n,right:n,bottom:n,left:n}}function Kr(n){const{x:a,y:r,width:i,height:s}=n;return{width:i,height:s,top:r,left:a,right:a+i,bottom:r+s,x:a,y:r}}function c3(){const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform}function u3(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(a=>{let{brand:r,version:i}=a;return r+"/"+i}).join(" "):navigator.userAgent}function f3(){return/apple/i.test(navigator.vendor)}function d3(){return c3().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function m3(){return u3().includes("jsdom/")}const qy="data-floating-ui-focusable",h3="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Yy(n){let a=n.activeElement;for(;((r=a)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;a=a.shadowRoot.activeElement}return a}function hi(n,a){if(!n||!a)return!1;const r=a.getRootNode==null?void 0:a.getRootNode();if(n.contains(a))return!0;if(r&&sc(r)){let i=a;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function Vr(n){return"composedPath"in n?n.composedPath()[0]:n.target}function Od(n,a){if(a==null)return!1;if("composedPath"in n)return n.composedPath().includes(a);const r=n;return r.target!=null&&a.contains(r.target)}function p3(n){return n.matches("html,body")}function ko(n){return(n==null?void 0:n.ownerDocument)||document}function g3(n){return Rn(n)&&n.matches(h3)}function y3(n){if(!n||m3())return!0;try{return n.matches(":focus-visible")}catch{return!0}}function v3(n){return n?n.hasAttribute(qy)?n:n.querySelector("["+qy+"]")||n:null}function ec(n,a,r){return r===void 0&&(r=!0),n.filter(s=>{var c;return s.parentId===a&&(!r||((c=s.context)==null?void 0:c.open))}).flatMap(s=>[s,...ec(n,s.id,r)])}function b3(n){return"nativeEvent"in n}function sm(n,a){const r=["mouse","pen"];return r.push("",void 0),r.includes(n)}var x3=typeof document<"u",S3=function(){},Qn=x3?E.useLayoutEffect:S3;const w3={...Uv};function Zs(n){const a=E.useRef(n);return Qn(()=>{a.current=n}),a}const E3=w3.useInsertionEffect,R3=E3||(n=>n());function Zn(n){const a=E.useRef(()=>{});return R3(()=>{a.current=n}),E.useCallback(function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return a.current==null?void 0:a.current(...i)},[])}function Gy(n,a,r){let{reference:i,floating:s}=n;const c=jn(a),f=qm(a),m=$m(f),p=Dn(a),h=c==="y",y=i.x+i.width/2-s.width/2,g=i.y+i.height/2-s.height/2,v=i[m]/2-s[m]/2;let x;switch(p){case"top":x={x:y,y:i.y-s.height};break;case"bottom":x={x:y,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-s.width,y:g};break;default:x={x:i.x,y:i.y}}switch(el(a)){case"start":x[f]-=v*(r&&h?-1:1);break;case"end":x[f]+=v*(r&&h?-1:1);break}return x}async function C3(n,a){var r;a===void 0&&(a={});const{x:i,y:s,platform:c,rects:f,elements:m,strategy:p}=n,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:v=!1,padding:x=0}=Jn(a,n),T=Ym(x),C=m[v?g==="floating"?"reference":"floating":g],A=Kr(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(C)))==null||r?C:C.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(m.floating)),boundary:h,rootBoundary:y,strategy:p})),M=g==="floating"?{x:i,y:s,width:f.floating.width,height:f.floating.height}:f.reference,_=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m.floating)),z=await(c.isElement==null?void 0:c.isElement(_))?await(c.getScale==null?void 0:c.getScale(_))||{x:1,y:1}:{x:1,y:1},U=Kr(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:M,offsetParent:_,strategy:p}):M);return{top:(A.top-U.top+T.top)/z.y,bottom:(U.bottom-A.bottom+T.bottom)/z.y,left:(A.left-U.left+T.left)/z.x,right:(U.right-A.right+T.right)/z.x}}const T3=50,A3=async(n,a,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,m=f.detectOverflow?f:{...f,detectOverflow:C3},p=await(f.isRTL==null?void 0:f.isRTL(a));let h=await f.getElementRects({reference:n,floating:a,strategy:s}),{x:y,y:g}=Gy(h,i,p),v=i,x=0;const T={};for(let w=0;w<c.length;w++){const C=c[w];if(!C)continue;const{name:A,fn:M}=C,{x:_,y:z,data:U,reset:q}=await M({x:y,y:g,initialPlacement:i,placement:v,strategy:s,middlewareData:T,rects:h,platform:m,elements:{reference:n,floating:a}});y=_??y,g=z??g,T[A]={...T[A],...U},q&&x<T3&&(x++,typeof q=="object"&&(q.placement&&(v=q.placement),q.rects&&(h=q.rects===!0?await f.getElementRects({reference:n,floating:a,strategy:s}):q.rects),{x:y,y:g}=Gy(h,v,p)),w=-1)}return{x:y,y:g,placement:v,strategy:s,middlewareData:T}},_3=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:i,placement:s,rects:c,platform:f,elements:m,middlewareData:p}=a,{element:h,padding:y=0}=Jn(n,a)||{};if(h==null)return{};const g=Ym(y),v={x:r,y:i},x=qm(s),T=$m(x),w=await f.getDimensions(h),C=x==="y",A=C?"top":"left",M=C?"bottom":"right",_=C?"clientHeight":"clientWidth",z=c.reference[T]+c.reference[x]-v[x]-c.floating[T],U=v[x]-c.reference[x],q=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h));let H=q?q[_]:0;(!H||!await(f.isElement==null?void 0:f.isElement(q)))&&(H=m.floating[_]||c.floating[T]);const k=z/2-U/2,P=H/2-w[T]/2-1,ee=Nn(g[A],P),I=Nn(g[M],P),V=ee,X=H-w[T]-I,N=H/2-w[T]/2+k,te=lm(V,N,X),D=!p.arrow&&el(s)!=null&&N!==te&&c.reference[T]/2-(N<V?ee:I)-w[T]/2<0,B=D?N<V?N-V:N-X:0;return{[x]:v[x]+B,data:{[x]:te,centerOffset:N-te-B,...D&&{alignmentOffset:B}},reset:D}}}),M3=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,i;const{placement:s,middlewareData:c,rects:f,initialPlacement:m,platform:p,elements:h}=a,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:w=!0,...C}=Jn(n,a);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const A=Dn(s),M=jn(m),_=Dn(m)===m,z=await(p.isRTL==null?void 0:p.isRTL(h.floating)),U=v||(_||!w?[uc(m)]:a3(m)),q=T!=="none";!v&&q&&U.push(...i3(m,w,T,z));const H=[m,...U],k=await p.detectOverflow(a,C),P=[];let ee=((i=c.flip)==null?void 0:i.overflows)||[];if(y&&P.push(k[A]),g){const N=n3(s,f,z);P.push(k[N[0]],k[N[1]])}if(ee=[...ee,{placement:s,overflows:P}],!P.every(N=>N<=0)){var I,V;const N=(((I=c.flip)==null?void 0:I.index)||0)+1,te=H[N];if(te&&(!(g==="alignment"?M!==jn(te):!1)||ee.every($=>jn($.placement)===M?$.overflows[0]>0:!0)))return{data:{index:N,overflows:ee},reset:{placement:te}};let D=(V=ee.filter(B=>B.overflows[0]<=0).sort((B,$)=>B.overflows[1]-$.overflows[1])[0])==null?void 0:V.placement;if(!D)switch(x){case"bestFit":{var X;const B=(X=ee.filter($=>{if(q){const J=jn($.placement);return J===M||J==="y"}return!0}).map($=>[$.placement,$.overflows.filter(J=>J>0).reduce((J,oe)=>J+oe,0)]).sort(($,J)=>$[1]-J[1])[0])==null?void 0:X[0];B&&(D=B);break}case"initialPlacement":D=m;break}if(s!==D)return{reset:{placement:D}}}return{}}}};function Vy(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Xy(n){return e3.some(a=>n[a]>=0)}const j3=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r,platform:i}=a,{strategy:s="referenceHidden",...c}=Jn(n,a);switch(s){case"referenceHidden":{const f=await i.detectOverflow(a,{...c,elementContext:"reference"}),m=Vy(f,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:Xy(m)}}}case"escaped":{const f=await i.detectOverflow(a,{...c,altBoundary:!0}),m=Vy(f,r.floating);return{data:{escapedOffsets:m,escaped:Xy(m)}}}default:return{}}}}};function Eb(n){const a=Nn(...n.map(c=>c.left)),r=Nn(...n.map(c=>c.top)),i=Bt(...n.map(c=>c.right)),s=Bt(...n.map(c=>c.bottom));return{x:a,y:r,width:i-a,height:s-r}}function z3(n){const a=n.slice().sort((s,c)=>s.y-c.y),r=[];let i=null;for(let s=0;s<a.length;s++){const c=a[s];!i||c.y-i.y>i.height/2?r.push([c]):r[r.length-1].push(c),i=c}return r.map(s=>Kr(Eb(s)))}const O3=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(a){const{placement:r,elements:i,rects:s,platform:c,strategy:f}=a,{padding:m=2,x:p,y:h}=Jn(n,a),y=Array.from(await(c.getClientRects==null?void 0:c.getClientRects(i.reference))||[]),g=z3(y),v=Kr(Eb(y)),x=Ym(m);function T(){if(g.length===2&&g[0].left>g[1].right&&p!=null&&h!=null)return g.find(C=>p>C.left-x.left&&p<C.right+x.right&&h>C.top-x.top&&h<C.bottom+x.bottom)||v;if(g.length>=2){if(jn(r)==="y"){const ee=g[0],I=g[g.length-1],V=Dn(r)==="top",X=ee.top,N=I.bottom,te=V?ee.left:I.left,D=V?ee.right:I.right,B=D-te,$=N-X;return{top:X,bottom:N,left:te,right:D,width:B,height:$,x:te,y:X}}const C=Dn(r)==="left",A=Bt(...g.map(ee=>ee.right)),M=Nn(...g.map(ee=>ee.left)),_=g.filter(ee=>C?ee.left===M:ee.right===A),z=_[0].top,U=_[_.length-1].bottom,q=M,H=A,k=H-q,P=U-z;return{top:z,bottom:U,left:q,right:H,width:k,height:P,x:q,y:z}}return v}const w=await c.getElementRects({reference:{getBoundingClientRect:T},floating:i.floating,strategy:f});return s.reference.x!==w.reference.x||s.reference.y!==w.reference.y||s.reference.width!==w.reference.width||s.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},Rb=new Set(["left","top"]);async function N3(n,a){const{placement:r,platform:i,elements:s}=n,c=await(i.isRTL==null?void 0:i.isRTL(s.floating)),f=Dn(r),m=el(r),p=jn(r)==="y",h=Rb.has(f)?-1:1,y=c&&p?-1:1,g=Jn(a,n);let{mainAxis:v,crossAxis:x,alignmentAxis:T}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return m&&typeof T=="number"&&(x=m==="end"?T*-1:T),p?{x:x*y,y:v*h}:{x:v*h,y:x*y}}const D3=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,i;const{x:s,y:c,placement:f,middlewareData:m}=a,p=await N3(a,n);return f===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:c+p.y,data:{...p,placement:f}}}}},B3=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:i,placement:s,platform:c}=a,{mainAxis:f=!0,crossAxis:m=!1,limiter:p={fn:A=>{let{x:M,y:_}=A;return{x:M,y:_}}},...h}=Jn(n,a),y={x:r,y:i},g=await c.detectOverflow(a,h),v=jn(Dn(s)),x=Um(v);let T=y[x],w=y[v];if(f){const A=x==="y"?"top":"left",M=x==="y"?"bottom":"right",_=T+g[A],z=T-g[M];T=lm(_,T,z)}if(m){const A=v==="y"?"top":"left",M=v==="y"?"bottom":"right",_=w+g[A],z=w-g[M];w=lm(_,w,z)}const C=p.fn({...a,[x]:T,[v]:w});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[x]:f,[v]:m}}}}}},L3=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:i,placement:s,rects:c,middlewareData:f}=a,{offset:m=0,mainAxis:p=!0,crossAxis:h=!0}=Jn(n,a),y={x:r,y:i},g=jn(s),v=Um(g);let x=y[v],T=y[g];const w=Jn(m,a),C=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(p){const _=v==="y"?"height":"width",z=c.reference[v]-c.floating[_]+C.mainAxis,U=c.reference[v]+c.reference[_]-C.mainAxis;x<z?x=z:x>U&&(x=U)}if(h){var A,M;const _=v==="y"?"width":"height",z=Rb.has(Dn(s)),U=c.reference[g]-c.floating[_]+(z&&((A=f.offset)==null?void 0:A[g])||0)+(z?0:C.crossAxis),q=c.reference[g]+c.reference[_]+(z?0:((M=f.offset)==null?void 0:M[g])||0)-(z?C.crossAxis:0);T<U?T=U:T>q&&(T=q)}return{[v]:x,[g]:T}}}},k3=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,i;const{placement:s,rects:c,platform:f,elements:m}=a,{apply:p=()=>{},...h}=Jn(n,a),y=await f.detectOverflow(a,h),g=Dn(s),v=el(s),x=jn(s)==="y",{width:T,height:w}=c.floating;let C,A;g==="top"||g==="bottom"?(C=g,A=v===(await(f.isRTL==null?void 0:f.isRTL(m.floating))?"start":"end")?"left":"right"):(A=g,C=v==="end"?"top":"bottom");const M=w-y.top-y.bottom,_=T-y.left-y.right,z=Nn(w-y[C],M),U=Nn(T-y[A],_),q=!a.middlewareData.shift;let H=z,k=U;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(k=_),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(H=M),q&&!v){const ee=Bt(y.left,0),I=Bt(y.right,0),V=Bt(y.top,0),X=Bt(y.bottom,0);x?k=T-2*(ee!==0||I!==0?ee+I:Bt(y.left,y.right)):H=w-2*(V!==0||X!==0?V+X:Bt(y.top,y.bottom))}await p({...a,availableWidth:k,availableHeight:H});const P=await f.getDimensions(m.floating);return T!==P.width||w!==P.height?{reset:{rects:!0}}:{}}}};function Cb(n){const a=Sn(n);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const s=Rn(n),c=s?n.offsetWidth:r,f=s?n.offsetHeight:i,m=cc(r)!==c||cc(i)!==f;return m&&(r=c,i=f),{width:r,height:i,$:m}}function Gm(n){return Ze(n)?n:n.contextElement}function Zr(n){const a=Gm(n);if(!Rn(a))return Kn(1);const r=a.getBoundingClientRect(),{width:i,height:s,$:c}=Cb(a);let f=(c?cc(r.width):r.width)/i,m=(c?cc(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!m||!Number.isFinite(m))&&(m=1),{x:f,y:m}}const H3=Kn(0);function Tb(n){const a=Jt(n);return!Oc()||!a.visualViewport?H3:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function U3(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==Jt(n)?!1:a}function Go(n,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),c=Gm(n);let f=Kn(1);a&&(i?Ze(i)&&(f=Zr(i)):f=Zr(n));const m=U3(c,r,i)?Tb(c):Kn(0);let p=(s.left+m.x)/f.x,h=(s.top+m.y)/f.y,y=s.width/f.x,g=s.height/f.y;if(c){const v=Jt(c),x=i&&Ze(i)?Jt(i):i;let T=v,w=rm(T);for(;w&&i&&x!==T;){const C=Zr(w),A=w.getBoundingClientRect(),M=Sn(w),_=A.left+(w.clientLeft+parseFloat(M.paddingLeft))*C.x,z=A.top+(w.clientTop+parseFloat(M.paddingTop))*C.y;p*=C.x,h*=C.y,y*=C.x,g*=C.y,p+=_,h+=z,T=Jt(w),w=rm(T)}}return Kr({width:y,height:g,x:p,y:h})}function Dc(n,a){const r=Nc(n).scrollLeft;return a?a.left+r:Go(Pn(n)).left+r}function Ab(n,a){const r=n.getBoundingClientRect(),i=r.left+a.scrollLeft-Dc(n,r),s=r.top+a.scrollTop;return{x:i,y:s}}function $3(n){let{elements:a,rect:r,offsetParent:i,strategy:s}=n;const c=s==="fixed",f=Pn(i),m=a?zc(a.floating):!1;if(i===f||m&&c)return r;let p={scrollLeft:0,scrollTop:0},h=Kn(1);const y=Kn(0),g=Rn(i);if((g||!g&&!c)&&((Pr(i)!=="body"||vi(f))&&(p=Nc(i)),g)){const x=Go(i);h=Zr(i),y.x=x.x+i.clientLeft,y.y=x.y+i.clientTop}const v=f&&!g&&!c?Ab(f,p):Kn(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-p.scrollLeft*h.x+y.x+v.x,y:r.y*h.y-p.scrollTop*h.y+y.y+v.y}}function q3(n){return Array.from(n.getClientRects())}function Y3(n){const a=Pn(n),r=Nc(n),i=n.ownerDocument.body,s=Bt(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=Bt(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let f=-r.scrollLeft+Dc(n);const m=-r.scrollTop;return Sn(i).direction==="rtl"&&(f+=Bt(a.clientWidth,i.clientWidth)-s),{width:s,height:c,x:f,y:m}}const Zy=25;function G3(n,a){const r=Jt(n),i=Pn(n),s=r.visualViewport;let c=i.clientWidth,f=i.clientHeight,m=0,p=0;if(s){c=s.width,f=s.height;const y=Oc();(!y||y&&a==="fixed")&&(m=s.offsetLeft,p=s.offsetTop)}const h=Dc(i);if(h<=0){const y=i.ownerDocument,g=y.body,v=getComputedStyle(g),x=y.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,T=Math.abs(i.clientWidth-g.clientWidth-x);T<=Zy&&(c-=T)}else h<=Zy&&(c+=h);return{width:c,height:f,x:m,y:p}}function V3(n,a){const r=Go(n,!0,a==="fixed"),i=r.top+n.clientTop,s=r.left+n.clientLeft,c=Rn(n)?Zr(n):Kn(1),f=n.clientWidth*c.x,m=n.clientHeight*c.y,p=s*c.x,h=i*c.y;return{width:f,height:m,x:p,y:h}}function Ky(n,a,r){let i;if(a==="viewport")i=G3(n,r);else if(a==="document")i=Y3(Pn(n));else if(Ze(a))i=V3(a,r);else{const s=Tb(n);i={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return Kr(i)}function _b(n,a){const r=Ta(n);return r===a||!Ze(r)||wa(r)?!1:Sn(r).position==="fixed"||_b(r,a)}function X3(n,a){const r=a.get(n);if(r)return r;let i=Ea(n,[],!1).filter(m=>Ze(m)&&Pr(m)!=="body"),s=null;const c=Sn(n).position==="fixed";let f=c?Ta(n):n;for(;Ze(f)&&!wa(f);){const m=Sn(f),p=Hm(f);!p&&m.position==="fixed"&&(s=null),(c?!p&&!s:!p&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||vi(f)&&!p&&_b(n,f))?i=i.filter(y=>y!==f):s=m,f=Ta(f)}return a.set(n,i),i}function Z3(n){let{element:a,boundary:r,rootBoundary:i,strategy:s}=n;const f=[...r==="clippingAncestors"?zc(a)?[]:X3(a,this._c):[].concat(r),i],m=Ky(a,f[0],s);let p=m.top,h=m.right,y=m.bottom,g=m.left;for(let v=1;v<f.length;v++){const x=Ky(a,f[v],s);p=Bt(x.top,p),h=Nn(x.right,h),y=Nn(x.bottom,y),g=Bt(x.left,g)}return{width:h-g,height:y-p,x:g,y:p}}function K3(n){const{width:a,height:r}=Cb(n);return{width:a,height:r}}function Q3(n,a,r){const i=Rn(a),s=Pn(a),c=r==="fixed",f=Go(n,!0,c,a);let m={scrollLeft:0,scrollTop:0};const p=Kn(0);function h(){p.x=Dc(s)}if(i||!i&&!c)if((Pr(a)!=="body"||vi(s))&&(m=Nc(a)),i){const x=Go(a,!0,c,a);p.x=x.x+a.clientLeft,p.y=x.y+a.clientTop}else s&&h();c&&!i&&s&&h();const y=s&&!i&&!c?Ab(s,m):Kn(0),g=f.left+m.scrollLeft-p.x-y.x,v=f.top+m.scrollTop-p.y-y.y;return{x:g,y:v,width:f.width,height:f.height}}function Nd(n){return Sn(n).position==="static"}function Qy(n,a){if(!Rn(n)||Sn(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return Pn(n)===r&&(r=r.ownerDocument.body),r}function Mb(n,a){const r=Jt(n);if(zc(n))return r;if(!Rn(n)){let s=Ta(n);for(;s&&!wa(s);){if(Ze(s)&&!Nd(s))return s;s=Ta(s)}return r}let i=Qy(n,a);for(;i&&F6(i)&&Nd(i);)i=Qy(i,a);return i&&wa(i)&&Nd(i)&&!Hm(i)?r:i||P6(n)||r}const I3=async function(n){const a=this.getOffsetParent||Mb,r=this.getDimensions,i=await r(n.floating);return{reference:Q3(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function F3(n){return Sn(n).direction==="rtl"}const J3={convertOffsetParentRelativeRectToViewportRelativeRect:$3,getDocumentElement:Pn,getClippingRect:Z3,getOffsetParent:Mb,getElementRects:I3,getClientRects:q3,getDimensions:K3,getScale:Zr,isElement:Ze,isRTL:F3};function jb(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function W3(n,a){let r=null,i;const s=Pn(n);function c(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function f(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),c();const h=n.getBoundingClientRect(),{left:y,top:g,width:v,height:x}=h;if(m||a(),!v||!x)return;const T=Xs(g),w=Xs(s.clientWidth-(y+v)),C=Xs(s.clientHeight-(g+x)),A=Xs(y),_={rootMargin:-T+"px "+-w+"px "+-C+"px "+-A+"px",threshold:Bt(0,Nn(1,p))||1};let z=!0;function U(q){const H=q[0].intersectionRatio;if(H!==p){if(!z)return f();H?f(!1,H):i=setTimeout(()=>{f(!1,1e-7)},1e3)}H===1&&!jb(h,n.getBoundingClientRect())&&f(),z=!1}try{r=new IntersectionObserver(U,{..._,root:s.ownerDocument})}catch{r=new IntersectionObserver(U,_)}r.observe(n)}return f(!0),c}function cm(n,a,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,h=Gm(n),y=s||c?[...h?Ea(h):[],...a?Ea(a):[]]:[];y.forEach(A=>{s&&A.addEventListener("scroll",r,{passive:!0}),c&&A.addEventListener("resize",r)});const g=h&&m?W3(h,r):null;let v=-1,x=null;f&&(x=new ResizeObserver(A=>{let[M]=A;M&&M.target===h&&x&&a&&(x.unobserve(a),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var _;(_=x)==null||_.observe(a)})),r()}),h&&!p&&x.observe(h),a&&x.observe(a));let T,w=p?Go(n):null;p&&C();function C(){const A=Go(n);w&&!jb(w,A)&&r(),w=A,T=requestAnimationFrame(C)}return r(),()=>{var A;y.forEach(M=>{s&&M.removeEventListener("scroll",r),c&&M.removeEventListener("resize",r)}),g==null||g(),(A=x)==null||A.disconnect(),x=null,p&&cancelAnimationFrame(T)}}const P3=D3,e5=B3,t5=M3,n5=k3,a5=j3,Iy=_3,o5=O3,r5=L3,l5=(n,a,r)=>{const i=new Map,s={platform:J3,...r},c={...s.platform,_c:i};return A3(n,a,{...s,platform:c})};var i5=typeof document<"u",s5=function(){},tc=i5?E.useLayoutEffect:s5;function fc(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let r,i,s;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==a.length)return!1;for(i=r;i--!==0;)if(!fc(n[i],a[i]))return!1;return!0}if(s=Object.keys(n),r=s.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,s[i]))return!1;for(i=r;i--!==0;){const c=s[i];if(!(c==="_owner"&&n.$$typeof)&&!fc(n[c],a[c]))return!1}return!0}return n!==n&&a!==a}function zb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Fy(n,a){const r=zb(n);return Math.round(a*r)/r}function Dd(n){const a=E.useRef(n);return tc(()=>{a.current=n}),a}function c5(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:c,floating:f}={},transform:m=!0,whileElementsMounted:p,open:h}=n,[y,g]=E.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[v,x]=E.useState(i);fc(v,i)||x(i);const[T,w]=E.useState(null),[C,A]=E.useState(null),M=E.useCallback($=>{$!==q.current&&(q.current=$,w($))},[]),_=E.useCallback($=>{$!==H.current&&(H.current=$,A($))},[]),z=c||T,U=f||C,q=E.useRef(null),H=E.useRef(null),k=E.useRef(y),P=p!=null,ee=Dd(p),I=Dd(s),V=Dd(h),X=E.useCallback(()=>{if(!q.current||!H.current)return;const $={placement:a,strategy:r,middleware:v};I.current&&($.platform=I.current),l5(q.current,H.current,$).then(J=>{const oe={...J,isPositioned:V.current!==!1};N.current&&!fc(k.current,oe)&&(k.current=oe,Cm.flushSync(()=>{g(oe)}))})},[v,a,r,I,V]);tc(()=>{h===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,g($=>({...$,isPositioned:!1})))},[h]);const N=E.useRef(!1);tc(()=>(N.current=!0,()=>{N.current=!1}),[]),tc(()=>{if(z&&(q.current=z),U&&(H.current=U),z&&U){if(ee.current)return ee.current(z,U,X);X()}},[z,U,X,ee,P]);const te=E.useMemo(()=>({reference:q,floating:H,setReference:M,setFloating:_}),[M,_]),D=E.useMemo(()=>({reference:z,floating:U}),[z,U]),B=E.useMemo(()=>{const $={position:r,left:0,top:0};if(!D.floating)return $;const J=Fy(D.floating,y.x),oe=Fy(D.floating,y.y);return m?{...$,transform:"translate("+J+"px, "+oe+"px)",...zb(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:J,top:oe}},[r,m,D.floating,y.x,y.y]);return E.useMemo(()=>({...y,update:X,refs:te,elements:D,floatingStyles:B}),[y,X,te,D,B])}const u5=n=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:i,padding:s}=typeof n=="function"?n(r):n;return i&&a(i)?i.current!=null?Iy({element:i.current,padding:s}).fn(r):{}:i?Iy({element:i,padding:s}).fn(r):{}}}},Ob=(n,a)=>{const r=P3(n);return{name:r.name,fn:r.fn,options:[n,a]}},Vm=(n,a)=>{const r=e5(n);return{name:r.name,fn:r.fn,options:[n,a]}},Jy=(n,a)=>({fn:r5(n).fn,options:[n,a]}),um=(n,a)=>{const r=t5(n);return{name:r.name,fn:r.fn,options:[n,a]}},f5=(n,a)=>{const r=n5(n);return{name:r.name,fn:r.fn,options:[n,a]}},d5=(n,a)=>{const r=a5(n);return{name:r.name,fn:r.fn,options:[n,a]}},ci=(n,a)=>{const r=o5(n);return{name:r.name,fn:r.fn,options:[n,a]}},Nb=(n,a)=>{const r=u5(n);return{name:r.name,fn:r.fn,options:[n,a]}};function Db(n){const a=E.useRef(void 0),r=E.useCallback(i=>{const s=n.map(c=>{if(c!=null){if(typeof c=="function"){const f=c,m=f(i);return typeof m=="function"?m:()=>{f(null)}}return c.current=i,()=>{c.current=null}}});return()=>{s.forEach(c=>c==null?void 0:c())}},n);return E.useMemo(()=>n.every(i=>i==null)?null:i=>{a.current&&(a.current(),a.current=void 0),i!=null&&(a.current=r(i))},n)}const m5="data-floating-ui-focusable",Wy="active",Py="selected",h5={...Uv};let ev=!1,p5=0;const tv=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+p5++;function g5(){const[n,a]=E.useState(()=>ev?tv():void 0);return Qn(()=>{n==null&&a(tv())},[]),E.useEffect(()=>{ev=!0},[]),n}const y5=h5.useId,Bb=y5||g5;function v5(){const n=new Map;return{emit(a,r){var i;(i=n.get(a))==null||i.forEach(s=>s(r))},on(a,r){n.has(a)||n.set(a,new Set),n.get(a).add(r)},off(a,r){var i;(i=n.get(a))==null||i.delete(r)}}}const b5=E.createContext(null),x5=E.createContext(null),Xm=()=>{var n;return((n=E.useContext(b5))==null?void 0:n.id)||null},Zm=()=>E.useContext(x5);function Km(n){return"data-floating-ui-"+n}function Qt(n){n.current!==-1&&(clearTimeout(n.current),n.current=-1)}const nv=Km("safe-polygon");function nc(n,a,r){if(r&&!sm(r))return 0;if(typeof n=="number")return n;if(typeof n=="function"){const i=n();return typeof i=="number"?i:i==null?void 0:i[a]}return n==null?void 0:n[a]}function Bd(n){return typeof n=="function"?n():n}function Lb(n,a){a===void 0&&(a={});const{open:r,onOpenChange:i,dataRef:s,events:c,elements:f}=n,{enabled:m=!0,delay:p=0,handleClose:h=null,mouseOnly:y=!1,restMs:g=0,move:v=!0}=a,x=Zm(),T=Xm(),w=Zs(h),C=Zs(p),A=Zs(r),M=Zs(g),_=E.useRef(),z=E.useRef(-1),U=E.useRef(),q=E.useRef(-1),H=E.useRef(!0),k=E.useRef(!1),P=E.useRef(()=>{}),ee=E.useRef(!1),I=Zn(()=>{var B;const $=(B=s.current.openEvent)==null?void 0:B.type;return($==null?void 0:$.includes("mouse"))&&$!=="mousedown"});E.useEffect(()=>{if(!m)return;function B($){let{open:J}=$;J||(Qt(z),Qt(q),H.current=!0,ee.current=!1)}return c.on("openchange",B),()=>{c.off("openchange",B)}},[m,c]),E.useEffect(()=>{if(!m||!w.current||!r)return;function B(J){I()&&i(!1,J,"hover")}const $=ko(f.floating).documentElement;return $.addEventListener("mouseleave",B),()=>{$.removeEventListener("mouseleave",B)}},[f.floating,r,i,m,w,I]);const V=E.useCallback(function(B,$,J){$===void 0&&($=!0),J===void 0&&(J="hover");const oe=nc(C.current,"close",_.current);oe&&!U.current?(Qt(z),z.current=window.setTimeout(()=>i(!1,B,J),oe)):$&&(Qt(z),i(!1,B,J))},[C,i]),X=Zn(()=>{P.current(),U.current=void 0}),N=Zn(()=>{if(k.current){const B=ko(f.floating).body;B.style.pointerEvents="",B.removeAttribute(nv),k.current=!1}}),te=Zn(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);E.useEffect(()=>{if(!m)return;function B(Y){if(Qt(z),H.current=!1,y&&!sm(_.current)||Bd(M.current)>0&&!nc(C.current,"open"))return;const W=nc(C.current,"open",_.current);W?z.current=window.setTimeout(()=>{A.current||i(!0,Y,"hover")},W):r||i(!0,Y,"hover")}function $(Y){if(te()){N();return}P.current();const W=ko(f.floating);if(Qt(q),ee.current=!1,w.current&&s.current.floatingContext){r||Qt(z),U.current=w.current({...s.current.floatingContext,tree:x,x:Y.clientX,y:Y.clientY,onClose(){N(),X(),te()||V(Y,!0,"safe-polygon")}});const se=U.current;W.addEventListener("mousemove",se),P.current=()=>{W.removeEventListener("mousemove",se)};return}(_.current==="touch"?!hi(f.floating,Y.relatedTarget):!0)&&V(Y)}function J(Y){te()||s.current.floatingContext&&(w.current==null||w.current({...s.current.floatingContext,tree:x,x:Y.clientX,y:Y.clientY,onClose(){N(),X(),te()||V(Y)}})(Y))}function oe(){Qt(z)}function j(Y){te()||V(Y,!1)}if(Ze(f.domReference)){const Y=f.domReference,W=f.floating;return r&&Y.addEventListener("mouseleave",J),v&&Y.addEventListener("mousemove",B,{once:!0}),Y.addEventListener("mouseenter",B),Y.addEventListener("mouseleave",$),W&&(W.addEventListener("mouseleave",J),W.addEventListener("mouseenter",oe),W.addEventListener("mouseleave",j)),()=>{r&&Y.removeEventListener("mouseleave",J),v&&Y.removeEventListener("mousemove",B),Y.removeEventListener("mouseenter",B),Y.removeEventListener("mouseleave",$),W&&(W.removeEventListener("mouseleave",J),W.removeEventListener("mouseenter",oe),W.removeEventListener("mouseleave",j))}}},[f,m,n,y,v,V,X,N,i,r,A,x,C,w,s,te,M]),Qn(()=>{var B;if(m&&r&&(B=w.current)!=null&&(B=B.__options)!=null&&B.blockPointerEvents&&I()){k.current=!0;const J=f.floating;if(Ze(f.domReference)&&J){var $;const oe=ko(f.floating).body;oe.setAttribute(nv,"");const j=f.domReference,Y=x==null||($=x.nodesRef.current.find(W=>W.id===T))==null||($=$.context)==null?void 0:$.elements.floating;return Y&&(Y.style.pointerEvents=""),oe.style.pointerEvents="none",j.style.pointerEvents="auto",J.style.pointerEvents="auto",()=>{oe.style.pointerEvents="",j.style.pointerEvents="",J.style.pointerEvents=""}}}},[m,r,T,f,x,w,I]),Qn(()=>{r||(_.current=void 0,ee.current=!1,X(),N())},[r,X,N]),E.useEffect(()=>()=>{X(),Qt(z),Qt(q),N()},[m,f.domReference,X,N]);const D=E.useMemo(()=>{function B($){_.current=$.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove($){const{nativeEvent:J}=$;function oe(){!H.current&&!A.current&&i(!0,J,"hover")}y&&!sm(_.current)||r||Bd(M.current)===0||ee.current&&$.movementX**2+$.movementY**2<2||(Qt(q),_.current==="touch"?oe():(ee.current=!0,q.current=window.setTimeout(oe,Bd(M.current))))}}},[y,i,r,A,M]);return E.useMemo(()=>m?{reference:D}:{},[m,D])}const fm=()=>{},kb=E.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:fm,setState:fm,isInstantPhase:!1}),S5=()=>E.useContext(kb);function w5(n){const{children:a,delay:r,timeoutMs:i=0}=n,[s,c]=E.useReducer((p,h)=>({...p,...h}),{delay:r,timeoutMs:i,initialDelay:r,currentId:null,isInstantPhase:!1}),f=E.useRef(null),m=E.useCallback(p=>{c({currentId:p})},[]);return Qn(()=>{s.currentId?f.current===null?f.current=s.currentId:s.isInstantPhase||c({isInstantPhase:!0}):(s.isInstantPhase&&c({isInstantPhase:!1}),f.current=null)},[s.currentId,s.isInstantPhase]),S.jsx(kb.Provider,{value:E.useMemo(()=>({...s,setState:c,setCurrentId:m}),[s,m]),children:a})}function E5(n,a){a===void 0&&(a={});const{open:r,onOpenChange:i,floatingId:s}=n,{id:c,enabled:f=!0}=a,m=c??s,p=S5(),{currentId:h,setCurrentId:y,initialDelay:g,setState:v,timeoutMs:x}=p;return Qn(()=>{f&&h&&(v({delay:{open:1,close:nc(g,"close")}}),h!==m&&i(!1))},[f,m,i,v,h,g]),Qn(()=>{function T(){i(!1),v({delay:g,currentId:null})}if(f&&h&&!r&&h===m){if(x){const w=window.setTimeout(T,x);return()=>{clearTimeout(w)}}T()}},[f,r,v,h,m,i,g,x]),Qn(()=>{f&&(y===fm||!r||y(m))},[f,r,y,m]),p}function Ld(n,a){if(!n||!a)return!1;const r=a.getRootNode==null?void 0:a.getRootNode();if(n.contains(a))return!0;if(r&&sc(r)){let i=a;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function R5(n){return"composedPath"in n?n.composedPath()[0]:n.target}const C5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},T5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},av=n=>{var a,r;return{escapeKey:typeof n=="boolean"?n:(a=n==null?void 0:n.escapeKey)!=null?a:!1,outsidePress:typeof n=="boolean"?n:(r=n==null?void 0:n.outsidePress)!=null?r:!0}};function A5(n,a){a===void 0&&(a={});const{open:r,onOpenChange:i,elements:s,dataRef:c}=n,{enabled:f=!0,escapeKey:m=!0,outsidePress:p=!0,outsidePressEvent:h="pointerdown",referencePress:y=!1,referencePressEvent:g="pointerdown",ancestorScroll:v=!1,bubbles:x,capture:T}=a,w=Zm(),C=Zn(typeof p=="function"?p:()=>!1),A=typeof p=="function"?C:p,M=E.useRef(!1),{escapeKey:_,outsidePress:z}=av(x),{escapeKey:U,outsidePress:q}=av(T),H=E.useRef(!1),k=Zn(N=>{var te;if(!r||!f||!m||N.key!=="Escape"||H.current)return;const D=(te=c.current.floatingContext)==null?void 0:te.nodeId,B=w?ec(w.nodesRef.current,D):[];if(!_&&(N.stopPropagation(),B.length>0)){let $=!0;if(B.forEach(J=>{var oe;if((oe=J.context)!=null&&oe.open&&!J.context.dataRef.current.__escapeKeyBubbles){$=!1;return}}),!$)return}i(!1,b3(N)?N.nativeEvent:N,"escape-key")}),P=Zn(N=>{var te;const D=()=>{var B;k(N),(B=Vr(N))==null||B.removeEventListener("keydown",D)};(te=Vr(N))==null||te.addEventListener("keydown",D)}),ee=Zn(N=>{var te;const D=c.current.insideReactTree;c.current.insideReactTree=!1;const B=M.current;if(M.current=!1,h==="click"&&B||D||typeof A=="function"&&!A(N))return;const $=Vr(N),J="["+Km("inert")+"]",oe=ko(s.floating).querySelectorAll(J);let j=Ze($)?$:null;for(;j&&!wa(j);){const se=Ta(j);if(wa(se)||!Ze(se))break;j=se}if(oe.length&&Ze($)&&!p3($)&&!hi($,s.floating)&&Array.from(oe).every(se=>!hi(j,se)))return;if(Rn($)&&X){const se=wa($),ce=Sn($),ue=/auto|scroll/,me=se||ue.test(ce.overflowX),he=se||ue.test(ce.overflowY),Se=me&&$.clientWidth>0&&$.scrollWidth>$.clientWidth,Ne=he&&$.clientHeight>0&&$.scrollHeight>$.clientHeight,ve=ce.direction==="rtl",ze=Ne&&(ve?N.offsetX<=$.offsetWidth-$.clientWidth:N.offsetX>$.clientWidth),De=Se&&N.offsetY>$.clientHeight;if(ze||De)return}const Y=(te=c.current.floatingContext)==null?void 0:te.nodeId,W=w&&ec(w.nodesRef.current,Y).some(se=>{var ce;return Od(N,(ce=se.context)==null?void 0:ce.elements.floating)});if(Od(N,s.floating)||Od(N,s.domReference)||W)return;const ae=w?ec(w.nodesRef.current,Y):[];if(ae.length>0){let se=!0;if(ae.forEach(ce=>{var ue;if((ue=ce.context)!=null&&ue.open&&!ce.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}i(!1,N,"outside-press")}),I=Zn(N=>{var te;const D=()=>{var B;ee(N),(B=Vr(N))==null||B.removeEventListener(h,D)};(te=Vr(N))==null||te.addEventListener(h,D)});E.useEffect(()=>{if(!r||!f)return;c.current.__escapeKeyBubbles=_,c.current.__outsidePressBubbles=z;let N=-1;function te(oe){i(!1,oe,"ancestor-scroll")}function D(){window.clearTimeout(N),H.current=!0}function B(){N=window.setTimeout(()=>{H.current=!1},Oc()?5:0)}const $=ko(s.floating);m&&($.addEventListener("keydown",U?P:k,U),$.addEventListener("compositionstart",D),$.addEventListener("compositionend",B)),A&&$.addEventListener(h,q?I:ee,q);let J=[];return v&&(Ze(s.domReference)&&(J=Ea(s.domReference)),Ze(s.floating)&&(J=J.concat(Ea(s.floating))),!Ze(s.reference)&&s.reference&&s.reference.contextElement&&(J=J.concat(Ea(s.reference.contextElement)))),J=J.filter(oe=>{var j;return oe!==((j=$.defaultView)==null?void 0:j.visualViewport)}),J.forEach(oe=>{oe.addEventListener("scroll",te,{passive:!0})}),()=>{m&&($.removeEventListener("keydown",U?P:k,U),$.removeEventListener("compositionstart",D),$.removeEventListener("compositionend",B)),A&&$.removeEventListener(h,q?I:ee,q),J.forEach(oe=>{oe.removeEventListener("scroll",te)}),window.clearTimeout(N)}},[c,s,m,A,h,r,i,v,f,_,z,k,U,P,ee,q,I]),E.useEffect(()=>{c.current.insideReactTree=!1},[c,A,h]);const V=E.useMemo(()=>({onKeyDown:k,...y&&{[C5[g]]:N=>{i(!1,N.nativeEvent,"reference-press")},...g!=="click"&&{onClick(N){i(!1,N.nativeEvent,"reference-press")}}}}),[k,i,y,g]),X=E.useMemo(()=>{function N(te){te.button===0&&(M.current=!0)}return{onKeyDown:k,onMouseDown:N,onMouseUp:N,[T5[h]]:()=>{c.current.insideReactTree=!0}}},[k,h,c]);return E.useMemo(()=>f?{reference:V,floating:X}:{},[f,V,X])}function _5(n){const{open:a=!1,onOpenChange:r,elements:i}=n,s=Bb(),c=E.useRef({}),[f]=E.useState(()=>v5()),m=Xm()!=null,[p,h]=E.useState(i.reference),y=Zn((x,T,w)=>{c.current.openEvent=x?T:void 0,f.emit("openchange",{open:x,event:T,reason:w,nested:m}),r==null||r(x,T,w)}),g=E.useMemo(()=>({setPositionReference:h}),[]),v=E.useMemo(()=>({reference:p||i.reference||null,floating:i.floating||null,domReference:i.reference}),[p,i.reference,i.floating]);return E.useMemo(()=>({dataRef:c,open:a,onOpenChange:y,elements:v,events:f,floatingId:s,refs:g}),[a,y,v,f,s,g])}function Bc(n){n===void 0&&(n={});const{nodeId:a}=n,r=_5({...n,elements:{reference:null,floating:null,...n.elements}}),i=n.rootContext||r,s=i.elements,[c,f]=E.useState(null),[m,p]=E.useState(null),y=(s==null?void 0:s.domReference)||c,g=E.useRef(null),v=Zm();Qn(()=>{y&&(g.current=y)},[y]);const x=c5({...n,elements:{...s,...m&&{reference:m}}}),T=E.useCallback(_=>{const z=Ze(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),getClientRects:()=>_.getClientRects(),contextElement:_}:_;p(z),x.refs.setReference(z)},[x.refs]),w=E.useCallback(_=>{(Ze(_)||_===null)&&(g.current=_,f(_)),(Ze(x.refs.reference.current)||x.refs.reference.current===null||_!==null&&!Ze(_))&&x.refs.setReference(_)},[x.refs]),C=E.useMemo(()=>({...x.refs,setReference:w,setPositionReference:T,domReference:g}),[x.refs,w,T]),A=E.useMemo(()=>({...x.elements,domReference:y}),[x.elements,y]),M=E.useMemo(()=>({...x,...i,refs:C,elements:A,nodeId:a}),[x,C,A,a,i]);return Qn(()=>{i.dataRef.current.floatingContext=M;const _=v==null?void 0:v.nodesRef.current.find(z=>z.id===a);_&&(_.context=M)}),E.useMemo(()=>({...x,context:M,refs:C,elements:A}),[x,C,A,M])}function kd(){return d3()&&f3()}function M5(n,a){a===void 0&&(a={});const{open:r,onOpenChange:i,events:s,dataRef:c,elements:f}=n,{enabled:m=!0,visibleOnly:p=!0}=a,h=E.useRef(!1),y=E.useRef(-1),g=E.useRef(!0);E.useEffect(()=>{if(!m)return;const x=Jt(f.domReference);function T(){!r&&Rn(f.domReference)&&f.domReference===Yy(ko(f.domReference))&&(h.current=!0)}function w(){g.current=!0}function C(){g.current=!1}return x.addEventListener("blur",T),kd()&&(x.addEventListener("keydown",w,!0),x.addEventListener("pointerdown",C,!0)),()=>{x.removeEventListener("blur",T),kd()&&(x.removeEventListener("keydown",w,!0),x.removeEventListener("pointerdown",C,!0))}},[f.domReference,r,m]),E.useEffect(()=>{if(!m)return;function x(T){let{reason:w}=T;(w==="reference-press"||w==="escape-key")&&(h.current=!0)}return s.on("openchange",x),()=>{s.off("openchange",x)}},[s,m]),E.useEffect(()=>()=>{Qt(y)},[]);const v=E.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(x){if(h.current)return;const T=Vr(x.nativeEvent);if(p&&Ze(T)){if(kd()&&!x.relatedTarget){if(!g.current&&!g3(T))return}else if(!y3(T))return}i(!0,x.nativeEvent,"focus")},onBlur(x){h.current=!1;const T=x.relatedTarget,w=x.nativeEvent,C=Ze(T)&&T.hasAttribute(Km("focus-guard"))&&T.getAttribute("data-type")==="outside";y.current=window.setTimeout(()=>{var A;const M=Yy(f.domReference?f.domReference.ownerDocument:document);!T&&M===f.domReference||hi((A=c.current.floatingContext)==null?void 0:A.refs.floating.current,M)||hi(f.domReference,M)||C||i(!1,w,"focus")})}}),[c,f.domReference,i,p]);return E.useMemo(()=>m?{reference:v}:{},[m,v])}function Hd(n,a,r){const i=new Map,s=r==="item";let c=n;if(s&&n){const{[Wy]:f,[Py]:m,...p}=n;c=p}return{...r==="floating"&&{tabIndex:-1,[m5]:""},...c,...a.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,y]=p;if(!(s&&[Wy,Py].includes(h)))if(h.indexOf("on")===0){if(i.has(h)||i.set(h,[]),typeof y=="function"){var g;(g=i.get(h))==null||g.push(y),f[h]=function(){for(var v,x=arguments.length,T=new Array(x),w=0;w<x;w++)T[w]=arguments[w];return(v=i.get(h))==null?void 0:v.map(C=>C(...T)).find(C=>C!==void 0)}}}else f[h]=y}),f),{})}}function Hb(n){n===void 0&&(n=[]);const a=n.map(m=>m==null?void 0:m.reference),r=n.map(m=>m==null?void 0:m.floating),i=n.map(m=>m==null?void 0:m.item),s=E.useCallback(m=>Hd(m,n,"reference"),a),c=E.useCallback(m=>Hd(m,n,"floating"),r),f=E.useCallback(m=>Hd(m,n,"item"),i);return E.useMemo(()=>({getReferenceProps:s,getFloatingProps:c,getItemProps:f}),[s,c,f])}const j5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function z5(n,a){var r,i;a===void 0&&(a={});const{open:s,elements:c,floatingId:f}=n,{enabled:m=!0,role:p="dialog"}=a,h=Bb(),y=((r=c.domReference)==null?void 0:r.id)||h,g=E.useMemo(()=>{var M;return((M=v3(c.floating))==null?void 0:M.id)||f},[c.floating,f]),v=(i=j5.get(p))!=null?i:p,T=Xm()!=null,w=E.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:y},...v==="menu"&&T&&{role:"menuitem"},...p==="select"&&{"aria-autocomplete":"none"},...p==="combobox"&&{"aria-autocomplete":"list"}},[v,g,T,s,y,p]),C=E.useMemo(()=>{const M={id:g,...v&&{role:v}};return v==="tooltip"||p==="label"?M:{...M,...v==="menu"&&{"aria-labelledby":y}}},[v,g,y,p]),A=E.useCallback(M=>{let{active:_,selected:z}=M;const U={role:"option",..._&&{id:g+"-fui-option"}};switch(p){case"select":case"combobox":return{...U,"aria-selected":z}}return{}},[g,p]);return E.useMemo(()=>m?{reference:w,floating:C,item:A}:{},[m,w,C,A])}function Ub(n,a,r){return r===void 0&&(r=!0),n.filter(s=>{var c;return s.parentId===a&&(!r||((c=s.context)==null?void 0:c.open))}).flatMap(s=>[s,...Ub(n,s.id,r)])}function ov(n,a){const[r,i]=n;let s=!1;const c=a.length;for(let f=0,m=c-1;f<c;m=f++){const[p,h]=a[f]||[0,0],[y,g]=a[m]||[0,0];h>=i!=g>=i&&r<=(y-p)*(i-h)/(g-h)+p&&(s=!s)}return s}function O5(n,a){return n[0]>=a.x&&n[0]<=a.x+a.width&&n[1]>=a.y&&n[1]<=a.y+a.height}function N5(n){n===void 0&&(n={});const{buffer:a=.5,blockPointerEvents:r=!1,requireIntent:i=!0}=n,s={current:-1};let c=!1,f=null,m=null,p=typeof performance<"u"?performance.now():0;function h(g,v){const x=performance.now(),T=x-p;if(f===null||m===null||T===0)return f=g,m=v,p=x,null;const w=g-f,C=v-m,M=Math.sqrt(w*w+C*C)/T;return f=g,m=v,p=x,M}const y=g=>{let{x:v,y:x,placement:T,elements:w,onClose:C,nodeId:A,tree:M}=g;return function(z){function U(){Qt(s),C()}if(Qt(s),!w.domReference||!w.floating||T==null||v==null||x==null)return;const{clientX:q,clientY:H}=z,k=[q,H],P=R5(z),ee=z.type==="mouseleave",I=Ld(w.floating,P),V=Ld(w.domReference,P),X=w.domReference.getBoundingClientRect(),N=w.floating.getBoundingClientRect(),te=T.split("-")[0],D=v>N.right-N.width/2,B=x>N.bottom-N.height/2,$=O5(k,X),J=N.width>X.width,oe=N.height>X.height,j=(J?X:N).left,Y=(J?X:N).right,W=(oe?X:N).top,ae=(oe?X:N).bottom;if(I&&(c=!0,!ee))return;if(V&&(c=!1),V&&!ee){c=!0;return}if(ee&&Ze(z.relatedTarget)&&Ld(w.floating,z.relatedTarget)||M&&Ub(M.nodesRef.current,A).length)return;if(te==="top"&&x>=X.bottom-1||te==="bottom"&&x<=X.top+1||te==="left"&&v>=X.right-1||te==="right"&&v<=X.left+1)return U();let se=[];switch(te){case"top":se=[[j,X.top+1],[j,N.bottom-1],[Y,N.bottom-1],[Y,X.top+1]];break;case"bottom":se=[[j,N.top+1],[j,X.bottom-1],[Y,X.bottom-1],[Y,N.top+1]];break;case"left":se=[[N.right-1,ae],[N.right-1,W],[X.left+1,W],[X.left+1,ae]];break;case"right":se=[[X.right-1,ae],[X.right-1,W],[N.left+1,W],[N.left+1,ae]];break}function ce(ue){let[me,he]=ue;switch(te){case"top":{const Se=[J?me+a/2:D?me+a*4:me-a*4,he+a+1],Ne=[J?me-a/2:D?me+a*4:me-a*4,he+a+1],ve=[[N.left,D||J?N.bottom-a:N.top],[N.right,D?J?N.bottom-a:N.top:N.bottom-a]];return[Se,Ne,...ve]}case"bottom":{const Se=[J?me+a/2:D?me+a*4:me-a*4,he-a],Ne=[J?me-a/2:D?me+a*4:me-a*4,he-a],ve=[[N.left,D||J?N.top+a:N.bottom],[N.right,D?J?N.top+a:N.bottom:N.top+a]];return[Se,Ne,...ve]}case"left":{const Se=[me+a+1,oe?he+a/2:B?he+a*4:he-a*4],Ne=[me+a+1,oe?he-a/2:B?he+a*4:he-a*4];return[...[[B||oe?N.right-a:N.left,N.top],[B?oe?N.right-a:N.left:N.right-a,N.bottom]],Se,Ne]}case"right":{const Se=[me-a,oe?he+a/2:B?he+a*4:he-a*4],Ne=[me-a,oe?he-a/2:B?he+a*4:he-a*4],ve=[[B||oe?N.left+a:N.right,N.top],[B?oe?N.left+a:N.right:N.left+a,N.bottom]];return[Se,Ne,...ve]}}}if(!ov([q,H],se)){if(c&&!$)return U();if(!ee&&i){const ue=h(z.clientX,z.clientY);if(ue!==null&&ue<.1)return U()}ov([q,H],ce([v,x]))?!c&&i&&(s.current=window.setTimeout(U,40)):U()}}};return y.__options={blockPointerEvents:r},y}const $b={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},qb=(n,{scrollbarSize:a,overscrollBehavior:r,scrollbars:i})=>{let s=r;return r&&i&&(i==="x"?s=`${r} auto`:i==="y"&&(s=`auto ${r}`)),{root:{"--scrollarea-scrollbar-size":ie(a),"--scrollarea-over-scroll-behavior":s}}},Jo=Ee(n=>{const a=fe("ScrollArea",$b,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,scrollbarSize:m,vars:p,type:h,scrollHideDelay:y,viewportProps:g,viewportRef:v,onScrollPositionChange:x,children:T,offsetScrollbars:w,scrollbars:C,onBottomReached:A,onTopReached:M,onLeftReached:_,onRightReached:z,overscrollBehavior:U,startScrollPosition:q,attributes:H,...k}=a,[P,ee]=E.useState(!1),[I,V]=E.useState(!1),[X,N]=E.useState(!1),te=E.useRef(!0),D=E.useRef(!1),B=E.useRef(!0),$=E.useRef(!1),J=Re({name:"ScrollArea",props:a,classes:km,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:H,vars:p,varsResolver:qb}),oe=E.useRef(null),[j,Y]=E.useState(null),W=Db([v,oe,E.useCallback(ae=>{Y(se=>se===ae?se:ae)},[])]);return lo(w==="present"?j:null,()=>{const ae=oe.current;ae&&(V(ae.scrollHeight>ae.clientHeight),N(ae.scrollWidth>ae.clientWidth))}),Ca(()=>{q&&oe.current&&oe.current.scrollTo({left:q.x??0,top:q.y??0})},[]),S.jsxs(ub,{getStyles:J,type:h==="never"?"always":h,scrollHideDelay:y,scrollbars:C,...J("root"),...k,children:[S.jsx(xb,{...g,...J("viewport",{style:g==null?void 0:g.style}),ref:W,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":C||void 0,"data-horizontal-hidden":w==="present"&&!X?"true":void 0,"data-vertical-hidden":w==="present"&&!I?"true":void 0,onScroll:ae=>{var Ke;(Ke=g==null?void 0:g.onScroll)==null||Ke.call(g,ae),x==null||x({x:ae.currentTarget.scrollLeft,y:ae.currentTarget.scrollTop});const{scrollTop:se,scrollHeight:ce,clientHeight:ue,scrollLeft:me,scrollWidth:he,clientWidth:Se}=ae.currentTarget,Ne=se-(ce-ue)>=-.8,ve=se===0;Ne&&!D.current&&(A==null||A()),ve&&!te.current&&(M==null||M()),D.current=Ne,te.current=ve;const ze=me-(he-Se)>=-.8,De=me===0;ze&&!$.current&&(z==null||z()),De&&!B.current&&(_==null||_()),$.current=ze,B.current=De},children:T}),(C==="xy"||C==="x")&&S.jsx(am,{...J("scrollbar"),orientation:"horizontal","data-hidden":h==="never"||w==="present"&&!X?!0:void 0,forceMount:!0,onMouseEnter:()=>ee(!0),onMouseLeave:()=>ee(!1),children:S.jsx(om,{...J("thumb")})}),(C==="xy"||C==="y")&&S.jsx(am,{...J("scrollbar"),orientation:"vertical","data-hidden":h==="never"||w==="present"&&!I?!0:void 0,forceMount:!0,onMouseEnter:()=>ee(!0),onMouseLeave:()=>ee(!1),children:S.jsx(om,{...J("thumb")})}),S.jsx(G6,{...J("corner"),"data-hovered":P||void 0,"data-hidden":h==="never"||void 0})]})});Jo.displayName="@mantine/core/ScrollArea";const Qm=Ee(n=>{const{children:a,classNames:r,styles:i,scrollbarSize:s,scrollHideDelay:c,type:f,dir:m,offsetScrollbars:p,overscrollBehavior:h,viewportRef:y,onScrollPositionChange:g,unstyled:v,variant:x,viewportProps:T,scrollbars:w,style:C,vars:A,onBottomReached:M,onTopReached:_,startScrollPosition:z,onOverflowChange:U,...q}=fe("ScrollAreaAutosize",$b,n),H=E.useRef(null),[k,P]=E.useState(null),ee=Db([y,H,E.useCallback(N=>{P(te=>te===N?te:N)},[])]),I=E.useRef(!1),V=E.useRef(!1),X=E.useEffectEvent(()=>{const N=H.current;if(!N||!U)return;const te=N.scrollHeight>N.clientHeight;te!==I.current&&(V.current?U(te):(V.current=!0,te&&U(!0)),I.current=te)});return lo(U?k:null,X),S.jsx(ge,{...q,variant:x,style:[{display:"flex",overflow:"hidden"},C],children:S.jsx(ge,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...w==="y"&&{minWidth:0},...w==="x"&&{minHeight:0},...w==="xy"&&{minWidth:0,minHeight:0},...w===!1&&{minWidth:0,minHeight:0}},children:S.jsx(Jo,{classNames:r,styles:i,scrollHideDelay:c,scrollbarSize:s,type:f,dir:m,offsetScrollbars:p,overscrollBehavior:h,viewportRef:ee,onScrollPositionChange:g,unstyled:v,variant:x,viewportProps:T,vars:A,scrollbars:w,onBottomReached:M,onTopReached:_,startScrollPosition:z,"data-autosize":"true",children:a})})})});Jo.classes=km;Jo.varsResolver=qb;Qm.displayName="@mantine/core/ScrollAreaAutosize";Qm.classes=km;Jo.Autosize=Qm;var Yb={root:"m_87cf2631"};const D5={__staticSelector:"UnstyledButton"},kn=Rt(n=>{const a=fe("UnstyledButton",D5,n),{className:r,component:i="button",__staticSelector:s,unstyled:c,classNames:f,styles:m,style:p,attributes:h,...y}=a;return S.jsx(ge,{...Re({name:s,props:a,classes:Yb,className:r,style:p,classNames:f,styles:m,unstyled:c,attributes:h})("root",{focusable:!0}),component:i,type:i==="button"?"button":void 0,...y})});kn.classes=Yb;kn.displayName="@mantine/core/UnstyledButton";var Gb={root:"m_515a97f8"};const Im=Ee(n=>{const a=fe("VisuallyHidden",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,attributes:p,...h}=a;return S.jsx(ge,{component:"span",...Re({name:"VisuallyHidden",classes:Gb,props:a,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:p})("root"),...h})});Im.classes=Gb;Im.displayName="@mantine/core/VisuallyHidden";var Vb={root:"m_1b7284a3"};const Xb=(n,{radius:a,shadow:r})=>({root:{"--paper-radius":a===void 0?void 0:Et(a),"--paper-shadow":Vv(r)}}),Lc=Rt(n=>{const a=fe("Paper",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,withBorder:m,vars:p,radius:h,shadow:y,variant:g,mod:v,attributes:x,...T}=a,w=Re({name:"Paper",props:a,classes:Vb,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:x,vars:p,varsResolver:Xb});return S.jsx(ge,{mod:[{"data-with-border":m},v],...w("root"),variant:g,...T})});Lc.classes=Vb;Lc.varsResolver=Xb;Lc.displayName="@mantine/core/Paper";function rv(n,a,r,i){return n==="center"||i==="center"?{top:a}:n==="end"?{bottom:r}:n==="start"?{top:r}:{}}function lv(n,a,r,i,s){return n==="center"||i==="center"?{left:a}:n==="end"?{[s==="ltr"?"right":"left"]:r}:n==="start"?{[s==="ltr"?"left":"right"]:r}:{}}const B5={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function L5({position:n,arrowSize:a,dir:r}){const[i,s]=n.split("-");if(!s)return;const c={width:a,height:a,position:"absolute"};if(i==="bottom"){const f=s==="start",m=f?r==="ltr"?"left":"right":r==="ltr"?"right":"left";return{...c,top:-a,[m]:0,clipPath:f!==(r==="rtl")?"polygon(0% 0%, 0% 100%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}if(i==="top"){const f=s==="start",m=f?r==="ltr"?"left":"right":r==="ltr"?"right":"left";return{...c,bottom:-a,[m]:0,clipPath:f!==(r==="rtl")?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 100% 0%, 100% 100%)"}}if(i==="left")return{...c,right:-a,[s==="start"?"top":"bottom"]:0,clipPath:s==="start"?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 0% 100%, 100% 100%)"};if(i==="right")return{...c,left:-a,[s==="start"?"top":"bottom"]:0,clipPath:s==="start"?"polygon(0% 0%, 100% 0%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}function k5({position:n,arrowSize:a,arrowOffset:r,arrowRadius:i,arrowPosition:s,arrowX:c,arrowY:f,dir:m}){if(s==="merge"){const v=L5({position:n,arrowSize:a,dir:m});if(v)return v}const[p,h="center"]=n.split("-"),y={width:a,height:a,transform:"rotate(45deg)",position:"absolute",[B5[p]]:i},g=-a/2;return p==="left"?{...y,...rv(h,f,r,s),right:g,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...y,...rv(h,f,r,s),left:g,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...y,...lv(h,c,r,s,m),bottom:g,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...y,...lv(h,c,r,s,m),top:g,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}function Zb({position:n,dir:a}){const[r,i]=n.split("-");if(!i)return;const s=i==="start"&&a==="ltr"||i==="end"&&a==="rtl";if(r==="bottom")return s?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(r==="top")return s?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(r==="left")return i==="start"?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(r==="right")return i==="start"?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function dc({position:n,arrowSize:a,arrowOffset:r,arrowRadius:i,arrowPosition:s,visible:c,arrowX:f,arrowY:m,style:p,...h}){const{dir:y}=_a();return c?S.jsx("div",{...h,style:{...p,...k5({position:n,arrowSize:a,arrowOffset:r,arrowRadius:i,arrowPosition:s,dir:y,arrowX:f,arrowY:m})}}):null}dc.displayName="@mantine/core/FloatingArrow";function Fm(n,a){if(n==="rtl"&&(a.includes("right")||a.includes("left"))){const[r,i]=a.split("-"),s=r==="right"?"left":"right";return i===void 0?s:`${s}-${i}`}return a}function H5({open:n,close:a,openDelay:r,closeDelay:i}){const s=E.useRef(-1),c=E.useRef(-1),f=()=>{window.clearTimeout(s.current),window.clearTimeout(c.current)},m=()=>{f(),r===0||r===void 0?n():s.current=window.setTimeout(n,r)},p=()=>{f(),i===0||i===void 0?a():c.current=window.setTimeout(a,i)};return E.useEffect(()=>f,[]),{openDropdown:m,closeDropdown:p}}var Kb={root:"m_9814e45f"};const U5={zIndex:Rc("modal")},Qb=(n,{gradient:a,color:r,backgroundOpacity:i,blur:s,radius:c,zIndex:f})=>({root:{"--overlay-bg":a||(r!==void 0||i!==void 0)&&ro(r||"#000",i??.6)||void 0,"--overlay-filter":s?`blur(${ie(s)})`:void 0,"--overlay-radius":c===void 0?void 0:Et(c),"--overlay-z-index":f==null?void 0:f.toString()}}),kc=Rt(n=>{const a=fe("Overlay",U5,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,fixed:p,center:h,children:y,radius:g,zIndex:v,gradient:x,blur:T,color:w,backgroundOpacity:C,mod:A,attributes:M,..._}=a;return S.jsx(ge,{...Re({name:"Overlay",props:a,classes:Kb,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:M,vars:m,varsResolver:Qb})("root"),mod:[{center:h,fixed:p},A],..._,children:y})});kc.classes=Kb;kc.varsResolver=Qb;kc.displayName="@mantine/core/Overlay";function Ud(n){const a=document.createElement("div");return a.setAttribute("data-portal","true"),typeof n.className=="string"&&a.classList.add(...n.className.split(" ").filter(Boolean)),typeof n.style=="object"&&Object.assign(a.style,n.style),typeof n.id=="string"&&a.setAttribute("id",n.id),a}function $5({target:n,reuseTargetNode:a,...r}){if(n)return typeof n=="string"?document.querySelector(n)||Ud(r):n;if(a){const i=document.querySelector("[data-mantine-shared-portal-node]");if(i)return i;const s=Ud(r);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return Ud(r)}const q5={reuseTargetNode:!0},Ib=Ee(n=>{const{children:a,target:r,reuseTargetNode:i,ref:s,...c}=fe("Portal",q5,n),[f,m]=E.useState(!1),p=E.useRef(null);return Ca(()=>(m(!0),p.current=$5({target:r,reuseTargetNode:i,...c}),em(s,p.current),!r&&!i&&p.current&&document.body.appendChild(p.current),()=>{!r&&!i&&p.current&&document.body.removeChild(p.current)}),[r]),!f||!p.current?null:Cm.createPortal(S.jsx(S.Fragment,{children:a}),p.current)});Ib.displayName="@mantine/core/Portal";const Qr=Ee(({withinPortal:n=!0,children:a,...r})=>jm()==="test"||!n?S.jsx(S.Fragment,{children:a}):S.jsx(Ib,{...r,children:a}));Qr.displayName="@mantine/core/OptionalPortal";const oi=n=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${n==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Ks={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...oi("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...oi("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...oi("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...oi("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...oi("top"),common:{transformOrigin:"top right"}}},iv={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function sv({transition:n,state:a,duration:r,timingFunction:i}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${r}ms`,transitionTimingFunction:i};return typeof n=="string"?n in Ks?{transitionProperty:Ks[n].transitionProperty,...s,...Ks[n].common,...Ks[n][iv[a]]}:{}:{transitionProperty:n.transitionProperty,...s,...n.common,...n[iv[a]]}}function Y5({duration:n,exitDuration:a,timingFunction:r,mounted:i,onEnter:s,onExit:c,onEntered:f,onExited:m,enterDelay:p,exitDelay:h}){const y=un(),g=CE(),v=y.respectReducedMotion?g:!1,[x,T]=E.useState(v?0:n),[w,C]=E.useState(i?"entered":"exited"),A=E.useRef(-1),M=E.useRef(-1),_=E.useRef(-1);function z(){window.clearTimeout(A.current),window.clearTimeout(M.current),cancelAnimationFrame(_.current)}const U=H=>{z();const k=H?s:c,P=H?f:m,ee=v?0:H?n:a;T(ee),ee===0?(typeof k=="function"&&k(),typeof P=="function"&&P(),C(H?"entered":"exited")):_.current=requestAnimationFrame(()=>{AE.flushSync(()=>{C(H?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof k=="function"&&k(),C(H?"entering":"exiting"),A.current=window.setTimeout(()=>{typeof P=="function"&&P(),C(H?"entered":"exited")},ee)})})},q=H=>{if(z(),typeof(H?p:h)!="number"){U(H);return}M.current=window.setTimeout(()=>{U(H)},H?p:h)};return Rm(()=>{q(i)},[i]),E.useEffect(()=>()=>{z()},[]),{transitionDuration:x,transitionStatus:w,transitionTimingFunction:r||"ease"}}function Vo({keepMounted:n,transition:a="fade",duration:r=250,exitDuration:i=r,mounted:s,children:c,timingFunction:f="ease",onExit:m,onEntered:p,onEnter:h,onExited:y,enterDelay:g,exitDelay:v}){const x=jm(),{transitionDuration:T,transitionStatus:w,transitionTimingFunction:C}=Y5({mounted:s,exitDuration:i,duration:r,timingFunction:f,onExit:m,onEntered:p,onEnter:h,onExited:y,enterDelay:g,exitDelay:v});if(x==="test")return s?S.jsx(S.Fragment,{children:c({})}):n?c({display:"none"}):null;if(T===0)return n?S.jsx(E.Activity,{mode:s?"visible":"hidden",children:c({})}):s?S.jsx(S.Fragment,{children:c({})}):null;const A=w==="exited";return n?S.jsx(E.Activity,{mode:A?"hidden":"visible",children:c(A?{}:sv({transition:a,duration:T,state:w,timingFunction:C}))}):A?null:S.jsx(S.Fragment,{children:c(sv({transition:a,duration:T,state:w,timingFunction:C}))})}Vo.displayName="@mantine/core/Transition";const G5={duration:100,transition:"fade"};function cv(n,a){return{...G5,...a,...n}}const[V5,Hc]=gi("Popover component was not found in the tree");function Fb({childProps:n,disabled:a,opened:r,setReference:i,open:s}){const c=dt(n.onMouseDown,f=>{a||f.button===2&&f.stopPropagation()});return{onContextMenu:dt(n.onContextMenu,f=>{if(a||f.defaultPrevented)return;f.preventDefault();const{clientX:m,clientY:p}=f,h=f.currentTarget;i({getBoundingClientRect:()=>({x:m,y:p,width:0,height:0,top:p,left:m,right:m,bottom:p,toJSON:()=>{}}),contextElement:h}),s()}),onMouseDown:c,"data-expanded":r?!0:void 0}}function Jb(n){const{children:a,disabled:r}=fe("PopoverContextMenu",null,n),i=Fo(a);if(!i)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 s=Hc();return E.cloneElement(i,Fb({childProps:i.props,disabled:r||s.disabled,opened:s.opened,setReference:s.reference,open:()=>{s.opened||s.onToggle()}}))}Jb.displayName="@mantine/core/PopoverContextMenu";function Jm({children:n,active:a=!0,refProp:r="ref",innerRef:i}){const s=gt(EE(a),i),c=Fo(n);return c?E.cloneElement(c,{[r]:s}):n}function Wb(n){return S.jsx(Im,{tabIndex:-1,"data-autofocus":!0,...n})}Jm.displayName="@mantine/core/FocusTrap";Wb.displayName="@mantine/core/FocusTrapInitialFocus";Jm.InitialFocus=Wb;var Pb={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const Wm=Ee(n=>{var M,_,z,U;const a=fe("PopoverDropdown",null,n),{className:r,style:i,vars:s,children:c,onKeyDownCapture:f,variant:m,classNames:p,styles:h,ref:y,...g}=a,v=Hc(),{dir:x}=_a(),T=v.arrowPosition==="merge"&&v.withArrow?Zb({position:v.placement,dir:x}):void 0,w=yE({opened:v.opened,shouldReturnFocus:v.returnFocus}),C=v.withRoles?{"aria-labelledby":v.getTargetId(),id:v.getDropdownId(),role:"dialog",tabIndex:-1}:{},A=gt(y,v.floating);return v.disabled?null:S.jsx(Qr,{...v.portalProps,withinPortal:v.withinPortal,children:S.jsx(Vo,{mounted:v.opened,...v.transitionProps,transition:((M=v.transitionProps)==null?void 0:M.transition)||"fade",duration:((_=v.transitionProps)==null?void 0:_.duration)??150,keepMounted:v.keepMounted,exitDuration:typeof((z=v.transitionProps)==null?void 0:z.exitDuration)=="number"?v.transitionProps.exitDuration:(U=v.transitionProps)==null?void 0:U.duration,children:q=>{var H;return S.jsx(Jm,{active:v.trapFocus&&v.opened,innerRef:A,children:S.jsxs(ge,{...C,...g,variant:m,onKeyDownCapture:lE(()=>{var k,P;(k=v.onClose)==null||k.call(v),(P=v.onDismiss)==null||P.call(v)},{active:v.closeOnEscape,onTrigger:w,onKeyDown:f}),"data-position":v.placement,"data-fixed":v.floatingStrategy==="fixed"||void 0,...v.getStyles("dropdown",{className:r,props:a,classNames:p,styles:h,style:[{...q,...T,zIndex:v.zIndex,top:v.y??0,left:v.x??0,width:v.width==="target"?void 0:ie(v.width),...v.referenceHidden?{display:"none"}:null},(H=v.resolvedStyles)==null?void 0:H.dropdown,h==null?void 0:h.dropdown,i]}),children:[c,S.jsx(dc,{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:a,classNames:p,styles:h})})]})})}})})});Wm.classes=Pb;Wm.displayName="@mantine/core/PopoverDropdown";const X5={refProp:"ref",popupType:"dialog"},e1=Ee(n=>{const{children:a,refProp:r,popupType:i,ref:s,...c}=fe("PopoverTarget",X5,n),f=Fo(a);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=c,p=Hc(),h=gt(p.reference,Tm(f),s),y=p.withRoles?{"aria-haspopup":i,"aria-expanded":p.opened,"aria-controls":p.opened?p.getDropdownId():void 0,id:p.getTargetId()}:{},g=f.props;return E.cloneElement(f,{...m,...y,...p.targetProps,className:Ln(p.targetProps.className,m.className,g.className),[r]:h,...p.controlled?null:{onClick:v=>{var x;p.onToggle(),(x=g.onClick)==null||x.call(g,v)}}})});e1.displayName="@mantine/core/PopoverTarget";function Z5(n){if(n===void 0)return{shift:!0,flip:!0};const a={...n};return n.shift===void 0&&(a.shift=!0),n.flip===void 0&&(a.flip=!0),a}function K5(n,a,r,i){const s=Z5(n.middlewares),c=[Ob(n.offset),d5()];if(s.flip&&!r){const f=typeof s.flip=="boolean"?{}:s.flip,m=i?{fallbackStrategy:"initialPlacement",...f}:f;c.push(um(m))}return s.shift&&c.push(Vm(typeof s.shift=="boolean"?{limiter:Jy(),padding:5}:{limiter:Jy(),padding:5,...s.shift})),s.inline&&c.push(typeof s.inline=="boolean"?ci():ci(s.inline)),c.push(Nb({element:n.arrowRef,padding:n.arrowOffset})),(s.size||n.width==="target")&&c.push(f5({...typeof s.size=="boolean"?{}:s.size,apply({rects:f,availableWidth:m,availableHeight:p,...h}){var g;const y=((g=a().refs.floating.current)==null?void 0:g.style)??{};s.size&&(typeof s.size=="object"&&s.size.apply?s.size.apply({rects:f,availableWidth:m,availableHeight:p,...h}):Object.assign(y,{maxWidth:`${m}px`,maxHeight:`${p}px`})),n.width==="target"&&Object.assign(y,{width:`${f.reference.width}px`})}})),c}function Q5(n){const[a,r]=uo({value:n.opened,defaultValue:n.defaultOpened,finalValue:!1,onChange:n.onChange}),i=E.useRef(a),[s,c]=E.useState(null),f=n.preventPositionChangeWhenVisible!==!1,m=E.useRef(a);a!==m.current&&(m.current=a,a&&s!==null&&c(null));const p=E.useCallback(()=>c(null),[]),h=()=>{a&&!n.disabled&&r(!1)},y=()=>{n.disabled||r(!a)},g=Bc({open:a,strategy:n.strategy,placement:f?s??n.position:n.position,middleware:K5(n,()=>g,f&&s!==null,f),whileElementsMounted:n.keepMounted?void 0:cm});E.useEffect(()=>{if(!(!g.refs.reference.current||!g.refs.floating.current)&&a)return cm(g.refs.reference.current,g.refs.floating.current,g.update)},[a,g.update]);const v=E.useRef(!1);Ca(()=>{if(!a){v.current=!1;return}if(!f||s!==null)return;const T=g.refs.floating.current;if(!(!T||T.offsetHeight===0||T.offsetWidth===0)){if(!v.current){v.current=!0,g.update();return}g.isPositioned&&c(g.placement)}},[f,a,g.isPositioned,g.placement,s,g.update]);const x=E.useRef(g.placement);return Ca(()=>{var T;x.current!==g.placement&&(x.current=g.placement,(T=n.onPositionChange)==null||T.call(n,g.placement))},[g.placement]),Rm(()=>{var T,w;a!==i.current&&(a?(w=n.onOpen)==null||w.call(n):(T=n.onClose)==null||T.call(n)),i.current=a},[a,n.onClose,n.onOpen]),{floating:g,controlled:typeof n.opened=="boolean",opened:a,onClose:h,onToggle:y,resetLockedPlacement:p}}const I5={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:Rc("popover"),__staticSelector:"Popover",width:"max-content"},t1=(n,{radius:a,shadow:r})=>({dropdown:{"--popover-radius":a===void 0?void 0:Et(a),"--popover-shadow":Vv(r)}});function Lt(n){var mo,Ci,cl,Ti,Ai,Ma,Ot;const a=fe("Popover",I5,n),{children:r,position:i,offset:s,onPositionChange:c,opened:f,transitionProps:m,onExitTransitionEnd:p,onEnterTransitionEnd:h,width:y,middlewares:g,withArrow:v,arrowSize:x,arrowOffset:T,arrowRadius:w,arrowPosition:C,unstyled:A,classNames:M,styles:_,closeOnClickOutside:z,withinPortal:U,portalProps:q,closeOnEscape:H,clickOutsideEvents:k,trapFocus:P,onClose:ee,onDismiss:I,onOpen:V,onChange:X,zIndex:N,radius:te,shadow:D,id:B,defaultOpened:$,__staticSelector:J,withRoles:oe,disabled:j,returnFocus:Y,variant:W,keepMounted:ae,vars:se,floatingStrategy:ce,withOverlay:ue,overlayProps:me,hideDetached:he,attributes:Se,preventPositionChangeWhenVisible:Ne,...ve}=a,ze=Re({name:J,props:a,classes:Pb,classNames:M,styles:_,unstyled:A,attributes:Se,rootSelector:"dropdown",vars:se,varsResolver:t1}),{resolvedStyles:De}=Tc({classNames:M,styles:_,props:a}),Ke=E.useRef(null),[lt,Un]=E.useState(null),[$n,it]=E.useState(null),{dir:Fe}=_a(),ea=jm(),tr=Io(B),We=Q5({middlewares:g,width:y,position:Fm(Fe,i),offset:typeof s=="number"?s+(v?x/2:0):s,arrowRef:Ke,arrowOffset:T,onPositionChange:c,opened:f,defaultOpened:$,onChange:X,onOpen:V,onClose:ee,onDismiss:I,strategy:ce,disabled:j,preventPositionChangeWhenVisible:Ne,keepMounted:ae});mE(()=>{z&&(We.onClose(),I==null||I())},k,[lt,$n]);const Ct=E.useCallback(Pe=>{Un(Pe),We.floating.refs.setReference(Pe)},[We.floating.refs.setReference]),ru=E.useCallback(Pe=>{it(Pe),We.floating.refs.setFloating(Pe)},[We.floating.refs.setFloating]),Ei=E.useCallback(()=>{var Pe;(Pe=m==null?void 0:m.onExited)==null||Pe.call(m),p==null||p(),We.resetLockedPlacement()},[m==null?void 0:m.onExited,p,We.resetLockedPlacement]),Ri=E.useCallback(()=>{var Pe;(Pe=m==null?void 0:m.onEntered)==null||Pe.call(m),h==null||h()},[m==null?void 0:m.onEntered,h]);return S.jsxs(V5,{value:{returnFocus:Y,disabled:j,controlled:We.controlled,reference:Ct,floating:ru,x:We.floating.x,y:We.floating.y,arrowX:(cl=(Ci=(mo=We.floating)==null?void 0:mo.middlewareData)==null?void 0:Ci.arrow)==null?void 0:cl.x,arrowY:(Ma=(Ai=(Ti=We.floating)==null?void 0:Ti.middlewareData)==null?void 0:Ai.arrow)==null?void 0:Ma.y,opened:We.opened,arrowRef:Ke,transitionProps:{...m,onExited:Ei,onEntered:Ri},width:y,withArrow:v,arrowSize:x,arrowOffset:T,arrowRadius:w,arrowPosition:C,placement:We.floating.placement,trapFocus:P,withinPortal:U,portalProps:q,zIndex:N,radius:te,shadow:D,closeOnEscape:H,onDismiss:I,onClose:We.onClose,onToggle:We.onToggle,getTargetId:()=>tr,getDropdownId:()=>`${tr}-dropdown`,withRoles:oe,targetProps:ve,__staticSelector:J,classNames:M,styles:_,unstyled:A,variant:W,keepMounted:ae,getStyles:ze,resolvedStyles:De,floatingStrategy:ce,referenceHidden:he&&ea!=="test"?(Ot=We.floating.middlewareData.hide)==null?void 0:Ot.referenceHidden:!1},children:[r,ue&&S.jsx(Vo,{transition:"fade",mounted:We.opened,duration:(m==null?void 0:m.duration)||250,exitDuration:(m==null?void 0:m.exitDuration)||250,children:Pe=>S.jsx(Qr,{withinPortal:U,children:S.jsx(kc,{...me,...ze("overlay",{className:me==null?void 0:me.className,style:[Pe,me==null?void 0:me.style]})})})})]})}Lt.Target=e1;Lt.Dropdown=Wm;Lt.ContextMenu=Jb;Lt.varsResolver=t1;Lt.displayName="@mantine/core/Popover";Lt.extend=n=>n;Lt.withProps=n=>{const a=r=>S.jsx(Lt,{...n,...r});return a.extend=Lt.extend,a.displayName=`WithProps(${Lt.displayName})`,a};var zn={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const n1=({className:n,...a})=>S.jsxs(ge,{component:"span",className:Ln(zn.barsLoader,n),...a,children:[S.jsx("span",{className:zn.bar}),S.jsx("span",{className:zn.bar}),S.jsx("span",{className:zn.bar})]});n1.displayName="@mantine/core/Bars";const a1=({className:n,...a})=>S.jsxs(ge,{component:"span",className:Ln(zn.dotsLoader,n),...a,children:[S.jsx("span",{className:zn.dot}),S.jsx("span",{className:zn.dot}),S.jsx("span",{className:zn.dot})]});a1.displayName="@mantine/core/Dots";const o1=({className:n,...a})=>S.jsx(ge,{component:"span",className:Ln(zn.ovalLoader,n),...a});o1.displayName="@mantine/core/Oval";const r1={bars:n1,oval:o1,dots:a1},F5={loaders:r1,type:"oval"},l1=(n,{size:a,color:r})=>({root:{"--loader-size":Xe(a,"loader-size"),"--loader-color":r?On(r,n):void 0}}),Bn=Ee(n=>{const a=fe("Loader",F5,n),{size:r,color:i,type:s,vars:c,className:f,style:m,classNames:p,styles:h,unstyled:y,loaders:g,variant:v,children:x,attributes:T,...w}=a,C=Re({name:"Loader",props:a,classes:zn,className:f,style:m,classNames:p,styles:h,unstyled:y,attributes:T,vars:c,varsResolver:l1});return x?S.jsx(ge,{...C("root"),...w,children:x}):S.jsx(ge,{...C("root"),component:g[s],variant:v,size:r,...w})});Bn.defaultLoaders=r1;Bn.classes=zn;Bn.varsResolver=l1;Bn.displayName="@mantine/core/Loader";var tl={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const uv={orientation:"horizontal"},i1=(n,{borderWidth:a})=>({group:{"--ai-border-width":ie(a)}}),Uc=Ee(n=>{const a=fe("ActionIconGroup",uv,n),{className:r,style:i,classNames:s,styles:c,unstyled:f,orientation:m,vars:p,borderWidth:h,variant:y,mod:g,attributes:v,...x}=fe("ActionIconGroup",uv,n);return S.jsx(ge,{...Re({name:"ActionIconGroup",props:a,classes:tl,className:r,style:i,classNames:s,styles:c,unstyled:f,attributes:v,vars:p,varsResolver:i1,rootSelector:"group"})("group"),variant:y,mod:[{"data-orientation":m},g],role:"group",...x})});Uc.classes=tl;Uc.varsResolver=i1;Uc.displayName="@mantine/core/ActionIconGroup";const s1=(n,{radius:a,color:r,gradient:i,variant:s,autoContrast:c,size:f})=>{const m=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:i,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Xe(f,"section-height"),"--section-padding-x":Xe(f,"section-padding-x"),"--section-fz":Ft(f),"--section-radius":a===void 0?void 0:Et(a),"--section-bg":r||s?m.background:void 0,"--section-color":m.color,"--section-bd":r||s?m.border:void 0}}},$c=Ee(n=>{const a=fe("ActionIconGroupSection",null,n),{className:r,style:i,classNames:s,styles:c,unstyled:f,vars:m,variant:p,gradient:h,radius:y,autoContrast:g,attributes:v,...x}=a;return S.jsx(ge,{...Re({name:"ActionIconGroupSection",props:a,classes:tl,className:r,style:i,classNames:s,styles:c,unstyled:f,attributes:v,vars:m,varsResolver:s1,rootSelector:"groupSection"})("groupSection"),variant:p,...x})});$c.classes=tl;$c.varsResolver=s1;$c.displayName="@mantine/core/ActionIconGroupSection";const c1=(n,{size:a,radius:r,variant:i,gradient:s,color:c,autoContrast:f})=>{const m=n.variantColorResolver({color:c||n.primaryColor,theme:n,gradient:s,variant:i||"filled",autoContrast:f});return{root:{"--ai-size":Xe(a,"ai-size"),"--ai-radius":r===void 0?void 0:Et(r),"--ai-bg":c||i?m.background:void 0,"--ai-hover":c||i?m.hover:void 0,"--ai-hover-color":c||i?m.hoverColor:void 0,"--ai-color":m.color,"--ai-bd":c||i?m.border:void 0}}},Ra=Rt(n=>{const a=fe("ActionIcon",null,n),{className:r,unstyled:i,variant:s,classNames:c,styles:f,style:m,loading:p,loaderProps:h,size:y,color:g,radius:v,__staticSelector:x,gradient:T,vars:w,children:C,disabled:A,"data-disabled":M,autoContrast:_,mod:z,attributes:U,...q}=a,H=Re({name:["ActionIcon",x],props:a,className:r,style:m,classes:tl,classNames:c,styles:f,unstyled:i,attributes:U,vars:w,varsResolver:c1});return S.jsxs(kn,{...H("root",{active:!A&&!p&&!M}),...q,unstyled:i,variant:s,size:y,disabled:A||p,mod:[{loading:p,disabled:A||M},z],children:[typeof p=="boolean"&&S.jsx(Vo,{mounted:p,transition:"slide-down",duration:150,children:k=>S.jsx(ge,{component:"span",...H("loader",{style:k}),"aria-hidden":!0,children:S.jsx(Bn,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...h})})}),S.jsx(ge,{component:"span",mod:{loading:p},...H("icon"),children:C})]})});Ra.classes=tl;Ra.varsResolver=c1;Ra.displayName="@mantine/core/ActionIcon";Ra.Group=Uc;Ra.GroupSection=$c;function u1({size:n="var(--cb-icon-size, 70%)",style:a,...r}){return S.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...a,width:n,height:n},...r,children:S.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"})})}u1.displayName="@mantine/core/CloseIcon";var f1={root:"m_86a44da5","root--subtle":"m_220c80f2"};const J5={variant:"subtle"},d1=(n,{size:a,radius:r,iconSize:i})=>({root:{"--cb-size":Xe(a,"cb-size"),"--cb-radius":r===void 0?void 0:Et(r),"--cb-icon-size":ie(i)}}),bi=Rt(n=>{const a=fe("CloseButton",J5,n),{iconSize:r,children:i,vars:s,radius:c,className:f,classNames:m,style:p,styles:h,unstyled:y,"data-disabled":g,disabled:v,variant:x,icon:T,mod:w,attributes:C,__staticSelector:A,...M}=a,_=Re({name:A||"CloseButton",props:a,className:f,style:p,classes:f1,classNames:m,styles:h,unstyled:y,attributes:C,vars:s,varsResolver:d1});return S.jsxs(kn,{...M,unstyled:y,variant:x,disabled:v,mod:[{disabled:v||g},w],..._("root",{variant:x,active:!v&&!g}),children:[T||S.jsx(u1,{}),i]})});bi.classes=f1;bi.varsResolver=d1;bi.displayName="@mantine/core/CloseButton";function W5(n){return E.Children.toArray(n).filter(Boolean)}var m1={root:"m_4081bf90"};const P5={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},h1=(n,{grow:a,preventGrowOverflow:r,gap:i,align:s,justify:c,wrap:f},{childWidth:m})=>({root:{"--group-child-width":a&&r?m:void 0,"--group-gap":cn(i),"--group-align":s,"--group-justify":c,"--group-wrap":f}}),nt=Ee(n=>{const a=fe("Group",P5,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,children:m,gap:p,align:h,justify:y,wrap:g,grow:v,preventGrowOverflow:x,vars:T,variant:w,__size:C,mod:A,attributes:M,..._}=a,z=W5(m),U=z.length,q=cn(p??"md");return S.jsx(ge,{...Re({name:"Group",props:a,stylesCtx:{childWidth:`calc(${100/U}% - (${q} - ${q} / ${U}))`},className:i,style:s,classes:m1,classNames:r,styles:c,unstyled:f,attributes:M,vars:T,varsResolver:h1})("root"),variant:w,mod:[{grow:v},A],size:C,..._,children:z})});nt.classes=m1;nt.varsResolver=h1;nt.displayName="@mantine/core/Group";const p1=E.createContext({size:"sm"}),g1=Ee(n=>{const a=fe("InputClearButton",null,n),{size:r,variant:i,vars:s,classNames:c,styles:f,...m}=a,p=E.use(p1),{resolvedClassNames:h,resolvedStyles:y}=Tc({classNames:c,styles:f,props:a});return S.jsx(bi,{variant:i||"transparent",size:r||(p==null?void 0:p.size)||"sm",classNames:h,styles:y,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...m.style},...m})});g1.displayName="@mantine/core/InputClearButton";const e4={xs:7,sm:8,md:10,lg:12,xl:15};function t4({__clearable:n,__clearSection:a,rightSection:r,__defaultRightSection:i,size:s="sm",__clearSectionMode:c="both"}){const f=n&&a;return c==="rightSection"?r===null?null:r||i:c==="clear"?r===null?null:f||i:f&&(r||i)?S.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:e4[s]},children:[f,r||i]}):r===null?null:r||f||i}const nl=E.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Cn={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",description:"m_fe47ce59"};const y1=(n,{size:a})=>({description:{"--input-description-size":a===void 0?void 0:`calc(${Ft(a)} - ${ie(2)})`}}),xi=Ee(n=>{const a=fe("InputDescription",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,__staticSelector:p,__inheritStyles:h=!0,attributes:y,...g}=fe("InputDescription",null,a),v=E.use(nl),x=Re({name:["InputWrapper",p],props:a,classes:Cn,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:y,rootSelector:"description",vars:m,varsResolver:y1});return S.jsx(ge,{component:"p",...(h&&(v==null?void 0:v.getStyles)||x)("description",v!=null&&v.getStyles?{className:i,style:s}:void 0),...g})});xi.classes=Cn;xi.varsResolver=y1;xi.displayName="@mantine/core/InputDescription";const v1=(n,{size:a})=>({error:{"--input-error-size":a===void 0?void 0:`calc(${Ft(a)} - ${ie(2)})`}}),Si=Ee(n=>{const a=fe("InputError",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,attributes:p,__staticSelector:h,__inheritStyles:y=!0,...g}=a,v=Re({name:["InputWrapper",h],props:a,classes:Cn,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:p,rootSelector:"error",vars:m,varsResolver:v1}),x=E.use(nl);return S.jsx(ge,{component:"p",...(y&&(x==null?void 0:x.getStyles)||v)("error",x!=null&&x.getStyles?{className:i,style:s}:void 0),...g})});Si.classes=Cn;Si.varsResolver=v1;Si.displayName="@mantine/core/InputError";const n4={labelElement:"label"},b1=(n,{size:a})=>({label:{"--input-label-size":Ft(a),"--input-asterisk-color":void 0}}),wi=Ee(n=>{const a=fe("InputLabel",n4,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,labelElement:p,required:h,htmlFor:y,onMouseDown:g,children:v,__staticSelector:x,mod:T,attributes:w,...C}=a,A=Re({name:["InputWrapper",x],props:a,classes:Cn,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:w,rootSelector:"label",vars:m,varsResolver:b1}),M=E.use(nl),_=(M==null?void 0:M.getStyles)||A;return S.jsxs(ge,{..._("label",M!=null&&M.getStyles?{className:i,style:s}:void 0),component:p,htmlFor:p==="label"?y:void 0,mod:[{required:h},T],onMouseDown:z=>{g==null||g(z),!z.defaultPrevented&&z.detail>1&&z.preventDefault()},...C,children:[v,h&&S.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});wi.classes=Cn;wi.varsResolver=b1;wi.displayName="@mantine/core/InputLabel";const Pm=Ee(n=>{const a=fe("InputPlaceholder",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,__staticSelector:p,error:h,mod:y,attributes:g,...v}=a;return S.jsx(ge,{...Re({name:["InputPlaceholder",p],props:a,classes:Cn,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:g,rootSelector:"placeholder"})("placeholder"),mod:[{error:!!h},y],component:"span",...v})});Pm.classes=Cn;Pm.displayName="@mantine/core/InputPlaceholder";function a4(n,{hasDescription:a,hasError:r}){const i=n.findIndex(m=>m==="input"),s=n.slice(0,i),c=n.slice(i+1),f=a&&s.includes("description")||r&&s.includes("error");return{offsetBottom:a&&c.includes("description")||r&&c.includes("error"),offsetTop:f}}const o4={labelElement:"label",inputContainer:n=>n,inputWrapperOrder:["label","description","input","error"]},x1=(n,{size:a})=>({label:{"--input-label-size":Ft(a),"--input-asterisk-color":void 0},error:{"--input-error-size":a===void 0?void 0:`calc(${Ft(a)} - ${ie(2)})`},description:{"--input-description-size":a===void 0?void 0:`calc(${Ft(a)} - ${ie(2)})`}}),qc=Ee(n=>{const a=fe("InputWrapper",o4,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,size:p,variant:h,__staticSelector:y,inputContainer:g,inputWrapperOrder:v,label:x,error:T,description:w,labelProps:C,descriptionProps:A,errorProps:M,labelElement:_,children:z,withAsterisk:U,id:q,required:H,__stylesApiProps:k,mod:P,attributes:ee,...I}=a,V=Re({name:["InputWrapper",y],props:k||a,classes:Cn,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:ee,vars:m,varsResolver:x1}),X={size:p,variant:h,__staticSelector:y},N=Io(q),te=typeof U=="boolean"?U:H,D=(M==null?void 0:M.id)||`${N}-error`,B=(A==null?void 0:A.id)||`${N}-description`,$=N,J=!!T&&typeof T!="boolean",oe=!!w,j=`${J?D:""} ${oe?B:""}`,Y=j.trim().length>0?j.trim():void 0,W=(C==null?void 0:C.id)||`${N}-label`,ae=x&&S.jsx(wi,{labelElement:_,id:W,htmlFor:$,required:te,...X,...C,children:x},"label"),se=oe&&S.jsx(xi,{...A,...X,size:(A==null?void 0:A.size)||X.size,id:(A==null?void 0:A.id)||B,children:w},"description"),ce=S.jsx(E.Fragment,{children:g(z)},"input"),ue=J&&E.createElement(Si,{...M,...X,size:(M==null?void 0:M.size)||X.size,key:"error",id:(M==null?void 0:M.id)||D},T),me=v.map(he=>{switch(he){case"label":return ae;case"input":return ce;case"description":return se;case"error":return ue;default:return null}});return S.jsx(nl,{value:{getStyles:V,describedBy:Y,inputId:$,labelId:W,...a4(v,{hasDescription:oe,hasError:J})},children:S.jsx(ge,{variant:h,size:p,mod:[{error:!!T},P],id:_==="label"?void 0:q,...V("root"),...I,children:me})})});qc.classes=Cn;qc.varsResolver=x1;qc.displayName="@mantine/core/InputWrapper";const r4={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm",loading:!1,loadingPosition:"right"},S1=(n,a,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":Xe(a.size,"input-height"),"--input-fz":Ft(a.size),"--input-radius":a.radius===void 0?void 0:Et(a.radius),"--input-left-section-width":a.leftSectionWidth!==void 0?ie(a.leftSectionWidth):void 0,"--input-right-section-width":a.rightSectionWidth!==void 0?ie(a.rightSectionWidth):void 0,"--input-padding-y":a.multiline?Xe(a.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":a.leftSectionPointerEvents,"--input-right-section-pointer-events":a.rightSectionPointerEvents}}),mt=Rt(n=>{const a=fe("Input",r4,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,required:m,__staticSelector:p,__stylesApiProps:h,size:y,wrapperProps:g,error:v,disabled:x,leftSection:T,leftSectionProps:w,leftSectionWidth:C,rightSection:A,rightSectionProps:M,rightSectionWidth:_,rightSectionPointerEvents:z,leftSectionPointerEvents:U,variant:q,vars:H,pointer:k,multiline:P,radius:ee,id:I,withAria:V,withErrorStyles:X,mod:N,inputSize:te,attributes:D,__clearSection:B,__clearable:$,__clearSectionMode:J,__defaultRightSection:oe,loading:j,loadingPosition:Y,__bottomSection:W,__bottomSectionProps:ae,rootRef:se,dir:ce,...ue}=a,{styleProps:me,rest:he}=yi(ue),Se=E.use(nl),Ne={offsetBottom:Se==null?void 0:Se.offsetBottom,offsetTop:Se==null?void 0:Se.offsetTop},ve=Re({name:["Input",p],props:h||a,classes:Cn,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:D,stylesCtx:Ne,rootSelector:"wrapper",vars:H,varsResolver:S1}),ze=V?{required:m,disabled:x,"aria-invalid":v?!0:void 0,"aria-describedby":Se==null?void 0:Se.describedBy,id:(Se==null?void 0:Se.inputId)||I}:{},De=j?S.jsx(Bn,{size:Y==="left"?"calc(var(--input-left-section-size) / 2)":"calc(var(--input-right-section-size) / 2)"}):null,Ke=j&&Y==="left"?De:T,lt=t4({__clearable:$,__clearSection:B,rightSection:j&&Y==="right"?De:A,__defaultRightSection:oe,size:y,__clearSectionMode:J});return S.jsx(p1,{value:{size:y||"sm"},children:S.jsxs(ge,{ref:se,dir:ce,...ve("wrapper"),...me,...g,mod:[{error:!!v&&X,pointer:k,disabled:x,multiline:P,"data-with-right-section":!!lt,"data-with-left-section":!!Ke,"data-with-bottom-section":!!W},N],variant:q,size:y,children:[Ke&&S.jsx("div",{...w,"data-position":"left",...ve("section",{className:w==null?void 0:w.className,style:w==null?void 0:w.style}),children:Ke}),S.jsx(ge,{component:"input",...he,...ze,required:m,mod:{disabled:x,error:!!v&&X},variant:q,__size:te,...ve("input")}),W&&S.jsx("div",{...ae,...ve("bottomSection",{className:ae==null?void 0:ae.className,style:ae==null?void 0:ae.style}),children:W}),lt&&S.jsx("div",{...M,"data-position":"right",...ve("section",{className:M==null?void 0:M.className,style:M==null?void 0:M.style}),children:lt})]})})});mt.classes=Cn;mt.varsResolver=S1;mt.Wrapper=qc;mt.Label=wi;mt.Error=Si;mt.Description=xi;mt.Placeholder=Pm;mt.ClearButton=g1;mt.displayName="@mantine/core/Input";function l4(n,a,r){const i=fe(["Input","InputWrapper",n],a,r),{label:s,description:c,error:f,required:m,classNames:p,styles:h,className:y,unstyled:g,__staticSelector:v,__stylesApiProps:x,errorProps:T,labelProps:w,descriptionProps:C,wrapperProps:A,id:M,size:_,style:z,inputContainer:U,inputWrapperOrder:q,withAsterisk:H,variant:k,vars:P,mod:ee,attributes:I,...V}=i,{styleProps:X,rest:N}=yi(V),te={label:s,description:c,error:f,required:m,classNames:p,className:y,__staticSelector:v,__stylesApiProps:x||i,errorProps:T,labelProps:w,descriptionProps:C,unstyled:g,styles:h,size:_,style:z,inputContainer:U,inputWrapperOrder:q,withAsterisk:H,variant:k,id:M,mod:ee,attributes:I,...A};return{...N,classNames:p,styles:h,unstyled:g,wrapperProps:{...te,...X},inputProps:{required:m,classNames:p,styles:h,unstyled:g,size:_,__staticSelector:v,__stylesApiProps:x||i,error:f,variant:k,id:M,attributes:I}}}const i4={__staticSelector:"InputBase",withAria:!0,size:"sm"},Wo=Rt(n=>{const{inputProps:a,wrapperProps:r,...i}=l4("InputBase",i4,n);return S.jsx(mt.Wrapper,{...r,children:S.jsx(mt,{...a,...i})})});Wo.classes={...mt.classes,...mt.Wrapper.classes};Wo.displayName="@mantine/core/InputBase";const s4={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var w1={root:"m_8bffd616"};const eh=Rt(n=>{const a=fe("Flex",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,gap:p,rowGap:h,columnGap:y,align:g,justify:v,wrap:x,direction:T,attributes:w,...C}=a,A=Re({name:"Flex",classes:w1,props:a,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:w,vars:m}),M=un(),_=Bm(),z=ob({styleProps:{gap:p,rowGap:h,columnGap:y,align:g,justify:v,wrap:x,direction:T},theme:M,data:s4}),U=Jv(),q=U&&z.hasResponsiveStyles?ab(z.styles,z.media):_;return S.jsxs(S.Fragment,{children:[z.hasResponsiveStyles&&S.jsx(Ac,{selector:`.${q}`,styles:z.styles,media:z.media,deduplicate:U}),S.jsx(ge,{...A("root",{className:q,style:Wr(z.inlineStyles)}),...C})]})});eh.classes=w1;eh.displayName="@mantine/core/Flex";function E1({style:n,size:a=16,...r}){return S.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...n,width:ie(a),height:ie(a),display:"block"},...r,children:S.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"})})}E1.displayName="@mantine/core/AccordionChevron";var R1={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 C1=(n,{radius:a,color:r,variant:i,autoContrast:s})=>{const c=n.variantColorResolver({color:r||n.primaryColor,theme:n,variant:i||"light",autoContrast:s});return{root:{"--alert-radius":a===void 0?void 0:Et(a),"--alert-bg":r||i?c.background:void 0,"--alert-color":c.color,"--alert-bd":r||i?c.border:void 0}}},al=Ee(n=>{const a=fe("Alert",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,radius:p,color:h,title:y,children:g,id:v,icon:x,withCloseButton:T,onClose:w,closeButtonLabel:C,variant:A,autoContrast:M,role:_,attributes:z,...U}=a,q=Re({name:"Alert",classes:R1,props:a,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:z,vars:m,varsResolver:C1}),H=Io(v),k=y&&`${H}-title`||void 0,P=`${H}-body`;return S.jsx(ge,{id:H,...q("root",{variant:A}),variant:A,...U,role:_||"alert","aria-describedby":g?P:void 0,"aria-labelledby":y?k:void 0,children:S.jsxs("div",{...q("wrapper"),children:[x&&S.jsx("div",{...q("icon"),children:x}),S.jsxs("div",{...q("body"),children:[y&&S.jsx("div",{...q("title"),"data-with-close-button":T||void 0,children:S.jsx("span",{id:k,...q("label"),children:y})}),g&&S.jsx("div",{id:P,...q("message"),"data-variant":A,children:g})]}),T&&S.jsx(bi,{...q("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":C,unstyled:f})]})})});al.classes=R1;al.varsResolver=C1;al.displayName="@mantine/core/Alert";var T1={root:"m_b6d8b162"};function c4(n){if(n==="start")return"start";if(n==="end"||n)return"end"}const u4={inherit:!1},A1=(n,{variant:a,lineClamp:r,gradient:i,size:s,textWrap:c})=>({root:{"--text-fz":Ft(s),"--text-lh":iE(s),"--text-gradient":a==="gradient"?tm(i,n):void 0,"--text-line-clamp":typeof r=="number"?r.toString():void 0,"--text-text-wrap":c}}),$e=Rt(n=>{const a=fe("Text",u4,n),{lineClamp:r,truncate:i,inline:s,inherit:c,gradient:f,span:m,textWrap:p,__staticSelector:h,vars:y,className:g,style:v,classNames:x,styles:T,unstyled:w,variant:C,mod:A,size:M,attributes:_,...z}=a;return S.jsx(ge,{...Re({name:["Text",h],props:a,classes:T1,className:g,style:v,classNames:x,styles:T,unstyled:w,attributes:_,vars:y,varsResolver:A1})("root",{focusable:!0}),component:m?"span":"p",variant:C,mod:[{"data-truncate":c4(i),"data-line-clamp":typeof r=="number","data-inline":s,"data-inherit":c},A],size:M,...z})});$e.classes=T1;$e.varsResolver=A1;$e.displayName="@mantine/core/Text";var _1={root:"m_849cf0da"};const f4={underline:"hover"},Yc=Rt(n=>{const{underline:a,className:r,unstyled:i,mod:s,...c}=fe("Anchor",f4,n);return S.jsx($e,{component:"a",className:Ln({[_1.root]:!i},r),...c,mod:[{underline:a},s],__staticSelector:"Anchor",unstyled:i})});Yc.classes=_1;Yc.displayName="@mantine/core/Anchor";function d4({children:n,role:a}){const r=E.use(nl);return r?S.jsx("div",{role:a,"aria-labelledby":r.labelId,"aria-describedby":r.describedBy,children:n}):S.jsx(S.Fragment,{children:n})}const th=E.createContext(null),m4={hiddenInputValuesSeparator:","},nh=k6((n=>{const{value:a,defaultValue:r,onChange:i,size:s,wrapperProps:c,children:f,readOnly:m,name:p,hiddenInputValuesSeparator:h,hiddenInputProps:y,maxSelectedValues:g,disabled:v,...x}=fe("CheckboxGroup",m4,n),[T,w]=uo({value:a,defaultValue:r,finalValue:[],onChange:i}),C=_=>{const z=typeof _=="string"?_:_.currentTarget.value;if(m)return;const U=T.includes(z);!U&&g&&T.length>=g||w(U?T.filter(q=>q!==z):[...T,z])},A=_=>{if(v)return!0;if(!g)return!1;const z=T.includes(_),U=T.length>=g;return!z&&U},M=T.join(h);return S.jsx(th,{value:{value:T,onChange:C,size:s,isDisabled:A},children:S.jsxs(mt.Wrapper,{size:s,...c,...x,labelElement:"div",__staticSelector:"CheckboxGroup",children:[S.jsx(d4,{role:"group",children:f}),S.jsx("input",{type:"hidden",name:p,value:M,...y})]})})}));nh.classes=mt.Wrapper.classes;nh.displayName="@mantine/core/CheckboxGroup";var M1={card:"m_26775b0a"};const j1=E.createContext(null),h4={withBorder:!0},z1=(n,{radius:a})=>({card:{"--card-radius":Et(a)}}),Gc=Ee(n=>{const a=fe("CheckboxCard",h4,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,checked:p,mod:h,withBorder:y,value:g,onClick:v,defaultChecked:x,onChange:T,attributes:w,...C}=a,A=Re({name:"CheckboxCard",classes:M1,props:a,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:w,vars:m,varsResolver:z1,rootSelector:"card"}),M=E.use(th),[_,z]=uo({value:typeof p=="boolean"?p:M?M.value.includes(g||""):void 0,defaultValue:x,finalValue:!1,onChange:T});return S.jsx(j1,{value:{checked:_},children:S.jsx(kn,{mod:[{"with-border":y,checked:_},h],...A("card"),...C,role:"checkbox","aria-checked":_,onClick:U=>{v==null||v(U),M==null||M.onChange(g||""),z(!_)}})})});Gc.displayName="@mantine/core/CheckboxCard";Gc.classes=M1;Gc.varsResolver=z1;function O1({size:n,style:a,...r}){return S.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n!==void 0?{width:ie(n),height:ie(n),...a}:a,"aria-hidden":!0,...r,children:S.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 N1({indeterminate:n,...a}){return n?S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...a,children:S.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):S.jsx(O1,{...a})}var D1={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const p4={icon:N1,variant:"filled",radius:"sm"},B1=(n,{radius:a,color:r,size:i,iconColor:s,variant:c,autoContrast:f})=>{const m=Wn({color:r||n.primaryColor,theme:n}),p=m.isThemeColor&&m.shade===void 0?`var(--mantine-color-${m.color}-outline)`:m.color;return{indicator:{"--checkbox-size":Xe(i,"checkbox-size"),"--checkbox-radius":a===void 0?void 0:Et(a),"--checkbox-color":c==="outline"?p:On(r,n),"--checkbox-icon-color":s?On(s,n):Iv(f,n)?_m({color:r,theme:n,autoContrast:f}):void 0}}},Vc=Ee(n=>{const a=fe("CheckboxIndicator",p4,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,icon:p,indeterminate:h,radius:y,color:g,iconColor:v,autoContrast:x,checked:T,mod:w,variant:C,disabled:A,attributes:M,..._}=a,z=Re({name:"CheckboxIndicator",classes:D1,props:a,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:M,vars:m,varsResolver:B1,rootSelector:"indicator"}),U=E.use(j1),q=typeof T=="boolean"||typeof h=="boolean"?T||h:(U==null?void 0:U.checked)||!1;return S.jsx(ge,{...z("indicator",{variant:C}),variant:C,mod:[{checked:q,disabled:A},w],..._,children:S.jsx(p,{indeterminate:h,...z("icon")})})});Vc.displayName="@mantine/core/CheckboxIndicator";Vc.classes=D1;Vc.varsResolver=B1;var L1={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const g4=L1;function k1({__staticSelector:n,__stylesApiProps:a,className:r,classNames:i,styles:s,unstyled:c,children:f,label:m,description:p,id:h,disabled:y,error:g,size:v,labelPosition:x="left",bodyElement:T="div",labelElement:w="label",variant:C,style:A,vars:M,mod:_,attributes:z,...U}){const q=Re({name:n,props:a,className:r,style:A,classes:L1,classNames:i,styles:s,unstyled:c,attributes:z}),H=p?`${h}-description`:void 0,k=g&&typeof g!="boolean"?`${h}-error`:void 0;return S.jsx(ge,{...q("root"),__vars:{"--label-fz":Ft(v),"--label-lh":Xe(v,"label-lh")},mod:[{"label-position":x},_],variant:C,size:v,...U,children:S.jsxs(ge,{component:T,htmlFor:T==="label"?h:void 0,...q("body"),children:[f,S.jsxs("div",{...q("labelWrapper"),"data-disabled":y||void 0,children:[m&&S.jsx(ge,{component:w,htmlFor:w==="label"?h:void 0,...q("label"),"data-disabled":y||void 0,children:m}),p&&S.jsx(mt.Description,{id:H,size:v,__inheritStyles:!1,...q("description"),children:p}),g&&typeof g!="boolean"&&S.jsx(mt.Error,{id:k,size:v,__inheritStyles:!1,...q("error"),children:g})]})]})})}k1.displayName="@mantine/core/InlineInput";var H1={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const y4={labelPosition:"right",icon:N1,withErrorStyles:!0,variant:"filled",radius:"sm"},U1=(n,{radius:a,color:r,size:i,iconColor:s,variant:c,autoContrast:f})=>{const m=Wn({color:r||n.primaryColor,theme:n}),p=m.isThemeColor&&m.shade===void 0?`var(--mantine-color-${m.color}-outline)`:m.color;return{root:{"--checkbox-size":Xe(i,"checkbox-size"),"--checkbox-radius":a===void 0?void 0:Et(a),"--checkbox-color":c==="outline"?p:On(r,n),"--checkbox-icon-color":s?On(s,n):Iv(f,n)?_m({color:r,theme:n,autoContrast:f}):void 0}}},Po=Ee(n=>{var me;const a=fe("Checkbox",y4,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,color:p,label:h,id:y,size:g,radius:v,wrapperProps:x,checked:T,labelPosition:w,description:C,error:A,disabled:M,variant:_,indeterminate:z,icon:U,rootRef:q,iconColor:H,onChange:k,autoContrast:P,mod:ee,attributes:I,readOnly:V,onClick:X,withErrorStyles:N,ref:te,...D}=a,B=E.useRef(null),$=E.use(th),J=g||($==null?void 0:$.size),oe=Re({name:"Checkbox",props:a,classes:H1,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:I,vars:m,varsResolver:U1}),{styleProps:j,rest:Y}=yi(D),W=Io(y),ae=[C?`${W}-description`:void 0,A&&typeof A!="boolean"?`${W}-error`:void 0,Y["aria-describedby"]].filter(Boolean).join(" ")||void 0,se={checked:($==null?void 0:$.value.includes(Y.value))??T,onChange:he=>{$==null||$.onChange(he),k==null||k(he)}},ce=((me=$==null?void 0:$.isDisabled)==null?void 0:me.call($,Y.value))??!1,ue=M||ce;return E.useEffect(()=>{B.current&&(B.current.indeterminate=z||!1,z?B.current.setAttribute("data-indeterminate","true"):B.current.removeAttribute("data-indeterminate"))},[z]),S.jsx(k1,{...oe("root"),__staticSelector:"Checkbox",__stylesApiProps:a,id:W,size:J,labelPosition:w,label:h,description:C,error:A,disabled:ue,classNames:r,styles:c,unstyled:f,"data-checked":se.checked||T||void 0,variant:_,ref:q,mod:ee,attributes:I,inert:Y.inert,...j,...x,children:S.jsxs(ge,{...oe("inner"),mod:{"data-label-position":w},children:[S.jsx(ge,{component:"input",id:W,ref:gt(B,te),mod:{error:!!A,"with-error-styles":N},...oe("input",{focusable:!0,variant:_}),...Y,...se,"aria-describedby":ae,disabled:ue,inert:Y.inert,type:"checkbox",onClick:he=>{V&&he.preventDefault(),X==null||X(he)}}),S.jsx(U,{indeterminate:z,...oe("icon")})]})})});Po.classes={...H1,...g4};Po.varsResolver=U1;Po.displayName="@mantine/core/Checkbox";Po.Group=nh;Po.Indicator=Vc;Po.Card=Gc;var Xc={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const $1=E.createContext({withinGroup:!1}),q1=(n,{spacing:a})=>({group:{"--ag-spacing":cn(a)}}),Zc=Ee(n=>{const a=fe("AvatarGroup",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,spacing:p,attributes:h,...y}=a;return S.jsx($1,{value:{withinGroup:!0},children:S.jsx(ge,{...Re({name:"AvatarGroup",classes:Xc,props:a,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:h,vars:m,varsResolver:q1,rootSelector:"group"})("group"),...y})})});Zc.classes=Xc;Zc.varsResolver=q1;Zc.displayName="@mantine/core/AvatarGroup";function v4(n){return S.jsx("svg",{...n,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function b4(n){let a=0;for(let r=0;r<n.length;r+=1){const i=n.charCodeAt(r);a=(a<<5)-a+i,a|=0}return a}const x4=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function S4(n,a=x4){const r=b4(n);return a[Math.abs(r)%a.length]}function w4(n,a=2){const r=n.split(" ");return r.length===1?n.slice(0,a).toUpperCase():r.map(i=>i[0]).slice(0,a).join("").toUpperCase()}const Y1=(n,{size:a,radius:r,variant:i,gradient:s,color:c,autoContrast:f,name:m,allowedInitialsColors:p})=>{const h=c==="initials"&&typeof m=="string"?S4(m,p):c,y=n.variantColorResolver({color:h||"gray",theme:n,gradient:s,variant:i||"light",autoContrast:f});return{root:{"--avatar-size":Xe(a,"avatar-size"),"--avatar-radius":r===void 0?void 0:Et(r),"--avatar-bg":h||i?y.background:void 0,"--avatar-color":h||i?y.color:void 0,"--avatar-bd":h||i?y.border:void 0}}},fo=Rt(n=>{const a=fe("Avatar",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,src:p,alt:h,radius:y,color:g,gradient:v,imageProps:x,children:T,autoContrast:w,mod:C,name:A,allowedInitialsColors:M,attributes:_,...z}=a,U=E.use($1),[q,H]=E.useState(!p),k=Re({name:"Avatar",props:a,classes:Xc,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:_,vars:m,varsResolver:Y1});return E.useEffect(()=>H(!p),[p]),S.jsx(ge,{...k("root"),mod:[{"within-group":U.withinGroup},C],...z,children:q||!p?S.jsx("span",{...k("placeholder"),title:h,children:T||typeof A=="string"&&w4(A)||S.jsx(v4,{})}):S.jsx("img",{...x,...k("image"),src:p,alt:h,onError:P=>{var ee;H(!0),(ee=x==null?void 0:x.onError)==null||ee.call(x,P)}})})});fo.classes=Xc;fo.varsResolver=Y1;fo.displayName="@mantine/core/Avatar";fo.Group=Zc;var G1={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const V1=(n,{radius:a,color:r,gradient:i,variant:s,size:c,autoContrast:f,circle:m})=>{const p=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:i,variant:s||"filled",autoContrast:f});return{root:{"--badge-height":Xe(c,"badge-height"),"--badge-padding-x":Xe(c,"badge-padding-x"),"--badge-fz":Xe(c,"badge-fz"),"--badge-radius":m||a===void 0?void 0:Et(a),"--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"?On(r,n):void 0}}},Kc=Rt(n=>{const a=fe("Badge",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,radius:p,color:h,gradient:y,leftSection:g,rightSection:v,children:x,variant:T,fullWidth:w,autoContrast:C,circle:A,mod:M,attributes:_,...z}=a,U=Re({name:"Badge",props:a,classes:G1,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:_,vars:m,varsResolver:V1});return S.jsxs(ge,{variant:T,mod:[{block:w,circle:A,"with-right-section":!!v,"with-left-section":!!g},M],...U("root",{variant:T}),...z,children:[g&&S.jsx("span",{...U("section"),"data-position":"left",children:g}),S.jsx("span",{...U("label"),children:x}),v&&S.jsx("span",{...U("section"),"data-position":"right",children:v})]})});Kc.classes=G1;Kc.varsResolver=V1;Kc.displayName="@mantine/core/Badge";var ol={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const fv={orientation:"horizontal"},X1=(n,{borderWidth:a})=>({group:{"--button-border-width":ie(a)}}),Qc=Ee(n=>{const a=fe("ButtonGroup",fv,n),{className:r,style:i,classNames:s,styles:c,unstyled:f,orientation:m,vars:p,borderWidth:h,mod:y,attributes:g,...v}=fe("ButtonGroup",fv,n);return S.jsx(ge,{...Re({name:"ButtonGroup",props:a,classes:ol,className:r,style:i,classNames:s,styles:c,unstyled:f,attributes:g,vars:p,varsResolver:X1,rootSelector:"group"})("group"),mod:[{"data-orientation":m},y],role:"group",...v})});Qc.classes=ol;Qc.varsResolver=X1;Qc.displayName="@mantine/core/ButtonGroup";const Z1=(n,{radius:a,color:r,gradient:i,variant:s,autoContrast:c,size:f})=>{const m=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:i,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Xe(f,"section-height"),"--section-padding-x":Xe(f,"section-padding-x"),"--section-fz":f!=null&&f.includes("compact")?Ft(f.replace("compact-","")):Ft(f),"--section-radius":a===void 0?void 0:Et(a),"--section-bg":r||s?m.background:void 0,"--section-color":m.color,"--section-bd":r||s?m.border:void 0}}},Ic=Ee(n=>{const a=fe("ButtonGroupSection",null,n),{className:r,style:i,classNames:s,styles:c,unstyled:f,vars:m,gradient:p,radius:h,autoContrast:y,attributes:g,...v}=a;return S.jsx(ge,{...Re({name:"ButtonGroupSection",props:a,classes:ol,className:r,style:i,classNames:s,styles:c,unstyled:f,attributes:g,vars:m,varsResolver:Z1,rootSelector:"groupSection"})("groupSection"),...v})});Ic.classes=ol;Ic.varsResolver=Z1;Ic.displayName="@mantine/core/ButtonGroupSection";const E4={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${ie(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},K1=(n,{radius:a,color:r,gradient:i,variant:s,size:c,justify:f,autoContrast:m})=>{const p=n.variantColorResolver({color:r||n.primaryColor,theme:n,gradient:i,variant:s||"filled",autoContrast:m});return{root:{"--button-justify":f,"--button-height":Xe(c,"button-height"),"--button-padding-x":Xe(c,"button-padding-x"),"--button-fz":c!=null&&c.includes("compact")?Ft(c.replace("compact-","")):Ft(c),"--button-radius":a===void 0?void 0:Et(a),"--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}}},pt=Rt(n=>{const a=fe("Button",null,n),{style:r,vars:i,className:s,color:c,disabled:f,children:m,leftSection:p,rightSection:h,fullWidth:y,variant:g,radius:v,loading:x,loaderProps:T,gradient:w,classNames:C,styles:A,unstyled:M,"data-disabled":_,autoContrast:z,mod:U,attributes:q,...H}=a,k=Re({name:"Button",props:a,classes:ol,className:s,style:r,classNames:C,styles:A,unstyled:M,attributes:q,vars:i,varsResolver:K1}),P=!!p,ee=!!h;return S.jsxs(kn,{...k("root",{active:!f&&!x&&!_}),unstyled:M,variant:g,disabled:f||x,mod:[{disabled:f||_,loading:x,block:y,"with-left-section":P,"with-right-section":ee},U],...H,children:[typeof x=="boolean"&&S.jsx(Vo,{mounted:x,transition:E4,duration:150,children:I=>S.jsx(ge,{component:"span",...k("loader",{style:I}),"aria-hidden":!0,children:S.jsx(Bn,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...T})})}),S.jsxs("span",{...k("inner"),children:[p&&S.jsx(ge,{component:"span",...k("section"),mod:{position:"left"},children:p}),S.jsx(ge,{component:"span",mod:{loading:x},...k("label"),children:m}),h&&S.jsx(ge,{component:"span",...k("section"),mod:{position:"right"},children:h})]})]})});pt.classes=ol;pt.varsResolver=K1;pt.displayName="@mantine/core/Button";pt.Group=Qc;pt.GroupSection=Ic;const[R4,C4]=gi("Card component was not found in tree");var ah={root:"m_e615b15f",section:"m_599a2148"};const Fc=Rt(n=>{const{classNames:a,className:r,style:i,styles:s,vars:c,withBorder:f,inheritPadding:m,mod:p,...h}=fe("CardSection",null,n),y=C4();return S.jsx(ge,{mod:[{"with-border":f,"inherit-padding":m},p],...y.getStyles("section",{className:r,style:i,styles:s,classNames:a}),...h})});Fc.classes=ah;Fc.displayName="@mantine/core/CardSection";const Q1=(n,{padding:a})=>({root:{"--card-padding":cn(a)}}),T4={orientation:"vertical"},rl=Rt(n=>{const a=fe("Card",T4,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,children:p,padding:h,attributes:y,orientation:g,...v}=a,x=Re({name:"Card",props:a,classes:ah,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:y,vars:m,varsResolver:Q1}),T=E.Children.toArray(p),w=T.map((C,A)=>{var M;return typeof C=="object"&&C&&"type"in C&&(C.type===Fc||((M=C.type)==null?void 0:M.displayName)==="@mantine/core/CardSection")?E.cloneElement(C,{"data-orientation":g,"data-first-section":A===0||void 0,"data-last-section":A===T.length-1||void 0}):C});return S.jsx(R4,{value:{getStyles:x},children:S.jsx(Lc,{unstyled:f,"data-orientation":g,...x("root"),...v,children:w})})});rl.classes=ah;rl.varsResolver=Q1;rl.displayName="@mantine/core/Card";rl.Section=Fc;var I1={root:"m_4451eb3a"};const In=Rt(n=>{const a=fe("Center",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,inline:p,mod:h,attributes:y,...g}=a,v=Re({name:"Center",props:a,classes:I1,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:y,vars:m});return S.jsx(ge,{mod:[{inline:p},h],...v("root"),...g})});In.classes=I1;In.displayName="@mantine/core/Center";var F1={root:"m_b183c0a2"};const J1=(n,{color:a})=>({root:{"--code-bg":a?On(a,n):void 0}}),Jc=Ee(n=>{const a=fe("Code",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,color:p,block:h,mod:y,attributes:g,...v}=a,x=Re({name:"Code",props:a,classes:F1,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:g,vars:m,varsResolver:J1});return S.jsx(ge,{component:h?"pre":"code",mod:[{block:h},y],...x("root"),...v,dir:"ltr"})});Jc.classes=F1;Jc.varsResolver=J1;Jc.displayName="@mantine/core/Code";const A4={timeout:1e3};function W1(n){const{children:a,timeout:r,value:i,...s}=fe("CopyButton",A4,n),c=hE({timeout:r}),f=()=>c.copy(i);return S.jsx(S.Fragment,{children:a({copy:f,copied:c.copied,...s})})}W1.displayName="@mantine/core/CopyButton";var P1={root:"m_3eebeb36",label:"m_9e365f20"};const _4={orientation:"horizontal"},e2=(n,{color:a,variant:r,size:i})=>({root:{"--divider-color":a?On(a,n):void 0,"--divider-border-style":r,"--divider-size":Xe(i,"divider-size")}}),Xo=Ee(n=>{const a=fe("Divider",_4,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,color:p,orientation:h,label:y,labelPosition:g,mod:v,attributes:x,...T}=a,w=Re({name:"Divider",classes:P1,props:a,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:x,vars:m,varsResolver:e2});return S.jsx(ge,{mod:[{orientation:h,withLabel:!!y},v],role:"separator",...w("root"),...T,children:y&&S.jsx(ge,{component:"span",mod:{position:g},...w("label"),children:y})})});Xo.classes=P1;Xo.varsResolver=e2;Xo.displayName="@mantine/core/Divider";const M4=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],dv={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"};function mv(n){Object.keys(dv).forEach(a=>{n.style.setProperty(a,dv[a],"important")})}function j4(n){const a=window.getComputedStyle(n);if(a===null)return null;const r={};for(const i of M4)r[i]=a[i];return r.boxSizing===""?null:{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)}}let bt=null;function z4(n,a,r=1,i=1/0){bt||(bt=document.createElement("textarea"),bt.setAttribute("tabindex","-1"),bt.setAttribute("aria-hidden","true"),bt.setAttribute("aria-label","autosize measurement"),mv(bt)),bt.parentNode===null&&document.body.appendChild(bt);const{paddingSize:s,borderSize:c,sizingStyle:f}=n,{boxSizing:m}=f;Object.keys(f).forEach(v=>{bt.style[v]=f[v]}),mv(bt),bt.value=a;let p=m==="border-box"?bt.scrollHeight+c:bt.scrollHeight-s;bt.value=a,p=m==="border-box"?bt.scrollHeight+c:bt.scrollHeight-s,bt.value="x";const h=bt.scrollHeight-s;let y=h*r;m==="border-box"&&(y=y+s+c),p=Math.max(y,p);let g=h*i;return m==="border-box"&&(g=g+s+c),p=Math.min(g,p),[p,h]}function O4({maxRows:n,minRows:a,onChange:r,ref:i,...s}){const c=s.value!==void 0,f=E.useRef(null),m=gt(f,i),p=E.useRef(0),h=()=>{const g=f.current;if(!g)return;const v=j4(g);if(!v)return;const[x]=z4(v,g.value||g.placeholder||"x",a,n);p.current!==x&&(p.current=x,g.style.setProperty("height",`${x}px`,"important"))},y=g=>{c||h(),r==null||r(g)};return E.useLayoutEffect(h),E.useEffect(()=>{const g=()=>h();return window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[]),E.useEffect(()=>{const g=()=>h();return document.fonts.addEventListener("loadingdone",g),()=>document.fonts.removeEventListener("loadingdone",g)},[]),E.useEffect(()=>{const g=v=>{var x;if(((x=f.current)==null?void 0:x.form)===v.target&&!c){const T=f.current.value;requestAnimationFrame(()=>{f.current&&T!==f.current.value&&h()})}};return document.body.addEventListener("reset",g),()=>document.body.removeEventListener("reset",g)},[c]),S.jsx("textarea",{...s,onChange:y,ref:m})}const oh=Ee(n=>{const{autosize:a,maxRows:r,minRows:i,__staticSelector:s,resize:c,bottomSection:f,bottomSectionProps:m,...p}=fe(["Input","InputWrapper","Textarea"],null,n),h=a&&ME()!=="test",y=h?{maxRows:r,minRows:i}:{};return S.jsx(Wo,{component:h?O4:"textarea",...p,__staticSelector:s||"Textarea",__bottomSection:f,__bottomSectionProps:m,multiline:!0,"data-no-overflow":a&&r===void 0||void 0,__vars:{"--input-resize":c},...y})});oh.classes=Wo.classes;oh.displayName="@mantine/core/Textarea";const[N4,Pt]=gi("Menu component was not found in the tree"),t2=E.createContext(null);function n2(n){const{value:a,defaultValue:r,onChange:i,children:s}=fe("MenuCheckboxGroup",null,n),[c,f]=uo({value:a,defaultValue:r,finalValue:[],onChange:i});return S.jsx(t2,{value:{values:c,onChange:E.useCallback(m=>{f(c.includes(m)?c.filter(p=>p!==m):[...c,m])},[c,f])},children:s})}n2.displayName="@mantine/core/MenuCheckboxGroup";const Ir=E.createContext(null);function a2({role:n,checked:a,indicator:r,onSelect:i,color:s,closeMenuOnClick:c,rightSection:f,children:m,disabled:p,dataDisabled:h,className:y,style:g,styles:v,classNames:x,buttonRef:T,others:w}){const C=Pt(),A=E.use(Ir),M=un(),{dir:_}=_a(),z=E.useRef(null),U=dt(w.onClick,()=>{h||(i(),c&&C.closeDropdownImmediately())}),q=dt(w.onMouseMove,()=>{var V;if(!C.hasSearch)return;const I=(V=z.current)==null?void 0:V.closest("[data-menu-dropdown]");I&&I.querySelectorAll("[data-menu-active]").forEach(X=>{X!==z.current&&X.closest("[data-menu-dropdown]")===I&&X.removeAttribute("data-menu-active")})}),H=dt(w.onKeyDown,I=>{I.key==="ArrowLeft"&&A&&(A.close(),A.focusParentItem())}),k=s?M.variantColorResolver({color:s,theme:M,variant:"light"}):void 0,P=s?Wn({color:s,theme:M}):null,ee=C.alignItemsLabels!=="none"||a;return S.jsxs(kn,{onMouseDown:I=>I.preventDefault(),...w,unstyled:C.unstyled,tabIndex:C.menuItemTabIndex,...C.getStyles("item",{className:y,style:g,styles:v,classNames:x}),ref:gt(z,T),role:n,"aria-checked":a,disabled:p,"data-menu-item":!0,"data-checked":a||void 0,"data-disabled":p||h||void 0,"data-mantine-stop-propagation":!0,onClick:U,onMouseMove:q,onKeyDown:Em({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:C.loop,dir:_,orientation:"vertical",onKeyDown:H}),__vars:{"--menu-item-color":P!=null&&P.isThemeColor&&(P==null?void 0:P.shade)===void 0?`var(--mantine-color-${P.color}-6)`:k==null?void 0:k.color,"--menu-item-hover":k==null?void 0:k.hover},children:[ee&&S.jsx("div",{...C.getStyles("itemIndicator",{styles:v,classNames:x}),"data-checked":a||void 0,children:a?r:null}),m&&S.jsx("div",{...C.getStyles("itemLabel",{styles:v,classNames:x}),"data-menu-item-label":!0,children:m}),f&&S.jsx("div",{...C.getStyles("itemSection",{styles:v,classNames:x}),"data-position":"right",children:f})]})}var Hn={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 rh=Ee(n=>{const{classNames:a,className:r,style:i,styles:s,vars:c,color:f,closeMenuOnClick:m,rightSection:p,children:h,disabled:y,"data-disabled":g,value:v,checked:x,defaultChecked:T,onChange:w,checkIcon:C,ref:A,...M}=fe("MenuCheckboxItem",null,n),_=Pt(),z=E.use(t2),U=z&&v!==void 0?z.values.includes(v):void 0,[q,H]=uo({value:x??U,defaultValue:T,finalValue:!1,onChange:w});return S.jsx(a2,{role:"menuitemcheckbox",checked:q,indicator:C??_.checkIcon??S.jsx(O1,{size:10}),onSelect:()=>{w?H(!q):z&&v!==void 0?z.onChange(v):H(!q)},color:f,closeMenuOnClick:m,rightSection:p,disabled:y,dataDisabled:g,className:r,style:i,styles:s,classNames:a,buttonRef:A,others:M,children:h})});rh.classes=Hn;rh.displayName="@mantine/core/MenuCheckboxItem";function o2(n){const{children:a,disabled:r}=fe("MenuContextMenu",null,n),i=Fo(a);if(!i)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 s=Pt(),c=Hc();return E.cloneElement(i,Fb({childProps:i.props,disabled:r||c.disabled,opened:s.opened,setReference:c.reference,open:()=>s.openDropdown()}))}o2.displayName="@mantine/core/MenuContextMenu";const lh=Ee(n=>{const{classNames:a,className:r,style:i,styles:s,vars:c,...f}=fe("MenuDivider",null,n);return S.jsx(ge,{...Pt().getStyles("divider",{className:r,style:i,styles:s,classNames:a}),...f})});lh.classes=Hn;lh.displayName="@mantine/core/MenuDivider";const D4=500;function hv(n){return((n.querySelector("[data-menu-item-label]")??n).textContent??"").trim().toLowerCase()}function B4(n){return n.length>1&&n.split("").every(a=>a===n[0])}function r2({enabled:n,opened:a,getDropdown:r}){const i=E.useRef({buffer:"",timeoutId:null});return E.useEffect(()=>{if(a&&n)return;const s=i.current;s.timeoutId!==null&&(window.clearTimeout(s.timeoutId),s.timeoutId=null),s.buffer=""},[a,n]),E.useEffect(()=>()=>{const{timeoutId:s}=i.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 c=s.target;if(c&&(c.tagName==="INPUT"||c.tagName==="TEXTAREA"||c.tagName==="SELECT"||c.isContentEditable))return;const f=r();if(!f)return;const m=Array.from(f.querySelectorAll("[data-menu-item]:not([data-disabled])")).filter(v=>v.closest("[data-menu-dropdown]")===f);if(m.length===0)return;const p=i.current;p.buffer=(p.buffer+s.key).toLowerCase(),p.timeoutId!==null&&window.clearTimeout(p.timeoutId),p.timeoutId=window.setTimeout(()=>{p.buffer="",p.timeoutId=null},D4);const h=document.activeElement,y=h?m.indexOf(h):-1;let g=null;if(p.buffer.length===1||B4(p.buffer)){const v=p.buffer[0],x=y+1;for(let T=0;T<m.length;T+=1){const w=(x+T)%m.length;if(hv(m[w]).startsWith(v)){g=m[w];break}}}else for(let v=0;v<m.length;v+=1)if(hv(m[v]).startsWith(p.buffer)){g=m[v];break}g&&(s.preventDefault(),g.focus())}}const ih=Ee(n=>{const{classNames:a,className:r,style:i,styles:s,vars:c,onMouseEnter:f,onMouseLeave:m,onKeyDown:p,children:h,ref:y,...g}=fe("MenuDropdown",null,n),v=E.useRef(null),x=Pt(),T=r2({enabled:!x.hasSearch,opened:x.opened,getDropdown:()=>v.current}),w=dt(p,M=>{var _,z;T(M),!(M.defaultPrevented||x.hasSearch)&&(M.key==="ArrowUp"||M.key==="ArrowDown")&&(M.preventDefault(),(z=(_=v.current)==null?void 0:_.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||z.focus())}),C=dt(f,()=>(x.trigger==="hover"||x.trigger==="click-hover")&&x.openDropdown()),A=dt(m,()=>(x.trigger==="hover"||x.trigger==="click-hover")&&x.closeDropdown());return S.jsxs(Lt.Dropdown,{...g,onMouseEnter:C,onMouseLeave:A,role:"menu","aria-orientation":"vertical",ref:gt(y,v),...x.getStyles("dropdown",{className:r,style:i,styles:s,classNames:a,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:w,children:[x.withInitialFocusPlaceholder&&!x.hasSearch&&S.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),h]})});ih.classes=Hn;ih.displayName="@mantine/core/MenuDropdown";const sh=Rt(n=>{const{classNames:a,className:r,style:i,styles:s,vars:c,color:f,closeMenuOnClick:m,leftSection:p,rightSection:h,children:y,disabled:g,"data-disabled":v,ref:x,...T}=fe("MenuItem",null,n),w=Pt(),C=E.use(Ir),A=un(),{dir:M}=_a(),_=E.useRef(null),z=T,U=dt(z.onClick,()=>{v||(typeof m=="boolean"?m&&w.closeDropdownImmediately():w.closeOnItemClick&&w.closeDropdownImmediately())}),q=dt(z.onMouseMove,()=>{var I;if(!w.hasSearch)return;const ee=(I=_.current)==null?void 0:I.closest("[data-menu-dropdown]");ee&&ee.querySelectorAll("[data-menu-active]").forEach(V=>{V!==_.current&&V.closest("[data-menu-dropdown]")===ee&&V.removeAttribute("data-menu-active")})}),H=f?A.variantColorResolver({color:f,theme:A,variant:"light"}):void 0,k=f?Wn({color:f,theme:A}):null,P=dt(z.onKeyDown,ee=>{ee.key==="ArrowLeft"&&C&&(C.close(),C.focusParentItem())});return S.jsxs(kn,{onMouseDown:ee=>ee.preventDefault(),...T,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:r,style:i,styles:s,classNames:a}),ref:gt(_,x),role:"menuitem",disabled:g,"data-menu-item":!0,"data-disabled":g||v||void 0,"data-mantine-stop-propagation":!0,onClick:U,onMouseMove:q,onKeyDown:Em({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:M,orientation:"vertical",onKeyDown:P}),__vars:{"--menu-item-color":k!=null&&k.isThemeColor&&(k==null?void 0:k.shade)===void 0?`var(--mantine-color-${k.color}-6)`:H==null?void 0:H.color,"--menu-item-hover":H==null?void 0:H.hover},children:[w.alignItemsLabels==="all"&&S.jsx("div",{...w.getStyles("itemIndicator",{styles:s,classNames:a}),"data-placeholder":!0}),p&&S.jsx("div",{...w.getStyles("itemSection",{styles:s,classNames:a}),"data-position":"left",children:p}),y&&S.jsx("div",{...w.getStyles("itemLabel",{styles:s,classNames:a}),"data-menu-item-label":!0,children:y}),h&&S.jsx("div",{...w.getStyles("itemSection",{styles:s,classNames:a}),"data-position":"right",children:h})]})});sh.classes=Hn;sh.displayName="@mantine/core/MenuItem";const ch=Ee(n=>{const{classNames:a,className:r,style:i,styles:s,vars:c,...f}=fe("MenuLabel",null,n);return S.jsx(ge,{...Pt().getStyles("label",{className:r,style:i,styles:s,classNames:a}),...f})});ch.classes=Hn;ch.displayName="@mantine/core/MenuLabel";const l2=E.createContext(null);function i2(n){const{value:a,defaultValue:r,onChange:i,children:s}=fe("MenuRadioGroup",null,n),[c,f]=uo({value:a,defaultValue:r,finalValue:null,onChange:i});return S.jsx(l2,{value:{value:c,onChange:m=>f(m)},children:s})}i2.displayName="@mantine/core/MenuRadioGroup";function L4({size:n,style:a,...r}){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:{width:ie(n),height:ie(n),...a},"aria-hidden":!0,...r,children:S.jsx("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"currentColor"})})}const uh=Ee(n=>{const{classNames:a,className:r,style:i,styles:s,vars:c,color:f,closeMenuOnClick:m,rightSection:p,children:h,disabled:y,"data-disabled":g,value:v,checked:x,onChange:T,checkIcon:w,ref:C,...A}=fe("MenuRadioItem",null,n),M=Pt(),_=E.use(l2),z=x??(_?_.value===v:!1);return S.jsx(a2,{role:"menuitemradio",checked:z,indicator:w??M.checkIcon??S.jsx(L4,{size:5}),onSelect:()=>{z||(T?T(v):_&&_.onChange(v))},color:f,closeMenuOnClick:m,rightSection:p,disabled:y,dataDisabled:g,className:r,style:i,styles:s,classNames:a,buttonRef:C,others:A,children:h})});uh.classes=Hn;uh.displayName="@mantine/core/MenuRadioItem";const k4="[data-menu-item]:not([data-disabled])",H4="[data-menu-active]";function $d(n){return n==null?void 0:n.closest("[data-menu-dropdown]")}function U4(n){return n?Array.from(n.querySelectorAll(k4)).filter(a=>a.closest("[data-menu-dropdown]")===n):[]}function dm(n){n&&n.querySelectorAll(H4).forEach(a=>{a.closest("[data-menu-dropdown]")===n&&a.removeAttribute("data-menu-active")})}function Qs(n,a){dm(a),n&&(n.setAttribute("data-menu-active","true"),n.scrollIntoView({block:"nearest"}))}function qd(n){return n.findIndex(a=>a.hasAttribute("data-menu-active"))}const $4={clearSearchOnClose:!0},fh=Ee(n=>{const{classNames:a,styles:r,onKeyDown:i,onChange:s,size:c,clearSearchOnClose:f,ref:m,...p}=fe("MenuSearch",$4,n),h=Pt(),y=E.useRef(null),g=gt(m,y),v=E.useRef(s);v.current=s,E.useEffect(()=>h.registerSearch(),[h.registerSearch]),E.useEffect(()=>{f?h.searchExitClearRef.current=()=>{var C;(C=v.current)==null||C.call(v,{currentTarget:{value:""}})}:h.searchExitClearRef.current=null},[f,h.searchExitClearRef]),E.useEffect(()=>{h.opened||dm($d(y.current))},[h.opened]);const x=dt(s,C=>{dm($d(C.currentTarget))}),T=dt(i,C=>{if(C.defaultPrevented)return;const A=$d(C.currentTarget),M=U4(A);if(C.key==="ArrowDown"){if(C.preventDefault(),M.length===0)return;const _=qd(M);Qs(M[_>=M.length-1?h.loop?0:_:_+1]??null,A)}else if(C.key==="ArrowUp"){if(C.preventDefault(),M.length===0)return;const _=qd(M);Qs(M[_<=0?_===-1||h.loop?M.length-1:0:_-1]??null,A)}else if(C.key==="Home")C.preventDefault(),M.length>0&&Qs(M[0],A);else if(C.key==="End")C.preventDefault(),M.length>0&&Qs(M[M.length-1],A);else if(C.key==="Enter"){if(C.nativeEvent.isComposing||C.nativeEvent.keyCode===229)return;const _=M[qd(M)];_&&(C.preventDefault(),_.hasAttribute("data-sub-menu-item")?(_.focus(),_.dispatchEvent(new KeyboardEvent("keydown",{key:"ArrowRight",bubbles:!0}))):_.click())}}),w=h.getStyles("search");return S.jsx(mt,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:"search",size:c,...p,ref:g,classNames:[{input:w.className},a],styles:[{input:w.style},r],onKeyDown:T,onChange:x,__staticSelector:"Menu"})});fh.classes=Hn;fh.displayName="@mantine/core/MenuSearch";const dh=Ee(n=>{const{classNames:a,className:r,style:i,styles:s,vars:c,onMouseEnter:f,onMouseLeave:m,onPointerEnter:p,onPointerLeave:h,onKeyDown:y,children:g,ref:v,...x}=fe("MenuSubDropdown",null,n),T=E.useRef(null),w=Pt(),C=E.use(Ir),A=r2({enabled:!w.hasSearch,opened:(C==null?void 0:C.opened)??!1,getDropdown:()=>T.current}),M=dt(y,z=>{A(z),!z.ctrlKey&&!z.metaKey&&!z.altKey&&z.key.length===1&&z.key!==" "&&z.stopPropagation()}),_=C==null?void 0:C.getFloatingProps({onMouseEnter:f,onMouseLeave:m,onPointerEnter:p,onPointerLeave:h});return S.jsx(Lt.Dropdown,{...x,..._,role:"menu","aria-orientation":"vertical",ref:gt(v,T,C==null?void 0:C.setFloating),...w.getStyles("dropdown",{className:r,style:i,styles:s,classNames:a,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:M,children:g})});dh.classes=Hn;dh.displayName="@mantine/core/MenuSubDropdown";const mh=Rt(n=>{const{classNames:a,className:r,style:i,styles:s,vars:c,color:f,leftSection:m,rightSection:p,children:h,disabled:y,"data-disabled":g,closeMenuOnClick:v,ref:x,...T}=fe("MenuSubItem",null,n),w=Pt(),C=E.use(Ir),A=un(),{dir:M}=_a(),_=E.useRef(null),z=T,U=f?A.variantColorResolver({color:f,theme:A,variant:"light"}):void 0,q=f?Wn({color:f,theme:A}):null,H=dt(z.onKeyDown,I=>{I.key==="ArrowRight"&&(C==null||C.open(),C==null||C.focusFirstItem()),I.key==="ArrowLeft"&&(C!=null&&C.parentContext)&&(C.parentContext.close(),C.parentContext.focusParentItem())}),k=dt(z.onClick,()=>{!g&&v&&w.closeDropdownImmediately()}),P=dt(z.onMouseMove,()=>{var V;if(!w.hasSearch)return;const I=(V=_.current)==null?void 0:V.closest("[data-menu-dropdown]");I&&I.querySelectorAll("[data-menu-active]").forEach(X=>{X!==_.current&&X.closest("[data-menu-dropdown]")===I&&X.removeAttribute("data-menu-active")})}),ee=C==null?void 0:C.getReferenceProps({onMouseEnter:z.onMouseEnter,onMouseLeave:z.onMouseLeave,onPointerEnter:z.onPointerEnter,onPointerLeave:z.onPointerLeave});return S.jsxs(kn,{onMouseDown:I=>I.preventDefault(),...T,...ee,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:r,style:i,styles:s,classNames:a}),ref:gt(_,x,C==null?void 0:C.setReference),role:"menuitem",disabled:y,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":y||g||void 0,"data-mantine-stop-propagation":!0,onClick:k,onMouseMove:P,onKeyDown:Em({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:M,orientation:"vertical",onKeyDown:H}),__vars:{"--menu-item-color":q!=null&&q.isThemeColor&&(q==null?void 0:q.shade)===void 0?`var(--mantine-color-${q.color}-6)`:U==null?void 0:U.color,"--menu-item-hover":U==null?void 0:U.hover},children:[w.alignItemsLabels==="all"&&S.jsx("div",{...w.getStyles("itemIndicator",{styles:s,classNames:a}),"data-placeholder":!0}),m&&S.jsx("div",{...w.getStyles("itemSection",{styles:s,classNames:a}),"data-position":"left",children:m}),h&&S.jsx("div",{...w.getStyles("itemLabel",{styles:s,classNames:a}),"data-menu-item-label":!0,children:h}),S.jsx("div",{...w.getStyles("itemSection",{styles:s,classNames:a}),"data-position":"right",children:p||S.jsx(E1,{...w.getStyles("chevron"),size:14})})]})});mh.classes=Hn;mh.displayName="@mantine/core/MenuSubItem";function s2({children:n,refProp:a}){if(!Gv(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 Pt(),S.jsx(Lt.Target,{refProp:a,popupType:"menu",children:n})}s2.displayName="@mantine/core/MenuSubTarget";const q4={offset:0,position:"right-start",safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function ll(n){const{children:a,closeDelay:r,openDelay:i,position:s,safeAreaPolygon:c,...f}=fe("MenuSub",q4,n),m=Io(),[p,{open:h,close:y}]=TE(!1),g=E.use(Ir),v=Pt(),{dir:x}=_a(),T=Fm(x,s),w=(g==null?void 0:g.registerOpenSub)??v.registerOpenSub,C=E.useRef(null),A=E.useRef(null),M=E.useCallback(I=>{const V=A.current;return V&&V!==I&&V(),A.current=I,()=>{A.current===I&&(A.current=null)}},[]),_=E.useCallback(()=>{C.current=w(y),h()},[y,w,h]),z=E.useCallback(()=>{var I;(I=C.current)==null||I.call(C),C.current=null,y()},[y]),{context:U,refs:q}=Bc({placement:T,open:p,onOpenChange:I=>{I?_():z()}}),{getReferenceProps:H,getFloatingProps:k}=Hb([Lb(U,{handleClose:c?N5(typeof c=="object"?c:void 0):void 0,delay:{open:i,close:r}})]),P=()=>window.setTimeout(()=>{var I,V;(V=(I=document.getElementById(`${m}-dropdown`))==null?void 0:I.querySelectorAll("[data-menu-item]:not([data-disabled])")[0])==null||V.focus()},16),ee=()=>window.setTimeout(()=>{var I;(I=document.getElementById(`${m}-target`))==null||I.focus()},16);return S.jsx(Ir,{value:{opened:p,close:z,open:_,focusFirstItem:P,focusParentItem:ee,parentContext:g,setReference:q.setReference,setFloating:q.setFloating,getReferenceProps:H,getFloatingProps:k,registerOpenSub:M},children:S.jsx(Lt,{opened:p,withinPortal:!1,withArrow:!1,id:m,position:s,...f,children:a})})}ll.extend=n=>n;ll.displayName="@mantine/core/MenuSub";ll.Target=s2;ll.Dropdown=dh;ll.Item=mh;const Y4={refProp:"ref"};function c2(n){const{children:a,refProp:r,...i}=fe("MenuTarget",Y4,n),s=Fo(a);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 c=Pt(),f=s.props,m=dt(f.onClick,()=>{c.trigger==="click"?c.toggleDropdown():c.trigger==="click-hover"&&(c.setOpenedViaClick(!0),c.opened||c.openDropdown())}),p=dt(f.onMouseEnter,()=>(c.trigger==="hover"||c.trigger==="click-hover")&&c.openDropdown()),h=dt(f.onMouseLeave,()=>{(c.trigger==="hover"||c.trigger==="click-hover"&&!c.openedViaClick)&&c.closeDropdown()});return S.jsx(Lt.Target,{refProp:r,popupType:"menu",...i,children:E.cloneElement(s,{onClick:m,onMouseEnter:p,onMouseLeave:h,"data-expanded":c.opened?!0:void 0})})}c2.displayName="@mantine/core/MenuTarget";const G4={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:"with-indicators"},wt=Ee(n=>{const a=fe("Menu",G4,n),{children:r,onOpen:i,onClose:s,opened:c,defaultOpened:f,trapFocus:m,onChange:p,closeOnItemClick:h,loop:y,closeOnEscape:g,trigger:v,openDelay:x,closeDelay:T,classNames:w,styles:C,unstyled:A,variant:M,vars:_,menuItemTabIndex:z,keepMounted:U,withInitialFocusPlaceholder:q,attributes:H,onExitTransitionEnd:k,alignItemsLabels:P,checkIcon:ee,...I}=a,V=Re({name:"Menu",classes:Hn,props:a,classNames:w,styles:C,unstyled:A,attributes:H}),[X,N]=uo({value:c,defaultValue:f,finalValue:!1,onChange:p}),[te,D]=E.useState(!1),B=()=>{N(!1),D(!1),X&&(s==null||s())},$=()=>{N(!0),!X&&(i==null||i())},J=()=>{X?B():$()},{openDropdown:oe,closeDropdown:j}=H5({open:$,close:B,closeDelay:T,openDelay:x}),Y=E.useRef(null),W=E.useCallback(ze=>{const De=Y.current;return De&&De!==ze&&De(),Y.current=ze,()=>{Y.current===ze&&(Y.current=null)}},[]),ae=E.useRef(0),[se,ce]=E.useState(!1),ue=E.useCallback(()=>(ae.current+=1,ae.current===1&&ce(!0),()=>{ae.current-=1,ae.current===0&&ce(!1)}),[]),me=E.useRef(null),he=()=>{var ze;(ze=me.current)==null||ze.call(me),k==null||k()},Se=ze=>uE("[data-menu-item]","[data-menu-dropdown]",ze),{resolvedClassNames:Ne,resolvedStyles:ve}=Tc({classNames:w,styles:C,props:a});return S.jsx(N4,{value:{getStyles:V,opened:X,toggleDropdown:J,getItemIndex:Se,openedViaClick:te,setOpenedViaClick:D,closeOnItemClick:h,closeDropdown:v==="click"?B:j,openDropdown:v==="click"?$:oe,closeDropdownImmediately:B,loop:y,trigger:v,unstyled:A,menuItemTabIndex:z,withInitialFocusPlaceholder:q,registerOpenSub:W,hasSearch:se,registerSearch:ue,searchExitClearRef:me,alignItemsLabels:P,checkIcon:ee},children:S.jsx(Lt,{returnFocus:!0,...I,opened:X,onChange:J,defaultOpened:f,trapFocus:U?!1:m,closeOnEscape:g,__staticSelector:"Menu",classNames:Ne,styles:ve,unstyled:A,variant:M,keepMounted:U,onExitTransitionEnd:he,children:r})})});wt.displayName="@mantine/core/Menu";wt.classes=Hn;wt.Item=sh;wt.Label=ch;wt.Dropdown=ih;wt.Target=c2;wt.Divider=lh;wt.Search=fh;wt.Sub=ll;wt.CheckboxItem=rh;wt.CheckboxGroup=n2;wt.RadioItem=uh;wt.RadioGroup=i2;wt.ContextMenu=o2;function V4({reveal:n}){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:n?S.jsxs(S.Fragment,{children:[S.jsx("path",{fill:"none",d:"M0 0h256v256H0z"}),S.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16",d:"M48 40l160 176M154.91 157.6a40 40 0 01-53.82-59.2M135.53 88.71a40 40 0 0132.3 35.53"}),S.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16",d:"M208.61 169.1C230.41 149.58 240 128 240 128s-32-72-112-72a126 126 0 00-20.68 1.68M74 68.6C33.23 89.24 16 128 16 128s32 72 112 72a118.05 118.05 0 0054-12.6"})]}):S.jsxs(S.Fragment,{children:[S.jsx("path",{fill:"none",d:"M0 0h256v256H0z"}),S.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16",d:"M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72z"}),S.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"})]})})}var mm={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const X4={visibilityToggleIcon:V4,size:"sm"},u2=(n,{size:a})=>({root:{"--psi-icon-size":Xe(a,"psi-icon-size"),"--psi-button-size":Xe(a,"psi-button-size")}}),io=Ee(n=>{const a=fe(["Input","InputWrapper","PasswordInput"],X4,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,required:p,error:h,leftSection:y,disabled:g,id:v,variant:x,inputContainer:T,description:w,label:C,size:A,errorProps:M,descriptionProps:_,labelProps:z,withAsterisk:U,inputWrapperOrder:q,wrapperProps:H,radius:k,rightSection:P,rightSectionWidth:ee,rightSectionPointerEvents:I,leftSectionWidth:V,visible:X,defaultVisible:N,onVisibilityChange:te,visibilityToggleIcon:D,visibilityToggleButtonProps:B,rightSectionProps:$,leftSectionProps:J,leftSectionPointerEvents:oe,withErrorStyles:j,mod:Y,attributes:W,...ae}=a,se=Io(v),[ce,ue]=uo({value:X,defaultValue:N,finalValue:!1,onChange:te}),me=()=>ue(!ce),he=Re({name:"PasswordInput",classes:mm,props:a,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:W,vars:m,varsResolver:u2}),{resolvedClassNames:Se,resolvedStyles:Ne}=Tc({classNames:r,styles:c,props:a}),{styleProps:ve,rest:ze}=yi(ae),De=(M==null?void 0:M.id)||`${se}-error`,Ke=(_==null?void 0:_.id)||`${se}-description`,lt=`${h&&typeof h!="boolean"?De:""} ${w?Ke:""}`,Un=lt.trim().length>0?lt.trim():void 0,$n=S.jsx(Ra,{...he("visibilityToggle"),disabled:g,radius:k,"aria-pressed":ce,tabIndex:-1,"aria-label":"Toggle password visibility",...B,variant:(B==null?void 0:B.variant)??"subtle",color:"gray",unstyled:f,onTouchEnd:it=>{var Fe;it.preventDefault(),(Fe=B==null?void 0:B.onTouchEnd)==null||Fe.call(B,it),me()},onMouseDown:it=>{var Fe;it.preventDefault(),(Fe=B==null?void 0:B.onMouseDown)==null||Fe.call(B,it),me()},onKeyDown:it=>{var Fe;(Fe=B==null?void 0:B.onKeyDown)==null||Fe.call(B,it),it.key===" "&&(it.preventDefault(),me())},children:S.jsx(D,{reveal:ce})});return S.jsx(mt.Wrapper,{required:p,id:se,label:C,error:h,description:w,size:A,classNames:Se,styles:Ne,__staticSelector:"PasswordInput",__stylesApiProps:a,unstyled:f,withAsterisk:U,inputWrapperOrder:q,inputContainer:T,variant:x,labelProps:{...z,htmlFor:se},descriptionProps:{..._,id:Ke},errorProps:{...M,id:De},mod:Y,attributes:W,...he("root"),...ve,...H,children:S.jsx(mt,{component:"div",error:h,leftSection:y,size:A,classNames:{...Se,input:Ln(mm.input,Se==null?void 0:Se.input)},styles:Ne,radius:k,disabled:g,__staticSelector:"PasswordInput",__stylesApiProps:a,rightSectionWidth:ee,rightSection:P??$n,variant:x,unstyled:f,leftSectionWidth:V,rightSectionPointerEvents:I||"all",rightSectionProps:$,leftSectionProps:J,leftSectionPointerEvents:oe,withAria:!1,withErrorStyles:j,attributes:W,children:S.jsx("input",{required:p,"data-invalid":!!h||void 0,"data-with-left-section":!!y||void 0,...he("innerInput"),disabled:g,id:se,...ze,"aria-describedby":Un,autoComplete:ze.autoComplete||"off",type:ce?"text":"password"})})})});io.classes={...Wo.classes,...mm};io.varsResolver=u2;io.displayName="@mantine/core/PasswordInput";function Z4({offset:n,position:a,defaultOpened:r}){const[i,s]=E.useState(r),c=E.useRef(null),{x:f,y:m,elements:p,refs:h,update:y,placement:g}=Bc({placement:a,middleware:[Vm({crossAxis:!0,padding:5,rootBoundary:"document"})]}),v=g.includes("right")?n:a.includes("left")?n*-1:0,x=g.includes("bottom")?n:a.includes("top")?n*-1:0,T=E.useCallback(({clientX:w,clientY:C})=>{h.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:w,y:C,left:w+v,top:C+x,right:w,bottom:C}}})},[p.reference]);return E.useEffect(()=>{if(h.floating.current){const w=c.current;w.addEventListener("mousemove",T);const C=Ea(h.floating.current);return C.forEach(A=>{A.addEventListener("scroll",y)}),()=>{w.removeEventListener("mousemove",T),C.forEach(A=>{A.removeEventListener("scroll",y)})}}},[p.reference,h.floating.current,y,T,i]),{handleMouseMove:T,x:f,y:m,opened:i,setOpened:s,boundaryRef:c,floating:h.setFloating}}var Wc={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const K4={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Rc("popover")},f2=(n,{radius:a,color:r})=>({tooltip:{"--tooltip-radius":a===void 0?void 0:Et(a),"--tooltip-bg":r?On(r,n):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}),Pc=Ee(n=>{const a=fe("TooltipFloating",K4,n),{children:r,refProp:i,withinPortal:s,style:c,className:f,classNames:m,styles:p,unstyled:h,radius:y,color:g,label:v,offset:x,position:T,multiline:w,zIndex:C,disabled:A,defaultOpened:M,variant:_,vars:z,portalProps:U,attributes:q,ref:H,...k}=a,P=un(),ee=Re({name:"TooltipFloating",props:a,classes:Wc,className:f,style:c,classNames:m,styles:p,unstyled:h,attributes:q,rootSelector:"tooltip",vars:z,varsResolver:f2}),{handleMouseMove:I,x:V,y:X,opened:N,boundaryRef:te,floating:D,setOpened:B}=Z4({offset:x,position:T,defaultOpened:M}),$=Fo(r);if(!$)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 J=gt(te,Tm($),H),oe=$.props,j=W=>{var ae;(ae=oe.onMouseEnter)==null||ae.call(oe,W),I(W),B(!0)},Y=W=>{var ae;(ae=oe.onMouseLeave)==null||ae.call(oe,W),B(!1)};return S.jsxs(S.Fragment,{children:[S.jsx(Qr,{...U,withinPortal:s,children:S.jsx(ge,{...k,...ee("tooltip",{style:{...rb(c,P),zIndex:C,display:!A&&N?"block":"none",top:(X&&Math.round(X))??"",left:(V&&Math.round(V))??""}}),variant:_,ref:D,mod:{multiline:w},children:v})}),E.cloneElement($,{...oe,[i]:J,onMouseEnter:j,onMouseLeave:Y})]})});Pc.classes=Wc;Pc.varsResolver=f2;Pc.displayName="@mantine/core/TooltipFloating";const d2=E.createContext({withinGroup:!1}),Q4={openDelay:0,closeDelay:0};function hh(n){const{openDelay:a,closeDelay:r,children:i}=fe("TooltipGroup",Q4,n);return S.jsx(d2,{value:{withinGroup:!0},children:S.jsx(w5,{delay:{open:a,close:r},children:i})})}hh.displayName="@mantine/core/TooltipGroup";hh.extend=n=>n;function I4(n){if(n===void 0)return{shift:!0,flip:!0};const a={...n};return n.shift===void 0&&(a.shift=!0),n.flip===void 0&&(a.flip=!0),a}function F4(n){const a=I4(n.middlewares),r=[Ob(n.offset)];return a.shift&&r.push(Vm(typeof a.shift=="boolean"?{padding:8}:{padding:8,...a.shift})),a.flip&&r.push(typeof a.flip=="boolean"?um():um(a.flip)),r.push(Nb({element:n.arrowRef,padding:n.arrowOffset})),a.inline?r.push(typeof a.inline=="boolean"?ci():ci(a.inline)):n.inline&&r.push(ci()),r}function J4(n){var U,q,H;const[a,r]=E.useState(n.defaultOpened),i=typeof n.opened=="boolean"?n.opened:a,s=E.use(d2).withinGroup,c=Io(),f=E.useCallback(k=>{r(k),k&&C(c)},[c]),{x:m,y:p,context:h,refs:y,placement:g,middlewareData:{arrow:{x:v,y:x}={}}}=Bc({strategy:n.strategy,placement:n.position,open:i,onOpenChange:f,middleware:F4(n),whileElementsMounted:cm}),{delay:T,currentId:w,setCurrentId:C}=E5(h,{id:c}),{getReferenceProps:A,getFloatingProps:M}=Hb([Lb(h,{enabled:(U=n.events)==null?void 0:U.hover,delay:s?T:{open:n.openDelay,close:n.closeDelay},mouseOnly:!((q=n.events)!=null&&q.touch)}),M5(h,{enabled:(H=n.events)==null?void 0:H.focus,visibleOnly:!0}),z5(h,{role:"tooltip"}),A5(h,{enabled:typeof n.opened>"u"})]),_=E.useRef(g);Ca(()=>{var k;_.current!==g&&(_.current=g,(k=n.onPositionChange)==null||k.call(n,g))},[g]);const z=i&&w&&w!==c;return{x:m,y:p,arrowX:v,arrowY:x,reference:y.setReference,floating:y.setFloating,getFloatingProps:M,getReferenceProps:A,isGroupPhase:z,opened:i,placement:g}}const W4={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:Rc("popover"),middlewares:{flip:!0,shift:!0,inline:!1}},m2=(n,{radius:a,color:r,variant:i,autoContrast:s})=>{const c=n.variantColorResolver({theme:n,color:r||n.primaryColor,autoContrast:s,variant:i||"filled"});return{tooltip:{"--tooltip-radius":a===void 0?void 0:Et(a),"--tooltip-bg":r?c.background:void 0,"--tooltip-color":r?c.color:void 0}}},il=Ee(n=>{const a=fe("Tooltip",W4,n),{children:r,position:i,refProp:s,label:c,openDelay:f,closeDelay:m,onPositionChange:p,opened:h,defaultOpened:y,withinPortal:g,radius:v,color:x,classNames:T,styles:w,unstyled:C,style:A,className:M,withArrow:_,arrowSize:z,arrowOffset:U,arrowRadius:q,arrowPosition:H,offset:k,transitionProps:P,multiline:ee,events:I,zIndex:V,disabled:X,onClick:N,onMouseEnter:te,onMouseLeave:D,inline:B,variant:$,keepMounted:J,vars:oe,portalProps:j,mod:Y,floatingStrategy:W,middlewares:ae,autoContrast:se,attributes:ce,target:ue,ref:me,...he}=a,{dir:Se}=_a(),Ne=E.useRef(null),ve=J4({position:Fm(Se,i),closeDelay:m,openDelay:f,onPositionChange:p,opened:h,defaultOpened:y,events:I,arrowRef:Ne,arrowOffset:U,offset:typeof k=="number"?k+(_?z/2:0):k,inline:B,strategy:W,middlewares:ae});E.useEffect(()=>{const Fe=ue instanceof HTMLElement?ue:typeof ue=="string"?document.querySelector(ue):(ue==null?void 0:ue.current)||null;Fe&&ve.reference(Fe)},[ue,ve]);const ze=Re({name:"Tooltip",props:a,classes:Wc,className:M,style:A,classNames:T,styles:w,unstyled:C,attributes:ce,rootSelector:"tooltip",vars:oe,varsResolver:m2}),De=Fo(r);if(!ue&&!De)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 Ke=ze("tooltip"),lt=H==="merge"&&_?Zb({position:ve.placement,dir:Se}):void 0;if(ue){const Fe=cv(P,{duration:100,transition:"fade"});return S.jsx(S.Fragment,{children:S.jsx(Qr,{...j,withinPortal:g,children:S.jsx(Vo,{...Fe,keepMounted:J,mounted:!X&&!!ve.opened,duration:ve.isGroupPhase?10:Fe.duration,children:ea=>S.jsxs(ge,{...he,"data-fixed":W==="fixed"||void 0,variant:$,mod:[{multiline:ee},Y],...Ke,...ve.getFloatingProps({ref:ve.floating,className:Ke.className,style:{...Ke.style,...ea,...lt,zIndex:V,top:ve.y??0,left:ve.x??0}}),children:[c,S.jsx(dc,{ref:Ne,arrowX:ve.arrowX,arrowY:ve.arrowY,visible:_,position:ve.placement,arrowSize:z,arrowOffset:U,arrowRadius:q,arrowPosition:H,...ze("arrow")})]})})})})}const Un=De.props,$n=gt(ve.reference,Tm(De),me),it=cv(P,{duration:100,transition:"fade"});return S.jsxs(S.Fragment,{children:[S.jsx(Qr,{...j,withinPortal:g,children:S.jsx(Vo,{...it,keepMounted:J,mounted:!X&&!!ve.opened,duration:ve.isGroupPhase?10:it.duration,children:Fe=>S.jsxs(ge,{...he,"data-fixed":W==="fixed"||void 0,variant:$,mod:[{multiline:ee},Y],...ve.getFloatingProps({ref:ve.floating,className:ze("tooltip").className,style:{...ze("tooltip").style,...Fe,...lt,zIndex:V,top:ve.y??0,left:ve.x??0}}),children:[c,S.jsx(dc,{ref:Ne,arrowX:ve.arrowX,arrowY:ve.arrowY,visible:_,position:ve.placement,arrowSize:z,arrowOffset:U,arrowRadius:q,arrowPosition:H,...ze("arrow")})]})})}),E.cloneElement(De,ve.getReferenceProps({onClick:N,onMouseEnter:te,onMouseLeave:D,onMouseMove:a.onMouseMove,onPointerDown:a.onPointerDown,onPointerEnter:a.onPointerEnter,...Un,className:Ln(M,Un.className),[s]:$n}))]})});il.classes=Wc;il.varsResolver=m2;il.displayName="@mantine/core/Tooltip";il.Floating=Pc;il.Group=hh;function h2(n){if(n!==void 0)return typeof n=="number"?ie(n):n}function P4({spacing:n,verticalSpacing:a,cols:r,minColWidth:i,autoRows:s,selector:c}){var g;const f=un(),m=a===void 0?n:a,p=i!==void 0,h=Wr({"--sg-spacing-x":cn(Xr(n)),"--sg-spacing-y":cn(Xr(m)),"--sg-auto-rows":s,...p?{"--sg-min-col-width":h2(i)}:{"--sg-cols":(g=Xr(r))==null?void 0:g.toString()}}),y=It(f.breakpoints).reduce((v,x)=>(v[x]||(v[x]={}),typeof n=="object"&&n[x]!==void 0&&(v[x]["--sg-spacing-x"]=cn(n[x])),typeof m=="object"&&m[x]!==void 0&&(v[x]["--sg-spacing-y"]=cn(m[x])),!p&&typeof r=="object"&&r[x]!==void 0&&(v[x]["--sg-cols"]=r[x]),v),{});return S.jsx(Ac,{styles:h,media:cE(It(y),f.breakpoints).filter(v=>It(y[v.value]).length>0).map(v=>({query:`(min-width: ${f.breakpoints[v.value]})`,styles:y[v.value]})),selector:c})}function Yd(n){return typeof n=="object"&&n!==null?It(n):[]}function eR(n){return n.sort((a,r)=>fi(a)-fi(r))}function tR({spacing:n,verticalSpacing:a,cols:r,minColWidth:i}){return eR(Array.from(new Set([...Yd(n),...Yd(a),...i!==void 0?[]:Yd(r)])))}function nR({spacing:n,verticalSpacing:a,cols:r,minColWidth:i,autoRows:s,selector:c}){var g;const f=a===void 0?n:a,m=i!==void 0,p=Wr({"--sg-spacing-x":cn(Xr(n)),"--sg-spacing-y":cn(Xr(f)),"--sg-auto-rows":s,...m?{"--sg-min-col-width":h2(i)}:{"--sg-cols":(g=Xr(r))==null?void 0:g.toString()}}),h=tR({spacing:n,verticalSpacing:a,cols:r,minColWidth:i}),y=h.reduce((v,x)=>(v[x]||(v[x]={}),typeof n=="object"&&n[x]!==void 0&&(v[x]["--sg-spacing-x"]=cn(n[x])),typeof f=="object"&&f[x]!==void 0&&(v[x]["--sg-spacing-y"]=cn(f[x])),!m&&typeof r=="object"&&r[x]!==void 0&&(v[x]["--sg-cols"]=r[x]),v),{});return S.jsx(Ac,{styles:p,container:h.map(v=>({query:`simple-grid (min-width: ${v})`,styles:y[v]})),selector:c})}var p2={container:"m_925c2d2c",root:"m_2415a157"};const aR={cols:1,spacing:"md",type:"media"},ph=Ee(n=>{const a=fe("SimpleGrid",aR,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,cols:p,verticalSpacing:h,spacing:y,type:g,minColWidth:v,autoFlow:x,autoRows:T,attributes:w,...C}=a,A=Re({name:"SimpleGrid",classes:p2,props:a,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:w,vars:m}),M=Bm(),_=v!==void 0?x||"auto-fill":void 0;return g==="container"?S.jsxs(S.Fragment,{children:[S.jsx(nR,{...a,selector:`.${M}`}),S.jsx("div",{...A("container"),children:S.jsx(ge,{...A("root",{className:M}),...C,"data-auto-cols":_})})]}):S.jsxs(S.Fragment,{children:[S.jsx(P4,{...a,selector:`.${M}`}),S.jsx(ge,{...A("root",{className:M}),...C,"data-auto-cols":_})]})});ph.classes=p2;ph.displayName="@mantine/core/SimpleGrid";var g2={root:"m_6d731127"};const oR={gap:"md",align:"stretch",justify:"flex-start"},y2=(n,{gap:a,align:r,justify:i})=>({root:{"--stack-gap":cn(a),"--stack-align":r,"--stack-justify":i}}),Wt=Ee(n=>{const a=fe("Stack",oR,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,align:p,justify:h,gap:y,variant:g,attributes:v,...x}=a;return S.jsx(ge,{...Re({name:"Stack",props:a,classes:g2,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:v,vars:m,varsResolver:y2})("root"),variant:g,...x})});Wt.classes=g2;Wt.varsResolver=y2;Wt.displayName="@mantine/core/Stack";const er=Ee(n=>S.jsx(Wo,{component:"input",...fe(["Input","InputWrapper","TextInput"],null,n),__staticSelector:"TextInput"}));er.classes=Wo.classes;er.displayName="@mantine/core/TextInput";var v2={root:"m_7341320d"};const b2=(n,{size:a,radius:r,variant:i,gradient:s,color:c,autoContrast:f})=>{const m=n.variantColorResolver({color:c||n.primaryColor,theme:n,gradient:s,variant:i||"filled",autoContrast:f});return{root:{"--ti-size":Xe(a,"ti-size"),"--ti-radius":r===void 0?void 0:Et(r),"--ti-bg":c||i?m.background:void 0,"--ti-color":c||i?m.color:void 0,"--ti-bd":c||i?m.border:void 0}}},eu=Ee(n=>{const a=fe("ThemeIcon",null,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,vars:m,autoContrast:p,attributes:h,...y}=a;return S.jsx(ge,{...Re({name:"ThemeIcon",classes:v2,props:a,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:h,vars:m,varsResolver:b2})("root"),...y})});eu.classes=v2;eu.varsResolver=b2;eu.displayName="@mantine/core/ThemeIcon";const rR=["h1","h2","h3","h4","h5","h6"],lR=["xs","sm","md","lg","xl"];function iR(n,a){const r=a!==void 0?a:`h${n}`;return rR.includes(r)?{fontSize:`var(--mantine-${r}-font-size)`,fontWeight:`var(--mantine-${r}-font-weight)`,lineHeight:`var(--mantine-${r}-line-height)`}:lR.includes(r)?{fontSize:`var(--mantine-font-size-${r})`,fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}:{fontSize:ie(r),fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}}var x2={root:"m_8a5d1357"};const sR={order:1},S2=(n,{order:a,size:r,lineClamp:i,textWrap:s})=>{const c=iR(a||1,r);return{root:{"--title-fw":c.fontWeight,"--title-lh":c.lineHeight,"--title-fz":c.fontSize,"--title-line-clamp":typeof i=="number"?i.toString():void 0,"--title-text-wrap":s}}},tu=Ee(n=>{const a=fe("Title",sR,n),{classNames:r,className:i,style:s,styles:c,unstyled:f,order:m,vars:p,size:h,variant:y,lineClamp:g,textWrap:v,mod:x,attributes:T,...w}=a,C=Re({name:"Title",props:a,classes:x2,className:i,style:s,classNames:r,styles:c,unstyled:f,attributes:T,vars:p,varsResolver:S2});return[1,2,3,4,5,6].includes(m)?S.jsx(ge,{...C("root"),component:`h${m}`,variant:y,mod:[{order:m,"data-line-clamp":typeof g=="number"},x],size:h,...w}):null});tu.classes=x2;tu.varsResolver=S2;tu.displayName="@mantine/core/Title";const cR=["#f1edff","#dcd3ff","#b5a3f5","#8d70ed","#6c47e6","#5a2fe2","#5023e0","#4119c7","#3915b3","#2f0f9e"],uR={primaryColor:"brand",colors:{brand:cR},fontFamily:"Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",defaultRadius:"md",headings:{fontWeight:"650"}};/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var fR={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"}};/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ht=(n,a,r,i)=>{const s=E.forwardRef(({color:c="currentColor",size:f=24,stroke:m=2,title:p,className:h,children:y,...g},v)=>E.createElement("svg",{ref:v,...fR[n],width:f,height:f,className:["tabler-icon",`tabler-icon-${a}`,h].join(" "),strokeWidth:m,stroke:c,...g},[p&&E.createElement("title",{key:"svg-title"},p),...i.map(([x,T])=>E.createElement(x,T)),...Array.isArray(y)?y:[y]]));return s.displayName=`${r}`,s};/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const dR=[["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 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],w2=Ht("outline","alert-triangle","AlertTriangle",dR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const mR=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],E2=Ht("outline","check","Check",mR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const hR=[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],pR=Ht("outline","copy","Copy",hR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const gR=[["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],yR=Ht("outline","dots-vertical","DotsVertical",gR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const vR=[["path",{d:"M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],bR=Ht("outline","dots","Dots",vR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const xR=[["path",{d:"M5 9l14 0",key:"svg-0"}],["path",{d:"M5 15l14 0",key:"svg-1"}],["path",{d:"M11 4l-4 16",key:"svg-2"}],["path",{d:"M17 4l-4 16",key:"svg-3"}]],R2=Ht("outline","hash","Hash",xR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const SR=[["path",{d:"M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0",key:"svg-0"}],["path",{d:"M15 9h.01",key:"svg-1"}]],Yo=Ht("outline","key","Key",SR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const wR=[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]],ER=Ht("outline","link","Link",wR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const RR=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],C2=Ht("outline","lock","Lock",RR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const CR=[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]],TR=Ht("outline","logout","Logout",CR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const AR=[["path",{d:"M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5",key:"svg-0"}]],_R=Ht("outline","paperclip","Paperclip",AR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const MR=[["path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5",key:"svg-0"}]],T2=Ht("outline","rotate-clockwise","RotateClockwise",MR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const jR=[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],zR=Ht("outline","search","Search",jR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const OR=[["path",{d:"M10 14l11 -11",key:"svg-0"}],["path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",key:"svg-1"}]],NR=Ht("outline","send","Send",OR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const DR=[["path",{d:"M12 3a12 12 0 0 0 8.5 3a12 12 0 0 1 -8.5 15a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3",key:"svg-0"}],["path",{d:"M11 11a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M12 12l0 2.5",key:"svg-2"}]],A2=Ht("outline","shield-lock","ShieldLock",DR);/**
 * @license @tabler/icons-react v3.44.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const BR=[["path",{d:"M17 8v-3a1 1 0 0 0 -1 -1h-10a2 2 0 0 0 0 4h12a1 1 0 0 1 1 1v3m0 4v3a1 1 0 0 1 -1 1h-12a2 2 0 0 1 -2 -2v-12",key:"svg-0"}],["path",{d:"M20 12v4h-4a2 2 0 0 1 0 -4h4",key:"svg-1"}]],LR=Ht("outline","wallet","Wallet",BR);function _2(n){return n.replace(/[^a-z0-9]/gi,"").slice(0,2).toUpperCase()||"?"}function kR(n){const a=new Date(n);return`${String(a.getHours()).padStart(2,"0")}:${String(a.getMinutes()).padStart(2,"0")}`}function HR({room:n,active:a,onClick:r}){return S.jsx(kn,{onClick:r,p:"xs",style:{borderRadius:"var(--mantine-radius-md)",backgroundColor:a?"var(--mantine-color-dark-6)":"transparent"},children:S.jsxs(nt,{gap:"sm",wrap:"nowrap",children:[S.jsx(fo,{radius:"md",size:42,color:a?"brand":"gray",children:_2(n.name)}),S.jsxs(ge,{style:{flex:1,minWidth:0},children:[S.jsxs(nt,{justify:"space-between",gap:4,wrap:"nowrap",children:[S.jsxs(nt,{gap:4,wrap:"nowrap",style:{minWidth:0},children:[n.encrypted?S.jsx(C2,{size:13,style:{flexShrink:0,opacity:.6}}):S.jsx(R2,{size:13,style:{flexShrink:0,opacity:.6}}),S.jsx($e,{size:"sm",fw:600,truncate:!0,children:n.name})]}),S.jsx($e,{size:"xs",c:"dimmed",style:{flexShrink:0},children:kR(n.lastTs)})]}),S.jsxs(nt,{justify:"space-between",gap:4,wrap:"nowrap",children:[S.jsx($e,{size:"xs",c:"dimmed",truncate:!0,children:n.lastMessage}),n.unread>0&&S.jsx(Kc,{size:"sm",circle:!0,variant:"filled",color:"brand",children:n.unread})]})]})]})})}function UR({user:n,rooms:a,activeId:r,onSelect:i,onLogout:s}){const[c,f]=E.useState(""),m=c.trim().toLowerCase(),p=m?a.filter(h=>h.name.toLowerCase().includes(m)||h.messages.some(y=>y.body.toLowerCase().includes(m))):a;return S.jsxs(Wt,{h:"100%",gap:0,children:[S.jsxs(nt,{justify:"space-between",px:"sm",py:"xs",wrap:"nowrap",children:[S.jsxs(nt,{gap:"xs",wrap:"nowrap",style:{minWidth:0},children:[S.jsx(fo,{radius:"xl",size:34,color:"brand",children:_2(n.handle)}),S.jsx($e,{fw:600,size:"sm",truncate:!0,children:n.handle})]}),S.jsxs(wt,{position:"bottom-end",withinPortal:!0,children:[S.jsx(wt.Target,{children:S.jsx(kn,{c:"dimmed",children:S.jsx(bR,{size:18})})}),S.jsx(wt.Dropdown,{children:S.jsx(wt.Item,{leftSection:S.jsx(TR,{size:15}),onClick:s,children:"Desconectar"})})]})]}),S.jsx(ge,{px:"sm",pb:"sm",children:S.jsx(er,{value:c,onChange:h=>f(h.currentTarget.value),placeholder:"Buscar rooms, usuarios, mensajes…",leftSection:S.jsx(zR,{size:16}),radius:"md",size:"sm"})}),S.jsx(Xo,{color:"dark.4"}),S.jsx(Jo,{style:{flex:1},type:"scroll",children:S.jsxs(Wt,{gap:2,p:6,children:[p.map(h=>S.jsx(HR,{room:h,active:h.id===r,onClick:()=>i(h.id)},h.id)),p.length===0&&S.jsx($e,{c:"dimmed",size:"sm",ta:"center",mt:"md",children:"Sin resultados"})]})})]})}class nu extends Error{constructor(r,i){super(r);de(this,"status");this.status=i}}async function ba(n,a){const r=await fetch(n,{credentials:"same-origin",headers:{"Content-Type":"application/json"},...a}),i=await r.text();let s=null;if(i)try{s=JSON.parse(i)}catch{s=i}if(!r.ok){const c=s&&typeof s=="object"&&"error"in s?String(s.error):`HTTP ${r.status}`;throw new nu(c,r.status)}return s}function pv(n){return{id:n.id,name:n.name||n.subject,encrypted:n.encrypt,lastMessage:"",lastTs:0,unread:0,messages:[]}}function $R(n){return{id:n.id,sender:n.sender,body:n.body,ts:n.ts,mine:n.mine}}const Zo={register:(n,a,r)=>ba("/api/register",{method:"POST",body:JSON.stringify({token:n,sign_pub:a,kex_pub:r})}),session:(n,a)=>ba("/api/session",{method:"POST",body:JSON.stringify({handle:a,sign_pub:n.signPub,sign_priv:n.signPriv,kex_pub:n.kexPub,kex_priv:n.kexPriv})}),login:n=>ba("/api/login",{method:"POST",body:JSON.stringify({passphrase:n})}),logout:()=>ba("/api/logout",{method:"POST"}),me:()=>ba("/api/me"),listRooms:async()=>(await ba("/api/rooms")).map(pv),createRoom:async(n,a=!0)=>{const r=await ba("/api/rooms",{method:"POST",body:JSON.stringify({subject:n,encrypted:a})});return pv(r)},join:n=>ba(`/api/rooms/${encodeURIComponent(n)}/join`,{method:"POST"}),send:(n,a)=>ba(`/api/rooms/${encodeURIComponent(n)}/send`,{method:"POST",body:JSON.stringify({body:a})})};function qR(n,a,r){const i=new EventSource(`/api/rooms/${encodeURIComponent(n)}/stream`);return i.onmessage=s=>{try{const c=JSON.parse(s.data);a($R(c))}catch{}},()=>i.close()}function M2(n){return n.replace(/[^a-z0-9]/gi,"").slice(0,2).toUpperCase()||"?"}function YR(n){const a=new Date(n);return`${String(a.getHours()).padStart(2,"0")}:${String(a.getMinutes()).padStart(2,"0")}`}function GR({msg:n}){return S.jsxs(nt,{align:"flex-start",gap:"sm",wrap:"nowrap",children:[S.jsx(fo,{radius:"xl",size:36,color:n.mine?"brand":"gray",children:M2(n.sender)}),S.jsxs(ge,{style:{minWidth:0},children:[S.jsxs(nt,{gap:8,align:"baseline",children:[S.jsx($e,{size:"sm",fw:600,c:n.mine?"brand.4":void 0,children:n.sender}),S.jsx($e,{size:"xs",c:"dimmed",children:YR(n.ts)})]}),S.jsx($e,{size:"sm",style:{wordBreak:"break-word"},children:n.body})]})]})}function VR({room:n}){const[a,r]=E.useState(""),[i,s]=E.useState([]),[c,f]=E.useState(null),m=E.useRef(null);if(E.useEffect(()=>(s([]),f(null),n?qR(n.id,y=>{s(g=>g.some(v=>v.id===y.id)?g:[...g,y])}):void 0),[n==null?void 0:n.id]),E.useEffect(()=>{var h;(h=m.current)==null||h.scrollTo({top:m.current.scrollHeight})},[n==null?void 0:n.id,i.length]),!n)return S.jsx(In,{h:"100%",children:S.jsx($e,{c:"dimmed",children:"Selecciona una conversación"})});const p=async()=>{const h=a.trim();if(h){r(""),f(null);try{await Zo.send(n.id,h)}catch(y){r(h),f(y instanceof Error?y.message:"No se pudo enviar")}}};return S.jsxs(Wt,{h:"100vh",gap:0,children:[S.jsxs(nt,{justify:"space-between",px:"md",py:"xs",wrap:"nowrap",children:[S.jsxs(nt,{gap:"sm",wrap:"nowrap",style:{minWidth:0},children:[S.jsx(fo,{radius:"md",size:38,color:"brand",children:M2(n.name)}),S.jsxs(ge,{style:{minWidth:0},children:[S.jsxs(nt,{gap:6,wrap:"nowrap",children:[S.jsx($e,{fw:650,truncate:!0,children:n.name}),n.encrypted?S.jsx(il,{label:"Cifrada de extremo a extremo",children:S.jsx(C2,{size:14,style:{opacity:.6}})}):S.jsx(R2,{size:14,style:{opacity:.6}})]}),S.jsx($e,{size:"xs",c:"dimmed",children:n.encrypted?"cifrada · E2E":"abierta · cleartext"})]})]}),S.jsx(Ra,{variant:"subtle",color:"gray",children:S.jsx(yR,{size:18})})]}),S.jsx(Xo,{color:"dark.4"}),S.jsx(Jo,{style:{flex:1},viewportRef:m,children:S.jsx(Wt,{gap:"lg",p:"md",children:i.map(h=>S.jsx(GR,{msg:h},h.id))})}),S.jsx(Xo,{color:"dark.4"}),c&&S.jsx($e,{c:"red",size:"xs",px:"sm",pt:4,children:c}),S.jsxs(nt,{p:"sm",gap:"xs",wrap:"nowrap",children:[S.jsx(Ra,{variant:"subtle",color:"gray",size:"lg",children:S.jsx(_R,{size:18})}),S.jsx(er,{style:{flex:1},radius:"xl",placeholder:`Mensaje a ${n.name}`,value:a,onChange:h=>r(h.currentTarget.value),onKeyDown:h=>h.key==="Enter"&&void p()}),S.jsx(Ra,{size:"lg",radius:"xl",variant:"filled",color:"brand",onClick:()=>void p(),disabled:!a.trim(),children:S.jsx(NR,{size:18})})]})]})}function XR({user:n,onLogout:a}){const[r,i]=E.useState([]),[s,c]=E.useState(""),[f,m]=E.useState(!0),[p,h]=E.useState(null),y=E.useCallback(()=>{m(!0),Zo.listRooms().then(x=>{i(x),c(T=>{var w;return T||((w=x[0])==null?void 0:w.id)||""}),h(null)}).catch(x=>h((x==null?void 0:x.message)??"No se pudieron cargar las rooms")).finally(()=>m(!1))},[]);E.useEffect(()=>{y()},[y]);const g=r.find(x=>x.id===s);let v=S.jsx(VR,{room:g});return f&&r.length===0?v=S.jsx(In,{h:"100%",children:S.jsx(Bn,{color:"brand"})}):p?v=S.jsx(In,{h:"100%",children:S.jsxs(Wt,{align:"center",gap:"sm",children:[S.jsx($e,{c:"red",size:"sm",children:p}),S.jsx(pt,{variant:"light",color:"brand",onClick:y,children:"Reintentar"})]})}):r.length===0&&(v=S.jsx(In,{h:"100%",children:S.jsx($e,{c:"dimmed",children:"No perteneces a ninguna room todavía"})})),S.jsxs(eh,{h:"100vh",w:"100vw",style:{overflow:"hidden"},children:[S.jsx(ge,{w:320,h:"100%",bg:"dark.8",style:{borderRight:"1px solid var(--mantine-color-dark-4)",flexShrink:0},children:S.jsx(UR,{user:n,rooms:r,activeId:s,onSelect:c,onLogout:a})}),S.jsx(ge,{flex:1,h:"100%",bg:"dark.7",style:{minWidth:0},children:v})]})}function so({width:n=460,children:a}){return S.jsx(In,{h:"100vh",bg:"dark.9",p:"md",children:S.jsx(rl,{w:n,p:"xl",radius:"lg",withBorder:!0,bg:"dark.7",children:S.jsx(Wt,{gap:"lg",children:a})})})}function Ko({icon:n,title:a,subtitle:r}){return S.jsxs(Wt,{align:"center",gap:"xs",children:[S.jsx(eu,{size:56,radius:"xl",variant:"light",color:"brand",children:n}),S.jsx(tu,{order:3,ta:"center",children:a}),r&&S.jsx($e,{c:"dimmed",size:"sm",ta:"center",children:r})]})}function j2(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in n&&n.BYTES_PER_ELEMENT===1}function Fn(n,a=""){if(typeof n!="number"){const r=a&&`"${a}" `;throw new TypeError(`${r}expected number, got ${typeof n}`)}if(!Number.isSafeInteger(n)||n<0){const r=a&&`"${a}" `;throw new RangeError(`${r}expected integer >= 0, got ${n}`)}}function wn(n,a,r=""){const i=j2(n),s=n==null?void 0:n.length,c=a!==void 0;if(!i||c&&s!==a){const f=r&&`"${r}" `,m=c?` of length ${a}`:"",p=i?`length=${s}`:`type=${typeof n}`,h=f+"expected Uint8Array"+m+", got "+p;throw i?new RangeError(h):new TypeError(h)}return n}function au(n){if(typeof n!="function"||typeof n.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(Fn(n.outputLen),Fn(n.blockLen),n.outputLen<1)throw new Error('"outputLen" must be >= 1');if(n.blockLen<1)throw new Error('"blockLen" must be >= 1')}function mc(n,a=!0){if(n.destroyed)throw new Error("Hash instance has been destroyed");if(a&&n.finished)throw new Error("Hash#digest() has already been called")}function z2(n,a){wn(n,void 0,"digestInto() output");const r=a.outputLen;if(n.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function co(...n){for(let a=0;a<n.length;a++)n[a].fill(0)}function ac(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function Xn(n,a){return n<<32-a|n>>>a}const O2=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",ZR=Array.from({length:256},(n,a)=>a.toString(16).padStart(2,"0"));function Ho(n){if(wn(n),O2)return n.toHex();let a="";for(let r=0;r<n.length;r++)a+=ZR[n[r]];return a}const xa={_0:48,_9:57,A:65,F:70,a:97,f:102};function gv(n){if(n>=xa._0&&n<=xa._9)return n-xa._0;if(n>=xa.A&&n<=xa.F)return n-(xa.A-10);if(n>=xa.a&&n<=xa.f)return n-(xa.a-10)}function gh(n){if(typeof n!="string")throw new TypeError("hex string expected, got "+typeof n);if(O2)try{return Uint8Array.fromHex(n)}catch(s){throw s instanceof SyntaxError?new RangeError(s.message):s}const a=n.length,r=a/2;if(a%2)throw new RangeError("hex string expected, got unpadded hex of length "+a);const i=new Uint8Array(r);for(let s=0,c=0;s<r;s++,c+=2){const f=gv(n.charCodeAt(c)),m=gv(n.charCodeAt(c+1));if(f===void 0||m===void 0){const p=n[c]+n[c+1];throw new RangeError('hex string expected, got non-hex character "'+p+'" at index '+c)}i[s]=f*16+m}return i}function KR(n){if(typeof n!="string")throw new TypeError("string expected");return new Uint8Array(new TextEncoder().encode(n))}function yv(n,a=""){return typeof n=="string"?KR(n):wn(n,void 0,a)}function N2(...n){let a=0;for(let i=0;i<n.length;i++){const s=n[i];wn(s),a+=s.length}const r=new Uint8Array(a);for(let i=0,s=0;i<n.length;i++){const c=n[i];r.set(c,s),s+=c.length}return r}function QR(n,a){if(a!==void 0&&{}.toString.call(a)!=="[object Object]")throw new TypeError("options must be object or undefined");return Object.assign(n,a)}function D2(n,a={}){const r=(s,c)=>n(c).update(s).digest(),i=n(void 0);return r.outputLen=i.outputLen,r.blockLen=i.blockLen,r.canXOF=i.canXOF,r.create=s=>n(s),Object.assign(r,a),Object.freeze(r)}function B2(n=32){Fn(n,"bytesLength");const a=typeof globalThis=="object"?globalThis.crypto:null;if(typeof(a==null?void 0:a.getRandomValues)!="function")throw new Error("crypto.getRandomValues must be defined");if(n>65536)throw new RangeError(`"bytesLength" expected <= 65536, got ${n}`);return a.getRandomValues(new Uint8Array(n))}const L2=n=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,n])});class vv{constructor(a,r){de(this,"oHash");de(this,"iHash");de(this,"blockLen");de(this,"outputLen");de(this,"canXOF",!1);de(this,"finished",!1);de(this,"destroyed",!1);if(au(a),wn(r,void 0,"key"),this.iHash=a.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,s=new Uint8Array(i);s.set(r.length>i?a.create().update(r).digest():r);for(let c=0;c<s.length;c++)s[c]^=54;this.iHash.update(s),this.oHash=a.create();for(let c=0;c<s.length;c++)s[c]^=106;this.oHash.update(s),co(s)}update(a){return mc(this),this.iHash.update(a),this}digestInto(a){mc(this),z2(a,this),this.finished=!0;const r=a.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy()}digest(){const a=new Uint8Array(this.oHash.outputLen);return this.digestInto(a),a}_cloneInto(a){a||(a=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:i,finished:s,destroyed:c,blockLen:f,outputLen:m}=this;return a=a,a.finished=s,a.destroyed=c,a.blockLen=f,a.outputLen=m,a.oHash=r._cloneInto(a.oHash),a.iHash=i._cloneInto(a.iHash),a}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const yh=(()=>{const n=((a,r,i)=>new vv(a,r).update(i).digest());return n.create=(a,r)=>new vv(a,r),n})();function IR(n,a,r,i){au(n);const s=QR({dkLen:32,asyncTick:10},i),{c,dkLen:f,asyncTick:m}=s;if(Fn(c,"c"),Fn(f,"dkLen"),Fn(m,"asyncTick"),c<1)throw new Error("iterations (c) must be >= 1");if(f<1)throw new Error('"dkLen" must be >= 1');if(f>(2**32-1)*n.outputLen)throw new Error("derived key too long");const p=yv(a,"password"),h=yv(r,"salt"),y=new Uint8Array(f),g=yh.create(n,p),v=g._cloneInto().update(h);return{c,dkLen:f,asyncTick:m,DK:y,PRF:g,PRFSalt:v}}function FR(n,a,r,i,s){return n.destroy(),a.destroy(),i&&i.destroy(),co(s),r}function JR(n,a,r,i){const{c:s,dkLen:c,DK:f,PRF:m,PRFSalt:p}=IR(n,a,r,i);let h;const y=new Uint8Array(4),g=ac(y),v=new Uint8Array(m.outputLen);for(let x=1,T=0;T<c;x++,T+=m.outputLen){const w=f.subarray(T,T+m.outputLen);g.setInt32(0,x,!1),(h=p._cloneInto(h)).update(y).digestInto(v),w.set(v.subarray(0,w.length));for(let C=1;C<s;C++){m._cloneInto(h).update(v).digestInto(v);for(let A=0;A<w.length;A++)w[A]^=v[A]}}return FR(m,p,f,h,v)}function WR(n,a,r){return n&a^~n&r}function PR(n,a,r){return n&a^n&r^a&r}class k2{constructor(a,r,i,s){de(this,"blockLen");de(this,"outputLen");de(this,"canXOF",!1);de(this,"padOffset");de(this,"isLE");de(this,"buffer");de(this,"view");de(this,"finished",!1);de(this,"length",0);de(this,"pos",0);de(this,"destroyed",!1);this.blockLen=a,this.outputLen=r,this.padOffset=i,this.isLE=s,this.buffer=new Uint8Array(a),this.view=ac(this.buffer)}update(a){mc(this),wn(a);const{view:r,buffer:i,blockLen:s}=this,c=a.length;for(let f=0;f<c;){const m=Math.min(s-this.pos,c-f);if(m===s){const p=ac(a);for(;s<=c-f;f+=s)this.process(p,f);continue}i.set(a.subarray(f,f+m),this.pos),this.pos+=m,f+=m,this.pos===s&&(this.process(r,0),this.pos=0)}return this.length+=a.length,this.roundClean(),this}digestInto(a){mc(this),z2(a,this),this.finished=!0;const{buffer:r,view:i,blockLen:s,isLE:c}=this;let{pos:f}=this;r[f++]=128,co(this.buffer.subarray(f)),this.padOffset>s-f&&(this.process(i,0),f=0);for(let g=f;g<s;g++)r[g]=0;i.setBigUint64(s-8,BigInt(this.length*8),c),this.process(i,0);const m=ac(a),p=this.outputLen;if(p%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const h=p/4,y=this.get();if(h>y.length)throw new Error("_sha2: outputLen bigger than state");for(let g=0;g<h;g++)m.setUint32(4*g,y[g],c)}digest(){const{buffer:a,outputLen:r}=this;this.digestInto(a);const i=a.slice(0,r);return this.destroy(),i}_cloneInto(a){a||(a=new this.constructor),a.set(...this.get());const{blockLen:r,buffer:i,length:s,finished:c,destroyed:f,pos:m}=this;return a.destroyed=f,a.finished=c,a.length=s,a.pos=m,s%r&&a.buffer.set(i),a}clone(){return this._cloneInto()}}const eo=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Dt=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Is=BigInt(2**32-1),bv=BigInt(32);function e8(n,a=!1){return a?{h:Number(n&Is),l:Number(n>>bv&Is)}:{h:Number(n>>bv&Is)|0,l:Number(n&Is)|0}}function t8(n,a=!1){const r=n.length;let i=new Uint32Array(r),s=new Uint32Array(r);for(let c=0;c<r;c++){const{h:f,l:m}=e8(n[c],a);[i[c],s[c]]=[f,m]}return[i,s]}const xv=(n,a,r)=>n>>>r,Sv=(n,a,r)=>n<<32-r|a>>>r,qr=(n,a,r)=>n>>>r|a<<32-r,Yr=(n,a,r)=>n<<32-r|a>>>r,Fs=(n,a,r)=>n<<64-r|a>>>r-32,Js=(n,a,r)=>n>>>r-32|a<<64-r;function Sa(n,a,r,i){const s=(a>>>0)+(i>>>0);return{h:n+r+(s/2**32|0)|0,l:s|0}}const n8=(n,a,r)=>(n>>>0)+(a>>>0)+(r>>>0),a8=(n,a,r,i)=>a+r+i+(n/2**32|0)|0,o8=(n,a,r,i)=>(n>>>0)+(a>>>0)+(r>>>0)+(i>>>0),r8=(n,a,r,i,s)=>a+r+i+s+(n/2**32|0)|0,l8=(n,a,r,i,s)=>(n>>>0)+(a>>>0)+(r>>>0)+(i>>>0)+(s>>>0),i8=(n,a,r,i,s,c)=>a+r+i+s+c+(n/2**32|0)|0,s8=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),to=new Uint32Array(64);class c8 extends k2{constructor(a){super(64,a,8,!1)}get(){const{A:a,B:r,C:i,D:s,E:c,F:f,G:m,H:p}=this;return[a,r,i,s,c,f,m,p]}set(a,r,i,s,c,f,m,p){this.A=a|0,this.B=r|0,this.C=i|0,this.D=s|0,this.E=c|0,this.F=f|0,this.G=m|0,this.H=p|0}process(a,r){for(let g=0;g<16;g++,r+=4)to[g]=a.getUint32(r,!1);for(let g=16;g<64;g++){const v=to[g-15],x=to[g-2],T=Xn(v,7)^Xn(v,18)^v>>>3,w=Xn(x,17)^Xn(x,19)^x>>>10;to[g]=w+to[g-7]+T+to[g-16]|0}let{A:i,B:s,C:c,D:f,E:m,F:p,G:h,H:y}=this;for(let g=0;g<64;g++){const v=Xn(m,6)^Xn(m,11)^Xn(m,25),x=y+v+WR(m,p,h)+s8[g]+to[g]|0,w=(Xn(i,2)^Xn(i,13)^Xn(i,22))+PR(i,s,c)|0;y=h,h=p,p=m,m=f+x|0,f=c,c=s,s=i,i=x+w|0}i=i+this.A|0,s=s+this.B|0,c=c+this.C|0,f=f+this.D|0,m=m+this.E|0,p=p+this.F|0,h=h+this.G|0,y=y+this.H|0,this.set(i,s,c,f,m,p,h,y)}roundClean(){co(to)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),co(this.buffer)}}class u8 extends c8{constructor(){super(32);de(this,"A",eo[0]|0);de(this,"B",eo[1]|0);de(this,"C",eo[2]|0);de(this,"D",eo[3]|0);de(this,"E",eo[4]|0);de(this,"F",eo[5]|0);de(this,"G",eo[6]|0);de(this,"H",eo[7]|0)}}const H2=t8(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(n=>BigInt(n))),f8=H2[0],d8=H2[1],no=new Uint32Array(80),ao=new Uint32Array(80);class m8 extends k2{constructor(a){super(128,a,16,!1)}get(){const{Ah:a,Al:r,Bh:i,Bl:s,Ch:c,Cl:f,Dh:m,Dl:p,Eh:h,El:y,Fh:g,Fl:v,Gh:x,Gl:T,Hh:w,Hl:C}=this;return[a,r,i,s,c,f,m,p,h,y,g,v,x,T,w,C]}set(a,r,i,s,c,f,m,p,h,y,g,v,x,T,w,C){this.Ah=a|0,this.Al=r|0,this.Bh=i|0,this.Bl=s|0,this.Ch=c|0,this.Cl=f|0,this.Dh=m|0,this.Dl=p|0,this.Eh=h|0,this.El=y|0,this.Fh=g|0,this.Fl=v|0,this.Gh=x|0,this.Gl=T|0,this.Hh=w|0,this.Hl=C|0}process(a,r){for(let _=0;_<16;_++,r+=4)no[_]=a.getUint32(r),ao[_]=a.getUint32(r+=4);for(let _=16;_<80;_++){const z=no[_-15]|0,U=ao[_-15]|0,q=qr(z,U,1)^qr(z,U,8)^xv(z,U,7),H=Yr(z,U,1)^Yr(z,U,8)^Sv(z,U,7),k=no[_-2]|0,P=ao[_-2]|0,ee=qr(k,P,19)^Fs(k,P,61)^xv(k,P,6),I=Yr(k,P,19)^Js(k,P,61)^Sv(k,P,6),V=o8(H,I,ao[_-7],ao[_-16]),X=r8(V,q,ee,no[_-7],no[_-16]);no[_]=X|0,ao[_]=V|0}let{Ah:i,Al:s,Bh:c,Bl:f,Ch:m,Cl:p,Dh:h,Dl:y,Eh:g,El:v,Fh:x,Fl:T,Gh:w,Gl:C,Hh:A,Hl:M}=this;for(let _=0;_<80;_++){const z=qr(g,v,14)^qr(g,v,18)^Fs(g,v,41),U=Yr(g,v,14)^Yr(g,v,18)^Js(g,v,41),q=g&x^~g&w,H=v&T^~v&C,k=l8(M,U,H,d8[_],ao[_]),P=i8(k,A,z,q,f8[_],no[_]),ee=k|0,I=qr(i,s,28)^Fs(i,s,34)^Fs(i,s,39),V=Yr(i,s,28)^Js(i,s,34)^Js(i,s,39),X=i&c^i&m^c&m,N=s&f^s&p^f&p;A=w|0,M=C|0,w=x|0,C=T|0,x=g|0,T=v|0,{h:g,l:v}=Sa(h|0,y|0,P|0,ee|0),h=m|0,y=p|0,m=c|0,p=f|0,c=i|0,f=s|0;const te=n8(ee,V,N);i=a8(te,P,I,X),s=te|0}({h:i,l:s}=Sa(this.Ah|0,this.Al|0,i|0,s|0)),{h:c,l:f}=Sa(this.Bh|0,this.Bl|0,c|0,f|0),{h:m,l:p}=Sa(this.Ch|0,this.Cl|0,m|0,p|0),{h,l:y}=Sa(this.Dh|0,this.Dl|0,h|0,y|0),{h:g,l:v}=Sa(this.Eh|0,this.El|0,g|0,v|0),{h:x,l:T}=Sa(this.Fh|0,this.Fl|0,x|0,T|0),{h:w,l:C}=Sa(this.Gh|0,this.Gl|0,w|0,C|0),{h:A,l:M}=Sa(this.Hh|0,this.Hl|0,A|0,M|0),this.set(i,s,c,f,m,p,h,y,g,v,x,T,w,C,A,M)}roundClean(){co(no,ao)}destroy(){this.destroyed=!0,co(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class h8 extends m8{constructor(){super(64);de(this,"Ah",Dt[0]|0);de(this,"Al",Dt[1]|0);de(this,"Bh",Dt[2]|0);de(this,"Bl",Dt[3]|0);de(this,"Ch",Dt[4]|0);de(this,"Cl",Dt[5]|0);de(this,"Dh",Dt[6]|0);de(this,"Dl",Dt[7]|0);de(this,"Eh",Dt[8]|0);de(this,"El",Dt[9]|0);de(this,"Fh",Dt[10]|0);de(this,"Fl",Dt[11]|0);de(this,"Gh",Dt[12]|0);de(this,"Gl",Dt[13]|0);de(this,"Hh",Dt[14]|0);de(this,"Hl",Dt[15]|0)}}const hm=D2(()=>new u8,L2(1)),U2=D2(()=>new h8,L2(3));/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function hc(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in n&&n.BYTES_PER_ELEMENT===1}function $2(n,a){return Array.isArray(a)?a.length===0?!0:n?a.every(r=>typeof r=="string"):a.every(r=>Number.isSafeInteger(r)):!1}function p8(n){if(typeof n!="function")throw new TypeError("function expected");return!0}function pc(n,a){if(typeof a!="string")throw new TypeError(`${n}: string expected`);return!0}function sl(n){if(typeof n!="number")throw new TypeError(`number expected, got ${typeof n}`);if(!Number.isSafeInteger(n))throw new RangeError(`invalid integer: ${n}`)}function gc(n){if(!Array.isArray(n))throw new TypeError("array expected")}function yc(n,a){if(!$2(!0,a))throw new TypeError(`${n}: array of strings expected`)}function q2(n,a){if(!$2(!1,a))throw new TypeError(`${n}: array of numbers expected`)}function g8(...n){const a=c=>c,r=(c,f)=>m=>c(f(m)),i=n.map(c=>c.encode).reduceRight(r,a),s=n.map(c=>c.decode).reduce(r,a);return{encode:i,decode:s}}function y8(n){const a=typeof n=="string"?n.split(""):n,r=a.length;yc("alphabet",a);const i=new Map(a.map((s,c)=>[s,c]));return{encode:s=>(gc(s),s.map(c=>{if(!Number.isSafeInteger(c)||c<0||c>=r)throw new Error(`alphabet.encode: digit index outside alphabet "${c}". Allowed: ${n}`);return a[c]})),decode:s=>(gc(s),s.map(c=>{pc("alphabet.decode",c);const f=i.get(c);if(f===void 0)throw new Error(`Unknown letter: "${c}". Allowed: ${n}`);return f}))}}function v8(n=""){return pc("join",n),{encode:a=>(yc("join.decode",a),a.join(n)),decode:a=>(pc("join.decode",a),a.split(n))}}function b8(n,a="="){return sl(n),pc("padding",a),{encode(r){for(yc("padding.encode",r);r.length*n%8;)r.push(a);return r},decode(r){yc("padding.decode",r);let i=r.length;if(i*n%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;i>0&&r[i-1]===a;i--)if((i-1)*n%8===0)throw new Error("padding: invalid, string has too much padding");return r.slice(0,i)}}}function pm(n,a,r){if(a<2)throw new RangeError(`convertRadix: invalid from=${a}, base cannot be less than 2`);if(r<2)throw new RangeError(`convertRadix: invalid to=${r}, base cannot be less than 2`);if(gc(n),!n.length)return[];let i=0;const s=[],c=Array.from(n,m=>{if(sl(m),m<0||m>=a)throw new Error(`invalid integer: ${m}`);return m}),f=c.length;for(;;){let m=0,p=!0;for(let h=i;h<f;h++){const y=c[h],g=a*m,v=g+y;if(!Number.isSafeInteger(v)||g/a!==m||v-y!==g)throw new Error("convertRadix: carry overflow");const x=v/r;m=v%r;const T=Math.floor(x);if(c[h]=T,!Number.isSafeInteger(T)||T*r+m!==v)throw new Error("convertRadix: carry overflow");if(p)T?p=!1:i=h;else continue}if(s.push(m),p)break}for(let m=0;m<n.length-1&&n[m]===0;m++)s.push(0);return s.reverse()}const Y2=(n,a)=>a===0?n:Y2(a,n%a),vc=(n,a)=>n+(a-Y2(n,a)),Gd=(()=>{let n=[];for(let a=0;a<40;a++)n.push(2**a);return n})();function gm(n,a,r,i){if(gc(n),a<=0||a>32)throw new RangeError(`convertRadix2: wrong from=${a}`);if(r<=0||r>32)throw new RangeError(`convertRadix2: wrong to=${r}`);if(vc(a,r)>32)throw new Error(`convertRadix2: carry overflow from=${a} to=${r} carryBits=${vc(a,r)}`);let s=0,c=0;const f=Gd[a],m=Gd[r]-1,p=[];for(const h of n){if(sl(h),h>=f)throw new Error(`convertRadix2: invalid data word=${h} from=${a}`);if(s=s<<a|h,c+a>32)throw new Error(`convertRadix2: carry overflow pos=${c} from=${a}`);for(c+=a;c>=r;c-=r)p.push((s>>c-r&m)>>>0);const y=Gd[c];if(y===void 0)throw new Error("invalid carry");s&=y-1}if(s=s<<r-c&m,!i&&c>=a)throw new Error("Excess padding");if(!i&&s>0)throw new Error(`Non-zero padding: ${s}`);return i&&c>0&&p.push(s>>>0),p}function x8(n){sl(n);const a=2**8;return{encode:r=>{if(!hc(r))throw new TypeError("radix.encode input should be Uint8Array");return pm(Array.from(r),a,n)},decode:r=>(q2("radix.decode",r),Uint8Array.from(pm(r,n,a)))}}function S8(n,a=!1){if(sl(n),n<=0||n>32)throw new RangeError("radix2: bits should be in (0..32]");if(vc(8,n)>32||vc(n,8)>32)throw new RangeError("radix2: carry overflow");return{encode:r=>{if(!hc(r))throw new TypeError("radix2.encode input should be Uint8Array");return gm(Array.from(r),8,n,!a)},decode:r=>(q2("radix2.decode",r),Uint8Array.from(gm(r,n,8,a)))}}function w8(n,a){if(sl(n),n<=0)throw new RangeError(`checksum length must be positive: ${n}`);p8(a);const r=a;return{encode(i){if(!hc(i))throw new TypeError("checksum.encode: input should be Uint8Array");const s=r(i).slice(0,n),c=new Uint8Array(i.length+n);return c.set(i),c.set(s,i.length),c},decode(i){if(!hc(i))throw new TypeError("checksum.decode: input should be Uint8Array");const s=i.slice(0,-n),c=i.slice(-n),f=r(s).slice(0,n);for(let m=0;m<n;m++)if(f[m]!==c[m])throw new Error("Invalid checksum");return s}}}const Ws=Object.freeze({alphabet:y8,chain:g8,checksum:w8,convertRadix:pm,convertRadix2:gm,radix:x8,radix2:S8,join:v8,padding:b8});/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */const E8=n=>n[0]==="あいこくしん";function G2(n){if(typeof n!="string")throw new TypeError("invalid mnemonic type: "+typeof n);return n.normalize("NFKD")}function V2(n){const a=G2(n),r=a.split(" ");if(![12,15,18,21,24].includes(r.length))throw new Error("Invalid mnemonic");return{nfkd:a,words:r}}function X2(n){if(wn(n),![16,20,24,28,32].includes(n.length))throw new RangeError("invalid entropy length")}function R8(n,a=128){if(Fn(a),a%32!==0||a>256)throw new RangeError("Invalid entropy");return A8(B2(a/8),n)}const C8=n=>{const a=8-n.length/4;return new Uint8Array([hm(n)[0]>>a<<a])};function Z2(n){if(!Array.isArray(n)||n.length!==2048||typeof n[0]!="string")throw new TypeError("Wordlist: expected array of 2048 strings");return n.forEach(a=>{if(typeof a!="string")throw new TypeError("wordlist: non-string element: "+a)}),Ws.chain(Ws.checksum(1,C8),Ws.radix2(11,!0),Ws.alphabet(n))}function T8(n,a){const{words:r}=V2(n),i=Z2(a).decode(r);return X2(i),i}function A8(n,a){return X2(n),Z2(a).encode(n).join(E8(a)?"　":" ")}function _8(n,a){try{T8(n,a)}catch{return!1}return!0}const M8=n=>G2("mnemonic"+n);function j8(n,a=""){return JR(U2,V2(n).nfkd,M8(a),{c:2048,dkLen:64})}const K2=Object.freeze(`abandon
ability
able
about
above
absent
absorb
abstract
absurd
abuse
access
accident
account
accuse
achieve
acid
acoustic
acquire
across
act
action
actor
actress
actual
adapt
add
addict
address
adjust
admit
adult
advance
advice
aerobic
affair
afford
afraid
again
age
agent
agree
ahead
aim
air
airport
aisle
alarm
album
alcohol
alert
alien
all
alley
allow
almost
alone
alpha
already
also
alter
always
amateur
amazing
among
amount
amused
analyst
anchor
ancient
anger
angle
angry
animal
ankle
announce
annual
another
answer
antenna
antique
anxiety
any
apart
apology
appear
apple
approve
april
arch
arctic
area
arena
argue
arm
armed
armor
army
around
arrange
arrest
arrive
arrow
art
artefact
artist
artwork
ask
aspect
assault
asset
assist
assume
asthma
athlete
atom
attack
attend
attitude
attract
auction
audit
august
aunt
author
auto
autumn
average
avocado
avoid
awake
aware
away
awesome
awful
awkward
axis
baby
bachelor
bacon
badge
bag
balance
balcony
ball
bamboo
banana
banner
bar
barely
bargain
barrel
base
basic
basket
battle
beach
bean
beauty
because
become
beef
before
begin
behave
behind
believe
below
belt
bench
benefit
best
betray
better
between
beyond
bicycle
bid
bike
bind
biology
bird
birth
bitter
black
blade
blame
blanket
blast
bleak
bless
blind
blood
blossom
blouse
blue
blur
blush
board
boat
body
boil
bomb
bone
bonus
book
boost
border
boring
borrow
boss
bottom
bounce
box
boy
bracket
brain
brand
brass
brave
bread
breeze
brick
bridge
brief
bright
bring
brisk
broccoli
broken
bronze
broom
brother
brown
brush
bubble
buddy
budget
buffalo
build
bulb
bulk
bullet
bundle
bunker
burden
burger
burst
bus
business
busy
butter
buyer
buzz
cabbage
cabin
cable
cactus
cage
cake
call
calm
camera
camp
can
canal
cancel
candy
cannon
canoe
canvas
canyon
capable
capital
captain
car
carbon
card
cargo
carpet
carry
cart
case
cash
casino
castle
casual
cat
catalog
catch
category
cattle
caught
cause
caution
cave
ceiling
celery
cement
census
century
cereal
certain
chair
chalk
champion
change
chaos
chapter
charge
chase
chat
cheap
check
cheese
chef
cherry
chest
chicken
chief
child
chimney
choice
choose
chronic
chuckle
chunk
churn
cigar
cinnamon
circle
citizen
city
civil
claim
clap
clarify
claw
clay
clean
clerk
clever
click
client
cliff
climb
clinic
clip
clock
clog
close
cloth
cloud
clown
club
clump
cluster
clutch
coach
coast
coconut
code
coffee
coil
coin
collect
color
column
combine
come
comfort
comic
common
company
concert
conduct
confirm
congress
connect
consider
control
convince
cook
cool
copper
copy
coral
core
corn
correct
cost
cotton
couch
country
couple
course
cousin
cover
coyote
crack
cradle
craft
cram
crane
crash
crater
crawl
crazy
cream
credit
creek
crew
cricket
crime
crisp
critic
crop
cross
crouch
crowd
crucial
cruel
cruise
crumble
crunch
crush
cry
crystal
cube
culture
cup
cupboard
curious
current
curtain
curve
cushion
custom
cute
cycle
dad
damage
damp
dance
danger
daring
dash
daughter
dawn
day
deal
debate
debris
decade
december
decide
decline
decorate
decrease
deer
defense
define
defy
degree
delay
deliver
demand
demise
denial
dentist
deny
depart
depend
deposit
depth
deputy
derive
describe
desert
design
desk
despair
destroy
detail
detect
develop
device
devote
diagram
dial
diamond
diary
dice
diesel
diet
differ
digital
dignity
dilemma
dinner
dinosaur
direct
dirt
disagree
discover
disease
dish
dismiss
disorder
display
distance
divert
divide
divorce
dizzy
doctor
document
dog
doll
dolphin
domain
donate
donkey
donor
door
dose
double
dove
draft
dragon
drama
drastic
draw
dream
dress
drift
drill
drink
drip
drive
drop
drum
dry
duck
dumb
dune
during
dust
dutch
duty
dwarf
dynamic
eager
eagle
early
earn
earth
easily
east
easy
echo
ecology
economy
edge
edit
educate
effort
egg
eight
either
elbow
elder
electric
elegant
element
elephant
elevator
elite
else
embark
embody
embrace
emerge
emotion
employ
empower
empty
enable
enact
end
endless
endorse
enemy
energy
enforce
engage
engine
enhance
enjoy
enlist
enough
enrich
enroll
ensure
enter
entire
entry
envelope
episode
equal
equip
era
erase
erode
erosion
error
erupt
escape
essay
essence
estate
eternal
ethics
evidence
evil
evoke
evolve
exact
example
excess
exchange
excite
exclude
excuse
execute
exercise
exhaust
exhibit
exile
exist
exit
exotic
expand
expect
expire
explain
expose
express
extend
extra
eye
eyebrow
fabric
face
faculty
fade
faint
faith
fall
false
fame
family
famous
fan
fancy
fantasy
farm
fashion
fat
fatal
father
fatigue
fault
favorite
feature
february
federal
fee
feed
feel
female
fence
festival
fetch
fever
few
fiber
fiction
field
figure
file
film
filter
final
find
fine
finger
finish
fire
firm
first
fiscal
fish
fit
fitness
fix
flag
flame
flash
flat
flavor
flee
flight
flip
float
flock
floor
flower
fluid
flush
fly
foam
focus
fog
foil
fold
follow
food
foot
force
forest
forget
fork
fortune
forum
forward
fossil
foster
found
fox
fragile
frame
frequent
fresh
friend
fringe
frog
front
frost
frown
frozen
fruit
fuel
fun
funny
furnace
fury
future
gadget
gain
galaxy
gallery
game
gap
garage
garbage
garden
garlic
garment
gas
gasp
gate
gather
gauge
gaze
general
genius
genre
gentle
genuine
gesture
ghost
giant
gift
giggle
ginger
giraffe
girl
give
glad
glance
glare
glass
glide
glimpse
globe
gloom
glory
glove
glow
glue
goat
goddess
gold
good
goose
gorilla
gospel
gossip
govern
gown
grab
grace
grain
grant
grape
grass
gravity
great
green
grid
grief
grit
grocery
group
grow
grunt
guard
guess
guide
guilt
guitar
gun
gym
habit
hair
half
hammer
hamster
hand
happy
harbor
hard
harsh
harvest
hat
have
hawk
hazard
head
health
heart
heavy
hedgehog
height
hello
helmet
help
hen
hero
hidden
high
hill
hint
hip
hire
history
hobby
hockey
hold
hole
holiday
hollow
home
honey
hood
hope
horn
horror
horse
hospital
host
hotel
hour
hover
hub
huge
human
humble
humor
hundred
hungry
hunt
hurdle
hurry
hurt
husband
hybrid
ice
icon
idea
identify
idle
ignore
ill
illegal
illness
image
imitate
immense
immune
impact
impose
improve
impulse
inch
include
income
increase
index
indicate
indoor
industry
infant
inflict
inform
inhale
inherit
initial
inject
injury
inmate
inner
innocent
input
inquiry
insane
insect
inside
inspire
install
intact
interest
into
invest
invite
involve
iron
island
isolate
issue
item
ivory
jacket
jaguar
jar
jazz
jealous
jeans
jelly
jewel
job
join
joke
journey
joy
judge
juice
jump
jungle
junior
junk
just
kangaroo
keen
keep
ketchup
key
kick
kid
kidney
kind
kingdom
kiss
kit
kitchen
kite
kitten
kiwi
knee
knife
knock
know
lab
label
labor
ladder
lady
lake
lamp
language
laptop
large
later
latin
laugh
laundry
lava
law
lawn
lawsuit
layer
lazy
leader
leaf
learn
leave
lecture
left
leg
legal
legend
leisure
lemon
lend
length
lens
leopard
lesson
letter
level
liar
liberty
library
license
life
lift
light
like
limb
limit
link
lion
liquid
list
little
live
lizard
load
loan
lobster
local
lock
logic
lonely
long
loop
lottery
loud
lounge
love
loyal
lucky
luggage
lumber
lunar
lunch
luxury
lyrics
machine
mad
magic
magnet
maid
mail
main
major
make
mammal
man
manage
mandate
mango
mansion
manual
maple
marble
march
margin
marine
market
marriage
mask
mass
master
match
material
math
matrix
matter
maximum
maze
meadow
mean
measure
meat
mechanic
medal
media
melody
melt
member
memory
mention
menu
mercy
merge
merit
merry
mesh
message
metal
method
middle
midnight
milk
million
mimic
mind
minimum
minor
minute
miracle
mirror
misery
miss
mistake
mix
mixed
mixture
mobile
model
modify
mom
moment
monitor
monkey
monster
month
moon
moral
more
morning
mosquito
mother
motion
motor
mountain
mouse
move
movie
much
muffin
mule
multiply
muscle
museum
mushroom
music
must
mutual
myself
mystery
myth
naive
name
napkin
narrow
nasty
nation
nature
near
neck
need
negative
neglect
neither
nephew
nerve
nest
net
network
neutral
never
news
next
nice
night
noble
noise
nominee
noodle
normal
north
nose
notable
note
nothing
notice
novel
now
nuclear
number
nurse
nut
oak
obey
object
oblige
obscure
observe
obtain
obvious
occur
ocean
october
odor
off
offer
office
often
oil
okay
old
olive
olympic
omit
once
one
onion
online
only
open
opera
opinion
oppose
option
orange
orbit
orchard
order
ordinary
organ
orient
original
orphan
ostrich
other
outdoor
outer
output
outside
oval
oven
over
own
owner
oxygen
oyster
ozone
pact
paddle
page
pair
palace
palm
panda
panel
panic
panther
paper
parade
parent
park
parrot
party
pass
patch
path
patient
patrol
pattern
pause
pave
payment
peace
peanut
pear
peasant
pelican
pen
penalty
pencil
people
pepper
perfect
permit
person
pet
phone
photo
phrase
physical
piano
picnic
picture
piece
pig
pigeon
pill
pilot
pink
pioneer
pipe
pistol
pitch
pizza
place
planet
plastic
plate
play
please
pledge
pluck
plug
plunge
poem
poet
point
polar
pole
police
pond
pony
pool
popular
portion
position
possible
post
potato
pottery
poverty
powder
power
practice
praise
predict
prefer
prepare
present
pretty
prevent
price
pride
primary
print
priority
prison
private
prize
problem
process
produce
profit
program
project
promote
proof
property
prosper
protect
proud
provide
public
pudding
pull
pulp
pulse
pumpkin
punch
pupil
puppy
purchase
purity
purpose
purse
push
put
puzzle
pyramid
quality
quantum
quarter
question
quick
quit
quiz
quote
rabbit
raccoon
race
rack
radar
radio
rail
rain
raise
rally
ramp
ranch
random
range
rapid
rare
rate
rather
raven
raw
razor
ready
real
reason
rebel
rebuild
recall
receive
recipe
record
recycle
reduce
reflect
reform
refuse
region
regret
regular
reject
relax
release
relief
rely
remain
remember
remind
remove
render
renew
rent
reopen
repair
repeat
replace
report
require
rescue
resemble
resist
resource
response
result
retire
retreat
return
reunion
reveal
review
reward
rhythm
rib
ribbon
rice
rich
ride
ridge
rifle
right
rigid
ring
riot
ripple
risk
ritual
rival
river
road
roast
robot
robust
rocket
romance
roof
rookie
room
rose
rotate
rough
round
route
royal
rubber
rude
rug
rule
run
runway
rural
sad
saddle
sadness
safe
sail
salad
salmon
salon
salt
salute
same
sample
sand
satisfy
satoshi
sauce
sausage
save
say
scale
scan
scare
scatter
scene
scheme
school
science
scissors
scorpion
scout
scrap
screen
script
scrub
sea
search
season
seat
second
secret
section
security
seed
seek
segment
select
sell
seminar
senior
sense
sentence
series
service
session
settle
setup
seven
shadow
shaft
shallow
share
shed
shell
sheriff
shield
shift
shine
ship
shiver
shock
shoe
shoot
shop
short
shoulder
shove
shrimp
shrug
shuffle
shy
sibling
sick
side
siege
sight
sign
silent
silk
silly
silver
similar
simple
since
sing
siren
sister
situate
six
size
skate
sketch
ski
skill
skin
skirt
skull
slab
slam
sleep
slender
slice
slide
slight
slim
slogan
slot
slow
slush
small
smart
smile
smoke
smooth
snack
snake
snap
sniff
snow
soap
soccer
social
sock
soda
soft
solar
soldier
solid
solution
solve
someone
song
soon
sorry
sort
soul
sound
soup
source
south
space
spare
spatial
spawn
speak
special
speed
spell
spend
sphere
spice
spider
spike
spin
spirit
split
spoil
sponsor
spoon
sport
spot
spray
spread
spring
spy
square
squeeze
squirrel
stable
stadium
staff
stage
stairs
stamp
stand
start
state
stay
steak
steel
stem
step
stereo
stick
still
sting
stock
stomach
stone
stool
story
stove
strategy
street
strike
strong
struggle
student
stuff
stumble
style
subject
submit
subway
success
such
sudden
suffer
sugar
suggest
suit
summer
sun
sunny
sunset
super
supply
supreme
sure
surface
surge
surprise
surround
survey
suspect
sustain
swallow
swamp
swap
swarm
swear
sweet
swift
swim
swing
switch
sword
symbol
symptom
syrup
system
table
tackle
tag
tail
talent
talk
tank
tape
target
task
taste
tattoo
taxi
teach
team
tell
ten
tenant
tennis
tent
term
test
text
thank
that
theme
then
theory
there
they
thing
this
thought
three
thrive
throw
thumb
thunder
ticket
tide
tiger
tilt
timber
time
tiny
tip
tired
tissue
title
toast
tobacco
today
toddler
toe
together
toilet
token
tomato
tomorrow
tone
tongue
tonight
tool
tooth
top
topic
topple
torch
tornado
tortoise
toss
total
tourist
toward
tower
town
toy
track
trade
traffic
tragic
train
transfer
trap
trash
travel
tray
treat
tree
trend
trial
tribe
trick
trigger
trim
trip
trophy
trouble
truck
true
truly
trumpet
trust
truth
try
tube
tuition
tumble
tuna
tunnel
turkey
turn
turtle
twelve
twenty
twice
twin
twist
two
type
typical
ugly
umbrella
unable
unaware
uncle
uncover
under
undo
unfair
unfold
unhappy
uniform
unique
unit
universe
unknown
unlock
until
unusual
unveil
update
upgrade
uphold
upon
upper
upset
urban
urge
usage
use
used
useful
useless
usual
utility
vacant
vacuum
vague
valid
valley
valve
van
vanish
vapor
various
vast
vault
vehicle
velvet
vendor
venture
venue
verb
verify
version
very
vessel
veteran
viable
vibrant
vicious
victory
video
view
village
vintage
violin
virtual
virus
visa
visit
visual
vital
vivid
vocal
voice
void
volcano
volume
vote
voyage
wage
wagon
wait
walk
wall
walnut
want
warfare
warm
warrior
wash
wasp
waste
water
wave
way
wealth
weapon
wear
weasel
weather
web
wedding
weekend
weird
welcome
west
wet
whale
what
wheat
wheel
when
where
whip
whisper
wide
width
wife
wild
will
win
window
wine
wing
wink
winner
winter
wire
wisdom
wise
wish
witness
wolf
woman
wonder
wood
wool
word
work
world
worry
worth
wrap
wreck
wrestle
wrist
write
wrong
yard
year
yellow
you
young
youth
zebra
zero
zone
zoo`.split(`
`)),z8=128,O8=12;function N8(){return R8(K2,z8)}function vh(n){return n.trim().toLowerCase().split(/\s+/).filter(Boolean).join(" ")}function bh(n){const a=vh(n);return a?a.split(" "):[]}function D8(n){const a=vh(n);if(bh(a).length!==O8)return!1;try{return _8(a,K2)}catch{return!1}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const St=(n,a,r)=>wn(n,a,r),Q2=Fn,I2=Ho,wv=(...n)=>N2(...n),B8=n=>gh(n),L8=j2,F2=n=>B2(n),bc=BigInt(0),ym=BigInt(1);function xc(n,a=""){if(typeof n!="boolean"){const r=a&&`"${a}" `;throw new TypeError(r+"expected boolean, got type="+typeof n)}return n}function k8(n){if(typeof n=="bigint"){if(!oc(n))throw new RangeError("positive bigint expected, got "+n)}else Q2(n);return n}function vm(n,a=""){if(typeof n!="number"){const r=a&&`"${a}" `;throw new TypeError(r+"expected number, got type="+typeof n)}if(!Number.isSafeInteger(n)){const r=a&&`"${a}" `;throw new RangeError(r+"expected safe integer, got "+n)}}function J2(n){if(typeof n!="string")throw new TypeError("hex string expected, got "+typeof n);return n===""?bc:BigInt("0x"+n)}function H8(n){return J2(Ho(n))}function Qo(n){return J2(Ho(pi(wn(n)).reverse()))}function W2(n,a){if(Fn(a),a===0)throw new RangeError("zero length");n=k8(n);const r=n.toString(16);if(r.length>a*2)throw new RangeError("number too large");return gh(r.padStart(a*2,"0"))}function P2(n,a){return W2(n,a).reverse()}function U8(n,a){if(n=St(n),a=St(a),n.length!==a.length)return!1;let r=0;for(let i=0;i<n.length;i++)r|=n[i]^a[i];return r===0}function pi(n){return Uint8Array.from(St(n))}const oc=n=>typeof n=="bigint"&&bc<=n;function $8(n,a,r){return oc(n)&&oc(a)&&oc(r)&&a<=n&&n<r}function Sc(n,a,r,i){if(!$8(a,r,i))throw new RangeError("expected valid "+n+": "+r+" <= n < "+i+", got "+a)}function q8(n){if(n<bc)throw new Error("expected non-negative bigint, got "+n);let a;for(a=0;n>bc;n>>=ym,a+=1);return a}const Y8=n=>(ym<<BigInt(n))-ym;function ou(n,a={},r={}){if(Object.prototype.toString.call(n)!=="[object Object]")throw new TypeError("expected valid options object");function i(c,f,m){if(!m&&f!=="function"&&!Object.hasOwn(n,c))throw new TypeError(`param "${c}" is invalid: expected own property`);const p=n[c];if(m&&p===void 0)return;const h=typeof p;if(h!==f||p===null)throw new TypeError(`param "${c}" is invalid: expected ${f}, got ${h}`)}const s=(c,f)=>Object.entries(c).forEach(([m,p])=>i(m,p,f));s(a,!1),s(r,!0)}const Ev=()=>{throw new Error("not implemented")};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const kt=BigInt(0),zt=BigInt(1),Uo=BigInt(2),ex=BigInt(3),tx=BigInt(4),nx=BigInt(5),G8=BigInt(7),ax=BigInt(8),V8=BigInt(9),ox=BigInt(16);function rt(n,a){if(a<=kt)throw new Error("mod: expected positive modulus, got "+a);const r=n%a;return r>=kt?r:a+r}function Mn(n,a,r){if(a<kt)throw new Error("pow2: expected non-negative exponent, got "+a);let i=n;for(;a-- >kt;)i*=i,i%=r;return i}function Rv(n,a){if(n===kt)throw new Error("invert: expected non-zero number");if(a<=kt)throw new Error("invert: expected positive modulus, got "+a);let r=rt(n,a),i=a,s=kt,c=zt;for(;r!==kt;){const m=i/r,p=i-r*m,h=s-c*m;i=r,r=p,s=c,c=h}if(i!==zt)throw new Error("invert: does not exist");return rt(s,a)}function xh(n,a,r){const i=n;if(!i.eql(i.sqr(a),r))throw new Error("Cannot find square root")}function rx(n,a){const r=n,i=(r.ORDER+zt)/tx,s=r.pow(a,i);return xh(r,s,a),s}function X8(n,a){const r=n,i=(r.ORDER-nx)/ax,s=r.mul(a,Uo),c=r.pow(s,i),f=r.mul(a,c),m=r.mul(r.mul(f,Uo),c),p=r.mul(f,r.sub(m,r.ONE));return xh(r,p,a),p}function Z8(n){const a=Sh(n),r=lx(n),i=r(a,a.neg(a.ONE)),s=r(a,i),c=r(a,a.neg(i)),f=(n+G8)/ox;return((m,p)=>{const h=m;let y=h.pow(p,f),g=h.mul(y,i);const v=h.mul(y,s),x=h.mul(y,c),T=h.eql(h.sqr(g),p),w=h.eql(h.sqr(v),p);y=h.cmov(y,g,T),g=h.cmov(x,v,w);const C=h.eql(h.sqr(g),p),A=h.cmov(y,g,C);return xh(h,A,p),A})}function lx(n){if(n<ex)throw new Error("sqrt is not defined for small field");let a=n-zt,r=0;for(;a%Uo===kt;)a/=Uo,r++;let i=Uo;const s=Sh(n);for(;Cv(s,i)===1;)if(i++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return rx;let c=s.pow(i,a);const f=(a+zt)/Uo;return function(p,h){const y=p;if(y.is0(h))return h;if(Cv(y,h)!==1)throw new Error("Cannot find square root");let g=r,v=y.mul(y.ONE,c),x=y.pow(h,a),T=y.pow(h,f);for(;!y.eql(x,y.ONE);){if(y.is0(x))return y.ZERO;let w=1,C=y.sqr(x);for(;!y.eql(C,y.ONE);)if(w++,C=y.sqr(C),w===g)throw new Error("Cannot find square root");const A=zt<<BigInt(g-w-1),M=y.pow(v,A);g=w,v=y.sqr(M),x=y.mul(x,v),T=y.mul(T,M)}return T}}function K8(n){return n%tx===ex?rx:n%ax===nx?X8:n%ox===V8?Z8(n):lx(n)}const Do=(n,a)=>(rt(n,a)&zt)===zt,Q8=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function I8(n){const a={ORDER:"bigint",BYTES:"number",BITS:"number"},r=Q8.reduce((i,s)=>(i[s]="function",i),a);if(ou(n,r),vm(n.BYTES,"BYTES"),vm(n.BITS,"BITS"),n.BYTES<1||n.BITS<1)throw new Error("invalid field: expected BYTES/BITS > 0");if(n.ORDER<=zt)throw new Error("invalid field: expected ORDER > 1, got "+n.ORDER);return n}function F8(n,a,r){const i=n;if(r<kt)throw new Error("invalid exponent, negatives unsupported");if(r===kt)return i.ONE;if(r===zt)return a;let s=i.ONE,c=a;for(;r>kt;)r&zt&&(s=i.mul(s,c)),c=i.sqr(c),r>>=zt;return s}function ix(n,a,r=!1){const i=n,s=new Array(a.length).fill(r?i.ZERO:void 0),c=a.reduce((m,p,h)=>i.is0(p)?m:(s[h]=m,i.mul(m,p)),i.ONE),f=i.inv(c);return a.reduceRight((m,p,h)=>i.is0(p)?m:(s[h]=i.mul(m,s[h]),i.mul(m,p)),f),s}function Cv(n,a){const r=n,i=(r.ORDER-zt)/Uo,s=r.pow(a,i),c=r.eql(s,r.ONE),f=r.eql(s,r.ZERO),m=r.eql(s,r.neg(r.ONE));if(!c&&!f&&!m)throw new Error("invalid Legendre symbol result");return c?1:f?0:-1}function J8(n,a){if(a!==void 0&&Q2(a),n<=kt)throw new Error("invalid n length: expected positive n, got "+n);if(a!==void 0&&a<1)throw new Error("invalid n length: expected positive bit length, got "+a);const r=q8(n);if(a!==void 0&&a<r)throw new Error(`invalid n length: expected bit length (${r}) >= n.length (${a})`);const i=a!==void 0?a:r,s=Math.ceil(i/8);return{nBitLength:i,nByteLength:s}}const Tv=new WeakMap;class sx{constructor(a,r={}){de(this,"ORDER");de(this,"BITS");de(this,"BYTES");de(this,"isLE");de(this,"ZERO",kt);de(this,"ONE",zt);de(this,"_lengths");de(this,"_mod");if(a<=zt)throw new Error("invalid field: expected ORDER > 1, got "+a);let i;this.isLE=!1,r!=null&&typeof r=="object"&&(typeof r.BITS=="number"&&(i=r.BITS),typeof r.sqrt=="function"&&Object.defineProperty(this,"sqrt",{value:r.sqrt,enumerable:!0}),typeof r.isLE=="boolean"&&(this.isLE=r.isLE),r.allowedLengths&&(this._lengths=Object.freeze(r.allowedLengths.slice())),typeof r.modFromBytes=="boolean"&&(this._mod=r.modFromBytes));const{nBitLength:s,nByteLength:c}=J8(a,i);if(c>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");this.ORDER=a,this.BITS=s,this.BYTES=c,Object.freeze(this)}create(a){return rt(a,this.ORDER)}isValid(a){if(typeof a!="bigint")throw new TypeError("invalid field element: expected bigint, got "+typeof a);return kt<=a&&a<this.ORDER}is0(a){return a===kt}isValidNot0(a){return!this.is0(a)&&this.isValid(a)}isOdd(a){return(a&zt)===zt}neg(a){return rt(-a,this.ORDER)}eql(a,r){return a===r}sqr(a){return rt(a*a,this.ORDER)}add(a,r){return rt(a+r,this.ORDER)}sub(a,r){return rt(a-r,this.ORDER)}mul(a,r){return rt(a*r,this.ORDER)}pow(a,r){return F8(this,a,r)}div(a,r){return rt(a*Rv(r,this.ORDER),this.ORDER)}sqrN(a){return a*a}addN(a,r){return a+r}subN(a,r){return a-r}mulN(a,r){return a*r}inv(a){return Rv(a,this.ORDER)}sqrt(a){let r=Tv.get(this);return r||Tv.set(this,r=K8(this.ORDER)),r(this,a)}toBytes(a){return this.isLE?P2(a,this.BYTES):W2(a,this.BYTES)}fromBytes(a,r=!1){St(a);const{_lengths:i,BYTES:s,isLE:c,ORDER:f,_mod:m}=this;if(i){if(a.length<1||!i.includes(a.length)||a.length>s)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+a.length);const h=new Uint8Array(s);h.set(a,c?0:h.length-a.length),a=h}if(a.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+a.length);let p=c?Qo(a):H8(a);if(m&&(p=rt(p,f)),!r&&!this.isValid(p))throw new Error("invalid field element: outside of range 0..ORDER");return p}invertBatch(a){return ix(this,a)}cmov(a,r,i){return xc(i,"condition"),i?r:a}}Object.freeze(sx.prototype);function Sh(n,a={}){return new sx(n,a)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const wc=BigInt(0),bm=BigInt(1);function Av(n,a){const r=a.negate();return n?r:a}function Vd(n,a){const r=ix(n.Fp,a.map(i=>i.Z));return a.map((i,s)=>n.fromAffine(i.toAffine(r[s])))}function cx(n,a){if(!Number.isSafeInteger(n)||n<=0||n>a)throw new Error("invalid window size, expected [1.."+a+"], got W="+n)}function Xd(n,a){cx(n,a);const r=Math.ceil(a/n)+1,i=2**(n-1),s=2**n,c=Y8(n),f=BigInt(n);return{windows:r,windowSize:i,mask:c,maxNumber:s,shiftBy:f}}function _v(n,a,r){const{windowSize:i,mask:s,maxNumber:c,shiftBy:f}=r;let m=Number(n&s),p=n>>f;m>i&&(m-=c,p+=bm);const h=a*i,y=h+Math.abs(m)-1,g=m===0,v=m<0,x=a%2!==0;return{nextN:p,offset:y,isZero:g,isNeg:v,isNegF:x,offsetF:h}}const Zd=new WeakMap,ux=new WeakMap;function Kd(n){return ux.get(n)||1}function Mv(n){if(n!==wc)throw new Error("invalid wNAF")}class W8{constructor(a,r){de(this,"BASE");de(this,"ZERO");de(this,"Fn");de(this,"bits");this.BASE=a.BASE,this.ZERO=a.ZERO,this.Fn=a.Fn,this.bits=r}_unsafeLadder(a,r,i=this.ZERO){let s=a;for(;r>wc;)r&bm&&(i=i.add(s)),s=s.double(),r>>=bm;return i}precomputeWindow(a,r){const{windows:i,windowSize:s}=Xd(r,this.bits),c=[];let f=a,m=f;for(let p=0;p<i;p++){m=f,c.push(m);for(let h=1;h<s;h++)m=m.add(f),c.push(m);f=m.double()}return c}wNAF(a,r,i){if(!this.Fn.isValid(i))throw new Error("invalid scalar");let s=this.ZERO,c=this.BASE;const f=Xd(a,this.bits);for(let m=0;m<f.windows;m++){const{nextN:p,offset:h,isZero:y,isNeg:g,isNegF:v,offsetF:x}=_v(i,m,f);i=p,y?c=c.add(Av(v,r[x])):s=s.add(Av(g,r[h]))}return Mv(i),{p:s,f:c}}wNAFUnsafe(a,r,i,s=this.ZERO){const c=Xd(a,this.bits);for(let f=0;f<c.windows&&i!==wc;f++){const{nextN:m,offset:p,isZero:h,isNeg:y}=_v(i,f,c);if(i=m,!h){const g=r[p];s=s.add(y?g.negate():g)}}return Mv(i),s}getPrecomputes(a,r,i){let s=Zd.get(r);return s||(s=this.precomputeWindow(r,a),a!==1&&(typeof i=="function"&&(s=i(s)),Zd.set(r,s))),s}cached(a,r,i){const s=Kd(a);return this.wNAF(s,this.getPrecomputes(s,a,i),r)}unsafe(a,r,i,s){const c=Kd(a);return c===1?this._unsafeLadder(a,r,s):this.wNAFUnsafe(c,this.getPrecomputes(c,a,i),r,s)}createCache(a,r){cx(r,this.bits),ux.set(a,r),Zd.delete(a)}hasCache(a){return Kd(a)!==1}}function jv(n,a,r){if(a){if(a.ORDER!==n)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return I8(a),a}else return Sh(n,{isLE:r})}function P8(n,a,r={},i){if(i===void 0&&(i=n==="edwards"),!a||typeof a!="object")throw new Error(`expected valid ${n} CURVE object`);for(const p of["p","n","h"]){const h=a[p];if(!(typeof h=="bigint"&&h>wc))throw new Error(`CURVE.${p} must be positive bigint`)}const s=jv(a.p,r.Fp,i),c=jv(a.n,r.Fn,i),m=["Gx","Gy","a","d"];for(const p of m)if(!s.isValid(a[p]))throw new Error(`CURVE.${p} must be valid field element of CURVE.Fp`);return a=Object.freeze(Object.assign({},a)),{CURVE:a,Fp:s,Fn:c}}function fx(n,a){return function(i){const s=n(i);return{secretKey:s,publicKey:a(s)}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const oo=BigInt(0),xt=BigInt(1),Qd=BigInt(2),eC=BigInt(8);function tC(n,a,r,i){const s=n.sqr(r),c=n.sqr(i),f=n.add(n.mul(a.a,s),c),m=n.add(n.ONE,n.mul(a.d,n.mul(s,c)));return n.eql(f,m)}function nC(n,a={}){const r=a,i=P8("edwards",n,r,r.FpFnLE),{Fp:s,Fn:c}=i;let f=i.CURVE;const{h:m}=f;ou(r,{},{uvRatio:"function"});const p=Qd<<BigInt(c.BYTES*8)-xt,h=C=>s.create(C),y=r.uvRatio===void 0?(C,A)=>{try{return{isValid:!0,value:s.sqrt(s.div(C,A))}}catch{return{isValid:!1,value:oo}}}:r.uvRatio;if(!tC(s,f,f.Gx,f.Gy))throw new Error("bad curve params: generator point");function g(C,A,M=!1){const _=M?xt:oo;return Sc("coordinate "+C,A,_,p),A}function v(C){if(!(C instanceof x))throw new Error("EdwardsPoint expected")}const w=class w{constructor(A,M,_,z){de(this,"X");de(this,"Y");de(this,"Z");de(this,"T");this.X=g("x",A),this.Y=g("y",M),this.Z=g("z",_,!0),this.T=g("t",z),Object.freeze(this)}static CURVE(){return f}static fromAffine(A){if(A instanceof w)throw new Error("extended point not allowed");const{x:M,y:_}=A||{};return g("x",M),g("y",_),new w(M,_,xt,h(M*_))}static fromBytes(A,M=!1){const _=s.BYTES,{a:z,d:U}=f;A=pi(St(A,_,"point")),xc(M,"zip215");const q=pi(A),H=A[_-1];q[_-1]=H&-129;const k=Qo(q),P=M?p:s.ORDER;Sc("point.y",k,oo,P);const ee=h(k*k),I=h(ee-xt),V=h(U*ee-z);let{isValid:X,value:N}=y(I,V);if(!X)throw new Error("bad point: invalid y coordinate");const te=(N&xt)===xt,D=(H&128)!==0;if(!M&&N===oo&&D)throw new Error("bad point: x=0 and x_0=1");return D!==te&&(N=h(-N)),w.fromAffine({x:N,y:k})}static fromHex(A,M=!1){return w.fromBytes(B8(A),M)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(A=8,M=!0){return T.createCache(this,A),M||this.multiply(Qd),this}assertValidity(){const A=this,{a:M,d:_}=f;if(A.is0())throw new Error("bad point: ZERO");const{X:z,Y:U,Z:q,T:H}=A,k=h(z*z),P=h(U*U),ee=h(q*q),I=h(ee*ee),V=h(k*M),X=h(ee*h(V+P)),N=h(I+h(_*h(k*P)));if(X!==N)throw new Error("bad point: equation left != right (1)");const te=h(z*U),D=h(q*H);if(te!==D)throw new Error("bad point: equation left != right (2)")}equals(A){v(A);const{X:M,Y:_,Z:z}=this,{X:U,Y:q,Z:H}=A,k=h(M*H),P=h(U*z),ee=h(_*H),I=h(q*z);return k===P&&ee===I}is0(){return this.equals(w.ZERO)}negate(){return new w(h(-this.X),this.Y,this.Z,h(-this.T))}double(){const{a:A}=f,{X:M,Y:_,Z:z}=this,U=h(M*M),q=h(_*_),H=h(Qd*h(z*z)),k=h(A*U),P=M+_,ee=h(h(P*P)-U-q),I=k+q,V=I-H,X=k-q,N=h(ee*V),te=h(I*X),D=h(ee*X),B=h(V*I);return new w(N,te,B,D)}add(A){v(A);const{a:M,d:_}=f,{X:z,Y:U,Z:q,T:H}=this,{X:k,Y:P,Z:ee,T:I}=A,V=h(z*k),X=h(U*P),N=h(H*_*I),te=h(q*ee),D=h((z+U)*(k+P)-V-X),B=te-N,$=te+N,J=h(X-M*V),oe=h(D*B),j=h($*J),Y=h(D*J),W=h(B*$);return new w(oe,j,W,Y)}subtract(A){return v(A),this.add(A.negate())}multiply(A){if(!c.isValidNot0(A))throw new RangeError("invalid scalar: expected 1 <= sc < curve.n");const{p:M,f:_}=T.cached(this,A,z=>Vd(w,z));return Vd(w,[M,_])[0]}multiplyUnsafe(A){if(!c.isValid(A))throw new RangeError("invalid scalar: expected 0 <= sc < curve.n");return A===oo?w.ZERO:this.is0()||A===xt?this:T.unsafe(this,A,M=>Vd(w,M))}isSmallOrder(){return this.clearCofactor().is0()}isTorsionFree(){return T.unsafe(this,f.n).is0()}toAffine(A){const M=this;let _=A;const{X:z,Y:U,Z:q}=M,H=M.is0();_==null&&(_=H?eC:s.inv(q));const k=h(z*_),P=h(U*_),ee=s.mul(q,_);if(H)return{x:oo,y:xt};if(ee!==xt)throw new Error("invZ was invalid");return{x:k,y:P}}clearCofactor(){return m===xt?this:this.multiplyUnsafe(m)}toBytes(){const{x:A,y:M}=this.toAffine(),_=s.toBytes(M);return _[_.length-1]|=A&xt?128:0,_}toHex(){return I2(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}};de(w,"BASE",new w(f.Gx,f.Gy,xt,h(f.Gx*f.Gy))),de(w,"ZERO",new w(oo,xt,xt,oo)),de(w,"Fp",s),de(w,"Fn",c);let x=w;const T=new W8(x,c.BITS);return c.BITS>=8&&x.BASE.precompute(8),Object.freeze(x.prototype),Object.freeze(x),x}class ii{constructor(a){de(this,"ep");this.ep=a}static fromBytes(a){Ev()}static fromHex(a){Ev()}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine(a){return this.ep.toAffine(a)}toHex(){return I2(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add(a){return this.assertSame(a),this.init(this.ep.add(a.ep))}subtract(a){return this.assertSame(a),this.init(this.ep.subtract(a.ep))}multiply(a){return this.init(this.ep.multiply(a))}multiplyUnsafe(a){return this.init(this.ep.multiplyUnsafe(a))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute(a,r){return this.ep.precompute(a,r),this}}de(ii,"BASE"),de(ii,"ZERO"),de(ii,"Fp"),de(ii,"Fn");function aC(n,a,r={}){if(typeof a!="function")throw new Error('"hash" function param is required');const i=a,s=r;ou(s,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",zip215:"boolean",mapToCurve:"function"});const{prehash:c}=s,{BASE:f,Fp:m,Fn:p}=n,h=i.outputLen,y=2*m.BYTES;if(h!==void 0&&(vm(h,"hash.outputLen"),h!==y))throw new Error(`hash.outputLen must be ${y}, got ${h}`);const g=s.randomBytes===void 0?F2:s.randomBytes,v=s.adjustScalarBytes===void 0?V=>V:s.adjustScalarBytes,x=s.domain===void 0?(V,X,N)=>{if(xc(N,"phflag"),X.length||N)throw new Error("Contexts/pre-hash are not supported");return V}:s.domain;function T(V){return p.create(Qo(V))}function w(V){const X=H.secretKey;St(V,H.secretKey,"secretKey");const N=St(i(V),2*X,"hashedSecretKey"),te=v(N.slice(0,X)),D=N.slice(X,2*X),B=T(te);return{head:te,prefix:D,scalar:B}}function C(V){const{head:X,prefix:N,scalar:te}=w(V),D=f.multiply(te),B=D.toBytes();return{head:X,prefix:N,scalar:te,point:D,pointBytes:B}}function A(V){return C(V).pointBytes}function M(V=Uint8Array.of(),...X){const N=wv(...X);return T(i(x(N,St(V,void 0,"context"),!!c)))}function _(V,X,N={}){V=St(V,void 0,"message"),c&&(V=c(V));const{prefix:te,scalar:D,pointBytes:B}=C(X),$=M(N.context,te,V),J=f.multiply($).toBytes(),oe=M(N.context,J,B,V),j=p.create($+oe*D);if(!p.isValid(j))throw new Error("sign failed: invalid s");const Y=wv(J,p.toBytes(j));return St(Y,H.signature,"result")}const z={zip215:s.zip215};function U(V,X,N,te=z){const{context:D}=te,B=te.zip215===void 0?!!z.zip215:te.zip215,$=H.signature;V=St(V,$,"signature"),X=St(X,void 0,"message"),N=St(N,H.publicKey,"publicKey"),B!==void 0&&xc(B,"zip215"),c&&(X=c(X));const J=$/2,oe=V.subarray(0,J),j=Qo(V.subarray(J,$));let Y,W,ae;try{Y=n.fromBytes(N,B),W=n.fromBytes(oe,B),ae=f.multiplyUnsafe(j)}catch{return!1}if(!B&&Y.isSmallOrder())return!1;const se=M(D,oe,N,X);return W.add(Y.multiplyUnsafe(se)).subtract(ae).clearCofactor().is0()}const q=m.BYTES,H={secretKey:q,publicKey:q,signature:2*q,seed:q};function k(V){return V=V===void 0?g(H.seed):V,St(V,H.seed,"seed")}function P(V){return L8(V)&&V.length===H.secretKey}function ee(V,X){try{return!!n.fromBytes(V,X===void 0?z.zip215:X)}catch{return!1}}const I={getExtendedPublicKey:C,randomSecretKey:k,isValidSecretKey:P,isValidPublicKey:ee,toMontgomery(V){const{y:X}=n.fromBytes(V),N=H.publicKey,te=N===32;if(!te&&N!==57)throw new Error("only defined for 25519 and 448");const D=te?m.div(xt+X,xt-X):m.div(X-xt,X+xt);return m.toBytes(D)},toMontgomerySecret(V){const X=H.secretKey;St(V,X);const N=i(V.subarray(0,X));return v(N).subarray(0,X)}};return Object.freeze(H),Object.freeze(I),Object.freeze({keygen:fx(k,A),getPublicKey:A,sign:_,verify:U,utils:I,Point:n,lengths:H})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ri=BigInt(0),Gr=BigInt(1),Ps=BigInt(2);function oC(n){return ou(n,{P:"bigint",type:"string",adjustScalarBytes:"function",powPminus2:"function"},{randomBytes:"function"}),Object.freeze({...n})}function rC(n){const a=oC(n),{P:r,type:i,adjustScalarBytes:s,powPminus2:c,randomBytes:f}=a,m=i==="x25519";if(!m&&i!=="x448")throw new Error("invalid type");const p=f===void 0?F2:f,h=m?255:448,y=m?32:56,g=BigInt(m?9:5),v=BigInt(m?121665:39081),x=m?Ps**BigInt(254):Ps**BigInt(447),T=m?BigInt(8)*Ps**BigInt(251)-Gr:BigInt(4)*Ps**BigInt(445)-Gr,w=x+T+Gr,C=N=>rt(N,r),A=M(g);function M(N){return P2(C(N),y)}function _(N){const te=pi(St(N,y,"uCoordinate"));return m&&(te[31]&=127),C(Qo(te))}function z(N){return Qo(s(pi(St(N,y,"scalar"))))}function U(N,te){const D=ee(_(te),z(N));if(D===ri)throw new Error("invalid private or public key received");return M(D)}function q(N){return U(N,A)}const H=q,k=U;function P(N,te,D){const B=C(N*(te-D));return te=C(te-B),D=C(D+B),{x_2:te,x_3:D}}function ee(N,te){Sc("u",N,ri,r),Sc("scalar",te,x,w);const D=te,B=N;let $=Gr,J=ri,oe=N,j=Gr,Y=ri;for(let ae=BigInt(h-1);ae>=ri;ae--){const se=D>>ae&Gr;Y^=se,{x_2:$,x_3:oe}=P(Y,$,oe),{x_2:J,x_3:j}=P(Y,J,j),Y=se;const ce=$+J,ue=C(ce*ce),me=$-J,he=C(me*me),Se=ue-he,Ne=oe+j,ve=oe-j,ze=C(ve*ce),De=C(Ne*me),Ke=ze+De,lt=ze-De;oe=C(Ke*Ke),j=C(B*C(lt*lt)),$=C(ue*he),J=C(Se*(ue+C(v*Se)))}({x_2:$,x_3:oe}=P(Y,$,oe)),{x_2:J,x_3:j}=P(Y,J,j);const W=c(J);return C($*W)}const I={secretKey:y,publicKey:y,seed:y},V=N=>(N=N===void 0?p(y):N,St(N,I.seed,"seed"),N),X={randomSecretKey:V};return Object.freeze(I),Object.freeze(X),Object.freeze({keygen:fx(V,H),getSharedSecret:k,getPublicKey:H,scalarMult:U,scalarMultBase:q,utils:X,GuBytes:A.slice(),lengths:I})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const lC=BigInt(0),ui=BigInt(1),zv=BigInt(2),iC=BigInt(3),sC=BigInt(5),cC=BigInt(8),Fr=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),dx={p:Fr,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:cC,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function mx(n){const a=BigInt(10),r=BigInt(20),i=BigInt(40),s=BigInt(80),c=Fr,m=n*n%c*n%c,p=Mn(m,zv,c)*m%c,h=Mn(p,ui,c)*n%c,y=Mn(h,sC,c)*h%c,g=Mn(y,a,c)*y%c,v=Mn(g,r,c)*g%c,x=Mn(v,i,c)*v%c,T=Mn(x,s,c)*x%c,w=Mn(T,s,c)*x%c,C=Mn(w,a,c)*y%c;return{pow_p_5_8:Mn(C,zv,c)*n%c,b2:m}}function hx(n){return n[0]&=248,n[31]&=127,n[31]|=64,n}const xm=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function px(n,a){const r=Fr,i=rt(a*a*a,r),s=rt(i*i*a,r),c=mx(n*s).pow_p_5_8;let f=rt(n*i*c,r);const m=rt(a*f*f,r),p=f,h=rt(f*xm,r),y=m===n,g=m===rt(-n,r),v=m===rt(-n*xm,r);return y&&(f=p),(g||v)&&(f=h),Do(f,r)&&(f=rt(-f,r)),{isValid:y||g,value:f}}const $o=nC(dx,{uvRatio:px}),Bo=$o.Fp,uC=$o.Fn;function fC(n){return aC($o,U2,Object.assign({adjustScalarBytes:hx,zip215:!0},n))}const dC=fC({}),mC=(()=>{const n=Fr;return rC({P:n,type:"x25519",powPminus2:a=>{const{pow_p_5_8:r,b2:i}=mx(a);return rt(Mn(r,iC,n)*i,n)},adjustScalarBytes:hx})})(),Ov=xm,hC=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),Nv=n=>px(ui,n),pC=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),gC=n=>Bo.create(Qo(n)&pC),Kt=class Kt extends ii{constructor(a){super(a)}static fromAffine(a){return new Kt($o.fromAffine(a))}assertSame(a){if(!(a instanceof Kt))throw new Error("RistrettoPoint expected")}init(a){return new Kt(a)}static fromBytes(a){wn(a,32);const{a:r,d:i}=dx,s=Fr,c=z=>Bo.create(z),f=gC(a);if(!U8(Bo.toBytes(f),a)||Do(f,s))throw new Error("invalid ristretto255 encoding 1");const m=c(f*f),p=c(ui+r*m),h=c(ui-r*m),y=c(p*p),g=c(h*h),v=c(r*i*y-g),{isValid:x,value:T}=Nv(c(v*g)),w=c(T*h),C=c(T*w*v);let A=c((f+f)*w);Do(A,s)&&(A=c(-A));const M=c(p*C),_=c(A*M);if(!x||Do(_,s)||M===lC)throw new Error("invalid ristretto255 encoding 2");return new Kt(new $o(A,M,ui,_))}static fromHex(a){return Kt.fromBytes(gh(a))}toBytes(){let{X:a,Y:r,Z:i,T:s}=this.ep;const c=Fr,f=C=>Bo.create(C),m=f(f(i+r)*f(i-r)),p=f(a*r),h=f(p*p),{value:y}=Nv(f(m*h)),g=f(y*m),v=f(y*p),x=f(g*v*s);let T;if(Do(s*x,c)){let C=f(r*Ov),A=f(a*Ov);a=C,r=A,T=f(g*hC)}else T=v;Do(a*x,c)&&(r=f(-r));let w=f((i-r)*T);return Do(w,c)&&(w=f(-w)),Bo.toBytes(w)}equals(a){this.assertSame(a);const{X:r,Y:i}=this.ep,{X:s,Y:c}=a.ep,f=h=>Bo.create(h),m=f(r*c)===f(i*s),p=f(i*c)===f(r*s);return m||p}is0(){return this.equals(Kt.ZERO)}};de(Kt,"BASE",new Kt($o.BASE)),de(Kt,"ZERO",new Kt($o.ZERO)),de(Kt,"Fp",Bo),de(Kt,"Fn",uC);let Jr=Kt;Object.freeze(Jr.BASE);Object.freeze(Jr.ZERO);Object.freeze(Jr.prototype);Object.freeze(Jr);function yC(n,a,r){return au(n),r===void 0&&(r=new Uint8Array(n.outputLen)),yh(n,r,a)}const Id=Uint8Array.of(0),Dv=Uint8Array.of();function vC(n,a,r,i=32){au(n),Fn(i,"length"),wn(a,void 0,"prk");const s=n.outputLen;if(a.length<s)throw new Error('"prk" must be at least HashLen octets');if(i>255*s)throw new Error("Length must be <= 255*HashLen");const c=Math.ceil(i/s);r===void 0?r=Dv:wn(r,void 0,"info");const f=new Uint8Array(c*s),m=yh.create(n,a),p=m._cloneInto(),h=new Uint8Array(m.outputLen);for(let y=0;y<c;y++)Id[0]=y+1,p.update(y===0?Dv:h).update(r).update(Id).digestInto(h),f.set(h,s*y),m._cloneInto(p);return m.destroy(),p.destroy(),co(h,Id),f.slice(0,i)}const Bv=(n,a,r,i,s)=>vC(n,yC(n,a,r),i,s),bC="unibus-sign-v1",xC="unibus-kex-v1";function gx(n){const a=j8(n.normalize("NFKD")),r=new TextEncoder,i=Bv(hm,a,void 0,r.encode(bC),32),s=Bv(hm,a,void 0,r.encode(xC),32),c=dC.getPublicKey(i),f=N2(i,c),m=mC.getPublicKey(s);return{signPub:Ho(c),signPriv:Ho(f),kexPub:Ho(m),kexPriv:Ho(s)}}const Lv=21e4;function Fd(n){let a="";for(const r of n)a+=r.toString(16).padStart(2,"0");return a}function Jd(n){const a=new Uint8Array(n.length/2);for(let r=0;r<a.length;r++)a[r]=parseInt(n.slice(r*2,r*2+2),16);return a}async function yx(n,a,r){const i=new TextEncoder,s=await crypto.subtle.importKey("raw",i.encode(n),"PBKDF2",!1,["deriveKey"]);return crypto.subtle.deriveKey({name:"PBKDF2",salt:a,iterations:r,hash:"SHA-256"},s,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async function SC(n,a){const r=crypto.getRandomValues(new Uint8Array(16)),i=crypto.getRandomValues(new Uint8Array(12)),s=await yx(a,r,Lv),c=await crypto.subtle.encrypt({name:"AES-GCM",iv:i},s,n);return{kdf:"PBKDF2-SHA256",iters:Lv,salt:Fd(r),iv:Fd(i),ciphertext:Fd(new Uint8Array(c))}}class vx extends Error{constructor(){super("wrong password"),this.name="WrongPasswordError"}}async function wC(n,a){const r=await yx(a,Jd(n.salt),n.iters);try{const i=await crypto.subtle.decrypt({name:"AES-GCM",iv:Jd(n.iv)},r,Jd(n.ciphertext));return new Uint8Array(i)}catch{throw new vx}}async function EC(n,a){return SC(new TextEncoder().encode(JSON.stringify(n)),a)}async function RC(n,a){const r=await wC(n,a);return JSON.parse(new TextDecoder().decode(r))}const CC="unibus-wallet",TC=1,Ec="identity",bx="active";function xx(){return new Promise((n,a)=>{const r=indexedDB.open(CC,TC);r.onupgradeneeded=()=>{const i=r.result;i.objectStoreNames.contains(Ec)||i.createObjectStore(Ec,{keyPath:"id"})},r.onsuccess=()=>n(r.result),r.onerror=()=>a(r.error)})}function Sx(n,a,r){return new Promise((i,s)=>{const c=n.transaction(Ec,a),f=r(c.objectStore(Ec));f.onsuccess=()=>i(f.result),f.onerror=()=>s(f.error)})}async function wx(){const n=await xx();try{return await Sx(n,"readonly",r=>r.get(bx))??null}finally{n.close()}}async function AC(n){const a=await xx();try{await Sx(a,"readwrite",r=>r.put({id:bx,...n}))}finally{a.close()}}function Ex(n){return{id:n.endpoint,handle:n.handle||n.endpoint.slice(0,8)}}async function Rx(n,a,r){const i=await EC(n,r);await AC({handle:a,signPub:n.signPub,kexPub:n.kexPub,enc:i,createdAt:Date.now()});const s=await Zo.session(n,a);return Ex(s)}async function _C(n){const a=await wx();if(!a)throw new MC;const r=await RC(a.enc,n),i=await Zo.session(r,a.handle);return Ex(i)}async function kv(){return wx()}class MC extends Error{constructor(){super("no local identity on this device"),this.name="NoLocalIdentityError"}}function jC(n,a){const r=Array.from({length:n},(i,s)=>s);for(let i=r.length-1;i>0;i--){const s=Math.floor(Math.random()*(i+1));[r[i],r[s]]=[r[s],r[i]]}return r.slice(0,a).sort((i,s)=>i-s)}function zC({token:n,onJoined:a,onRecover:r}){const[i,s]=E.useState("generating"),[c,f]=E.useState(""),[m,p]=E.useState(null),[h,y]=E.useState(null);E.useEffect(()=>{if(!n){y("Enlace de invitación inválido: falta el token.");return}try{const v=N8();f(v),p(gx(v)),s("show-seed")}catch{y("No se pudo generar la identidad en este navegador.")}},[n]);const g=E.useMemo(()=>bh(c),[c]);return h&&i==="generating"?S.jsxs(so,{children:[S.jsx(al,{color:"red",icon:S.jsx(w2,{size:18}),title:"Error",children:h}),S.jsx(pt,{variant:"light",mt:"md",onClick:r,children:"Recuperar con mi seed"})]}):i==="generating"||!m?S.jsx(In,{h:"100vh",bg:"dark.9",children:S.jsx(Bn,{color:"brand"})}):i==="show-seed"?S.jsx(OC,{words:g,onContinue:()=>s("confirm-seed")}):i==="confirm-seed"?S.jsx(NC,{words:g,onBack:()=>s("show-seed"),onConfirmed:()=>s("password")}):S.jsx(DC,{busy:i==="joining",error:h,onSubmit:async v=>{s("joining"),y(null);try{const x=await Zo.register(n,m.signPub,m.kexPub),T=await Rx(m,x.handle,v);a(T)}catch(x){y(x instanceof nu?x.message:"No se pudo completar el alta."),s("password")}}})}function OC({words:n,onContinue:a}){const[r,i]=E.useState(!1),s=n.join(" ");return S.jsxs(so,{children:[S.jsx(Ko,{icon:S.jsx(A2,{size:30}),title:"Guarda tu frase de recuperación",subtitle:"Estas 12 palabras son tu ÚNICA forma de recuperar tu cuenta si olvidas la contraseña o cambias de dispositivo. No las compartas con nadie."}),S.jsx(rl,{bg:"dark.8",radius:"md",p:"md",withBorder:!0,children:S.jsx(ph,{cols:3,spacing:"xs",verticalSpacing:"xs",children:n.map((c,f)=>S.jsxs(nt,{gap:6,wrap:"nowrap",children:[S.jsx($e,{size:"xs",c:"dimmed",w:18,ta:"right",children:f+1}),S.jsx($e,{size:"sm",ff:"monospace",fw:600,children:c})]},f))})}),S.jsx(nt,{justify:"space-between",children:S.jsx(W1,{value:s,children:({copied:c,copy:f})=>S.jsx(pt,{variant:"subtle",size:"xs",color:c?"teal":"gray",leftSection:c?S.jsx(E2,{size:14}):S.jsx(pR,{size:14}),onClick:f,children:c?"Copiada":"Copiar"})})}),S.jsx(al,{color:"yellow",variant:"light",icon:S.jsx(w2,{size:16}),children:"unibus NO guarda esta frase. Si la pierdes y olvidas la contraseña, solo el administrador podrá darte de alta de nuevo."}),S.jsx(Po,{checked:r,onChange:c=>i(c.currentTarget.checked),label:"He guardado mi frase de recuperación en un lugar seguro"}),S.jsx(pt,{disabled:!r,onClick:a,children:"Continuar"})]})}function NC({words:n,onBack:a,onConfirmed:r}){const i=E.useMemo(()=>jC(n.length,3),[n.length]),[s,c]=E.useState({}),f=i.every(p=>(s[p]??"").trim().toLowerCase()===n[p]),m=i.some(p=>(s[p]??"").length>0);return S.jsxs(so,{children:[S.jsx(Ko,{icon:S.jsx(E2,{size:30}),title:"Confirma tu frase",subtitle:"Escribe las palabras solicitadas para confirmar que la guardaste bien."}),S.jsx(Wt,{gap:"sm",children:i.map(p=>S.jsx(er,{label:`Palabra #${p+1}`,placeholder:`palabra ${p+1}`,value:s[p]??"",error:(s[p]??"").length>0&&(s[p]??"").trim().toLowerCase()!==n[p]?"No coincide":void 0,onChange:h=>{const y=h.currentTarget.value;c(g=>({...g,[p]:y}))},autoComplete:"off",spellCheck:!1},p))}),!f&&m&&S.jsx($e,{size:"xs",c:"dimmed",children:"Revisa el orden y la ortografía de las palabras."}),S.jsxs(nt,{grow:!0,children:[S.jsx(pt,{variant:"default",onClick:a,children:"Volver a ver"}),S.jsx(pt,{disabled:!f,onClick:r,children:"Confirmar"})]})]})}function DC({busy:n,error:a,onSubmit:r}){const[i,s]=E.useState(""),[c,f]=E.useState(""),m=i.length>0&&i.length<8,p=c.length>0&&i!==c,h=i.length>=8&&i===c&&!n;return S.jsxs(so,{children:[S.jsx(Ko,{icon:S.jsx(Yo,{size:30}),title:"Protege tu identidad",subtitle:"Elige una contraseña para cifrar tu clave en ESTE dispositivo. No se guarda ni se envía a ningún servidor; solo desbloquea tu clave local."}),S.jsx(io,{label:"Contraseña",description:"Mínimo 8 caracteres",leftSection:S.jsx(Yo,{size:16}),value:i,error:m?"Demasiado corta":void 0,onChange:y=>s(y.currentTarget.value),"data-autofocus":!0}),S.jsx(io,{label:"Repite la contraseña",leftSection:S.jsx(Yo,{size:16}),value:c,error:p?"No coincide":void 0,onChange:y=>f(y.currentTarget.value),onKeyDown:y=>y.key==="Enter"&&h&&r(i)}),a&&S.jsx($e,{c:"red",size:"sm",ta:"center",children:a}),S.jsx(pt,{disabled:!h,loading:n,onClick:()=>r(i),children:"Crear cuenta y entrar"})]})}function BC({onRecovered:n,onBack:a}){const[r,i]=E.useState("phrase"),[s,c]=E.useState(""),[f,m]=E.useState(""),[p,h]=E.useState(""),[y,g]=E.useState(""),[v,x]=E.useState(!1),[T,w]=E.useState(null),C=vh(s),A=bh(s).length,M=D8(s),_=E.useMemo(()=>M?gx(C):null,[M,C]);if(r==="phrase")return S.jsxs(so,{children:[S.jsx(Ko,{icon:S.jsx(T2,{size:30}),title:"Recuperar con tu frase",subtitle:"Introduce tus 12 palabras de recuperación. Se quedan en este navegador: nunca se envían al servidor."}),S.jsx(oh,{label:"Frase de recuperación (12 palabras)",placeholder:"palabra1 palabra2 palabra3 …",autosize:!0,minRows:3,value:s,onChange:k=>c(k.currentTarget.value),spellCheck:!1,autoComplete:"off"}),S.jsx($e,{size:"xs",c:M?"teal":"dimmed",children:A>0?M?"Frase válida ✓":`${A}/12 palabras — frase aún no válida`:"Separadas por espacios."}),_&&S.jsxs(al,{color:"brand",variant:"light",title:"Identidad reconstruida",children:[S.jsx($e,{size:"xs",children:"Tu clave pública de firma (sign_pub):"}),S.jsx(Jc,{block:!0,children:_.signPub})]}),S.jsxs(nt,{grow:!0,children:[S.jsx(pt,{variant:"default",onClick:a,children:"Volver"}),S.jsx(pt,{disabled:!M,onClick:()=>i("password"),children:"Continuar"})]})]});const z=p.length>0&&p.length<8,U=y.length>0&&p!==y,q=p.length>=8&&p===y&&!v&&_!==null,H=async()=>{if(!(!q||!_)){x(!0),w(null);try{const k=await Rx(_,f.trim(),p);n(k)}catch(k){w(k instanceof nu?k.message:"No se pudo abrir la sesión con la identidad recuperada."),x(!1)}}};return S.jsxs(so,{children:[S.jsx(Ko,{icon:S.jsx(Yo,{size:30}),title:"Nueva contraseña",subtitle:"Elige una contraseña para cifrar tu clave recuperada en este dispositivo."}),S.jsxs(Wt,{gap:"sm",children:[S.jsx(er,{label:"Nombre a mostrar (opcional)",placeholder:"tu-handle",value:f,onChange:k=>m(k.currentTarget.value)}),S.jsx(io,{label:"Contraseña",description:"Mínimo 8 caracteres",leftSection:S.jsx(Yo,{size:16}),value:p,error:z?"Demasiado corta":void 0,onChange:k=>h(k.currentTarget.value),"data-autofocus":!0}),S.jsx(io,{label:"Repite la contraseña",leftSection:S.jsx(Yo,{size:16}),value:y,error:U?"No coincide":void 0,onChange:k=>g(k.currentTarget.value),onKeyDown:k=>k.key==="Enter"&&void H()})]}),T&&S.jsx($e,{c:"red",size:"sm",ta:"center",children:T}),S.jsxs(nt,{grow:!0,children:[S.jsx(pt,{variant:"default",onClick:()=>i("phrase"),children:"Volver"}),S.jsx(pt,{disabled:!q,loading:v,onClick:()=>void H(),children:"Recuperar y entrar"})]}),S.jsx(nt,{justify:"center",children:S.jsx(Yc,{size:"xs",c:"dimmed",onClick:a,children:"Cancelar"})})]})}function LC({handle:n,onLoggedIn:a,onRecover:r}){const[i,s]=E.useState(""),[c,f]=E.useState(!1),[m,p]=E.useState(null),h=async()=>{if(!(!i||c)){f(!0),p(null);try{const y=await _C(i);a(y)}catch(y){y instanceof vx?p("Contraseña incorrecta."):y instanceof nu?p(y.message):p("No se pudo abrir tu identidad."),f(!1)}}};return S.jsxs(so,{width:400,children:[S.jsx(Ko,{icon:S.jsx(LR,{size:30}),title:"unibus",subtitle:`Desbloquea la identidad de ${n||"este dispositivo"}`}),S.jsx(io,{label:"Contraseña",description:"Descifra tu clave guardada en este dispositivo",placeholder:"••••••••",leftSection:S.jsx(Yo,{size:16}),value:i,onChange:y=>s(y.currentTarget.value),onKeyDown:y=>y.key==="Enter"&&void h(),"data-autofocus":!0}),m&&S.jsx($e,{c:"red",size:"sm",ta:"center",children:m}),S.jsx(pt,{fullWidth:!0,onClick:()=>void h(),disabled:!i,loading:c,children:"Entrar"}),S.jsx(nt,{justify:"center",children:S.jsx(Yc,{size:"xs",c:"dimmed",onClick:r,children:"¿Olvidaste la contraseña? Recupera con tu frase de 12 palabras"})})]})}function kC(n){const a=n.trim();if(!a)return"";const r=a.match(/[?&]token=([^&\s]+)/);return r?decodeURIComponent(r[1]):a.startsWith("token=")?a.slice(6):a}function HC({onJoinToken:n,onRecover:a}){const[r,i]=E.useState(""),s=kC(r);return S.jsxs(so,{width:420,children:[S.jsx(Ko,{icon:S.jsx(A2,{size:30}),title:"unibus",subtitle:"Mensajería cifrada de extremo a extremo. Tu identidad vive en tu dispositivo."}),S.jsxs(Wt,{gap:"xs",children:[S.jsx($e,{size:"sm",fw:600,children:"Tengo un enlace de invitación"}),S.jsx(er,{placeholder:"Pega aquí tu enlace /join?token=…",leftSection:S.jsx(ER,{size:16}),value:r,onChange:c=>i(c.currentTarget.value),onKeyDown:c=>c.key==="Enter"&&s&&n(s)}),S.jsx(pt,{disabled:!s,onClick:()=>n(s),children:"Crear mi cuenta"})]}),S.jsx(Xo,{label:"o",labelPosition:"center",color:"dark.4"}),S.jsxs(Wt,{gap:"xs",children:[S.jsx($e,{size:"sm",fw:600,children:"Ya tengo una cuenta"}),S.jsx(pt,{variant:"default",leftSection:S.jsx(T2,{size:16}),onClick:a,children:"Recuperar con mi seed (12 palabras)"})]})]})}function UC(){return window.location.pathname!=="/join"?null:new URLSearchParams(window.location.search).get("token")}function $C(){window.location.pathname!=="/"&&window.history.replaceState(null,"","/")}function qC(){const[n,a]=E.useState("loading"),[r,i]=E.useState(null),[s,c]=E.useState(""),[f,m]=E.useState("");E.useEffect(()=>{const y=UC();if(y){c(y),a("join");return}let g=!1;return(async()=>{try{const x=await Zo.me();if(g)return;i({id:x.endpoint,handle:x.handle||x.endpoint.slice(0,8)}),a("chat");return}catch{}const v=await kv();g||(v?(m(v.handle),a("login")):a("welcome"))})(),()=>{g=!0}},[]);const p=y=>{i(y),a("chat"),$C()},h=()=>{Zo.logout().catch(()=>{}),i(null),kv().then(y=>{y?(m(y.handle),a("login")):a("welcome")})};switch(n){case"loading":return S.jsx(In,{h:"100vh",bg:"dark.9",children:S.jsx(Bn,{color:"brand"})});case"join":return S.jsx(zC,{token:s,onJoined:p,onRecover:()=>a("recover")});case"welcome":return S.jsx(HC,{onJoinToken:y=>{c(y),a("join")},onRecover:()=>a("recover")});case"login":return S.jsx(LC,{handle:f,onLoggedIn:p,onRecover:()=>a("recover")});case"recover":return S.jsx(BC,{onRecovered:p,onBack:()=>a(f?"login":"welcome")});case"chat":return r?S.jsx(XR,{user:r,onLogout:h}):S.jsx(In,{h:"100vh",bg:"dark.9",children:S.jsx(Bn,{color:"brand"})})}}Ww.createRoot(document.getElementById("root")).render(S.jsx(E.StrictMode,{children:S.jsx(nb,{theme:uR,forceColorScheme:"dark",children:S.jsx(qC,{})})}));
