diff --git a/web/dist/assets/index-CGRScjCy.js b/web/dist/assets/index-CGRScjCy.js deleted file mode 100644 index 163fce8..0000000 --- a/web/dist/assets/index-CGRScjCy.js +++ /dev/null @@ -1,158 +0,0 @@ -var Ow=Object.defineProperty;var Mw=(n,a,i)=>a in n?Ow(n,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[a]=i;var fy=(n,a,i)=>Mw(n,typeof a!="symbol"?a+"":a,i);function zw(n,a){for(var i=0;ir[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"]'))r(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function i(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(s){if(s.ep)return;s.ep=!0;const u=i(s);fetch(s.href,u)}})();function p0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var pd={exports:{}},ri={};/** - * @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 dy;function Dw(){if(dy)return ri;dy=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(r,s,u){var d=null;if(u!==void 0&&(d=""+u),s.key!==void 0&&(d=""+s.key),"key"in s){u={};for(var m in s)m!=="key"&&(u[m]=s[m])}else u=s;return s=u.ref,{$$typeof:n,type:r,key:d,ref:s!==void 0?s:null,props:u}}return ri.Fragment=a,ri.jsx=i,ri.jsxs=i,ri}var my;function Bw(){return my||(my=1,pd.exports=Dw()),pd.exports}var v=Bw(),hd={exports:{}},Se={};/** - * @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 py;function Hw(){if(py)return Se;py=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.iterator;function w(j){return j===null||typeof j!="object"?null:(j=y&&j[y]||j["@@iterator"],typeof j=="function"?j:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,N={};function A(j,k,F){this.props=j,this.context=k,this.refs=N,this.updater=F||C}A.prototype.isReactComponent={},A.prototype.setState=function(j,k){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,k,"setState")},A.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function T(){}T.prototype=A.prototype;function _(j,k,F){this.props=j,this.context=k,this.refs=N,this.updater=F||C}var z=_.prototype=new T;z.constructor=_,R(z,A.prototype),z.isPureReactComponent=!0;var L=Array.isArray;function $(){}var U={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function ae(j,k,F){var P=F.ref;return{$$typeof:n,type:j,key:k,ref:P!==void 0?P:null,props:F}}function oe(j,k){return ae(j.type,k,j.props)}function le(j){return typeof j=="object"&&j!==null&&j.$$typeof===n}function ee(j){var k={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(F){return k[F]})}var re=/\/+/g;function K(j,k){return typeof j=="object"&&j!==null&&j.key!=null?ee(""+j.key):k.toString(36)}function ie(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then($,$):(j.status="pending",j.then(function(k){j.status==="pending"&&(j.status="fulfilled",j.value=k)},function(k){j.status==="pending"&&(j.status="rejected",j.reason=k)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function O(j,k,F,P,ue){var fe=typeof j;(fe==="undefined"||fe==="boolean")&&(j=null);var pe=!1;if(j===null)pe=!0;else switch(fe){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(j.$$typeof){case n:case a:pe=!0;break;case S:return pe=j._init,O(pe(j._payload),k,F,P,ue)}}if(pe)return ue=ue(j),pe=P===""?"."+K(j,0):P,L(ue)?(F="",pe!=null&&(F=pe.replace(re,"$&/")+"/"),O(ue,k,F,"",function(ze){return ze})):ue!=null&&(le(ue)&&(ue=oe(ue,F+(ue.key==null||j&&j.key===ue.key?"":(""+ue.key).replace(re,"$&/")+"/")+pe)),k.push(ue)),1;pe=0;var Ce=P===""?".":P+":";if(L(j))for(var Re=0;Re>>1,te=O[J];if(0>>1;Js(F,H))Ps(ue,F)?(O[J]=ue,O[P]=H,J=P):(O[J]=F,O[k]=H,J=k);else if(Ps(ue,H))O[J]=ue,O[P]=H,J=P;else break e}}return B}function s(O,B){var H=O.sortIndex-B.sortIndex;return H!==0?H:O.id-B.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var p=[],h=[],S=1,g=null,y=3,w=!1,C=!1,R=!1,N=!1,A=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function z(O){for(var B=i(h);B!==null;){if(B.callback===null)r(h);else if(B.startTime<=O)r(h),B.sortIndex=B.expirationTime,a(p,B);else break;B=i(h)}}function L(O){if(R=!1,z(O),!C)if(i(p)!==null)C=!0,$||($=!0,ee());else{var B=i(h);B!==null&&ie(L,B.startTime-O)}}var $=!1,U=-1,X=5,ae=-1;function oe(){return N?!0:!(n.unstable_now()-aeO&&oe());){var J=g.callback;if(typeof J=="function"){g.callback=null,y=g.priorityLevel;var te=J(g.expirationTime<=O);if(O=n.unstable_now(),typeof te=="function"){g.callback=te,z(O),B=!0;break t}g===i(p)&&r(p),z(O)}else r(p);g=i(p)}if(g!==null)B=!0;else{var j=i(h);j!==null&&ie(L,j.startTime-O),B=!1}}break e}finally{g=null,y=H,w=!1}B=void 0}}finally{B?ee():$=!1}}}var ee;if(typeof _=="function")ee=function(){_(le)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,K=re.port2;re.port1.onmessage=le,ee=function(){K.postMessage(null)}}else ee=function(){A(le,0)};function ie(O,B){U=A(function(){O(n.unstable_now())},B)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125J?(O.sortIndex=H,a(h,O),i(p)===null&&O===i(h)&&(R?(T(U),U=-1):R=!0,ie(L,H-J))):(O.sortIndex=te,a(p,O),C||w||(C=!0,$||($=!0,ee()))),O},n.unstable_shouldYield=oe,n.unstable_wrapCallback=function(O){var B=y;return function(){var H=y;y=B;try{return O.apply(this,arguments)}finally{y=H}}}})(yd)),yd}var gy;function Uw(){return gy||(gy=1,gd.exports=Lw()),gd.exports}var bd={exports:{}},Dt={};/** - * @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 yy;function $w(){if(yy)return Dt;yy=1;var n=rm();function a(p){var h="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),bd.exports=$w(),bd.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 Sy;function Yw(){if(Sy)return ii;Sy=1;var n=Uw(),a=rm(),i=v0();function r(e){var t="https://react.dev/errors/"+e;if(1te||(e.current=J[te],J[te]=null,te--)}function F(e,t){te++,J[te]=e.current,e.current=t}var P=j(null),ue=j(null),fe=j(null),pe=j(null);function Ce(e,t){switch(F(fe,t),F(ue,e),F(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Dg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Dg(t),e=Bg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k(P),F(P,e)}function Re(){k(P),k(ue),k(fe)}function ze(e){e.memoizedState!==null&&F(pe,e);var t=P.current,l=Bg(t,e.type);t!==l&&(F(ue,e),F(P,l))}function lt(e){ue.current===e&&(k(P),k(ue)),pe.current===e&&(k(pe),ni._currentValue=H)}var be,$e;function qe(e){if(be===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||"",$e=-1)":-1c||M[o]!==q[c]){var W=` -`+M[o].replace(" at new "," at ");return e.displayName&&W.includes("")&&(W=W.replace("",e.displayName)),W}while(1<=o&&0<=c);break}}}finally{at=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?qe(l):""}function Mt(e,t){switch(e.tag){case 26:case 27:case 5:return qe(e.type);case 16:return qe("Lazy");case 13:return e.child!==t&&t!==null?qe("Suspense Fallback"):qe("Suspense");case 19:return qe("SuspenseList");case 0:case 15:return Ct(e.type,!1);case 11:return Ct(e.type.render,!1);case 1:return Ct(e.type,!0);case 31:return qe("Activity");default:return""}}function Dn(e){try{var t="",l=null;do t+=Mt(e,l),l=e,e=e.return;while(e);return t}catch(o){return` -Error generating stack: `+o.message+` -`+o.stack}}var qt=Object.prototype.hasOwnProperty,ut=n.unstable_scheduleCallback,tn=n.unstable_cancelCallback,Bn=n.unstable_shouldYield,Ye=n.unstable_requestPaint,We=n.unstable_now,we=n.unstable_getCurrentPriorityLevel,Ue=n.unstable_ImmediatePriority,Ut=n.unstable_UserBlockingPriority,je=n.unstable_NormalPriority,Hn=n.unstable_LowPriority,Jn=n.unstable_IdlePriority,zt=n.log,Ln=n.unstable_setDisableYieldValue,nn=null,xt=null;function tt(e){if(typeof zt=="function"&&Ln(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(nn,e)}catch{}}var Ge=Math.clz32?Math.clz32:Di,ml=Math.log,zi=Math.LN2;function Di(e){return e>>>=0,e===0?32:31-(ml(e)/zi|0)|0}var no=256,lo=262144,ot=4194304;function ft(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 Gl(e,t,l){var o=e.pendingLanes;if(o===0)return 0;var c=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var E=o&134217727;return E!==0?(o=E&~f,o!==0?c=ft(o):(b&=E,b!==0?c=ft(b):l||(l=E&~e,l!==0&&(c=ft(l))))):(E=o&~f,E!==0?c=ft(E):b!==0?c=ft(b):l||(l=o&~e,l!==0&&(c=ft(l)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:c}function hr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yS(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 hp(){var e=ot;return ot<<=1,(ot&62914560)===0&&(ot=4194304),e}function tu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function vr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function bS(e,t,l,o,c,f){var b=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var E=e.entanglements,M=e.expirationTimes,q=e.hiddenUpdates;for(l=b&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var TS=/[\n"\\]/g;function gn(e){return e.replace(TS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function iu(e,t,l,o,c,f,b,E){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=""+vn(t)):e.value!==""+vn(t)&&(e.value=""+vn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?su(e,b,vn(t)):l!=null?su(e,b,vn(l)):o!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+vn(E):e.removeAttribute("name")}function Ap(e,t,l,o,c,f,b,E){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||l!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){ru(e);return}l=l!=null?""+vn(l):"",t=t!=null?""+vn(t):l,E||t===e.value||(e.value=t),e.defaultValue=t}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=E?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),ru(e)}function su(e,t,l){t==="number"&&Li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function co(e,t,l,o){if(e=e.options,t){t={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mu=!1;if(vl)try{var Sr={};Object.defineProperty(Sr,"passive",{get:function(){mu=!0}}),window.addEventListener("test",Sr,Sr),window.removeEventListener("test",Sr,Sr)}catch{mu=!1}var Zl=null,pu=null,$i=null;function Bp(){if($i)return $i;var e,t=pu,l=t.length,o,c="value"in Zl?Zl.value:Zl.textContent,f=c.length;for(e=0;e=Er),kp=" ",Xp=!1;function Vp(e,t){switch(e){case"keyup":return IS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var po=!1;function tx(e,t){switch(e){case"compositionend":return qp(t);case"keypress":return t.which!==32?null:(Xp=!0,kp);case"textInput":return e=t.data,e===kp&&Xp?null:e;default:return null}}function nx(e,t){if(po)return e==="compositionend"||!bu&&Vp(e,t)?(e=Bp(),$i=pu=Zl=null,po=!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)return{node:l,offset:t-e};e=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Pp(l)}}function eh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function th(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Li(e.document)}return t}function wu(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 ux=vl&&"documentMode"in document&&11>=document.documentMode,ho=null,Eu=null,_r=null,Cu=!1;function nh(e,t,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Cu||ho==null||ho!==Li(o)||(o=ho,"selectionStart"in o&&wu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),_r&&Rr(_r,o)||(_r=o,o=Ms(Eu,"onSelect"),0>=b,c-=b,Fn=1<<32-Ge(t)+c|l<Te?(Oe=ve,ve=null):Oe=ve.sibling;var Be=G(Y,ve,V[Te],I);if(Be===null){ve===null&&(ve=Oe);break}e&&ve&&Be.alternate===null&&t(Y,ve),D=f(Be,D,Te),De===null?ge=Be:De.sibling=Be,De=Be,ve=Oe}if(Te===V.length)return l(Y,ve),Me&&yl(Y,Te),ge;if(ve===null){for(;TeTe?(Oe=ve,ve=null):Oe=ve.sibling;var ha=G(Y,ve,Be.value,I);if(ha===null){ve===null&&(ve=Oe);break}e&&ve&&ha.alternate===null&&t(Y,ve),D=f(ha,D,Te),De===null?ge=ha:De.sibling=ha,De=ha,ve=Oe}if(Be.done)return l(Y,ve),Me&&yl(Y,Te),ge;if(ve===null){for(;!Be.done;Te++,Be=V.next())Be=ne(Y,Be.value,I),Be!==null&&(D=f(Be,D,Te),De===null?ge=Be:De.sibling=Be,De=Be);return Me&&yl(Y,Te),ge}for(ve=o(ve);!Be.done;Te++,Be=V.next())Be=Q(ve,Y,Te,Be.value,I),Be!==null&&(e&&Be.alternate!==null&&ve.delete(Be.key===null?Te:Be.key),D=f(Be,D,Te),De===null?ge=Be:De.sibling=Be,De=Be);return e&&ve.forEach(function(Nw){return t(Y,Nw)}),Me&&yl(Y,Te),ge}function Ke(Y,D,V,I){if(typeof V=="object"&&V!==null&&V.type===R&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case w:e:{for(var ge=V.key;D!==null;){if(D.key===ge){if(ge=V.type,ge===R){if(D.tag===7){l(Y,D.sibling),I=c(D,V.props.children),I.return=Y,Y=I;break e}}else if(D.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===X&&Ma(ge)===D.type){l(Y,D.sibling),I=c(D,V.props),zr(I,V),I.return=Y,Y=I;break e}l(Y,D);break}else t(Y,D);D=D.sibling}V.type===R?(I=_a(V.props.children,Y.mode,I,V.key),I.return=Y,Y=I):(I=Ji(V.type,V.key,V.props,null,Y.mode,I),zr(I,V),I.return=Y,Y=I)}return b(Y);case C:e:{for(ge=V.key;D!==null;){if(D.key===ge)if(D.tag===4&&D.stateNode.containerInfo===V.containerInfo&&D.stateNode.implementation===V.implementation){l(Y,D.sibling),I=c(D,V.children||[]),I.return=Y,Y=I;break e}else{l(Y,D);break}else t(Y,D);D=D.sibling}I=Ou(V,Y.mode,I),I.return=Y,Y=I}return b(Y);case X:return V=Ma(V),Ke(Y,D,V,I)}if(ie(V))return he(Y,D,V,I);if(ee(V)){if(ge=ee(V),typeof ge!="function")throw Error(r(150));return V=ge.call(V),ye(Y,D,V,I)}if(typeof V.then=="function")return Ke(Y,D,ns(V),I);if(V.$$typeof===_)return Ke(Y,D,Pi(Y,V),I);ls(Y,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,D!==null&&D.tag===6?(l(Y,D.sibling),I=c(D,V),I.return=Y,Y=I):(l(Y,D),I=Nu(V,Y.mode,I),I.return=Y,Y=I),b(Y)):l(Y,D)}return function(Y,D,V,I){try{Mr=0;var ge=Ke(Y,D,V,I);return Ro=null,ge}catch(ve){if(ve===To||ve===es)throw ve;var De=an(29,ve,null,Y.mode);return De.lanes=I,De.return=Y,De}finally{}}}var Da=Th(!0),Rh=Th(!1),Pl=!1;function Vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Il(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ea(e,t,l){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(He&2)!==0){var c=o.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),o.pending=t,t=Ki(e),ch(e,null,l),t}return Zi(e,o,t,l),Ki(e)}function Dr(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,gp(e,l)}}function Gu(e,t){var l=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var c=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?c=f=b:f=f.next=b,l=l.next}while(l!==null);f===null?c=f=t:f=f.next=t}else c=f=t;l={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Qu=!1;function Br(){if(Qu){var e=Co;if(e!==null)throw e}}function Hr(e,t,l,o){Qu=!1;var c=e.updateQueue;Pl=!1;var f=c.firstBaseUpdate,b=c.lastBaseUpdate,E=c.shared.pending;if(E!==null){c.shared.pending=null;var M=E,q=M.next;M.next=null,b===null?f=q:b.next=q,b=M;var W=e.alternate;W!==null&&(W=W.updateQueue,E=W.lastBaseUpdate,E!==b&&(E===null?W.firstBaseUpdate=q:E.next=q,W.lastBaseUpdate=M))}if(f!==null){var ne=c.baseState;b=0,W=q=M=null,E=f;do{var G=E.lane&-536870913,Q=G!==E.lane;if(Q?(Ne&G)===G:(o&G)===G){G!==0&&G===Eo&&(Qu=!0),W!==null&&(W=W.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var he=e,ye=E;G=t;var Ke=l;switch(ye.tag){case 1:if(he=ye.payload,typeof he=="function"){ne=he.call(Ke,ne,G);break e}ne=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=ye.payload,G=typeof he=="function"?he.call(Ke,ne,G):he,G==null)break e;ne=g({},ne,G);break e;case 2:Pl=!0}}G=E.callback,G!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=c.callbacks,Q===null?c.callbacks=[G]:Q.push(G))}else Q={lane:G,tag:E.tag,payload:E.payload,callback:E.callback,next:null},W===null?(q=W=Q,M=ne):W=W.next=Q,b|=G;if(E=E.next,E===null){if(E=c.shared.pending,E===null)break;Q=E,E=Q.next,Q.next=null,c.lastBaseUpdate=Q,c.shared.pending=null}}while(!0);W===null&&(M=ne),c.baseState=M,c.firstBaseUpdate=q,c.lastBaseUpdate=W,f===null&&(c.shared.lanes=0),oa|=b,e.lanes=b,e.memoizedState=ne}}function _h(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ah(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ef?f:8;var b=O.T,E={};O.T=E,df(e,!1,t,l);try{var M=c(),q=O.S;if(q!==null&&q(E,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var W=bx(M,o);$r(e,t,W,un(e))}else $r(e,t,o,un(e))}catch(ne){$r(e,t,{then:function(){},status:"rejected",reason:ne},un())}finally{B.p=f,b!==null&&E.types!==null&&(b.types=E.types),O.T=b}}function Tx(){}function uf(e,t,l,o){if(e.tag!==5)throw Error(r(476));var c=rv(e).queue;ov(e,c,t,H,l===null?Tx:function(){return iv(e),l(o)})}function rv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:H},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function iv(e){var t=rv(e);t.next===null&&(t=e.alternate.memoizedState),$r(e,t.next.queue,{},un())}function ff(){return _t(ni)}function sv(){return ct().memoizedState}function cv(){return ct().memoizedState}function Rx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=un();e=Il(l);var o=ea(t,e,l);o!==null&&(Wt(o,t,l),Dr(o,t,l)),t={cache:$u()},e.payload=t;return}t=t.return}}function _x(e,t,l){var o=un();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ms(e)?fv(t,l):(l=Au(e,t,l,o),l!==null&&(Wt(l,e,o),dv(l,t,o)))}function uv(e,t,l){var o=un();$r(e,t,l,o)}function $r(e,t,l,o){var c={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ms(e))fv(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var b=t.lastRenderedState,E=f(b,l);if(c.hasEagerState=!0,c.eagerState=E,ln(E,b))return Zi(e,t,c,0),Fe===null&&Qi(),!1}catch{}finally{}if(l=Au(e,t,c,o),l!==null)return Wt(l,e,o),dv(l,t,o),!0}return!1}function df(e,t,l,o){if(o={lane:2,revertLane:qf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ms(e)){if(t)throw Error(r(479))}else t=Au(e,l,o,2),t!==null&&Wt(t,e,2)}function ms(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function fv(e,t){Ao=rs=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function dv(e,t,l){if((l&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,gp(e,l)}}var Yr={readContext:_t,use:cs,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};Yr.useEffectEvent=rt;var mv={readContext:_t,use:cs,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:Fh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,fs(4194308,4,ev.bind(null,t,e),l)},useLayoutEffect:function(e,t){return fs(4194308,4,e,t)},useInsertionEffect:function(e,t){fs(4,2,e,t)},useMemo:function(e,t){var l=$t();t=t===void 0?null:t;var o=e();if(Ba){tt(!0);try{e()}finally{tt(!1)}}return l.memoizedState=[o,t],o},useReducer:function(e,t,l){var o=$t();if(l!==void 0){var c=l(t);if(Ba){tt(!0);try{l(t)}finally{tt(!1)}}}else c=t;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=_x.bind(null,Ee,e),[o.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:function(e){e=af(e);var t=e.queue,l=uv.bind(null,Ee,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:sf,useDeferredValue:function(e,t){var l=$t();return cf(l,e,t)},useTransition:function(){var e=af(!1);return e=ov.bind(null,Ee,e.queue,!0,!1),$t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var o=Ee,c=$t();if(Me){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Fe===null)throw Error(r(349));(Ne&127)!==0||Dh(o,t,l)}c.memoizedState=l;var f={value:l,getSnapshot:t};return c.queue=f,Fh(Hh.bind(null,o,f,e),[e]),o.flags|=2048,No(9,{destroy:void 0},Bh.bind(null,o,f,l,t),null),l},useId:function(){var e=$t(),t=Fe.identifierPrefix;if(Me){var l=Wn,o=Fn;l=(o&~(1<<32-Ge(o)-1)).toString(32)+l,t="_"+t+"R_"+l,l=is++,0<\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?b.createElement("select",{is:o.is}):b.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?b.createElement(c,{is:o.is}):b.createElement(c)}}f[Tt]=t,f[Gt]=o;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)f.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=f;e:switch(jt(f,c,o),c){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Cl(t)}}return Ie(t),Rf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Cl(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(r(166));if(e=fe.current,xo(t)){if(e=t.stateNode,l=t.memoizedProps,o=null,c=Rt,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||Mg(e.nodeValue,l)),e||Fl(t,!0)}else e=zs(e).createTextNode(o),e[Tt]=t,t.stateNode=e}return Ie(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(o=xo(t),l!==null){if(e===null){if(!o)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Tt]=t}else Aa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),e=!1}else l=Bu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(rn(t),t):(rn(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ie(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=xo(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[Tt]=t}else Aa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),c=!1}else c=Bu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(rn(t),t):(rn(t),null)}return rn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=o!==null,e=e!==null&&e.memoizedState!==null,l&&(o=t.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==c&&(o.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),ys(t,t.updateQueue),Ie(t),null);case 4:return Re(),e===null&&Kf(t.stateNode.containerInfo),Ie(t),null;case 10:return Sl(t.type),Ie(t),null;case 19:if(k(st),o=t.memoizedState,o===null)return Ie(t),null;if(c=(t.flags&128)!==0,f=o.rendering,f===null)if(c)Xr(o,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=os(e),f!==null){for(t.flags|=128,Xr(o,!1),e=f.updateQueue,t.updateQueue=e,ys(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)uh(l,e),l=l.sibling;return F(st,st.current&1|2),Me&&yl(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&We()>Es&&(t.flags|=128,c=!0,Xr(o,!1),t.lanes=4194304)}else{if(!c)if(e=os(f),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,ys(t,e),Xr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Me)return Ie(t),null}else 2*We()-o.renderingStartTime>Es&&l!==536870912&&(t.flags|=128,c=!0,Xr(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=We(),e.sibling=null,l=st.current,F(st,c?l&1|2:l&1),Me&&yl(t,o.treeForkCount),e):(Ie(t),null);case 22:case 23:return rn(t),Ku(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(l&536870912)!==0&&(t.flags&128)===0&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),l=t.updateQueue,l!==null&&ys(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==l&&(t.flags|=2048),e!==null&&k(Oa),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Sl(dt),Ie(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Mx(e,t){switch(zu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sl(dt),Re(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return lt(t),null;case 31:if(t.memoizedState!==null){if(rn(t),t.alternate===null)throw Error(r(340));Aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(rn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(st),null;case 4:return Re(),null;case 10:return Sl(t.type),null;case 22:case 23:return rn(t),Ku(),e!==null&&k(Oa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sl(dt),null;case 25:return null;default:return null}}function Lv(e,t){switch(zu(t),t.tag){case 3:Sl(dt),Re();break;case 26:case 27:case 5:lt(t);break;case 4:Re();break;case 31:t.memoizedState!==null&&rn(t);break;case 13:rn(t);break;case 19:k(st);break;case 10:Sl(t.type);break;case 22:case 23:rn(t),Ku(),e!==null&&k(Oa);break;case 24:Sl(dt)}}function Vr(e,t){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){o=void 0;var f=l.create,b=l.inst;o=f(),b.destroy=o}l=l.next}while(l!==c)}}catch(E){Xe(t,t.return,E)}}function la(e,t,l){try{var o=t.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var f=c.next;o=f;do{if((o.tag&e)===e){var b=o.inst,E=b.destroy;if(E!==void 0){b.destroy=void 0,c=t;var M=l,q=E;try{q()}catch(W){Xe(c,M,W)}}}o=o.next}while(o!==f)}}catch(W){Xe(t,t.return,W)}}function Uv(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ah(t,l)}catch(o){Xe(e,e.return,o)}}}function $v(e,t,l){l.props=Ha(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(o){Xe(e,t,o)}}function qr(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof l=="function"?e.refCleanup=l(o):l.current=o}}catch(c){Xe(e,t,c)}}function Pn(e,t){var l=e.ref,o=e.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(c){Xe(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(c){Xe(e,t,c)}else l.current=null}function Yv(e){var t=e.type,l=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(c){Xe(e,e.return,c)}}function _f(e,t,l){try{var o=e.stateNode;ew(o,e.type,l,t),o[Gt]=t}catch(c){Xe(e,e.return,c)}}function kv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ua(e.type)||e.tag===4}function Af(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kv(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&&ua(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 jf(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=hl));else if(o!==4&&(o===27&&ua(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(jf(e,t,l),e=e.sibling;e!==null;)jf(e,t,l),e=e.sibling}function bs(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(o!==4&&(o===27&&ua(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(bs(e,t,l),e=e.sibling;e!==null;)bs(e,t,l),e=e.sibling}function Xv(e){var t=e.stateNode,l=e.memoizedProps;try{for(var o=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);jt(t,o,l),t[Tt]=e,t[Gt]=l}catch(f){Xe(e,e.return,f)}}var Tl=!1,ht=!1,Nf=!1,Vv=typeof WeakSet=="function"?WeakSet:Set,Et=null;function zx(e,t){if(e=e.containerInfo,Wf=Ys,e=th(e),wu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var c=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var b=0,E=-1,M=-1,q=0,W=0,ne=e,G=null;t:for(;;){for(var Q;ne!==l||c!==0&&ne.nodeType!==3||(E=b+c),ne!==f||o!==0&&ne.nodeType!==3||(M=b+o),ne.nodeType===3&&(b+=ne.nodeValue.length),(Q=ne.firstChild)!==null;)G=ne,ne=Q;for(;;){if(ne===e)break t;if(G===l&&++q===c&&(E=b),G===f&&++W===o&&(M=b),(Q=ne.nextSibling)!==null)break;ne=G,G=ne.parentNode}ne=Q}l=E===-1||M===-1?null:{start:E,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Pf={focusedElem:e,selectionRange:l},Ys=!1,Et=t;Et!==null;)if(t=Et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Et=e;else for(;Et!==null;){switch(t=Et,f=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(l=0;l title"))),jt(f,o,l),f[Tt]=e,wt(f),o=f;break e;case"link":var b=Jg("link","href",c).get(o+(l.href||""));if(b){for(var E=0;EKe&&(b=Ke,Ke=ye,ye=b);var Y=Ip(E,ye),D=Ip(E,Ke);if(Y&&D&&(Q.rangeCount!==1||Q.anchorNode!==Y.node||Q.anchorOffset!==Y.offset||Q.focusNode!==D.node||Q.focusOffset!==D.offset)){var V=ne.createRange();V.setStart(Y.node,Y.offset),Q.removeAllRanges(),ye>Ke?(Q.addRange(V),Q.extend(D.node,D.offset)):(V.setEnd(D.node,D.offset),Q.addRange(V))}}}}for(ne=[],Q=E;Q=Q.parentNode;)Q.nodeType===1&&ne.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;El?32:l,O.T=null,l=Lf,Lf=null;var f=ia,b=Nl;if(yt=0,Bo=ia=null,Nl=0,(He&6)!==0)throw Error(r(331));var E=He;if(He|=4,eg(f.current),Wv(f,f.current,b,l),He=E,Fr(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(nn,f)}catch{}return!0}finally{B.p=c,O.T=o,yg(e,t)}}function Sg(e,t,l){t=bn(l,t),t=vf(e.stateNode,t,2),e=ea(e,t,2),e!==null&&(vr(e,2),In(e))}function Xe(e,t,l){if(e.tag===3)Sg(e,e,l);else for(;t!==null;){if(t.tag===3){Sg(t,e,l);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ra===null||!ra.has(o))){e=bn(l,e),l=xv(2),o=ea(t,l,2),o!==null&&(wv(l,o,t,e),vr(o,2),In(o));break}}t=t.return}}function kf(e,t,l){var o=e.pingCache;if(o===null){o=e.pingCache=new Hx;var c=new Set;o.set(t,c)}else c=o.get(t),c===void 0&&(c=new Set,o.set(t,c));c.has(l)||(zf=!0,c.add(l),e=kx.bind(null,e,t,l),t.then(e,e))}function kx(e,t,l){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Fe===e&&(Ne&l)===l&&(it===4||it===3&&(Ne&62914560)===Ne&&300>We()-ws?(He&2)===0&&Ho(e,0):Df|=l,Do===Ne&&(Do=0)),In(e)}function xg(e,t){t===0&&(t=hp()),e=Ra(e,t),e!==null&&(vr(e,t),In(e))}function Xx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),xg(e,l)}function Vx(e,t){var l=0;switch(e.tag){case 31:case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(l=c.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(t),xg(e,l)}function qx(e,t){return ut(e,t)}var js=null,Uo=null,Xf=!1,Ns=!1,Vf=!1,ca=0;function In(e){e!==Uo&&e.next===null&&(Uo===null?js=Uo=e:Uo=Uo.next=e),Ns=!0,Xf||(Xf=!0,Qx())}function Fr(e,t){if(!Vf&&Ns){Vf=!0;do for(var l=!1,o=js;o!==null;){if(e!==0){var c=o.pendingLanes;if(c===0)var f=0;else{var b=o.suspendedLanes,E=o.pingedLanes;f=(1<<31-Ge(42|e)+1)-1,f&=c&~(b&~E),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Tg(o,f))}else f=Ne,f=Gl(o,o===Fe?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||hr(o,f)||(l=!0,Tg(o,f));o=o.next}while(l);Vf=!1}}function Gx(){wg()}function wg(){Ns=Xf=!1;var e=0;ca!==0&&nw()&&(e=ca);for(var t=We(),l=null,o=js;o!==null;){var c=o.next,f=Eg(o,t);f===0?(o.next=null,l===null?js=c:l.next=c,c===null&&(Uo=l)):(l=o,(e!==0||(f&3)!==0)&&(Ns=!0)),o=c}yt!==0&&yt!==5||Fr(e),ca!==0&&(ca=0)}function Eg(e,t){for(var l=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0E)break;var W=M.transferSize,ne=M.initiatorType;W&&zg(ne)&&(M=M.responseEnd,b+=W*(M"u"?null:document;function Gg(e,t,l){var o=$o;if(o&&typeof t=="string"&&t){var c=gn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof l=="string"&&(c+='[crossorigin="'+l+'"]'),qg.has(c)||(qg.add(c),e={rel:e,crossOrigin:l,href:t},o.querySelector(c)===null&&(t=o.createElement("link"),jt(t,"link",e),wt(t),o.head.appendChild(t)))}}function fw(e){Ol.D(e),Gg("dns-prefetch",e,null)}function dw(e,t){Ol.C(e,t),Gg("preconnect",e,t)}function mw(e,t,l){Ol.L(e,t,l);var o=$o;if(o&&e&&t){var c='link[rel="preload"][as="'+gn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(c+='[imagesrcset="'+gn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(c+='[imagesizes="'+gn(l.imageSizes)+'"]')):c+='[href="'+gn(e)+'"]';var f=c;switch(t){case"style":f=Yo(e);break;case"script":f=ko(e)}Tn.has(f)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Tn.set(f,e),o.querySelector(c)!==null||t==="style"&&o.querySelector(ei(f))||t==="script"&&o.querySelector(ti(f))||(t=o.createElement("link"),jt(t,"link",e),wt(t),o.head.appendChild(t)))}}function pw(e,t){Ol.m(e,t);var l=$o;if(l&&e){var o=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+gn(o)+'"][href="'+gn(e)+'"]',f=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ko(e)}if(!Tn.has(f)&&(e=g({rel:"modulepreload",href:e},t),Tn.set(f,e),l.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ti(f)))return}o=l.createElement("link"),jt(o,"link",e),wt(o),l.head.appendChild(o)}}}function hw(e,t,l){Ol.S(e,t,l);var o=$o;if(o&&e){var c=io(o).hoistableStyles,f=Yo(e);t=t||"default";var b=c.get(f);if(!b){var E={loading:0,preload:null};if(b=o.querySelector(ei(f)))E.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Tn.get(f))&&od(e,l);var M=b=o.createElement("link");wt(M),jt(M,"link",e),M._p=new Promise(function(q,W){M.onload=q,M.onerror=W}),M.addEventListener("load",function(){E.loading|=1}),M.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Bs(b,t,o)}b={type:"stylesheet",instance:b,count:1,state:E},c.set(f,b)}}}function vw(e,t){Ol.X(e,t);var l=$o;if(l&&e){var o=io(l).hoistableScripts,c=ko(e),f=o.get(c);f||(f=l.querySelector(ti(c)),f||(e=g({src:e,async:!0},t),(t=Tn.get(c))&&rd(e,t),f=l.createElement("script"),wt(f),jt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(c,f))}}function gw(e,t){Ol.M(e,t);var l=$o;if(l&&e){var o=io(l).hoistableScripts,c=ko(e),f=o.get(c);f||(f=l.querySelector(ti(c)),f||(e=g({src:e,async:!0,type:"module"},t),(t=Tn.get(c))&&rd(e,t),f=l.createElement("script"),wt(f),jt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(c,f))}}function Qg(e,t,l,o){var c=(c=fe.current)?Ds(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Yo(l.href),l=io(c).hoistableStyles,o=l.get(t),o||(o={type:"style",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Yo(l.href);var f=io(c).hoistableStyles,b=f.get(e);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,b),(f=c.querySelector(ei(e)))&&!f._p&&(b.instance=f,b.state.loading=5),Tn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Tn.set(e,l),f||yw(c,e,l,b.state))),t&&o===null)throw Error(r(528,""));return b}if(t&&o!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ko(l),l=io(c).hoistableScripts,o=l.get(t),o||(o={type:"script",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Yo(e){return'href="'+gn(e)+'"'}function ei(e){return'link[rel="stylesheet"]['+e+"]"}function Zg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function yw(e,t,l,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),jt(t,"link",l),wt(t),e.head.appendChild(t))}function ko(e){return'[src="'+gn(e)+'"]'}function ti(e){return"script[async]"+e}function Kg(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+gn(l.href)+'"]');if(o)return t.instance=o,wt(o),o;var c=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),wt(o),jt(o,"style",c),Bs(o,l.precedence,e),t.instance=o;case"stylesheet":c=Yo(l.href);var f=e.querySelector(ei(c));if(f)return t.state.loading|=4,t.instance=f,wt(f),f;o=Zg(l),(c=Tn.get(c))&&od(o,c),f=(e.ownerDocument||e).createElement("link"),wt(f);var b=f;return b._p=new Promise(function(E,M){b.onload=E,b.onerror=M}),jt(f,"link",o),t.state.loading|=4,Bs(f,l.precedence,e),t.instance=f;case"script":return f=ko(l.src),(c=e.querySelector(ti(f)))?(t.instance=c,wt(c),c):(o=l,(c=Tn.get(f))&&(o=g({},l),rd(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),wt(c),jt(c,"link",o),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Bs(o,l.precedence,e));return t.instance}function Bs(e,t,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,f=c,b=0;b title"):null)}function bw(e,t,l){if(l===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 Wg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Sw(e,t,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var c=Yo(o.href),f=t.querySelector(ei(c));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ls.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,wt(f);return}f=t.ownerDocument||t,o=Zg(o),(c=Tn.get(c))&&od(o,c),f=f.createElement("link"),wt(f);var b=f;b._p=new Promise(function(E,M){b.onload=E,b.onerror=M}),jt(f,"link",o),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ls.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var id=0;function xw(e,t){return e.stylesheets&&e.count===0&&$s(e,e.stylesheets),0id?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(c)}}:null}function Ls(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$s(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Us=null;function $s(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Us=new Map,t.forEach(ww,e),Us=null,Ls.call(e))}function ww(e,t){if(!(t.state.loading&4)){var l=Us.get(e);if(l)var o=l.get(null);else{l=new Map,Us.set(e,l);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),vd.exports=Yw(),vd.exports}var Xw=kw();function Nt(n){return Object.keys(n)}function Sd(n){return n&&typeof n=="object"&&!Array.isArray(n)}function im(n,a){const i={...n},r=a;return Sd(n)&&Sd(a)&&Object.keys(a).forEach(s=>{Sd(r[s])&&s in n?i[s]=im(i[s],r[s]):i[s]=r[s]}),i}function Vw(n){return n.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`)}function qw(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 Yd(n){const a=qw(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 wy(n){return n==="0rem"?"0rem":`calc(${n} * var(--mantine-scale))`}function g0(n,{shouldScale:a=!1}={}){function i(r){if(r===0||r==="0")return`0${n}`;if(typeof r=="number"){const s=`${r/16}${n}`;return a?wy(s):s}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(u=>i(u)).join(",");if(r.includes(" "))return r.split(" ").map(u=>i(u)).join(" ");const s=r.replace("px","");if(!Number.isNaN(Number(s))){const u=`${Number(s)/16}${n}`;return a?wy(u):u}}return r}return i}const Z=g0("rem",{shouldScale:!0}),rc=g0("em");function sm(n){return Object.keys(n).reduce((a,i)=>(n[i]!==void 0&&(a[i]=n[i]),a),{})}function y0(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(i=>a.test(i))}return!1}function b0(n){return Array.isArray(n)||n===null?!1:typeof n=="object"?n.type!==x.Fragment:!1}function sl(n){const a=x.createContext(null);return[a,()=>{const r=x.use(a);if(r===null)throw new Error(n);return r}]}const Gw={app:100,modal:200,popover:300,overlay:400,max:9999};function kt(n){return Gw[n]}const Qw=()=>{};function Zw(n,a={active:!0}){return typeof n!="function"||!a.active?a.onKeyDown||Qw:i=>{var r;i.key==="Escape"&&(n(i),(r=a.onTrigger)==null||r.call(a))}}function Le(n,a="size",i=!0){if(n!==void 0)return y0(n)?i?Z(n):n:`var(--${a}-${n})`}function Ll(n){return Le(n,"mantine-spacing")}function Ot(n){return n===void 0?"var(--mantine-radius-default)":Le(n,"mantine-radius")}function Lt(n){return Le(n,"mantine-font-size")}function Kw(n){return Le(n,"mantine-line-height",!1)}function cm(n){if(n)return Le(n,"mantine-shadow",!1)}function Ey(n,a){return i=>{n==null||n(i),a==null||a(i)}}function um(n,a){return n in a?Yd(a[n]):Yd(n)}function Cy(n,a){const i=n.map(r=>({value:r,px:um(r,a)}));return i.sort((r,s)=>r.px-s.px),i}function S0(n="mantine-"){return`${n}${Math.random().toString(36).slice(2,11)}`}function ui(n){const a=x.useRef(n);return x.useEffect(()=>{a.current=n}),x.useMemo(()=>((...i)=>{var r;return(r=a.current)==null?void 0:r.call(a,...i)}),[])}function hc(n,a){const{delay:i,flushOnUnmount:r,leading:s,maxWait:u}=typeof a=="number"?{delay:a,flushOnUnmount:!1,leading:!1,maxWait:void 0}:a,d=ui(n),m=x.useRef(0),p=x.useRef(0),h=x.useRef(null),S=x.useMemo(()=>{const g=Object.assign((...y)=>{window.clearTimeout(m.current),h.current=y;const w=g._isFirstCall;g._isFirstCall=!1;function C(){window.clearTimeout(m.current),window.clearTimeout(p.current),m.current=0,p.current=0,g._isFirstCall=!0,g._hasPendingCallback=!1}function R(){u!==void 0&&p.current===0&&(p.current=window.setTimeout(()=>{if(m.current!==0){const T=h.current;C(),d(...T)}},u))}if(s&&w){d(...y);const T=()=>{C()},_=()=>{m.current!==0&&(C(),d(...y))},z=()=>{C()};g.flush=_,g.cancel=z,m.current=window.setTimeout(T,i),R();return}if(s&&!w){g._hasPendingCallback=!0;const T=()=>{m.current!==0&&(C(),d(...y))},_=()=>{C()};g.flush=T,g.cancel=_;const z=()=>{C()};m.current=window.setTimeout(z,i),R();return}g._hasPendingCallback=!0;const N=()=>{m.current!==0&&(C(),d(...y))},A=()=>{C()};g.flush=N,g.cancel=A,m.current=window.setTimeout(N,i),R()},{flush:()=>{},cancel:()=>{},isPending:()=>g._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return g},[d,i,s,u]);return x.useEffect(()=>()=>{r?S.flush():S.cancel()},[S,r]),S}const Jw=["mousedown","touchstart"];function Fw(n,a,i,r=!0){const s=x.useRef(null),u=a||Jw,d=x.useEffectEvent(p=>{const{target:h}=p??{};if(!document.body.contains(h)&&(h==null?void 0:h.tagName)!=="HTML")return;const S=p.composedPath();Array.isArray(i)?i.every(g=>!!g&&!S.includes(g))&&n(p):s.current&&!S.includes(s.current)&&n(p)}),m=u.join(",");return x.useEffect(()=>{if(!r)return;const p=m.split(",");return p.forEach(h=>document.addEventListener(h,d)),()=>{p.forEach(h=>document.removeEventListener(h,d))}},[m,r]),s}function Ww(n,a){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(n).matches:!1}function Pw(n,a,{getInitialValueInEffect:i}={getInitialValueInEffect:!0}){const[r,s]=x.useState(i?a:Ww(n));return x.useEffect(()=>{try{if("matchMedia"in window){const u=window.matchMedia(n);s(u.matches);const d=m=>s(m.matches);return u.addEventListener("change",d),()=>{u.removeEventListener("change",d)}}}catch{return}},[n]),r||!1}const ol=typeof document<"u"?x.useLayoutEffect:x.useEffect;function tr(n,a){const i=x.useRef(!1);x.useEffect(()=>()=>{i.current=!1},[]),x.useEffect(()=>{if(i.current)return n();i.current=!0},a)}function x0({opened:n,shouldReturnFocus:a=!0}){const i=x.useRef(null),r=()=>{var s;i.current&&"focus"in i.current&&typeof i.current.focus=="function"&&((s=i.current)==null||s.focus({preventScroll:!0}))};return tr(()=>{let s=-1;const u=d=>{d.key==="Tab"&&window.clearTimeout(s)};if(document.addEventListener("keydown",u),n)i.current=document.activeElement;else if(a){const d=document.activeElement;s=window.setTimeout(()=>{const m=document.activeElement;(m===null||m===document.body||m===d)&&r()},10)}return()=>{window.clearTimeout(s),document.removeEventListener("keydown",u)}},[n,a]),r}const Iw=/input|select|textarea|button|object/,w0="a, input, select, textarea, button, object, [tabindex]";function e2(n){return n.style.display==="none"}function t2(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(e2(a))return!1;a=a.parentNode}return!0}function E0(n){let a=n.getAttribute("tabindex");return a===null&&(a=void 0),parseInt(a,10)}function kd(n){const a=n.nodeName.toLowerCase(),i=!Number.isNaN(E0(n));return(Iw.test(a)&&!n.disabled||n instanceof HTMLAnchorElement&&n.href||i)&&t2(n)}function C0(n){const a=E0(n);return(Number.isNaN(a)||a>=0)&&kd(n)}function n2(n){return Array.from(n.querySelectorAll(w0)).filter(C0)}function l2(n,a){const i=n2(n);if(!i.length){a.preventDefault();return}const r=i[a.shiftKey?0:i.length-1],s=n.getRootNode();let u=r===s.activeElement||n===s.activeElement;const d=s.activeElement;if(d.tagName==="INPUT"&&d.getAttribute("type")==="radio"&&(u=i.filter(p=>p.getAttribute("type")==="radio"&&p.getAttribute("name")===d.getAttribute("name")).includes(r)),!u)return;a.preventDefault();const m=i[a.shiftKey?i.length-1:0];m&&m.focus()}function a2(n=!0){const a=x.useRef(null),i=s=>{let u=s.querySelector("[data-autofocus]");if(!u){const d=Array.from(s.querySelectorAll(w0));u=d.find(C0)||d.find(kd)||null,!u&&kd(s)&&(u=s)}u?u.focus({preventScroll:!0}):console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node",s)},r=x.useCallback(s=>{if(n){if(s===null){a.current=null;return}a.current!==s&&(setTimeout(()=>{s.getRootNode()?i(s):console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom",s)}),a.current=s)}},[n]);return x.useEffect(()=>{if(!n)return;a.current&&setTimeout(()=>{a.current&&i(a.current)});const s=u=>{u.key==="Tab"&&a.current&&l2(a.current,u)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n]),r}const o2=n=>(n+1)%1e6;function r2(){const[,n]=x.useReducer(o2,0);return n}function Yl(n){const[a,i]=x.useState(`mantine-${x.useId().replace(/:/g,"")}`);return ol(()=>{i(S0())},[]),typeof n=="string"?n:a}function T0(n,a,i){const r=x.useEffectEvent(a);x.useEffect(()=>(window.addEventListener(n,r,i),()=>window.removeEventListener(n,r,i)),[n])}function Xd(n,a){if(typeof n=="function")return n(a);typeof n=="object"&&n!==null&&"current"in n&&(n.current=a)}function fm(...n){const a=new Map;return i=>{if(n.forEach(r=>{const s=Xd(r,i);s&&a.set(r,s)}),a.size>0)return()=>{n.forEach(r=>{const s=a.get(r);s&&typeof s=="function"?s():Xd(r,null)}),a.clear()}}}function Xt(...n){return x.useCallback(fm(...n),n)}function Ka({value:n,defaultValue:a,finalValue:i,onChange:r=()=>{}}){const[s,u]=x.useState(a!==void 0?a:i),d=(m,...p)=>{u(m),r==null||r(m,...p)};return n!==void 0?[n,r,!0]:[s,d,!1]}function vc(n,a){return Pw("(prefers-reduced-motion: reduce)",n,a)}function dm(n=!1,a={}){const[i,r]=x.useState(n),s=x.useCallback(()=>{r(d=>{var m;return d||((m=a.onOpen)==null||m.call(a),!0)})},[a.onOpen]),u=x.useCallback(()=>{r(d=>{var m;return d&&((m=a.onClose)==null||m.call(a),!1)})},[a.onClose]);return[i,{open:s,close:u,toggle:x.useCallback(()=>{i?u():s()},[u,s,i]),set:r}]}function i2(n){const a=x.useRef(void 0);return x.useEffect(()=>{a.current=n},[n]),a.current}var Dl=v0();const fi=p0(Dl);function s2(n){if(!n||typeof n=="string")return 0;const a=n/36;return Math.round((4+15*a**.25+a/5)*10)}function xd(n){return n.current?n.current.scrollHeight:"auto"}function c2({transitionDuration:n,transitionTimingFunction:a="ease",onTransitionEnd:i,onTransitionStart:r,expanded:s,keepMounted:u}){const d={height:0,overflow:"hidden",...u?{}:{display:"none"}},m=x.useEffectEvent(()=>r==null?void 0:r()),p=x.useRef(null),[h,S]=x.useState(s?{}:d),[g,y]=x.useState(s?"entered":"exited"),w=A=>{Dl.flushSync(()=>S(A))},C=A=>{w(T=>({...T,...A}))},R=A=>{const T=n??s2(A);return{transition:`height ${T}ms ${a}, opacity ${T}ms ${a}`}};tr(()=>{n!==0&&m(),s?window.requestAnimationFrame(()=>{Dl.flushSync(()=>y("entering")),C({willChange:"height",display:"block",overflow:"hidden"}),window.requestAnimationFrame(()=>{const A=xd(p);C({...R(A),height:A})})}):window.requestAnimationFrame(()=>{Dl.flushSync(()=>y("exiting"));const A=xd(p);C({...R(A),willChange:"height",height:A}),window.requestAnimationFrame(()=>C({height:0,overflow:"hidden"}))})},[s]);const N=A=>{if(!(A.target!==p.current||A.propertyName!=="height"))if(s){const T=xd(p);T===h.height?w({}):C({height:T}),y("entered"),i==null||i()}else h.height===0&&(w(d),y("exited"),i==null||i())};return{state:g,getCollapseProps:A=>({"aria-hidden":!s,inert:!s,ref:fm(p,A==null?void 0:A.ref),onTransitionEnd:N,style:{boxSizing:"border-box",...A==null?void 0:A.style,...h}})}}function u2(n){if(!n||typeof n=="string")return 0;const a=n/36;return Math.round((4+15*a**.25+a/5)*10)}function wd(n){return n.current?n.current.scrollWidth:"auto"}function f2({transitionDuration:n,transitionTimingFunction:a="ease",onTransitionEnd:i,onTransitionStart:r,expanded:s,keepMounted:u}){const d={width:0,overflow:"hidden",...u?{}:{display:"none"}},m=x.useEffectEvent(()=>r==null?void 0:r()),p=x.useRef(null),[h,S]=x.useState(s?{}:d),[g,y]=x.useState(s?"entered":"exited"),w=A=>{Dl.flushSync(()=>S(A))},C=A=>{w(T=>({...T,...A}))},R=A=>{const T=n??u2(A);return{transition:`width ${T}ms ${a}, opacity ${T}ms ${a}`}};tr(()=>{n!==0&&m(),s?window.requestAnimationFrame(()=>{Dl.flushSync(()=>y("entering")),C({willChange:"width",display:"block",overflow:"hidden"}),window.requestAnimationFrame(()=>{const A=wd(p);C({...R(A),width:A})})}):window.requestAnimationFrame(()=>{Dl.flushSync(()=>y("exiting"));const A=wd(p);C({...R(A),willChange:"width",width:A}),window.requestAnimationFrame(()=>C({width:0,overflow:"hidden"}))})},[s]);const N=A=>{if(!(A.target!==p.current||A.propertyName!=="width"))if(s){const T=wd(p);T===h.width?w({}):C({width:T}),y("entered"),i==null||i()}else h.width===0&&(w(d),y("exited"),i==null||i())};return{state:g,getCollapseProps:A=>({"aria-hidden":!s,inert:!s,ref:fm(p,A==null?void 0:A.ref),onTransitionEnd:N,style:{boxSizing:"border-box",...A==null?void 0:A.style,...h}})}}const d2=100;function Vo(n){return n>0?1:n<0?-1:0}function Ty(n){const a=n??0;return typeof a=="number"?[a,a]:a}function m2(){return{isActive:!1,pointerId:-1,startXY:[0,0],prevXY:[0,0],startTimestamp:0,prevTimestamp:0,thresholdMet:!1,firstFired:!1,lockedAxis:null,canceled:!1,lastVelocity:[0,0]}}function p2(n,a={}){const[i,r]=x.useState(!1),s=x.useRef(n);s.current=n;const u=x.useRef(a);u.current=a;const d=x.useRef(m2()),m=x.useRef(null);return{ref:x.useCallback(p=>{if(!p)return;const h=new AbortController,S=T=>{const _=u.current,z=d.current;if(_.axis==="x")return[T[0],0];if(_.axis==="y")return[0,T[1]];if(_.axis==="lock"){if(z.lockedAxis===null){const L=_.axisThreshold??1;(Math.abs(T[0])>L||Math.abs(T[1])>L)&&(z.lockedAxis=Math.abs(T[0])>=Math.abs(T[1])?"x":"y")}if(z.lockedAxis==="x")return[T[0],0];if(z.lockedAxis==="y")return[0,T[1]]}return T},g=()=>{var _;const T=d.current;T.isActive=!1,T.pointerId=-1,T.thresholdMet=!1,T.firstFired=!1,T.lockedAxis=null,T.canceled=!1,r(!1),document.body.style.userSelect="",document.body.style.webkitUserSelect="",(_=m.current)==null||_.abort(),m.current=null},y=()=>{d.current.isActive&&(d.current.canceled=!0,g())},w=()=>{r(!0),document.body.style.userSelect="none",document.body.style.webkitUserSelect="none"},C=T=>{var U;if(u.current.enabled===!1||T.button!==0||d.current.isActive)return;const _=d.current;_.isActive=!0,_.pointerId=T.pointerId,_.startXY=[T.clientX,T.clientY],_.prevXY=[T.clientX,T.clientY],_.startTimestamp=T.timeStamp,_.prevTimestamp=T.timeStamp,_.thresholdMet=!1,_.firstFired=!1,_.lockedAxis=null,_.canceled=!1,_.lastVelocity=[0,0];const[z,L]=Ty(u.current.threshold);z===0&&L===0&&(_.thresholdMet=!0,_.firstFired=!0,w(),s.current({xy:[T.clientX,T.clientY],initial:[T.clientX,T.clientY],movement:[0,0],delta:[0,0],distance:[0,0],direction:[0,0],velocity:[0,0],elapsedTime:0,first:!0,last:!1,active:!0,tap:!1,canceled:!1,cancel:y,event:T})),(U=m.current)==null||U.abort(),m.current=new AbortController;const $=m.current.signal;document.addEventListener("pointermove",R,{signal:$}),document.addEventListener("pointerup",N,{signal:$}),document.addEventListener("pointercancel",A,{signal:$})},R=T=>{const _=d.current;if(!_.isActive||T.pointerId!==_.pointerId)return;const z=[T.clientX-_.startXY[0],T.clientY-_.startXY[1]];if(!_.thresholdMet){const[oe,le]=Ty(u.current.threshold);if(Math.abs(z[0])0?[Math.abs($[0])/U,Math.abs($[1])/U]:_.lastVelocity;_.lastVelocity=X;const ae=!_.firstFired;_.firstFired=!0,_.prevXY=[T.clientX,T.clientY],_.prevTimestamp=T.timeStamp,s.current({xy:[T.clientX,T.clientY],initial:[..._.startXY],movement:L,delta:$,distance:[Math.abs(L[0]),Math.abs(L[1])],direction:[Vo($[0]),Vo($[1])],velocity:X,elapsedTime:T.timeStamp-_.startTimestamp,first:ae,last:!1,active:!0,tap:!1,canceled:!1,cancel:y,event:T})},N=T=>{const _=d.current;if(!_.isActive||T.pointerId!==_.pointerId)return;const z=u.current;if(!_.thresholdMet){if(z.filterTaps){const le=S([T.clientX-_.startXY[0],T.clientY-_.startXY[1]]),ee=[Math.abs(le[0]),Math.abs(le[1])],re=Math.max(ee[0],ee[1])<(z.tapThreshold??3);s.current({xy:[T.clientX,T.clientY],initial:[..._.startXY],movement:le,delta:le,distance:ee,direction:[Vo(le[0]),Vo(le[1])],velocity:[0,0],elapsedTime:T.timeStamp-_.startTimestamp,first:!0,last:!0,active:!1,tap:re,canceled:!1,cancel:y,event:T})}g();return}const L=S([T.clientX-_.startXY[0],T.clientY-_.startXY[1]]),$=[Math.abs(L[0]),Math.abs(L[1])],U=S([T.clientX-_.prevXY[0],T.clientY-_.prevXY[1]]),X=T.timeStamp-_.prevTimestamp>d2?[0,0]:_.lastVelocity,ae=Math.max($[0],$[1]),oe=z.filterTaps===!0&&ae<(z.tapThreshold??3);s.current({xy:[T.clientX,T.clientY],initial:[..._.startXY],movement:L,delta:U,distance:$,direction:[Vo(U[0]),Vo(U[1])],velocity:X,elapsedTime:T.timeStamp-_.startTimestamp,first:!_.firstFired,last:!0,active:!1,tap:oe,canceled:!1,cancel:y,event:T}),g()},A=T=>{const _=d.current;if(!_.isActive||T.pointerId!==_.pointerId)return;const z=S([T.clientX-_.startXY[0],T.clientY-_.startXY[1]]);s.current({xy:[T.clientX,T.clientY],initial:[..._.startXY],movement:z,delta:[0,0],distance:[Math.abs(z[0]),Math.abs(z[1])],direction:[0,0],velocity:[0,0],elapsedTime:T.timeStamp-_.startTimestamp,first:!_.firstFired,last:!0,active:!1,tap:!1,canceled:!0,cancel:y,event:T}),g()};return p.addEventListener("pointerdown",C,{signal:h.signal}),()=>{var T;h.abort(),(T=m.current)==null||T.abort(),m.current=null,d.current.isActive&&(d.current.isActive=!1,r(!1),document.body.style.userSelect="",document.body.style.webkitUserSelect="")}},[]),active:i}}function gc(n){var i;const a=_n.version;return typeof _n.version!="string"||a.startsWith("18.")?n==null?void 0:n.ref:(i=n==null?void 0:n.props)==null?void 0:i.ref}function Is(n,a=document){const i=a.querySelector(n);if(i)return i;const r=a.querySelectorAll("*");for(let s=0;s{Object.entries(i).forEach(([r,s])=>{a[r]?a[r]=bt(a[r],s):a[r]=s})}),a}function hi({theme:n,classNames:a,props:i,stylesCtx:r}){return v2((Array.isArray(a)?a:[a]).map(s=>typeof s=="function"?s(n,i,r):s||h2))}function ic({theme:n,styles:a,props:i,stylesCtx:r}){const s=Array.isArray(a)?a:[a],u={};for(const d of s)typeof d=="function"?Object.assign(u,d(n,i,r)):d&&Object.assign(u,d);return u}function Ry(n){return n==="auto"||n==="dark"||n==="light"}function g2({key:n="mantine-color-scheme-value"}={}){let a;return{get:i=>{if(typeof window>"u")return i;try{const r=window.localStorage.getItem(n);return Ry(r)?r:i}catch{return i}},set:i=>{try{window.localStorage.setItem(n,i)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:i=>{a=r=>{r.storageArea===window.localStorage&&r.key===n&&Ry(r.newValue)&&i(r.newValue)},window.addEventListener("storage",a)},unsubscribe:()=>{window.removeEventListener("storage",a)},clear:()=>{window.localStorage.removeItem(n)}}}function vi(n,a){return typeof n.primaryShade=="number"?n.primaryShade:a==="dark"?n.primaryShade.dark:n.primaryShade.light}function y2(n){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(n)}function b2(n){let a=n.replace("#","");if(a.length===3){const r=a.split("");a=[r[0],r[0],r[1],r[1],r[2],r[2]].join("")}if(a.length===8){const r=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:r}}const i=parseInt(a,16);return{r:i>>16&255,g:i>>8&255,b:i&255,a:1}}function S2(n){const[a,i,r,s]=n.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:a,g:i,b:r,a:s===void 0?1:s}}function x2(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 i=parseInt(a[1],10),r=parseInt(a[2],10)/100,s=parseInt(a[3],10)/100,u=a[5]?parseFloat(a[5]):void 0,d=(1-Math.abs(2*s-1))*r,m=i/60,p=d*(1-Math.abs(m%2-1)),h=s-d/2;let S,g,y;return m>=0&&m<1?(S=d,g=p,y=0):m>=1&&m<2?(S=p,g=d,y=0):m>=2&&m<3?(S=0,g=d,y=p):m>=3&&m<4?(S=0,g=p,y=d):m>=4&&m<5?(S=p,g=0,y=d):(S=d,g=0,y=p),{r:Math.round((S+h)*255),g:Math.round((g+h)*255),b:Math.round((y+h)*255),a:u||1}}function mm(n){return y2(n)?b2(n):n.startsWith("rgb")?S2(n):n.startsWith("hsl")?x2(n):{r:0,g:0,b:0,a:1}}function Ed(n){return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}function w2(n){const a=n.match(/oklch\((.*?)%\s/);return a?parseFloat(a[1]):null}function E2(n){if(n.startsWith("oklch("))return(w2(n)||0)/100;const{r:a,g:i,b:r}=mm(n),s=a/255,u=i/255,d=r/255,m=Ed(s),p=Ed(u),h=Ed(d);return .2126*m+.7152*p+.0722*h}function si(n,a=.179){return n.startsWith("var(")?!1:E2(n)>a}function Si({color:n,theme:a,colorScheme:i}){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:i==="dark"?a.white:a.black,shade:void 0,isThemeColor:!1,isLight:si(i==="dark"?a.white:a.black,a.luminanceThreshold),variable:"--mantine-color-bright"};if(n==="dimmed")return{color:n,value:i==="dark"?a.colors.dark[2]:a.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:si(i==="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:si(n==="white"?a.white:a.black,a.luminanceThreshold),variable:`--mantine-color-${n}`};const[r,s]=n.split("."),u=s?Number(s):void 0,d=r in a.colors;if(d){const m=u!==void 0?a.colors[r][u]:a.colors[r][vi(a,i||"light")];return{color:r,value:m,shade:u,isThemeColor:d,isLight:si(m,a.luminanceThreshold),variable:s?`--mantine-color-${r}-${u}`:`--mantine-color-${r}-filled`}}return{color:n,value:n,isThemeColor:d,isLight:si(n,a.luminanceThreshold),shade:u,variable:void 0}}function An(n,a){const i=Si({color:n||a.primaryColor,theme:a});return i.variable?`var(${i.variable})`:n}function Va(n,a){if(n.startsWith("var("))return`color-mix(in srgb, ${n}, black ${a*100}%)`;const{r:i,g:r,b:s,a:u}=mm(n),d=1-a,m=p=>Math.round(p*d);return`rgba(${m(i)}, ${m(r)}, ${m(s)}, ${u})`}function Vd(n,a){const i={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},r=An(i.from,a),s=An(i.to,a);return`linear-gradient(${i.deg}deg, ${r} 0%, ${s} 100%)`}function va(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:i,g:r,b:s}=mm(n);return`rgba(${i}, ${r}, ${s}, ${a})`}const _y=va,C2=({color:n,theme:a,variant:i,gradient:r,autoContrast:s})=>{const u=Si({color:n,theme:a}),d=typeof s=="boolean"?s:a.autoContrast;if(i==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(i==="filled"){const m=d&&u.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return u.isThemeColor?u.shade===void 0?{background:`var(--mantine-color-${n}-filled)`,hover:`var(--mantine-color-${n}-filled-hover)`,color:m,border:`${Z(1)} solid transparent`}:{background:`var(--mantine-color-${u.color}-${u.shade})`,hover:`var(--mantine-color-${u.color}-${u.shade===9?8:u.shade+1})`,color:m,border:`${Z(1)} solid transparent`}:{background:n,hover:Va(n,.1),color:m,border:`${Z(1)} solid transparent`}}if(i==="light"){if(u.isThemeColor){if(u.shade===void 0)return{background:`var(--mantine-color-${n}-light)`,hover:`var(--mantine-color-${n}-light-hover)`,color:`var(--mantine-color-${n}-light-color)`,border:`${Z(1)} solid transparent`};const m=a.colors[u.color][u.shade];return{background:m,hover:Va(m,.1),color:`var(--mantine-color-${u.color}-light-color)`,border:`${Z(1)} solid transparent`}}return{background:va(n,.1),hover:va(n,.12),color:n,border:`${Z(1)} solid transparent`}}if(i==="outline")return u.isThemeColor?u.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${n}-outline-hover)`,color:`var(--mantine-color-${n}-outline)`,border:`${Z(1)} solid var(--mantine-color-${n}-outline)`}:{background:"transparent",hover:va(a.colors[u.color][u.shade],.05),color:`var(--mantine-color-${u.color}-${u.shade})`,border:`${Z(1)} solid var(--mantine-color-${u.color}-${u.shade})`}:{background:"transparent",hover:va(n,.05),color:n,border:`${Z(1)} solid ${n}`};if(i==="subtle"){if(u.isThemeColor){if(u.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${n}-light-hover)`,color:`var(--mantine-color-${n}-light-color)`,border:`${Z(1)} solid transparent`};const m=a.colors[u.color][u.shade];return{background:"transparent",hover:va(m,.12),color:`var(--mantine-color-${u.color}-${Math.min(u.shade,6)})`,border:`${Z(1)} solid transparent`}}return{background:"transparent",hover:va(n,.12),color:n,border:`${Z(1)} solid transparent`}}return i==="transparent"?u.isThemeColor?u.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${n}-light-color)`,border:`${Z(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${u.color}-${Math.min(u.shade,6)})`,border:`${Z(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:n,border:`${Z(1)} solid transparent`}:i==="white"?u.isThemeColor?u.shade===void 0?{background:"var(--mantine-color-white)",hover:Va(a.white,.01),color:`var(--mantine-color-${n}-filled)`,border:`${Z(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Va(a.white,.01),color:`var(--mantine-color-${u.color}-${u.shade})`,border:`${Z(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Va(a.white,.01),color:n,border:`${Z(1)} solid transparent`}:i==="gradient"?{background:Vd(r,a),hover:Vd(r,a),color:"var(--mantine-color-white)",border:"none"}:i==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${Z(1)} solid var(--mantine-color-default-border)`}:{}};function _0({color:n,theme:a,autoContrast:i}){return(typeof i=="boolean"?i:a.autoContrast)&&Si({color:n||a.primaryColor,theme:a}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Ay(n,a){return _0({color:n.colors[n.primaryColor][vi(n,a)],theme:n,autoContrast:null})}function T2(n,a){return typeof n=="boolean"?n:a.autoContrast}const A0=x.createContext(null);function cl(){const n=x.use(A0);if(!n)throw new Error("[@mantine/core] MantineProvider was not found in tree");return n}function R2(){return cl().cssVariablesResolver}function _2(){return cl().classNamesPrefix}function pm(){return cl().getStyleNonce}function A2(){return cl().withStaticClasses}function j2(){return cl().headless}function N2(){var n;return(n=cl().stylesTransform)==null?void 0:n.sx}function O2(){var n;return(n=cl().stylesTransform)==null?void 0:n.styles}function yc(){return cl().env||"default"}function M2(){return cl().deduplicateInlineStyles}function qo(n,a){var s,u;const i=typeof window<"u"&&"matchMedia"in window&&((s=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:s.matches),r=n!=="auto"?n:i?"dark":"light";(u=a())==null||u.setAttribute("data-mantine-color-scheme",r)}function z2({manager:n,defaultColorScheme:a,getRootElement:i,forceColorScheme:r}){const s=x.useRef(null),[u,d]=x.useState(()=>n.get(a)),m=r||u,p=x.useCallback(S=>{r||(qo(S,i),d(S),n.set(S))},[n.set,m,r]),h=x.useCallback(()=>{d(a),qo(a,i),n.clear()},[n.clear,a]);return x.useEffect(()=>(n.subscribe(p),n.unsubscribe),[n.subscribe,n.unsubscribe]),ol(()=>{qo(n.get(a),i)},[]),x.useEffect(()=>{var g;if(r)return qo(r,i),()=>{};r===void 0&&qo(u,i),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const S=y=>{u==="auto"&&qo(y.matches?"dark":"light",i)};return(g=s.current)==null||g.addEventListener("change",S),()=>{var y;return(y=s.current)==null?void 0:y.removeEventListener("change",S)}},[u,r]),{colorScheme:m,setColorScheme:p,clearColorScheme:h}}const D2={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"]},jy="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",hm={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:D2,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:C2,autoContrast:!1,luminanceThreshold:.3,fontFamily:jy,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:jy,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:Z(34),lineHeight:"1.3"},h2:{fontSize:Z(26),lineHeight:"1.35"},h3:{fontSize:Z(22),lineHeight:"1.4"},h4:{fontSize:Z(18),lineHeight:"1.45"},h5:{fontSize:Z(16),lineHeight:"1.5"},h6:{fontSize:Z(14),lineHeight:"1.5"}}},fontSizes:{xs:Z(12),sm:Z(14),md:Z(16),lg:Z(18),xl:Z(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:Z(2),sm:Z(4),md:Z(8),lg:Z(16),xl:Z(32)},spacing:{xs:Z(10),sm:Z(12),md:Z(16),lg:Z(20),xl:Z(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${Z(1)} ${Z(3)} rgba(0, 0, 0, 0.05), 0 ${Z(1)} ${Z(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${Z(1)} ${Z(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Z(10)} ${Z(15)} ${Z(-5)}, rgba(0, 0, 0, 0.04) 0 ${Z(7)} ${Z(7)} ${Z(-5)}`,md:`0 ${Z(1)} ${Z(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Z(20)} ${Z(25)} ${Z(-5)}, rgba(0, 0, 0, 0.04) 0 ${Z(10)} ${Z(10)} ${Z(-5)}`,lg:`0 ${Z(1)} ${Z(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Z(28)} ${Z(23)} ${Z(-7)}, rgba(0, 0, 0, 0.04) 0 ${Z(12)} ${Z(12)} ${Z(-7)}`,xl:`0 ${Z(1)} ${Z(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Z(36)} ${Z(28)} ${Z(-7)}, rgba(0, 0, 0, 0.04) 0 ${Z(17)} ${Z(17)} ${Z(-7)}`},other:{},components:{}},B2="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Ny="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Cd(n){return n<0||n>9?!1:parseInt(n.toString(),10)===n}function Oy(n){if(!(n.primaryColor in n.colors))throw new Error(B2);if(typeof n.primaryShade=="object"&&(!Cd(n.primaryShade.dark)||!Cd(n.primaryShade.light)))throw new Error(Ny);if(typeof n.primaryShade=="number"&&!Cd(n.primaryShade))throw new Error(Ny)}function H2(n,a){var r;if(!a)return Oy(n),n;const i=im(n,a);return a.fontFamily&&!((r=a.headings)!=null&&r.fontFamily)&&(i.headings={...i.headings,fontFamily:a.fontFamily}),Oy(i),i}const vm=x.createContext(null),L2=()=>x.use(vm)||hm;function Nn(){const n=x.use(vm);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 j0({theme:n,children:a,inherit:i=!0}){const r=L2();return v.jsx(vm,{value:x.useMemo(()=>H2(i?r:hm,n),[n,r,i]),children:a})}j0.displayName="@mantine/core/MantineThemeProvider";function Td(n){return Object.entries(n).map(([a,i])=>`${a}: ${i};`).join("")}function N0(n,a){const i=a?[a]:[":root",":host"],r=Td(n.variables),s=r?`${i.join(", ")}{${r}}`:"",u=Td(n.dark),d=Td(n.light),m=p=>i.map(h=>h===":host"?`${h}([data-mantine-color-scheme="${p}"])`:`${h}[data-mantine-color-scheme="${p}"]`).join(", ");return`${s} - -${u?`${m("dark")}{${u}}`:""} - -${d?`${m("light")}{${d}}`:""}`}function Zs({theme:n,color:a,colorScheme:i,name:r=a,withColorValues:s=!0}){if(!n.colors[a])return{};if(i==="light"){const m=vi(n,"light"),p={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${m})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${m===9?8:m+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${m})`,[`--mantine-color-${r}-outline-hover`]:_y(n.colors[a][m],.05)};return s?{[`--mantine-color-${r}-0`]:n.colors[a][0],[`--mantine-color-${r}-1`]:n.colors[a][1],[`--mantine-color-${r}-2`]:n.colors[a][2],[`--mantine-color-${r}-3`]:n.colors[a][3],[`--mantine-color-${r}-4`]:n.colors[a][4],[`--mantine-color-${r}-5`]:n.colors[a][5],[`--mantine-color-${r}-6`]:n.colors[a][6],[`--mantine-color-${r}-7`]:n.colors[a][7],[`--mantine-color-${r}-8`]:n.colors[a][8],[`--mantine-color-${r}-9`]:n.colors[a][9],...p}:p}const u=vi(n,"dark"),d={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${u})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${u===9?8:u+1})`,[`--mantine-color-${r}-light`]:Va(n.colors[a][9],.5),[`--mantine-color-${r}-light-hover`]:Va(n.colors[a][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(u-4,0)})`,[`--mantine-color-${r}-outline-hover`]:_y(n.colors[a][Math.max(u-4,0)],.05)};return s?{[`--mantine-color-${r}-0`]:n.colors[a][0],[`--mantine-color-${r}-1`]:n.colors[a][1],[`--mantine-color-${r}-2`]:n.colors[a][2],[`--mantine-color-${r}-3`]:n.colors[a][3],[`--mantine-color-${r}-4`]:n.colors[a][4],[`--mantine-color-${r}-5`]:n.colors[a][5],[`--mantine-color-${r}-6`]:n.colors[a][6],[`--mantine-color-${r}-7`]:n.colors[a][7],[`--mantine-color-${r}-8`]:n.colors[a][8],[`--mantine-color-${r}-9`]:n.colors[a][9],...d}:d}function U2(n){return!!n&&typeof n=="object"&&"mantine-virtual-color"in n}function $a(n,a,i){Nt(a).forEach(r=>Object.assign(n,{[`--mantine-${i}-${r}`]:a[r]}))}const O0=n=>{const a=vi(n,"light"),i=n.defaultRadius in n.radius?n.radius[n.defaultRadius]:Z(n.defaultRadius),r={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":i,"--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":Ay(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":Ay(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)"}};$a(r.variables,n.breakpoints,"breakpoint"),$a(r.variables,n.spacing,"spacing"),$a(r.variables,n.fontSizes,"font-size"),$a(r.variables,n.lineHeights,"line-height"),$a(r.variables,n.shadows,"shadow"),$a(r.variables,n.radius,"radius"),$a(r.variables,n.fontWeights,"font-weight"),n.colors[n.primaryColor].forEach((u,d)=>{r.variables[`--mantine-primary-color-${d}`]=`var(--mantine-color-${n.primaryColor}-${d})`}),Nt(n.colors).forEach(u=>{const d=n.colors[u];if(U2(d)){Object.assign(r.light,Zs({theme:n,name:d.name,color:d.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,Zs({theme:n,name:d.name,color:d.dark,colorScheme:"dark",withColorValues:!0}));return}d.forEach((m,p)=>{r.variables[`--mantine-color-${u}-${p}`]=m}),Object.assign(r.light,Zs({theme:n,color:u,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,Zs({theme:n,color:u,colorScheme:"dark",withColorValues:!1}))});const s=n.headings.sizes;return Nt(s).forEach(u=>{r.variables[`--mantine-${u}-font-size`]=s[u].fontSize,r.variables[`--mantine-${u}-line-height`]=s[u].lineHeight,r.variables[`--mantine-${u}-font-weight`]=s[u].fontWeight||n.headings.fontWeight}),r};function $2(){const n=Nn(),a=pm(),i=Nt(n.breakpoints).reduce((r,s)=>{const u=n.breakpoints[s].includes("px"),d=Yd(n.breakpoints[s]);return`${r}@media (max-width: ${u?`${d-.1}px`:rc(d-.1)}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${u?`${d}px`:rc(d)}) {.mantine-hidden-from-${s} {display: none !important;}}`},"");return v.jsx("style",{"data-mantine-styles":"classes",nonce:a==null?void 0:a(),dangerouslySetInnerHTML:{__html:i}})}function Y2({theme:n,generator:a}){const i=O0(n),r=a==null?void 0:a(n);return r?im(i,r):i}const Rd=O0(hm);function k2(n){const a={variables:{},light:{},dark:{}};return Nt(n.variables).forEach(i=>{Rd.variables[i]!==n.variables[i]&&(a.variables[i]=n.variables[i])}),Nt(n.light).forEach(i=>{Rd.light[i]!==n.light[i]&&(a.light[i]=n.light[i])}),Nt(n.dark).forEach(i=>{Rd.dark[i]!==n.dark[i]&&(a.dark[i]=n.dark[i])}),a}function X2(n){return N0({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},n)}function M0({cssVariablesSelector:n,deduplicateCssVariables:a}){const i=Nn(),r=pm(),s=Y2({theme:i,generator:R2()}),u=(n===void 0||n===":root"||n===":host")&&a,d=N0(u?k2(s):s,n);return d?v.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${d}${u?"":X2(n)}`}}):null}M0.displayName="@mantine/CssVariables";function V2({respectReducedMotion:n,getRootElement:a}){ol(()=>{var i;n&&((i=a())==null||i.setAttribute("data-respect-reduced-motion","true"))},[n])}function z0({theme:n,children:a,getStyleNonce:i,withStaticClasses:r=!0,withGlobalClasses:s=!0,deduplicateCssVariables:u=!0,withCssVariables:d=!0,cssVariablesSelector:m,classNamesPrefix:p="mantine",colorSchemeManager:h=g2(),defaultColorScheme:S="light",getRootElement:g=()=>document.documentElement,cssVariablesResolver:y,forceColorScheme:w,stylesTransform:C,env:R,deduplicateInlineStyles:N=!1}){const{colorScheme:A,setColorScheme:T,clearColorScheme:_}=z2({defaultColorScheme:S,forceColorScheme:w,manager:h,getRootElement:g});return V2({respectReducedMotion:(n==null?void 0:n.respectReducedMotion)||!1,getRootElement:g}),v.jsx(A0,{value:{colorScheme:A,setColorScheme:T,clearColorScheme:_,getRootElement:g,classNamesPrefix:p,getStyleNonce:i,cssVariablesResolver:y,cssVariablesSelector:m??":root",withStaticClasses:r,stylesTransform:C,env:R,deduplicateInlineStyles:N},children:v.jsxs(j0,{theme:n,children:[d&&v.jsx(M0,{cssVariablesSelector:m,deduplicateCssVariables:u}),s&&v.jsx($2,{}),a]})})}z0.displayName="@mantine/core/MantineProvider";function se(n,a,i){var d;const r=Nn(),s=(Array.isArray(n)?n:[n]).filter(Boolean);let u={};for(const m of s){const p=(d=r.components[m])==null?void 0:d.defaultProps,h=typeof p=="function"?p(r):p;h&&(u={...u,...h})}return{...a,...u,...sm(i)}}function gm({classNames:n,styles:a,props:i,stylesCtx:r}){const s=Nn();return{resolvedClassNames:n===void 0?void 0:hi({theme:s,classNames:n,props:i,stylesCtx:r||void 0}),resolvedStyles:a===void 0?void 0:ic({theme:s,styles:a,props:i,stylesCtx:r||void 0})}}const q2={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function G2({theme:n,options:a,unstyled:i}){return bt((a==null?void 0:a.focusable)&&!i&&(n.focusClassName||q2[n.focusRing]),(a==null?void 0:a.active)&&!i&&n.activeClassName)}function Q2({selector:n,stylesCtx:a,options:i,props:r,theme:s}){return hi({theme:s,classNames:i==null?void 0:i.classNames,props:(i==null?void 0:i.props)||r,stylesCtx:a})[n]}function Z2({selector:n,stylesCtx:a,theme:i,classNames:r,props:s}){return hi({theme:i,classNames:r,props:s,stylesCtx:a})[n]}function K2({rootSelector:n,selector:a,className:i}){return n===a?i:void 0}function J2({selector:n,classes:a,unstyled:i}){return i?void 0:a[n]}function F2({themeName:n,classNamesPrefix:a,selector:i,withStaticClass:r}){return r===!1?[]:n.map(s=>`${a}-${s}-${i}`)}function W2({options:n,classes:a,selector:i,unstyled:r}){return n!=null&&n.variant&&!r?a[`${i}--${n.variant}`]:void 0}function P2({theme:n,options:a,themeName:i,selector:r,classNamesPrefix:s,resolvedClassNames:u,resolvedThemeClassNames:d,classes:m,unstyled:p,className:h,rootSelector:S,props:g,stylesCtx:y,withStaticClasses:w,headless:C,transformedStyles:R}){return bt(G2({theme:n,options:a,unstyled:p||C}),d.map(N=>N[r]),W2({options:a,classes:m,selector:r,unstyled:p||C}),u[r],Z2({selector:r,stylesCtx:y,theme:n,classNames:R,props:g}),Q2({selector:r,stylesCtx:y,options:a,props:g,theme:n}),K2({rootSelector:S,selector:r,className:h}),J2({selector:r,classes:m,unstyled:p||C}),w&&!C&&F2({themeName:i,classNamesPrefix:s,selector:r,withStaticClass:a==null?void 0:a.withStaticClass}),a==null?void 0:a.className)}function ym({style:n,theme:a}){return Array.isArray(n)?n.reduce((i,r)=>({...i,...ym({style:r,theme:a})}),{}):typeof n=="function"?n(a):n??{}}function I2({theme:n,selector:a,options:i,props:r,stylesCtx:s,rootSelector:u,withStylesTransform:d,resolvedStyles:m,resolvedThemeStyles:p,resolvedVars:h,resolvedRootStyle:S}){return{...p[a],...m[a],...!d&&ic({theme:n,styles:i==null?void 0:i.styles,props:(i==null?void 0:i.props)||r,stylesCtx:s})[a],...h[a],...u===a?S:null,...ym({style:i==null?void 0:i.style,theme:n})}}function eE(n){return n.reduce((a,i)=>(i&&Object.keys(i).forEach(r=>{a[r]={...a[r],...sm(i[r])}}),a),{})}function tE({props:n,stylesCtx:a,themeName:i,theme:r}){var d;const s=(d=O2())==null?void 0:d();return{getTransformedStyles:m=>s?[...m.map(p=>s(p,{props:n,theme:r,ctx:a})),...i.map(p=>{var h;return s((h=r.components[p])==null?void 0:h.styles,{props:n,theme:r,ctx:a})})].filter(Boolean):[],withStylesTransform:!!s}}function xe({name:n,classes:a,props:i,stylesCtx:r,className:s,style:u,rootSelector:d="root",unstyled:m,classNames:p,styles:h,vars:S,varsResolver:g,attributes:y}){var oe;const w=Nn(),C=_2(),R=A2(),N=j2(),A=(Array.isArray(n)?n:[n]).filter(le=>le),{withStylesTransform:T,getTransformedStyles:_}=tE({props:i,stylesCtx:r,themeName:A,theme:w}),z=hi({theme:w,classNames:p,props:i,stylesCtx:r}),L=A.map(le=>{var ee;return hi({theme:w,classNames:(ee=w.components[le])==null?void 0:ee.classNames,props:i,stylesCtx:r})}),$=T?{}:ic({theme:w,styles:h,props:i,stylesCtx:r}),U={};if(!T)for(const le of A){const ee=ic({theme:w,styles:(oe=w.components[le])==null?void 0:oe.styles,props:i,stylesCtx:r});for(const re of Object.keys(ee))U[re]={...U[re],...ee[re]}}const X=eE([N?{}:g==null?void 0:g(w,i,r),...A.map(le=>{var ee,re,K;return(K=(re=(ee=w.components)==null?void 0:ee[le])==null?void 0:re.vars)==null?void 0:K.call(re,w,i,r)}),S==null?void 0:S(w,i,r)]),ae=ym({style:u,theme:w});return(le,ee)=>({...y==null?void 0:y[le],className:P2({theme:w,options:ee,themeName:A,selector:le,classNamesPrefix:C,resolvedClassNames:z,resolvedThemeClassNames:L,classes:a,unstyled:m,className:s,rootSelector:d,props:i,stylesCtx:r,withStaticClasses:R,headless:N,transformedStyles:_([ee==null?void 0:ee.styles,h])}),style:I2({theme:w,selector:le,options:ee,props:i,stylesCtx:r,rootSelector:d,withStylesTransform:T,resolvedStyles:$,resolvedThemeStyles:U,resolvedVars:X,resolvedRootStyle:ae})})}function mi(n){return Nt(n).reduce((a,i)=>n[i]!==void 0?`${a}${Vw(i)}:${n[i]};`:a,"").trim()}function nE({selector:n,styles:a,media:i,container:r}){const s=a?mi(a):"",u=Array.isArray(i)?i.map(m=>`@media${m.query}{${n}{${mi(m.styles)}}}`):[],d=Array.isArray(r)?r.map(m=>`@container ${m.query}{${n}{${mi(m.styles)}}}`):[];return`${s?`${n}{${s}}`:""}${u.join("")}${d.join("")}`.trim()}function lE(n){let a=5381;for(let i=0;i>>0).toString(36)}function D0({deduplicate:n,...a}){const i=pm(),r=nE(a);return n?v.jsx("style",{href:`mantine-${lE(r)}`,precedence:"mantine",nonce:i==null?void 0:i(),children:r}):v.jsx("style",{"data-mantine-styles":"inline",nonce:i==null?void 0:i(),dangerouslySetInnerHTML:{__html:r}})}function aE(n){let a=5381;for(let i=0;i>>0).toString(36)}function oE(n,a){return`__mdi__-${aE(`${n?mi(n):""}|${Array.isArray(a)?a.map(i=>`${i.query}:${mi(i.styles)}`).join("|"):""}`)}`}function bc(n){const{m:a,mx:i,my:r,mt:s,mb:u,ml:d,mr:m,me:p,ms:h,mis:S,mie:g,p:y,px:w,py:C,pt:R,pb:N,pl:A,pr:T,pe:_,ps:z,pis:L,pie:$,bd:U,bdrs:X,bg:ae,c:oe,opacity:le,ff:ee,fz:re,fw:K,lts:ie,ta:O,lh:B,fs:H,tt:J,td:te,w:j,miw:k,maw:F,h:P,mih:ue,mah:fe,bgsz:pe,bgp:Ce,bgr:Re,bga:ze,pos:lt,top:be,left:$e,bottom:qe,right:at,inset:Ct,display:Mt,flex:Dn,hiddenFrom:qt,visibleFrom:ut,lightHidden:tn,darkHidden:Bn,sx:Ye,...We}=n;return{styleProps:sm({m:a,mx:i,my:r,mt:s,mb:u,ml:d,mr:m,me:p,ms:h,mis:S,mie:g,p:y,px:w,py:C,pt:R,pb:N,pl:A,pr:T,pis:L,pie:$,pe:_,ps:z,bd:U,bg:ae,c:oe,opacity:le,ff:ee,fz:re,fw:K,lts:ie,ta:O,lh:B,fs:H,tt:J,td:te,w:j,miw:k,maw:F,h:P,mih:ue,mah:fe,bgsz:pe,bgp:Ce,bgr:Re,bga:ze,pos:lt,top:be,left:$e,bottom:qe,right:at,inset:Ct,display:Mt,flex:Dn,bdrs:X,hiddenFrom:qt,visibleFrom:ut,lightHidden:tn,darkHidden:Bn,sx:Ye}),rest:We}}const rE={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 bm(n,a){const i=Si({color:n,theme:a});return i.color==="dimmed"?"var(--mantine-color-dimmed)":i.color==="bright"?"var(--mantine-color-bright)":i.variable?`var(${i.variable})`:i.color}function iE(n,a){const i=Si({color:n,theme:a});return i.isThemeColor&&i.shade===void 0?`var(--mantine-color-${i.color}-text)`:bm(n,a)}function sE(n,a){if(typeof n=="number")return Z(n);if(typeof n=="string"){const[i,r,...s]=n.split(" ").filter(d=>d.trim()!=="");let u=`${Z(i)}`;return r&&(u+=` ${r}`),s.length>0&&(u+=` ${bm(s.join(" "),a)}`),u.trim()}return n}const My={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 cE(n){return typeof n=="string"&&n in My?My[n]:n}const uE=["h1","h2","h3","h4","h5","h6"];function fE(n,a){return typeof n=="string"&&n in a.fontSizes?`var(--mantine-font-size-${n})`:typeof n=="string"&&uE.includes(n)?`var(--mantine-${n}-font-size)`:typeof n=="number"||typeof n=="string"?Z(n):n}function dE(n){return n}const mE=["h1","h2","h3","h4","h5","h6"];function pE(n,a){return typeof n=="string"&&n in a.lineHeights?`var(--mantine-line-height-${n})`:typeof n=="string"&&mE.includes(n)?`var(--mantine-${n}-line-height)`:n}function hE(n,a){return typeof n=="string"&&n in a.radius?`var(--mantine-radius-${n})`:typeof n=="number"||typeof n=="string"?Z(n):n}function vE(n){return typeof n=="number"?Z(n):n}function gE(n,a){if(typeof n=="number")return Z(n);if(typeof n=="string"){const i=n.replace("-","");if(!(i in a.spacing))return Z(n);const r=`--mantine-spacing-${i}`;return n.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return n}const _d={color:bm,textColor:iE,fontSize:fE,spacing:gE,radius:hE,identity:dE,size:vE,lineHeight:pE,fontFamily:cE,border:sE};function zy(n){return n.replace("(min-width: ","").replace("em)","")}function yE({media:n,...a}){const i=Object.keys(n).sort((r,s)=>Number(zy(r))-Number(zy(s))).map(r=>({query:r,styles:n[r]}));return{...a,media:i}}function bE(n){if(typeof n!="object"||n===null)return!1;const a=Object.keys(n);return!(a.length===1&&a[0]==="base")}function SE(n){return typeof n=="object"&&n!==null?"base"in n?n.base:void 0:n}function xE(n){return typeof n=="object"&&n!==null?Nt(n).filter(a=>a!=="base"):[]}function wE(n,a){return typeof n=="object"&&n!==null&&a in n?n[a]:n}function EE({styleProps:n,data:a,theme:i}){return yE(Nt(n).reduce((r,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return r;const u=a[s],d=Array.isArray(u.property)?u.property:[u.property],m=SE(n[s]);if(!bE(n[s]))return d.forEach(h=>{r.inlineStyles[h]=_d[u.type](m,i)}),r;r.hasResponsiveStyles=!0;const p=xE(n[s]);return d.forEach(h=>{m!=null&&(r.styles[h]=_d[u.type](m,i)),p.forEach(S=>{const g=`(min-width: ${i.breakpoints[S]})`;r.media[g]={...r.media[g],[h]:_d[u.type](wE(n[s],S),i)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function CE(){return`__m__-${x.useId().replace(/[:«»]/g,"")}`}function gi(n,a){return Array.isArray(n)?[...n].reduce((i,r)=>({...i,...gi(r,a)}),{}):typeof n=="function"?n(a):n??{}}function TE(n){return n}const RE=TE;function B0(n){return n}function me(n){const a=n;return a.extend=B0,a.withProps=i=>{const r=s=>v.jsx(a,{...i,...s});return r.extend=a.extend,r.displayName=`WithProps(${a.displayName})`,r},a}function H0(n){return me(n)}function Vt(n){const a=n;return a.withProps=i=>{const r=s=>v.jsx(a,{...i,...s});return r.extend=a.extend,r.displayName=`WithProps(${a.displayName})`,r},a.extend=B0,a}function L0(n){return`data-${(n.startsWith("data-")?n.slice(5):n).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`}function _E(n){return Object.keys(n).reduce((a,i)=>{const r=n[i];return r===void 0||r===""||r===!1||r===null||(a[L0(i)]=n[i]),a},{})}function U0(n){return n?typeof n=="string"?{[L0(n)]:!0}:Array.isArray(n)?[...n].reduce((a,i)=>({...a,...U0(i)}),{}):_E(n):null}function qd(n,a){return Array.isArray(n)?[...n].reduce((i,r)=>({...i,...qd(r,a)}),{}):typeof n=="function"?n(a):n??{}}function AE({theme:n,style:a,vars:i,styleProps:r}){const s=qd(a,n),u=qd(i,n);return{...s,...u,...r}}function $0({component:n,style:a,__vars:i,className:r,variant:s,mod:u,size:d,hiddenFrom:m,visibleFrom:p,lightHidden:h,darkHidden:S,renderRoot:g,__size:y,ref:w,...C}){var ae,oe;const R=Nn(),N=n||"div",{styleProps:A,rest:T}=bc(C),_=(oe=(ae=N2())==null?void 0:ae())==null?void 0:oe(A.sx),z=CE(),L=EE({styleProps:A,theme:R,data:rE}),$=M2(),U=$&&L.hasResponsiveStyles?oE(L.styles,L.media):z,X={ref:w,style:AE({theme:R,style:a,vars:i,styleProps:L.inlineStyles}),className:bt(r,_,{[U]:L.hasResponsiveStyles,"mantine-light-hidden":h,"mantine-dark-hidden":S,[`mantine-hidden-from-${m}`]:m,[`mantine-visible-from-${p}`]:p}),"data-variant":s,"data-size":y0(d)?void 0:d||void 0,size:y,...U0(u),...T};return v.jsxs(v.Fragment,{children:[L.hasResponsiveStyles&&v.jsx(D0,{selector:`.${U}`,styles:L.styles,media:L.media,deduplicate:$}),typeof g=="function"?g(X):v.jsx(N,{...X})]})}$0.displayName="@mantine/core/Box";const ce=RE($0),jE=x.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function nr(){return x.use(jE)}const NE={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0,orientation:"vertical"},Y0=me(n=>{const{children:a,expanded:i,transitionDuration:r,transitionTimingFunction:s,style:u,onTransitionEnd:d,onTransitionStart:m,animateOpacity:p,keepMounted:h,ref:S,orientation:g,...y}=se("Collapse",NE,n),w=yc(),C=Nn(),R=vc(),N=C.respectReducedMotion&&R?0:r,A=(g==="horizontal"?f2:c2)({expanded:i,transitionDuration:N,transitionTimingFunction:s,onTransitionEnd:d,onTransitionStart:m,keepMounted:!1});if(N===0)return h===!0&&w!=="test"?v.jsx(x.Activity,{mode:i?"visible":"hidden",children:v.jsx(ce,{...y,children:a})}):i?v.jsx(ce,{...y,children:a}):null;const T=A.state==="exited";let _;return h===!1?_=T?null:a:h===!0?_=v.jsx(x.Activity,{mode:T?"hidden":"visible",children:a}):_=a,v.jsx(ce,{...y,...A.getCollapseProps({style:{opacity:i||!p?1:0,transition:p?`opacity ${N}ms ${s}`:"none",...gi(u,C)},ref:S}),children:_})});Y0.displayName="@mantine/core/Collapse";const[OE,On]=sl("ScrollArea.Root component was not found in tree");function ba(n,a){const i=x.useEffectEvent(a);ol(()=>{let r=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(i)});return s.observe(n),()=>{window.cancelAnimationFrame(r),s.unobserve(n)}}},[n])}function ME(n){const{style:a,...i}=n,r=On(),[s,u]=x.useState(0),[d,m]=x.useState(0),p=!!(s&&d);return ba(r.scrollbarX,()=>{var S;const h=((S=r.scrollbarX)==null?void 0:S.offsetHeight)||0;r.onCornerHeightChange(h),m(h)}),ba(r.scrollbarY,()=>{var S;const h=((S=r.scrollbarY)==null?void 0:S.offsetWidth)||0;r.onCornerWidthChange(h),u(h)}),p?v.jsx("div",{...i,style:{...a,width:s,height:d}}):null}function zE(n){const a=On(),i=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&i?v.jsx(ME,{...n}):null}const DE={scrollHideDelay:1e3,type:"hover"};function k0(n){const{type:a,scrollHideDelay:i,scrollbars:r,getStyles:s,ref:u,...d}=se("ScrollAreaRoot",DE,n),[m,p]=x.useState(null),[h,S]=x.useState(null),[g,y]=x.useState(null),[w,C]=x.useState(null),[R,N]=x.useState(null),[A,T]=x.useState(0),[_,z]=x.useState(0),[L,$]=x.useState(!1),[U,X]=x.useState(!1),ae=Xt(u,p);return v.jsx(OE,{value:{type:a,scrollHideDelay:i,scrollArea:m,viewport:h,onViewportChange:S,content:g,onContentChange:y,scrollbarX:w,onScrollbarXChange:C,scrollbarXEnabled:L,onScrollbarXEnabledChange:$,scrollbarY:R,onScrollbarYChange:N,scrollbarYEnabled:U,onScrollbarYEnabledChange:X,onCornerWidthChange:T,onCornerHeightChange:z,getStyles:s},children:v.jsx(ce,{...d,ref:ae,__vars:{"--sa-corner-width":r!=="xy"?"0px":`${A}px`,"--sa-corner-height":r!=="xy"?"0px":`${_}px`}})})}k0.displayName="@mantine/core/ScrollAreaRoot";function X0(n,a){const i=n/a;return Number.isNaN(i)?0:i}function Sc(n){const a=X0(n.viewport,n.content),i=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,r=(n.scrollbar.size-i)*a;return Math.max(r,18)}function V0(n,a){return i=>{if(n[0]===n[1]||a[0]===a[1])return a[0];const r=(a[1]-a[0])/(n[1]-n[0]);return a[0]+r*(i-n[0])}}function BE(n,[a,i]){return Math.min(i,Math.max(a,n))}function Dy(n,a,i="ltr"){const r=Sc(a),s=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,u=a.scrollbar.size-s,d=a.content-a.viewport,m=u-r,p=BE(n,i==="ltr"?[0,d]:[d*-1,0]);return V0([0,d],[0,m])(p)}function HE(n,a,i,r="ltr"){const s=Sc(i),u=s/2,d=a||u,m=s-d,p=i.scrollbar.paddingStart+d,h=i.scrollbar.size-i.scrollbar.paddingEnd-m,S=i.content-i.viewport,g=r==="ltr"?[0,S]:[S*-1,0];return V0([p,h],g)(n)}function q0(n,a){return n>0&&n{n==null||n(r),(i===!1||!r.defaultPrevented)&&(a==null||a(r))}}const[LE,G0]=sl("ScrollAreaScrollbar was not found in tree");function Q0(n){const{sizes:a,hasThumb:i,onThumbChange:r,onThumbPointerUp:s,onThumbPointerDown:u,onThumbPositionChange:d,onDragScroll:m,onWheelScroll:p,onResize:h,ref:S,...g}=n,y=On(),[w,C]=x.useState(null),R=Xt(S,C),N=x.useRef(null),A=x.useRef(""),{viewport:T}=y,_=a.content-a.viewport,z=x.useEffectEvent(p),L=ui(d),$=hc(h,10),U=X=>{N.current&&m({x:X.clientX-N.current.left,y:X.clientY-N.current.top})};return x.useEffect(()=>{const X=ae=>{const oe=ae.target;w!=null&&w.contains(oe)&&z(ae,_)};return document.addEventListener("wheel",X,{passive:!1}),()=>document.removeEventListener("wheel",X,{passive:!1})},[T,w,_]),x.useEffect(L,[a,L]),ba(w,$),ba(y.content,$),v.jsx(LE,{value:{scrollbar:w,hasThumb:i,onThumbChange:ui(r),onThumbPointerUp:ui(s),onThumbPositionChange:L,onThumbPointerDown:ui(u)},children:v.jsx("div",{...g,ref:R,"data-mantine-scrollbar":!0,style:{position:"absolute",...g.style},onPointerDown:Qa(n.onPointerDown,X=>{X.preventDefault(),X.button===0&&(X.target.setPointerCapture(X.pointerId),N.current=w.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",U(X))}),onPointerMove:Qa(n.onPointerMove,U),onPointerUp:Qa(n.onPointerUp,X=>{const ae=X.target;ae.hasPointerCapture(X.pointerId)&&(X.preventDefault(),ae.releasePointerCapture(X.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=A.current,N.current=null}})})}const Z0=n=>{const{sizes:a,onSizesChange:i,style:r,ref:s,...u}=n,d=On(),[m,p]=x.useState(),h=x.useRef(null),S=Xt(s,h,d.onScrollbarXChange);return x.useEffect(()=>{h.current&&p(getComputedStyle(h.current))},[h]),v.jsx(Q0,{"data-orientation":"horizontal",...u,ref:S,sizes:a,style:{...r,"--sa-thumb-width":`${Sc(a)}px`},onThumbPointerDown:g=>n.onThumbPointerDown(g.x),onDragScroll:g=>n.onDragScroll(g.x),onWheelScroll:(g,y)=>{if(d.viewport){const w=d.viewport.scrollLeft+g.deltaX;n.onWheelScroll(w),q0(w,y)&&g.preventDefault()}},onResize:()=>{h.current&&d.viewport&&m&&i({content:d.viewport.scrollWidth,viewport:d.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:sc(m.paddingLeft),paddingEnd:sc(m.paddingRight)}})}})};Z0.displayName="@mantine/core/ScrollAreaScrollbarX";function K0(n){const{sizes:a,onSizesChange:i,style:r,ref:s,...u}=n,d=On(),[m,p]=x.useState(),h=x.useRef(null),S=Xt(s,h,d.onScrollbarYChange);return x.useEffect(()=>{h.current&&p(window.getComputedStyle(h.current))},[]),v.jsx(Q0,{...u,"data-orientation":"vertical",ref:S,sizes:a,style:{"--sa-thumb-height":`${Sc(a)}px`,...r},onThumbPointerDown:g=>n.onThumbPointerDown(g.y),onDragScroll:g=>n.onDragScroll(g.y),onWheelScroll:(g,y)=>{if(d.viewport){const w=d.viewport.scrollTop+g.deltaY;n.onWheelScroll(w),q0(w,y)&&g.preventDefault()}},onResize:()=>{h.current&&d.viewport&&m&&i({content:d.viewport.scrollHeight,viewport:d.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:sc(m.paddingTop),paddingEnd:sc(m.paddingBottom)}})}})}K0.displayName="@mantine/core/ScrollAreaScrollbarY";function xc(n){const{orientation:a="vertical",...i}=n,{dir:r}=nr(),s=On(),u=x.useRef(null),d=x.useRef(0),[m,p]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=X0(m.viewport,m.content),S={...i,sizes:m,onSizesChange:p,hasThumb:h>0&&h<1,onThumbChange:y=>{u.current=y},onThumbPointerUp:()=>{d.current=0},onThumbPointerDown:y=>{d.current=y}},g=(y,w)=>HE(y,d.current,m,w);return a==="horizontal"?v.jsx(Z0,{...S,onThumbPositionChange:()=>{if(s.viewport&&u.current){const y=s.viewport.scrollLeft,w=Dy(y,m,r);u.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:y=>{s.viewport&&(s.viewport.scrollLeft=y)},onDragScroll:y=>{s.viewport&&(s.viewport.scrollLeft=g(y,r))}}):a==="vertical"?v.jsx(K0,{...S,onThumbPositionChange:()=>{if(s.viewport&&u.current){const y=s.viewport.scrollTop,w=Dy(y,m);m.scrollbar.size===0?u.current.style.setProperty("--thumb-opacity","0"):u.current.style.setProperty("--thumb-opacity","1"),u.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:y=>{s.viewport&&(s.viewport.scrollTop=y)},onDragScroll:y=>{s.viewport&&(s.viewport.scrollTop=g(y))}}):null}xc.displayName="@mantine/core/ScrollAreaScrollbarVisible";function Sm(n){const a=On(),{forceMount:i,...r}=n,[s,u]=x.useState(!1),d=n.orientation==="horizontal",m=hc(()=>{if(a.viewport){const p=a.viewport.offsetWidth{const{scrollArea:d}=r;let m=0;if(d){const p=()=>{window.clearTimeout(m),u(!0)},h=()=>{m=window.setTimeout(()=>u(!1),r.scrollHideDelay)};return d.addEventListener("pointerenter",p),d.addEventListener("pointerleave",h),()=>{window.clearTimeout(m),d.removeEventListener("pointerenter",p),d.removeEventListener("pointerleave",h)}}},[r.scrollArea,r.scrollHideDelay]),a||s?v.jsx(Sm,{"data-state":s?"visible":"hidden",...i}):null}J0.displayName="@mantine/core/ScrollAreaScrollbarHover";function UE(n){const{forceMount:a,...i}=n,r=On(),s=n.orientation==="horizontal",[u,d]=x.useState("hidden"),m=hc(()=>d("idle"),100);return x.useEffect(()=>{if(u==="idle"){const p=window.setTimeout(()=>d("hidden"),r.scrollHideDelay);return()=>window.clearTimeout(p)}},[u,r.scrollHideDelay]),x.useEffect(()=>{const{viewport:p}=r,h=s?"scrollLeft":"scrollTop";if(p){let S=p[h];const g=()=>{const y=p[h];S!==y&&(d("scrolling"),m()),S=y};return p.addEventListener("scroll",g),()=>p.removeEventListener("scroll",g)}},[r.viewport,s,m]),a||u!=="hidden"?v.jsx(xc,{"data-state":u==="hidden"?"hidden":"visible",...i,onPointerEnter:Qa(n.onPointerEnter,()=>d("interacting")),onPointerLeave:Qa(n.onPointerLeave,()=>d("idle"))}):null}function Gd(n){const{forceMount:a,...i}=n,r=On(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:u}=r,d=n.orientation==="horizontal";return x.useEffect(()=>(d?s(!0):u(!0),()=>{d?s(!1):u(!1)}),[d,s,u]),r.type==="hover"?v.jsx(J0,{...i,forceMount:a}):r.type==="scroll"?v.jsx(UE,{...i,forceMount:a}):r.type==="auto"?v.jsx(Sm,{...i,forceMount:a}):r.type==="always"?v.jsx(xc,{...i}):null}Gd.displayName="@mantine/core/ScrollAreaScrollbar";function $E(n,a=()=>{}){let i={left:n.scrollLeft,top:n.scrollTop},r=0;return(function s(){const u={left:n.scrollLeft,top:n.scrollTop},d=i.left!==u.left,m=i.top!==u.top;(d||m)&&a(),i=u,r=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(r)}function F0(n){const{style:a,ref:i,...r}=n,s=On(),u=G0(),{onThumbPositionChange:d}=u,m=Xt(i,u.onThumbChange),p=x.useRef(void 0),h=hc(()=>{p.current&&(p.current(),p.current=void 0)},100);return x.useEffect(()=>{const{viewport:S}=s;if(S){const g=()=>{h(),p.current||(p.current=$E(S,d),d())};return d(),S.addEventListener("scroll",g),()=>S.removeEventListener("scroll",g)}},[s.viewport,h,d]),v.jsx("div",{"data-state":u.hasThumb?"visible":"hidden",...r,ref:m,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...a},onPointerDownCapture:Qa(n.onPointerDownCapture,S=>{const g=S.target.getBoundingClientRect(),y=S.clientX-g.left,w=S.clientY-g.top;u.onThumbPointerDown({x:y,y:w})}),onPointerUp:Qa(n.onPointerUp,u.onThumbPointerUp)})}F0.displayName="@mantine/core/ScrollAreaThumb";function Qd(n){const{forceMount:a,...i}=n,r=G0();return a||r.hasThumb?v.jsx(F0,{...i}):null}Qd.displayName="@mantine/core/ScrollAreaThumb";function W0({children:n,style:a,ref:i,onWheel:r,...s}){const u=On(),d=Xt(i,u.onViewportChange),m=p=>{if(r==null||r(p),u.scrollbarXEnabled&&u.viewport&&p.shiftKey){const{scrollTop:h,scrollHeight:S,clientHeight:g,scrollWidth:y,clientWidth:w}=u.viewport,C=h<1,R=h>=S-g-1;y>w&&(C||R)&&p.stopPropagation()}};return v.jsx(ce,{...s,ref:d,onWheel:m,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...a},children:v.jsx("div",{...u.getStyles("content"),ref:u.onContentChange,children:n})})}W0.displayName="@mantine/core/ScrollAreaViewport";var xm={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};function wc(){return typeof window<"u"}function lr(n){return P0(n)?(n.nodeName||"").toLowerCase():"#document"}function It(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function ul(n){var a;return(a=(P0(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function P0(n){return wc()?n instanceof Node||n instanceof It(n).Node:!1}function et(n){return wc()?n instanceof Element||n instanceof It(n).Element:!1}function Mn(n){return wc()?n instanceof HTMLElement||n instanceof It(n).HTMLElement:!1}function Zd(n){return!wc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof It(n).ShadowRoot}function xi(n){const{overflow:a,overflowX:i,overflowY:r,display:s}=jn(n);return/auto|scroll|overlay|hidden|clip/.test(a+r+i)&&s!=="inline"&&s!=="contents"}function YE(n){return/^(table|td|th)$/.test(lr(n))}function Ec(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const kE=/transform|translate|scale|rotate|perspective|filter/,XE=/paint|layout|strict|content/,Ya=n=>!!n&&n!=="none";let Ad;function wm(n){const a=et(n)?jn(n):n;return Ya(a.transform)||Ya(a.translate)||Ya(a.scale)||Ya(a.rotate)||Ya(a.perspective)||!Cc()&&(Ya(a.backdropFilter)||Ya(a.filter))||kE.test(a.willChange||"")||XE.test(a.contain||"")}function VE(n){let a=Ul(n);for(;Mn(a)&&!Bl(a);){if(wm(a))return a;if(Ec(a))return null;a=Ul(a)}return null}function Cc(){return Ad==null&&(Ad=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ad}function Bl(n){return/^(html|body|#document)$/.test(lr(n))}function jn(n){return It(n).getComputedStyle(n)}function Tc(n){return et(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ul(n){if(lr(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Zd(n)&&n.host||ul(n);return Zd(a)?a.host:a}function I0(n){const a=Ul(n);return Bl(a)?n.ownerDocument?n.ownerDocument.body:n.body:Mn(a)&&xi(a)?a:I0(a)}function Hl(n,a,i){var r;a===void 0&&(a=[]),i===void 0&&(i=!0);const s=I0(n),u=s===((r=n.ownerDocument)==null?void 0:r.body),d=It(s);if(u){const m=Kd(d);return a.concat(d,d.visualViewport||[],xi(s)?s:[],m&&i?Hl(m):[])}else return a.concat(s,Hl(s,[],i))}function Kd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const qE=["top","right","bottom","left"],Vn=Math.min,Bt=Math.max,cc=Math.round,Ks=Math.floor,ll=n=>({x:n,y:n}),GE={left:"right",right:"left",bottom:"top",top:"bottom"};function Jd(n,a,i){return Bt(n,Vn(a,i))}function rl(n,a){return typeof n=="function"?n(a):n}function qn(n){return n.split("-")[0]}function ar(n){return n.split("-")[1]}function Em(n){return n==="x"?"y":"x"}function Cm(n){return n==="y"?"height":"width"}function kn(n){const a=n[0];return a==="t"||a==="b"?"y":"x"}function Tm(n){return Em(kn(n))}function QE(n,a,i){i===void 0&&(i=!1);const r=ar(n),s=Tm(n),u=Cm(s);let d=s==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(d=uc(d)),[d,uc(d)]}function ZE(n){const a=uc(n);return[Fd(n),a,Fd(a)]}function Fd(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const By=["left","right"],Hy=["right","left"],KE=["top","bottom"],JE=["bottom","top"];function FE(n,a,i){switch(n){case"top":case"bottom":return i?a?Hy:By:a?By:Hy;case"left":case"right":return a?KE:JE;default:return[]}}function WE(n,a,i,r){const s=ar(n);let u=FE(qn(n),i==="start",r);return s&&(u=u.map(d=>d+"-"+s),a&&(u=u.concat(u.map(Fd)))),u}function uc(n){const a=qn(n);return GE[a]+n.slice(a.length)}function PE(n){return{top:0,right:0,bottom:0,left:0,...n}}function Rm(n){return typeof n!="number"?PE(n):{top:n,right:n,bottom:n,left:n}}function Po(n){const{x:a,y:i,width:r,height:s}=n;return{width:r,height:s,top:i,left:a,right:a+r,bottom:i+s,x:a,y:i}}function IE(){const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform}function eC(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(a=>{let{brand:i,version:r}=a;return i+"/"+r}).join(" "):navigator.userAgent}function tC(){return/apple/i.test(navigator.vendor)}function nC(){return IE().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function lC(){return eC().includes("jsdom/")}const Ly="data-floating-ui-focusable",aC="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Uy(n){let a=n.activeElement;for(;((i=a)==null||(i=i.shadowRoot)==null?void 0:i.activeElement)!=null;){var i;a=a.shadowRoot.activeElement}return a}function yi(n,a){if(!n||!a)return!1;const i=a.getRootNode==null?void 0:a.getRootNode();if(n.contains(a))return!0;if(i&&Zd(i)){let r=a;for(;r;){if(n===r)return!0;r=r.parentNode||r.host}}return!1}function Ko(n){return"composedPath"in n?n.composedPath()[0]:n.target}function jd(n,a){if(a==null)return!1;if("composedPath"in n)return n.composedPath().includes(a);const i=n;return i.target!=null&&a.contains(i.target)}function oC(n){return n.matches("html,body")}function qa(n){return(n==null?void 0:n.ownerDocument)||document}function rC(n){return Mn(n)&&n.matches(aC)}function iC(n){if(!n||lC())return!0;try{return n.matches(":focus-visible")}catch{return!0}}function sC(n){return n?n.hasAttribute(Ly)?n:n.querySelector("["+Ly+"]")||n:null}function ec(n,a,i){return i===void 0&&(i=!0),n.filter(s=>{var u;return s.parentId===a&&(!i||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...ec(n,s.id,i)])}function cC(n){return"nativeEvent"in n}function Wd(n,a){const i=["mouse","pen"];return i.push("",void 0),i.includes(n)}var uC=typeof document<"u",fC=function(){},al=uC?x.useLayoutEffect:fC;const dC={...h0};function Js(n){const a=x.useRef(n);return al(()=>{a.current=n}),a}const mC=dC.useInsertionEffect,pC=mC||(n=>n());function tl(n){const a=x.useRef(()=>{});return pC(()=>{a.current=n}),x.useCallback(function(){for(var i=arguments.length,r=new Array(i),s=0;s{const{placement:r="bottom",strategy:s="absolute",middleware:u=[],platform:d}=i,m=d.detectOverflow?d:{...d,detectOverflow:hC},p=await(d.isRTL==null?void 0:d.isRTL(a));let h=await d.getElementRects({reference:n,floating:a,strategy:s}),{x:S,y:g}=$y(h,r,p),y=r,w=0;const C={};for(let R=0;R({name:"arrow",options:n,async fn(a){const{x:i,y:r,placement:s,rects:u,platform:d,elements:m,middlewareData:p}=a,{element:h,padding:S=0}=rl(n,a)||{};if(h==null)return{};const g=Rm(S),y={x:i,y:r},w=Tm(s),C=Cm(w),R=await d.getDimensions(h),N=w==="y",A=N?"top":"left",T=N?"bottom":"right",_=N?"clientHeight":"clientWidth",z=u.reference[C]+u.reference[w]-y[w]-u.floating[C],L=y[w]-u.reference[w],$=await(d.getOffsetParent==null?void 0:d.getOffsetParent(h));let U=$?$[_]:0;(!U||!await(d.isElement==null?void 0:d.isElement($)))&&(U=m.floating[_]||u.floating[C]);const X=z/2-L/2,ae=U/2-R[C]/2-1,oe=Vn(g[A],ae),le=Vn(g[T],ae),ee=oe,re=U-R[C]-le,K=U/2-R[C]/2+X,ie=Jd(ee,K,re),O=!p.arrow&&ar(s)!=null&&K!==ie&&u.reference[C]/2-(KK<=0)){var le,ee;const K=(((le=u.flip)==null?void 0:le.index)||0)+1,ie=U[K];if(ie&&(!(g==="alignment"?T!==kn(ie):!1)||oe.every(H=>kn(H.placement)===T?H.overflows[0]>0:!0)))return{data:{index:K,overflows:oe},reset:{placement:ie}};let O=(ee=oe.filter(B=>B.overflows[0]<=0).sort((B,H)=>B.overflows[1]-H.overflows[1])[0])==null?void 0:ee.placement;if(!O)switch(w){case"bestFit":{var re;const B=(re=oe.filter(H=>{if($){const J=kn(H.placement);return J===T||J==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(J=>J>0).reduce((J,te)=>J+te,0)]).sort((H,J)=>H[1]-J[1])[0])==null?void 0:re[0];B&&(O=B);break}case"initialPlacement":O=m;break}if(s!==O)return{reset:{placement:O}}}return{}}}};function Yy(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function ky(n){return qE.some(a=>n[a]>=0)}const SC=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:i,platform:r}=a,{strategy:s="referenceHidden",...u}=rl(n,a);switch(s){case"referenceHidden":{const d=await r.detectOverflow(a,{...u,elementContext:"reference"}),m=Yy(d,i.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:ky(m)}}}case"escaped":{const d=await r.detectOverflow(a,{...u,altBoundary:!0}),m=Yy(d,i.floating);return{data:{escapedOffsets:m,escaped:ky(m)}}}default:return{}}}}};function eb(n){const a=Vn(...n.map(u=>u.left)),i=Vn(...n.map(u=>u.top)),r=Bt(...n.map(u=>u.right)),s=Bt(...n.map(u=>u.bottom));return{x:a,y:i,width:r-a,height:s-i}}function xC(n){const a=n.slice().sort((s,u)=>s.y-u.y),i=[];let r=null;for(let s=0;sr.height/2?i.push([u]):i[i.length-1].push(u),r=u}return i.map(s=>Po(eb(s)))}const wC=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(a){const{placement:i,elements:r,rects:s,platform:u,strategy:d}=a,{padding:m=2,x:p,y:h}=rl(n,a),S=Array.from(await(u.getClientRects==null?void 0:u.getClientRects(r.reference))||[]),g=xC(S),y=Po(eb(S)),w=Rm(m);function C(){if(g.length===2&&g[0].left>g[1].right&&p!=null&&h!=null)return g.find(N=>p>N.left-w.left&&pN.top-w.top&&h=2){if(kn(i)==="y"){const oe=g[0],le=g[g.length-1],ee=qn(i)==="top",re=oe.top,K=le.bottom,ie=ee?oe.left:le.left,O=ee?oe.right:le.right,B=O-ie,H=K-re;return{top:re,bottom:K,left:ie,right:O,width:B,height:H,x:ie,y:re}}const N=qn(i)==="left",A=Bt(...g.map(oe=>oe.right)),T=Vn(...g.map(oe=>oe.left)),_=g.filter(oe=>N?oe.left===T:oe.right===A),z=_[0].top,L=_[_.length-1].bottom,$=T,U=A,X=U-$,ae=L-z;return{top:z,bottom:L,left:$,right:U,width:X,height:ae,x:$,y:z}}return y}const R=await u.getElementRects({reference:{getBoundingClientRect:C},floating:r.floating,strategy:d});return s.reference.x!==R.reference.x||s.reference.y!==R.reference.y||s.reference.width!==R.reference.width||s.reference.height!==R.reference.height?{reset:{rects:R}}:{}}}},tb=new Set(["left","top"]);async function EC(n,a){const{placement:i,platform:r,elements:s}=n,u=await(r.isRTL==null?void 0:r.isRTL(s.floating)),d=qn(i),m=ar(i),p=kn(i)==="y",h=tb.has(d)?-1:1,S=u&&p?-1:1,g=rl(a,n);let{mainAxis:y,crossAxis:w,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return m&&typeof C=="number"&&(w=m==="end"?C*-1:C),p?{x:w*S,y:y*h}:{x:y*h,y:w*S}}const CC=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var i,r;const{x:s,y:u,placement:d,middlewareData:m}=a,p=await EC(a,n);return d===((i=m.offset)==null?void 0:i.placement)&&(r=m.arrow)!=null&&r.alignmentOffset?{}:{x:s+p.x,y:u+p.y,data:{...p,placement:d}}}}},TC=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:i,y:r,placement:s,platform:u}=a,{mainAxis:d=!0,crossAxis:m=!1,limiter:p={fn:A=>{let{x:T,y:_}=A;return{x:T,y:_}}},...h}=rl(n,a),S={x:i,y:r},g=await u.detectOverflow(a,h),y=kn(qn(s)),w=Em(y);let C=S[w],R=S[y];if(d){const A=w==="y"?"top":"left",T=w==="y"?"bottom":"right",_=C+g[A],z=C-g[T];C=Jd(_,C,z)}if(m){const A=y==="y"?"top":"left",T=y==="y"?"bottom":"right",_=R+g[A],z=R-g[T];R=Jd(_,R,z)}const N=p.fn({...a,[w]:C,[y]:R});return{...N,data:{x:N.x-i,y:N.y-r,enabled:{[w]:d,[y]:m}}}}}},RC=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:i,y:r,placement:s,rects:u,middlewareData:d}=a,{offset:m=0,mainAxis:p=!0,crossAxis:h=!0}=rl(n,a),S={x:i,y:r},g=kn(s),y=Em(g);let w=S[y],C=S[g];const R=rl(m,a),N=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(p){const _=y==="y"?"height":"width",z=u.reference[y]-u.floating[_]+N.mainAxis,L=u.reference[y]+u.reference[_]-N.mainAxis;wL&&(w=L)}if(h){var A,T;const _=y==="y"?"width":"height",z=tb.has(qn(s)),L=u.reference[g]-u.floating[_]+(z&&((A=d.offset)==null?void 0:A[g])||0)+(z?0:N.crossAxis),$=u.reference[g]+u.reference[_]+(z?0:((T=d.offset)==null?void 0:T[g])||0)-(z?N.crossAxis:0);C$&&(C=$)}return{[y]:w,[g]:C}}}},_C=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var i,r;const{placement:s,rects:u,platform:d,elements:m}=a,{apply:p=()=>{},...h}=rl(n,a),S=await d.detectOverflow(a,h),g=qn(s),y=ar(s),w=kn(s)==="y",{width:C,height:R}=u.floating;let N,A;g==="top"||g==="bottom"?(N=g,A=y===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(A=g,N=y==="end"?"top":"bottom");const T=R-S.top-S.bottom,_=C-S.left-S.right,z=Vn(R-S[N],T),L=Vn(C-S[A],_),$=!a.middlewareData.shift;let U=z,X=L;if((i=a.middlewareData.shift)!=null&&i.enabled.x&&(X=_),(r=a.middlewareData.shift)!=null&&r.enabled.y&&(U=T),$&&!y){const oe=Bt(S.left,0),le=Bt(S.right,0),ee=Bt(S.top,0),re=Bt(S.bottom,0);w?X=C-2*(oe!==0||le!==0?oe+le:Bt(S.left,S.right)):U=R-2*(ee!==0||re!==0?ee+re:Bt(S.top,S.bottom))}await p({...a,availableWidth:X,availableHeight:U});const ae=await d.getDimensions(m.floating);return C!==ae.width||R!==ae.height?{reset:{rects:!0}}:{}}}};function nb(n){const a=jn(n);let i=parseFloat(a.width)||0,r=parseFloat(a.height)||0;const s=Mn(n),u=s?n.offsetWidth:i,d=s?n.offsetHeight:r,m=cc(i)!==u||cc(r)!==d;return m&&(i=u,r=d),{width:i,height:r,$:m}}function _m(n){return et(n)?n:n.contextElement}function Fo(n){const a=_m(n);if(!Mn(a))return ll(1);const i=a.getBoundingClientRect(),{width:r,height:s,$:u}=nb(a);let d=(u?cc(i.width):i.width)/r,m=(u?cc(i.height):i.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const AC=ll(0);function lb(n){const a=It(n);return!Cc()||!a.visualViewport?AC:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function jC(n,a,i){return a===void 0&&(a=!1),!i||a&&i!==It(n)?!1:a}function Ja(n,a,i,r){a===void 0&&(a=!1),i===void 0&&(i=!1);const s=n.getBoundingClientRect(),u=_m(n);let d=ll(1);a&&(r?et(r)&&(d=Fo(r)):d=Fo(n));const m=jC(u,i,r)?lb(u):ll(0);let p=(s.left+m.x)/d.x,h=(s.top+m.y)/d.y,S=s.width/d.x,g=s.height/d.y;if(u){const y=It(u),w=r&&et(r)?It(r):r;let C=y,R=Kd(C);for(;R&&r&&w!==C;){const N=Fo(R),A=R.getBoundingClientRect(),T=jn(R),_=A.left+(R.clientLeft+parseFloat(T.paddingLeft))*N.x,z=A.top+(R.clientTop+parseFloat(T.paddingTop))*N.y;p*=N.x,h*=N.y,S*=N.x,g*=N.y,p+=_,h+=z,C=It(R),R=Kd(C)}}return Po({width:S,height:g,x:p,y:h})}function Rc(n,a){const i=Tc(n).scrollLeft;return a?a.left+i:Ja(ul(n)).left+i}function ab(n,a){const i=n.getBoundingClientRect(),r=i.left+a.scrollLeft-Rc(n,i),s=i.top+a.scrollTop;return{x:r,y:s}}function NC(n){let{elements:a,rect:i,offsetParent:r,strategy:s}=n;const u=s==="fixed",d=ul(r),m=a?Ec(a.floating):!1;if(r===d||m&&u)return i;let p={scrollLeft:0,scrollTop:0},h=ll(1);const S=ll(0),g=Mn(r);if((g||!g&&!u)&&((lr(r)!=="body"||xi(d))&&(p=Tc(r)),g)){const w=Ja(r);h=Fo(r),S.x=w.x+r.clientLeft,S.y=w.y+r.clientTop}const y=d&&!g&&!u?ab(d,p):ll(0);return{width:i.width*h.x,height:i.height*h.y,x:i.x*h.x-p.scrollLeft*h.x+S.x+y.x,y:i.y*h.y-p.scrollTop*h.y+S.y+y.y}}function OC(n){return Array.from(n.getClientRects())}function MC(n){const a=ul(n),i=Tc(n),r=n.ownerDocument.body,s=Bt(a.scrollWidth,a.clientWidth,r.scrollWidth,r.clientWidth),u=Bt(a.scrollHeight,a.clientHeight,r.scrollHeight,r.clientHeight);let d=-i.scrollLeft+Rc(n);const m=-i.scrollTop;return jn(r).direction==="rtl"&&(d+=Bt(a.clientWidth,r.clientWidth)-s),{width:s,height:u,x:d,y:m}}const Xy=25;function zC(n,a){const i=It(n),r=ul(n),s=i.visualViewport;let u=r.clientWidth,d=r.clientHeight,m=0,p=0;if(s){u=s.width,d=s.height;const S=Cc();(!S||S&&a==="fixed")&&(m=s.offsetLeft,p=s.offsetTop)}const h=Rc(r);if(h<=0){const S=r.ownerDocument,g=S.body,y=getComputedStyle(g),w=S.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,C=Math.abs(r.clientWidth-g.clientWidth-w);C<=Xy&&(u-=C)}else h<=Xy&&(u+=h);return{width:u,height:d,x:m,y:p}}function DC(n,a){const i=Ja(n,!0,a==="fixed"),r=i.top+n.clientTop,s=i.left+n.clientLeft,u=Mn(n)?Fo(n):ll(1),d=n.clientWidth*u.x,m=n.clientHeight*u.y,p=s*u.x,h=r*u.y;return{width:d,height:m,x:p,y:h}}function Vy(n,a,i){let r;if(a==="viewport")r=zC(n,i);else if(a==="document")r=MC(ul(n));else if(et(a))r=DC(a,i);else{const s=lb(n);r={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return Po(r)}function ob(n,a){const i=Ul(n);return i===a||!et(i)||Bl(i)?!1:jn(i).position==="fixed"||ob(i,a)}function BC(n,a){const i=a.get(n);if(i)return i;let r=Hl(n,[],!1).filter(m=>et(m)&&lr(m)!=="body"),s=null;const u=jn(n).position==="fixed";let d=u?Ul(n):n;for(;et(d)&&!Bl(d);){const m=jn(d),p=wm(d);!p&&m.position==="fixed"&&(s=null),(u?!p&&!s:!p&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||xi(d)&&!p&&ob(n,d))?r=r.filter(S=>S!==d):s=m,d=Ul(d)}return a.set(n,r),r}function HC(n){let{element:a,boundary:i,rootBoundary:r,strategy:s}=n;const d=[...i==="clippingAncestors"?Ec(a)?[]:BC(a,this._c):[].concat(i),r],m=Vy(a,d[0],s);let p=m.top,h=m.right,S=m.bottom,g=m.left;for(let y=1;y{d(!1,1e-7)},1e3)}U===1&&!ib(h,n.getBoundingClientRect())&&d(),z=!1}try{i=new IntersectionObserver(L,{..._,root:s.ownerDocument})}catch{i=new IntersectionObserver(L,_)}i.observe(n)}return d(!0),u}function Pd(n,a,i,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,h=_m(n),S=s||u?[...h?Hl(h):[],...a?Hl(a):[]]:[];S.forEach(A=>{s&&A.addEventListener("scroll",i,{passive:!0}),u&&A.addEventListener("resize",i)});const g=h&&m?XC(h,i):null;let y=-1,w=null;d&&(w=new ResizeObserver(A=>{let[T]=A;T&&T.target===h&&w&&a&&(w.unobserve(a),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var _;(_=w)==null||_.observe(a)})),i()}),h&&!p&&w.observe(h),a&&w.observe(a));let C,R=p?Ja(n):null;p&&N();function N(){const A=Ja(n);R&&!ib(R,A)&&i(),R=A,C=requestAnimationFrame(N)}return i(),()=>{var A;S.forEach(T=>{s&&T.removeEventListener("scroll",i),u&&T.removeEventListener("resize",i)}),g==null||g(),(A=w)==null||A.disconnect(),w=null,p&&cancelAnimationFrame(C)}}const VC=CC,qC=TC,GC=bC,QC=_C,ZC=SC,Gy=yC,KC=wC,JC=RC,FC=(n,a,i)=>{const r=new Map,s={platform:kC,...i},u={...s.platform,_c:r};return gC(n,a,{...s,platform:u})};var WC=typeof document<"u",PC=function(){},tc=WC?x.useLayoutEffect:PC;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 i,r,s;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==a.length)return!1;for(r=i;r--!==0;)if(!fc(n[r],a[r]))return!1;return!0}if(s=Object.keys(n),i=s.length,i!==Object.keys(a).length)return!1;for(r=i;r--!==0;)if(!{}.hasOwnProperty.call(a,s[r]))return!1;for(r=i;r--!==0;){const u=s[r];if(!(u==="_owner"&&n.$$typeof)&&!fc(n[u],a[u]))return!1}return!0}return n!==n&&a!==a}function sb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Qy(n,a){const i=sb(n);return Math.round(a*i)/i}function Od(n){const a=x.useRef(n);return tc(()=>{a.current=n}),a}function IC(n){n===void 0&&(n={});const{placement:a="bottom",strategy:i="absolute",middleware:r=[],platform:s,elements:{reference:u,floating:d}={},transform:m=!0,whileElementsMounted:p,open:h}=n,[S,g]=x.useState({x:0,y:0,strategy:i,placement:a,middlewareData:{},isPositioned:!1}),[y,w]=x.useState(r);fc(y,r)||w(r);const[C,R]=x.useState(null),[N,A]=x.useState(null),T=x.useCallback(H=>{H!==$.current&&($.current=H,R(H))},[]),_=x.useCallback(H=>{H!==U.current&&(U.current=H,A(H))},[]),z=u||C,L=d||N,$=x.useRef(null),U=x.useRef(null),X=x.useRef(S),ae=p!=null,oe=Od(p),le=Od(s),ee=Od(h),re=x.useCallback(()=>{if(!$.current||!U.current)return;const H={placement:a,strategy:i,middleware:y};le.current&&(H.platform=le.current),FC($.current,U.current,H).then(J=>{const te={...J,isPositioned:ee.current!==!1};K.current&&!fc(X.current,te)&&(X.current=te,Dl.flushSync(()=>{g(te)}))})},[y,a,i,le,ee]);tc(()=>{h===!1&&X.current.isPositioned&&(X.current.isPositioned=!1,g(H=>({...H,isPositioned:!1})))},[h]);const K=x.useRef(!1);tc(()=>(K.current=!0,()=>{K.current=!1}),[]),tc(()=>{if(z&&($.current=z),L&&(U.current=L),z&&L){if(oe.current)return oe.current(z,L,re);re()}},[z,L,re,oe,ae]);const ie=x.useMemo(()=>({reference:$,floating:U,setReference:T,setFloating:_}),[T,_]),O=x.useMemo(()=>({reference:z,floating:L}),[z,L]),B=x.useMemo(()=>{const H={position:i,left:0,top:0};if(!O.floating)return H;const J=Qy(O.floating,S.x),te=Qy(O.floating,S.y);return m?{...H,transform:"translate("+J+"px, "+te+"px)",...sb(O.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:J,top:te}},[i,m,O.floating,S.x,S.y]);return x.useMemo(()=>({...S,update:re,refs:ie,elements:O,floatingStyles:B}),[S,re,ie,O,B])}const eT=n=>{function a(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:r,padding:s}=typeof n=="function"?n(i):n;return r&&a(r)?r.current!=null?Gy({element:r.current,padding:s}).fn(i):{}:r?Gy({element:r,padding:s}).fn(i):{}}}},cb=(n,a)=>{const i=VC(n);return{name:i.name,fn:i.fn,options:[n,a]}},Am=(n,a)=>{const i=qC(n);return{name:i.name,fn:i.fn,options:[n,a]}},Zy=(n,a)=>({fn:JC(n).fn,options:[n,a]}),Id=(n,a)=>{const i=GC(n);return{name:i.name,fn:i.fn,options:[n,a]}},tT=(n,a)=>{const i=QC(n);return{name:i.name,fn:i.fn,options:[n,a]}},nT=(n,a)=>{const i=ZC(n);return{name:i.name,fn:i.fn,options:[n,a]}},pi=(n,a)=>{const i=KC(n);return{name:i.name,fn:i.fn,options:[n,a]}},ub=(n,a)=>{const i=eT(n);return{name:i.name,fn:i.fn,options:[n,a]}};function fb(n){const a=x.useRef(void 0),i=x.useCallback(r=>{const s=n.map(u=>{if(u!=null){if(typeof u=="function"){const d=u,m=d(r);return typeof m=="function"?m:()=>{d(null)}}return u.current=r,()=>{u.current=null}}});return()=>{s.forEach(u=>u==null?void 0:u())}},n);return x.useMemo(()=>n.every(r=>r==null)?null:r=>{a.current&&(a.current(),a.current=void 0),r!=null&&(a.current=i(r))},n)}const lT="data-floating-ui-focusable",Ky="active",Jy="selected",aT={...h0};let Fy=!1,oT=0;const Wy=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+oT++;function rT(){const[n,a]=x.useState(()=>Fy?Wy():void 0);return al(()=>{n==null&&a(Wy())},[]),x.useEffect(()=>{Fy=!0},[]),n}const iT=aT.useId,db=iT||rT;function sT(){const n=new Map;return{emit(a,i){var r;(r=n.get(a))==null||r.forEach(s=>s(i))},on(a,i){n.has(a)||n.set(a,new Set),n.get(a).add(i)},off(a,i){var r;(r=n.get(a))==null||r.delete(i)}}}const cT=x.createContext(null),uT=x.createContext(null),jm=()=>{var n;return((n=x.useContext(cT))==null?void 0:n.id)||null},Nm=()=>x.useContext(uT);function Om(n){return"data-floating-ui-"+n}function Rn(n){n.current!==-1&&(clearTimeout(n.current),n.current=-1)}const Py=Om("safe-polygon");function nc(n,a,i){if(i&&!Wd(i))return 0;if(typeof n=="number")return n;if(typeof n=="function"){const r=n();return typeof r=="number"?r:r==null?void 0:r[a]}return n==null?void 0:n[a]}function Md(n){return typeof n=="function"?n():n}function fT(n,a){a===void 0&&(a={});const{open:i,onOpenChange:r,dataRef:s,events:u,elements:d}=n,{enabled:m=!0,delay:p=0,handleClose:h=null,mouseOnly:S=!1,restMs:g=0,move:y=!0}=a,w=Nm(),C=jm(),R=Js(h),N=Js(p),A=Js(i),T=Js(g),_=x.useRef(),z=x.useRef(-1),L=x.useRef(),$=x.useRef(-1),U=x.useRef(!0),X=x.useRef(!1),ae=x.useRef(()=>{}),oe=x.useRef(!1),le=tl(()=>{var B;const H=(B=s.current.openEvent)==null?void 0:B.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"});x.useEffect(()=>{if(!m)return;function B(H){let{open:J}=H;J||(Rn(z),Rn($),U.current=!0,oe.current=!1)}return u.on("openchange",B),()=>{u.off("openchange",B)}},[m,u]),x.useEffect(()=>{if(!m||!R.current||!i)return;function B(J){le()&&r(!1,J,"hover")}const H=qa(d.floating).documentElement;return H.addEventListener("mouseleave",B),()=>{H.removeEventListener("mouseleave",B)}},[d.floating,i,r,m,R,le]);const ee=x.useCallback(function(B,H,J){H===void 0&&(H=!0),J===void 0&&(J="hover");const te=nc(N.current,"close",_.current);te&&!L.current?(Rn(z),z.current=window.setTimeout(()=>r(!1,B,J),te)):H&&(Rn(z),r(!1,B,J))},[N,r]),re=tl(()=>{ae.current(),L.current=void 0}),K=tl(()=>{if(X.current){const B=qa(d.floating).body;B.style.pointerEvents="",B.removeAttribute(Py),X.current=!1}}),ie=tl(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);x.useEffect(()=>{if(!m)return;function B(k){if(Rn(z),U.current=!1,S&&!Wd(_.current)||Md(T.current)>0&&!nc(N.current,"open"))return;const F=nc(N.current,"open",_.current);F?z.current=window.setTimeout(()=>{A.current||r(!0,k,"hover")},F):i||r(!0,k,"hover")}function H(k){if(ie()){K();return}ae.current();const F=qa(d.floating);if(Rn($),oe.current=!1,R.current&&s.current.floatingContext){i||Rn(z),L.current=R.current({...s.current.floatingContext,tree:w,x:k.clientX,y:k.clientY,onClose(){K(),re(),ie()||ee(k,!0,"safe-polygon")}});const ue=L.current;F.addEventListener("mousemove",ue),ae.current=()=>{F.removeEventListener("mousemove",ue)};return}(_.current==="touch"?!yi(d.floating,k.relatedTarget):!0)&&ee(k)}function J(k){ie()||s.current.floatingContext&&(R.current==null||R.current({...s.current.floatingContext,tree:w,x:k.clientX,y:k.clientY,onClose(){K(),re(),ie()||ee(k)}})(k))}function te(){Rn(z)}function j(k){ie()||ee(k,!1)}if(et(d.domReference)){const k=d.domReference,F=d.floating;return i&&k.addEventListener("mouseleave",J),y&&k.addEventListener("mousemove",B,{once:!0}),k.addEventListener("mouseenter",B),k.addEventListener("mouseleave",H),F&&(F.addEventListener("mouseleave",J),F.addEventListener("mouseenter",te),F.addEventListener("mouseleave",j)),()=>{i&&k.removeEventListener("mouseleave",J),y&&k.removeEventListener("mousemove",B),k.removeEventListener("mouseenter",B),k.removeEventListener("mouseleave",H),F&&(F.removeEventListener("mouseleave",J),F.removeEventListener("mouseenter",te),F.removeEventListener("mouseleave",j))}}},[d,m,n,S,y,ee,re,K,r,i,A,w,N,R,s,ie,T]),al(()=>{var B;if(m&&i&&(B=R.current)!=null&&(B=B.__options)!=null&&B.blockPointerEvents&&le()){X.current=!0;const J=d.floating;if(et(d.domReference)&&J){var H;const te=qa(d.floating).body;te.setAttribute(Py,"");const j=d.domReference,k=w==null||(H=w.nodesRef.current.find(F=>F.id===C))==null||(H=H.context)==null?void 0:H.elements.floating;return k&&(k.style.pointerEvents=""),te.style.pointerEvents="none",j.style.pointerEvents="auto",J.style.pointerEvents="auto",()=>{te.style.pointerEvents="",j.style.pointerEvents="",J.style.pointerEvents=""}}}},[m,i,C,d,w,R,le]),al(()=>{i||(_.current=void 0,oe.current=!1,re(),K())},[i,re,K]),x.useEffect(()=>()=>{re(),Rn(z),Rn($),K()},[m,d.domReference,re,K]);const O=x.useMemo(()=>{function B(H){_.current=H.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(H){const{nativeEvent:J}=H;function te(){!U.current&&!A.current&&r(!0,J,"hover")}S&&!Wd(_.current)||i||Md(T.current)===0||oe.current&&H.movementX**2+H.movementY**2<2||(Rn($),_.current==="touch"?te():(oe.current=!0,$.current=window.setTimeout(te,Md(T.current))))}}},[S,r,i,A,T]);return x.useMemo(()=>m?{reference:O}:{},[m,O])}const em=()=>{},mb=x.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:em,setState:em,isInstantPhase:!1}),dT=()=>x.useContext(mb);function mT(n){const{children:a,delay:i,timeoutMs:r=0}=n,[s,u]=x.useReducer((p,h)=>({...p,...h}),{delay:i,timeoutMs:r,initialDelay:i,currentId:null,isInstantPhase:!1}),d=x.useRef(null),m=x.useCallback(p=>{u({currentId:p})},[]);return al(()=>{s.currentId?d.current===null?d.current=s.currentId:s.isInstantPhase||u({isInstantPhase:!0}):(s.isInstantPhase&&u({isInstantPhase:!1}),d.current=null)},[s.currentId,s.isInstantPhase]),v.jsx(mb.Provider,{value:x.useMemo(()=>({...s,setState:u,setCurrentId:m}),[s,m]),children:a})}function pT(n,a){a===void 0&&(a={});const{open:i,onOpenChange:r,floatingId:s}=n,{id:u,enabled:d=!0}=a,m=u??s,p=dT(),{currentId:h,setCurrentId:S,initialDelay:g,setState:y,timeoutMs:w}=p;return al(()=>{d&&h&&(y({delay:{open:1,close:nc(g,"close")}}),h!==m&&r(!1))},[d,m,r,y,h,g]),al(()=>{function C(){r(!1),y({delay:g,currentId:null})}if(d&&h&&!i&&h===m){if(w){const R=window.setTimeout(C,w);return()=>{clearTimeout(R)}}C()}},[d,i,y,h,m,r,g,w]),al(()=>{d&&(S===em||!i||S(m))},[d,i,S,m]),p}const hT={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},vT={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Iy=n=>{var a,i;return{escapeKey:typeof n=="boolean"?n:(a=n==null?void 0:n.escapeKey)!=null?a:!1,outsidePress:typeof n=="boolean"?n:(i=n==null?void 0:n.outsidePress)!=null?i:!0}};function gT(n,a){a===void 0&&(a={});const{open:i,onOpenChange:r,elements:s,dataRef:u}=n,{enabled:d=!0,escapeKey:m=!0,outsidePress:p=!0,outsidePressEvent:h="pointerdown",referencePress:S=!1,referencePressEvent:g="pointerdown",ancestorScroll:y=!1,bubbles:w,capture:C}=a,R=Nm(),N=tl(typeof p=="function"?p:()=>!1),A=typeof p=="function"?N:p,T=x.useRef(!1),{escapeKey:_,outsidePress:z}=Iy(w),{escapeKey:L,outsidePress:$}=Iy(C),U=x.useRef(!1),X=tl(K=>{var ie;if(!i||!d||!m||K.key!=="Escape"||U.current)return;const O=(ie=u.current.floatingContext)==null?void 0:ie.nodeId,B=R?ec(R.nodesRef.current,O):[];if(!_&&(K.stopPropagation(),B.length>0)){let H=!0;if(B.forEach(J=>{var te;if((te=J.context)!=null&&te.open&&!J.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}r(!1,cC(K)?K.nativeEvent:K,"escape-key")}),ae=tl(K=>{var ie;const O=()=>{var B;X(K),(B=Ko(K))==null||B.removeEventListener("keydown",O)};(ie=Ko(K))==null||ie.addEventListener("keydown",O)}),oe=tl(K=>{var ie;const O=u.current.insideReactTree;u.current.insideReactTree=!1;const B=T.current;if(T.current=!1,h==="click"&&B||O||typeof A=="function"&&!A(K))return;const H=Ko(K),J="["+Om("inert")+"]",te=qa(s.floating).querySelectorAll(J);let j=et(H)?H:null;for(;j&&!Bl(j);){const ue=Ul(j);if(Bl(ue)||!et(ue))break;j=ue}if(te.length&&et(H)&&!oC(H)&&!yi(H,s.floating)&&Array.from(te).every(ue=>!yi(j,ue)))return;if(Mn(H)&&re){const ue=Bl(H),fe=jn(H),pe=/auto|scroll/,Ce=ue||pe.test(fe.overflowX),Re=ue||pe.test(fe.overflowY),ze=Ce&&H.clientWidth>0&&H.scrollWidth>H.clientWidth,lt=Re&&H.clientHeight>0&&H.scrollHeight>H.clientHeight,be=fe.direction==="rtl",$e=lt&&(be?K.offsetX<=H.offsetWidth-H.clientWidth:K.offsetX>H.clientWidth),qe=ze&&K.offsetY>H.clientHeight;if($e||qe)return}const k=(ie=u.current.floatingContext)==null?void 0:ie.nodeId,F=R&&ec(R.nodesRef.current,k).some(ue=>{var fe;return jd(K,(fe=ue.context)==null?void 0:fe.elements.floating)});if(jd(K,s.floating)||jd(K,s.domReference)||F)return;const P=R?ec(R.nodesRef.current,k):[];if(P.length>0){let ue=!0;if(P.forEach(fe=>{var pe;if((pe=fe.context)!=null&&pe.open&&!fe.context.dataRef.current.__outsidePressBubbles){ue=!1;return}}),!ue)return}r(!1,K,"outside-press")}),le=tl(K=>{var ie;const O=()=>{var B;oe(K),(B=Ko(K))==null||B.removeEventListener(h,O)};(ie=Ko(K))==null||ie.addEventListener(h,O)});x.useEffect(()=>{if(!i||!d)return;u.current.__escapeKeyBubbles=_,u.current.__outsidePressBubbles=z;let K=-1;function ie(te){r(!1,te,"ancestor-scroll")}function O(){window.clearTimeout(K),U.current=!0}function B(){K=window.setTimeout(()=>{U.current=!1},Cc()?5:0)}const H=qa(s.floating);m&&(H.addEventListener("keydown",L?ae:X,L),H.addEventListener("compositionstart",O),H.addEventListener("compositionend",B)),A&&H.addEventListener(h,$?le:oe,$);let J=[];return y&&(et(s.domReference)&&(J=Hl(s.domReference)),et(s.floating)&&(J=J.concat(Hl(s.floating))),!et(s.reference)&&s.reference&&s.reference.contextElement&&(J=J.concat(Hl(s.reference.contextElement)))),J=J.filter(te=>{var j;return te!==((j=H.defaultView)==null?void 0:j.visualViewport)}),J.forEach(te=>{te.addEventListener("scroll",ie,{passive:!0})}),()=>{m&&(H.removeEventListener("keydown",L?ae:X,L),H.removeEventListener("compositionstart",O),H.removeEventListener("compositionend",B)),A&&H.removeEventListener(h,$?le:oe,$),J.forEach(te=>{te.removeEventListener("scroll",ie)}),window.clearTimeout(K)}},[u,s,m,A,h,i,r,y,d,_,z,X,L,ae,oe,$,le]),x.useEffect(()=>{u.current.insideReactTree=!1},[u,A,h]);const ee=x.useMemo(()=>({onKeyDown:X,...S&&{[hT[g]]:K=>{r(!1,K.nativeEvent,"reference-press")},...g!=="click"&&{onClick(K){r(!1,K.nativeEvent,"reference-press")}}}}),[X,r,S,g]),re=x.useMemo(()=>{function K(ie){ie.button===0&&(T.current=!0)}return{onKeyDown:X,onMouseDown:K,onMouseUp:K,[vT[h]]:()=>{u.current.insideReactTree=!0}}},[X,h,u]);return x.useMemo(()=>d?{reference:ee,floating:re}:{},[d,ee,re])}function yT(n){const{open:a=!1,onOpenChange:i,elements:r}=n,s=db(),u=x.useRef({}),[d]=x.useState(()=>sT()),m=jm()!=null,[p,h]=x.useState(r.reference),S=tl((w,C,R)=>{u.current.openEvent=w?C:void 0,d.emit("openchange",{open:w,event:C,reason:R,nested:m}),i==null||i(w,C,R)}),g=x.useMemo(()=>({setPositionReference:h}),[]),y=x.useMemo(()=>({reference:p||r.reference||null,floating:r.floating||null,domReference:r.reference}),[p,r.reference,r.floating]);return x.useMemo(()=>({dataRef:u,open:a,onOpenChange:S,elements:y,events:d,floatingId:s,refs:g}),[a,S,y,d,s,g])}function Mm(n){n===void 0&&(n={});const{nodeId:a}=n,i=yT({...n,elements:{reference:null,floating:null,...n.elements}}),r=n.rootContext||i,s=r.elements,[u,d]=x.useState(null),[m,p]=x.useState(null),S=(s==null?void 0:s.domReference)||u,g=x.useRef(null),y=Nm();al(()=>{S&&(g.current=S)},[S]);const w=IC({...n,elements:{...s,...m&&{reference:m}}}),C=x.useCallback(_=>{const z=et(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),getClientRects:()=>_.getClientRects(),contextElement:_}:_;p(z),w.refs.setReference(z)},[w.refs]),R=x.useCallback(_=>{(et(_)||_===null)&&(g.current=_,d(_)),(et(w.refs.reference.current)||w.refs.reference.current===null||_!==null&&!et(_))&&w.refs.setReference(_)},[w.refs]),N=x.useMemo(()=>({...w.refs,setReference:R,setPositionReference:C,domReference:g}),[w.refs,R,C]),A=x.useMemo(()=>({...w.elements,domReference:S}),[w.elements,S]),T=x.useMemo(()=>({...w,...r,refs:N,elements:A,nodeId:a}),[w,N,A,a,r]);return al(()=>{r.dataRef.current.floatingContext=T;const _=y==null?void 0:y.nodesRef.current.find(z=>z.id===a);_&&(_.context=T)}),x.useMemo(()=>({...w,context:T,refs:N,elements:A}),[w,N,A,T])}function zd(){return nC()&&tC()}function bT(n,a){a===void 0&&(a={});const{open:i,onOpenChange:r,events:s,dataRef:u,elements:d}=n,{enabled:m=!0,visibleOnly:p=!0}=a,h=x.useRef(!1),S=x.useRef(-1),g=x.useRef(!0);x.useEffect(()=>{if(!m)return;const w=It(d.domReference);function C(){!i&&Mn(d.domReference)&&d.domReference===Uy(qa(d.domReference))&&(h.current=!0)}function R(){g.current=!0}function N(){g.current=!1}return w.addEventListener("blur",C),zd()&&(w.addEventListener("keydown",R,!0),w.addEventListener("pointerdown",N,!0)),()=>{w.removeEventListener("blur",C),zd()&&(w.removeEventListener("keydown",R,!0),w.removeEventListener("pointerdown",N,!0))}},[d.domReference,i,m]),x.useEffect(()=>{if(!m)return;function w(C){let{reason:R}=C;(R==="reference-press"||R==="escape-key")&&(h.current=!0)}return s.on("openchange",w),()=>{s.off("openchange",w)}},[s,m]),x.useEffect(()=>()=>{Rn(S)},[]);const y=x.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(w){if(h.current)return;const C=Ko(w.nativeEvent);if(p&&et(C)){if(zd()&&!w.relatedTarget){if(!g.current&&!rC(C))return}else if(!iC(C))return}r(!0,w.nativeEvent,"focus")},onBlur(w){h.current=!1;const C=w.relatedTarget,R=w.nativeEvent,N=et(C)&&C.hasAttribute(Om("focus-guard"))&&C.getAttribute("data-type")==="outside";S.current=window.setTimeout(()=>{var A;const T=Uy(d.domReference?d.domReference.ownerDocument:document);!C&&T===d.domReference||yi((A=u.current.floatingContext)==null?void 0:A.refs.floating.current,T)||yi(d.domReference,T)||N||r(!1,R,"focus")})}}),[u,d.domReference,r,p]);return x.useMemo(()=>m?{reference:y}:{},[m,y])}function Dd(n,a,i){const r=new Map,s=i==="item";let u=n;if(s&&n){const{[Ky]:d,[Jy]:m,...p}=n;u=p}return{...i==="floating"&&{tabIndex:-1,[lT]:""},...u,...a.map(d=>{const m=d?d[i]:null;return typeof m=="function"?n?m(n):null:m}).concat(n).reduce((d,m)=>(m&&Object.entries(m).forEach(p=>{let[h,S]=p;if(!(s&&[Ky,Jy].includes(h)))if(h.indexOf("on")===0){if(r.has(h)||r.set(h,[]),typeof S=="function"){var g;(g=r.get(h))==null||g.push(S),d[h]=function(){for(var y,w=arguments.length,C=new Array(w),R=0;RN(...C)).find(N=>N!==void 0)}}}else d[h]=S}),d),{})}}function ST(n){n===void 0&&(n=[]);const a=n.map(m=>m==null?void 0:m.reference),i=n.map(m=>m==null?void 0:m.floating),r=n.map(m=>m==null?void 0:m.item),s=x.useCallback(m=>Dd(m,n,"reference"),a),u=x.useCallback(m=>Dd(m,n,"floating"),i),d=x.useCallback(m=>Dd(m,n,"item"),r);return x.useMemo(()=>({getReferenceProps:s,getFloatingProps:u,getItemProps:d}),[s,u,d])}const xT=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function wT(n,a){var i,r;a===void 0&&(a={});const{open:s,elements:u,floatingId:d}=n,{enabled:m=!0,role:p="dialog"}=a,h=db(),S=((i=u.domReference)==null?void 0:i.id)||h,g=x.useMemo(()=>{var T;return((T=sC(u.floating))==null?void 0:T.id)||d},[u.floating,d]),y=(r=xT.get(p))!=null?r:p,C=jm()!=null,R=x.useMemo(()=>y==="tooltip"||p==="label"?{["aria-"+(p==="label"?"labelledby":"describedby")]:s?g:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":y==="alertdialog"?"dialog":y,"aria-controls":s?g:void 0,...y==="listbox"&&{role:"combobox"},...y==="menu"&&{id:S},...y==="menu"&&C&&{role:"menuitem"},...p==="select"&&{"aria-autocomplete":"none"},...p==="combobox"&&{"aria-autocomplete":"list"}},[y,g,C,s,S,p]),N=x.useMemo(()=>{const T={id:g,...y&&{role:y}};return y==="tooltip"||p==="label"?T:{...T,...y==="menu"&&{"aria-labelledby":S}}},[y,g,S,p]),A=x.useCallback(T=>{let{active:_,selected:z}=T;const L={role:"option",..._&&{id:g+"-fui-option"}};switch(p){case"select":case"combobox":return{...L,"aria-selected":z}}return{}},[g,p]);return x.useMemo(()=>m?{reference:R,floating:N,item:A}:{},[m,R,N,A])}const pb={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},hb=(n,{scrollbarSize:a,overscrollBehavior:i,scrollbars:r})=>{let s=i;return i&&r&&(r==="x"?s=`${i} auto`:r==="y"&&(s=`auto ${i}`)),{root:{"--scrollarea-scrollbar-size":Z(a),"--scrollarea-over-scroll-behavior":s}}},fl=me(n=>{const a=se("ScrollArea",pb,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,scrollbarSize:m,vars:p,type:h,scrollHideDelay:S,viewportProps:g,viewportRef:y,onScrollPositionChange:w,children:C,offsetScrollbars:R,scrollbars:N,onBottomReached:A,onTopReached:T,onLeftReached:_,onRightReached:z,overscrollBehavior:L,startScrollPosition:$,attributes:U,...X}=a,[ae,oe]=x.useState(!1),[le,ee]=x.useState(!1),[re,K]=x.useState(!1),ie=x.useRef(!0),O=x.useRef(!1),B=x.useRef(!0),H=x.useRef(!1),J=xe({name:"ScrollArea",props:a,classes:xm,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:U,vars:p,varsResolver:hb}),te=x.useRef(null),[j,k]=x.useState(null),F=fb([y,te,x.useCallback(P=>{k(ue=>ue===P?ue:P)},[])]);return ba(R==="present"?j:null,()=>{const P=te.current;P&&(ee(P.scrollHeight>P.clientHeight),K(P.scrollWidth>P.clientWidth))}),ol(()=>{$&&te.current&&te.current.scrollTo({left:$.x??0,top:$.y??0})},[]),v.jsxs(k0,{getStyles:J,type:h==="never"?"always":h,scrollHideDelay:S,scrollbars:N,...J("root"),...X,children:[v.jsx(W0,{...g,...J("viewport",{style:g==null?void 0:g.style}),ref:F,"data-offset-scrollbars":R===!0?"xy":R||void 0,"data-scrollbars":N||void 0,"data-horizontal-hidden":R==="present"&&!re?"true":void 0,"data-vertical-hidden":R==="present"&&!le?"true":void 0,onScroll:P=>{var at;(at=g==null?void 0:g.onScroll)==null||at.call(g,P),w==null||w({x:P.currentTarget.scrollLeft,y:P.currentTarget.scrollTop});const{scrollTop:ue,scrollHeight:fe,clientHeight:pe,scrollLeft:Ce,scrollWidth:Re,clientWidth:ze}=P.currentTarget,lt=ue-(fe-pe)>=-.8,be=ue===0;lt&&!O.current&&(A==null||A()),be&&!ie.current&&(T==null||T()),O.current=lt,ie.current=be;const $e=Ce-(Re-ze)>=-.8,qe=Ce===0;$e&&!H.current&&(z==null||z()),qe&&!B.current&&(_==null||_()),H.current=$e,B.current=qe},children:C}),(N==="xy"||N==="x")&&v.jsx(Gd,{...J("scrollbar"),orientation:"horizontal","data-hidden":h==="never"||R==="present"&&!re?!0:void 0,forceMount:!0,onMouseEnter:()=>oe(!0),onMouseLeave:()=>oe(!1),children:v.jsx(Qd,{...J("thumb")})}),(N==="xy"||N==="y")&&v.jsx(Gd,{...J("scrollbar"),orientation:"vertical","data-hidden":h==="never"||R==="present"&&!le?!0:void 0,forceMount:!0,onMouseEnter:()=>oe(!0),onMouseLeave:()=>oe(!1),children:v.jsx(Qd,{...J("thumb")})}),v.jsx(zE,{...J("corner"),"data-hovered":ae||void 0,"data-hidden":h==="never"||void 0})]})});fl.displayName="@mantine/core/ScrollArea";const zm=me(n=>{const{children:a,classNames:i,styles:r,scrollbarSize:s,scrollHideDelay:u,type:d,dir:m,offsetScrollbars:p,overscrollBehavior:h,viewportRef:S,onScrollPositionChange:g,unstyled:y,variant:w,viewportProps:C,scrollbars:R,style:N,vars:A,onBottomReached:T,onTopReached:_,startScrollPosition:z,onOverflowChange:L,...$}=se("ScrollAreaAutosize",pb,n),U=x.useRef(null),[X,ae]=x.useState(null),oe=fb([S,U,x.useCallback(K=>{ae(ie=>ie===K?ie:K)},[])]),le=x.useRef(!1),ee=x.useRef(!1),re=x.useEffectEvent(()=>{const K=U.current;if(!K||!L)return;const ie=K.scrollHeight>K.clientHeight;ie!==le.current&&(ee.current?L(ie):(ee.current=!0,ie&&L(!0)),le.current=ie)});return ba(L?X:null,re),v.jsx(ce,{...$,variant:w,style:[{display:"flex",overflow:"hidden"},N],children:v.jsx(ce,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...R==="y"&&{minWidth:0},...R==="x"&&{minHeight:0},...R==="xy"&&{minWidth:0,minHeight:0},...R===!1&&{minWidth:0,minHeight:0}},children:v.jsx(fl,{classNames:i,styles:r,scrollHideDelay:u,scrollbarSize:s,type:d,dir:m,offsetScrollbars:p,overscrollBehavior:h,viewportRef:oe,onScrollPositionChange:g,unstyled:y,variant:w,viewportProps:C,vars:A,scrollbars:R,onBottomReached:T,onTopReached:_,startScrollPosition:z,"data-autosize":"true",children:a})})})});fl.classes=xm;fl.varsResolver=hb;zm.displayName="@mantine/core/ScrollAreaAutosize";zm.classes=xm;fl.Autosize=zm;var vb={root:"m_87cf2631"};const ET={__staticSelector:"UnstyledButton"},or=Vt(n=>{const a=se("UnstyledButton",ET,n),{className:i,component:r="button",__staticSelector:s,unstyled:u,classNames:d,styles:m,style:p,attributes:h,...S}=a;return v.jsx(ce,{...xe({name:s,props:a,classes:vb,className:i,style:p,classNames:d,styles:m,unstyled:u,attributes:h})("root",{focusable:!0}),component:r,type:r==="button"?"button":void 0,...S})});or.classes=vb;or.displayName="@mantine/core/UnstyledButton";var gb={root:"m_515a97f8"};const Dm=me(n=>{const a=se("VisuallyHidden",null,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,attributes:p,...h}=a;return v.jsx(ce,{component:"span",...xe({name:"VisuallyHidden",classes:gb,props:a,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:p})("root"),...h})});Dm.classes=gb;Dm.displayName="@mantine/core/VisuallyHidden";var yb={root:"m_1b7284a3"};const bb=(n,{radius:a,shadow:i})=>({root:{"--paper-radius":a===void 0?void 0:Ot(a),"--paper-shadow":cm(i)}}),wi=Vt(n=>{const a=se("Paper",null,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,withBorder:m,vars:p,radius:h,shadow:S,variant:g,mod:y,attributes:w,...C}=a,R=xe({name:"Paper",props:a,classes:yb,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:w,vars:p,varsResolver:bb});return v.jsx(ce,{mod:[{"data-with-border":m},y],...R("root"),variant:g,...C})});wi.classes=yb;wi.varsResolver=bb;wi.displayName="@mantine/core/Paper";function e0(n,a,i,r){return n==="center"||r==="center"?{top:a}:n==="end"?{bottom:i}:n==="start"?{top:i}:{}}function t0(n,a,i,r,s){return n==="center"||r==="center"?{left:a}:n==="end"?{[s==="ltr"?"right":"left"]:i}:n==="start"?{[s==="ltr"?"left":"right"]:i}:{}}const CT={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function TT({position:n,arrowSize:a,dir:i}){const[r,s]=n.split("-");if(!s)return;const u={width:a,height:a,position:"absolute"};if(r==="bottom"){const d=s==="start",m=d?i==="ltr"?"left":"right":i==="ltr"?"right":"left";return{...u,top:-a,[m]:0,clipPath:d!==(i==="rtl")?"polygon(0% 0%, 0% 100%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}if(r==="top"){const d=s==="start",m=d?i==="ltr"?"left":"right":i==="ltr"?"right":"left";return{...u,bottom:-a,[m]:0,clipPath:d!==(i==="rtl")?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 100% 0%, 100% 100%)"}}if(r==="left")return{...u,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(r==="right")return{...u,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 RT({position:n,arrowSize:a,arrowOffset:i,arrowRadius:r,arrowPosition:s,arrowX:u,arrowY:d,dir:m}){if(s==="merge"){const y=TT({position:n,arrowSize:a,dir:m});if(y)return y}const[p,h="center"]=n.split("-"),S={width:a,height:a,transform:"rotate(45deg)",position:"absolute",[CT[p]]:r},g=-a/2;return p==="left"?{...S,...e0(h,d,i,s),right:g,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...S,...e0(h,d,i,s),left:g,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...S,...t0(h,u,i,s,m),bottom:g,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...S,...t0(h,u,i,s,m),top:g,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}function Sb({position:n,dir:a}){const[i,r]=n.split("-");if(!r)return;const s=r==="start"&&a==="ltr"||r==="end"&&a==="rtl";if(i==="bottom")return s?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(i==="top")return s?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(i==="left")return r==="start"?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(i==="right")return r==="start"?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function dc({position:n,arrowSize:a,arrowOffset:i,arrowRadius:r,arrowPosition:s,visible:u,arrowX:d,arrowY:m,style:p,...h}){const{dir:S}=nr();return u?v.jsx("div",{...h,style:{...p,...RT({position:n,arrowSize:a,arrowOffset:i,arrowRadius:r,arrowPosition:s,dir:S,arrowX:d,arrowY:m})}}):null}dc.displayName="@mantine/core/FloatingArrow";function xb(n,a){if(n==="rtl"&&(a.includes("right")||a.includes("left"))){const[i,r]=a.split("-"),s=i==="right"?"left":"right";return r===void 0?s:`${s}-${r}`}return a}var wb={root:"m_9814e45f"};const _T={zIndex:kt("modal")},Eb=(n,{gradient:a,color:i,backgroundOpacity:r,blur:s,radius:u,zIndex:d})=>({root:{"--overlay-bg":a||(i!==void 0||r!==void 0)&&va(i||"#000",r??.6)||void 0,"--overlay-filter":s?`blur(${Z(s)})`:void 0,"--overlay-radius":u===void 0?void 0:Ot(u),"--overlay-z-index":d==null?void 0:d.toString()}}),Ei=Vt(n=>{const a=se("Overlay",_T,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,fixed:p,center:h,children:S,radius:g,zIndex:y,gradient:w,blur:C,color:R,backgroundOpacity:N,mod:A,attributes:T,..._}=a;return v.jsx(ce,{...xe({name:"Overlay",props:a,classes:wb,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:T,vars:m,varsResolver:Eb})("root"),mod:[{center:h,fixed:p},A],..._,children:S})});Ei.classes=wb;Ei.varsResolver=Eb;Ei.displayName="@mantine/core/Overlay";function Bd(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 AT({target:n,reuseTargetNode:a,...i}){if(n)return typeof n=="string"?document.querySelector(n)||Bd(i):n;if(a){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const s=Bd(i);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return Bd(i)}const jT={reuseTargetNode:!0},Cb=me(n=>{const{children:a,target:i,reuseTargetNode:r,ref:s,...u}=se("Portal",jT,n),[d,m]=x.useState(!1),p=x.useRef(null);return ol(()=>(m(!0),p.current=AT({target:i,reuseTargetNode:r,...u}),Xd(s,p.current),!i&&!r&&p.current&&document.body.appendChild(p.current),()=>{!i&&!r&&p.current&&document.body.removeChild(p.current)}),[i]),!d||!p.current?null:Dl.createPortal(v.jsx(v.Fragment,{children:a}),p.current)});Cb.displayName="@mantine/core/Portal";const Sa=me(({withinPortal:n=!0,children:a,...i})=>yc()==="test"||!n?v.jsx(v.Fragment,{children:a}):v.jsx(Cb,{...i,children:a}));Sa.displayName="@mantine/core/OptionalPortal";const ci=n=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${n==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Fs={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:{...ci("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...ci("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...ci("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...ci("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...ci("top"),common:{transformOrigin:"top right"}}},n0={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function l0({transition:n,state:a,duration:i,timingFunction:r}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${i}ms`,transitionTimingFunction:r};return typeof n=="string"?n in Fs?{transitionProperty:Fs[n].transitionProperty,...s,...Fs[n].common,...Fs[n][n0[a]]}:{}:{transitionProperty:n.transitionProperty,...s,...n.common,...n[n0[a]]}}function NT({duration:n,exitDuration:a,timingFunction:i,mounted:r,onEnter:s,onExit:u,onEntered:d,onExited:m,enterDelay:p,exitDelay:h}){const S=Nn(),g=vc(),y=S.respectReducedMotion?g:!1,[w,C]=x.useState(y?0:n),[R,N]=x.useState(r?"entered":"exited"),A=x.useRef(-1),T=x.useRef(-1),_=x.useRef(-1);function z(){window.clearTimeout(A.current),window.clearTimeout(T.current),cancelAnimationFrame(_.current)}const L=U=>{z();const X=U?s:u,ae=U?d:m,oe=y?0:U?n:a;C(oe),oe===0?(typeof X=="function"&&X(),typeof ae=="function"&&ae(),N(U?"entered":"exited")):_.current=requestAnimationFrame(()=>{fi.flushSync(()=>{N(U?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof X=="function"&&X(),N(U?"entering":"exiting"),A.current=window.setTimeout(()=>{typeof ae=="function"&&ae(),N(U?"entered":"exited")},oe)})})},$=U=>{if(z(),typeof(U?p:h)!="number"){L(U);return}T.current=window.setTimeout(()=>{L(U)},U?p:h)};return tr(()=>{$(r)},[r]),x.useEffect(()=>()=>{z()},[]),{transitionDuration:w,transitionStatus:R,transitionTimingFunction:i||"ease"}}function $l({keepMounted:n,transition:a="fade",duration:i=250,exitDuration:r=i,mounted:s,children:u,timingFunction:d="ease",onExit:m,onEntered:p,onEnter:h,onExited:S,enterDelay:g,exitDelay:y}){const w=yc(),{transitionDuration:C,transitionStatus:R,transitionTimingFunction:N}=NT({mounted:s,exitDuration:r,duration:i,timingFunction:d,onExit:m,onEntered:p,onEnter:h,onExited:S,enterDelay:g,exitDelay:y});if(w==="test")return s?v.jsx(v.Fragment,{children:u({})}):n?u({display:"none"}):null;if(C===0)return n?v.jsx(x.Activity,{mode:s?"visible":"hidden",children:u({})}):s?v.jsx(v.Fragment,{children:u({})}):null;const A=R==="exited";return n?v.jsx(x.Activity,{mode:A?"hidden":"visible",children:u(A?{}:l0({transition:a,duration:C,state:R,timingFunction:N}))}):A?null:v.jsx(v.Fragment,{children:u(l0({transition:a,duration:C,state:R,timingFunction:N}))})}$l.displayName="@mantine/core/Transition";const OT={duration:100,transition:"fade"};function a0(n,a){return{...OT,...a,...n}}const[MT,Bm]=sl("Popover component was not found in the tree");function zT({childProps:n,disabled:a,opened:i,setReference:r,open:s}){const u=Ey(n.onMouseDown,d=>{a||d.button===2&&d.stopPropagation()});return{onContextMenu:Ey(n.onContextMenu,d=>{if(a||d.defaultPrevented)return;d.preventDefault();const{clientX:m,clientY:p}=d,h=d.currentTarget;r({getBoundingClientRect:()=>({x:m,y:p,width:0,height:0,top:p,left:m,right:m,bottom:p,toJSON:()=>{}}),contextElement:h}),s()}),onMouseDown:u,"data-expanded":i?!0:void 0}}function Tb(n){const{children:a,disabled:i}=se("PopoverContextMenu",null,n),r=Wa(a);if(!r)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=Bm();return x.cloneElement(r,zT({childProps:r.props,disabled:i||s.disabled,opened:s.opened,setReference:s.reference,open:()=>{s.opened||s.onToggle()}}))}Tb.displayName="@mantine/core/PopoverContextMenu";function _c({children:n,active:a=!0,refProp:i="ref",innerRef:r}){const s=Xt(a2(a),r),u=Wa(n);return u?x.cloneElement(u,{[i]:s}):n}function Rb(n){return v.jsx(Dm,{tabIndex:-1,"data-autofocus":!0,...n})}_c.displayName="@mantine/core/FocusTrap";Rb.displayName="@mantine/core/FocusTrapInitialFocus";_c.InitialFocus=Rb;var _b={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const Hm=me(n=>{var T,_,z,L;const a=se("PopoverDropdown",null,n),{className:i,style:r,vars:s,children:u,onKeyDownCapture:d,variant:m,classNames:p,styles:h,ref:S,...g}=a,y=Bm(),{dir:w}=nr(),C=y.arrowPosition==="merge"&&y.withArrow?Sb({position:y.placement,dir:w}):void 0,R=x0({opened:y.opened,shouldReturnFocus:y.returnFocus}),N=y.withRoles?{"aria-labelledby":y.getTargetId(),id:y.getDropdownId(),role:"dialog",tabIndex:-1}:{},A=Xt(S,y.floating);return y.disabled?null:v.jsx(Sa,{...y.portalProps,withinPortal:y.withinPortal,children:v.jsx($l,{mounted:y.opened,...y.transitionProps,transition:((T=y.transitionProps)==null?void 0:T.transition)||"fade",duration:((_=y.transitionProps)==null?void 0:_.duration)??150,keepMounted:y.keepMounted,exitDuration:typeof((z=y.transitionProps)==null?void 0:z.exitDuration)=="number"?y.transitionProps.exitDuration:(L=y.transitionProps)==null?void 0:L.duration,children:$=>{var U;return v.jsx(_c,{active:y.trapFocus&&y.opened,innerRef:A,children:v.jsxs(ce,{...N,...g,variant:m,onKeyDownCapture:Zw(()=>{var X,ae;(X=y.onClose)==null||X.call(y),(ae=y.onDismiss)==null||ae.call(y)},{active:y.closeOnEscape,onTrigger:R,onKeyDown:d}),"data-position":y.placement,"data-fixed":y.floatingStrategy==="fixed"||void 0,...y.getStyles("dropdown",{className:i,props:a,classNames:p,styles:h,style:[{...$,...C,zIndex:y.zIndex,top:y.y??0,left:y.x??0,width:y.width==="target"?void 0:Z(y.width),...y.referenceHidden?{display:"none"}:null},(U=y.resolvedStyles)==null?void 0:U.dropdown,h==null?void 0:h.dropdown,r]}),children:[u,v.jsx(dc,{ref:y.arrowRef,arrowX:y.arrowX,arrowY:y.arrowY,visible:y.withArrow,position:y.placement,arrowSize:y.arrowSize,arrowRadius:y.arrowRadius,arrowOffset:y.arrowOffset,arrowPosition:y.arrowPosition,...y.getStyles("arrow",{props:a,classNames:p,styles:h})})]})})}})})});Hm.classes=_b;Hm.displayName="@mantine/core/PopoverDropdown";const DT={refProp:"ref",popupType:"dialog"},Ab=me(n=>{const{children:a,refProp:i,popupType:r,ref:s,...u}=se("PopoverTarget",DT,n),d=Wa(a);if(!d)throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const m=u,p=Bm(),h=Xt(p.reference,gc(d),s),S=p.withRoles?{"aria-haspopup":r,"aria-expanded":p.opened,"aria-controls":p.opened?p.getDropdownId():void 0,id:p.getTargetId()}:{},g=d.props;return x.cloneElement(d,{...m,...S,...p.targetProps,className:bt(p.targetProps.className,m.className,g.className),[i]:h,...p.controlled?null:{onClick:y=>{var w;p.onToggle(),(w=g.onClick)==null||w.call(g,y)}}})});Ab.displayName="@mantine/core/PopoverTarget";function BT(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 HT(n,a,i,r){const s=BT(n.middlewares),u=[cb(n.offset),nT()];if(s.flip&&!i){const d=typeof s.flip=="boolean"?{}:s.flip,m=r?{fallbackStrategy:"initialPlacement",...d}:d;u.push(Id(m))}return s.shift&&u.push(Am(typeof s.shift=="boolean"?{limiter:Zy(),padding:5}:{limiter:Zy(),padding:5,...s.shift})),s.inline&&u.push(typeof s.inline=="boolean"?pi():pi(s.inline)),u.push(ub({element:n.arrowRef,padding:n.arrowOffset})),(s.size||n.width==="target")&&u.push(tT({...typeof s.size=="boolean"?{}:s.size,apply({rects:d,availableWidth:m,availableHeight:p,...h}){var g;const S=((g=a().refs.floating.current)==null?void 0:g.style)??{};s.size&&(typeof s.size=="object"&&s.size.apply?s.size.apply({rects:d,availableWidth:m,availableHeight:p,...h}):Object.assign(S,{maxWidth:`${m}px`,maxHeight:`${p}px`})),n.width==="target"&&Object.assign(S,{width:`${d.reference.width}px`})}})),u}function LT(n){const[a,i]=Ka({value:n.opened,defaultValue:n.defaultOpened,finalValue:!1,onChange:n.onChange}),r=x.useRef(a),[s,u]=x.useState(null),d=n.preventPositionChangeWhenVisible!==!1,m=x.useRef(a);a!==m.current&&(m.current=a,a&&s!==null&&u(null));const p=x.useCallback(()=>u(null),[]),h=()=>{a&&!n.disabled&&i(!1)},S=()=>{n.disabled||i(!a)},g=Mm({open:a,strategy:n.strategy,placement:d?s??n.position:n.position,middleware:HT(n,()=>g,d&&s!==null,d),whileElementsMounted:n.keepMounted?void 0:Pd});x.useEffect(()=>{if(!(!g.refs.reference.current||!g.refs.floating.current)&&a)return Pd(g.refs.reference.current,g.refs.floating.current,g.update)},[a,g.update]);const y=x.useRef(!1);ol(()=>{if(!a){y.current=!1;return}if(!d||s!==null)return;const C=g.refs.floating.current;if(!(!C||C.offsetHeight===0||C.offsetWidth===0)){if(!y.current){y.current=!0,g.update();return}g.isPositioned&&u(g.placement)}},[d,a,g.isPositioned,g.placement,s,g.update]);const w=x.useRef(g.placement);return ol(()=>{var C;w.current!==g.placement&&(w.current=g.placement,(C=n.onPositionChange)==null||C.call(n,g.placement))},[g.placement]),tr(()=>{var C,R;a!==r.current&&(a?(R=n.onOpen)==null||R.call(n):(C=n.onClose)==null||C.call(n)),r.current=a},[a,n.onClose,n.onOpen]),{floating:g,controlled:typeof n.opened=="boolean",opened:a,onClose:h,onToggle:S,resetLockedPlacement:p}}const UT={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:kt("popover"),__staticSelector:"Popover",width:"max-content"},jb=(n,{radius:a,shadow:i})=>({dropdown:{"--popover-radius":a===void 0?void 0:Ot(a),"--popover-shadow":cm(i)}});function Pt(n){var je,Hn,Jn,zt,Ln,nn,xt;const a=se("Popover",UT,n),{children:i,position:r,offset:s,onPositionChange:u,opened:d,transitionProps:m,onExitTransitionEnd:p,onEnterTransitionEnd:h,width:S,middlewares:g,withArrow:y,arrowSize:w,arrowOffset:C,arrowRadius:R,arrowPosition:N,unstyled:A,classNames:T,styles:_,closeOnClickOutside:z,withinPortal:L,portalProps:$,closeOnEscape:U,clickOutsideEvents:X,trapFocus:ae,onClose:oe,onDismiss:le,onOpen:ee,onChange:re,zIndex:K,radius:ie,shadow:O,id:B,defaultOpened:H,__staticSelector:J,withRoles:te,disabled:j,returnFocus:k,variant:F,keepMounted:P,vars:ue,floatingStrategy:fe,withOverlay:pe,overlayProps:Ce,hideDetached:Re,attributes:ze,preventPositionChangeWhenVisible:lt,...be}=a,$e=xe({name:J,props:a,classes:_b,classNames:T,styles:_,unstyled:A,attributes:ze,rootSelector:"dropdown",vars:ue,varsResolver:jb}),{resolvedStyles:qe}=gm({classNames:T,styles:_,props:a}),at=x.useRef(null),[Ct,Mt]=x.useState(null),[Dn,qt]=x.useState(null),{dir:ut}=nr(),tn=yc(),Bn=Yl(B),Ye=LT({middlewares:g,width:S,position:xb(ut,r),offset:typeof s=="number"?s+(y?w/2:0):s,arrowRef:at,arrowOffset:C,onPositionChange:u,opened:d,defaultOpened:H,onChange:re,onOpen:ee,onClose:oe,onDismiss:le,strategy:fe,disabled:j,preventPositionChangeWhenVisible:lt,keepMounted:P});Fw(()=>{z&&(Ye.onClose(),le==null||le())},X,[Ct,Dn]);const We=x.useCallback(tt=>{Mt(tt),Ye.floating.refs.setReference(tt)},[Ye.floating.refs.setReference]),we=x.useCallback(tt=>{qt(tt),Ye.floating.refs.setFloating(tt)},[Ye.floating.refs.setFloating]),Ue=x.useCallback(()=>{var tt;(tt=m==null?void 0:m.onExited)==null||tt.call(m),p==null||p(),Ye.resetLockedPlacement()},[m==null?void 0:m.onExited,p,Ye.resetLockedPlacement]),Ut=x.useCallback(()=>{var tt;(tt=m==null?void 0:m.onEntered)==null||tt.call(m),h==null||h()},[m==null?void 0:m.onEntered,h]);return v.jsxs(MT,{value:{returnFocus:k,disabled:j,controlled:Ye.controlled,reference:We,floating:we,x:Ye.floating.x,y:Ye.floating.y,arrowX:(Jn=(Hn=(je=Ye.floating)==null?void 0:je.middlewareData)==null?void 0:Hn.arrow)==null?void 0:Jn.x,arrowY:(nn=(Ln=(zt=Ye.floating)==null?void 0:zt.middlewareData)==null?void 0:Ln.arrow)==null?void 0:nn.y,opened:Ye.opened,arrowRef:at,transitionProps:{...m,onExited:Ue,onEntered:Ut},width:S,withArrow:y,arrowSize:w,arrowOffset:C,arrowRadius:R,arrowPosition:N,placement:Ye.floating.placement,trapFocus:ae,withinPortal:L,portalProps:$,zIndex:K,radius:ie,shadow:O,closeOnEscape:U,onDismiss:le,onClose:Ye.onClose,onToggle:Ye.onToggle,getTargetId:()=>Bn,getDropdownId:()=>`${Bn}-dropdown`,withRoles:te,targetProps:be,__staticSelector:J,classNames:T,styles:_,unstyled:A,variant:F,keepMounted:P,getStyles:$e,resolvedStyles:qe,floatingStrategy:fe,referenceHidden:Re&&tn!=="test"?(xt=Ye.floating.middlewareData.hide)==null?void 0:xt.referenceHidden:!1},children:[i,pe&&v.jsx($l,{transition:"fade",mounted:Ye.opened,duration:(m==null?void 0:m.duration)||250,exitDuration:(m==null?void 0:m.exitDuration)||250,children:tt=>v.jsx(Sa,{withinPortal:L,children:v.jsx(Ei,{...Ce,...$e("overlay",{className:Ce==null?void 0:Ce.className,style:[tt,Ce==null?void 0:Ce.style]})})})})]})}Pt.Target=Ab;Pt.Dropdown=Hm;Pt.ContextMenu=Tb;Pt.varsResolver=jb;Pt.displayName="@mantine/core/Popover";Pt.extend=n=>n;Pt.withProps=n=>{const a=i=>v.jsx(Pt,{...n,...i});return a.extend=Pt.extend,a.displayName=`WithProps(${Pt.displayName})`,a};var Xn={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 Nb=({className:n,...a})=>v.jsxs(ce,{component:"span",className:bt(Xn.barsLoader,n),...a,children:[v.jsx("span",{className:Xn.bar}),v.jsx("span",{className:Xn.bar}),v.jsx("span",{className:Xn.bar})]});Nb.displayName="@mantine/core/Bars";const Ob=({className:n,...a})=>v.jsxs(ce,{component:"span",className:bt(Xn.dotsLoader,n),...a,children:[v.jsx("span",{className:Xn.dot}),v.jsx("span",{className:Xn.dot}),v.jsx("span",{className:Xn.dot})]});Ob.displayName="@mantine/core/Dots";const Mb=({className:n,...a})=>v.jsx(ce,{component:"span",className:bt(Xn.ovalLoader,n),...a});Mb.displayName="@mantine/core/Oval";const zb={bars:Nb,oval:Mb,dots:Ob},$T={loaders:zb,type:"oval"},Db=(n,{size:a,color:i})=>({root:{"--loader-size":Le(a,"loader-size"),"--loader-color":i?An(i,n):void 0}}),dn=me(n=>{const a=se("Loader",$T,n),{size:i,color:r,type:s,vars:u,className:d,style:m,classNames:p,styles:h,unstyled:S,loaders:g,variant:y,children:w,attributes:C,...R}=a,N=xe({name:"Loader",props:a,classes:Xn,className:d,style:m,classNames:p,styles:h,unstyled:S,attributes:C,vars:u,varsResolver:Db});return w?v.jsx(ce,{...N("root"),...R,children:w}):v.jsx(ce,{...N("root"),component:g[s],variant:y,size:i,...R})});dn.defaultLoaders=zb;dn.classes=Xn;dn.varsResolver=Db;dn.displayName="@mantine/core/Loader";var rr={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const o0={orientation:"horizontal"},Bb=(n,{borderWidth:a})=>({group:{"--ai-border-width":Z(a)}}),Ac=me(n=>{const a=se("ActionIconGroup",o0,n),{className:i,style:r,classNames:s,styles:u,unstyled:d,orientation:m,vars:p,borderWidth:h,variant:S,mod:g,attributes:y,...w}=se("ActionIconGroup",o0,n);return v.jsx(ce,{...xe({name:"ActionIconGroup",props:a,classes:rr,className:i,style:r,classNames:s,styles:u,unstyled:d,attributes:y,vars:p,varsResolver:Bb,rootSelector:"group"})("group"),variant:S,mod:[{"data-orientation":m},g],role:"group",...w})});Ac.classes=rr;Ac.varsResolver=Bb;Ac.displayName="@mantine/core/ActionIconGroup";const Hb=(n,{radius:a,color:i,gradient:r,variant:s,autoContrast:u,size:d})=>{const m=n.variantColorResolver({color:i||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:u});return{groupSection:{"--section-height":Le(d,"section-height"),"--section-padding-x":Le(d,"section-padding-x"),"--section-fz":Lt(d),"--section-radius":a===void 0?void 0:Ot(a),"--section-bg":i||s?m.background:void 0,"--section-color":m.color,"--section-bd":i||s?m.border:void 0}}},jc=me(n=>{const a=se("ActionIconGroupSection",null,n),{className:i,style:r,classNames:s,styles:u,unstyled:d,vars:m,variant:p,gradient:h,radius:S,autoContrast:g,attributes:y,...w}=a;return v.jsx(ce,{...xe({name:"ActionIconGroupSection",props:a,classes:rr,className:i,style:r,classNames:s,styles:u,unstyled:d,attributes:y,vars:m,varsResolver:Hb,rootSelector:"groupSection"})("groupSection"),variant:p,...w})});jc.classes=rr;jc.varsResolver=Hb;jc.displayName="@mantine/core/ActionIconGroupSection";const Lb=(n,{size:a,radius:i,variant:r,gradient:s,color:u,autoContrast:d})=>{const m=n.variantColorResolver({color:u||n.primaryColor,theme:n,gradient:s,variant:r||"filled",autoContrast:d});return{root:{"--ai-size":Le(a,"ai-size"),"--ai-radius":i===void 0?void 0:Ot(i),"--ai-bg":u||r?m.background:void 0,"--ai-hover":u||r?m.hover:void 0,"--ai-hover-color":u||r?m.hoverColor:void 0,"--ai-color":m.color,"--ai-bd":u||r?m.border:void 0}}},Gn=Vt(n=>{const a=se("ActionIcon",null,n),{className:i,unstyled:r,variant:s,classNames:u,styles:d,style:m,loading:p,loaderProps:h,size:S,color:g,radius:y,__staticSelector:w,gradient:C,vars:R,children:N,disabled:A,"data-disabled":T,autoContrast:_,mod:z,attributes:L,...$}=a,U=xe({name:["ActionIcon",w],props:a,className:i,style:m,classes:rr,classNames:u,styles:d,unstyled:r,attributes:L,vars:R,varsResolver:Lb});return v.jsxs(or,{...U("root",{active:!A&&!p&&!T}),...$,unstyled:r,variant:s,size:S,disabled:A||p,mod:[{loading:p,disabled:A||T},z],children:[typeof p=="boolean"&&v.jsx($l,{mounted:p,transition:"slide-down",duration:150,children:X=>v.jsx(ce,{component:"span",...U("loader",{style:X}),"aria-hidden":!0,children:v.jsx(dn,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...h})})}),v.jsx(ce,{component:"span",mod:{loading:p},...U("icon"),children:N})]})});Gn.classes=rr;Gn.varsResolver=Lb;Gn.displayName="@mantine/core/ActionIcon";Gn.Group=Ac;Gn.GroupSection=jc;function Ub({size:n="var(--cb-icon-size, 70%)",style:a,...i}){return v.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...a,width:n,height:n},...i,children:v.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"})})}Ub.displayName="@mantine/core/CloseIcon";var $b={root:"m_86a44da5","root--subtle":"m_220c80f2"};const YT={variant:"subtle"},Yb=(n,{size:a,radius:i,iconSize:r})=>({root:{"--cb-size":Le(a,"cb-size"),"--cb-radius":i===void 0?void 0:Ot(i),"--cb-icon-size":Z(r)}}),ir=Vt(n=>{const a=se("CloseButton",YT,n),{iconSize:i,children:r,vars:s,radius:u,className:d,classNames:m,style:p,styles:h,unstyled:S,"data-disabled":g,disabled:y,variant:w,icon:C,mod:R,attributes:N,__staticSelector:A,...T}=a,_=xe({name:A||"CloseButton",props:a,className:d,style:p,classes:$b,classNames:m,styles:h,unstyled:S,attributes:N,vars:s,varsResolver:Yb});return v.jsxs(or,{...T,unstyled:S,variant:w,disabled:y,mod:[{disabled:y||g},R],..._("root",{variant:w,active:!y&&!g}),children:[C||v.jsx(Ub,{}),r]})});ir.classes=$b;ir.varsResolver=Yb;ir.displayName="@mantine/core/CloseButton";function kT(n){return x.Children.toArray(n).filter(Boolean)}var kb={root:"m_4081bf90"};const XT={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},Xb=(n,{grow:a,preventGrowOverflow:i,gap:r,align:s,justify:u,wrap:d},{childWidth:m})=>({root:{"--group-child-width":a&&i?m:void 0,"--group-gap":Ll(r),"--group-align":s,"--group-justify":u,"--group-wrap":d}}),gt=me(n=>{const a=se("Group",XT,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,children:m,gap:p,align:h,justify:S,wrap:g,grow:y,preventGrowOverflow:w,vars:C,variant:R,__size:N,mod:A,attributes:T,..._}=a,z=kT(m),L=z.length,$=Ll(p??"md");return v.jsx(ce,{...xe({name:"Group",props:a,stylesCtx:{childWidth:`calc(${100/L}% - (${$} - ${$} / ${L}))`},className:r,style:s,classes:kb,classNames:i,styles:u,unstyled:d,attributes:T,vars:C,varsResolver:Xb})("root"),variant:R,mod:[{grow:y},A],size:N,..._,children:z})});gt.classes=kb;gt.varsResolver=Xb;gt.displayName="@mantine/core/Group";const[VT,kl]=sl("ModalBase component was not found in tree");function qT({opened:n,transitionDuration:a}){const[i,r]=x.useState(n),s=x.useRef(-1),u=vc()?0:a;return x.useEffect(()=>(n?(r(!0),window.clearTimeout(s.current)):u===0?r(!1):s.current=window.setTimeout(()=>r(!1),u),()=>window.clearTimeout(s.current)),[n,u]),i}function GT({id:n,transitionProps:a,opened:i,trapFocus:r,closeOnEscape:s,onClose:u,returnFocus:d}){const m=Yl(n),[p,h]=x.useState(!1),[S,g]=x.useState(!1),y=qT({opened:i,transitionDuration:typeof(a==null?void 0:a.duration)=="number"?a==null?void 0:a.duration:200});return T0("keydown",w=>{var C;w.key==="Escape"&&s&&!w.isComposing&&i&&((C=w.target)==null?void 0:C.getAttribute("data-mantine-stop-propagation"))!=="true"&&u()},{capture:!0}),x0({opened:i,shouldReturnFocus:r&&d}),{_id:m,titleMounted:p,bodyMounted:S,shouldLockScroll:y,setTitleMounted:h,setBodyMounted:g}}var nl=function(){return nl=Object.assign||function(a){for(var i,r=1,s=arguments.length;r"u")return sR;var a=cR(n),i=document.documentElement.clientWidth,r=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,r-i+a[2]-a[0])}},fR=Qb(),Wo="data-scroll-locked",dR=function(n,a,i,r){var s=n.left,u=n.top,d=n.right,m=n.gap;return i===void 0&&(i="margin"),` - .`.concat(ZT,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(m,"px ").concat(r,`; - } - body[`).concat(Wo,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([a&&"position: relative ".concat(r,";"),i==="margin"&&` - padding-left: `.concat(s,`px; - padding-top: `).concat(u,`px; - padding-right: `).concat(d,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(m,"px ").concat(r,`; - `),i==="padding"&&"padding-right: ".concat(m,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(lc,` { - right: `).concat(m,"px ").concat(r,`; - } - - .`).concat(ac,` { - margin-right: `).concat(m,"px ").concat(r,`; - } - - .`).concat(lc," .").concat(lc,` { - right: 0 `).concat(r,`; - } - - .`).concat(ac," .").concat(ac,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(Wo,`] { - `).concat(KT,": ").concat(m,`px; - } -`)},i0=function(){var n=parseInt(document.body.getAttribute(Wo)||"0",10);return isFinite(n)?n:0},mR=function(){x.useEffect(function(){return document.body.setAttribute(Wo,(i0()+1).toString()),function(){var n=i0()-1;n<=0?document.body.removeAttribute(Wo):document.body.setAttribute(Wo,n.toString())}},[])},pR=function(n){var a=n.noRelative,i=n.noImportant,r=n.gapMode,s=r===void 0?"margin":r;mR();var u=x.useMemo(function(){return uR(s)},[s]);return x.createElement(fR,{styles:dR(u,!a,s,i?"":"!important")})},tm=!1;if(typeof window<"u")try{var Ws=Object.defineProperty({},"passive",{get:function(){return tm=!0,!0}});window.addEventListener("test",Ws,Ws),window.removeEventListener("test",Ws,Ws)}catch{tm=!1}var Go=tm?{passive:!1}:!1,hR=function(n){return n.tagName==="TEXTAREA"},Zb=function(n,a){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[a]!=="hidden"&&!(i.overflowY===i.overflowX&&!hR(n)&&i[a]==="visible")},vR=function(n){return Zb(n,"overflowY")},gR=function(n){return Zb(n,"overflowX")},s0=function(n,a){var i=a.ownerDocument,r=a;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Kb(n,r);if(s){var u=Jb(n,r),d=u[1],m=u[2];if(d>m)return!0}r=r.parentNode}while(r&&r!==i.body);return!1},yR=function(n){var a=n.scrollTop,i=n.scrollHeight,r=n.clientHeight;return[a,i,r]},bR=function(n){var a=n.scrollLeft,i=n.scrollWidth,r=n.clientWidth;return[a,i,r]},Kb=function(n,a){return n==="v"?vR(a):gR(a)},Jb=function(n,a){return n==="v"?yR(a):bR(a)},SR=function(n,a){return n==="h"&&a==="rtl"?-1:1},xR=function(n,a,i,r,s){var u=SR(n,window.getComputedStyle(a).direction),d=u*r,m=i.target,p=a.contains(m),h=!1,S=d>0,g=0,y=0;do{if(!m)break;var w=Jb(n,m),C=w[0],R=w[1],N=w[2],A=R-N-u*C;(C||A)&&Kb(n,m)&&(g+=A,y+=C);var T=m.parentNode;m=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!p&&m!==document.body||p&&(a.contains(m)||a===m));return(S&&Math.abs(g)<1||!S&&Math.abs(y)<1)&&(h=!0),h},Ps=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},c0=function(n){return[n.deltaX,n.deltaY]},u0=function(n){return n&&"current"in n?n.current:n},wR=function(n,a){return n[0]===a[0]&&n[1]===a[1]},ER=function(n){return` - .block-interactivity-`.concat(n,` {pointer-events: none;} - .allow-interactivity-`).concat(n,` {pointer-events: all;} -`)},CR=0,Qo=[];function TR(n){var a=x.useRef([]),i=x.useRef([0,0]),r=x.useRef(),s=x.useState(CR++)[0],u=x.useState(Qb)[0],d=x.useRef(n);x.useEffect(function(){d.current=n},[n]),x.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var R=QT([n.lockRef.current],(n.shards||[]).map(u0),!0).filter(Boolean);return R.forEach(function(N){return N.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),R.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=x.useCallback(function(R,N){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!d.current.allowPinchZoom;var A=Ps(R),T=i.current,_="deltaX"in R?R.deltaX:T[0]-A[0],z="deltaY"in R?R.deltaY:T[1]-A[1],L,$=R.target,U=Math.abs(_)>Math.abs(z)?"h":"v";if("touches"in R&&U==="h"&&$.type==="range")return!1;var X=window.getSelection(),ae=X&&X.anchorNode,oe=ae?ae===$||ae.contains($):!1;if(oe)return!1;var le=s0(U,$);if(!le)return!0;if(le?L=U:(L=U==="v"?"h":"v",le=s0(U,$)),!le)return!1;if(!r.current&&"changedTouches"in R&&(_||z)&&(r.current=L),!L)return!0;var ee=r.current||L;return xR(ee,N,R,ee==="h"?_:z)},[]),p=x.useCallback(function(R){var N=R;if(!(!Qo.length||Qo[Qo.length-1]!==u)){var A="deltaY"in N?c0(N):Ps(N),T=a.current.filter(function(L){return L.name===N.type&&(L.target===N.target||N.target===L.shadowParent)&&wR(L.delta,A)})[0];if(T&&T.should){N.cancelable&&N.preventDefault();return}if(!T){var _=(d.current.shards||[]).map(u0).filter(Boolean).filter(function(L){return L.contains(N.target)}),z=_.length>0?m(N,_[0]):!d.current.noIsolation;z&&N.cancelable&&N.preventDefault()}}},[]),h=x.useCallback(function(R,N,A,T){var _={name:R,delta:N,target:A,should:T,shadowParent:RR(A)};a.current.push(_),setTimeout(function(){a.current=a.current.filter(function(z){return z!==_})},1)},[]),S=x.useCallback(function(R){i.current=Ps(R),r.current=void 0},[]),g=x.useCallback(function(R){h(R.type,c0(R),R.target,m(R,n.lockRef.current))},[]),y=x.useCallback(function(R){h(R.type,Ps(R),R.target,m(R,n.lockRef.current))},[]);x.useEffect(function(){return Qo.push(u),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:y}),document.addEventListener("wheel",p,Go),document.addEventListener("touchmove",p,Go),document.addEventListener("touchstart",S,Go),function(){Qo=Qo.filter(function(R){return R!==u}),document.removeEventListener("wheel",p,Go),document.removeEventListener("touchmove",p,Go),document.removeEventListener("touchstart",S,Go)}},[]);var w=n.removeScrollBar,C=n.inert;return x.createElement(x.Fragment,null,C?x.createElement(u,{styles:ER(s)}):null,w?x.createElement(pR,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function RR(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const _R=tR(Gb,TR);var Fa=x.forwardRef(function(n,a){return x.createElement(Nc,nl({},n,{ref:a,sideCar:_R}))});Fa.classNames=Nc.classNames;function Lm({keepMounted:n,opened:a,onClose:i,id:r,transitionProps:s,onExitTransitionEnd:u,onEnterTransitionEnd:d,trapFocus:m,closeOnEscape:p,returnFocus:h,closeOnClickOutside:S,withinPortal:g,portalProps:y,lockScroll:w,children:C,zIndex:R,shadow:N,padding:A,__vars:T,unstyled:_,removeScrollProps:z,...L}){const{_id:$,titleMounted:U,bodyMounted:X,shouldLockScroll:ae,setTitleMounted:oe,setBodyMounted:le}=GT({id:r,transitionProps:s,opened:a,trapFocus:m,closeOnEscape:p,onClose:i,returnFocus:h}),{key:ee,...re}=z||{};return v.jsx(Sa,{...y,withinPortal:g,children:v.jsx(VT,{value:{opened:a,onClose:i,closeOnClickOutside:S,onExitTransitionEnd:u,onEnterTransitionEnd:d,transitionProps:{...s,keepMounted:n},getTitleId:()=>`${$}-title`,getBodyId:()=>`${$}-body`,titleMounted:U,bodyMounted:X,setTitleMounted:oe,setBodyMounted:le,trapFocus:m,closeOnEscape:p,zIndex:R,unstyled:_},children:v.jsx(Fa,{enabled:ae&&w,...re,children:v.jsx(ce,{...L,id:$,__vars:{...T,"--mb-z-index":(R||kt("modal")).toString(),"--mb-shadow":cm(N),"--mb-padding":Ll(A)},children:C})},ee)})})}Lm.displayName="@mantine/core/ModalBase";function AR(){const n=kl();return x.useEffect(()=>(n.setBodyMounted(!0),()=>n.setBodyMounted(!1)),[]),n.getBodyId()}var Io={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function Um({className:n,...a}){const i=AR(),r=kl();return v.jsx(ce,{id:i,className:bt({[Io.body]:!r.unstyled},n),...a})}Um.displayName="@mantine/core/ModalBaseBody";function $m({className:n,onClick:a,...i}){const r=kl();return v.jsx(ir,{...i,onClick:s=>{r.onClose(),a==null||a(s)},className:bt({[Io.close]:!r.unstyled},n),unstyled:r.unstyled})}$m.displayName="@mantine/core/ModalBaseCloseButton";function Ym({transitionProps:n,className:a,innerProps:i,onKeyDown:r,style:s,ref:u,...d}){const m=kl();return v.jsx($l,{mounted:m.opened,transition:"pop",...m.transitionProps,onExited:()=>{var p,h,S;(p=m.onExitTransitionEnd)==null||p.call(m),(S=(h=m.transitionProps)==null?void 0:h.onExited)==null||S.call(h)},onEntered:()=>{var p,h,S;(p=m.onEnterTransitionEnd)==null||p.call(m),(S=(h=m.transitionProps)==null?void 0:h.onEntered)==null||S.call(h)},...n,children:p=>v.jsx("div",{...i,className:bt({[Io.inner]:!m.unstyled},i.className),children:v.jsx(_c,{active:m.opened&&m.trapFocus,innerRef:u,children:v.jsx(wi,{...d,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":m.bodyMounted?m.getBodyId():void 0,"aria-labelledby":m.titleMounted?m.getTitleId():void 0,style:[s,p],className:bt({[Io.content]:!m.unstyled},a),unstyled:m.unstyled,children:d.children})})})})}Ym.displayName="@mantine/core/ModalBaseContent";function km({className:n,...a}){const i=kl();return v.jsx(ce,{component:"header",className:bt({[Io.header]:!i.unstyled},n),...a})}km.displayName="@mantine/core/ModalBaseHeader";const jR={duration:200,timingFunction:"ease",transition:"fade"};function NR(n){const a=kl();return{...jR,...a.transitionProps,...n}}function Xm({onClick:n,transitionProps:a,style:i,visible:r,...s}){const u=kl(),d=NR(a);return v.jsx($l,{mounted:r!==void 0?r:u.opened,...d,transition:"fade",children:m=>v.jsx(Ei,{fixed:!0,style:[i,m],zIndex:u.zIndex,unstyled:u.unstyled,onClick:p=>{n==null||n(p),u.closeOnClickOutside&&u.onClose()},...s})})}Xm.displayName="@mantine/core/ModalBaseOverlay";function OR(){const n=kl();return x.useEffect(()=>(n.setTitleMounted(!0),()=>n.setTitleMounted(!1)),[]),n.getTitleId()}function Vm({className:n,...a}){const i=OR(),r=kl();return v.jsx(ce,{component:"h2",className:bt({[Io.title]:!r.unstyled},n),id:i,...a})}Vm.displayName="@mantine/core/ModalBaseTitle";function Fb({children:n}){return v.jsx(v.Fragment,{children:n})}const Wb=x.createContext({size:"sm"}),Pb=me(n=>{const a=se("InputClearButton",null,n),{size:i,variant:r,vars:s,classNames:u,styles:d,...m}=a,p=x.use(Wb),{resolvedClassNames:h,resolvedStyles:S}=gm({classNames:u,styles:d,props:a});return v.jsx(ir,{variant:r||"transparent",size:i||(p==null?void 0:p.size)||"sm",classNames:h,styles:S,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...m.style},...m})});Pb.displayName="@mantine/core/InputClearButton";const MR={xs:7,sm:8,md:10,lg:12,xl:15};function zR({__clearable:n,__clearSection:a,rightSection:i,__defaultRightSection:r,size:s="sm",__clearSectionMode:u="both"}){const d=n&&a;return u==="rightSection"?i===null?null:i||r:u==="clear"?i===null?null:d||r:d&&(i||r)?v.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:MR[s]},children:[d,i||r]}):i===null?null:i||d||r}const sr=x.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var zn={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 Ib=(n,{size:a})=>({description:{"--input-description-size":a===void 0?void 0:`calc(${Lt(a)} - ${Z(2)})`}}),Ci=me(n=>{const a=se("InputDescription",null,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,__staticSelector:p,__inheritStyles:h=!0,attributes:S,...g}=se("InputDescription",null,a),y=x.use(sr),w=xe({name:["InputWrapper",p],props:a,classes:zn,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:S,rootSelector:"description",vars:m,varsResolver:Ib});return v.jsx(ce,{component:"p",...(h&&(y==null?void 0:y.getStyles)||w)("description",y!=null&&y.getStyles?{className:r,style:s}:void 0),...g})});Ci.classes=zn;Ci.varsResolver=Ib;Ci.displayName="@mantine/core/InputDescription";const e1=(n,{size:a})=>({error:{"--input-error-size":a===void 0?void 0:`calc(${Lt(a)} - ${Z(2)})`}}),Ti=me(n=>{const a=se("InputError",null,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,attributes:p,__staticSelector:h,__inheritStyles:S=!0,...g}=a,y=xe({name:["InputWrapper",h],props:a,classes:zn,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:p,rootSelector:"error",vars:m,varsResolver:e1}),w=x.use(sr);return v.jsx(ce,{component:"p",...(S&&(w==null?void 0:w.getStyles)||y)("error",w!=null&&w.getStyles?{className:r,style:s}:void 0),...g})});Ti.classes=zn;Ti.varsResolver=e1;Ti.displayName="@mantine/core/InputError";const DR={labelElement:"label"},t1=(n,{size:a})=>({label:{"--input-label-size":Lt(a),"--input-asterisk-color":void 0}}),Ri=me(n=>{const a=se("InputLabel",DR,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,labelElement:p,required:h,htmlFor:S,onMouseDown:g,children:y,__staticSelector:w,mod:C,attributes:R,...N}=a,A=xe({name:["InputWrapper",w],props:a,classes:zn,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:R,rootSelector:"label",vars:m,varsResolver:t1}),T=x.use(sr),_=(T==null?void 0:T.getStyles)||A;return v.jsxs(ce,{..._("label",T!=null&&T.getStyles?{className:r,style:s}:void 0),component:p,htmlFor:p==="label"?S:void 0,mod:[{required:h},C],onMouseDown:z=>{g==null||g(z),!z.defaultPrevented&&z.detail>1&&z.preventDefault()},...N,children:[y,h&&v.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});Ri.classes=zn;Ri.varsResolver=t1;Ri.displayName="@mantine/core/InputLabel";const qm=me(n=>{const a=se("InputPlaceholder",null,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,__staticSelector:p,error:h,mod:S,attributes:g,...y}=a;return v.jsx(ce,{...xe({name:["InputPlaceholder",p],props:a,classes:zn,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:g,rootSelector:"placeholder"})("placeholder"),mod:[{error:!!h},S],component:"span",...y})});qm.classes=zn;qm.displayName="@mantine/core/InputPlaceholder";function BR(n,{hasDescription:a,hasError:i}){const r=n.findIndex(m=>m==="input"),s=n.slice(0,r),u=n.slice(r+1),d=a&&s.includes("description")||i&&s.includes("error");return{offsetBottom:a&&u.includes("description")||i&&u.includes("error"),offsetTop:d}}const HR={labelElement:"label",inputContainer:n=>n,inputWrapperOrder:["label","description","input","error"]},n1=(n,{size:a})=>({label:{"--input-label-size":Lt(a),"--input-asterisk-color":void 0},error:{"--input-error-size":a===void 0?void 0:`calc(${Lt(a)} - ${Z(2)})`},description:{"--input-description-size":a===void 0?void 0:`calc(${Lt(a)} - ${Z(2)})`}}),Oc=me(n=>{const a=se("InputWrapper",HR,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,size:p,variant:h,__staticSelector:S,inputContainer:g,inputWrapperOrder:y,label:w,error:C,description:R,labelProps:N,descriptionProps:A,errorProps:T,labelElement:_,children:z,withAsterisk:L,id:$,required:U,__stylesApiProps:X,mod:ae,attributes:oe,...le}=a,ee=xe({name:["InputWrapper",S],props:X||a,classes:zn,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:oe,vars:m,varsResolver:n1}),re={size:p,variant:h,__staticSelector:S},K=Yl($),ie=typeof L=="boolean"?L:U,O=(T==null?void 0:T.id)||`${K}-error`,B=(A==null?void 0:A.id)||`${K}-description`,H=K,J=!!C&&typeof C!="boolean",te=!!R,j=`${J?O:""} ${te?B:""}`,k=j.trim().length>0?j.trim():void 0,F=(N==null?void 0:N.id)||`${K}-label`,P=w&&v.jsx(Ri,{labelElement:_,id:F,htmlFor:H,required:ie,...re,...N,children:w},"label"),ue=te&&v.jsx(Ci,{...A,...re,size:(A==null?void 0:A.size)||re.size,id:(A==null?void 0:A.id)||B,children:R},"description"),fe=v.jsx(x.Fragment,{children:g(z)},"input"),pe=J&&x.createElement(Ti,{...T,...re,size:(T==null?void 0:T.size)||re.size,key:"error",id:(T==null?void 0:T.id)||O},C),Ce=y.map(Re=>{switch(Re){case"label":return P;case"input":return fe;case"description":return ue;case"error":return pe;default:return null}});return v.jsx(sr,{value:{getStyles:ee,describedBy:k,inputId:H,labelId:F,...BR(y,{hasDescription:te,hasError:J})},children:v.jsx(ce,{variant:h,size:p,mod:[{error:!!C},ae],id:_==="label"?void 0:$,...ee("root"),...le,children:Ce})})});Oc.classes=zn;Oc.varsResolver=n1;Oc.displayName="@mantine/core/InputWrapper";const LR={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm",loading:!1,loadingPosition:"right"},l1=(n,a,i)=>({wrapper:{"--input-margin-top":i.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":i.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Le(a.size,"input-height"),"--input-fz":Lt(a.size),"--input-radius":a.radius===void 0?void 0:Ot(a.radius),"--input-left-section-width":a.leftSectionWidth!==void 0?Z(a.leftSectionWidth):void 0,"--input-right-section-width":a.rightSectionWidth!==void 0?Z(a.rightSectionWidth):void 0,"--input-padding-y":a.multiline?Le(a.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":a.leftSectionPointerEvents,"--input-right-section-pointer-events":a.rightSectionPointerEvents}}),St=Vt(n=>{const a=se("Input",LR,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,required:m,__staticSelector:p,__stylesApiProps:h,size:S,wrapperProps:g,error:y,disabled:w,leftSection:C,leftSectionProps:R,leftSectionWidth:N,rightSection:A,rightSectionProps:T,rightSectionWidth:_,rightSectionPointerEvents:z,leftSectionPointerEvents:L,variant:$,vars:U,pointer:X,multiline:ae,radius:oe,id:le,withAria:ee,withErrorStyles:re,mod:K,inputSize:ie,attributes:O,__clearSection:B,__clearable:H,__clearSectionMode:J,__defaultRightSection:te,loading:j,loadingPosition:k,__bottomSection:F,__bottomSectionProps:P,rootRef:ue,dir:fe,...pe}=a,{styleProps:Ce,rest:Re}=bc(pe),ze=x.use(sr),lt={offsetBottom:ze==null?void 0:ze.offsetBottom,offsetTop:ze==null?void 0:ze.offsetTop},be=xe({name:["Input",p],props:h||a,classes:zn,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:O,stylesCtx:lt,rootSelector:"wrapper",vars:U,varsResolver:l1}),$e=ee?{required:m,disabled:w,"aria-invalid":y?!0:void 0,"aria-describedby":ze==null?void 0:ze.describedBy,id:(ze==null?void 0:ze.inputId)||le}:{},qe=j?v.jsx(dn,{size:k==="left"?"calc(var(--input-left-section-size) / 2)":"calc(var(--input-right-section-size) / 2)"}):null,at=j&&k==="left"?qe:C,Ct=zR({__clearable:H,__clearSection:B,rightSection:j&&k==="right"?qe:A,__defaultRightSection:te,size:S,__clearSectionMode:J});return v.jsx(Wb,{value:{size:S||"sm"},children:v.jsxs(ce,{ref:ue,dir:fe,...be("wrapper"),...Ce,...g,mod:[{error:!!y&&re,pointer:X,disabled:w,multiline:ae,"data-with-right-section":!!Ct,"data-with-left-section":!!at,"data-with-bottom-section":!!F},K],variant:$,size:S,children:[at&&v.jsx("div",{...R,"data-position":"left",...be("section",{className:R==null?void 0:R.className,style:R==null?void 0:R.style}),children:at}),v.jsx(ce,{component:"input",...Re,...$e,required:m,mod:{disabled:w,error:!!y&&re},variant:$,__size:ie,...be("input")}),F&&v.jsx("div",{...P,...be("bottomSection",{className:P==null?void 0:P.className,style:P==null?void 0:P.style}),children:F}),Ct&&v.jsx("div",{...T,"data-position":"right",...be("section",{className:T==null?void 0:T.className,style:T==null?void 0:T.style}),children:Ct})]})})});St.classes=zn;St.varsResolver=l1;St.Wrapper=Oc;St.Label=Ri;St.Error=Ti;St.Description=Ci;St.Placeholder=qm;St.ClearButton=Pb;St.displayName="@mantine/core/Input";function UR(n,a,i){const r=se(["Input","InputWrapper",n],a,i),{label:s,description:u,error:d,required:m,classNames:p,styles:h,className:S,unstyled:g,__staticSelector:y,__stylesApiProps:w,errorProps:C,labelProps:R,descriptionProps:N,wrapperProps:A,id:T,size:_,style:z,inputContainer:L,inputWrapperOrder:$,withAsterisk:U,variant:X,vars:ae,mod:oe,attributes:le,...ee}=r,{styleProps:re,rest:K}=bc(ee),ie={label:s,description:u,error:d,required:m,classNames:p,className:S,__staticSelector:y,__stylesApiProps:w||r,errorProps:C,labelProps:R,descriptionProps:N,unstyled:g,styles:h,size:_,style:z,inputContainer:L,inputWrapperOrder:$,withAsterisk:U,variant:X,id:T,mod:oe,attributes:le,...A};return{...K,classNames:p,styles:h,unstyled:g,wrapperProps:{...ie,...re},inputProps:{required:m,classNames:p,styles:h,unstyled:g,size:_,__staticSelector:y,__stylesApiProps:w||r,error:d,variant:X,id:T,attributes:le}}}const $R={__staticSelector:"InputBase",withAria:!0,size:"sm"},cr=Vt(n=>{const{inputProps:a,wrapperProps:i,...r}=UR("InputBase",$R,n);return v.jsx(St.Wrapper,{...i,children:v.jsx(St,{...a,...r})})});cr.classes={...St.classes,...St.Wrapper.classes};cr.displayName="@mantine/core/InputBase";function a1({style:n,size:a=16,...i}){return v.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...n,width:Z(a),height:Z(a),display:"block"},...i,children:v.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"})})}a1.displayName="@mantine/core/AccordionChevron";var o1={root:"m_b6d8b162"};function YR(n){if(n==="start")return"start";if(n==="end"||n)return"end"}const kR={inherit:!1},r1=(n,{variant:a,lineClamp:i,gradient:r,size:s,textWrap:u})=>({root:{"--text-fz":Lt(s),"--text-lh":Kw(s),"--text-gradient":a==="gradient"?Vd(r,n):void 0,"--text-line-clamp":typeof i=="number"?i.toString():void 0,"--text-text-wrap":u}}),Je=Vt(n=>{const a=se("Text",kR,n),{lineClamp:i,truncate:r,inline:s,inherit:u,gradient:d,span:m,textWrap:p,__staticSelector:h,vars:S,className:g,style:y,classNames:w,styles:C,unstyled:R,variant:N,mod:A,size:T,attributes:_,...z}=a;return v.jsx(ce,{...xe({name:["Text",h],props:a,classes:o1,className:g,style:y,classNames:w,styles:C,unstyled:R,attributes:_,vars:S,varsResolver:r1})("root",{focusable:!0}),component:m?"span":"p",variant:N,mod:[{"data-truncate":YR(r),"data-line-clamp":typeof i=="number","data-inline":s,"data-inherit":u},A],size:T,...z})});Je.classes=o1;Je.varsResolver=r1;Je.displayName="@mantine/core/Text";const[XR,ur]=sl("AppShell was not found in tree");var xa={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const Gm=me(n=>{const{classNames:a,className:i,style:r,styles:s,unstyled:u,vars:d,withBorder:m,zIndex:p,mod:h,...S}=se("AppShellAside",null,n),g=ur();return g.disabled?null:v.jsx(ce,{component:"aside",mod:[{"with-border":m??g.withBorder},h],...g.getStyles("aside",{className:bt({[Fa.classNames.zeroRight]:g.offsetScrollbars},i),classNames:a,styles:s,style:r}),...S,__vars:{"--app-shell-aside-z-index":`calc(${p??g.zIndex} + 1)`}})});Gm.classes=xa;Gm.displayName="@mantine/core/AppShellAside";const Qm=me(n=>{var y;const{classNames:a,className:i,style:r,styles:s,unstyled:u,vars:d,withBorder:m,zIndex:p,mod:h,...S}=se("AppShellFooter",null,n),g=ur();return g.disabled?null:v.jsx(ce,{component:"footer",mod:[{"with-border":m??g.withBorder},h],...g.getStyles("footer",{className:bt({[Fa.classNames.zeroRight]:g.offsetScrollbars},i),classNames:a,styles:s,style:r}),...S,__vars:{"--app-shell-footer-z-index":(y=p??g.zIndex)==null?void 0:y.toString()}})});Qm.classes=xa;Qm.displayName="@mantine/core/AppShellFooter";const Zm=me(n=>{var y;const{classNames:a,className:i,style:r,styles:s,unstyled:u,vars:d,withBorder:m,zIndex:p,mod:h,...S}=se("AppShellHeader",null,n),g=ur();return g.disabled?null:v.jsx(ce,{component:"header",mod:[{"with-border":m??g.withBorder},h],...g.getStyles("header",{className:bt({[Fa.classNames.zeroRight]:g.offsetScrollbars},i),classNames:a,styles:s,style:r}),...S,__vars:{"--app-shell-header-z-index":(y=p??g.zIndex)==null?void 0:y.toString()}})});Zm.classes=xa;Zm.displayName="@mantine/core/AppShellHeader";const Km=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("AppShellMain",null,n);return v.jsx(ce,{component:"main",...ur().getStyles("main",{className:i,style:r,classNames:a,styles:s}),...d})});Km.classes=xa;Km.displayName="@mantine/core/AppShellMain";const Jm=me(n=>{const{classNames:a,className:i,style:r,styles:s,unstyled:u,vars:d,withBorder:m,zIndex:p,mod:h,...S}=se("AppShellNavbar",null,n),g=ur();return g.disabled?null:v.jsx(ce,{component:"nav",mod:[{"with-border":m??g.withBorder},h],...g.getStyles("navbar",{className:i,classNames:a,styles:s,style:r}),...S,__vars:{"--app-shell-navbar-z-index":`calc(${p??g.zIndex} + 1)`}})});Jm.classes=xa;Jm.displayName="@mantine/core/AppShellNavbar";const Fm=Vt(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,grow:d,mod:m,...p}=se("AppShellSection",null,n),h=ur();return v.jsx(ce,{mod:[{grow:d},m],...h.getStyles("section",{className:i,style:r,classNames:a,styles:s}),...p})});Fm.classes=xa;Fm.displayName="@mantine/core/AppShellSection";function _i(n){return typeof n=="object"?n.base:n}function Ai(n){const a=typeof n=="object"&&n!==null&&typeof n.base<"u"&&Object.keys(n).length===1;return typeof n=="number"||typeof n=="string"||a}function ji(n){return!(typeof n!="object"||n===null||Object.keys(n).length===1&&"base"in n)}function VR({baseStyles:n,minMediaStyles:a,maxMediaStyles:i,aside:r,theme:s,mode:u}){var h,S,g;const d=r==null?void 0:r.width,m="translateX(var(--app-shell-aside-width))",p="translateX(calc(var(--app-shell-aside-width) * -1))";if(r!=null&&r.breakpoint&&!((h=r==null?void 0:r.collapsed)!=null&&h.mobile)&&(i[r==null?void 0:r.breakpoint]=i[r==null?void 0:r.breakpoint]||{},u==="fixed"?(i[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="100%",i[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px"):(i[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="0px",i[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px")),Ai(d)){const y=Z(_i(d));n["--app-shell-aside-width"]=y,n["--app-shell-aside-offset"]=y}if(ji(d)&&(typeof d.base<"u"&&(n["--app-shell-aside-width"]=Z(d.base),n["--app-shell-aside-offset"]=Z(d.base)),Nt(d).forEach(y=>{y!=="base"&&(a[y]=a[y]||{},a[y]["--app-shell-aside-width"]=Z(d[y]),a[y]["--app-shell-aside-offset"]=Z(d[y]))})),r!=null&&r.breakpoint&&u==="static"&&(a[r.breakpoint]=a[r.breakpoint]||{},a[r.breakpoint]["--app-shell-aside-position"]="sticky",a[r.breakpoint]["--app-shell-aside-grid-row"]="2",a[r.breakpoint]["--app-shell-aside-grid-column"]="3",a[r.breakpoint]["--app-shell-main-column-end"]="3"),(S=r==null?void 0:r.collapsed)!=null&&S.desktop){const y=r.breakpoint;a[y]=a[y]||{},a[y]["--app-shell-aside-transform"]=m,a[y]["--app-shell-aside-transform-rtl"]=p,u==="fixed"?a[y]["--app-shell-aside-offset"]="0px !important":(a[y]["--app-shell-aside-width"]="0px",a[y]["--app-shell-aside-display"]="none",a[y]["--app-shell-main-column-end"]="-1"),a[y]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if((g=r==null?void 0:r.collapsed)!=null&&g.mobile){const y=um(r.breakpoint,s.breakpoints)-.1;i[y]=i[y]||{},u==="fixed"?(i[y]["--app-shell-aside-width"]="100%",i[y]["--app-shell-aside-offset"]="0px"):i[y]["--app-shell-aside-width"]="0px",i[y]["--app-shell-aside-transform"]=m,i[y]["--app-shell-aside-transform-rtl"]=p,i[y]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function qR({baseStyles:n,minMediaStyles:a,footer:i,mode:r}){const s=i==null?void 0:i.height,u="translateY(var(--app-shell-footer-height))",d=r==="static"?!0:(i==null?void 0:i.offset)??!0;if(r==="static"&&i&&(n["--app-shell-footer-position"]="sticky",n["--app-shell-footer-grid-column"]="1 / -1",n["--app-shell-footer-grid-row"]="3"),Ai(s)){const m=Z(_i(s));n["--app-shell-footer-height"]=m,d&&(n["--app-shell-footer-offset"]=m)}ji(s)&&(typeof s.base<"u"&&(n["--app-shell-footer-height"]=Z(s.base),d&&(n["--app-shell-footer-offset"]=Z(s.base))),Nt(s).forEach(m=>{m!=="base"&&(a[m]=a[m]||{},a[m]["--app-shell-footer-height"]=Z(s[m]),d&&(a[m]["--app-shell-footer-offset"]=Z(s[m])))})),i!=null&&i.collapsed&&(n["--app-shell-footer-transform"]=u,r==="fixed"&&(n["--app-shell-footer-offset"]="0px !important"))}function GR({baseStyles:n,minMediaStyles:a,header:i,mode:r}){const s=i==null?void 0:i.height,u="translateY(calc(var(--app-shell-header-height) * -1))",d=r==="static"?!0:(i==null?void 0:i.offset)??!0;if(r==="static"&&i&&(n["--app-shell-header-position"]="sticky",n["--app-shell-header-grid-column"]="1 / -1",n["--app-shell-header-grid-row"]="1"),Ai(s)){const m=Z(_i(s));n["--app-shell-header-height"]=m,d&&(n["--app-shell-header-offset"]=m)}ji(s)&&(typeof s.base<"u"&&(n["--app-shell-header-height"]=Z(s.base),d&&(n["--app-shell-header-offset"]=Z(s.base))),Nt(s).forEach(m=>{m!=="base"&&(a[m]=a[m]||{},a[m]["--app-shell-header-height"]=Z(s[m]),d&&(a[m]["--app-shell-header-offset"]=Z(s[m])))})),i!=null&&i.collapsed&&(n["--app-shell-header-transform"]=u,r==="fixed"&&(n["--app-shell-header-offset"]="0px !important"))}function QR({baseStyles:n,minMediaStyles:a,maxMediaStyles:i,navbar:r,theme:s,mode:u}){var h,S,g;const d=r==null?void 0:r.width,m="translateX(calc(var(--app-shell-navbar-width) * -1))",p="translateX(var(--app-shell-navbar-width))";if(r!=null&&r.breakpoint&&!((h=r==null?void 0:r.collapsed)!=null&&h.mobile)&&(i[r==null?void 0:r.breakpoint]=i[r==null?void 0:r.breakpoint]||{},i[r==null?void 0:r.breakpoint]["--app-shell-navbar-offset"]="0px",i[r==null?void 0:r.breakpoint]["--app-shell-navbar-width"]="100%",u==="static"&&(i[r==null?void 0:r.breakpoint]["--app-shell-navbar-grid-width"]="0px")),Ai(d)){const y=Z(_i(d));n["--app-shell-navbar-width"]=y,n["--app-shell-navbar-offset"]=y,u==="static"&&(n["--app-shell-navbar-grid-width"]=y)}if(ji(d)&&(typeof d.base<"u"&&(n["--app-shell-navbar-width"]=Z(d.base),n["--app-shell-navbar-offset"]=Z(d.base),u==="static"&&(n["--app-shell-navbar-grid-width"]=Z(d.base))),Nt(d).forEach(y=>{y!=="base"&&(a[y]=a[y]||{},a[y]["--app-shell-navbar-width"]=Z(d[y]),a[y]["--app-shell-navbar-offset"]=Z(d[y]),u==="static"&&(a[y]["--app-shell-navbar-grid-width"]=Z(d[y])))})),r!=null&&r.breakpoint&&u==="static"&&(a[r.breakpoint]=a[r.breakpoint]||{},a[r.breakpoint]["--app-shell-navbar-position"]="sticky",a[r.breakpoint]["--app-shell-navbar-grid-row"]="2",a[r.breakpoint]["--app-shell-navbar-grid-column"]="1",a[r.breakpoint]["--app-shell-main-column-start"]="2"),(S=r==null?void 0:r.collapsed)!=null&&S.desktop){const y=r.breakpoint;a[y]=a[y]||{},a[y]["--app-shell-navbar-transform"]=m,a[y]["--app-shell-navbar-transform-rtl"]=p,u==="fixed"?a[y]["--app-shell-navbar-offset"]="0px !important":(a[y]["--app-shell-navbar-width"]="0px",a[y]["--app-shell-navbar-display"]="none",a[y]["--app-shell-main-column-start"]="1")}if((g=r==null?void 0:r.collapsed)!=null&&g.mobile){const y=um(r.breakpoint,s.breakpoints)-.1;i[y]=i[y]||{},i[y]["--app-shell-navbar-width"]="100%",i[y]["--app-shell-navbar-offset"]="0px",u==="static"&&(i[y]["--app-shell-navbar-grid-width"]="0px"),i[y]["--app-shell-navbar-transform"]=m,i[y]["--app-shell-navbar-transform-rtl"]=p}}function $d(n){return Number(n)===0?"0px":Ll(n)}function ZR({padding:n,baseStyles:a,minMediaStyles:i}){Ai(n)&&(a["--app-shell-padding"]=$d(_i(n))),ji(n)&&(n.base&&(a["--app-shell-padding"]=$d(n.base)),Nt(n).forEach(r=>{r!=="base"&&(i[r]=i[r]||{},i[r]["--app-shell-padding"]=$d(n[r]))}))}function KR({navbar:n,header:a,footer:i,aside:r,padding:s,theme:u,mode:d}){const m={},p={},h={};d==="static"&&(h["--app-shell-main-grid-column"]="1 / -1",h["--app-shell-main-grid-row"]="2"),QR({baseStyles:h,minMediaStyles:m,maxMediaStyles:p,navbar:n,theme:u,mode:d}),VR({baseStyles:h,minMediaStyles:m,maxMediaStyles:p,aside:r,theme:u,mode:d}),GR({baseStyles:h,minMediaStyles:m,header:a,mode:d}),qR({baseStyles:h,minMediaStyles:m,footer:i,mode:d}),ZR({baseStyles:h,minMediaStyles:m,padding:s});const S=Cy(Nt(m),u.breakpoints).map(y=>({query:`(min-width: ${rc(y.px)})`,styles:m[y.value]})),g=Cy(Nt(p),u.breakpoints).map(y=>({query:`(max-width: ${rc(y.px)})`,styles:p[y.value]}));return{baseStyles:h,media:[...S,...g]}}function JR({navbar:n,header:a,aside:i,footer:r,padding:s,mode:u,selector:d}){const m=Nn(),p=cl(),{media:h,baseStyles:S}=KR({navbar:n,header:a,footer:r,aside:i,padding:s,theme:m,mode:u});return v.jsx(D0,{media:h,styles:S,selector:d||p.cssVariablesSelector})}function FR({transitionDuration:n,disabled:a}){const[i,r]=x.useState(!0),s=x.useRef(-1),u=x.useRef(-1);return T0("resize",()=>{r(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>x.startTransition(()=>{r(!1)}),200)}),ol(()=>{r(!0),clearTimeout(u.current),u.current=window.setTimeout(()=>x.startTransition(()=>{r(!1)}),n||0)},[a,n]),i}const WR={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:kt("app"),mode:"fixed"},i1=(n,{transitionDuration:a,transitionTimingFunction:i})=>({root:{"--app-shell-transition-duration":`${a}ms`,"--app-shell-transition-timing-function":i}}),fn=me(n=>{const a=se("AppShell",WR,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,navbar:p,withBorder:h,padding:S,transitionDuration:g,transitionTimingFunction:y,header:w,zIndex:C,layout:R,disabled:N,aside:A,footer:T,offsetScrollbars:_=!0,mode:z,mod:L,attributes:$,id:U,...X}=a,ae=xe({name:"AppShell",classes:xa,props:a,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:$,vars:m,varsResolver:i1}),oe=FR({disabled:N,transitionDuration:g}),le=Yl(U);return v.jsxs(XR,{value:{getStyles:ae,withBorder:h,zIndex:C,disabled:N,offsetScrollbars:_,mode:z},children:[v.jsx(JR,{navbar:p,header:w,aside:A,footer:T,padding:S,mode:z,selector:z==="static"?`#${le}`:void 0}),v.jsx(ce,{...ae("root"),id:le,mod:[{resizing:oe,layout:R,disabled:N,mode:z},L],...X})]})});fn.classes=xa;fn.varsResolver=i1;fn.displayName="@mantine/core/AppShell";fn.Navbar=Jm;fn.Header=Zm;fn.Main=Km;fn.Aside=Gm;fn.Footer=Qm;fn.Section=Fm;function s1(n){return typeof n=="string"?{value:n,label:n}:typeof n=="object"&&"value"in n&&!("label"in n)?{value:n.value,label:`${n.value}`,disabled:n.disabled}:typeof n=="object"&&"group"in n?{group:n.group,items:n.items.map(a=>s1(a))}:typeof n=="number"||typeof n=="bigint"||typeof n=="boolean"?{value:n,label:`${n}`}:n}function PR(n){return n?n.map(a=>s1(a)):[]}function c1(n){return n.reduce((a,i)=>"group"in i?{...a,...c1(i.items)}:(a[`${i.value}`]=i,a),{})}var Yt={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const IR={error:null},u1=(n,{size:a,color:i})=>({chevron:{"--combobox-chevron-size":Le(a,"combobox-chevron-size"),"--combobox-chevron-color":i?An(i,n):void 0}}),Mc=me(n=>{const a=se("ComboboxChevron",IR,n),{size:i,error:r,style:s,className:u,classNames:d,styles:m,unstyled:p,vars:h,attributes:S,mod:g,...y}=a,w=xe({name:"ComboboxChevron",classes:Yt,props:a,style:s,className:u,classNames:d,styles:m,unstyled:p,vars:h,varsResolver:u1,attributes:S,rootSelector:"chevron"});return v.jsx(ce,{component:"svg",...y,...w("chevron"),size:i,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},g],children:v.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});Mc.classes=Yt;Mc.varsResolver=u1;Mc.displayName="@mantine/core/ComboboxChevron";const[e3,mn]=sl("Combobox component was not found in tree");function f1({onMouseDown:n,onClick:a,onClear:i,...r}){return v.jsx(St.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:s=>{s.preventDefault(),n==null||n(s)},onClick:s=>{i(),a==null||a(s)}})}f1.displayName="@mantine/core/ComboboxClearButton";const Wm=me(n=>{const{classNames:a,styles:i,className:r,style:s,hidden:u,...d}=se("ComboboxDropdown",null,n),m=mn();return v.jsx(Pt.Dropdown,{...d,role:"presentation","data-hidden":u||void 0,"data-floating-height":m.floatingHeight||void 0,...m.getStyles("dropdown",{className:r,style:s,classNames:a,styles:i})})});Wm.classes=Yt;Wm.displayName="@mantine/core/ComboboxDropdown";const t3={refProp:"ref"},d1=me(n=>{const{children:a,refProp:i,ref:r}=se("ComboboxDropdownTarget",t3,n);if(mn(),!b0(a))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return v.jsx(Pt.Target,{ref:r,refProp:i,children:a})});d1.displayName="@mantine/core/ComboboxDropdownTarget";const Pm=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("ComboboxEmpty",null,n);return v.jsx(ce,{...mn().getStyles("empty",{className:i,classNames:a,styles:s,style:r}),...d})});Pm.classes=Yt;Pm.displayName="@mantine/core/ComboboxEmpty";function Im({onKeyDown:n,onClick:a,withKeyboardNavigation:i,withAriaAttributes:r,withExpandedAttribute:s,targetType:u,autoComplete:d}){const m=mn(),[p,h]=x.useState(null),S=w=>{if(n==null||n(w),!m.readOnly&&i){if(w.nativeEvent.isComposing)return;if(w.nativeEvent.code==="ArrowDown"&&(w.preventDefault(),m.store.dropdownOpened?h(m.store.selectNextOption()):(m.store.openDropdown("keyboard"),h(m.store.selectActiveOption()),m.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),w.nativeEvent.code==="ArrowUp"&&(w.preventDefault(),m.store.dropdownOpened?h(m.store.selectPreviousOption()):(m.store.openDropdown("keyboard"),h(m.store.selectActiveOption()),m.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),w.nativeEvent.code==="Enter"||w.nativeEvent.code==="NumpadEnter"){if(w.nativeEvent.keyCode===229)return;const C=m.store.getSelectedOptionIndex();m.store.dropdownOpened&&C!==-1?(w.preventDefault(),m.store.clickSelectedOption()):u==="button"&&(w.preventDefault(),m.store.openDropdown("keyboard"))}w.key==="Escape"&&m.store.closeDropdown("keyboard"),w.nativeEvent.code==="Space"&&u==="button"&&(w.preventDefault(),m.store.toggleDropdown("keyboard"))}};return{...r?{...s?{role:"combobox"}:{},"aria-haspopup":"listbox","aria-expanded":s?!!(m.store.listId&&m.store.dropdownOpened):void 0,"aria-controls":m.store.dropdownOpened&&m.store.listId?m.store.listId:void 0,"aria-activedescendant":m.store.dropdownOpened&&p||void 0,autoComplete:d,"data-expanded":m.store.dropdownOpened||void 0,"data-mantine-stop-propagation":m.store.dropdownOpened||void 0}:{},onKeyDown:S,onClick:w=>{u==="button"&&w.currentTarget.focus(),a==null||a(w)}}}const n3={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},m1=me(n=>{const{children:a,refProp:i,withKeyboardNavigation:r,withAriaAttributes:s,withExpandedAttribute:u,targetType:d,autoComplete:m,ref:p,...h}=se("ComboboxEventsTarget",n3,n),S=Wa(a);if(!S)throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const g=mn();return x.cloneElement(S,{...Im({targetType:d,withAriaAttributes:s,withKeyboardNavigation:r,withExpandedAttribute:u,onKeyDown:S.props.onKeyDown,onClick:S.props.onClick,autoComplete:m}),...h,[i]:Xt(p,g.store.targetRef,gc(S))})});m1.displayName="@mantine/core/ComboboxEventsTarget";const ep=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("ComboboxFooter",null,n);return v.jsx(ce,{...mn().getStyles("footer",{className:i,classNames:a,style:r,styles:s}),...d,onMouseDown:m=>{m.preventDefault()}})});ep.classes=Yt;ep.displayName="@mantine/core/ComboboxFooter";const tp=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,children:d,label:m,id:p,...h}=se("ComboboxGroup",null,n),S=mn(),g=Yl(p);return v.jsxs(ce,{role:"group","aria-labelledby":m?g:void 0,...S.getStyles("group",{className:i,classNames:a,style:r,styles:s}),...h,children:[m&&v.jsx("div",{id:g,...S.getStyles("groupLabel",{classNames:a,styles:s}),children:m}),d]})});tp.classes=Yt;tp.displayName="@mantine/core/ComboboxGroup";const np=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("ComboboxHeader",null,n);return v.jsx(ce,{...mn().getStyles("header",{className:i,classNames:a,style:r,styles:s}),...d,onMouseDown:m=>{m.preventDefault()}})});np.classes=Yt;np.displayName="@mantine/core/ComboboxHeader";function p1({value:n,valuesDivider:a=",",...i}){return v.jsx("input",{type:"hidden",value:Array.isArray(n)?n.join(a):n?`${n}`:"",...i})}p1.displayName="@mantine/core/ComboboxHiddenInput";const lp=me(n=>{const a=se("ComboboxOption",null,n),{classNames:i,className:r,style:s,styles:u,vars:d,onClick:m,id:p,active:h,onMouseDown:S,onMouseOver:g,disabled:y,selected:w,mod:C,...R}=a,N=mn(),A=x.useId(),T=p||A;return v.jsx(ce,{...N.getStyles("option",{className:r,classNames:i,styles:u,style:s}),...R,id:T,mod:["combobox-option",{"combobox-active":h,"combobox-disabled":y,"combobox-selected":w},C],role:"option",onClick:_=>{var z;y?_.preventDefault():((z=N.onOptionSubmit)==null||z.call(N,a.value,a),m==null||m(_))},onMouseDown:_=>{_.preventDefault(),S==null||S(_)},onMouseOver:_=>{N.resetSelectionOnOptionHover&&N.store.resetSelectedOption(),g==null||g(_)}})});lp.classes=Yt;lp.displayName="@mantine/core/ComboboxOption";const ap=me(n=>{const{classNames:a,className:i,style:r,styles:s,id:u,onMouseDown:d,labelledBy:m,...p}=se("ComboboxOptions",null,n),h=mn(),S=Yl(u);return x.useEffect(()=>{h.store.setListId(S)},[S]),v.jsx(ce,{...h.getStyles("options",{className:i,style:r,classNames:a,styles:s}),...p,id:S,role:"listbox","aria-labelledby":m,onMouseDown:g=>{g.preventDefault(),d==null||d(g)}})});ap.classes=Yt;ap.displayName="@mantine/core/ComboboxOptions";const l3={withAriaAttributes:!0,withKeyboardNavigation:!0},op=me(n=>{const{classNames:a,styles:i,unstyled:r,vars:s,withAriaAttributes:u,onKeyDown:d,onClick:m,withKeyboardNavigation:p,size:h,ref:S,...g}=se("ComboboxSearch",l3,n),y=mn(),w=y.getStyles("search"),C=Im({targetType:"input",withAriaAttributes:u,withKeyboardNavigation:p,withExpandedAttribute:!1,onKeyDown:d,onClick:m,autoComplete:"off"});return v.jsx(St,{ref:Xt(S,y.store.searchRef),classNames:[{input:w.className},a],styles:[{input:w.style},i],size:h||y.size,...C,...g,__staticSelector:"Combobox"})});op.classes=Yt;op.displayName="@mantine/core/ComboboxSearch";const a3={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},h1=me(n=>{const{children:a,refProp:i,withKeyboardNavigation:r,withAriaAttributes:s,withExpandedAttribute:u,targetType:d,autoComplete:m,ref:p,...h}=se("ComboboxTarget",a3,n),S=Wa(a);if(!S)throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const g=mn(),y=x.cloneElement(S,{...Im({targetType:d,withAriaAttributes:s,withKeyboardNavigation:r,withExpandedAttribute:u,onKeyDown:S.props.onKeyDown,onClick:S.props.onClick,autoComplete:m}),...h});return v.jsx(Pt.Target,{refProp:i,ref:Xt(p,g.store.targetRef),children:y})});h1.displayName="@mantine/core/ComboboxTarget";function o3(n,a,i){for(let r=n-1;r>=0;r-=1)if(!a[r].hasAttribute("data-combobox-disabled"))return r;if(i){for(let r=a.length-1;r>-1;r-=1)if(!a[r].hasAttribute("data-combobox-disabled"))return r}return n}function r3(n,a,i){for(let r=n+1;r{m||(p(!0),s==null||s(O))},[p,s,m]),A=x.useCallback((O="unknown")=>{m&&(p(!1),r==null||r(O))},[p,r,m]),T=x.useCallback((O="unknown")=>{m?A(O):N(O)},[A,N,m]),_=x.useCallback(()=>{const O=Ml(y.current),B=Is(`#${h.current} [data-combobox-selected]`,O);B==null||B.removeAttribute("data-combobox-selected"),B==null||B.removeAttribute("aria-selected")},[]),z=x.useCallback(O=>{const B=Ml(y.current),H=Is(`#${h.current}`,B),J=H?zl("[data-combobox-option]",H):null;if(!J)return null;const te=O>=J.length?0:O<0?J.length-1:O;return S.current=te,J!=null&&J[te]&&!J[te].hasAttribute("data-combobox-disabled")?(_(),J[te].setAttribute("data-combobox-selected","true"),J[te].setAttribute("aria-selected","true"),J[te].scrollIntoView({block:"nearest",behavior:d}),J[te].id):null},[d,_]),L=x.useCallback(()=>{const O=Ml(y.current),B=Is(`#${h.current} [data-combobox-active]`,O);return z(B?zl(`#${h.current} [data-combobox-option]`,O).findIndex(H=>H===B):0)},[z]),$=x.useCallback(()=>{const O=Ml(y.current),B=zl(`#${h.current} [data-combobox-option]`,O);return z(r3(S.current,B,u))},[z,u]),U=x.useCallback(()=>{const O=Ml(y.current),B=zl(`#${h.current} [data-combobox-option]`,O);return z(o3(S.current,B,u))},[z,u]),X=x.useCallback(()=>{const O=Ml(y.current);return z(i3(zl(`#${h.current} [data-combobox-option]`,O)))},[z]),ae=x.useCallback((O="selected",B)=>{var H;if(typeof O=="number"){S.current=O;const J=Ml(y.current),te=zl(`#${h.current} [data-combobox-option]`,J);B!=null&&B.scrollIntoView&&((H=te[O])==null||H.scrollIntoView({block:"nearest",behavior:d}));return}R.current=window.setTimeout(()=>{var k;const J=Ml(y.current),te=zl(`#${h.current} [data-combobox-option]`,J),j=te.findIndex(F=>F.hasAttribute(`data-combobox-${O}`));S.current=j,B!=null&&B.scrollIntoView&&((k=te[j])==null||k.scrollIntoView({block:"nearest",behavior:d}))},0)},[]),oe=x.useCallback(()=>{S.current=-1,_()},[_]),le=x.useCallback(()=>{var B,H;const O=Ml(y.current);(H=(B=zl(`#${h.current} [data-combobox-option]`,O))==null?void 0:B[S.current])==null||H.click()},[]),ee=x.useCallback(O=>{h.current=O},[]),re=x.useCallback(()=>{w.current=window.setTimeout(()=>{var O;return(O=g.current)==null?void 0:O.focus()},0)},[]),K=x.useCallback(()=>{C.current=window.setTimeout(()=>{var O;return(O=y.current)==null?void 0:O.focus()},0)},[]),ie=x.useCallback(()=>S.current,[]);return x.useEffect(()=>()=>{window.clearTimeout(w.current),window.clearTimeout(C.current),window.clearTimeout(R.current)},[]),{dropdownOpened:m,openDropdown:N,closeDropdown:A,toggleDropdown:T,selectedOptionIndex:S.current,getSelectedOptionIndex:ie,selectOption:z,selectFirstOption:X,selectActiveOption:L,selectNextOption:$,selectPreviousOption:U,resetSelectedOption:oe,updateSelectedOptionIndex:ae,listId:h.current,setListId:ee,clickSelectedOption:le,searchRef:g,focusSearchInput:re,targetRef:y,focusTarget:K}}const s3={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},g1=(n,{size:a,dropdownPadding:i})=>({options:{"--combobox-option-fz":Lt(a),"--combobox-option-padding":Le(a,"combobox-option-padding")},dropdown:{"--combobox-padding":i===void 0?void 0:Z(i),"--combobox-option-fz":Lt(a),"--combobox-option-padding":Le(a,"combobox-option-padding")}}),Ve=n=>{const a=se("Combobox",s3,n),{classNames:i,styles:r,unstyled:s,children:u,store:d,vars:m,onOptionSubmit:p,onClose:h,size:S,dropdownPadding:g,resetSelectionOnOptionHover:y,__staticSelector:w,readOnly:C,attributes:R,floatingHeight:N,middlewares:A,...T}=a,_=N==="viewport"?{...A,flip:!1,size:{...typeof(A==null?void 0:A.size)=="object"?A.size:{},padding:typeof(A==null?void 0:A.size)=="object"&&A.size.padding!==void 0?A.size.padding:10,apply:({availableHeight:X,availableWidth:ae,elements:oe,...le})=>{oe.floating.style.setProperty("--combobox-floating-max-height",`${X}px`);const ee=A==null?void 0:A.size;typeof ee=="object"&&ee.apply?ee.apply({availableHeight:X,availableWidth:ae,elements:oe,...le}):ee&&Object.assign(oe.floating.style,{maxWidth:`${ae}px`,maxHeight:`${X}px`})}}}:A,z=v1(),L=d||z,$=xe({name:w||"Combobox",classes:Yt,props:a,classNames:i,styles:r,unstyled:s,attributes:R,vars:m,varsResolver:g1}),U=()=>{h==null||h(),L.closeDropdown()};return v.jsx(e3,{value:{getStyles:$,store:L,onOptionSubmit:p,size:S,resetSelectionOnOptionHover:y,readOnly:C,floatingHeight:N},children:v.jsx(Pt,{opened:L.dropdownOpened,...T,middlewares:_,onChange:X=>!X&&U(),withRoles:!1,unstyled:s,children:u})})},c3=n=>n;Ve.extend=c3;Ve.classes=Yt;Ve.varsResolver=g1;Ve.displayName="@mantine/core/Combobox";Ve.Target=h1;Ve.Dropdown=Wm;Ve.Options=ap;Ve.Option=lp;Ve.Search=op;Ve.Empty=Pm;Ve.Chevron=Mc;Ve.Footer=ep;Ve.Header=np;Ve.EventsTarget=m1;Ve.DropdownTarget=d1;Ve.Group=tp;Ve.ClearButton=f1;Ve.HiddenInput=p1;function u3({children:n,role:a}){const i=x.use(sr);return i?v.jsx("div",{role:a,"aria-labelledby":i.labelId,"aria-describedby":i.describedBy,children:n}):v.jsx(v.Fragment,{children:n})}function f3({size:n,style:a,...i}){return v.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n!==void 0?{width:Z(n),height:Z(n),...a}:a,"aria-hidden":!0,...i,children:v.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"})})}var y1={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const d3=y1;function b1({__staticSelector:n,__stylesApiProps:a,className:i,classNames:r,styles:s,unstyled:u,children:d,label:m,description:p,id:h,disabled:S,error:g,size:y,labelPosition:w="left",bodyElement:C="div",labelElement:R="label",variant:N,style:A,vars:T,mod:_,attributes:z,...L}){const $=xe({name:n,props:a,className:i,style:A,classes:y1,classNames:r,styles:s,unstyled:u,attributes:z}),U=p?`${h}-description`:void 0,X=g&&typeof g!="boolean"?`${h}-error`:void 0;return v.jsx(ce,{...$("root"),__vars:{"--label-fz":Lt(y),"--label-lh":Le(y,"label-lh")},mod:[{"label-position":w},_],variant:N,size:y,...L,children:v.jsxs(ce,{component:C,htmlFor:C==="label"?h:void 0,...$("body"),children:[d,v.jsxs("div",{...$("labelWrapper"),"data-disabled":S||void 0,children:[m&&v.jsx(ce,{component:R,htmlFor:R==="label"?h:void 0,...$("label"),"data-disabled":S||void 0,children:m}),p&&v.jsx(St.Description,{id:U,size:y,__inheritStyles:!1,...$("description"),children:p}),g&&typeof g!="boolean"&&v.jsx(St.Error,{id:X,size:y,__inheritStyles:!1,...$("error"),children:g})]})]})})}b1.displayName="@mantine/core/InlineInput";function bi(n){return"group"in n}function S1({options:n,search:a,limit:i}){const r=a.trim().toLowerCase(),s=[];for(let u=0;u0)return!1;return!0}function x1(n,a=new Set){if(Array.isArray(n))for(const i of n)if(bi(i))x1(i.items,a);else{if(typeof i.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(a.has(i.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${i.value}" was provided more than once`);a.add(i.value)}}function p3(n,a){return Array.isArray(n)?n.includes(a):n===a}function w1({data:n,withCheckIcon:a,withAlignedLabels:i,value:r,checkIconPosition:s,unstyled:u,renderOption:d}){if(!bi(n)){const p=p3(r,n.value),h=a&&(p?v.jsx(f3,{className:Yt.optionsDropdownCheckIcon}):i?v.jsx("div",{className:Yt.optionsDropdownCheckPlaceholder}):null),S=v.jsxs(v.Fragment,{children:[s==="left"&&h,v.jsx("span",{children:n.label}),s==="right"&&h]});return v.jsx(Ve.Option,{value:n.value,disabled:n.disabled,className:bt({[Yt.optionsDropdownOption]:!u}),"data-reverse":s==="right"||void 0,"data-checked":p||void 0,"aria-selected":p,active:p,children:typeof d=="function"?d({option:n,checked:p}):S})}const m=n.items.map(p=>v.jsx(w1,{data:p,value:r,unstyled:u,withCheckIcon:a,withAlignedLabels:i,checkIconPosition:s,renderOption:d},`${p.value}`));return v.jsx(Ve.Group,{label:n.group,children:m})}function h3({data:n,hidden:a,hiddenWhenEmpty:i,filter:r,search:s,limit:u,maxDropdownHeight:d,floatingHeight:m,withScrollArea:p=!0,filterOptions:h=!0,withCheckIcon:S=!1,withAlignedLabels:g=!1,value:y,checkIconPosition:w,nothingFoundMessage:C,unstyled:R,labelId:N,renderOption:A,scrollAreaProps:T,"aria-label":_}){const z=mn();x1(n);const L=typeof s=="string"?(r||S1)({options:n,search:h?s:"",limit:u??1/0}):n,$=m3(L),U=L.map(X=>v.jsx(w1,{data:X,withCheckIcon:S,withAlignedLabels:g,value:y,checkIconPosition:w,unstyled:R,renderOption:A},bi(X)?X.group:`${X.value}`));return v.jsx(Ve.Dropdown,{hidden:a||i&&$,"data-composed":!0,children:v.jsxs(Ve.Options,{labelledBy:N,"aria-label":_,children:[p?v.jsx(fl.Autosize,{mah:(m??z.floatingHeight)==="viewport"?"var(--combobox-floating-options-max-height)":d??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...T,children:U}):U,$&&C&&v.jsx(Ve.Empty,{children:C})]})})}var E1={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const C1=(n,{radius:a,color:i,gradient:r,variant:s,size:u,autoContrast:d,circle:m})=>{const p=n.variantColorResolver({color:i||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:d});return{root:{"--badge-height":Le(u,"badge-height"),"--badge-padding-x":Le(u,"badge-padding-x"),"--badge-fz":Le(u,"badge-fz"),"--badge-radius":m||a===void 0?void 0:Ot(a),"--badge-bg":i||s?p.background:void 0,"--badge-color":i||s?p.color:void 0,"--badge-bd":i||s?p.border:void 0,"--badge-dot-color":s==="dot"?An(i,n):void 0}}},vt=Vt(n=>{const a=se("Badge",null,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,radius:p,color:h,gradient:S,leftSection:g,rightSection:y,children:w,variant:C,fullWidth:R,autoContrast:N,circle:A,mod:T,attributes:_,...z}=a,L=xe({name:"Badge",props:a,classes:E1,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:_,vars:m,varsResolver:C1});return v.jsxs(ce,{variant:C,mod:[{block:R,circle:A,"with-right-section":!!y,"with-left-section":!!g},T],...L("root",{variant:C}),...z,children:[g&&v.jsx("span",{...L("section"),"data-position":"left",children:g}),v.jsx("span",{...L("label"),children:w}),y&&v.jsx("span",{...L("section"),"data-position":"right",children:y})]})});vt.classes=E1;vt.varsResolver=C1;vt.displayName="@mantine/core/Badge";var fr={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const f0={orientation:"horizontal"},T1=(n,{borderWidth:a})=>({group:{"--button-border-width":Z(a)}}),zc=me(n=>{const a=se("ButtonGroup",f0,n),{className:i,style:r,classNames:s,styles:u,unstyled:d,orientation:m,vars:p,borderWidth:h,mod:S,attributes:g,...y}=se("ButtonGroup",f0,n);return v.jsx(ce,{...xe({name:"ButtonGroup",props:a,classes:fr,className:i,style:r,classNames:s,styles:u,unstyled:d,attributes:g,vars:p,varsResolver:T1,rootSelector:"group"})("group"),mod:[{"data-orientation":m},S],role:"group",...y})});zc.classes=fr;zc.varsResolver=T1;zc.displayName="@mantine/core/ButtonGroup";const R1=(n,{radius:a,color:i,gradient:r,variant:s,autoContrast:u,size:d})=>{const m=n.variantColorResolver({color:i||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:u});return{groupSection:{"--section-height":Le(d,"section-height"),"--section-padding-x":Le(d,"section-padding-x"),"--section-fz":d!=null&&d.includes("compact")?Lt(d.replace("compact-","")):Lt(d),"--section-radius":a===void 0?void 0:Ot(a),"--section-bg":i||s?m.background:void 0,"--section-color":m.color,"--section-bd":i||s?m.border:void 0}}},Dc=me(n=>{const a=se("ButtonGroupSection",null,n),{className:i,style:r,classNames:s,styles:u,unstyled:d,vars:m,gradient:p,radius:h,autoContrast:S,attributes:g,...y}=a;return v.jsx(ce,{...xe({name:"ButtonGroupSection",props:a,classes:fr,className:i,style:r,classNames:s,styles:u,unstyled:d,attributes:g,vars:m,varsResolver:R1,rootSelector:"groupSection"})("groupSection"),...y})});Dc.classes=fr;Dc.varsResolver=R1;Dc.displayName="@mantine/core/ButtonGroupSection";const v3={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Z(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},_1=(n,{radius:a,color:i,gradient:r,variant:s,size:u,justify:d,autoContrast:m})=>{const p=n.variantColorResolver({color:i||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:m});return{root:{"--button-justify":d,"--button-height":Le(u,"button-height"),"--button-padding-x":Le(u,"button-padding-x"),"--button-fz":u!=null&&u.includes("compact")?Lt(u.replace("compact-","")):Lt(u),"--button-radius":a===void 0?void 0:Ot(a),"--button-bg":i||s?p.background:void 0,"--button-hover":i||s?p.hover:void 0,"--button-color":p.color,"--button-bd":i||s?p.border:void 0,"--button-hover-color":i||s?p.hoverColor:void 0}}},en=Vt(n=>{const a=se("Button",null,n),{style:i,vars:r,className:s,color:u,disabled:d,children:m,leftSection:p,rightSection:h,fullWidth:S,variant:g,radius:y,loading:w,loaderProps:C,gradient:R,classNames:N,styles:A,unstyled:T,"data-disabled":_,autoContrast:z,mod:L,attributes:$,...U}=a,X=xe({name:"Button",props:a,classes:fr,className:s,style:i,classNames:N,styles:A,unstyled:T,attributes:$,vars:r,varsResolver:_1}),ae=!!p,oe=!!h;return v.jsxs(or,{...X("root",{active:!d&&!w&&!_}),unstyled:T,variant:g,disabled:d||w,mod:[{disabled:d||_,loading:w,block:S,"with-left-section":ae,"with-right-section":oe},L],...U,children:[typeof w=="boolean"&&v.jsx($l,{mounted:w,transition:v3,duration:150,children:le=>v.jsx(ce,{component:"span",...X("loader",{style:le}),"aria-hidden":!0,children:v.jsx(dn,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...C})})}),v.jsxs("span",{...X("inner"),children:[p&&v.jsx(ce,{component:"span",...X("section"),mod:{position:"left"},children:p}),v.jsx(ce,{component:"span",mod:{loading:w},...X("label"),children:m}),h&&v.jsx(ce,{component:"span",...X("section"),mod:{position:"right"},children:h})]})]})});en.classes=fr;en.varsResolver=_1;en.displayName="@mantine/core/Button";en.Group=zc;en.GroupSection=Dc;const[g3,y3]=sl("Card component was not found in tree");var rp={root:"m_e615b15f",section:"m_599a2148"};const Bc=Vt(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,withBorder:d,inheritPadding:m,mod:p,...h}=se("CardSection",null,n),S=y3();return v.jsx(ce,{mod:[{"with-border":d,"inherit-padding":m},p],...S.getStyles("section",{className:i,style:r,styles:s,classNames:a}),...h})});Bc.classes=rp;Bc.displayName="@mantine/core/CardSection";const A1=(n,{padding:a})=>({root:{"--card-padding":Ll(a)}}),b3={orientation:"vertical"},Pa=Vt(n=>{const a=se("Card",b3,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,children:p,padding:h,attributes:S,orientation:g,...y}=a,w=xe({name:"Card",props:a,classes:rp,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:S,vars:m,varsResolver:A1}),C=x.Children.toArray(p),R=C.map((N,A)=>{var T;return typeof N=="object"&&N&&"type"in N&&(N.type===Bc||((T=N.type)==null?void 0:T.displayName)==="@mantine/core/CardSection")?x.cloneElement(N,{"data-orientation":g,"data-first-section":A===0||void 0,"data-last-section":A===C.length-1||void 0}):N});return v.jsx(g3,{value:{getStyles:w},children:v.jsx(wi,{unstyled:d,"data-orientation":g,...w("root"),...y,children:R})})});Pa.classes=rp;Pa.varsResolver=A1;Pa.displayName="@mantine/core/Card";Pa.Section=Bc;var j1={root:"m_4451eb3a"};const mc=Vt(n=>{const a=se("Center",null,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,inline:p,mod:h,attributes:S,...g}=a,y=xe({name:"Center",props:a,classes:j1,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:S,vars:m});return v.jsx(ce,{mod:[{inline:p},h],...y("root"),...g})});mc.classes=j1;mc.displayName="@mantine/core/Center";const[S3,dr]=sl("Drawer component was not found in tree");var Xl={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const Hc=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("DrawerBody",null,n);return v.jsx(Um,{...dr().getStyles("body",{classNames:a,style:r,styles:s,className:i}),...d})});Hc.classes=Xl;Hc.displayName="@mantine/core/DrawerBody";const Lc=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("DrawerCloseButton",null,n);return v.jsx($m,{...dr().getStyles("close",{classNames:a,style:r,styles:s,className:i}),...d})});Lc.classes=Xl;Lc.displayName="@mantine/core/DrawerCloseButton";const Uc=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,children:d,radius:m,__hidden:p,...h}=se("DrawerContent",null,n),S=dr(),g=S.scrollAreaComponent||Fb;return v.jsx(Ym,{...S.getStyles("content",{className:i,style:r,styles:s,classNames:a}),innerProps:S.getStyles("inner",{className:i,style:r,styles:s,classNames:a}),...h,radius:m||S.radius||0,"data-hidden":p||void 0,children:v.jsx(g,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:d})})});Uc.classes=Xl;Uc.displayName="@mantine/core/DrawerContent";const $c=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("DrawerHeader",null,n);return v.jsx(km,{...dr().getStyles("header",{classNames:a,style:r,styles:s,className:i}),...d})});$c.classes=Xl;$c.displayName="@mantine/core/DrawerHeader";const Yc=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("DrawerOverlay",null,n);return v.jsx(Xm,{...dr().getStyles("overlay",{classNames:a,style:r,styles:s,className:i}),...d})});Yc.classes=Xl;Yc.displayName="@mantine/core/DrawerOverlay";function x3(n){switch(n){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function w3(n){if(n==="top"||n==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const E3={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},C3={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},T3={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:kt("modal"),position:"left"},N1=(n,{position:a,size:i,offset:r})=>({root:{"--drawer-size":Le(i,"drawer-size"),"--drawer-flex":w3(a),"--drawer-height":a==="left"||a==="right"?void 0:"var(--drawer-size)","--drawer-align":x3(a),"--drawer-justify":a==="right"?"flex-end":void 0,"--drawer-offset":Z(r)}}),Ni=me(n=>{const a=se("DrawerRoot",T3,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,scrollAreaComponent:p,position:h,transitionProps:S,radius:g,attributes:y,...w}=a,{dir:C}=nr(),R=xe({name:"Drawer",classes:Xl,props:a,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:y,vars:m,varsResolver:N1}),N=(C==="rtl"?C3:E3)[h];return v.jsx(S3,{value:{scrollAreaComponent:p,getStyles:R,radius:g},children:v.jsx(Lm,{...R("root"),transitionProps:{transition:N,...S},"data-offset-scrollbars":p===fl.Autosize||void 0,unstyled:d,...w})})});Ni.classes=Xl;Ni.varsResolver=N1;Ni.displayName="@mantine/core/DrawerRoot";const O1=x.createContext(null);function M1({children:n}){const[a,i]=x.useState([]),[r,s]=x.useState(kt("modal"));return v.jsx(O1,{value:{stack:a,addModal:(u,d)=>{i(m=>[...new Set([...m,u])]),s(m=>typeof d=="number"&&typeof m=="number"?Math.max(m,d):m)},removeModal:u=>i(d=>d.filter(m=>m!==u)),getZIndex:u=>`calc(${r} + ${a.indexOf(u)} + 1)`,currentId:a[a.length-1],maxZIndex:r},children:n})}M1.displayName="@mantine/core/DrawerStack";const kc=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("DrawerTitle",null,n);return v.jsx(Vm,{...dr().getStyles("title",{classNames:a,style:r,styles:s,className:i}),...d})});kc.classes=Xl;kc.displayName="@mantine/core/DrawerTitle";const R3={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:kt("modal"),withOverlay:!0,withCloseButton:!0},Qn=me(n=>{const{title:a,withOverlay:i,overlayProps:r,withCloseButton:s,closeButtonProps:u,children:d,opened:m,stackId:p,zIndex:h,...S}=se("Drawer",R3,n),g=x.use(O1),y=!!a||s,w=g&&p?{closeOnEscape:g.currentId===p,trapFocus:g.currentId===p,zIndex:g.getZIndex(p)}:{},C=i===!1?!1:p&&g?g.currentId===p:m;return x.useEffect(()=>{g&&p&&(m?g.addModal(p,h||kt("modal")):g.removeModal(p))},[m,p,h]),v.jsxs(Ni,{opened:m,zIndex:g&&p?g.getZIndex(p):h,...S,...w,children:[i&&v.jsx(Yc,{visible:C,transitionProps:g&&p?{duration:0}:void 0,...r}),v.jsxs(Uc,{__hidden:g&&p&&m?p!==g.currentId:!1,children:[y&&v.jsxs($c,{children:[a&&v.jsx(kc,{children:a}),s&&v.jsx(Lc,{...u})]}),v.jsx(Hc,{children:d})]})]})});Qn.classes=Xl;Qn.displayName="@mantine/core/Drawer";Qn.Root=Ni;Qn.Overlay=Yc;Qn.Content=Uc;Qn.Body=Hc;Qn.Header=$c;Qn.Title=kc;Qn.CloseButton=Lc;Qn.Stack=M1;function _3(n="top-end",a=0){const i={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=typeof a=="number"?a:a.x,s=typeof a=="number"?a:a.y,u=Z(r),d=Z(s),[m,p]=n.split("-");return m==="top"&&(i["--indicator-top"]=d,i["--indicator-translate-y"]="-50%"),m==="middle"&&(i["--indicator-top"]="50%",i["--indicator-translate-y"]="-50%"),m==="bottom"&&(i["--indicator-bottom"]=d,i["--indicator-translate-y"]="50%"),p==="start"&&(i["--indicator-left"]=u,i["--indicator-translate-x"]="-50%"),p==="center"&&(i["--indicator-left"]="50%",i["--indicator-translate-x"]="-50%"),p==="end"&&(i["--indicator-right"]=u,i["--indicator-translate-x"]="50%"),i}var z1={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const A3={position:"top-end",offset:0,showZero:!0},D1=(n,{color:a,position:i,offset:r,size:s,radius:u,zIndex:d,autoContrast:m})=>({root:{"--indicator-color":a?An(a,n):void 0,"--indicator-text-color":T2(m,n)?_0({color:a,theme:n,autoContrast:m}):void 0,"--indicator-size":Z(s),"--indicator-radius":u===void 0?void 0:Ot(u),"--indicator-z-index":d==null?void 0:d.toString(),..._3(i,r)}}),Xc=me(n=>{const a=se("Indicator",A3,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,children:p,position:h,offset:S,inline:g,label:y,radius:w,color:C,withBorder:R,disabled:N,processing:A,zIndex:T,autoContrast:_,maxValue:z,showZero:L,mod:$,attributes:U,...X}=a,ae=xe({name:"Indicator",classes:z1,props:a,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:U,vars:m,varsResolver:D1}),oe=!L&&(y===0||y==="0"),le=z!==void 0&&typeof y=="number"&&y>z?`${z}+`:y;return v.jsxs(ce,{...ae("root"),mod:[{inline:g},$],...X,children:[!N&&!oe&&v.jsx(ce,{mod:{"with-label":!!y,"with-border":R,processing:A},...ae("indicator"),children:le}),p]})});Xc.classes=z1;Xc.varsResolver=D1;Xc.displayName="@mantine/core/Indicator";const[j3,mr]=sl("Modal component was not found in tree");var Vl={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const Vc=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("ModalBody",null,n);return v.jsx(Um,{...mr().getStyles("body",{classNames:a,style:r,styles:s,className:i}),...d})});Vc.classes=Vl;Vc.displayName="@mantine/core/ModalBody";const qc=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("ModalCloseButton",null,n);return v.jsx($m,{...mr().getStyles("close",{classNames:a,style:r,styles:s,className:i}),...d})});qc.classes=Vl;qc.displayName="@mantine/core/ModalCloseButton";const Gc=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,children:d,__hidden:m,...p}=se("ModalContent",null,n),h=mr(),S=h.scrollAreaComponent||Fb;return v.jsx(Ym,{...h.getStyles("content",{className:i,style:r,styles:s,classNames:a}),innerProps:h.getStyles("inner",{className:i,style:r,styles:s,classNames:a}),"data-full-screen":h.fullScreen||void 0,"data-modal-content":!0,"data-hidden":m||void 0,...p,children:v.jsx(S,{style:{maxHeight:h.fullScreen?"100dvh":`calc(100dvh - (${Z(h.yOffset)} * 2))`},children:d})})});Gc.classes=Vl;Gc.displayName="@mantine/core/ModalContent";const Qc=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("ModalHeader",null,n);return v.jsx(km,{...mr().getStyles("header",{classNames:a,style:r,styles:s,className:i}),...d})});Qc.classes=Vl;Qc.displayName="@mantine/core/ModalHeader";const Zc=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("ModalOverlay",null,n);return v.jsx(Xm,{...mr().getStyles("overlay",{classNames:a,style:r,styles:s,className:i}),...d})});Zc.classes=Vl;Zc.displayName="@mantine/core/ModalOverlay";const N3={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:kt("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},B1=(n,{radius:a,size:i,yOffset:r,xOffset:s})=>({root:{"--modal-radius":a===void 0?void 0:Ot(a),"--modal-size":Le(i,"modal-size"),"--modal-y-offset":Z(r),"--modal-x-offset":Z(s)}}),Oi=me(n=>{const a=se("ModalRoot",N3,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,yOffset:p,scrollAreaComponent:h,radius:S,fullScreen:g,centered:y,xOffset:w,__staticSelector:C,attributes:R,...N}=a,A=xe({name:C,classes:Vl,props:a,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:R,vars:m,varsResolver:B1});return v.jsx(j3,{value:{yOffset:p,scrollAreaComponent:h,getStyles:A,fullScreen:g},children:v.jsx(Lm,{...A("root"),"data-full-screen":g||void 0,"data-centered":y||void 0,"data-offset-scrollbars":h===fl.Autosize||void 0,unstyled:d,...N})})});Oi.classes=Vl;Oi.varsResolver=B1;Oi.displayName="@mantine/core/ModalRoot";const H1=x.createContext(null);function L1({children:n}){const[a,i]=x.useState([]),[r,s]=x.useState(kt("modal"));return v.jsx(H1,{value:{stack:a,addModal:(u,d)=>{i(m=>[...new Set([...m,u])]),s(m=>typeof d=="number"&&typeof m=="number"?Math.max(m,d):m)},removeModal:u=>i(d=>d.filter(m=>m!==u)),getZIndex:u=>`calc(${r} + ${a.indexOf(u)} + 1)`,currentId:a[a.length-1],maxZIndex:r},children:n})}L1.displayName="@mantine/core/ModalStack";const Kc=me(n=>{const{classNames:a,className:i,style:r,styles:s,vars:u,...d}=se("ModalTitle",null,n);return v.jsx(Vm,{...mr().getStyles("title",{classNames:a,style:r,styles:s,className:i}),...d})});Kc.classes=Vl;Kc.displayName="@mantine/core/ModalTitle";const O3={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:kt("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},pn=me(n=>{const{title:a,withOverlay:i,overlayProps:r,withCloseButton:s,closeButtonProps:u,children:d,radius:m,opened:p,stackId:h,zIndex:S,...g}=se("Modal",O3,n),y=x.use(H1),w=!!a||s,C=y&&h?{closeOnEscape:y.currentId===h,trapFocus:y.currentId===h,zIndex:y.getZIndex(h)}:{},R=i===!1?!1:h&&y?y.currentId===h:p;return x.useEffect(()=>{y&&h&&(p?y.addModal(h,S||kt("modal")):y.removeModal(h))},[p,h,S]),v.jsxs(Oi,{radius:m,opened:p,zIndex:y&&h?y.getZIndex(h):S,...g,...C,children:[i&&v.jsx(Zc,{visible:R,transitionProps:y&&h?{duration:0}:void 0,...r}),v.jsxs(Gc,{radius:m,__hidden:y&&h&&p?h!==y.currentId:!1,children:[w&&v.jsxs(Qc,{children:[a&&v.jsx(Kc,{children:a}),s&&v.jsx(qc,{...u})]}),v.jsx(Vc,{children:d})]})]})});pn.classes=Vl;pn.displayName="@mantine/core/Modal";pn.Root=Oi;pn.Overlay=Zc;pn.Content=Gc;pn.Body=Vc;pn.Header=Qc;pn.Title=Kc;pn.CloseButton=qc;pn.Stack=L1;var U1={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const $1=(n,{variant:a,color:i,childrenOffset:r,autoContrast:s})=>{const u=n.variantColorResolver({color:i||n.primaryColor,theme:n,variant:a||"light",autoContrast:s});return{root:{"--nl-bg":i||a?u.background:void 0,"--nl-hover":i||a?u.hover:void 0,"--nl-color":i||a?u.color:void 0},children:{"--nl-offset":Ll(r)}}},Jc=Vt(n=>{const a=se("NavLink",null,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,opened:p,defaultOpened:h,onChange:S,children:g,active:y,disabled:w,leftSection:C,rightSection:R,label:N,description:A,disableRightSectionRotation:T,noWrap:_,childrenOffset:z,autoContrast:L,mod:$,attributes:U,onClick:X,onKeyDown:ae,keepMounted:oe,...le}=a,ee=xe({name:"NavLink",props:a,classes:U1,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:U,vars:m,varsResolver:$1}),[re,K]=Ka({value:p,defaultValue:h,finalValue:!1,onChange:S}),ie=!!g,O=B=>{X==null||X(B),ie&&(B.preventDefault(),K(!re))};return v.jsxs(v.Fragment,{children:[v.jsxs(or,{...ee("root"),component:"a",onClick:O,onKeyDown:B=>{ae==null||ae(B),B.nativeEvent.code==="Space"&&ie&&(B.preventDefault(),K(!re))},unstyled:d,mod:[{disabled:w,active:y,expanded:re},$],...le,children:[C&&v.jsx(ce,{component:"span",...ee("section"),mod:{position:"left"},children:C}),v.jsxs(ce,{...ee("body"),mod:{"no-wrap":_},children:[v.jsx(ce,{component:"span",...ee("label"),children:N}),v.jsx(ce,{component:"span",mod:{active:y},...ee("description"),children:A})]}),(ie||R!==void 0)&&v.jsx(ce,{...ee("section"),component:"span",mod:{rotate:re&&!T,position:"right"},children:ie?R!==void 0?R:v.jsx(a1,{...ee("chevron")}):R})]}),ie&&v.jsx(Y0,{expanded:re,keepMounted:oe,...ee("collapse"),children:v.jsx("div",{...ee("children"),children:g})})]})});Jc.classes=U1;Jc.varsResolver=$1;Jc.displayName="@mantine/core/NavLink";var Y1={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const M3={withCloseButton:!0},k1=(n,{radius:a,color:i})=>({root:{"--notification-radius":a===void 0?void 0:Ot(a),"--notification-color":i?An(i,n):void 0}}),Fc=me(n=>{const a=se("Notification",M3,n),{className:i,color:r,radius:s,loading:u,withCloseButton:d,withBorder:m,title:p,icon:h,children:S,onClose:g,closeButtonProps:y,classNames:w,style:C,styles:R,unstyled:N,vars:A,mod:T,loaderProps:_,role:z,attributes:L,...$}=a,U=xe({name:"Notification",classes:Y1,props:a,className:i,style:C,classNames:w,styles:R,unstyled:N,attributes:L,vars:A,varsResolver:k1});return v.jsxs(ce,{...U("root"),mod:[{"data-with-icon":!!h||u,"data-with-border":m},T],role:z||"alert",...$,children:[h&&!u&&v.jsx("div",{...U("icon"),children:h}),u&&v.jsx(dn,{size:28,color:r,...U("loader"),..._}),v.jsxs("div",{...U("body"),children:[p&&v.jsx("div",{...U("title"),children:p}),v.jsx(ce,{...U("description"),mod:{"data-with-title":!!p},children:S})]}),d&&v.jsx(ir,{iconSize:16,color:"gray",...y,unstyled:N,onClick:X=>{var ae;(ae=y==null?void 0:y.onClick)==null||ae.call(y,X),g==null||g()},...U("closeButton")})]})});Fc.classes=Y1;Fc.varsResolver=k1;Fc.displayName="@mantine/core/Notification";function z3({offset:n,position:a,defaultOpened:i}){const[r,s]=x.useState(i),u=x.useRef(null),{x:d,y:m,elements:p,refs:h,update:S,placement:g}=Mm({placement:a,middleware:[Am({crossAxis:!0,padding:5,rootBoundary:"document"})]}),y=g.includes("right")?n:a.includes("left")?n*-1:0,w=g.includes("bottom")?n:a.includes("top")?n*-1:0,C=x.useCallback(({clientX:R,clientY:N})=>{h.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:R,y:N,left:R+y,top:N+w,right:R,bottom:N}}})},[p.reference]);return x.useEffect(()=>{if(h.floating.current){const R=u.current;R.addEventListener("mousemove",C);const N=Hl(h.floating.current);return N.forEach(A=>{A.addEventListener("scroll",S)}),()=>{R.removeEventListener("mousemove",C),N.forEach(A=>{A.removeEventListener("scroll",S)})}}},[p.reference,h.floating.current,S,C,r]),{handleMouseMove:C,x:d,y:m,opened:r,setOpened:s,boundaryRef:u,floating:h.setFloating}}var Wc={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const D3={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:kt("popover")},X1=(n,{radius:a,color:i})=>({tooltip:{"--tooltip-radius":a===void 0?void 0:Ot(a),"--tooltip-bg":i?An(i,n):void 0,"--tooltip-color":i?"var(--mantine-color-white)":void 0}}),Pc=me(n=>{const a=se("TooltipFloating",D3,n),{children:i,refProp:r,withinPortal:s,style:u,className:d,classNames:m,styles:p,unstyled:h,radius:S,color:g,label:y,offset:w,position:C,multiline:R,zIndex:N,disabled:A,defaultOpened:T,variant:_,vars:z,portalProps:L,attributes:$,ref:U,...X}=a,ae=Nn(),oe=xe({name:"TooltipFloating",props:a,classes:Wc,className:d,style:u,classNames:m,styles:p,unstyled:h,attributes:$,rootSelector:"tooltip",vars:z,varsResolver:X1}),{handleMouseMove:le,x:ee,y:re,opened:K,boundaryRef:ie,floating:O,setOpened:B}=z3({offset:w,position:C,defaultOpened:T}),H=Wa(i);if(!H)throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const J=Xt(ie,gc(H),U),te=H.props,j=F=>{var P;(P=te.onMouseEnter)==null||P.call(te,F),le(F),B(!0)},k=F=>{var P;(P=te.onMouseLeave)==null||P.call(te,F),B(!1)};return v.jsxs(v.Fragment,{children:[v.jsx(Sa,{...L,withinPortal:s,children:v.jsx(ce,{...X,...oe("tooltip",{style:{...gi(u,ae),zIndex:N,display:!A&&K?"block":"none",top:(re&&Math.round(re))??"",left:(ee&&Math.round(ee))??""}}),variant:_,ref:O,mod:{multiline:R},children:y})}),x.cloneElement(H,{...te,[r]:J,onMouseEnter:j,onMouseLeave:k})]})});Pc.classes=Wc;Pc.varsResolver=X1;Pc.displayName="@mantine/core/TooltipFloating";const V1=x.createContext({withinGroup:!1}),B3={openDelay:0,closeDelay:0};function ip(n){const{openDelay:a,closeDelay:i,children:r}=se("TooltipGroup",B3,n);return v.jsx(V1,{value:{withinGroup:!0},children:v.jsx(mT,{delay:{open:a,close:i},children:r})})}ip.displayName="@mantine/core/TooltipGroup";ip.extend=n=>n;function H3(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 L3(n){const a=H3(n.middlewares),i=[cb(n.offset)];return a.shift&&i.push(Am(typeof a.shift=="boolean"?{padding:8}:{padding:8,...a.shift})),a.flip&&i.push(typeof a.flip=="boolean"?Id():Id(a.flip)),i.push(ub({element:n.arrowRef,padding:n.arrowOffset})),a.inline?i.push(typeof a.inline=="boolean"?pi():pi(a.inline)):n.inline&&i.push(pi()),i}function U3(n){var L,$,U;const[a,i]=x.useState(n.defaultOpened),r=typeof n.opened=="boolean"?n.opened:a,s=x.use(V1).withinGroup,u=Yl(),d=x.useCallback(X=>{i(X),X&&N(u)},[u]),{x:m,y:p,context:h,refs:S,placement:g,middlewareData:{arrow:{x:y,y:w}={}}}=Mm({strategy:n.strategy,placement:n.position,open:r,onOpenChange:d,middleware:L3(n),whileElementsMounted:Pd}),{delay:C,currentId:R,setCurrentId:N}=pT(h,{id:u}),{getReferenceProps:A,getFloatingProps:T}=ST([fT(h,{enabled:(L=n.events)==null?void 0:L.hover,delay:s?C:{open:n.openDelay,close:n.closeDelay},mouseOnly:!(($=n.events)!=null&&$.touch)}),bT(h,{enabled:(U=n.events)==null?void 0:U.focus,visibleOnly:!0}),wT(h,{role:"tooltip"}),gT(h,{enabled:typeof n.opened>"u"})]),_=x.useRef(g);ol(()=>{var X;_.current!==g&&(_.current=g,(X=n.onPositionChange)==null||X.call(n,g))},[g]);const z=r&&R&&R!==u;return{x:m,y:p,arrowX:y,arrowY:w,reference:S.setReference,floating:S.setFloating,getFloatingProps:T,getReferenceProps:A,isGroupPhase:z,opened:r,placement:g}}const $3={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:kt("popover"),middlewares:{flip:!0,shift:!0,inline:!1}},q1=(n,{radius:a,color:i,variant:r,autoContrast:s})=>{const u=n.variantColorResolver({theme:n,color:i||n.primaryColor,autoContrast:s,variant:r||"filled"});return{tooltip:{"--tooltip-radius":a===void 0?void 0:Ot(a),"--tooltip-bg":i?u.background:void 0,"--tooltip-color":i?u.color:void 0}}},Ht=me(n=>{const a=se("Tooltip",$3,n),{children:i,position:r,refProp:s,label:u,openDelay:d,closeDelay:m,onPositionChange:p,opened:h,defaultOpened:S,withinPortal:g,radius:y,color:w,classNames:C,styles:R,unstyled:N,style:A,className:T,withArrow:_,arrowSize:z,arrowOffset:L,arrowRadius:$,arrowPosition:U,offset:X,transitionProps:ae,multiline:oe,events:le,zIndex:ee,disabled:re,onClick:K,onMouseEnter:ie,onMouseLeave:O,inline:B,variant:H,keepMounted:J,vars:te,portalProps:j,mod:k,floatingStrategy:F,middlewares:P,autoContrast:ue,attributes:fe,target:pe,ref:Ce,...Re}=a,{dir:ze}=nr(),lt=x.useRef(null),be=U3({position:xb(ze,r),closeDelay:m,openDelay:d,onPositionChange:p,opened:h,defaultOpened:S,events:le,arrowRef:lt,arrowOffset:L,offset:typeof X=="number"?X+(_?z/2:0):X,inline:B,strategy:F,middlewares:P});x.useEffect(()=>{const ut=pe instanceof HTMLElement?pe:typeof pe=="string"?document.querySelector(pe):(pe==null?void 0:pe.current)||null;ut&&be.reference(ut)},[pe,be]);const $e=xe({name:"Tooltip",props:a,classes:Wc,className:T,style:A,classNames:C,styles:R,unstyled:N,attributes:fe,rootSelector:"tooltip",vars:te,varsResolver:q1}),qe=Wa(i);if(!pe&&!qe)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 at=$e("tooltip"),Ct=U==="merge"&&_?Sb({position:be.placement,dir:ze}):void 0;if(pe){const ut=a0(ae,{duration:100,transition:"fade"});return v.jsx(v.Fragment,{children:v.jsx(Sa,{...j,withinPortal:g,children:v.jsx($l,{...ut,keepMounted:J,mounted:!re&&!!be.opened,duration:be.isGroupPhase?10:ut.duration,children:tn=>v.jsxs(ce,{...Re,"data-fixed":F==="fixed"||void 0,variant:H,mod:[{multiline:oe},k],...at,...be.getFloatingProps({ref:be.floating,className:at.className,style:{...at.style,...tn,...Ct,zIndex:ee,top:be.y??0,left:be.x??0}}),children:[u,v.jsx(dc,{ref:lt,arrowX:be.arrowX,arrowY:be.arrowY,visible:_,position:be.placement,arrowSize:z,arrowOffset:L,arrowRadius:$,arrowPosition:U,...$e("arrow")})]})})})})}const Mt=qe.props,Dn=Xt(be.reference,gc(qe),Ce),qt=a0(ae,{duration:100,transition:"fade"});return v.jsxs(v.Fragment,{children:[v.jsx(Sa,{...j,withinPortal:g,children:v.jsx($l,{...qt,keepMounted:J,mounted:!re&&!!be.opened,duration:be.isGroupPhase?10:qt.duration,children:ut=>v.jsxs(ce,{...Re,"data-fixed":F==="fixed"||void 0,variant:H,mod:[{multiline:oe},k],...be.getFloatingProps({ref:be.floating,className:$e("tooltip").className,style:{...$e("tooltip").style,...ut,...Ct,zIndex:ee,top:be.y??0,left:be.x??0}}),children:[u,v.jsx(dc,{ref:lt,arrowX:be.arrowX,arrowY:be.arrowY,visible:_,position:be.placement,arrowSize:z,arrowOffset:L,arrowRadius:$,arrowPosition:U,...$e("arrow")})]})})}),x.cloneElement(qe,be.getReferenceProps({onClick:K,onMouseEnter:ie,onMouseLeave:O,onMouseMove:a.onMouseMove,onPointerDown:a.onPointerDown,onPointerEnter:a.onPointerEnter,...Mt,className:bt(T,Mt.className),[s]:Dn}))]})});Ht.classes=Wc;Ht.varsResolver=q1;Ht.displayName="@mantine/core/Tooltip";Ht.Floating=Pc;Ht.Group=ip;const Y3={size:"sm",withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},sp=H0(n=>{const a=se(["Input","InputWrapper","Select"],Y3,n),{classNames:i,styles:r,unstyled:s,vars:u,dropdownOpened:d,defaultDropdownOpened:m,onDropdownClose:p,onDropdownOpen:h,onFocus:S,onBlur:g,onClick:y,onChange:w,data:C,value:R,defaultValue:N,selectFirstOptionOnChange:A,selectFirstOptionOnDropdownOpen:T,onOptionSubmit:_,comboboxProps:z,readOnly:L,disabled:$,filter:U,limit:X,withScrollArea:ae,maxDropdownHeight:oe,floatingHeight:le,size:ee,searchable:re,rightSection:K,checkIconPosition:ie,withCheckIcon:O,withAlignedLabels:B,nothingFoundMessage:H,name:J,form:te,searchValue:j,defaultSearchValue:k,onSearchChange:F,allowDeselect:P,error:ue,rightSectionPointerEvents:fe,id:pe,clearable:Ce,clearSectionMode:Re,clearButtonProps:ze,hiddenInputProps:lt,renderOption:be,onClear:$e,autoComplete:qe,scrollAreaProps:at,__defaultRightSection:Ct,__clearSection:Mt,__clearable:Dn,chevronColor:qt,autoSelectOnBlur:ut,openOnFocus:tn,attributes:Bn,...Ye}=a,We=x.useMemo(()=>PR(C),[C]),we=x.useRef({}),Ue=x.useMemo(()=>c1(We),[We]),Ut=Yl(pe),[je,Hn,Jn]=Ka({value:R,defaultValue:N,finalValue:null,onChange:w}),zt=je!=null?`${je}`in Ue?Ue[`${je}`]:we.current[`${je}`]:void 0,Ln=i2(zt),[nn,xt,tt]=Ka({value:j,defaultValue:k,finalValue:zt?zt.label:"",onChange:F}),Ge=v1({opened:d,defaultOpened:m,onDropdownOpen:()=>{h==null||h(),T?Ge.selectFirstOption():Ge.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{p==null||p(),setTimeout(Ge.resetSelectedOption,0)}}),ml=ot=>{xt(ot),Ge.resetSelectedOption()},{resolvedClassNames:zi,resolvedStyles:Di}=gm({props:a,styles:r,classNames:i});x.useEffect(()=>{A&&Ge.selectFirstOption()},[A,nn]),x.useEffect(()=>{R===null&&ml(""),R!=null&&zt&&((Ln==null?void 0:Ln.value)!==zt.value||(Ln==null?void 0:Ln.label)!==zt.label)&&ml(zt.label)},[R,zt]),x.useEffect(()=>{var ot,ft;!Jn&&!tt&&ml(je!=null?`${je}`in Ue?(ot=Ue[`${je}`])==null?void 0:ot.label:((ft=we.current[`${je}`])==null?void 0:ft.label)||"":"")},[Ue,je]),x.useEffect(()=>{je&&`${je}`in Ue&&(we.current[`${je}`]=Ue[`${je}`])},[Ue,je]);const no=v.jsx(Ve.ClearButton,{...ze,onClear:()=>{Hn(null,null),ml(""),$e==null||$e()}}),lo=Ce&&je!=null&&!$&&!L;return v.jsxs(v.Fragment,{children:[v.jsxs(Ve,{store:Ge,__staticSelector:"Select",classNames:zi,styles:Di,unstyled:s,readOnly:L,size:ee,attributes:Bn,floatingHeight:le,keepMounted:ut,onOptionSubmit:ot=>{_==null||_(ot);const ft=P&&`${Ue[ot].value}`==`${je}`?null:Ue[ot],Gl=ft?ft.value:null;Gl!==je&&Hn(Gl,ft),!Jn&&ml(Gl!=null&&(ft==null?void 0:ft.label)||""),Ge.closeDropdown()},...z,children:[v.jsx(Ve.Target,{targetType:re?"input":"button",autoComplete:qe,withExpandedAttribute:!0,children:v.jsx(cr,{id:Ut,__defaultRightSection:v.jsx(Ve.Chevron,{size:ee,error:ue,unstyled:s,color:qt}),__clearSection:no,__clearable:lo,__clearSectionMode:Re,rightSection:K,rightSectionPointerEvents:fe||"none",...Ye,size:ee,__staticSelector:"Select",disabled:$,readOnly:L||!re,value:nn,onChange:ot=>{ml(ot.currentTarget.value),Ge.openDropdown(),A&&Ge.selectFirstOption()},onFocus:ot=>{tn&&re&&Ge.openDropdown(),S==null||S(ot)},onBlur:ot=>{ut&&Ge.clickSelectedOption(),re&&Ge.closeDropdown();const ft=je!=null&&(`${je}`in Ue?Ue[`${je}`]:we.current[`${je}`]);ml(ft&&ft.label||""),g==null||g(ot)},onClick:ot=>{re?Ge.openDropdown():Ge.toggleDropdown(),y==null||y(ot)},classNames:zi,styles:Di,unstyled:s,pointer:!re,error:ue,attributes:Bn})}),v.jsx(h3,{data:We,hidden:L||$,filter:U,search:nn,limit:X,hiddenWhenEmpty:!H,withScrollArea:ae,maxDropdownHeight:oe,filterOptions:!!re&&(zt==null?void 0:zt.label)!==nn,value:je,checkIconPosition:ie,withCheckIcon:O,withAlignedLabels:B,nothingFoundMessage:H,unstyled:s,labelId:Ye.label?`${Ut}-label`:void 0,"aria-label":Ye.label?void 0:Ye["aria-label"],renderOption:be,scrollAreaProps:at})]}),v.jsx(Ve.HiddenInput,{value:je,name:J,form:te,disabled:$,...lt})]})});sp.classes={...cr.classes,...Ve.classes};sp.displayName="@mantine/core/Select";var G1={root:"m_6d731127"};const k3={gap:"md",align:"stretch",justify:"flex-start"},Q1=(n,{gap:a,align:i,justify:r})=>({root:{"--stack-gap":Ll(a),"--stack-align":i,"--stack-justify":r}}),Zn=me(n=>{const a=se("Stack",k3,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,align:p,justify:h,gap:S,variant:g,attributes:y,...w}=a;return v.jsx(ce,{...xe({name:"Stack",props:a,classes:G1,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:y,vars:m,varsResolver:Q1})("root"),variant:g,...w})});Zn.classes=G1;Zn.varsResolver=Q1;Zn.displayName="@mantine/core/Stack";const Z1=x.createContext(null),X3={hiddenInputValuesSeparator:","},cp=H0((n=>{const{value:a,defaultValue:i,onChange:r,size:s,wrapperProps:u,children:d,readOnly:m,name:p,hiddenInputValuesSeparator:h,hiddenInputProps:S,maxSelectedValues:g,disabled:y,...w}=se("SwitchGroup",X3,n),[C,R]=Ka({value:a,defaultValue:i,finalValue:[],onChange:r}),N=_=>{const z=_.currentTarget.value;if(m)return;const L=C.includes(z);!L&&g&&C.length>=g||R(L?C.filter($=>$!==z):[...C,z])},A=_=>{if(y)return!0;if(!g)return!1;const z=C.includes(_),L=C.length>=g;return!z&&L},T=C.join(h);return v.jsx(Z1,{value:{value:C,onChange:N,size:s,isDisabled:A},children:v.jsxs(St.Wrapper,{size:s,...u,...w,labelElement:"div",__staticSelector:"SwitchGroup",children:[v.jsx(u3,{role:"group",children:d}),v.jsx("input",{type:"hidden",name:p,value:T,...S})]})})}));cp.classes=St.Wrapper.classes;cp.displayName="@mantine/core/SwitchGroup";var K1={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const V3={labelPosition:"right",withThumbIndicator:!0},J1=(n,{radius:a,color:i,size:r})=>({root:{"--switch-radius":a===void 0?void 0:Ot(a),"--switch-height":Le(r,"switch-height"),"--switch-width":Le(r,"switch-width"),"--switch-thumb-size":Le(r,"switch-thumb-size"),"--switch-label-font-size":Le(r,"switch-label-font-size"),"--switch-track-label-padding":Le(r,"switch-track-label-padding"),"--switch-color":i?An(i,n):void 0}}),Za=me(n=>{var ue;const a=se("Switch",V3,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,color:p,label:h,offLabel:S,onLabel:g,id:y,size:w,radius:C,wrapperProps:R,thumbIcon:N,checked:A,defaultChecked:T,onChange:_,labelPosition:z,description:L,error:$,disabled:U,variant:X,rootRef:ae,mod:oe,withThumbIndicator:le,attributes:ee,...re}=a,K=x.use(Z1),ie=w||(K==null?void 0:K.size),O=xe({name:"Switch",props:a,classes:K1,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:ee,vars:m,varsResolver:J1}),{styleProps:B,rest:H}=bc(re),J=Yl(y),te=[L?`${J}-description`:void 0,$&&typeof $!="boolean"?`${J}-error`:void 0,H["aria-describedby"]].filter(Boolean).join(" ")||void 0,j={checked:(K==null?void 0:K.value.includes(H.value))??A,onChange:fe=>{K==null||K.onChange(fe),_==null||_(fe)}},k=U||((ue=K==null?void 0:K.isDisabled)==null?void 0:ue.call(K,H.value)),[F,P]=Ka({value:j.checked??A,defaultValue:T,finalValue:!1});return v.jsxs(b1,{...O("root"),__staticSelector:"Switch",__stylesApiProps:a,id:J,size:ie,labelPosition:z,label:h,description:L,error:$,disabled:k,bodyElement:"label",labelElement:"span",classNames:i,styles:u,unstyled:d,"data-checked":j.checked,variant:X,ref:ae,mod:oe,attributes:ee,inert:H.inert,...B,...R,children:[v.jsx("input",{...H,...j,disabled:k,checked:F,"data-checked":j.checked,onChange:fe=>{var pe;(pe=j.onChange)==null||pe.call(j,fe),P(fe.currentTarget.checked)},id:J,type:"checkbox",role:"switch",inert:H.inert,"aria-describedby":te,...O("input")}),v.jsxs(ce,{"aria-hidden":"true",component:"span",mod:{error:$,"label-position":z,"without-labels":!g&&!S},...O("track"),children:[v.jsx(ce,{component:"span",mod:{"reduce-motion":!0,"with-thumb-indicator":le&&!N},...O("thumb"),children:N}),v.jsx("span",{...O("trackLabel"),children:F?g:S})]})]})});Za.classes={...K1,...d3};Za.varsResolver=J1;Za.displayName="@mantine/core/Switch";Za.Group=cp;const[q3,G3]=sl("Table component was not found in the tree");var Mi={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function Q3(n,a){if(!a)return;const i={};return a.columnBorder&&n.withColumnBorders&&(i["data-with-column-border"]=!0),a.rowBorder&&n.withRowBorders&&(i["data-with-row-border"]=!0),a.striped&&n.striped&&(i["data-striped"]=n.striped),a.highlightOnHover&&n.highlightOnHover&&(i["data-hover"]=!0),a.captionSide&&n.captionSide&&(i["data-side"]=n.captionSide),a.stickyHeader&&n.stickyHeader&&(i["data-sticky"]=!0),i}function Ia(n,a){const i=`Table${n.charAt(0).toUpperCase()}${n.slice(1)}`,r=me(s=>{const u=se(i,{},s),{classNames:d,className:m,style:p,styles:h,...S}=u,g=G3();return v.jsx(ce,{component:n,...Q3(g,a),...g.getStyles(n,{className:m,classNames:d,style:p,styles:h,props:u}),...S})});return r.displayName=`@mantine/core/${i}`,r.classes=Mi,r}const nm=Ia("th",{columnBorder:!0}),F1=Ia("td",{columnBorder:!0}),oc=Ia("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),W1=Ia("thead",{stickyHeader:!0}),P1=Ia("tbody"),I1=Ia("tfoot"),eS=Ia("caption",{captionSide:!0}),Z3={type:"scrollarea"},tS=(n,{minWidth:a,maxHeight:i,type:r})=>({scrollContainer:{"--table-min-width":Z(a),"--table-max-height":Z(i),"--table-overflow":r==="native"?"auto":void 0}}),Ic=me(n=>{const a=se("TableScrollContainer",Z3,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,children:p,minWidth:h,maxHeight:S,type:g,scrollAreaProps:y,attributes:w,...C}=a,R=xe({name:"TableScrollContainer",classes:Mi,props:a,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:w,vars:m,varsResolver:tS,rootSelector:"scrollContainer"});return v.jsx(ce,{component:g==="scrollarea"?fl:"div",...g==="scrollarea"?S?{offsetScrollbars:"xy",...y}:{offsetScrollbars:"x",...y}:{},...R("scrollContainer"),...C,children:v.jsx("div",{...R("scrollContainerInner"),children:p})})});Ic.classes=Mi;Ic.varsResolver=tS;Ic.displayName="@mantine/core/TableScrollContainer";function up({data:n}){return v.jsxs(v.Fragment,{children:[n.caption&&v.jsx(eS,{children:n.caption}),n.head&&v.jsx(W1,{children:v.jsx(oc,{children:n.head.map((a,i)=>v.jsx(nm,{children:a},i))})}),n.body&&v.jsx(P1,{children:n.body.map((a,i)=>v.jsx(oc,{children:a.map((r,s)=>v.jsx(F1,{children:r},s))},i))}),n.foot&&v.jsx(I1,{children:v.jsx(oc,{children:n.foot.map((a,i)=>v.jsx(nm,{children:a},i))})})]})}up.displayName="@mantine/core/TableDataRenderer";const K3={withRowBorders:!0,verticalSpacing:7},nS=(n,{layout:a,captionSide:i,horizontalSpacing:r,verticalSpacing:s,borderColor:u,stripedColor:d,highlightOnHoverColor:m,striped:p,highlightOnHover:h,stickyHeaderOffset:S,stickyHeader:g})=>({table:{"--table-layout":a,"--table-caption-side":i,"--table-horizontal-spacing":Ll(r),"--table-vertical-spacing":Ll(s),"--table-border-color":u?An(u,n):void 0,"--table-striped-color":p&&d?An(d,n):void 0,"--table-highlight-on-hover-color":h&&m?An(m,n):void 0,"--table-sticky-header-offset":g?Z(S):void 0}}),de=me(n=>{const a=se("Table",K3,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,horizontalSpacing:p,verticalSpacing:h,captionSide:S,stripedColor:g,highlightOnHoverColor:y,striped:w,highlightOnHover:C,withColumnBorders:R,withRowBorders:N,withTableBorder:A,borderColor:T,layout:_,data:z,children:L,stickyHeader:$,stickyHeaderOffset:U,mod:X,tabularNums:ae,attributes:oe,...le}=a,ee=xe({name:"Table",props:a,className:r,style:s,classes:Mi,classNames:i,styles:u,unstyled:d,attributes:oe,rootSelector:"table",vars:m,varsResolver:nS});return v.jsx(q3,{value:{getStyles:ee,stickyHeader:$,striped:w===!0?"odd":w||void 0,highlightOnHover:C,withColumnBorders:R,withRowBorders:N,captionSide:S||"bottom"},children:v.jsx(ce,{component:"table",mod:[{"data-with-table-border":A,"data-tabular-nums":ae},X],...ee("table"),...le,children:L||!!z&&v.jsx(up,{data:z})})})});de.classes=Mi;de.varsResolver=nS;de.displayName="@mantine/core/Table";de.Td=F1;de.Th=nm;de.Tr=oc;de.Thead=W1;de.Tbody=P1;de.Tfoot=I1;de.Caption=eS;de.ScrollContainer=Ic;de.DataRenderer=up;const ya=me(n=>v.jsx(cr,{component:"input",...se(["Input","InputWrapper","TextInput"],null,n),__staticSelector:"TextInput"}));ya.classes=cr.classes;ya.displayName="@mantine/core/TextInput";var lS={root:"m_7341320d"};const aS=(n,{size:a,radius:i,variant:r,gradient:s,color:u,autoContrast:d})=>{const m=n.variantColorResolver({color:u||n.primaryColor,theme:n,gradient:s,variant:r||"filled",autoContrast:d});return{root:{"--ti-size":Le(a,"ti-size"),"--ti-radius":i===void 0?void 0:Ot(i),"--ti-bg":u||r?m.background:void 0,"--ti-color":u||r?m.color:void 0,"--ti-bd":u||r?m.border:void 0}}},eu=me(n=>{const a=se("ThemeIcon",null,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,autoContrast:p,attributes:h,...S}=a;return v.jsx(ce,{...xe({name:"ThemeIcon",classes:lS,props:a,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:h,vars:m,varsResolver:aS})("root"),...S})});eu.classes=lS;eu.varsResolver=aS;eu.displayName="@mantine/core/ThemeIcon";const J3=["h1","h2","h3","h4","h5","h6"],F3=["xs","sm","md","lg","xl"];function W3(n,a){const i=a!==void 0?a:`h${n}`;return J3.includes(i)?{fontSize:`var(--mantine-${i}-font-size)`,fontWeight:`var(--mantine-${i}-font-weight)`,lineHeight:`var(--mantine-${i}-line-height)`}:F3.includes(i)?{fontSize:`var(--mantine-font-size-${i})`,fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}:{fontSize:Z(i),fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}}var oS={root:"m_8a5d1357"};const P3={order:1},rS=(n,{order:a,size:i,lineClamp:r,textWrap:s})=>{const u=W3(a||1,i);return{root:{"--title-fw":u.fontWeight,"--title-lh":u.lineHeight,"--title-fz":u.fontSize,"--title-line-clamp":typeof r=="number"?r.toString():void 0,"--title-text-wrap":s}}},eo=me(n=>{const a=se("Title",P3,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,order:m,vars:p,size:h,variant:S,lineClamp:g,textWrap:y,mod:w,attributes:C,...R}=a,N=xe({name:"Title",props:a,classes:oS,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:C,vars:p,varsResolver:rS});return[1,2,3,4,5,6].includes(m)?v.jsx(ce,{...N("root"),component:`h${m}`,variant:S,mod:[{order:m,"data-line-clamp":typeof g=="number"},w],size:h,...R}):null});eo.classes=oS;eo.varsResolver=rS;eo.displayName="@mantine/core/Title";function I3(n){let a=n,i=!1;const r=new Set;return{getState(){return a},updateState(s){a=typeof s=="function"?s(a):s},setState(s){this.updateState(s),r.forEach(u=>u(a))},initialize(s){i||(a=s,i=!0)},subscribe(s){return r.add(s),()=>r.delete(s)}}}function e_(n){return x.useSyncExternalStore(n.subscribe,()=>n.getState(),()=>n.getState())}function t_(n,a,i){const r=[],s=[],u={};for(const d of n){const m=d.position||a;u[m]=u[m]||0,u[m]+=1,u[m]<=i?s.push(d):r.push(d)}return{notifications:s,queue:r}}const n_=()=>I3({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),to=n_(),l_=(n=to)=>e_(n);function pr(n,a){const i=n.getState(),r=t_(a([...i.notifications,...i.queue]),i.defaultPosition,i.limit);n.setState({notifications:r.notifications,queue:r.queue,limit:i.limit,defaultPosition:i.defaultPosition})}function a_(n,a=to){const i=n.id||S0();return pr(a,r=>n.id&&r.some(s=>s.id===n.id)?r:[...r,{...n,id:i}]),i}function iS(n,a=to){return pr(a,i=>i.filter(r=>{var s;return r.id===n?((s=r.onClose)==null||s.call(r,r),!1):!0})),n}function o_(n,a=to){return pr(a,i=>i.map(r=>r.id===n.id?{...r,...n}:r)),n.id}function r_(n=to){pr(n,()=>[])}function i_(n=to){pr(n,a=>a.slice(0,n.getState().limit))}const hn={show:a_,hide:iS,update:o_,clean:r_,cleanQueue:i_,updateState:pr},sS=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function s_(n,a){return n.reduce((i,r)=>(i[r.position||a].push(r),i),sS.reduce((i,r)=>(i[r]=[],i),{}))}const d0={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},c_={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function u_({state:n,maxHeight:a,position:i,transitionDuration:r}){const[s,u]=i.split("-"),d=u==="center"?`${s}-center`:u,m={opacity:0,maxHeight:a,transform:d0[d],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},p={opacity:1,transform:c_[d]},h={opacity:0,maxHeight:0,transform:d0[d]};return{...m,...{entering:p,entered:p,exiting:h,exited:h}[n]}}function f_(n,a){return typeof a=="number"?a:a===!1||n===!1?!1:n}const d_=120;function cS({data:n,onHide:a,autoClose:i,transitionDuration:r,allowDragDismiss:s,allowScrollDismiss:u,paused:d,onHoverStart:m,onHoverEnd:p,ref:h,style:S,...g}){const[y,w]=x.useState(0),[C,R]=x.useState(!1),[N,A]=x.useState(1),[T,_]=x.useState(!1),z=Nn(),{autoClose:L,message:$,allowClose:U,position:X,style:ae,withCloseButton:oe,onOpen:le,...ee}=n,re=f_(i,n.autoClose),K=x.useRef(-1),ie=x.useRef(-1),O=x.useRef(-1),B=x.useRef(null),H=x.useRef(!1),J=x.useRef(0),te=U===!1,j=()=>window.clearTimeout(K.current),k=()=>window.clearTimeout(ie.current),F=()=>window.clearTimeout(O.current),P=we=>{J.current=we,w(we)},ue=()=>{a(n.id),j(),k(),F()},fe=()=>{C||$e||d||H.current||typeof re!="number"||(K.current=window.setTimeout(ue,re))},pe=we=>{var Ue;return we*((((Ue=B.current)==null?void 0:Ue.offsetWidth)??440)+40)},Ce=(we,Ue)=>{var je;const Ut=((je=B.current)==null?void 0:je.offsetWidth)??440;return Math.abs(we)>Ut*.35||Ue>.5},Re=()=>{F(),_(!1),P(0)},ze=we=>{A(we),R(!0),_(!1),P(pe(we)),j(),k(),F(),ie.current=window.setTimeout(ue,r)},lt=()=>{F(),O.current=window.setTimeout(()=>{_(!1),P(0),fe()},d_)},{ref:be,active:$e}=p2(we=>{if(!C)if(we.first&&j(),we.last){if(we.tap||we.canceled){P(0),fe();return}const Ue=we.movement[0],Ut=Ue===0?we.direction[0]===-1?-1:1:Ue>0?1:-1;Ce(Ue,we.velocity[0])?ze(Ut):(P(0),fe())}else P(we.movement[0])},{axis:"x",threshold:5,filterTaps:!0,enabled:s&&!te&&!C}),qe=Xt(h,B,be),at=gi(S,z),Ct=gi(ae,z),Mt={...at,...Ct},Dn=typeof Mt.opacity=="number"?Mt.opacity:1,qt=C?0:1-Math.min(Math.abs(y)/200,1)*.6,ut=Mt.transitionDuration??`${r}ms, ${r}ms, ${r}ms`,tn={...Mt,"--notifications-state-transform":typeof Mt.transform=="string"?Mt.transform:"translateX(0)","--notifications-state-opacity":String(Dn),"--notifications-swipe-offset":`${y}px`,"--notifications-swipe-opacity":String(qt),transform:"var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)",opacity:"calc(var(--notifications-state-opacity) * var(--notifications-swipe-opacity))",transitionDuration:$e||T?"0ms, 0ms, 0ms":ut,cursor:"default",touchAction:"pan-y"},Bn=()=>{H.current=!0,j(),m==null||m()},Ye=()=>{H.current=!1,T||(Re(),fe()),p==null||p()},We=x.useEffectEvent(we=>{if(C||$e)return;const Ue=we.currentTarget===document;if(!Ue&&!H.current)return;const{deltaX:Ut,deltaY:je}=we;if(Math.abs(Ut)<=Math.abs(je)||Ut===0||!u||te)return;Ue||(we.preventDefault(),we.stopPropagation()),j(),_(!0);const Hn=J.current-Ut,Jn=Hn>0?1:-1;if(Ce(Hn,0)){ze(Jn);return}P(Hn),lt()});return x.useEffect(()=>{if(T)return document.addEventListener("wheel",We,{passive:!1}),()=>document.removeEventListener("wheel",We,{passive:!1})},[T]),x.useEffect(()=>{const we=()=>{C&&P(pe(N))};return window.addEventListener("resize",we),()=>window.removeEventListener("resize",we)},[N,C]),x.useEffect(()=>{const we=B.current;if(we)return we.addEventListener("wheel",We,{passive:!1}),()=>we.removeEventListener("wheel",We,{passive:!1})},[]),x.useEffect(()=>()=>{k(),F()},[]),x.useEffect(()=>{var we;(we=n.onOpen)==null||we.call(n,n)},[]),x.useEffect(()=>(fe(),j),[re,$e,C]),x.useEffect(()=>(d?j():fe(),j),[d]),v.jsx(Fc,{ref:qe,...g,style:tn,...ee,withCloseButton:te?!1:oe,onClose:ue,onMouseEnter:Bn,onMouseLeave:Ye,children:$})}cS.displayName="@mantine/notifications/NotificationContainer";var uS={root:"m_b37d9ac7",notification:"m_5ed0edd0"};function lm(){return lm=Object.assign?Object.assign.bind():function(n){for(var a=1;a({root:{"--notifications-z-index":a==null?void 0:a.toString(),"--notifications-container-width":Z(i)}}),dl=me(n=>{const a=se("Notifications",x_,n),{classNames:i,className:r,style:s,styles:u,unstyled:d,vars:m,attributes:p,position:h,autoClose:S,transitionDuration:g,allowDragDismiss:y,allowScrollDismiss:w,containerWidth:C,notificationMaxHeight:R,limit:N,zIndex:A,store:T,portalProps:_,withinPortal:z,pauseResetOnHover:L,...$}=a,U=Nn(),X=l_(T),ae=r2(),oe=vc(),le=x.useRef({}),ee=x.useRef(0),[re,K]=x.useState(0),ie=x.useCallback(()=>K(j=>j+1),[]),O=x.useCallback(()=>K(j=>Math.max(0,j-1)),[]),B=U.respectReducedMotion&&oe?1:g,H=xe({name:"Notifications",classes:uS,props:a,className:r,style:s,classNames:i,styles:u,unstyled:d,attributes:p,vars:m,varsResolver:mS});x.useEffect(()=>{T==null||T.updateState(j=>({...j,limit:N||5,defaultPosition:h}))},[N,h]),tr(()=>{X.notifications.length>ee.current&&setTimeout(()=>ae(),0),ee.current=X.notifications.length},[X.notifications]);const J=s_(X.notifications,h),te=sS.reduce((j,k)=>(j[k]=J[k].map(({style:F,...P})=>v.jsx(S_,{timeout:B,onEnter:()=>le.current[P.id].offsetHeight,nodeRef:{current:le.current[P.id]},children:ue=>v.jsx(cS,{ref:fe=>{fe&&(le.current[P.id]=fe)},data:P,onHide:fe=>iS(fe,T),autoClose:S,transitionDuration:B,allowDragDismiss:y,allowScrollDismiss:w,paused:L==="all"?re>0:!1,onHoverStart:ie,onHoverEnd:O,...H("notification",{style:{...u_({state:ue,position:k,transitionDuration:B,maxHeight:R}),...F}})})},P.id)),j),{});return v.jsxs(Sa,{withinPortal:z,..._,children:[v.jsx(ce,{...H("root"),"data-position":"top-center",...$,children:v.jsx(ga,{children:te["top-center"]})}),v.jsx(ce,{...H("root"),"data-position":"top-left",...$,children:v.jsx(ga,{children:te["top-left"]})}),v.jsx(ce,{...H("root",{className:Fa.classNames.fullWidth}),"data-position":"top-right",...$,children:v.jsx(ga,{children:te["top-right"]})}),v.jsx(ce,{...H("root",{className:Fa.classNames.fullWidth}),"data-position":"bottom-right",...$,children:v.jsx(ga,{children:te["bottom-right"]})}),v.jsx(ce,{...H("root"),"data-position":"bottom-left",...$,children:v.jsx(ga,{children:te["bottom-left"]})}),v.jsx(ce,{...H("root"),"data-position":"bottom-center",...$,children:v.jsx(ga,{children:te["bottom-center"]})})]})});dl.classes=uS;dl.varsResolver=mS;dl.displayName="@mantine/notifications/Notifications";dl.show=hn.show;dl.hide=hn.hide;dl.update=hn.update;dl.clean=hn.clean;dl.cleanQueue=hn.cleanQueue;dl.updateState=hn.updateState;const w_=["#f1edff","#dcd3ff","#b5a3f5","#8d70ed","#6c47e6","#5a2fe2","#5023e0","#4119c7","#3915b3","#2f0f9e"],E_={primaryColor:"brand",colors:{brand:w_},fontFamily:"Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",defaultRadius:"md",headings:{fontWeight:"650"}};class dp extends Error{constructor(i,r){super(i);fy(this,"status");this.status=r}}async function el(n,a){const i=await fetch(n,{headers:{"Content-Type":"application/json"},...a}),r=await i.text();let s=null;if(r)try{s=JSON.parse(r)}catch{s=r}if(!i.ok){const u=s&&typeof s=="object"&&"error"in s?String(s.error):`HTTP ${i.status}`;throw new dp(u,i.status)}return s}const il={me:()=>el("/api/me"),cluster:()=>el("/api/cluster"),listRooms:()=>el("/api/rooms"),createRoom:n=>el("/api/rooms",{method:"POST",body:JSON.stringify(n)}),listMembers:n=>el(`/api/rooms/${encodeURIComponent(n)}/members`),invite:(n,a)=>el(`/api/rooms/${encodeURIComponent(n)}/invite`,{method:"POST",body:JSON.stringify(a)}),kick:(n,a)=>el(`/api/rooms/${encodeURIComponent(n)}/kick`,{method:"POST",body:JSON.stringify({endpoint:a})}),listUsers:()=>el("/api/users"),addUser:n=>el("/api/users",{method:"POST",body:JSON.stringify(n)}),revokeUser:n=>el("/api/users/revoke",{method:"POST",body:JSON.stringify({sign_pub:n})})};/** - * @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 C_={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 Kn=(n,a,i,r)=>{const s=x.forwardRef(({color:u="currentColor",size:d=24,stroke:m=2,title:p,className:h,children:S,...g},y)=>x.createElement("svg",{ref:y,...C_[n],width:d,height:d,className:["tabler-icon",`tabler-icon-${a}`,h].join(" "),strokeWidth:m,stroke:u,...g},[p&&x.createElement("title",{key:"svg-title"},p),...r.map(([w,C])=>x.createElement(w,C)),...Array.isArray(S)?S:[S]]));return s.displayName=`${i}`,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 T_=[["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 -2l0 -6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-5a4 4 0 0 1 8 0",key:"svg-2"}]],R_=Kn("outline","lock-open","LockOpen",T_);/** - * @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 __=[["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"}]],A_=Kn("outline","lock","Lock",__);/** - * @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 j_=[["path",{d:"M21 14l-3 -3h-7a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1h9a1 1 0 0 1 1 1v10",key:"svg-0"}],["path",{d:"M14 15v2a1 1 0 0 1 -1 1h-7l-3 3v-10a1 1 0 0 1 1 -1h2",key:"svg-1"}]],N_=Kn("outline","messages","Messages",j_);/** - * @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 O_=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],pS=Kn("outline","plus","Plus",O_);/** - * @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 M_=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],mp=Kn("outline","refresh","Refresh",M_);/** - * @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 z_=[["path",{d:"M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-2",key:"svg-0"}],["path",{d:"M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2",key:"svg-1"}],["path",{d:"M7 8l0 .01",key:"svg-2"}],["path",{d:"M7 16l0 .01",key:"svg-3"}],["path",{d:"M11 8h6",key:"svg-4"}],["path",{d:"M11 16h6",key:"svg-5"}]],hS=Kn("outline","server-2","Server2",z_);/** - * @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 D_=[["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"}]],B_=Kn("outline","shield-lock","ShieldLock",D_);/** - * @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 H_=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4c.348 0 .686 .045 1.009 .128",key:"svg-1"}],["path",{d:"M16 19h6",key:"svg-2"}]],L_=Kn("outline","user-minus","UserMinus",H_);/** - * @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 U_=[["path",{d:"M8.18 8.189a4.01 4.01 0 0 0 2.616 2.627m3.507 -.545a4 4 0 1 0 -5.59 -5.552",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4c.412 0 .81 .062 1.183 .178m2.633 2.618c.12 .38 .184 .785 .184 1.204v2",key:"svg-1"}],["path",{d:"M3 3l18 18",key:"svg-2"}]],$_=Kn("outline","user-off","UserOff",U_);/** - * @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 Y_=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M16 19h6",key:"svg-1"}],["path",{d:"M19 16v6",key:"svg-2"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4",key:"svg-3"}]],k_=Kn("outline","user-plus","UserPlus",Y_);/** - * @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 X_=[["path",{d:"M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]],vS=Kn("outline","users","Users",X_);function er(n,a=10,i=6){return n?n.length<=a+i+1?n:`${n.slice(0,a)}…${n.slice(-i)}`:""}function V_(n){if(!n)return"—";const a=new Date(n);return Number.isNaN(a.getTime())?n:a.toLocaleString()}function q_({p:n,up:a}){if(!a)return v.jsx(Je,{c:"dimmed",size:"sm",children:"—"});const i=(r,s)=>v.jsx(vt,{size:"sm",variant:r?"filled":"outline",color:r?"teal":"gray",children:s},s);return v.jsxs(gt,{gap:6,wrap:"wrap",children:[i(n.enforce,"enforce"),i(n.acl,"acl"),i(n.tls,"tls"),i(n.cluster,"cluster"),v.jsxs(vt,{size:"sm",variant:"light",color:"brand",style:{textTransform:"none"},children:["store: ",n.store||"?"]})]})}function G_(){const[n,a]=x.useState(null),[i,r]=x.useState(null),[s,u]=x.useState(!1),d=x.useCallback(()=>{u(!0),il.cluster().then(p=>{a(p),r(null)}).catch(p=>r(p.message)).finally(()=>u(!1))},[]);x.useEffect(()=>{d();const p=setInterval(d,1e4);return()=>clearInterval(p)},[d]);const m=(n==null?void 0:n.filter(p=>p.up).length)??0;return v.jsxs(Zn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(gt,{gap:"sm",children:[v.jsx(eo,{order:3,children:"Cluster"}),n&&v.jsxs(vt,{color:m===n.length?"teal":m===0?"red":"yellow",variant:"light",children:[m,"/",n.length," up"]})]}),v.jsx(Ht,{label:"Refrescar",children:v.jsx(Gn,{variant:"light",color:"brand",onClick:d,loading:s,children:v.jsx(mp,{size:18})})})]}),i&&v.jsx(Je,{c:"red",children:i}),!n&&!i&&v.jsx(dn,{color:"brand"}),n&&v.jsx(Pa,{withBorder:!0,bg:"dark.7",p:0,radius:"md",children:v.jsxs(de,{verticalSpacing:"sm",horizontalSpacing:"md",highlightOnHover:!0,children:[v.jsx(de.Thead,{children:v.jsxs(de.Tr,{children:[v.jsx(de.Th,{children:"Nodo"}),v.jsx(de.Th,{children:"Estado"}),v.jsx(de.Th,{children:"Latencia"}),v.jsx(de.Th,{children:"Posture"}),v.jsx(de.Th,{children:"URL"})]})}),v.jsx(de.Tbody,{children:n.map(p=>v.jsxs(de.Tr,{children:[v.jsx(de.Td,{children:v.jsxs(gt,{gap:8,wrap:"nowrap",children:[v.jsx(Xc,{color:p.up?"teal":"red",size:9,processing:p.up,children:v.jsx(hS,{size:18})}),v.jsx(Je,{fw:600,children:p.name})]})}),v.jsx(de.Td,{children:p.up?v.jsx(vt,{color:"teal",variant:"light",children:"up"}):v.jsx(Ht,{label:p.error||"sin respuesta",multiline:!0,w:260,children:v.jsx(vt,{color:"red",variant:"light",children:"down"})})}),v.jsx(de.Td,{children:v.jsx(Je,{size:"sm",c:"dimmed",children:p.up?`${p.latency_ms} ms`:"—"})}),v.jsx(de.Td,{children:v.jsx(q_,{p:p.posture,up:p.up})}),v.jsx(de.Td,{children:v.jsx(Je,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:p.url})})]},p.name))})]})}),v.jsxs(Je,{size:"xs",c:"dimmed",children:["Posture leída de ",v.jsx("code",{children:"GET /healthz"})," de cada nodo (enforce + ACL + TLS + cluster + backend de store). El meta-leader y el tamaño de quórum requieren el endpoint de monitoreo de NATS (gap conocido)."]})]})}function pp(n){hn.show({color:"red",title:"Error",message:n instanceof dp?n.message:String(n)})}function Q_(){const[n,a]=x.useState(null),[i,r]=x.useState(null),[s,u]=x.useState(!1),[d,m]=dm(!1),[p,h]=x.useState(null),S=x.useCallback(()=>{u(!0),il.listRooms().then(g=>{a(g),r(null)}).catch(g=>r(g.message)).finally(()=>u(!1))},[]);return x.useEffect(()=>{S()},[S]),v.jsxs(Zn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(gt,{gap:"sm",children:[v.jsx(eo,{order:3,children:"Rooms"}),n&&v.jsx(vt,{color:"brand",variant:"light",children:n.length})]}),v.jsxs(gt,{gap:"xs",children:[v.jsx(Ht,{label:"Refrescar",children:v.jsx(Gn,{variant:"light",color:"brand",onClick:S,loading:s,children:v.jsx(mp,{size:18})})}),v.jsx(en,{leftSection:v.jsx(pS,{size:16}),onClick:m.open,children:"Crear room"})]})]}),i&&v.jsx(Je,{c:"red",children:i}),!n&&!i&&v.jsx(dn,{color:"brand"}),n&&n.length===0&&v.jsx(Je,{c:"dimmed",children:"El admin no posee ni pertenece a ninguna room todavía."}),n&&n.length>0&&v.jsx(Pa,{withBorder:!0,bg:"dark.7",p:0,radius:"md",children:v.jsxs(de,{verticalSpacing:"sm",horizontalSpacing:"md",highlightOnHover:!0,children:[v.jsx(de.Thead,{children:v.jsxs(de.Tr,{children:[v.jsx(de.Th,{children:"Subject"}),v.jsx(de.Th,{children:"Modo"}),v.jsx(de.Th,{children:"Persist"}),v.jsx(de.Th,{children:"Firmado"}),v.jsx(de.Th,{children:"Epoch"}),v.jsx(de.Th,{children:"Rol"}),v.jsx(de.Th,{})]})}),v.jsx(de.Tbody,{children:n.map(g=>v.jsxs(de.Tr,{children:[v.jsxs(de.Td,{children:[v.jsx(Je,{fw:600,children:g.subject}),v.jsx(Je,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:er(g.room_id,14,4)})]}),v.jsx(de.Td,{children:g.encrypt?v.jsx(vt,{color:"teal",variant:"light",leftSection:v.jsx(A_,{size:12}),children:"E2E"}):v.jsx(vt,{color:"orange",variant:"light",leftSection:v.jsx(R_,{size:12}),children:"cleartext"})}),v.jsx(de.Td,{children:v.jsx(Je,{size:"sm",c:"dimmed",children:g.persist?"sí":"no"})}),v.jsx(de.Td,{children:v.jsx(Je,{size:"sm",c:"dimmed",children:g.sign_msgs?"sí":"no"})}),v.jsx(de.Td,{children:v.jsx(vt,{variant:"default",children:g.epoch})}),v.jsx(de.Td,{children:v.jsx(vt,{variant:"dot",color:g.role==="owner"?"brand":"gray",children:g.role})}),v.jsx(de.Td,{children:v.jsx(Ht,{label:"Ver miembros / claves",children:v.jsx(Gn,{variant:"subtle",color:"brand",onClick:()=>h(g),children:v.jsx(vS,{size:18})})})})]},g.room_id))})]})}),v.jsx(Z_,{opened:d,onClose:m.close,onCreated:S}),v.jsx(K_,{room:p,onClose:()=>h(null)})]})}function Z_({opened:n,onClose:a,onCreated:i}){const[r,s]=x.useState(""),[u,d]=x.useState(!0),[m,p]=x.useState(!0),[h,S]=x.useState(!0),[g,y]=x.useState(!1),w=async()=>{y(!0);try{const C=await il.createRoom({subject:r.trim(),encrypt:u,persist:m,sign_msgs:h});hn.show({color:"teal",title:"Room creada",message:`${C.subject} (${er(C.room_id,12,4)})`}),s(""),a(),i()}catch(C){pp(C)}finally{y(!1)}};return v.jsx(pn,{opened:n,onClose:a,title:"Crear room",centered:!0,children:v.jsxs(Zn,{gap:"md",children:[v.jsx(ya,{label:"Subject",description:"Identificador del canal en NATS (ej. team.general)",placeholder:"team.general",value:r,onChange:C=>s(C.currentTarget.value),"data-autofocus":!0}),v.jsx(Za,{label:"Cifrado de extremo a extremo (E2E)",description:"Recomendado. En despliegue público los nodos rechazan rooms en claro.",checked:u,onChange:C=>d(C.currentTarget.checked)}),v.jsx(Za,{label:"Persistente (JetStream / historial)",checked:m,onChange:C=>p(C.currentTarget.checked)}),v.jsx(Za,{label:"Mensajes firmados",checked:h,onChange:C=>S(C.currentTarget.checked)}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(en,{variant:"default",onClick:a,children:"Cancelar"}),v.jsx(en,{onClick:w,loading:g,disabled:r.trim().length===0,children:"Crear"})]})]})})}function K_({room:n,onClose:a}){const[i,r]=x.useState(null),[s,u]=x.useState(null),[d,m]=dm(!1),p=x.useCallback(()=>{n&&(r(null),u(null),il.listMembers(n.room_id).then(r).catch(S=>u(S.message)))},[n]);x.useEffect(()=>{p()},[p]);const h=async S=>{if(n&&window.confirm(`¿Expulsar a ${S}? Esto rota la clave de la room (epoch nuevo) y el expulsado deja de poder descifrar.`))try{await il.kick(n.room_id,S),hn.show({color:"teal",title:"Rekey",message:"Miembro expulsado y clave rotada"}),p()}catch(g){pp(g)}};return v.jsx(Qn,{opened:n!==null,onClose:a,position:"right",size:"lg",title:n?v.jsx(Je,{fw:700,children:n.subject}):"",children:n&&v.jsxs(Zn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(Je,{size:"sm",c:"dimmed",children:["epoch ",n.epoch," · ",n.encrypt?"E2E":"cleartext"]}),v.jsx(en,{size:"xs",leftSection:v.jsx(k_,{size:14}),onClick:m.open,disabled:n.role!=="owner",children:"Invitar"})]}),s&&v.jsx(Je,{c:"red",size:"sm",children:s}),!i&&!s&&v.jsx(dn,{color:"brand",size:"sm"}),i&&v.jsxs(de,{verticalSpacing:"xs",horizontalSpacing:"sm",children:[v.jsx(de.Thead,{children:v.jsxs(de.Tr,{children:[v.jsx(de.Th,{children:"Endpoint"}),v.jsx(de.Th,{children:"Rol"}),v.jsx(de.Th,{children:"sign_pub"}),v.jsx(de.Th,{})]})}),v.jsx(de.Tbody,{children:i.map(S=>v.jsxs(de.Tr,{children:[v.jsx(de.Td,{children:v.jsx(Je,{size:"sm",style:{fontFamily:"monospace"},children:er(S.endpoint,14,6)})}),v.jsx(de.Td,{children:v.jsx(vt,{size:"sm",variant:"dot",color:S.role==="owner"?"brand":"gray",children:S.role})}),v.jsx(de.Td,{children:v.jsx(Ht,{label:S.sign_pub,children:v.jsx(Je,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:er(S.sign_pub,10,6)})})}),v.jsx(de.Td,{children:S.role!=="owner"&&n.role==="owner"&&v.jsx(Ht,{label:"Expulsar + rekey",children:v.jsx(Gn,{variant:"subtle",color:"red",onClick:()=>h(S.endpoint),children:v.jsx(L_,{size:16})})})})]},S.endpoint))})]}),v.jsx(J_,{room:n,opened:d,onClose:m.close,onInvited:p})]})})}function J_({room:n,opened:a,onClose:i,onInvited:r}){const[s,u]=x.useState(""),[d,m]=x.useState(""),[p,h]=x.useState(""),[S,g]=x.useState(!1),y=async()=>{g(!0);try{await il.invite(n.room_id,{endpoint:s.trim(),sign_pub:d.trim(),kex_pub:p.trim()}),hn.show({color:"teal",title:"Invitado",message:"Clave de room sellada para el nuevo miembro"}),u(""),m(""),h(""),i(),r()}catch(C){pp(C)}finally{g(!1)}},w=d.trim().length===64&&p.trim().length===64;return v.jsx(pn,{opened:a,onClose:i,title:`Invitar a ${n.subject}`,centered:!0,children:v.jsxs(Zn,{gap:"sm",children:[v.jsx(Je,{size:"sm",c:"dimmed",children:"Para una room E2E la clave se sella contra la clave X25519 del invitado, por eso se piden ambas claves públicas (hex de 64 chars)."}),v.jsx(ya,{label:"Endpoint (opcional)",description:"Se deriva de sign_pub si se deja vacío",value:s,onChange:C=>u(C.currentTarget.value)}),v.jsx(ya,{label:"sign_pub (hex, 64)",value:d,onChange:C=>m(C.currentTarget.value),error:d.length>0&&d.trim().length!==64?"64 chars hex":void 0}),v.jsx(ya,{label:"kex_pub (hex, 64)",value:p,onChange:C=>h(C.currentTarget.value),error:p.length>0&&p.trim().length!==64?"64 chars hex":void 0}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(en,{variant:"default",onClick:i,children:"Cancelar"}),v.jsx(en,{onClick:y,loading:S,disabled:!w,children:"Invitar"})]})]})})}function gS(n){hn.show({color:"red",title:"Error",message:n instanceof dp?n.message:String(n)})}function F_({usersBackend:n}){const[a,i]=x.useState(null),[r,s]=x.useState(null),[u,d]=x.useState(!1),[m,p]=dm(!1),h=x.useCallback(()=>{d(!0),il.listUsers().then(g=>{i(g),s(null)}).catch(g=>s(g.message)).finally(()=>d(!1))},[]);x.useEffect(()=>{h()},[h]);const S=async g=>{if(window.confirm(`¿Revocar a "${g.handle}"? Pierde acceso al bus en AMBOS planos de inmediato (control y datos).`))try{await il.revokeUser(g.sign_pub),hn.show({color:"teal",title:"Revocado",message:g.handle}),h()}catch(y){gS(y)}};return v.jsxs(Zn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(gt,{gap:"sm",children:[v.jsx(eo,{order:3,children:"Users"}),a&&v.jsx(vt,{color:"brand",variant:"light",children:a.length}),v.jsx(Ht,{label:"Vía de gestión de la allowlist del bus",children:v.jsxs(vt,{variant:"outline",color:"teal",style:{textTransform:"none"},children:["backend: ",n]})})]}),v.jsxs(gt,{gap:"xs",children:[v.jsx(Ht,{label:"Refrescar",children:v.jsx(Gn,{variant:"light",color:"brand",onClick:h,loading:u,children:v.jsx(mp,{size:18})})}),v.jsx(en,{leftSection:v.jsx(pS,{size:16}),onClick:p.open,children:"Añadir user"})]})]}),r&&v.jsx(Je,{c:"red",children:r}),!a&&!r&&v.jsx(dn,{color:"brand"}),a&&v.jsx(Pa,{withBorder:!0,bg:"dark.7",p:0,radius:"md",children:v.jsxs(de,{verticalSpacing:"sm",horizontalSpacing:"md",highlightOnHover:!0,children:[v.jsx(de.Thead,{children:v.jsxs(de.Tr,{children:[v.jsx(de.Th,{children:"Handle"}),v.jsx(de.Th,{children:"Rol"}),v.jsx(de.Th,{children:"Estado"}),v.jsx(de.Th,{children:"sign_pub"}),v.jsx(de.Th,{children:"Creado"}),v.jsx(de.Th,{})]})}),v.jsx(de.Tbody,{children:a.map(g=>v.jsxs(de.Tr,{children:[v.jsx(de.Td,{children:v.jsx(Je,{fw:600,children:g.handle})}),v.jsx(de.Td,{children:v.jsx(vt,{variant:"dot",color:g.role==="admin"?"brand":"gray",children:g.role})}),v.jsx(de.Td,{children:v.jsx(vt,{variant:"light",color:g.status==="active"?"teal":"red",children:g.status})}),v.jsx(de.Td,{children:v.jsx(Ht,{label:g.sign_pub,children:v.jsx(Je,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:er(g.sign_pub,12,8)})})}),v.jsx(de.Td,{children:v.jsx(Je,{size:"xs",c:"dimmed",children:V_(g.created_at)})}),v.jsx(de.Td,{children:g.status==="active"&&v.jsx(Ht,{label:"Revocar acceso",children:v.jsx(Gn,{variant:"subtle",color:"red",onClick:()=>S(g),children:v.jsx($_,{size:16})})})})]},g.sign_pub))})]})}),v.jsx(W_,{opened:m,onClose:p.close,onAdded:h})]})}function W_({opened:n,onClose:a,onAdded:i}){const[r,s]=x.useState(""),[u,d]=x.useState(""),[m,p]=x.useState("member"),[h,S]=x.useState(!1),g=async()=>{S(!0);try{await il.addUser({handle:r.trim(),sign_pub:u.trim(),role:m}),hn.show({color:"teal",title:"User añadido",message:r}),s(""),d(""),p("member"),a(),i()}catch(w){gS(w)}finally{S(!1)}},y=r.trim().length>0&&u.trim().length===64;return v.jsx(pn,{opened:n,onClose:a,title:"Añadir user al bus",centered:!0,children:v.jsxs(Zn,{gap:"sm",children:[v.jsx(ya,{label:"Handle",placeholder:"ana",value:r,onChange:w=>s(w.currentTarget.value),"data-autofocus":!0}),v.jsx(ya,{label:"sign_pub (hex, 64)",description:"Clave pública Ed25519 del usuario (la misma que autentica control + datos)",placeholder:"48bc0dc8…",value:u,onChange:w=>d(w.currentTarget.value),error:u.length>0&&u.trim().length!==64?"64 chars hex":void 0}),v.jsx(sp,{label:"Rol",data:[{value:"member",label:"member"},{value:"admin",label:"admin"}],value:m,onChange:w=>p(w||"member"),allowDeselect:!1}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(en,{variant:"default",onClick:a,children:"Cancelar"}),v.jsx(en,{onClick:g,loading:h,disabled:!y,children:"Añadir"})]})]})})}const P_=[{key:"cluster",label:"Cluster",icon:hS,desc:"Salud y posture de los 3 nodos"},{key:"rooms",label:"Rooms",icon:N_,desc:"Salas, miembros, claves"},{key:"users",label:"Users",icon:vS,desc:"Allowlist del bus"}];function I_({me:n}){const[a,i]=x.useState("cluster");return v.jsxs(fn,{header:{height:56},navbar:{width:240,breakpoint:"sm"},padding:"md",styles:{main:{backgroundColor:"var(--mantine-color-dark-8)"}},children:[v.jsx(fn.Header,{bg:"dark.9",children:v.jsxs(gt,{h:"100%",px:"md",justify:"space-between",wrap:"nowrap",children:[v.jsxs(gt,{gap:"sm",wrap:"nowrap",children:[v.jsx(eu,{size:34,radius:"md",variant:"light",color:"brand",children:v.jsx(B_,{size:20})}),v.jsxs(ce,{children:[v.jsx(eo,{order:4,lh:1,children:"unibus · admin"}),v.jsx(Je,{size:"xs",c:"dimmed",children:"plano de control"})]})]}),v.jsxs(gt,{gap:"xs",wrap:"nowrap",children:[n.mock&&v.jsx(vt,{color:"yellow",variant:"light",children:"MOCK"}),v.jsx(Ht,{label:`endpoint ${n.endpoint}`,multiline:!0,children:v.jsx(vt,{color:"brand",variant:"light",style:{textTransform:"none"},children:er(n.endpoint,12,6)})})]})]})}),v.jsx(fn.Navbar,{bg:"dark.9",p:"xs",children:v.jsx(fl,{children:P_.map(r=>v.jsx(Jc,{active:a===r.key,label:r.label,description:r.desc,leftSection:v.jsx(r.icon,{size:18}),onClick:()=>i(r.key),variant:"filled",mb:4},r.key))})}),v.jsxs(fn.Main,{children:[a==="cluster"&&v.jsx(G_,{}),a==="rooms"&&v.jsx(Q_,{}),a==="users"&&v.jsx(F_,{usersBackend:n.users_backend})]})]})}function eA(){const[n,a]=x.useState(null),[i,r]=x.useState(null);return x.useEffect(()=>{il.me().then(a).catch(s=>r(s.message))},[]),i?v.jsx(mc,{h:"100vh",bg:"dark.9",children:v.jsxs(Zn,{align:"center",gap:"xs",children:[v.jsx(Je,{c:"red",children:"No se pudo contactar el gateway"}),v.jsx(Je,{c:"dimmed",size:"sm",children:i})]})}):n?v.jsx(I_,{me:n}):v.jsx(mc,{h:"100vh",bg:"dark.9",children:v.jsx(dn,{color:"brand"})})}Xw.createRoot(document.getElementById("root")).render(v.jsx(x.StrictMode,{children:v.jsxs(z0,{theme:E_,forceColorScheme:"dark",children:[v.jsx(dl,{position:"top-right"}),v.jsx(eA,{})]})})); diff --git a/web/dist/assets/index-Dg19WJJu.js b/web/dist/assets/index-Dg19WJJu.js new file mode 100644 index 0000000..982abb6 --- /dev/null +++ b/web/dist/assets/index-Dg19WJJu.js @@ -0,0 +1,191 @@ +var T2=Object.defineProperty;var R2=(n,l,o)=>l in n?T2(n,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[l]=o;var Vy=(n,l,o)=>R2(n,typeof l!="symbol"?l+"":l,o);function _2(n,l){for(var o=0;or[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(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"&&r(f)}).observe(document,{childList:!0,subtree:!0});function o(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 r(s){if(s.ep)return;s.ep=!0;const c=o(s);fetch(s.href,c)}})();function F0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ud={exports:{}},Ei={};/** + * @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 ky;function N2(){if(ky)return Ei;ky=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(r,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:r,key:f,ref:s!==void 0?s:null,props:c}}return Ei.Fragment=l,Ei.jsx=o,Ei.jsxs=o,Ei}var Yy;function j2(){return Yy||(Yy=1,Ud.exports=N2()),Ud.exports}var v=j2(),Vd={exports:{}},ze={};/** + * @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 A2(){if(Xy)return ze;Xy=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=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"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,j={};function N(A,H,Q){this.props=A,this.context=H,this.refs=j,this.updater=Q||C}N.prototype.isReactComponent={},N.prototype.setState=function(A,H){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,H,"setState")},N.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function E(){}E.prototype=N.prototype;function _(A,H,Q){this.props=A,this.context=H,this.refs=j,this.updater=Q||C}var D=_.prototype=new E;D.constructor=_,R(D,N.prototype),D.isPureReactComponent=!0;var L=Array.isArray;function U(){}var V={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function P(A,H,Q){var ee=Q.ref;return{$$typeof:n,type:A,key:H,ref:ee!==void 0?ee:null,props:Q}}function ae(A,H){return P(A.type,H,A.props)}function te(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function W(A){var H={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Q){return H[Q]})}var oe=/\/+/g;function K(A,H){return typeof A=="object"&&A!==null&&A.key!=null?W(""+A.key):H.toString(36)}function ie(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(U,U):(A.status="pending",A.then(function(H){A.status==="pending"&&(A.status="fulfilled",A.value=H)},function(H){A.status==="pending"&&(A.status="rejected",A.reason=H)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function O(A,H,Q,ee,se){var de=typeof A;(de==="undefined"||de==="boolean")&&(A=null);var pe=!1;if(A===null)pe=!0;else switch(de){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(A.$$typeof){case n:case l:pe=!0;break;case b:return pe=A._init,O(pe(A._payload),H,Q,ee,se)}}if(pe)return se=se(A),pe=ee===""?"."+K(A,0):ee,L(se)?(Q="",pe!=null&&(Q=pe.replace(oe,"$&/")+"/"),O(se,H,Q,"",function(He){return He})):se!=null&&(te(se)&&(se=ae(se,Q+(se.key==null||A&&A.key===se.key?"":(""+se.key).replace(oe,"$&/")+"/")+pe)),H.push(se)),1;pe=0;var _e=ee===""?".":ee+":";if(L(A))for(var Me=0;Me>>1,J=O[G];if(0>>1;Gs(Q,B))ees(se,Q)?(O[G]=se,O[ee]=B,G=ee):(O[G]=Q,O[H]=B,G=H);else if(ees(se,B))O[G]=se,O[ee]=B,G=ee;else break e}}return M}function s(O,M){var B=O.sortIndex-M.sortIndex;return B!==0?B:O.id-M.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 h=[],p=[],b=1,g=null,y=3,w=!1,C=!1,R=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function D(O){for(var M=o(p);M!==null;){if(M.callback===null)r(p);else if(M.startTime<=O)r(p),M.sortIndex=M.expirationTime,l(h,M);else break;M=o(p)}}function L(O){if(R=!1,D(O),!C)if(o(h)!==null)C=!0,U||(U=!0,W());else{var M=o(p);M!==null&&ie(L,M.startTime-O)}}var U=!1,V=-1,k=5,P=-1;function ae(){return j?!0:!(n.unstable_now()-PO&&ae());){var G=g.callback;if(typeof G=="function"){g.callback=null,y=g.priorityLevel;var J=G(g.expirationTime<=O);if(O=n.unstable_now(),typeof J=="function"){g.callback=J,D(O),M=!0;break t}g===o(h)&&r(h),D(O)}else r(h);g=o(h)}if(g!==null)M=!0;else{var A=o(p);A!==null&&ie(L,A.startTime-O),M=!1}}break e}finally{g=null,y=B,w=!1}M=void 0}}finally{M?W():U=!1}}}var W;if(typeof _=="function")W=function(){_(te)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,K=oe.port2;oe.port1.onmessage=te,W=function(){K.postMessage(null)}}else W=function(){N(te,0)};function ie(O,M){V=N(function(){O(n.unstable_now())},M)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125G?(O.sortIndex=B,l(p,O),o(h)===null&&O===o(p)&&(R?(E(V),V=-1):R=!0,ie(L,B-G))):(O.sortIndex=J,l(h,O),C||w||(C=!0,U||(U=!0,W()))),O},n.unstable_shouldYield=ae,n.unstable_wrapCallback=function(O){var M=y;return function(){var B=y;y=M;try{return O.apply(this,arguments)}finally{y=B}}}})(Xd)),Xd}var Zy;function M2(){return Zy||(Zy=1,Yd.exports=O2()),Yd.exports}var qd={exports:{}},Jt={};/** + * @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 Qy;function D2(){if(Qy)return Jt;Qy=1;var n=km();function l(h){var p="https://react.dev/errors/"+h;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),qd.exports=D2(),qd.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 Iy;function z2(){if(Iy)return Ti;Iy=1;var n=M2(),l=km(),o=P0();function r(e){var t="https://react.dev/errors/"+e;if(1J||(e.current=G[J],G[J]=null,J--)}function Q(e,t){J++,G[J]=e.current,e.current=t}var ee=A(null),se=A(null),de=A(null),pe=A(null);function _e(e,t){switch(Q(de,t),Q(se,e),Q(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?cy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=cy(t),e=uy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(ee),Q(ee,e)}function Me(){H(ee),H(se),H(de)}function He(e){e.memoizedState!==null&&Q(pe,e);var t=ee.current,a=uy(t,e.type);t!==a&&(Q(se,e),Q(ee,a))}function st(e){se.current===e&&(H(ee),H(se)),pe.current===e&&(H(pe),Si._currentValue=B)}var je,Qe;function $e(e){if(je===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);je=t&&t[1]||"",Qe=-1)":-1u||z[i]!==q[u]){var ne=` +`+z[i].replace(" at new "," at ");return e.displayName&&ne.includes("")&&(ne=ne.replace("",e.displayName)),ne}while(1<=i&&0<=u);break}}}finally{Ce=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?$e(a):""}function me(e,t){switch(e.tag){case 26:case 27:case 5:return $e(e.type);case 16:return $e("Lazy");case 13:return e.child!==t&&t!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return ct(e.type,!1);case 11:return ct(e.type.render,!1);case 1:return ct(e.type,!0);case 31:return $e("Activity");default:return""}}function he(e){try{var t="",a=null;do t+=me(e,a),a=e,e=e.return;while(e);return t}catch(i){return` +Error generating stack: `+i.message+` +`+i.stack}}var Ee=Object.prototype.hasOwnProperty,Ae=n.unstable_scheduleCallback,Ye=n.unstable_cancelCallback,Oe=n.unstable_shouldYield,be=n.unstable_requestPaint,Ue=n.unstable_now,xe=n.unstable_getCurrentPriorityLevel,Te=n.unstable_ImmediatePriority,yt=n.unstable_UserBlockingPriority,Ve=n.unstable_NormalPriority,Cn=n.unstable_LowPriority,En=n.unstable_IdlePriority,Ut=n.log,qt=n.unstable_setDisableYieldValue,jt=null,ut=null;function Ie(e){if(typeof Ut=="function"&&qt(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(jt,e)}catch{}}var tt=Math.clz32?Math.clz32:Tr,aa=Math.log,Er=Math.LN2;function Tr(e){return e>>>=0,e===0?32:31-(aa(e)/Er|0)|0}var il=256,Aa=262144,dt=4194304;function wt(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 Tn(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,d=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var T=i&134217727;return T!==0?(i=T&~d,i!==0?u=wt(i):(S&=T,S!==0?u=wt(S):a||(a=T&~e,a!==0&&(u=wt(a))))):(T=i&~d,T!==0?u=wt(T):S!==0?u=wt(S):a||(a=i&~e,a!==0&&(u=wt(a)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:u}function Yl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ve(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 Se(){var e=dt;return dt<<=1,(dt&62914560)===0&&(dt=4194304),e}function Bt(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Rn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function un(e,t,a,i,u,d){var S=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var T=e.entanglements,z=e.expirationTimes,q=e.hiddenUpdates;for(a=S&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var bx=/[\n"\\]/g;function Vn(e){return e.replace(bx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mu(e,t,a,i,u,d,S,T){e.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.type=S:e.removeAttribute("type"),t!=null?S==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Un(t)):e.value!==""+Un(t)&&(e.value=""+Un(t)):S!=="submit"&&S!=="reset"||e.removeAttribute("value"),t!=null?Du(e,S,Un(t)):a!=null?Du(e,S,Un(a)):i!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.name=""+Un(T):e.removeAttribute("name")}function ap(e,t,a,i,u,d,S,T){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Ou(e);return}a=a!=null?""+Un(a):"",t=t!=null?""+Un(t):a,T||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=T?e.checked:!!i,e.defaultChecked=!!i,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(e.name=S),Ou(e)}function Du(e,t,a){t==="number"&&ts(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Or(e,t,a,i){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$u=!1;if(Da)try{var $o={};Object.defineProperty($o,"passive",{get:function(){$u=!0}}),window.addEventListener("test",$o,$o),window.removeEventListener("test",$o,$o)}catch{$u=!1}var sl=null,Uu=null,as=null;function up(){if(as)return as;var e,t=Uu,a=t.length,i,u="value"in sl?sl.value:sl.textContent,d=u.length;for(e=0;e=ko),vp=" ",gp=!1;function yp(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Br=!1;function Ix(e,t){switch(e){case"compositionend":return bp(t);case"keypress":return t.which!==32?null:(gp=!0,vp);case"textInput":return e=t.data,e===vp&&gp?null:e;default:return null}}function Fx(e,t){if(Br)return e==="compositionend"||!qu&&yp(e,t)?(e=up(),as=Uu=sl=null,Br=!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)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=_p(a)}}function jp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ap(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ts(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ts(e.document)}return t}function Qu(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 lw=Da&&"documentMode"in document&&11>=document.documentMode,Lr=null,Ku=null,Go=null,Iu=!1;function Op(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Iu||Lr==null||Lr!==ts(i)||(i=Lr,"selectionStart"in i&&Qu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Go&&qo(Go,i)||(Go=i,i=Fs(Ku,"onSelect"),0>=S,u-=S,ha=1<<32-tt(t)+u|a<Le?(Ze=we,we=null):Ze=we.sibling;var Je=Z(Y,we,X[Le],le);if(Je===null){we===null&&(we=Ze);break}e&&we&&Je.alternate===null&&t(Y,we),$=d(Je,$,Le),Fe===null?Re=Je:Fe.sibling=Je,Fe=Je,we=Ze}if(Le===X.length)return a(Y,we),Ke&&Ba(Y,Le),Re;if(we===null){for(;LeLe?(Ze=we,we=null):Ze=we.sibling;var Al=Z(Y,we,Je.value,le);if(Al===null){we===null&&(we=Ze);break}e&&we&&Al.alternate===null&&t(Y,we),$=d(Al,$,Le),Fe===null?Re=Al:Fe.sibling=Al,Fe=Al,we=Ze}if(Je.done)return a(Y,we),Ke&&Ba(Y,Le),Re;if(we===null){for(;!Je.done;Le++,Je=X.next())Je=re(Y,Je.value,le),Je!==null&&($=d(Je,$,Le),Fe===null?Re=Je:Fe.sibling=Je,Fe=Je);return Ke&&Ba(Y,Le),Re}for(we=i(we);!Je.done;Le++,Je=X.next())Je=I(we,Y,Le,Je.value,le),Je!==null&&(e&&Je.alternate!==null&&we.delete(Je.key===null?Le:Je.key),$=d(Je,$,Le),Fe===null?Re=Je:Fe.sibling=Je,Fe=Je);return e&&we.forEach(function(E2){return t(Y,E2)}),Ke&&Ba(Y,Le),Re}function it(Y,$,X,le){if(typeof X=="object"&&X!==null&&X.type===R&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case w:e:{for(var Re=X.key;$!==null;){if($.key===Re){if(Re=X.type,Re===R){if($.tag===7){a(Y,$.sibling),le=u($,X.props.children),le.return=Y,Y=le;break e}}else if($.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===k&&Wl(Re)===$.type){a(Y,$.sibling),le=u($,X.props),Jo(le,X),le.return=Y,Y=le;break e}a(Y,$);break}else t(Y,$);$=$.sibling}X.type===R?(le=Kl(X.props.children,Y.mode,le,X.key),le.return=Y,Y=le):(le=ms(X.type,X.key,X.props,null,Y.mode,le),Jo(le,X),le.return=Y,Y=le)}return S(Y);case C:e:{for(Re=X.key;$!==null;){if($.key===Re)if($.tag===4&&$.stateNode.containerInfo===X.containerInfo&&$.stateNode.implementation===X.implementation){a(Y,$.sibling),le=u($,X.children||[]),le.return=Y,Y=le;break e}else{a(Y,$);break}else t(Y,$);$=$.sibling}le=nf(X,Y.mode,le),le.return=Y,Y=le}return S(Y);case k:return X=Wl(X),it(Y,$,X,le)}if(ie(X))return ye(Y,$,X,le);if(W(X)){if(Re=W(X),typeof Re!="function")throw Error(r(150));return X=Re.call(X),Ne(Y,$,X,le)}if(typeof X.then=="function")return it(Y,$,Ss(X),le);if(X.$$typeof===_)return it(Y,$,vs(Y,X),le);xs(Y,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,$!==null&&$.tag===6?(a(Y,$.sibling),le=u($,X),le.return=Y,Y=le):(a(Y,$),le=tf(X,Y.mode,le),le.return=Y,Y=le),S(Y)):a(Y,$)}return function(Y,$,X,le){try{Fo=0;var Re=it(Y,$,X,le);return Qr=null,Re}catch(we){if(we===Zr||we===ys)throw we;var Fe=Nn(29,we,null,Y.mode);return Fe.lanes=le,Fe.return=Y,Fe}finally{}}}var tr=ev(!0),tv=ev(!1),ml=!1;function pf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vf(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 hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pl(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(et&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=ds(e),$p(e,null,a),t}return fs(e,i,t,a),ds(e)}function Po(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,bt(e,a)}}function gf(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var u=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var S={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?u=d=S:d=d.next=S,a=a.next}while(a!==null);d===null?u=d=t:d=d.next=t}else u=d=t;a={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var yf=!1;function Wo(){if(yf){var e=Gr;if(e!==null)throw e}}function ei(e,t,a,i){yf=!1;var u=e.updateQueue;ml=!1;var d=u.firstBaseUpdate,S=u.lastBaseUpdate,T=u.shared.pending;if(T!==null){u.shared.pending=null;var z=T,q=z.next;z.next=null,S===null?d=q:S.next=q,S=z;var ne=e.alternate;ne!==null&&(ne=ne.updateQueue,T=ne.lastBaseUpdate,T!==S&&(T===null?ne.firstBaseUpdate=q:T.next=q,ne.lastBaseUpdate=z))}if(d!==null){var re=u.baseState;S=0,ne=q=z=null,T=d;do{var Z=T.lane&-536870913,I=Z!==T.lane;if(I?(Ge&Z)===Z:(i&Z)===Z){Z!==0&&Z===qr&&(yf=!0),ne!==null&&(ne=ne.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var ye=e,Ne=T;Z=t;var it=a;switch(Ne.tag){case 1:if(ye=Ne.payload,typeof ye=="function"){re=ye.call(it,re,Z);break e}re=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Ne.payload,Z=typeof ye=="function"?ye.call(it,re,Z):ye,Z==null)break e;re=g({},re,Z);break e;case 2:ml=!0}}Z=T.callback,Z!==null&&(e.flags|=64,I&&(e.flags|=8192),I=u.callbacks,I===null?u.callbacks=[Z]:I.push(Z))}else I={lane:Z,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ne===null?(q=ne=I,z=re):ne=ne.next=I,S|=Z;if(T=T.next,T===null){if(T=u.shared.pending,T===null)break;I=T,T=I.next,I.next=null,u.lastBaseUpdate=I,u.shared.pending=null}}while(!0);ne===null&&(z=re),u.baseState=z,u.firstBaseUpdate=q,u.lastBaseUpdate=ne,d===null&&(u.shared.lanes=0),Sl|=S,e.lanes=S,e.memoizedState=re}}function nv(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function av(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ed?d:8;var S=O.T,T={};O.T=T,Hf(e,!1,t,a);try{var z=u(),q=O.S;if(q!==null&&q(T,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ne=mw(z,i);ai(e,t,ne,Dn(e))}else ai(e,t,i,Dn(e))}catch(re){ai(e,t,{then:function(){},status:"rejected",reason:re},Dn())}finally{M.p=d,S!==null&&T.types!==null&&(S.types=T.types),O.T=S}}function bw(){}function Bf(e,t,a,i){if(e.tag!==5)throw Error(r(476));var u=Bv(e).queue;zv(e,u,t,B,a===null?bw:function(){return Lv(e),a(i)})}function Bv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:B},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lv(e){var t=Bv(e);t.next===null&&(t=e.alternate.memoizedState),ai(e,t.next.queue,{},Dn())}function Lf(){return Zt(Si)}function Hv(){return Nt().memoizedState}function $v(){return Nt().memoizedState}function Sw(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Dn();e=hl(a);var i=pl(t,e,a);i!==null&&(bn(i,t,a),Po(i,t,a)),t={cache:ff()},e.payload=t;return}t=t.return}}function xw(e,t,a){var i=Dn();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Os(e)?Vv(t,a):(a=Wu(e,t,a,i),a!==null&&(bn(a,e,i),kv(a,t,i)))}function Uv(e,t,a){var i=Dn();ai(e,t,a,i)}function ai(e,t,a,i){var u={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Os(e))Vv(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var S=t.lastRenderedState,T=d(S,a);if(u.hasEagerState=!0,u.eagerState=T,_n(T,S))return fs(e,t,u,0),ft===null&&us(),!1}catch{}finally{}if(a=Wu(e,t,u,i),a!==null)return bn(a,e,i),kv(a,t,i),!0}return!1}function Hf(e,t,a,i){if(i={lane:2,revertLane:pd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Os(e)){if(t)throw Error(r(479))}else t=Wu(e,a,i,2),t!==null&&bn(t,e,2)}function Os(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function Vv(e,t){Ir=Es=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function kv(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,bt(e,a)}}var li={readContext:Zt,use:_s,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};li.useEffectEvent=Ct;var Yv={readContext:Zt,use:_s,useCallback:function(e,t){return an().memoizedState=[e,t===void 0?null:t],e},useContext:Zt,useEffect:Tv,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,js(4194308,4,jv.bind(null,t,e),a)},useLayoutEffect:function(e,t){return js(4194308,4,e,t)},useInsertionEffect:function(e,t){js(4,2,e,t)},useMemo:function(e,t){var a=an();t=t===void 0?null:t;var i=e();if(nr){Ie(!0);try{e()}finally{Ie(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=an();if(a!==void 0){var u=a(t);if(nr){Ie(!0);try{a(t)}finally{Ie(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=xw.bind(null,Be,e),[i.memoizedState,e]},useRef:function(e){var t=an();return e={current:e},t.memoizedState=e},useState:function(e){e=Af(e);var t=e.queue,a=Uv.bind(null,Be,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Df,useDeferredValue:function(e,t){var a=an();return zf(a,e,t)},useTransition:function(){var e=Af(!1);return e=zv.bind(null,Be,e.queue,!0,!1),an().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Be,u=an();if(Ke){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),ft===null)throw Error(r(349));(Ge&127)!==0||cv(i,t,a)}u.memoizedState=a;var d={value:a,getSnapshot:t};return u.queue=d,Tv(fv.bind(null,i,d,e),[e]),i.flags|=2048,Jr(9,{destroy:void 0},uv.bind(null,i,d,a,t),null),a},useId:function(){var e=an(),t=ft.identifierPrefix;if(Ke){var a=pa,i=ha;a=(i&~(1<<32-tt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ts++,0<\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?S.createElement("select",{is:i.is}):S.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?S.createElement(u,{is:i.is}):S.createElement(u)}}d[Lt]=t,d[mn]=i;e:for(S=t.child;S!==null;){if(S.tag===5||S.tag===6)d.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===t)break e;for(;S.sibling===null;){if(S.return===null||S.return===t)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}t.stateNode=d;e:switch(Kt(d,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ka(t)}}return pt(t),Jf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ka(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=de.current,Yr(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,u=Gt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[Lt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||iy(e.nodeValue,a)),e||fl(t,!0)}else e=Js(e).createTextNode(i),e[Lt]=t,t.stateNode=e}return pt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=Yr(t),a!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Lt]=t}else Il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pt(t),e=!1}else a=of(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(An(t),t):(An(t),null);if((t.flags&128)!==0)throw Error(r(558))}return pt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Yr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[Lt]=t}else Il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pt(t),u=!1}else u=of(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(An(t),t):(An(t),null)}return An(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==u&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ls(t,t.updateQueue),pt(t),null);case 4:return Me(),e===null&&bd(t.stateNode.containerInfo),pt(t),null;case 10:return Ha(t.type),pt(t),null;case 19:if(H(_t),i=t.memoizedState,i===null)return pt(t),null;if(u=(t.flags&128)!==0,d=i.rendering,d===null)if(u)oi(i,!1);else{if(Et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Cs(e),d!==null){for(t.flags|=128,oi(i,!1),e=d.updateQueue,t.updateQueue=e,Ls(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Up(a,e),a=a.sibling;return Q(_t,_t.current&1|2),Ke&&Ba(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ue()>ks&&(t.flags|=128,u=!0,oi(i,!1),t.lanes=4194304)}else{if(!u)if(e=Cs(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Ls(t,e),oi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ke)return pt(t),null}else 2*Ue()-i.renderingStartTime>ks&&a!==536870912&&(t.flags|=128,u=!0,oi(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ue(),e.sibling=null,a=_t.current,Q(_t,u?a&1|2:a&1),Ke&&Ba(t,i.treeForkCount),e):(pt(t),null);case 22:case 23:return An(t),Sf(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),a=t.updateQueue,a!==null&&Ls(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&H(Pl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ha(At),pt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Rw(e,t){switch(lf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ha(At),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return st(t),null;case 31:if(t.memoizedState!==null){if(An(t),t.alternate===null)throw Error(r(340));Il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(An(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(_t),null;case 4:return Me(),null;case 10:return Ha(t.type),null;case 22:case 23:return An(t),Sf(),e!==null&&H(Pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ha(At),null;case 25:return null;default:return null}}function dg(e,t){switch(lf(t),t.tag){case 3:Ha(At),Me();break;case 26:case 27:case 5:st(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&An(t);break;case 13:An(t);break;case 19:H(_t);break;case 10:Ha(t.type);break;case 22:case 23:An(t),Sf(),e!==null&&H(Pl);break;case 24:Ha(At)}}function ii(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){i=void 0;var d=a.create,S=a.inst;i=d(),S.destroy=i}a=a.next}while(a!==u)}}catch(T){at(t,t.return,T)}}function yl(e,t,a){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var d=u.next;i=d;do{if((i.tag&e)===e){var S=i.inst,T=S.destroy;if(T!==void 0){S.destroy=void 0,u=t;var z=a,q=T;try{q()}catch(ne){at(u,z,ne)}}}i=i.next}while(i!==d)}}catch(ne){at(t,t.return,ne)}}function mg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{av(t,a)}catch(i){at(e,e.return,i)}}}function hg(e,t,a){a.props=ar(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){at(e,t,i)}}function si(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(u){at(e,t,u)}}function va(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(u){at(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){at(e,t,u)}else a.current=null}function pg(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(u){at(e,e.return,u)}}function Pf(e,t,a){try{var i=e.stateNode;Kw(i,e.type,a,t),i[mn]=t}catch(u){at(e,e.return,u)}}function vg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Wf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vg(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&&Tl(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 ed(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Ma));else if(i!==4&&(i===27&&Tl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ed(e,t,a),e=e.sibling;e!==null;)ed(e,t,a),e=e.sibling}function Hs(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Tl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hs(e,t,a),e=e.sibling;e!==null;)Hs(e,t,a),e=e.sibling}function gg(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Kt(t,i,a),t[Lt]=e,t[mn]=a}catch(d){at(e,e.return,d)}}var Ya=!1,Dt=!1,td=!1,yg=typeof WeakSet=="function"?WeakSet:Set,kt=null;function _w(e,t){if(e=e.containerInfo,wd=lc,e=Ap(e),Qu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var u=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var S=0,T=-1,z=-1,q=0,ne=0,re=e,Z=null;t:for(;;){for(var I;re!==a||u!==0&&re.nodeType!==3||(T=S+u),re!==d||i!==0&&re.nodeType!==3||(z=S+i),re.nodeType===3&&(S+=re.nodeValue.length),(I=re.firstChild)!==null;)Z=re,re=I;for(;;){if(re===e)break t;if(Z===a&&++q===u&&(T=S),Z===d&&++ne===i&&(z=S),(I=re.nextSibling)!==null)break;re=Z,Z=re.parentNode}re=I}a=T===-1||z===-1?null:{start:T,end:z}}else a=null}a=a||{start:0,end:0}}else a=null;for(Cd={focusedElem:e,selectionRange:a},lc=!1,kt=t;kt!==null;)if(t=kt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,kt=e;else for(;kt!==null;){switch(t=kt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a title"))),Kt(d,i,a),d[Lt]=e,Vt(d),i=d;break e;case"link":var S=Ey("link","href",u).get(i+(a.href||""));if(S){for(var T=0;Tit&&(S=it,it=Ne,Ne=S);var Y=Np(T,Ne),$=Np(T,it);if(Y&&$&&(I.rangeCount!==1||I.anchorNode!==Y.node||I.anchorOffset!==Y.offset||I.focusNode!==$.node||I.focusOffset!==$.offset)){var X=re.createRange();X.setStart(Y.node,Y.offset),I.removeAllRanges(),Ne>it?(I.addRange(X),I.extend($.node,$.offset)):(X.setEnd($.node,$.offset),I.addRange(X))}}}}for(re=[],I=T;I=I.parentNode;)I.nodeType===1&&re.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;Ta?32:a,O.T=null,a=sd,sd=null;var d=wl,S=Qa;if(Ht=0,no=wl=null,Qa=0,(et&6)!==0)throw Error(r(331));var T=et;if(et|=4,jg(d.current),Rg(d,d.current,S,a),et=T,hi(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(jt,d)}catch{}return!0}finally{M.p=u,O.T=i,Qg(e,t)}}function Ig(e,t,a){t=Yn(a,t),t=kf(e.stateNode,t,2),e=pl(e,t,2),e!==null&&(Rn(e,2),ga(e))}function at(e,t,a){if(e.tag===3)Ig(e,e,a);else for(;t!==null;){if(t.tag===3){Ig(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(xl===null||!xl.has(i))){e=Yn(a,e),a=Fv(2),i=pl(t,a,2),i!==null&&(Jv(a,i,t,e),Rn(i,2),ga(i));break}}t=t.return}}function dd(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new Aw;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(a)||(ld=!0,u.add(a),e=Bw.bind(null,e,t,a),t.then(e,e))}function Bw(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ft===e&&(Ge&a)===a&&(Et===4||Et===3&&(Ge&62914560)===Ge&&300>Ue()-Vs?(et&2)===0&&ao(e,0):rd|=a,to===Ge&&(to=0)),ga(e)}function Fg(e,t){t===0&&(t=Se()),e=Ql(e,t),e!==null&&(Rn(e,t),ga(e))}function Lw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Fg(e,a)}function Hw(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),Fg(e,a)}function $w(e,t){return Ae(e,t)}var Qs=null,ro=null,md=!1,Ks=!1,hd=!1,El=0;function ga(e){e!==ro&&e.next===null&&(ro===null?Qs=ro=e:ro=ro.next=e),Ks=!0,md||(md=!0,Vw())}function hi(e,t){if(!hd&&Ks){hd=!0;do for(var a=!1,i=Qs;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var d=0;else{var S=i.suspendedLanes,T=i.pingedLanes;d=(1<<31-tt(42|e)+1)-1,d&=u&~(S&~T),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,ey(i,d))}else d=Ge,d=Tn(i,i===ft?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||Yl(i,d)||(a=!0,ey(i,d));i=i.next}while(a);hd=!1}}function Uw(){Jg()}function Jg(){Ks=md=!1;var e=0;El!==0&&Fw()&&(e=El);for(var t=Ue(),a=null,i=Qs;i!==null;){var u=i.next,d=Pg(i,t);d===0?(i.next=null,a===null?Qs=u:a.next=u,u===null&&(ro=a)):(a=i,(e!==0||(d&3)!==0)&&(Ks=!0)),i=u}Ht!==0&&Ht!==5||hi(e),El!==0&&(El=0)}function Pg(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0T)break;var ne=z.transferSize,re=z.initiatorType;ne&&sy(re)&&(z=z.responseEnd,S+=ne*(z"u"?null:document;function Sy(e,t,a){var i=oo;if(i&&typeof t=="string"&&t){var u=Vn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),by.has(u)||(by.add(u),e={rel:e,crossOrigin:a,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),Kt(t,"link",e),Vt(t),i.head.appendChild(t)))}}function r2(e){Ka.D(e),Sy("dns-prefetch",e,null)}function o2(e,t){Ka.C(e,t),Sy("preconnect",e,t)}function i2(e,t,a){Ka.L(e,t,a);var i=oo;if(i&&e&&t){var u='link[rel="preload"][as="'+Vn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Vn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Vn(a.imageSizes)+'"]')):u+='[href="'+Vn(e)+'"]';var d=u;switch(t){case"style":d=io(e);break;case"script":d=so(e)}Kn.has(d)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Kn.set(d,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(yi(d))||t==="script"&&i.querySelector(bi(d))||(t=i.createElement("link"),Kt(t,"link",e),Vt(t),i.head.appendChild(t)))}}function s2(e,t){Ka.m(e,t);var a=oo;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Vn(i)+'"][href="'+Vn(e)+'"]',d=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=so(e)}if(!Kn.has(d)&&(e=g({rel:"modulepreload",href:e},t),Kn.set(d,e),a.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(bi(d)))return}i=a.createElement("link"),Kt(i,"link",e),Vt(i),a.head.appendChild(i)}}}function c2(e,t,a){Ka.S(e,t,a);var i=oo;if(i&&e){var u=jr(i).hoistableStyles,d=io(e);t=t||"default";var S=u.get(d);if(!S){var T={loading:0,preload:null};if(S=i.querySelector(yi(d)))T.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Kn.get(d))&&Ad(e,a);var z=S=i.createElement("link");Vt(z),Kt(z,"link",e),z._p=new Promise(function(q,ne){z.onload=q,z.onerror=ne}),z.addEventListener("load",function(){T.loading|=1}),z.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Ws(S,t,i)}S={type:"stylesheet",instance:S,count:1,state:T},u.set(d,S)}}}function u2(e,t){Ka.X(e,t);var a=oo;if(a&&e){var i=jr(a).hoistableScripts,u=so(e),d=i.get(u);d||(d=a.querySelector(bi(u)),d||(e=g({src:e,async:!0},t),(t=Kn.get(u))&&Od(e,t),d=a.createElement("script"),Vt(d),Kt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}}function f2(e,t){Ka.M(e,t);var a=oo;if(a&&e){var i=jr(a).hoistableScripts,u=so(e),d=i.get(u);d||(d=a.querySelector(bi(u)),d||(e=g({src:e,async:!0,type:"module"},t),(t=Kn.get(u))&&Od(e,t),d=a.createElement("script"),Vt(d),Kt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}}function xy(e,t,a,i){var u=(u=de.current)?Ps(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=io(a.href),a=jr(u).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=io(a.href);var d=jr(u).hoistableStyles,S=d.get(e);if(S||(u=u.ownerDocument||u,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,S),(d=u.querySelector(yi(e)))&&!d._p&&(S.instance=d,S.state.loading=5),Kn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Kn.set(e,a),d||d2(u,e,a,S.state))),t&&i===null)throw Error(r(528,""));return S}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=so(a),a=jr(u).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function io(e){return'href="'+Vn(e)+'"'}function yi(e){return'link[rel="stylesheet"]['+e+"]"}function wy(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function d2(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Kt(t,"link",a),Vt(t),e.head.appendChild(t))}function so(e){return'[src="'+Vn(e)+'"]'}function bi(e){return"script[async]"+e}function Cy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Vn(a.href)+'"]');if(i)return t.instance=i,Vt(i),i;var u=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Vt(i),Kt(i,"style",u),Ws(i,a.precedence,e),t.instance=i;case"stylesheet":u=io(a.href);var d=e.querySelector(yi(u));if(d)return t.state.loading|=4,t.instance=d,Vt(d),d;i=wy(a),(u=Kn.get(u))&&Ad(i,u),d=(e.ownerDocument||e).createElement("link"),Vt(d);var S=d;return S._p=new Promise(function(T,z){S.onload=T,S.onerror=z}),Kt(d,"link",i),t.state.loading|=4,Ws(d,a.precedence,e),t.instance=d;case"script":return d=so(a.src),(u=e.querySelector(bi(d)))?(t.instance=u,Vt(u),u):(i=a,(u=Kn.get(d))&&(i=g({},a),Od(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),Vt(u),Kt(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ws(i,a.precedence,e));return t.instance}function Ws(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,d=u,S=0;S title"):null)}function m2(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ry(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function h2(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=io(i.href),d=t.querySelector(yi(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,Vt(d);return}d=t.ownerDocument||t,i=wy(i),(u=Kn.get(u))&&Ad(i,u),d=d.createElement("link"),Vt(d);var S=d;S._p=new Promise(function(T,z){S.onload=T,S.onerror=z}),Kt(d,"link",i),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=tc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Md=0;function p2(e,t){return e.stylesheets&&e.count===0&&ac(e,e.stylesheets),0Md?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ac(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var nc=null;function ac(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,nc=new Map,t.forEach(v2,e),nc=null,tc.call(e))}function v2(e,t){if(!(t.state.loading&4)){var a=nc.get(e);if(a)var i=a.get(null);else{a=new Map,nc.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),kd.exports=z2(),kd.exports}var L2=B2();function Ft(n){return Object.keys(n)}function Gd(n){return n&&typeof n=="object"&&!Array.isArray(n)}function Ym(n,l){const o={...n},r=l;return Gd(n)&&Gd(l)&&Object.keys(l).forEach(s=>{Gd(r[s])&&s in n?o[s]=Ym(o[s],r[s]):o[s]=r[s]}),o}function H2(n){return n.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`)}function $2(n){var l;return typeof n!="string"||!n.includes("var(--mantine-scale)")?n:(l=n.match(/^calc\((.*?)\)$/))==null?void 0:l[1].split("*")[0].trim()}function vm(n){const l=$2(n);return typeof l=="number"?l:typeof l=="string"?l.includes("calc")||l.includes("var")?l:l.includes("px")?Number(l.replace("px","")):l.includes("rem")?Number(l.replace("rem",""))*16:l.includes("em")?Number(l.replace("em",""))*16:Number(l):NaN}function Jy(n){return n==="0rem"?"0rem":`calc(${n} * var(--mantine-scale))`}function W0(n,{shouldScale:l=!1}={}){function o(r){if(r===0||r==="0")return`0${n}`;if(typeof r=="number"){const s=`${r/16}${n}`;return l?Jy(s):s}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(c=>o(c)).join(",");if(r.includes(" "))return r.split(" ").map(c=>o(c)).join(" ");const s=r.replace("px","");if(!Number.isNaN(Number(s))){const c=`${Number(s)/16}${n}`;return l?Jy(c):c}}return r}return o}const F=W0("rem",{shouldScale:!0}),_c=W0("em");function Xm(n){return Object.keys(n).reduce((l,o)=>(n[o]!==void 0&&(l[o]=n[o]),l),{})}function eb(n){if(typeof n=="number")return!0;if(typeof n=="string"){if(n.startsWith("calc(")||n.startsWith("var(")||n.includes(" ")&&n.trim()!=="")return!0;const l=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return n.trim().split(/\s+/).every(o=>l.test(o))}return!1}function tb(n){return Array.isArray(n)||n===null?!1:typeof n=="object"?n.type!==x.Fragment:!1}function Ea(n){const l=x.createContext(null);return[l,()=>{const r=x.use(l);if(r===null)throw new Error(n);return r}]}const U2={app:100,modal:200,popover:300,overlay:400,max:9999};function on(n){return U2[n]}const gm=()=>{};function V2(n,l={active:!0}){return typeof n!="function"||!l.active?l.onKeyDown||gm:o=>{var r;o.key==="Escape"&&(n(o),(r=l.onTrigger)==null||r.call(l))}}function Pe(n,l="size",o=!0){if(n!==void 0)return eb(n)?o?F(n):n:`var(--${l}-${n})`}function el(n){return Pe(n,"mantine-spacing")}function Xt(n){return n===void 0?"var(--mantine-radius-default)":Pe(n,"mantine-radius")}function Wt(n){return Pe(n,"mantine-font-size")}function k2(n){return Pe(n,"mantine-line-height",!1)}function qm(n){if(n)return Pe(n,"mantine-shadow",!1)}function Py(n,l){return o=>{n==null||n(o),l==null||l(o)}}function Gm(n,l){return n in l?vm(l[n]):vm(n)}function Wy(n,l){const o=n.map(r=>({value:r,px:Gm(r,l)}));return o.sort((r,s)=>r.px-s.px),o}function yc(n,l,o){return l===void 0&&o===void 0?n:l!==void 0&&o===void 0?Math.max(n,l):Math.min(l===void 0&&o!==void 0?n:Math.max(n,l),o)}function nb(n="mantine-"){return`${n}${Math.random().toString(36).slice(2,11)}`}function Ni(n){const l=x.useRef(n);return x.useEffect(()=>{l.current=n}),x.useMemo(()=>((...o)=>{var r;return(r=l.current)==null?void 0:r.call(l,...o)}),[])}function $c(n,l){const{delay:o,flushOnUnmount:r,leading:s,maxWait:c}=typeof l=="number"?{delay:l,flushOnUnmount:!1,leading:!1,maxWait:void 0}:l,f=Ni(n),m=x.useRef(0),h=x.useRef(0),p=x.useRef(null),b=x.useMemo(()=>{const g=Object.assign((...y)=>{window.clearTimeout(m.current),p.current=y;const w=g._isFirstCall;g._isFirstCall=!1;function C(){window.clearTimeout(m.current),window.clearTimeout(h.current),m.current=0,h.current=0,g._isFirstCall=!0,g._hasPendingCallback=!1}function R(){c!==void 0&&h.current===0&&(h.current=window.setTimeout(()=>{if(m.current!==0){const E=p.current;C(),f(...E)}},c))}if(s&&w){f(...y);const E=()=>{C()},_=()=>{m.current!==0&&(C(),f(...y))},D=()=>{C()};g.flush=_,g.cancel=D,m.current=window.setTimeout(E,o),R();return}if(s&&!w){g._hasPendingCallback=!0;const E=()=>{m.current!==0&&(C(),f(...y))},_=()=>{C()};g.flush=E,g.cancel=_;const D=()=>{C()};m.current=window.setTimeout(D,o),R();return}g._hasPendingCallback=!0;const j=()=>{m.current!==0&&(C(),f(...y))},N=()=>{C()};g.flush=j,g.cancel=N,m.current=window.setTimeout(j,o),R()},{flush:()=>{},cancel:()=>{},isPending:()=>g._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return g},[f,o,s,c]);return x.useEffect(()=>()=>{r?b.flush():b.cancel()},[b,r]),b}const Y2=["mousedown","touchstart"];function X2(n,l,o,r=!0){const s=x.useRef(null),c=l||Y2,f=x.useEffectEvent(h=>{const{target:p}=h??{};if(!document.body.contains(p)&&(p==null?void 0:p.tagName)!=="HTML")return;const b=h.composedPath();Array.isArray(o)?o.every(g=>!!g&&!b.includes(g))&&n(h):s.current&&!b.includes(s.current)&&n(h)}),m=c.join(",");return x.useEffect(()=>{if(!r)return;const h=m.split(",");return h.forEach(p=>document.addEventListener(p,f)),()=>{h.forEach(p=>document.removeEventListener(p,f))}},[m,r]),s}function q2(n={}){const l=n.timeout??2e3,[o,r]=x.useState(null),[s,c]=x.useState(!1),f=x.useRef(null);x.useEffect(()=>()=>{window.clearTimeout(f.current)},[]);const m=b=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c(!1),l),c(b)};return{copy:b=>{"clipboard"in navigator?navigator.clipboard.writeText(b).then(()=>{r(null),m(!0)}).catch(g=>r(g)):r(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{c(!1),r(null),window.clearTimeout(f.current)},error:o,copied:s}}function G2(n,l){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(n).matches:!1}function Z2(n,l,{getInitialValueInEffect:o}={getInitialValueInEffect:!0}){const[r,s]=x.useState(o?l:G2(n));return x.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]),r||!1}const wa=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Eo(n,l){const o=x.useRef(!1);x.useEffect(()=>()=>{o.current=!1},[]),x.useEffect(()=>{if(o.current)return n();o.current=!0},l)}function ab({opened:n,shouldReturnFocus:l=!0}){const o=x.useRef(null),r=()=>{var s;o.current&&"focus"in o.current&&typeof o.current.focus=="function"&&((s=o.current)==null||s.focus({preventScroll:!0}))};return Eo(()=>{let s=-1;const c=f=>{f.key==="Tab"&&window.clearTimeout(s)};if(document.addEventListener("keydown",c),n)o.current=document.activeElement;else if(l){const f=document.activeElement;s=window.setTimeout(()=>{const m=document.activeElement;(m===null||m===document.body||m===f)&&r()},10)}return()=>{window.clearTimeout(s),document.removeEventListener("keydown",c)}},[n,l]),r}const Q2=/input|select|textarea|button|object/,lb="a, input, select, textarea, button, object, [tabindex]";function K2(n){return n.style.display==="none"}function I2(n){if(n.getAttribute("aria-hidden")||n.getAttribute("hidden")||n.getAttribute("type")==="hidden")return!1;let l=n;for(;l&&!(l===document.body||l.nodeType===11);){if(K2(l))return!1;l=l.parentNode}return!0}function rb(n){let l=n.getAttribute("tabindex");return l===null&&(l=void 0),parseInt(l,10)}function ym(n){const l=n.nodeName.toLowerCase(),o=!Number.isNaN(rb(n));return(Q2.test(l)&&!n.disabled||n instanceof HTMLAnchorElement&&n.href||o)&&I2(n)}function ob(n){const l=rb(n);return(Number.isNaN(l)||l>=0)&&ym(n)}function F2(n){return Array.from(n.querySelectorAll(lb)).filter(ob)}function J2(n,l){const o=F2(n);if(!o.length){l.preventDefault();return}const r=o[l.shiftKey?0:o.length-1],s=n.getRootNode();let c=r===s.activeElement||n===s.activeElement;const f=s.activeElement;if(f.tagName==="INPUT"&&f.getAttribute("type")==="radio"&&(c=o.filter(h=>h.getAttribute("type")==="radio"&&h.getAttribute("name")===f.getAttribute("name")).includes(r)),!c)return;l.preventDefault();const m=o[l.shiftKey?o.length-1:0];m&&m.focus()}function P2(n=!0){const l=x.useRef(null),o=s=>{let c=s.querySelector("[data-autofocus]");if(!c){const f=Array.from(s.querySelectorAll(lb));c=f.find(ob)||f.find(ym)||null,!c&&ym(s)&&(c=s)}c?c.focus({preventScroll:!0}):console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node",s)},r=x.useCallback(s=>{if(n){if(s===null){l.current=null;return}l.current!==s&&(setTimeout(()=>{s.getRootNode()?o(s):console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom",s)}),l.current=s)}},[n]);return x.useEffect(()=>{if(!n)return;l.current&&setTimeout(()=>{l.current&&o(l.current)});const s=c=>{c.key==="Tab"&&l.current&&J2(l.current,c)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n]),r}const W2=n=>(n+1)%1e6;function eC(){const[,n]=x.useReducer(W2,0);return n}function Ta(n){const[l,o]=x.useState(`mantine-${x.useId().replace(/:/g,"")}`);return wa(()=>{o(nb())},[]),typeof n=="string"?n:l}function ib(n,l,o){const r=x.useEffectEvent(l);x.useEffect(()=>(window.addEventListener(n,r,o),()=>window.removeEventListener(n,r,o)),[n])}function Nc(n,l){if(typeof n=="function")return n(l);typeof n=="object"&&n!==null&&"current"in n&&(n.current=l)}function Zm(...n){const l=new Map;return o=>{if(n.forEach(r=>{const s=Nc(r,o);s&&l.set(r,s)}),l.size>0)return()=>{n.forEach(r=>{const s=l.get(r);s&&typeof s=="function"?s():Nc(r,null)}),l.clear()}}}function en(...n){return x.useCallback(Zm(...n),n)}function Bl({value:n,defaultValue:l,finalValue:o,onChange:r=()=>{}}){const[s,c]=x.useState(l!==void 0?l:o),f=(m,...h)=>{c(m),r==null||r(m,...h)};return n!==void 0?[n,r,!0]:[s,f,!1]}function Uc(n,l){return Z2("(prefers-reduced-motion: reduce)",n,l)}function jc(n=!1,l={}){const[o,r]=x.useState(n),s=x.useCallback(()=>{r(f=>{var m;return f||((m=l.onOpen)==null||m.call(l),!0)})},[l.onOpen]),c=x.useCallback(()=>{r(f=>{var m;return f&&((m=l.onClose)==null||m.call(l),!1)})},[l.onClose]);return[o,{open:s,close:c,toggle:x.useCallback(()=>{o?c():s()},[c,s,o]),set:r}]}function tC(n){const l=x.useRef(void 0);return x.useEffect(()=>{l.current=n},[n]),l.current}var Ja=P0();const ji=F0(Ja);function nC(n){if(!n||typeof n=="string")return 0;const l=n/36;return Math.round((4+15*l**.25+l/5)*10)}function Zd(n){return n.current?n.current.scrollHeight:"auto"}function aC({transitionDuration:n,transitionTimingFunction:l="ease",onTransitionEnd:o,onTransitionStart:r,expanded:s,keepMounted:c}){const f={height:0,overflow:"hidden",...c?{}:{display:"none"}},m=x.useEffectEvent(()=>r==null?void 0:r()),h=x.useRef(null),[p,b]=x.useState(s?{}:f),[g,y]=x.useState(s?"entered":"exited"),w=N=>{Ja.flushSync(()=>b(N))},C=N=>{w(E=>({...E,...N}))},R=N=>{const E=n??nC(N);return{transition:`height ${E}ms ${l}, opacity ${E}ms ${l}`}};Eo(()=>{n!==0&&m(),s?window.requestAnimationFrame(()=>{Ja.flushSync(()=>y("entering")),C({willChange:"height",display:"block",overflow:"hidden"}),window.requestAnimationFrame(()=>{const N=Zd(h);C({...R(N),height:N})})}):window.requestAnimationFrame(()=>{Ja.flushSync(()=>y("exiting"));const N=Zd(h);C({...R(N),willChange:"height",height:N}),window.requestAnimationFrame(()=>C({height:0,overflow:"hidden"}))})},[s]);const j=N=>{if(!(N.target!==h.current||N.propertyName!=="height"))if(s){const E=Zd(h);E===p.height?w({}):C({height:E}),y("entered"),o==null||o()}else p.height===0&&(w(f),y("exited"),o==null||o())};return{state:g,getCollapseProps:N=>({"aria-hidden":!s,inert:!s,ref:Zm(h,N==null?void 0:N.ref),onTransitionEnd:j,style:{boxSizing:"border-box",...N==null?void 0:N.style,...p}})}}function lC(n){if(!n||typeof n=="string")return 0;const l=n/36;return Math.round((4+15*l**.25+l/5)*10)}function Qd(n){return n.current?n.current.scrollWidth:"auto"}function rC({transitionDuration:n,transitionTimingFunction:l="ease",onTransitionEnd:o,onTransitionStart:r,expanded:s,keepMounted:c}){const f={width:0,overflow:"hidden",...c?{}:{display:"none"}},m=x.useEffectEvent(()=>r==null?void 0:r()),h=x.useRef(null),[p,b]=x.useState(s?{}:f),[g,y]=x.useState(s?"entered":"exited"),w=N=>{Ja.flushSync(()=>b(N))},C=N=>{w(E=>({...E,...N}))},R=N=>{const E=n??lC(N);return{transition:`width ${E}ms ${l}, opacity ${E}ms ${l}`}};Eo(()=>{n!==0&&m(),s?window.requestAnimationFrame(()=>{Ja.flushSync(()=>y("entering")),C({willChange:"width",display:"block",overflow:"hidden"}),window.requestAnimationFrame(()=>{const N=Qd(h);C({...R(N),width:N})})}):window.requestAnimationFrame(()=>{Ja.flushSync(()=>y("exiting"));const N=Qd(h);C({...R(N),willChange:"width",width:N}),window.requestAnimationFrame(()=>C({width:0,overflow:"hidden"}))})},[s]);const j=N=>{if(!(N.target!==h.current||N.propertyName!=="width"))if(s){const E=Qd(h);E===p.width?w({}):C({width:E}),y("entered"),o==null||o()}else p.width===0&&(w(f),y("exited"),o==null||o())};return{state:g,getCollapseProps:N=>({"aria-hidden":!s,inert:!s,ref:Zm(h,N==null?void 0:N.ref),onTransitionEnd:j,style:{boxSizing:"border-box",...N==null?void 0:N.style,...p}})}}const oC=100;function uo(n){return n>0?1:n<0?-1:0}function e0(n){const l=n??0;return typeof l=="number"?[l,l]:l}function iC(){return{isActive:!1,pointerId:-1,startXY:[0,0],prevXY:[0,0],startTimestamp:0,prevTimestamp:0,thresholdMet:!1,firstFired:!1,lockedAxis:null,canceled:!1,lastVelocity:[0,0]}}function sC(n,l={}){const[o,r]=x.useState(!1),s=x.useRef(n);s.current=n;const c=x.useRef(l);c.current=l;const f=x.useRef(iC()),m=x.useRef(null);return{ref:x.useCallback(h=>{if(!h)return;const p=new AbortController,b=E=>{const _=c.current,D=f.current;if(_.axis==="x")return[E[0],0];if(_.axis==="y")return[0,E[1]];if(_.axis==="lock"){if(D.lockedAxis===null){const L=_.axisThreshold??1;(Math.abs(E[0])>L||Math.abs(E[1])>L)&&(D.lockedAxis=Math.abs(E[0])>=Math.abs(E[1])?"x":"y")}if(D.lockedAxis==="x")return[E[0],0];if(D.lockedAxis==="y")return[0,E[1]]}return E},g=()=>{var _;const E=f.current;E.isActive=!1,E.pointerId=-1,E.thresholdMet=!1,E.firstFired=!1,E.lockedAxis=null,E.canceled=!1,r(!1),document.body.style.userSelect="",document.body.style.webkitUserSelect="",(_=m.current)==null||_.abort(),m.current=null},y=()=>{f.current.isActive&&(f.current.canceled=!0,g())},w=()=>{r(!0),document.body.style.userSelect="none",document.body.style.webkitUserSelect="none"},C=E=>{var V;if(c.current.enabled===!1||E.button!==0||f.current.isActive)return;const _=f.current;_.isActive=!0,_.pointerId=E.pointerId,_.startXY=[E.clientX,E.clientY],_.prevXY=[E.clientX,E.clientY],_.startTimestamp=E.timeStamp,_.prevTimestamp=E.timeStamp,_.thresholdMet=!1,_.firstFired=!1,_.lockedAxis=null,_.canceled=!1,_.lastVelocity=[0,0];const[D,L]=e0(c.current.threshold);D===0&&L===0&&(_.thresholdMet=!0,_.firstFired=!0,w(),s.current({xy:[E.clientX,E.clientY],initial:[E.clientX,E.clientY],movement:[0,0],delta:[0,0],distance:[0,0],direction:[0,0],velocity:[0,0],elapsedTime:0,first:!0,last:!1,active:!0,tap:!1,canceled:!1,cancel:y,event:E})),(V=m.current)==null||V.abort(),m.current=new AbortController;const U=m.current.signal;document.addEventListener("pointermove",R,{signal:U}),document.addEventListener("pointerup",j,{signal:U}),document.addEventListener("pointercancel",N,{signal:U})},R=E=>{const _=f.current;if(!_.isActive||E.pointerId!==_.pointerId)return;const D=[E.clientX-_.startXY[0],E.clientY-_.startXY[1]];if(!_.thresholdMet){const[ae,te]=e0(c.current.threshold);if(Math.abs(D[0])0?[Math.abs(U[0])/V,Math.abs(U[1])/V]:_.lastVelocity;_.lastVelocity=k;const P=!_.firstFired;_.firstFired=!0,_.prevXY=[E.clientX,E.clientY],_.prevTimestamp=E.timeStamp,s.current({xy:[E.clientX,E.clientY],initial:[..._.startXY],movement:L,delta:U,distance:[Math.abs(L[0]),Math.abs(L[1])],direction:[uo(U[0]),uo(U[1])],velocity:k,elapsedTime:E.timeStamp-_.startTimestamp,first:P,last:!1,active:!0,tap:!1,canceled:!1,cancel:y,event:E})},j=E=>{const _=f.current;if(!_.isActive||E.pointerId!==_.pointerId)return;const D=c.current;if(!_.thresholdMet){if(D.filterTaps){const te=b([E.clientX-_.startXY[0],E.clientY-_.startXY[1]]),W=[Math.abs(te[0]),Math.abs(te[1])],oe=Math.max(W[0],W[1])<(D.tapThreshold??3);s.current({xy:[E.clientX,E.clientY],initial:[..._.startXY],movement:te,delta:te,distance:W,direction:[uo(te[0]),uo(te[1])],velocity:[0,0],elapsedTime:E.timeStamp-_.startTimestamp,first:!0,last:!0,active:!1,tap:oe,canceled:!1,cancel:y,event:E})}g();return}const L=b([E.clientX-_.startXY[0],E.clientY-_.startXY[1]]),U=[Math.abs(L[0]),Math.abs(L[1])],V=b([E.clientX-_.prevXY[0],E.clientY-_.prevXY[1]]),k=E.timeStamp-_.prevTimestamp>oC?[0,0]:_.lastVelocity,P=Math.max(U[0],U[1]),ae=D.filterTaps===!0&&P<(D.tapThreshold??3);s.current({xy:[E.clientX,E.clientY],initial:[..._.startXY],movement:L,delta:V,distance:U,direction:[uo(V[0]),uo(V[1])],velocity:k,elapsedTime:E.timeStamp-_.startTimestamp,first:!_.firstFired,last:!0,active:!1,tap:ae,canceled:!1,cancel:y,event:E}),g()},N=E=>{const _=f.current;if(!_.isActive||E.pointerId!==_.pointerId)return;const D=b([E.clientX-_.startXY[0],E.clientY-_.startXY[1]]);s.current({xy:[E.clientX,E.clientY],initial:[..._.startXY],movement:D,delta:[0,0],distance:[Math.abs(D[0]),Math.abs(D[1])],direction:[0,0],velocity:[0,0],elapsedTime:E.timeStamp-_.startTimestamp,first:!_.firstFired,last:!0,active:!1,tap:!1,canceled:!0,cancel:y,event:E}),g()};return h.addEventListener("pointerdown",C,{signal:p.signal}),()=>{var E;p.abort(),(E=m.current)==null||E.abort(),m.current=null,f.current.isActive&&(f.current.isActive=!1,r(!1),document.body.style.userSelect="",document.body.style.webkitUserSelect="")}},[]),active:o}}function Vc(n){var o;const l=Yt.version;return typeof Yt.version!="string"||l.startsWith("18.")?n==null?void 0:n.ref:(o=n==null?void 0:n.props)==null?void 0:o.ref}function bc(n,l=document){const o=l.querySelector(n);if(o)return o;const r=l.querySelectorAll("*");for(let s=0;s{Object.entries(o).forEach(([r,s])=>{l[r]?l[r]=zt(l[r],s):l[r]=s})}),l}function zi({theme:n,classNames:l,props:o,stylesCtx:r}){return uC((Array.isArray(l)?l:[l]).map(s=>typeof s=="function"?s(n,o,r):s||cC))}function Ac({theme:n,styles:l,props:o,stylesCtx:r}){const s=Array.isArray(l)?l:[l],c={};for(const f of s)typeof f=="function"?Object.assign(c,f(n,o,r)):f&&Object.assign(c,f);return c}function t0(n){return n==="auto"||n==="dark"||n==="light"}function fC({key:n="mantine-color-scheme-value"}={}){let l;return{get:o=>{if(typeof window>"u")return o;try{const r=window.localStorage.getItem(n);return t0(r)?r:o}catch{return o}},set:o=>{try{window.localStorage.setItem(n,o)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:o=>{l=r=>{r.storageArea===window.localStorage&&r.key===n&&t0(r.newValue)&&o(r.newValue)},window.addEventListener("storage",l)},unsubscribe:()=>{window.removeEventListener("storage",l)},clear:()=>{window.localStorage.removeItem(n)}}}function Bi(n,l){return typeof n.primaryShade=="number"?n.primaryShade:l==="dark"?n.primaryShade.dark:n.primaryShade.light}function dC(n){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(n)}function mC(n){let l=n.replace("#","");if(l.length===3){const r=l.split("");l=[r[0],r[0],r[1],r[1],r[2],r[2]].join("")}if(l.length===8){const r=parseInt(l.slice(6,8),16)/255;return{r:parseInt(l.slice(0,2),16),g:parseInt(l.slice(2,4),16),b:parseInt(l.slice(4,6),16),a:r}}const o=parseInt(l,16);return{r:o>>16&255,g:o>>8&255,b:o&255,a:1}}function hC(n){const[l,o,r,s]=n.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:l,g:o,b:r,a:s===void 0?1:s}}function pC(n){const l=n.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!l)return{r:0,g:0,b:0,a:1};const o=parseInt(l[1],10),r=parseInt(l[2],10)/100,s=parseInt(l[3],10)/100,c=l[5]?parseFloat(l[5]):void 0,f=(1-Math.abs(2*s-1))*r,m=o/60,h=f*(1-Math.abs(m%2-1)),p=s-f/2;let b,g,y;return m>=0&&m<1?(b=f,g=h,y=0):m>=1&&m<2?(b=h,g=f,y=0):m>=2&&m<3?(b=0,g=f,y=h):m>=3&&m<4?(b=0,g=h,y=f):m>=4&&m<5?(b=h,g=0,y=f):(b=f,g=0,y=h),{r:Math.round((b+p)*255),g:Math.round((g+p)*255),b:Math.round((y+p)*255),a:c||1}}function Qm(n){return dC(n)?mC(n):n.startsWith("rgb")?hC(n):n.startsWith("hsl")?pC(n):{r:0,g:0,b:0,a:1}}function Kd(n){return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}function vC(n){const l=n.match(/oklch\((.*?)%\s/);return l?parseFloat(l[1]):null}function gC(n){if(n.startsWith("oklch("))return(vC(n)||0)/100;const{r:l,g:o,b:r}=Qm(n),s=l/255,c=o/255,f=r/255,m=Kd(s),h=Kd(c),p=Kd(f);return .2126*m+.7152*h+.0722*p}function Ri(n,l=.179){return n.startsWith("var(")?!1:gC(n)>l}function Vi({color:n,theme:l,colorScheme:o}){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:o==="dark"?l.white:l.black,shade:void 0,isThemeColor:!1,isLight:Ri(o==="dark"?l.white:l.black,l.luminanceThreshold),variable:"--mantine-color-bright"};if(n==="dimmed")return{color:n,value:o==="dark"?l.colors.dark[2]:l.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Ri(o==="dark"?l.colors.dark[2]:l.colors.gray[6],l.luminanceThreshold),variable:"--mantine-color-dimmed"};if(n==="white"||n==="black")return{color:n,value:n==="white"?l.white:l.black,shade:void 0,isThemeColor:!1,isLight:Ri(n==="white"?l.white:l.black,l.luminanceThreshold),variable:`--mantine-color-${n}`};const[r,s]=n.split("."),c=s?Number(s):void 0,f=r in l.colors;if(f){const m=c!==void 0?l.colors[r][c]:l.colors[r][Bi(l,o||"light")];return{color:r,value:m,shade:c,isThemeColor:f,isLight:Ri(m,l.luminanceThreshold),variable:s?`--mantine-color-${r}-${c}`:`--mantine-color-${r}-filled`}}return{color:n,value:n,isThemeColor:f,isLight:Ri(n,l.luminanceThreshold),shade:c,variable:void 0}}function Fn(n,l){const o=Vi({color:n||l.primaryColor,theme:l});return o.variable?`var(${o.variable})`:n}function ur(n,l){if(n.startsWith("var("))return`color-mix(in srgb, ${n}, black ${l*100}%)`;const{r:o,g:r,b:s,a:c}=Qm(n),f=1-l,m=h=>Math.round(h*f);return`rgba(${m(o)}, ${m(r)}, ${m(s)}, ${c})`}function bm(n,l){const o={from:(n==null?void 0:n.from)||l.defaultGradient.from,to:(n==null?void 0:n.to)||l.defaultGradient.to,deg:(n==null?void 0:n.deg)??l.defaultGradient.deg??0},r=Fn(o.from,l),s=Fn(o.to,l);return`linear-gradient(${o.deg}deg, ${r} 0%, ${s} 100%)`}function Ol(n,l){if(typeof n!="string"||l>1||l<0)return"rgba(0, 0, 0, 1)";if(n.startsWith("var("))return`color-mix(in srgb, ${n}, transparent ${(1-l)*100}%)`;if(n.startsWith("oklch"))return n.includes("/")?n.replace(/\/\s*[\d.]+\s*\)/,`/ ${l})`):n.replace(")",` / ${l})`);const{r:o,g:r,b:s}=Qm(n);return`rgba(${o}, ${r}, ${s}, ${l})`}const n0=Ol,yC=({color:n,theme:l,variant:o,gradient:r,autoContrast:s})=>{const c=Vi({color:n,theme:l}),f=typeof s=="boolean"?s:l.autoContrast;if(o==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(o==="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:`${F(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:`${F(1)} solid transparent`}:{background:n,hover:ur(n,.1),color:m,border:`${F(1)} solid transparent`}}if(o==="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:`${F(1)} solid transparent`};const m=l.colors[c.color][c.shade];return{background:m,hover:ur(m,.1),color:`var(--mantine-color-${c.color}-light-color)`,border:`${F(1)} solid transparent`}}return{background:Ol(n,.1),hover:Ol(n,.12),color:n,border:`${F(1)} solid transparent`}}if(o==="outline")return c.isThemeColor?c.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${n}-outline-hover)`,color:`var(--mantine-color-${n}-outline)`,border:`${F(1)} solid var(--mantine-color-${n}-outline)`}:{background:"transparent",hover:Ol(l.colors[c.color][c.shade],.05),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${F(1)} solid var(--mantine-color-${c.color}-${c.shade})`}:{background:"transparent",hover:Ol(n,.05),color:n,border:`${F(1)} solid ${n}`};if(o==="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:`${F(1)} solid transparent`};const m=l.colors[c.color][c.shade];return{background:"transparent",hover:Ol(m,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${F(1)} solid transparent`}}return{background:"transparent",hover:Ol(n,.12),color:n,border:`${F(1)} solid transparent`}}return o==="transparent"?c.isThemeColor?c.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${n}-light-color)`,border:`${F(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${F(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:n,border:`${F(1)} solid transparent`}:o==="white"?c.isThemeColor?c.shade===void 0?{background:"var(--mantine-color-white)",hover:ur(l.white,.01),color:`var(--mantine-color-${n}-filled)`,border:`${F(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:ur(l.white,.01),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${F(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:ur(l.white,.01),color:n,border:`${F(1)} solid transparent`}:o==="gradient"?{background:bm(r,l),hover:bm(r,l),color:"var(--mantine-color-white)",border:"none"}:o==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${F(1)} solid var(--mantine-color-default-border)`}:{}};function cb({color:n,theme:l,autoContrast:o}){return(typeof o=="boolean"?o:l.autoContrast)&&Vi({color:n||l.primaryColor,theme:l}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function a0(n,l){return cb({color:n.colors[n.primaryColor][Bi(n,l)],theme:n,autoContrast:null})}function bC(n,l){return typeof n=="boolean"?n:l.autoContrast}const ub=x.createContext(null);function Ra(){const n=x.use(ub);if(!n)throw new Error("[@mantine/core] MantineProvider was not found in tree");return n}function SC(){return Ra().cssVariablesResolver}function xC(){return Ra().classNamesPrefix}function Km(){return Ra().getStyleNonce}function wC(){return Ra().withStaticClasses}function CC(){return Ra().headless}function EC(){var n;return(n=Ra().stylesTransform)==null?void 0:n.sx}function TC(){var n;return(n=Ra().stylesTransform)==null?void 0:n.styles}function kc(){return Ra().env||"default"}function RC(){return Ra().deduplicateInlineStyles}function fo(n,l){var s,c;const o=typeof window<"u"&&"matchMedia"in window&&((s=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:s.matches),r=n!=="auto"?n:o?"dark":"light";(c=l())==null||c.setAttribute("data-mantine-color-scheme",r)}function _C({manager:n,defaultColorScheme:l,getRootElement:o,forceColorScheme:r}){const s=x.useRef(null),[c,f]=x.useState(()=>n.get(l)),m=r||c,h=x.useCallback(b=>{r||(fo(b,o),f(b),n.set(b))},[n.set,m,r]),p=x.useCallback(()=>{f(l),fo(l,o),n.clear()},[n.clear,l]);return x.useEffect(()=>(n.subscribe(h),n.unsubscribe),[n.subscribe,n.unsubscribe]),wa(()=>{fo(n.get(l),o)},[]),x.useEffect(()=>{var g;if(r)return fo(r,o),()=>{};r===void 0&&fo(c,o),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const b=y=>{c==="auto"&&fo(y.matches?"dark":"light",o)};return(g=s.current)==null||g.addEventListener("change",b),()=>{var y;return(y=s.current)==null?void 0:y.removeEventListener("change",b)}},[c,r]),{colorScheme:m,setColorScheme:h,clearColorScheme:p}}const NC={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"]},l0="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Im={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:NC,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:yC,autoContrast:!1,luminanceThreshold:.3,fontFamily:l0,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:l0,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:F(34),lineHeight:"1.3"},h2:{fontSize:F(26),lineHeight:"1.35"},h3:{fontSize:F(22),lineHeight:"1.4"},h4:{fontSize:F(18),lineHeight:"1.45"},h5:{fontSize:F(16),lineHeight:"1.5"},h6:{fontSize:F(14),lineHeight:"1.5"}}},fontSizes:{xs:F(12),sm:F(14),md:F(16),lg:F(18),xl:F(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:F(2),sm:F(4),md:F(8),lg:F(16),xl:F(32)},spacing:{xs:F(10),sm:F(12),md:F(16),lg:F(20),xl:F(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), 0 ${F(1)} ${F(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(10)} ${F(15)} ${F(-5)}, rgba(0, 0, 0, 0.04) 0 ${F(7)} ${F(7)} ${F(-5)}`,md:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(20)} ${F(25)} ${F(-5)}, rgba(0, 0, 0, 0.04) 0 ${F(10)} ${F(10)} ${F(-5)}`,lg:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(28)} ${F(23)} ${F(-7)}, rgba(0, 0, 0, 0.04) 0 ${F(12)} ${F(12)} ${F(-7)}`,xl:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(36)} ${F(28)} ${F(-7)}, rgba(0, 0, 0, 0.04) 0 ${F(17)} ${F(17)} ${F(-7)}`},other:{},components:{}},jC="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",r0="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Id(n){return n<0||n>9?!1:parseInt(n.toString(),10)===n}function o0(n){if(!(n.primaryColor in n.colors))throw new Error(jC);if(typeof n.primaryShade=="object"&&(!Id(n.primaryShade.dark)||!Id(n.primaryShade.light)))throw new Error(r0);if(typeof n.primaryShade=="number"&&!Id(n.primaryShade))throw new Error(r0)}function AC(n,l){var r;if(!l)return o0(n),n;const o=Ym(n,l);return l.fontFamily&&!((r=l.headings)!=null&&r.fontFamily)&&(o.headings={...o.headings,fontFamily:l.fontFamily}),o0(o),o}const Fm=x.createContext(null),OC=()=>x.use(Fm)||Im;function Wn(){const n=x.use(Fm);if(!n)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return n}function fb({theme:n,children:l,inherit:o=!0}){const r=OC();return v.jsx(Fm,{value:x.useMemo(()=>AC(o?r:Im,n),[n,r,o]),children:l})}fb.displayName="@mantine/core/MantineThemeProvider";function Fd(n){return Object.entries(n).map(([l,o])=>`${l}: ${o};`).join("")}function db(n,l){const o=l?[l]:[":root",":host"],r=Fd(n.variables),s=r?`${o.join(", ")}{${r}}`:"",c=Fd(n.dark),f=Fd(n.light),m=h=>o.map(p=>p===":host"?`${p}([data-mantine-color-scheme="${h}"])`:`${p}[data-mantine-color-scheme="${h}"]`).join(", ");return`${s} + +${c?`${m("dark")}{${c}}`:""} + +${f?`${m("light")}{${f}}`:""}`}function fc({theme:n,color:l,colorScheme:o,name:r=l,withColorValues:s=!0}){if(!n.colors[l])return{};if(o==="light"){const m=Bi(n,"light"),h={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${m})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${m===9?8:m+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${m})`,[`--mantine-color-${r}-outline-hover`]:n0(n.colors[l][m],.05)};return s?{[`--mantine-color-${r}-0`]:n.colors[l][0],[`--mantine-color-${r}-1`]:n.colors[l][1],[`--mantine-color-${r}-2`]:n.colors[l][2],[`--mantine-color-${r}-3`]:n.colors[l][3],[`--mantine-color-${r}-4`]:n.colors[l][4],[`--mantine-color-${r}-5`]:n.colors[l][5],[`--mantine-color-${r}-6`]:n.colors[l][6],[`--mantine-color-${r}-7`]:n.colors[l][7],[`--mantine-color-${r}-8`]:n.colors[l][8],[`--mantine-color-${r}-9`]:n.colors[l][9],...h}:h}const c=Bi(n,"dark"),f={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${c})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${c===9?8:c+1})`,[`--mantine-color-${r}-light`]:ur(n.colors[l][9],.5),[`--mantine-color-${r}-light-hover`]:ur(n.colors[l][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(c-4,0)})`,[`--mantine-color-${r}-outline-hover`]:n0(n.colors[l][Math.max(c-4,0)],.05)};return s?{[`--mantine-color-${r}-0`]:n.colors[l][0],[`--mantine-color-${r}-1`]:n.colors[l][1],[`--mantine-color-${r}-2`]:n.colors[l][2],[`--mantine-color-${r}-3`]:n.colors[l][3],[`--mantine-color-${r}-4`]:n.colors[l][4],[`--mantine-color-${r}-5`]:n.colors[l][5],[`--mantine-color-${r}-6`]:n.colors[l][6],[`--mantine-color-${r}-7`]:n.colors[l][7],[`--mantine-color-${r}-8`]:n.colors[l][8],[`--mantine-color-${r}-9`]:n.colors[l][9],...f}:f}function MC(n){return!!n&&typeof n=="object"&&"mantine-virtual-color"in n}function or(n,l,o){Ft(l).forEach(r=>Object.assign(n,{[`--mantine-${o}-${r}`]:l[r]}))}const mb=n=>{const l=Bi(n,"light"),o=n.defaultRadius in n.radius?n.radius[n.defaultRadius]:F(n.defaultRadius),r={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":o,"--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":a0(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}-${l})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":a0(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)"}};or(r.variables,n.breakpoints,"breakpoint"),or(r.variables,n.spacing,"spacing"),or(r.variables,n.fontSizes,"font-size"),or(r.variables,n.lineHeights,"line-height"),or(r.variables,n.shadows,"shadow"),or(r.variables,n.radius,"radius"),or(r.variables,n.fontWeights,"font-weight"),n.colors[n.primaryColor].forEach((c,f)=>{r.variables[`--mantine-primary-color-${f}`]=`var(--mantine-color-${n.primaryColor}-${f})`}),Ft(n.colors).forEach(c=>{const f=n.colors[c];if(MC(f)){Object.assign(r.light,fc({theme:n,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,fc({theme:n,name:f.name,color:f.dark,colorScheme:"dark",withColorValues:!0}));return}f.forEach((m,h)=>{r.variables[`--mantine-color-${c}-${h}`]=m}),Object.assign(r.light,fc({theme:n,color:c,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,fc({theme:n,color:c,colorScheme:"dark",withColorValues:!1}))});const s=n.headings.sizes;return Ft(s).forEach(c=>{r.variables[`--mantine-${c}-font-size`]=s[c].fontSize,r.variables[`--mantine-${c}-line-height`]=s[c].lineHeight,r.variables[`--mantine-${c}-font-weight`]=s[c].fontWeight||n.headings.fontWeight}),r};function DC(){const n=Wn(),l=Km(),o=Ft(n.breakpoints).reduce((r,s)=>{const c=n.breakpoints[s].includes("px"),f=vm(n.breakpoints[s]);return`${r}@media (max-width: ${c?`${f-.1}px`:_c(f-.1)}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${c?`${f}px`:_c(f)}) {.mantine-hidden-from-${s} {display: none !important;}}`},"");return v.jsx("style",{"data-mantine-styles":"classes",nonce:l==null?void 0:l(),dangerouslySetInnerHTML:{__html:o}})}function zC({theme:n,generator:l}){const o=mb(n),r=l==null?void 0:l(n);return r?Ym(o,r):o}const Jd=mb(Im);function BC(n){const l={variables:{},light:{},dark:{}};return Ft(n.variables).forEach(o=>{Jd.variables[o]!==n.variables[o]&&(l.variables[o]=n.variables[o])}),Ft(n.light).forEach(o=>{Jd.light[o]!==n.light[o]&&(l.light[o]=n.light[o])}),Ft(n.dark).forEach(o=>{Jd.dark[o]!==n.dark[o]&&(l.dark[o]=n.dark[o])}),l}function LC(n){return db({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},n)}function hb({cssVariablesSelector:n,deduplicateCssVariables:l}){const o=Wn(),r=Km(),s=zC({theme:o,generator:SC()}),c=(n===void 0||n===":root"||n===":host")&&l,f=db(c?BC(s):s,n);return f?v.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${f}${c?"":LC(n)}`}}):null}hb.displayName="@mantine/CssVariables";function HC({respectReducedMotion:n,getRootElement:l}){wa(()=>{var o;n&&((o=l())==null||o.setAttribute("data-respect-reduced-motion","true"))},[n])}function pb({theme:n,children:l,getStyleNonce:o,withStaticClasses:r=!0,withGlobalClasses:s=!0,deduplicateCssVariables:c=!0,withCssVariables:f=!0,cssVariablesSelector:m,classNamesPrefix:h="mantine",colorSchemeManager:p=fC(),defaultColorScheme:b="light",getRootElement:g=()=>document.documentElement,cssVariablesResolver:y,forceColorScheme:w,stylesTransform:C,env:R,deduplicateInlineStyles:j=!1}){const{colorScheme:N,setColorScheme:E,clearColorScheme:_}=_C({defaultColorScheme:b,forceColorScheme:w,manager:p,getRootElement:g});return HC({respectReducedMotion:(n==null?void 0:n.respectReducedMotion)||!1,getRootElement:g}),v.jsx(ub,{value:{colorScheme:N,setColorScheme:E,clearColorScheme:_,getRootElement:g,classNamesPrefix:h,getStyleNonce:o,cssVariablesResolver:y,cssVariablesSelector:m??":root",withStaticClasses:r,stylesTransform:C,env:R,deduplicateInlineStyles:j},children:v.jsxs(fb,{theme:n,children:[f&&v.jsx(hb,{cssVariablesSelector:m,deduplicateCssVariables:c}),s&&v.jsx(DC,{}),l]})})}pb.displayName="@mantine/core/MantineProvider";function ce(n,l,o){var f;const r=Wn(),s=(Array.isArray(n)?n:[n]).filter(Boolean);let c={};for(const m of s){const h=(f=r.components[m])==null?void 0:f.defaultProps,p=typeof h=="function"?h(r):h;p&&(c={...c,...p})}return{...l,...c,...Xm(o)}}function Yc({classNames:n,styles:l,props:o,stylesCtx:r}){const s=Wn();return{resolvedClassNames:n===void 0?void 0:zi({theme:s,classNames:n,props:o,stylesCtx:r||void 0}),resolvedStyles:l===void 0?void 0:Ac({theme:s,styles:l,props:o,stylesCtx:r||void 0})}}const $C={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function UC({theme:n,options:l,unstyled:o}){return zt((l==null?void 0:l.focusable)&&!o&&(n.focusClassName||$C[n.focusRing]),(l==null?void 0:l.active)&&!o&&n.activeClassName)}function VC({selector:n,stylesCtx:l,options:o,props:r,theme:s}){return zi({theme:s,classNames:o==null?void 0:o.classNames,props:(o==null?void 0:o.props)||r,stylesCtx:l})[n]}function kC({selector:n,stylesCtx:l,theme:o,classNames:r,props:s}){return zi({theme:o,classNames:r,props:s,stylesCtx:l})[n]}function YC({rootSelector:n,selector:l,className:o}){return n===l?o:void 0}function XC({selector:n,classes:l,unstyled:o}){return o?void 0:l[n]}function qC({themeName:n,classNamesPrefix:l,selector:o,withStaticClass:r}){return r===!1?[]:n.map(s=>`${l}-${s}-${o}`)}function GC({options:n,classes:l,selector:o,unstyled:r}){return n!=null&&n.variant&&!r?l[`${o}--${n.variant}`]:void 0}function ZC({theme:n,options:l,themeName:o,selector:r,classNamesPrefix:s,resolvedClassNames:c,resolvedThemeClassNames:f,classes:m,unstyled:h,className:p,rootSelector:b,props:g,stylesCtx:y,withStaticClasses:w,headless:C,transformedStyles:R}){return zt(UC({theme:n,options:l,unstyled:h||C}),f.map(j=>j[r]),GC({options:l,classes:m,selector:r,unstyled:h||C}),c[r],kC({selector:r,stylesCtx:y,theme:n,classNames:R,props:g}),VC({selector:r,stylesCtx:y,options:l,props:g,theme:n}),YC({rootSelector:b,selector:r,className:p}),XC({selector:r,classes:m,unstyled:h||C}),w&&!C&&qC({themeName:o,classNamesPrefix:s,selector:r,withStaticClass:l==null?void 0:l.withStaticClass}),l==null?void 0:l.className)}function Jm({style:n,theme:l}){return Array.isArray(n)?n.reduce((o,r)=>({...o,...Jm({style:r,theme:l})}),{}):typeof n=="function"?n(l):n??{}}function QC({theme:n,selector:l,options:o,props:r,stylesCtx:s,rootSelector:c,withStylesTransform:f,resolvedStyles:m,resolvedThemeStyles:h,resolvedVars:p,resolvedRootStyle:b}){return{...h[l],...m[l],...!f&&Ac({theme:n,styles:o==null?void 0:o.styles,props:(o==null?void 0:o.props)||r,stylesCtx:s})[l],...p[l],...c===l?b:null,...Jm({style:o==null?void 0:o.style,theme:n})}}function KC(n){return n.reduce((l,o)=>(o&&Object.keys(o).forEach(r=>{l[r]={...l[r],...Xm(o[r])}}),l),{})}function IC({props:n,stylesCtx:l,themeName:o,theme:r}){var f;const s=(f=TC())==null?void 0:f();return{getTransformedStyles:m=>s?[...m.map(h=>s(h,{props:n,theme:r,ctx:l})),...o.map(h=>{var p;return s((p=r.components[h])==null?void 0:p.styles,{props:n,theme:r,ctx:l})})].filter(Boolean):[],withStylesTransform:!!s}}function De({name:n,classes:l,props:o,stylesCtx:r,className:s,style:c,rootSelector:f="root",unstyled:m,classNames:h,styles:p,vars:b,varsResolver:g,attributes:y}){var ae;const w=Wn(),C=xC(),R=wC(),j=CC(),N=(Array.isArray(n)?n:[n]).filter(te=>te),{withStylesTransform:E,getTransformedStyles:_}=IC({props:o,stylesCtx:r,themeName:N,theme:w}),D=zi({theme:w,classNames:h,props:o,stylesCtx:r}),L=N.map(te=>{var W;return zi({theme:w,classNames:(W=w.components[te])==null?void 0:W.classNames,props:o,stylesCtx:r})}),U=E?{}:Ac({theme:w,styles:p,props:o,stylesCtx:r}),V={};if(!E)for(const te of N){const W=Ac({theme:w,styles:(ae=w.components[te])==null?void 0:ae.styles,props:o,stylesCtx:r});for(const oe of Object.keys(W))V[oe]={...V[oe],...W[oe]}}const k=KC([j?{}:g==null?void 0:g(w,o,r),...N.map(te=>{var W,oe,K;return(K=(oe=(W=w.components)==null?void 0:W[te])==null?void 0:oe.vars)==null?void 0:K.call(oe,w,o,r)}),b==null?void 0:b(w,o,r)]),P=Jm({style:c,theme:w});return(te,W)=>({...y==null?void 0:y[te],className:ZC({theme:w,options:W,themeName:N,selector:te,classNamesPrefix:C,resolvedClassNames:D,resolvedThemeClassNames:L,classes:l,unstyled:m,className:s,rootSelector:f,props:o,stylesCtx:r,withStaticClasses:R,headless:j,transformedStyles:_([W==null?void 0:W.styles,p])}),style:QC({theme:w,selector:te,options:W,props:o,stylesCtx:r,rootSelector:f,withStylesTransform:E,resolvedStyles:U,resolvedThemeStyles:V,resolvedVars:k,resolvedRootStyle:P})})}function Mi(n){return Ft(n).reduce((l,o)=>n[o]!==void 0?`${l}${H2(o)}:${n[o]};`:l,"").trim()}function FC({selector:n,styles:l,media:o,container:r}){const s=l?Mi(l):"",c=Array.isArray(o)?o.map(m=>`@media${m.query}{${n}{${Mi(m.styles)}}}`):[],f=Array.isArray(r)?r.map(m=>`@container ${m.query}{${n}{${Mi(m.styles)}}}`):[];return`${s?`${n}{${s}}`:""}${c.join("")}${f.join("")}`.trim()}function JC(n){let l=5381;for(let o=0;o>>0).toString(36)}function vb({deduplicate:n,...l}){const o=Km(),r=FC(l);return n?v.jsx("style",{href:`mantine-${JC(r)}`,precedence:"mantine",nonce:o==null?void 0:o(),children:r}):v.jsx("style",{"data-mantine-styles":"inline",nonce:o==null?void 0:o(),dangerouslySetInnerHTML:{__html:r}})}function PC(n){let l=5381;for(let o=0;o>>0).toString(36)}function WC(n,l){return`__mdi__-${PC(`${n?Mi(n):""}|${Array.isArray(l)?l.map(o=>`${o.query}:${Mi(o.styles)}`).join("|"):""}`)}`}function Xc(n){const{m:l,mx:o,my:r,mt:s,mb:c,ml:f,mr:m,me:h,ms:p,mis:b,mie:g,p:y,px:w,py:C,pt:R,pb:j,pl:N,pr:E,pe:_,ps:D,pis:L,pie:U,bd:V,bdrs:k,bg:P,c:ae,opacity:te,ff:W,fz:oe,fw:K,lts:ie,ta:O,lh:M,fs:B,tt:G,td:J,w:A,miw:H,maw:Q,h:ee,mih:se,mah:de,bgsz:pe,bgp:_e,bgr:Me,bga:He,pos:st,top:je,left:Qe,bottom:$e,right:Ce,inset:ct,display:me,flex:he,hiddenFrom:Ee,visibleFrom:Ae,lightHidden:Ye,darkHidden:Oe,sx:be,...Ue}=n;return{styleProps:Xm({m:l,mx:o,my:r,mt:s,mb:c,ml:f,mr:m,me:h,ms:p,mis:b,mie:g,p:y,px:w,py:C,pt:R,pb:j,pl:N,pr:E,pis:L,pie:U,pe:_,ps:D,bd:V,bg:P,c:ae,opacity:te,ff:W,fz:oe,fw:K,lts:ie,ta:O,lh:M,fs:B,tt:G,td:J,w:A,miw:H,maw:Q,h:ee,mih:se,mah:de,bgsz:pe,bgp:_e,bgr:Me,bga:He,pos:st,top:je,left:Qe,bottom:$e,right:Ce,inset:ct,display:me,flex:he,bdrs:k,hiddenFrom:Ee,visibleFrom:Ae,lightHidden:Ye,darkHidden:Oe,sx:be}),rest:Ue}}const eE={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 Pm(n,l){const o=Vi({color:n,theme:l});return o.color==="dimmed"?"var(--mantine-color-dimmed)":o.color==="bright"?"var(--mantine-color-bright)":o.variable?`var(${o.variable})`:o.color}function tE(n,l){const o=Vi({color:n,theme:l});return o.isThemeColor&&o.shade===void 0?`var(--mantine-color-${o.color}-text)`:Pm(n,l)}function nE(n,l){if(typeof n=="number")return F(n);if(typeof n=="string"){const[o,r,...s]=n.split(" ").filter(f=>f.trim()!=="");let c=`${F(o)}`;return r&&(c+=` ${r}`),s.length>0&&(c+=` ${Pm(s.join(" "),l)}`),c.trim()}return n}const i0={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 aE(n){return typeof n=="string"&&n in i0?i0[n]:n}const lE=["h1","h2","h3","h4","h5","h6"];function rE(n,l){return typeof n=="string"&&n in l.fontSizes?`var(--mantine-font-size-${n})`:typeof n=="string"&&lE.includes(n)?`var(--mantine-${n}-font-size)`:typeof n=="number"||typeof n=="string"?F(n):n}function oE(n){return n}const iE=["h1","h2","h3","h4","h5","h6"];function sE(n,l){return typeof n=="string"&&n in l.lineHeights?`var(--mantine-line-height-${n})`:typeof n=="string"&&iE.includes(n)?`var(--mantine-${n}-line-height)`:n}function cE(n,l){return typeof n=="string"&&n in l.radius?`var(--mantine-radius-${n})`:typeof n=="number"||typeof n=="string"?F(n):n}function uE(n){return typeof n=="number"?F(n):n}function fE(n,l){if(typeof n=="number")return F(n);if(typeof n=="string"){const o=n.replace("-","");if(!(o in l.spacing))return F(n);const r=`--mantine-spacing-${o}`;return n.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return n}const Pd={color:Pm,textColor:tE,fontSize:rE,spacing:fE,radius:cE,identity:oE,size:uE,lineHeight:sE,fontFamily:aE,border:nE};function s0(n){return n.replace("(min-width: ","").replace("em)","")}function dE({media:n,...l}){const o=Object.keys(n).sort((r,s)=>Number(s0(r))-Number(s0(s))).map(r=>({query:r,styles:n[r]}));return{...l,media:o}}function mE(n){if(typeof n!="object"||n===null)return!1;const l=Object.keys(n);return!(l.length===1&&l[0]==="base")}function hE(n){return typeof n=="object"&&n!==null?"base"in n?n.base:void 0:n}function pE(n){return typeof n=="object"&&n!==null?Ft(n).filter(l=>l!=="base"):[]}function vE(n,l){return typeof n=="object"&&n!==null&&l in n?n[l]:n}function gE({styleProps:n,data:l,theme:o}){return dE(Ft(n).reduce((r,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return r;const c=l[s],f=Array.isArray(c.property)?c.property:[c.property],m=hE(n[s]);if(!mE(n[s]))return f.forEach(p=>{r.inlineStyles[p]=Pd[c.type](m,o)}),r;r.hasResponsiveStyles=!0;const h=pE(n[s]);return f.forEach(p=>{m!=null&&(r.styles[p]=Pd[c.type](m,o)),h.forEach(b=>{const g=`(min-width: ${o.breakpoints[b]})`;r.media[g]={...r.media[g],[p]:Pd[c.type](vE(n[s],b),o)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function yE(){return`__m__-${x.useId().replace(/[:«»]/g,"")}`}function Li(n,l){return Array.isArray(n)?[...n].reduce((o,r)=>({...o,...Li(r,l)}),{}):typeof n=="function"?n(l):n??{}}function bE(n){return n}const SE=bE;function gb(n){return n}function ge(n){const l=n;return l.extend=gb,l.withProps=o=>{const r=s=>v.jsx(l,{...o,...s});return r.extend=l.extend,r.displayName=`WithProps(${l.displayName})`,r},l}function Wm(n){return ge(n)}function sn(n){const l=n;return l.withProps=o=>{const r=s=>v.jsx(l,{...o,...s});return r.extend=l.extend,r.displayName=`WithProps(${l.displayName})`,r},l.extend=gb,l}function yb(n){return`data-${(n.startsWith("data-")?n.slice(5):n).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`}function xE(n){return Object.keys(n).reduce((l,o)=>{const r=n[o];return r===void 0||r===""||r===!1||r===null||(l[yb(o)]=n[o]),l},{})}function bb(n){return n?typeof n=="string"?{[yb(n)]:!0}:Array.isArray(n)?[...n].reduce((l,o)=>({...l,...bb(o)}),{}):xE(n):null}function Sm(n,l){return Array.isArray(n)?[...n].reduce((o,r)=>({...o,...Sm(r,l)}),{}):typeof n=="function"?n(l):n??{}}function wE({theme:n,style:l,vars:o,styleProps:r}){const s=Sm(l,n),c=Sm(o,n);return{...s,...c,...r}}function Sb({component:n,style:l,__vars:o,className:r,variant:s,mod:c,size:f,hiddenFrom:m,visibleFrom:h,lightHidden:p,darkHidden:b,renderRoot:g,__size:y,ref:w,...C}){var P,ae;const R=Wn(),j=n||"div",{styleProps:N,rest:E}=Xc(C),_=(ae=(P=EC())==null?void 0:P())==null?void 0:ae(N.sx),D=yE(),L=gE({styleProps:N,theme:R,data:eE}),U=RC(),V=U&&L.hasResponsiveStyles?WC(L.styles,L.media):D,k={ref:w,style:wE({theme:R,style:l,vars:o,styleProps:L.inlineStyles}),className:zt(r,_,{[V]:L.hasResponsiveStyles,"mantine-light-hidden":p,"mantine-dark-hidden":b,[`mantine-hidden-from-${m}`]:m,[`mantine-visible-from-${h}`]:h}),"data-variant":s,"data-size":eb(f)?void 0:f||void 0,size:y,...bb(c),...E};return v.jsxs(v.Fragment,{children:[L.hasResponsiveStyles&&v.jsx(vb,{selector:`.${V}`,styles:L.styles,media:L.media,deduplicate:U}),typeof g=="function"?g(k):v.jsx(j,{...k})]})}Sb.displayName="@mantine/core/Box";const fe=SE(Sb),CE=x.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function To(){return x.use(CE)}const EE={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0,orientation:"vertical"},xb=ge(n=>{const{children:l,expanded:o,transitionDuration:r,transitionTimingFunction:s,style:c,onTransitionEnd:f,onTransitionStart:m,animateOpacity:h,keepMounted:p,ref:b,orientation:g,...y}=ce("Collapse",EE,n),w=kc(),C=Wn(),R=Uc(),j=C.respectReducedMotion&&R?0:r,N=(g==="horizontal"?rC:aC)({expanded:o,transitionDuration:j,transitionTimingFunction:s,onTransitionEnd:f,onTransitionStart:m,keepMounted:!1});if(j===0)return p===!0&&w!=="test"?v.jsx(x.Activity,{mode:o?"visible":"hidden",children:v.jsx(fe,{...y,children:l})}):o?v.jsx(fe,{...y,children:l}):null;const E=N.state==="exited";let _;return p===!1?_=E?null:l:p===!0?_=v.jsx(x.Activity,{mode:E?"hidden":"visible",children:l}):_=l,v.jsx(fe,{...y,...N.getCollapseProps({style:{opacity:o||!h?1:0,transition:h?`opacity ${j}ms ${s}`:"none",...Li(c,C)},ref:b}),children:_})});xb.displayName="@mantine/core/Collapse";const[TE,ea]=Ea("ScrollArea.Root component was not found in tree");function Ll(n,l){const o=x.useEffectEvent(l);wa(()=>{let r=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(o)});return s.observe(n),()=>{window.cancelAnimationFrame(r),s.unobserve(n)}}},[n])}function RE(n){const{style:l,...o}=n,r=ea(),[s,c]=x.useState(0),[f,m]=x.useState(0),h=!!(s&&f);return Ll(r.scrollbarX,()=>{var b;const p=((b=r.scrollbarX)==null?void 0:b.offsetHeight)||0;r.onCornerHeightChange(p),m(p)}),Ll(r.scrollbarY,()=>{var b;const p=((b=r.scrollbarY)==null?void 0:b.offsetWidth)||0;r.onCornerWidthChange(p),c(p)}),h?v.jsx("div",{...o,style:{...l,width:s,height:f}}):null}function _E(n){const l=ea(),o=!!(l.scrollbarX&&l.scrollbarY);return l.type!=="scroll"&&o?v.jsx(RE,{...n}):null}const NE={scrollHideDelay:1e3,type:"hover"};function wb(n){const{type:l,scrollHideDelay:o,scrollbars:r,getStyles:s,ref:c,...f}=ce("ScrollAreaRoot",NE,n),[m,h]=x.useState(null),[p,b]=x.useState(null),[g,y]=x.useState(null),[w,C]=x.useState(null),[R,j]=x.useState(null),[N,E]=x.useState(0),[_,D]=x.useState(0),[L,U]=x.useState(!1),[V,k]=x.useState(!1),P=en(c,h);return v.jsx(TE,{value:{type:l,scrollHideDelay:o,scrollArea:m,viewport:p,onViewportChange:b,content:g,onContentChange:y,scrollbarX:w,onScrollbarXChange:C,scrollbarXEnabled:L,onScrollbarXEnabledChange:U,scrollbarY:R,onScrollbarYChange:j,scrollbarYEnabled:V,onScrollbarYEnabledChange:k,onCornerWidthChange:E,onCornerHeightChange:D,getStyles:s},children:v.jsx(fe,{...f,ref:P,__vars:{"--sa-corner-width":r!=="xy"?"0px":`${N}px`,"--sa-corner-height":r!=="xy"?"0px":`${_}px`}})})}wb.displayName="@mantine/core/ScrollAreaRoot";function Cb(n,l){const o=n/l;return Number.isNaN(o)?0:o}function qc(n){const l=Cb(n.viewport,n.content),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,r=(n.scrollbar.size-o)*l;return Math.max(r,18)}function Eb(n,l){return o=>{if(n[0]===n[1]||l[0]===l[1])return l[0];const r=(l[1]-l[0])/(n[1]-n[0]);return l[0]+r*(o-n[0])}}function jE(n,[l,o]){return Math.min(o,Math.max(l,n))}function c0(n,l,o="ltr"){const r=qc(l),s=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,c=l.scrollbar.size-s,f=l.content-l.viewport,m=c-r,h=jE(n,o==="ltr"?[0,f]:[f*-1,0]);return Eb([0,f],[0,m])(h)}function AE(n,l,o,r="ltr"){const s=qc(o),c=s/2,f=l||c,m=s-f,h=o.scrollbar.paddingStart+f,p=o.scrollbar.size-o.scrollbar.paddingEnd-m,b=o.content-o.viewport,g=r==="ltr"?[0,b]:[b*-1,0];return Eb([h,p],g)(n)}function Tb(n,l){return n>0&&n{n==null||n(r),(o===!1||!r.defaultPrevented)&&(l==null||l(r))}}const[OE,Rb]=Ea("ScrollAreaScrollbar was not found in tree");function _b(n){const{sizes:l,hasThumb:o,onThumbChange:r,onThumbPointerUp:s,onThumbPointerDown:c,onThumbPositionChange:f,onDragScroll:m,onWheelScroll:h,onResize:p,ref:b,...g}=n,y=ea(),[w,C]=x.useState(null),R=en(b,C),j=x.useRef(null),N=x.useRef(""),{viewport:E}=y,_=l.content-l.viewport,D=x.useEffectEvent(h),L=Ni(f),U=$c(p,10),V=k=>{j.current&&m({x:k.clientX-j.current.left,y:k.clientY-j.current.top})};return x.useEffect(()=>{const k=P=>{const ae=P.target;w!=null&&w.contains(ae)&&D(P,_)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[E,w,_]),x.useEffect(L,[l,L]),Ll(w,U),Ll(y.content,U),v.jsx(OE,{value:{scrollbar:w,hasThumb:o,onThumbChange:Ni(r),onThumbPointerUp:Ni(s),onThumbPositionChange:L,onThumbPointerDown:Ni(c)},children:v.jsx("div",{...g,ref:R,"data-mantine-scrollbar":!0,style:{position:"absolute",...g.style},onPointerDown:hr(n.onPointerDown,k=>{k.preventDefault(),k.button===0&&(k.target.setPointerCapture(k.pointerId),j.current=w.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",V(k))}),onPointerMove:hr(n.onPointerMove,V),onPointerUp:hr(n.onPointerUp,k=>{const P=k.target;P.hasPointerCapture(k.pointerId)&&(k.preventDefault(),P.releasePointerCapture(k.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=N.current,j.current=null}})})}const Nb=n=>{const{sizes:l,onSizesChange:o,style:r,ref:s,...c}=n,f=ea(),[m,h]=x.useState(),p=x.useRef(null),b=en(s,p,f.onScrollbarXChange);return x.useEffect(()=>{p.current&&h(getComputedStyle(p.current))},[p]),v.jsx(_b,{"data-orientation":"horizontal",...c,ref:b,sizes:l,style:{...r,"--sa-thumb-width":`${qc(l)}px`},onThumbPointerDown:g=>n.onThumbPointerDown(g.x),onDragScroll:g=>n.onDragScroll(g.x),onWheelScroll:(g,y)=>{if(f.viewport){const w=f.viewport.scrollLeft+g.deltaX;n.onWheelScroll(w),Tb(w,y)&&g.preventDefault()}},onResize:()=>{p.current&&f.viewport&&m&&o({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:Oc(m.paddingLeft),paddingEnd:Oc(m.paddingRight)}})}})};Nb.displayName="@mantine/core/ScrollAreaScrollbarX";function jb(n){const{sizes:l,onSizesChange:o,style:r,ref:s,...c}=n,f=ea(),[m,h]=x.useState(),p=x.useRef(null),b=en(s,p,f.onScrollbarYChange);return x.useEffect(()=>{p.current&&h(window.getComputedStyle(p.current))},[]),v.jsx(_b,{...c,"data-orientation":"vertical",ref:b,sizes:l,style:{"--sa-thumb-height":`${qc(l)}px`,...r},onThumbPointerDown:g=>n.onThumbPointerDown(g.y),onDragScroll:g=>n.onDragScroll(g.y),onWheelScroll:(g,y)=>{if(f.viewport){const w=f.viewport.scrollTop+g.deltaY;n.onWheelScroll(w),Tb(w,y)&&g.preventDefault()}},onResize:()=>{p.current&&f.viewport&&m&&o({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:Oc(m.paddingTop),paddingEnd:Oc(m.paddingBottom)}})}})}jb.displayName="@mantine/core/ScrollAreaScrollbarY";function Gc(n){const{orientation:l="vertical",...o}=n,{dir:r}=To(),s=ea(),c=x.useRef(null),f=x.useRef(0),[m,h]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=Cb(m.viewport,m.content),b={...o,sizes:m,onSizesChange:h,hasThumb:p>0&&p<1,onThumbChange:y=>{c.current=y},onThumbPointerUp:()=>{f.current=0},onThumbPointerDown:y=>{f.current=y}},g=(y,w)=>AE(y,f.current,m,w);return l==="horizontal"?v.jsx(Nb,{...b,onThumbPositionChange:()=>{if(s.viewport&&c.current){const y=s.viewport.scrollLeft,w=c0(y,m,r);c.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:y=>{s.viewport&&(s.viewport.scrollLeft=y)},onDragScroll:y=>{s.viewport&&(s.viewport.scrollLeft=g(y,r))}}):l==="vertical"?v.jsx(jb,{...b,onThumbPositionChange:()=>{if(s.viewport&&c.current){const y=s.viewport.scrollTop,w=c0(y,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, ${w}px, 0)`}},onWheelScroll:y=>{s.viewport&&(s.viewport.scrollTop=y)},onDragScroll:y=>{s.viewport&&(s.viewport.scrollTop=g(y))}}):null}Gc.displayName="@mantine/core/ScrollAreaScrollbarVisible";function eh(n){const l=ea(),{forceMount:o,...r}=n,[s,c]=x.useState(!1),f=n.orientation==="horizontal",m=$c(()=>{if(l.viewport){const h=l.viewport.offsetWidth{const{scrollArea:f}=r;let m=0;if(f){const h=()=>{window.clearTimeout(m),c(!0)},p=()=>{m=window.setTimeout(()=>c(!1),r.scrollHideDelay)};return f.addEventListener("pointerenter",h),f.addEventListener("pointerleave",p),()=>{window.clearTimeout(m),f.removeEventListener("pointerenter",h),f.removeEventListener("pointerleave",p)}}},[r.scrollArea,r.scrollHideDelay]),l||s?v.jsx(eh,{"data-state":s?"visible":"hidden",...o}):null}Ab.displayName="@mantine/core/ScrollAreaScrollbarHover";function ME(n){const{forceMount:l,...o}=n,r=ea(),s=n.orientation==="horizontal",[c,f]=x.useState("hidden"),m=$c(()=>f("idle"),100);return x.useEffect(()=>{if(c==="idle"){const h=window.setTimeout(()=>f("hidden"),r.scrollHideDelay);return()=>window.clearTimeout(h)}},[c,r.scrollHideDelay]),x.useEffect(()=>{const{viewport:h}=r,p=s?"scrollLeft":"scrollTop";if(h){let b=h[p];const g=()=>{const y=h[p];b!==y&&(f("scrolling"),m()),b=y};return h.addEventListener("scroll",g),()=>h.removeEventListener("scroll",g)}},[r.viewport,s,m]),l||c!=="hidden"?v.jsx(Gc,{"data-state":c==="hidden"?"hidden":"visible",...o,onPointerEnter:hr(n.onPointerEnter,()=>f("interacting")),onPointerLeave:hr(n.onPointerLeave,()=>f("idle"))}):null}function xm(n){const{forceMount:l,...o}=n,r=ea(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=r,f=n.orientation==="horizontal";return x.useEffect(()=>(f?s(!0):c(!0),()=>{f?s(!1):c(!1)}),[f,s,c]),r.type==="hover"?v.jsx(Ab,{...o,forceMount:l}):r.type==="scroll"?v.jsx(ME,{...o,forceMount:l}):r.type==="auto"?v.jsx(eh,{...o,forceMount:l}):r.type==="always"?v.jsx(Gc,{...o}):null}xm.displayName="@mantine/core/ScrollAreaScrollbar";function DE(n,l=()=>{}){let o={left:n.scrollLeft,top:n.scrollTop},r=0;return(function s(){const c={left:n.scrollLeft,top:n.scrollTop},f=o.left!==c.left,m=o.top!==c.top;(f||m)&&l(),o=c,r=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(r)}function Ob(n){const{style:l,ref:o,...r}=n,s=ea(),c=Rb(),{onThumbPositionChange:f}=c,m=en(o,c.onThumbChange),h=x.useRef(void 0),p=$c(()=>{h.current&&(h.current(),h.current=void 0)},100);return x.useEffect(()=>{const{viewport:b}=s;if(b){const g=()=>{p(),h.current||(h.current=DE(b,f),f())};return f(),b.addEventListener("scroll",g),()=>b.removeEventListener("scroll",g)}},[s.viewport,p,f]),v.jsx("div",{"data-state":c.hasThumb?"visible":"hidden",...r,ref:m,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...l},onPointerDownCapture:hr(n.onPointerDownCapture,b=>{const g=b.target.getBoundingClientRect(),y=b.clientX-g.left,w=b.clientY-g.top;c.onThumbPointerDown({x:y,y:w})}),onPointerUp:hr(n.onPointerUp,c.onThumbPointerUp)})}Ob.displayName="@mantine/core/ScrollAreaThumb";function wm(n){const{forceMount:l,...o}=n,r=Rb();return l||r.hasThumb?v.jsx(Ob,{...o}):null}wm.displayName="@mantine/core/ScrollAreaThumb";function Mb({children:n,style:l,ref:o,onWheel:r,...s}){const c=ea(),f=en(o,c.onViewportChange),m=h=>{if(r==null||r(h),c.scrollbarXEnabled&&c.viewport&&h.shiftKey){const{scrollTop:p,scrollHeight:b,clientHeight:g,scrollWidth:y,clientWidth:w}=c.viewport,C=p<1,R=p>=b-g-1;y>w&&(C||R)&&h.stopPropagation()}};return v.jsx(fe,{...s,ref:f,onWheel:m,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...l},children:v.jsx("div",{...c.getStyles("content"),ref:c.onContentChange,children:n})})}Mb.displayName="@mantine/core/ScrollAreaViewport";var th={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};function Zc(){return typeof window<"u"}function Ro(n){return Db(n)?(n.nodeName||"").toLowerCase():"#document"}function xn(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function _a(n){var l;return(l=(Db(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Db(n){return Zc()?n instanceof Node||n instanceof xn(n).Node:!1}function vt(n){return Zc()?n instanceof Element||n instanceof xn(n).Element:!1}function ta(n){return Zc()?n instanceof HTMLElement||n instanceof xn(n).HTMLElement:!1}function Cm(n){return!Zc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof xn(n).ShadowRoot}function ki(n){const{overflow:l,overflowX:o,overflowY:r,display:s}=Pn(n);return/auto|scroll|overlay|hidden|clip/.test(l+r+o)&&s!=="inline"&&s!=="contents"}function zE(n){return/^(table|td|th)$/.test(Ro(n))}function Qc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const BE=/transform|translate|scale|rotate|perspective|filter/,LE=/paint|layout|strict|content/,ir=n=>!!n&&n!=="none";let Wd;function nh(n){const l=vt(n)?Pn(n):n;return ir(l.transform)||ir(l.translate)||ir(l.scale)||ir(l.rotate)||ir(l.perspective)||!Kc()&&(ir(l.backdropFilter)||ir(l.filter))||BE.test(l.willChange||"")||LE.test(l.contain||"")}function HE(n){let l=tl(n);for(;ta(l)&&!Pa(l);){if(nh(l))return l;if(Qc(l))return null;l=tl(l)}return null}function Kc(){return Wd==null&&(Wd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wd}function Pa(n){return/^(html|body|#document)$/.test(Ro(n))}function Pn(n){return xn(n).getComputedStyle(n)}function Ic(n){return vt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function tl(n){if(Ro(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Cm(n)&&n.host||_a(n);return Cm(l)?l.host:l}function zb(n){const l=tl(n);return Pa(l)?n.ownerDocument?n.ownerDocument.body:n.body:ta(l)&&ki(l)?l:zb(l)}function Wa(n,l,o){var r;l===void 0&&(l=[]),o===void 0&&(o=!0);const s=zb(n),c=s===((r=n.ownerDocument)==null?void 0:r.body),f=xn(s);if(c){const m=Em(f);return l.concat(f,f.visualViewport||[],ki(s)?s:[],m&&o?Wa(m):[])}else return l.concat(s,Wa(s,[],o))}function Em(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const $E=["top","right","bottom","left"],fa=Math.min,Pt=Math.max,Mc=Math.round,dc=Math.floor,Sa=n=>({x:n,y:n}),UE={left:"right",right:"left",bottom:"top",top:"bottom"};function Tm(n,l,o){return Pt(n,fa(l,o))}function Ca(n,l){return typeof n=="function"?n(l):n}function da(n){return n.split("-")[0]}function _o(n){return n.split("-")[1]}function ah(n){return n==="x"?"y":"x"}function lh(n){return n==="y"?"height":"width"}function sa(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function rh(n){return ah(sa(n))}function VE(n,l,o){o===void 0&&(o=!1);const r=_o(n),s=rh(n),c=lh(s);let f=s==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return l.reference[c]>l.floating[c]&&(f=Dc(f)),[f,Dc(f)]}function kE(n){const l=Dc(n);return[Rm(n),l,Rm(l)]}function Rm(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const u0=["left","right"],f0=["right","left"],YE=["top","bottom"],XE=["bottom","top"];function qE(n,l,o){switch(n){case"top":case"bottom":return o?l?f0:u0:l?u0:f0;case"left":case"right":return l?YE:XE;default:return[]}}function GE(n,l,o,r){const s=_o(n);let c=qE(da(n),o==="start",r);return s&&(c=c.map(f=>f+"-"+s),l&&(c=c.concat(c.map(Rm)))),c}function Dc(n){const l=da(n);return UE[l]+n.slice(l.length)}function ZE(n){return{top:0,right:0,bottom:0,left:0,...n}}function oh(n){return typeof n!="number"?ZE(n):{top:n,right:n,bottom:n,left:n}}function So(n){const{x:l,y:o,width:r,height:s}=n;return{width:r,height:s,top:o,left:l,right:l+r,bottom:o+s,x:l,y:o}}function QE(){const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform}function KE(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(l=>{let{brand:o,version:r}=l;return o+"/"+r}).join(" "):navigator.userAgent}function IE(){return/apple/i.test(navigator.vendor)}function FE(){return QE().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function JE(){return KE().includes("jsdom/")}const d0="data-floating-ui-focusable",PE="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function m0(n){let l=n.activeElement;for(;((o=l)==null||(o=o.shadowRoot)==null?void 0:o.activeElement)!=null;){var o;l=l.shadowRoot.activeElement}return l}function Hi(n,l){if(!n||!l)return!1;const o=l.getRootNode==null?void 0:l.getRootNode();if(n.contains(l))return!0;if(o&&Cm(o)){let r=l;for(;r;){if(n===r)return!0;r=r.parentNode||r.host}}return!1}function vo(n){return"composedPath"in n?n.composedPath()[0]:n.target}function em(n,l){if(l==null)return!1;if("composedPath"in n)return n.composedPath().includes(l);const o=n;return o.target!=null&&l.contains(o.target)}function WE(n){return n.matches("html,body")}function dr(n){return(n==null?void 0:n.ownerDocument)||document}function eT(n){return ta(n)&&n.matches(PE)}function tT(n){if(!n||JE())return!0;try{return n.matches(":focus-visible")}catch{return!0}}function nT(n){return n?n.hasAttribute(d0)?n:n.querySelector("["+d0+"]")||n:null}function Sc(n,l,o){return o===void 0&&(o=!0),n.filter(s=>{var c;return s.parentId===l&&(!o||((c=s.context)==null?void 0:c.open))}).flatMap(s=>[s,...Sc(n,s.id,o)])}function aT(n){return"nativeEvent"in n}function _m(n,l){const o=["mouse","pen"];return o.push("",void 0),o.includes(n)}var lT=typeof document<"u",rT=function(){},xa=lT?x.useLayoutEffect:rT;const oT={...J0};function mc(n){const l=x.useRef(n);return xa(()=>{l.current=n}),l}const iT=oT.useInsertionEffect,sT=iT||(n=>n());function ya(n){const l=x.useRef(()=>{});return sT(()=>{l.current=n}),x.useCallback(function(){for(var o=arguments.length,r=new Array(o),s=0;s{const{placement:r="bottom",strategy:s="absolute",middleware:c=[],platform:f}=o,m=f.detectOverflow?f:{...f,detectOverflow:cT},h=await(f.isRTL==null?void 0:f.isRTL(l));let p=await f.getElementRects({reference:n,floating:l,strategy:s}),{x:b,y:g}=h0(p,r,h),y=r,w=0;const C={};for(let R=0;R({name:"arrow",options:n,async fn(l){const{x:o,y:r,placement:s,rects:c,platform:f,elements:m,middlewareData:h}=l,{element:p,padding:b=0}=Ca(n,l)||{};if(p==null)return{};const g=oh(b),y={x:o,y:r},w=rh(s),C=lh(w),R=await f.getDimensions(p),j=w==="y",N=j?"top":"left",E=j?"bottom":"right",_=j?"clientHeight":"clientWidth",D=c.reference[C]+c.reference[w]-y[w]-c.floating[C],L=y[w]-c.reference[w],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let V=U?U[_]:0;(!V||!await(f.isElement==null?void 0:f.isElement(U)))&&(V=m.floating[_]||c.floating[C]);const k=D/2-L/2,P=V/2-R[C]/2-1,ae=fa(g[N],P),te=fa(g[E],P),W=ae,oe=V-R[C]-te,K=V/2-R[C]/2+k,ie=Tm(W,K,oe),O=!h.arrow&&_o(s)!=null&&K!==ie&&c.reference[C]/2-(KK<=0)){var te,W;const K=(((te=c.flip)==null?void 0:te.index)||0)+1,ie=V[K];if(ie&&(!(g==="alignment"?E!==sa(ie):!1)||ae.every(B=>sa(B.placement)===E?B.overflows[0]>0:!0)))return{data:{index:K,overflows:ae},reset:{placement:ie}};let O=(W=ae.filter(M=>M.overflows[0]<=0).sort((M,B)=>M.overflows[1]-B.overflows[1])[0])==null?void 0:W.placement;if(!O)switch(w){case"bestFit":{var oe;const M=(oe=ae.filter(B=>{if(U){const G=sa(B.placement);return G===E||G==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(G=>G>0).reduce((G,J)=>G+J,0)]).sort((B,G)=>B[1]-G[1])[0])==null?void 0:oe[0];M&&(O=M);break}case"initialPlacement":O=m;break}if(s!==O)return{reset:{placement:O}}}return{}}}};function p0(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function v0(n){return $E.some(l=>n[l]>=0)}const hT=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:o,platform:r}=l,{strategy:s="referenceHidden",...c}=Ca(n,l);switch(s){case"referenceHidden":{const f=await r.detectOverflow(l,{...c,elementContext:"reference"}),m=p0(f,o.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:v0(m)}}}case"escaped":{const f=await r.detectOverflow(l,{...c,altBoundary:!0}),m=p0(f,o.floating);return{data:{escapedOffsets:m,escaped:v0(m)}}}default:return{}}}}};function Bb(n){const l=fa(...n.map(c=>c.left)),o=fa(...n.map(c=>c.top)),r=Pt(...n.map(c=>c.right)),s=Pt(...n.map(c=>c.bottom));return{x:l,y:o,width:r-l,height:s-o}}function pT(n){const l=n.slice().sort((s,c)=>s.y-c.y),o=[];let r=null;for(let s=0;sr.height/2?o.push([c]):o[o.length-1].push(c),r=c}return o.map(s=>So(Bb(s)))}const vT=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(l){const{placement:o,elements:r,rects:s,platform:c,strategy:f}=l,{padding:m=2,x:h,y:p}=Ca(n,l),b=Array.from(await(c.getClientRects==null?void 0:c.getClientRects(r.reference))||[]),g=pT(b),y=So(Bb(b)),w=oh(m);function C(){if(g.length===2&&g[0].left>g[1].right&&h!=null&&p!=null)return g.find(j=>h>j.left-w.left&&hj.top-w.top&&p=2){if(sa(o)==="y"){const ae=g[0],te=g[g.length-1],W=da(o)==="top",oe=ae.top,K=te.bottom,ie=W?ae.left:te.left,O=W?ae.right:te.right,M=O-ie,B=K-oe;return{top:oe,bottom:K,left:ie,right:O,width:M,height:B,x:ie,y:oe}}const j=da(o)==="left",N=Pt(...g.map(ae=>ae.right)),E=fa(...g.map(ae=>ae.left)),_=g.filter(ae=>j?ae.left===E:ae.right===N),D=_[0].top,L=_[_.length-1].bottom,U=E,V=N,k=V-U,P=L-D;return{top:D,bottom:L,left:U,right:V,width:k,height:P,x:U,y:D}}return y}const R=await c.getElementRects({reference:{getBoundingClientRect:C},floating:r.floating,strategy:f});return s.reference.x!==R.reference.x||s.reference.y!==R.reference.y||s.reference.width!==R.reference.width||s.reference.height!==R.reference.height?{reset:{rects:R}}:{}}}},Lb=new Set(["left","top"]);async function gT(n,l){const{placement:o,platform:r,elements:s}=n,c=await(r.isRTL==null?void 0:r.isRTL(s.floating)),f=da(o),m=_o(o),h=sa(o)==="y",p=Lb.has(f)?-1:1,b=c&&h?-1:1,g=Ca(l,n);let{mainAxis:y,crossAxis:w,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return m&&typeof C=="number"&&(w=m==="end"?C*-1:C),h?{x:w*b,y:y*p}:{x:y*p,y:w*b}}const yT=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var o,r;const{x:s,y:c,placement:f,middlewareData:m}=l,h=await gT(l,n);return f===((o=m.offset)==null?void 0:o.placement)&&(r=m.arrow)!=null&&r.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},bT=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:o,y:r,placement:s,platform:c}=l,{mainAxis:f=!0,crossAxis:m=!1,limiter:h={fn:N=>{let{x:E,y:_}=N;return{x:E,y:_}}},...p}=Ca(n,l),b={x:o,y:r},g=await c.detectOverflow(l,p),y=sa(da(s)),w=ah(y);let C=b[w],R=b[y];if(f){const N=w==="y"?"top":"left",E=w==="y"?"bottom":"right",_=C+g[N],D=C-g[E];C=Tm(_,C,D)}if(m){const N=y==="y"?"top":"left",E=y==="y"?"bottom":"right",_=R+g[N],D=R-g[E];R=Tm(_,R,D)}const j=h.fn({...l,[w]:C,[y]:R});return{...j,data:{x:j.x-o,y:j.y-r,enabled:{[w]:f,[y]:m}}}}}},ST=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:o,y:r,placement:s,rects:c,middlewareData:f}=l,{offset:m=0,mainAxis:h=!0,crossAxis:p=!0}=Ca(n,l),b={x:o,y:r},g=sa(s),y=ah(g);let w=b[y],C=b[g];const R=Ca(m,l),j=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(h){const _=y==="y"?"height":"width",D=c.reference[y]-c.floating[_]+j.mainAxis,L=c.reference[y]+c.reference[_]-j.mainAxis;wL&&(w=L)}if(p){var N,E;const _=y==="y"?"width":"height",D=Lb.has(da(s)),L=c.reference[g]-c.floating[_]+(D&&((N=f.offset)==null?void 0:N[g])||0)+(D?0:j.crossAxis),U=c.reference[g]+c.reference[_]+(D?0:((E=f.offset)==null?void 0:E[g])||0)-(D?j.crossAxis:0);CU&&(C=U)}return{[y]:w,[g]:C}}}},xT=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var o,r;const{placement:s,rects:c,platform:f,elements:m}=l,{apply:h=()=>{},...p}=Ca(n,l),b=await f.detectOverflow(l,p),g=da(s),y=_o(s),w=sa(s)==="y",{width:C,height:R}=c.floating;let j,N;g==="top"||g==="bottom"?(j=g,N=y===(await(f.isRTL==null?void 0:f.isRTL(m.floating))?"start":"end")?"left":"right"):(N=g,j=y==="end"?"top":"bottom");const E=R-b.top-b.bottom,_=C-b.left-b.right,D=fa(R-b[j],E),L=fa(C-b[N],_),U=!l.middlewareData.shift;let V=D,k=L;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&(k=_),(r=l.middlewareData.shift)!=null&&r.enabled.y&&(V=E),U&&!y){const ae=Pt(b.left,0),te=Pt(b.right,0),W=Pt(b.top,0),oe=Pt(b.bottom,0);w?k=C-2*(ae!==0||te!==0?ae+te:Pt(b.left,b.right)):V=R-2*(W!==0||oe!==0?W+oe:Pt(b.top,b.bottom))}await h({...l,availableWidth:k,availableHeight:V});const P=await f.getDimensions(m.floating);return C!==P.width||R!==P.height?{reset:{rects:!0}}:{}}}};function Hb(n){const l=Pn(n);let o=parseFloat(l.width)||0,r=parseFloat(l.height)||0;const s=ta(n),c=s?n.offsetWidth:o,f=s?n.offsetHeight:r,m=Mc(o)!==c||Mc(r)!==f;return m&&(o=c,r=f),{width:o,height:r,$:m}}function ih(n){return vt(n)?n:n.contextElement}function yo(n){const l=ih(n);if(!ta(l))return Sa(1);const o=l.getBoundingClientRect(),{width:r,height:s,$:c}=Hb(l);let f=(c?Mc(o.width):o.width)/r,m=(c?Mc(o.height):o.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!m||!Number.isFinite(m))&&(m=1),{x:f,y:m}}const wT=Sa(0);function $b(n){const l=xn(n);return!Kc()||!l.visualViewport?wT:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function CT(n,l,o){return l===void 0&&(l=!1),!o||l&&o!==xn(n)?!1:l}function vr(n,l,o,r){l===void 0&&(l=!1),o===void 0&&(o=!1);const s=n.getBoundingClientRect(),c=ih(n);let f=Sa(1);l&&(r?vt(r)&&(f=yo(r)):f=yo(n));const m=CT(c,o,r)?$b(c):Sa(0);let h=(s.left+m.x)/f.x,p=(s.top+m.y)/f.y,b=s.width/f.x,g=s.height/f.y;if(c){const y=xn(c),w=r&&vt(r)?xn(r):r;let C=y,R=Em(C);for(;R&&r&&w!==C;){const j=yo(R),N=R.getBoundingClientRect(),E=Pn(R),_=N.left+(R.clientLeft+parseFloat(E.paddingLeft))*j.x,D=N.top+(R.clientTop+parseFloat(E.paddingTop))*j.y;h*=j.x,p*=j.y,b*=j.x,g*=j.y,h+=_,p+=D,C=xn(R),R=Em(C)}}return So({width:b,height:g,x:h,y:p})}function Fc(n,l){const o=Ic(n).scrollLeft;return l?l.left+o:vr(_a(n)).left+o}function Ub(n,l){const o=n.getBoundingClientRect(),r=o.left+l.scrollLeft-Fc(n,o),s=o.top+l.scrollTop;return{x:r,y:s}}function ET(n){let{elements:l,rect:o,offsetParent:r,strategy:s}=n;const c=s==="fixed",f=_a(r),m=l?Qc(l.floating):!1;if(r===f||m&&c)return o;let h={scrollLeft:0,scrollTop:0},p=Sa(1);const b=Sa(0),g=ta(r);if((g||!g&&!c)&&((Ro(r)!=="body"||ki(f))&&(h=Ic(r)),g)){const w=vr(r);p=yo(r),b.x=w.x+r.clientLeft,b.y=w.y+r.clientTop}const y=f&&!g&&!c?Ub(f,h):Sa(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-h.scrollLeft*p.x+b.x+y.x,y:o.y*p.y-h.scrollTop*p.y+b.y+y.y}}function TT(n){return Array.from(n.getClientRects())}function RT(n){const l=_a(n),o=Ic(n),r=n.ownerDocument.body,s=Pt(l.scrollWidth,l.clientWidth,r.scrollWidth,r.clientWidth),c=Pt(l.scrollHeight,l.clientHeight,r.scrollHeight,r.clientHeight);let f=-o.scrollLeft+Fc(n);const m=-o.scrollTop;return Pn(r).direction==="rtl"&&(f+=Pt(l.clientWidth,r.clientWidth)-s),{width:s,height:c,x:f,y:m}}const g0=25;function _T(n,l){const o=xn(n),r=_a(n),s=o.visualViewport;let c=r.clientWidth,f=r.clientHeight,m=0,h=0;if(s){c=s.width,f=s.height;const b=Kc();(!b||b&&l==="fixed")&&(m=s.offsetLeft,h=s.offsetTop)}const p=Fc(r);if(p<=0){const b=r.ownerDocument,g=b.body,y=getComputedStyle(g),w=b.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,C=Math.abs(r.clientWidth-g.clientWidth-w);C<=g0&&(c-=C)}else p<=g0&&(c+=p);return{width:c,height:f,x:m,y:h}}function NT(n,l){const o=vr(n,!0,l==="fixed"),r=o.top+n.clientTop,s=o.left+n.clientLeft,c=ta(n)?yo(n):Sa(1),f=n.clientWidth*c.x,m=n.clientHeight*c.y,h=s*c.x,p=r*c.y;return{width:f,height:m,x:h,y:p}}function y0(n,l,o){let r;if(l==="viewport")r=_T(n,o);else if(l==="document")r=RT(_a(n));else if(vt(l))r=NT(l,o);else{const s=$b(n);r={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return So(r)}function Vb(n,l){const o=tl(n);return o===l||!vt(o)||Pa(o)?!1:Pn(o).position==="fixed"||Vb(o,l)}function jT(n,l){const o=l.get(n);if(o)return o;let r=Wa(n,[],!1).filter(m=>vt(m)&&Ro(m)!=="body"),s=null;const c=Pn(n).position==="fixed";let f=c?tl(n):n;for(;vt(f)&&!Pa(f);){const m=Pn(f),h=nh(f);!h&&m.position==="fixed"&&(s=null),(c?!h&&!s:!h&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||ki(f)&&!h&&Vb(n,f))?r=r.filter(b=>b!==f):s=m,f=tl(f)}return l.set(n,r),r}function AT(n){let{element:l,boundary:o,rootBoundary:r,strategy:s}=n;const f=[...o==="clippingAncestors"?Qc(l)?[]:jT(l,this._c):[].concat(o),r],m=y0(l,f[0],s);let h=m.top,p=m.right,b=m.bottom,g=m.left;for(let y=1;y{f(!1,1e-7)},1e3)}V===1&&!Yb(p,n.getBoundingClientRect())&&f(),D=!1}try{o=new IntersectionObserver(L,{..._,root:s.ownerDocument})}catch{o=new IntersectionObserver(L,_)}o.observe(n)}return f(!0),c}function Nm(n,l,o,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,p=ih(n),b=s||c?[...p?Wa(p):[],...l?Wa(l):[]]:[];b.forEach(N=>{s&&N.addEventListener("scroll",o,{passive:!0}),c&&N.addEventListener("resize",o)});const g=p&&m?LT(p,o):null;let y=-1,w=null;f&&(w=new ResizeObserver(N=>{let[E]=N;E&&E.target===p&&w&&l&&(w.unobserve(l),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var _;(_=w)==null||_.observe(l)})),o()}),p&&!h&&w.observe(p),l&&w.observe(l));let C,R=h?vr(n):null;h&&j();function j(){const N=vr(n);R&&!Yb(R,N)&&o(),R=N,C=requestAnimationFrame(j)}return o(),()=>{var N;b.forEach(E=>{s&&E.removeEventListener("scroll",o),c&&E.removeEventListener("resize",o)}),g==null||g(),(N=w)==null||N.disconnect(),w=null,h&&cancelAnimationFrame(C)}}const HT=yT,$T=bT,UT=mT,VT=xT,kT=hT,S0=dT,YT=vT,XT=ST,qT=(n,l,o)=>{const r=new Map,s={platform:BT,...o},c={...s.platform,_c:r};return fT(n,l,{...s,platform:c})};var GT=typeof document<"u",ZT=function(){},xc=GT?x.useLayoutEffect:ZT;function zc(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let o,r,s;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==l.length)return!1;for(r=o;r--!==0;)if(!zc(n[r],l[r]))return!1;return!0}if(s=Object.keys(n),o=s.length,o!==Object.keys(l).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(l,s[r]))return!1;for(r=o;r--!==0;){const c=s[r];if(!(c==="_owner"&&n.$$typeof)&&!zc(n[c],l[c]))return!1}return!0}return n!==n&&l!==l}function Xb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function x0(n,l){const o=Xb(n);return Math.round(l*o)/o}function nm(n){const l=x.useRef(n);return xc(()=>{l.current=n}),l}function QT(n){n===void 0&&(n={});const{placement:l="bottom",strategy:o="absolute",middleware:r=[],platform:s,elements:{reference:c,floating:f}={},transform:m=!0,whileElementsMounted:h,open:p}=n,[b,g]=x.useState({x:0,y:0,strategy:o,placement:l,middlewareData:{},isPositioned:!1}),[y,w]=x.useState(r);zc(y,r)||w(r);const[C,R]=x.useState(null),[j,N]=x.useState(null),E=x.useCallback(B=>{B!==U.current&&(U.current=B,R(B))},[]),_=x.useCallback(B=>{B!==V.current&&(V.current=B,N(B))},[]),D=c||C,L=f||j,U=x.useRef(null),V=x.useRef(null),k=x.useRef(b),P=h!=null,ae=nm(h),te=nm(s),W=nm(p),oe=x.useCallback(()=>{if(!U.current||!V.current)return;const B={placement:l,strategy:o,middleware:y};te.current&&(B.platform=te.current),qT(U.current,V.current,B).then(G=>{const J={...G,isPositioned:W.current!==!1};K.current&&!zc(k.current,J)&&(k.current=J,Ja.flushSync(()=>{g(J)}))})},[y,l,o,te,W]);xc(()=>{p===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,g(B=>({...B,isPositioned:!1})))},[p]);const K=x.useRef(!1);xc(()=>(K.current=!0,()=>{K.current=!1}),[]),xc(()=>{if(D&&(U.current=D),L&&(V.current=L),D&&L){if(ae.current)return ae.current(D,L,oe);oe()}},[D,L,oe,ae,P]);const ie=x.useMemo(()=>({reference:U,floating:V,setReference:E,setFloating:_}),[E,_]),O=x.useMemo(()=>({reference:D,floating:L}),[D,L]),M=x.useMemo(()=>{const B={position:o,left:0,top:0};if(!O.floating)return B;const G=x0(O.floating,b.x),J=x0(O.floating,b.y);return m?{...B,transform:"translate("+G+"px, "+J+"px)",...Xb(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:G,top:J}},[o,m,O.floating,b.x,b.y]);return x.useMemo(()=>({...b,update:oe,refs:ie,elements:O,floatingStyles:M}),[b,oe,ie,O,M])}const KT=n=>{function l(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:r,padding:s}=typeof n=="function"?n(o):n;return r&&l(r)?r.current!=null?S0({element:r.current,padding:s}).fn(o):{}:r?S0({element:r,padding:s}).fn(o):{}}}},qb=(n,l)=>{const o=HT(n);return{name:o.name,fn:o.fn,options:[n,l]}},sh=(n,l)=>{const o=$T(n);return{name:o.name,fn:o.fn,options:[n,l]}},w0=(n,l)=>({fn:XT(n).fn,options:[n,l]}),jm=(n,l)=>{const o=UT(n);return{name:o.name,fn:o.fn,options:[n,l]}},IT=(n,l)=>{const o=VT(n);return{name:o.name,fn:o.fn,options:[n,l]}},FT=(n,l)=>{const o=kT(n);return{name:o.name,fn:o.fn,options:[n,l]}},Di=(n,l)=>{const o=YT(n);return{name:o.name,fn:o.fn,options:[n,l]}},Gb=(n,l)=>{const o=KT(n);return{name:o.name,fn:o.fn,options:[n,l]}};function Zb(n){const l=x.useRef(void 0),o=x.useCallback(r=>{const s=n.map(c=>{if(c!=null){if(typeof c=="function"){const f=c,m=f(r);return typeof m=="function"?m:()=>{f(null)}}return c.current=r,()=>{c.current=null}}});return()=>{s.forEach(c=>c==null?void 0:c())}},n);return x.useMemo(()=>n.every(r=>r==null)?null:r=>{l.current&&(l.current(),l.current=void 0),r!=null&&(l.current=o(r))},n)}const JT="data-floating-ui-focusable",C0="active",E0="selected",PT={...J0};let T0=!1,WT=0;const R0=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+WT++;function eR(){const[n,l]=x.useState(()=>T0?R0():void 0);return xa(()=>{n==null&&l(R0())},[]),x.useEffect(()=>{T0=!0},[]),n}const tR=PT.useId,Qb=tR||eR;function nR(){const n=new Map;return{emit(l,o){var r;(r=n.get(l))==null||r.forEach(s=>s(o))},on(l,o){n.has(l)||n.set(l,new Set),n.get(l).add(o)},off(l,o){var r;(r=n.get(l))==null||r.delete(o)}}}const aR=x.createContext(null),lR=x.createContext(null),ch=()=>{var n;return((n=x.useContext(aR))==null?void 0:n.id)||null},uh=()=>x.useContext(lR);function fh(n){return"data-floating-ui-"+n}function In(n){n.current!==-1&&(clearTimeout(n.current),n.current=-1)}const _0=fh("safe-polygon");function wc(n,l,o){if(o&&!_m(o))return 0;if(typeof n=="number")return n;if(typeof n=="function"){const r=n();return typeof r=="number"?r:r==null?void 0:r[l]}return n==null?void 0:n[l]}function am(n){return typeof n=="function"?n():n}function rR(n,l){l===void 0&&(l={});const{open:o,onOpenChange:r,dataRef:s,events:c,elements:f}=n,{enabled:m=!0,delay:h=0,handleClose:p=null,mouseOnly:b=!1,restMs:g=0,move:y=!0}=l,w=uh(),C=ch(),R=mc(p),j=mc(h),N=mc(o),E=mc(g),_=x.useRef(),D=x.useRef(-1),L=x.useRef(),U=x.useRef(-1),V=x.useRef(!0),k=x.useRef(!1),P=x.useRef(()=>{}),ae=x.useRef(!1),te=ya(()=>{var M;const B=(M=s.current.openEvent)==null?void 0:M.type;return(B==null?void 0:B.includes("mouse"))&&B!=="mousedown"});x.useEffect(()=>{if(!m)return;function M(B){let{open:G}=B;G||(In(D),In(U),V.current=!0,ae.current=!1)}return c.on("openchange",M),()=>{c.off("openchange",M)}},[m,c]),x.useEffect(()=>{if(!m||!R.current||!o)return;function M(G){te()&&r(!1,G,"hover")}const B=dr(f.floating).documentElement;return B.addEventListener("mouseleave",M),()=>{B.removeEventListener("mouseleave",M)}},[f.floating,o,r,m,R,te]);const W=x.useCallback(function(M,B,G){B===void 0&&(B=!0),G===void 0&&(G="hover");const J=wc(j.current,"close",_.current);J&&!L.current?(In(D),D.current=window.setTimeout(()=>r(!1,M,G),J)):B&&(In(D),r(!1,M,G))},[j,r]),oe=ya(()=>{P.current(),L.current=void 0}),K=ya(()=>{if(k.current){const M=dr(f.floating).body;M.style.pointerEvents="",M.removeAttribute(_0),k.current=!1}}),ie=ya(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);x.useEffect(()=>{if(!m)return;function M(H){if(In(D),V.current=!1,b&&!_m(_.current)||am(E.current)>0&&!wc(j.current,"open"))return;const Q=wc(j.current,"open",_.current);Q?D.current=window.setTimeout(()=>{N.current||r(!0,H,"hover")},Q):o||r(!0,H,"hover")}function B(H){if(ie()){K();return}P.current();const Q=dr(f.floating);if(In(U),ae.current=!1,R.current&&s.current.floatingContext){o||In(D),L.current=R.current({...s.current.floatingContext,tree:w,x:H.clientX,y:H.clientY,onClose(){K(),oe(),ie()||W(H,!0,"safe-polygon")}});const se=L.current;Q.addEventListener("mousemove",se),P.current=()=>{Q.removeEventListener("mousemove",se)};return}(_.current==="touch"?!Hi(f.floating,H.relatedTarget):!0)&&W(H)}function G(H){ie()||s.current.floatingContext&&(R.current==null||R.current({...s.current.floatingContext,tree:w,x:H.clientX,y:H.clientY,onClose(){K(),oe(),ie()||W(H)}})(H))}function J(){In(D)}function A(H){ie()||W(H,!1)}if(vt(f.domReference)){const H=f.domReference,Q=f.floating;return o&&H.addEventListener("mouseleave",G),y&&H.addEventListener("mousemove",M,{once:!0}),H.addEventListener("mouseenter",M),H.addEventListener("mouseleave",B),Q&&(Q.addEventListener("mouseleave",G),Q.addEventListener("mouseenter",J),Q.addEventListener("mouseleave",A)),()=>{o&&H.removeEventListener("mouseleave",G),y&&H.removeEventListener("mousemove",M),H.removeEventListener("mouseenter",M),H.removeEventListener("mouseleave",B),Q&&(Q.removeEventListener("mouseleave",G),Q.removeEventListener("mouseenter",J),Q.removeEventListener("mouseleave",A))}}},[f,m,n,b,y,W,oe,K,r,o,N,w,j,R,s,ie,E]),xa(()=>{var M;if(m&&o&&(M=R.current)!=null&&(M=M.__options)!=null&&M.blockPointerEvents&&te()){k.current=!0;const G=f.floating;if(vt(f.domReference)&&G){var B;const J=dr(f.floating).body;J.setAttribute(_0,"");const A=f.domReference,H=w==null||(B=w.nodesRef.current.find(Q=>Q.id===C))==null||(B=B.context)==null?void 0:B.elements.floating;return H&&(H.style.pointerEvents=""),J.style.pointerEvents="none",A.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{J.style.pointerEvents="",A.style.pointerEvents="",G.style.pointerEvents=""}}}},[m,o,C,f,w,R,te]),xa(()=>{o||(_.current=void 0,ae.current=!1,oe(),K())},[o,oe,K]),x.useEffect(()=>()=>{oe(),In(D),In(U),K()},[m,f.domReference,oe,K]);const O=x.useMemo(()=>{function M(B){_.current=B.pointerType}return{onPointerDown:M,onPointerEnter:M,onMouseMove(B){const{nativeEvent:G}=B;function J(){!V.current&&!N.current&&r(!0,G,"hover")}b&&!_m(_.current)||o||am(E.current)===0||ae.current&&B.movementX**2+B.movementY**2<2||(In(U),_.current==="touch"?J():(ae.current=!0,U.current=window.setTimeout(J,am(E.current))))}}},[b,r,o,N,E]);return x.useMemo(()=>m?{reference:O}:{},[m,O])}const Am=()=>{},Kb=x.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Am,setState:Am,isInstantPhase:!1}),oR=()=>x.useContext(Kb);function iR(n){const{children:l,delay:o,timeoutMs:r=0}=n,[s,c]=x.useReducer((h,p)=>({...h,...p}),{delay:o,timeoutMs:r,initialDelay:o,currentId:null,isInstantPhase:!1}),f=x.useRef(null),m=x.useCallback(h=>{c({currentId:h})},[]);return xa(()=>{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]),v.jsx(Kb.Provider,{value:x.useMemo(()=>({...s,setState:c,setCurrentId:m}),[s,m]),children:l})}function sR(n,l){l===void 0&&(l={});const{open:o,onOpenChange:r,floatingId:s}=n,{id:c,enabled:f=!0}=l,m=c??s,h=oR(),{currentId:p,setCurrentId:b,initialDelay:g,setState:y,timeoutMs:w}=h;return xa(()=>{f&&p&&(y({delay:{open:1,close:wc(g,"close")}}),p!==m&&r(!1))},[f,m,r,y,p,g]),xa(()=>{function C(){r(!1),y({delay:g,currentId:null})}if(f&&p&&!o&&p===m){if(w){const R=window.setTimeout(C,w);return()=>{clearTimeout(R)}}C()}},[f,o,y,p,m,r,g,w]),xa(()=>{f&&(b===Am||!o||b(m))},[f,o,b,m]),h}const cR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},uR={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},N0=n=>{var l,o;return{escapeKey:typeof n=="boolean"?n:(l=n==null?void 0:n.escapeKey)!=null?l:!1,outsidePress:typeof n=="boolean"?n:(o=n==null?void 0:n.outsidePress)!=null?o:!0}};function fR(n,l){l===void 0&&(l={});const{open:o,onOpenChange:r,elements:s,dataRef:c}=n,{enabled:f=!0,escapeKey:m=!0,outsidePress:h=!0,outsidePressEvent:p="pointerdown",referencePress:b=!1,referencePressEvent:g="pointerdown",ancestorScroll:y=!1,bubbles:w,capture:C}=l,R=uh(),j=ya(typeof h=="function"?h:()=>!1),N=typeof h=="function"?j:h,E=x.useRef(!1),{escapeKey:_,outsidePress:D}=N0(w),{escapeKey:L,outsidePress:U}=N0(C),V=x.useRef(!1),k=ya(K=>{var ie;if(!o||!f||!m||K.key!=="Escape"||V.current)return;const O=(ie=c.current.floatingContext)==null?void 0:ie.nodeId,M=R?Sc(R.nodesRef.current,O):[];if(!_&&(K.stopPropagation(),M.length>0)){let B=!0;if(M.forEach(G=>{var J;if((J=G.context)!=null&&J.open&&!G.context.dataRef.current.__escapeKeyBubbles){B=!1;return}}),!B)return}r(!1,aT(K)?K.nativeEvent:K,"escape-key")}),P=ya(K=>{var ie;const O=()=>{var M;k(K),(M=vo(K))==null||M.removeEventListener("keydown",O)};(ie=vo(K))==null||ie.addEventListener("keydown",O)}),ae=ya(K=>{var ie;const O=c.current.insideReactTree;c.current.insideReactTree=!1;const M=E.current;if(E.current=!1,p==="click"&&M||O||typeof N=="function"&&!N(K))return;const B=vo(K),G="["+fh("inert")+"]",J=dr(s.floating).querySelectorAll(G);let A=vt(B)?B:null;for(;A&&!Pa(A);){const se=tl(A);if(Pa(se)||!vt(se))break;A=se}if(J.length&&vt(B)&&!WE(B)&&!Hi(B,s.floating)&&Array.from(J).every(se=>!Hi(A,se)))return;if(ta(B)&&oe){const se=Pa(B),de=Pn(B),pe=/auto|scroll/,_e=se||pe.test(de.overflowX),Me=se||pe.test(de.overflowY),He=_e&&B.clientWidth>0&&B.scrollWidth>B.clientWidth,st=Me&&B.clientHeight>0&&B.scrollHeight>B.clientHeight,je=de.direction==="rtl",Qe=st&&(je?K.offsetX<=B.offsetWidth-B.clientWidth:K.offsetX>B.clientWidth),$e=He&&K.offsetY>B.clientHeight;if(Qe||$e)return}const H=(ie=c.current.floatingContext)==null?void 0:ie.nodeId,Q=R&&Sc(R.nodesRef.current,H).some(se=>{var de;return em(K,(de=se.context)==null?void 0:de.elements.floating)});if(em(K,s.floating)||em(K,s.domReference)||Q)return;const ee=R?Sc(R.nodesRef.current,H):[];if(ee.length>0){let se=!0;if(ee.forEach(de=>{var pe;if((pe=de.context)!=null&&pe.open&&!de.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}r(!1,K,"outside-press")}),te=ya(K=>{var ie;const O=()=>{var M;ae(K),(M=vo(K))==null||M.removeEventListener(p,O)};(ie=vo(K))==null||ie.addEventListener(p,O)});x.useEffect(()=>{if(!o||!f)return;c.current.__escapeKeyBubbles=_,c.current.__outsidePressBubbles=D;let K=-1;function ie(J){r(!1,J,"ancestor-scroll")}function O(){window.clearTimeout(K),V.current=!0}function M(){K=window.setTimeout(()=>{V.current=!1},Kc()?5:0)}const B=dr(s.floating);m&&(B.addEventListener("keydown",L?P:k,L),B.addEventListener("compositionstart",O),B.addEventListener("compositionend",M)),N&&B.addEventListener(p,U?te:ae,U);let G=[];return y&&(vt(s.domReference)&&(G=Wa(s.domReference)),vt(s.floating)&&(G=G.concat(Wa(s.floating))),!vt(s.reference)&&s.reference&&s.reference.contextElement&&(G=G.concat(Wa(s.reference.contextElement)))),G=G.filter(J=>{var A;return J!==((A=B.defaultView)==null?void 0:A.visualViewport)}),G.forEach(J=>{J.addEventListener("scroll",ie,{passive:!0})}),()=>{m&&(B.removeEventListener("keydown",L?P:k,L),B.removeEventListener("compositionstart",O),B.removeEventListener("compositionend",M)),N&&B.removeEventListener(p,U?te:ae,U),G.forEach(J=>{J.removeEventListener("scroll",ie)}),window.clearTimeout(K)}},[c,s,m,N,p,o,r,y,f,_,D,k,L,P,ae,U,te]),x.useEffect(()=>{c.current.insideReactTree=!1},[c,N,p]);const W=x.useMemo(()=>({onKeyDown:k,...b&&{[cR[g]]:K=>{r(!1,K.nativeEvent,"reference-press")},...g!=="click"&&{onClick(K){r(!1,K.nativeEvent,"reference-press")}}}}),[k,r,b,g]),oe=x.useMemo(()=>{function K(ie){ie.button===0&&(E.current=!0)}return{onKeyDown:k,onMouseDown:K,onMouseUp:K,[uR[p]]:()=>{c.current.insideReactTree=!0}}},[k,p,c]);return x.useMemo(()=>f?{reference:W,floating:oe}:{},[f,W,oe])}function dR(n){const{open:l=!1,onOpenChange:o,elements:r}=n,s=Qb(),c=x.useRef({}),[f]=x.useState(()=>nR()),m=ch()!=null,[h,p]=x.useState(r.reference),b=ya((w,C,R)=>{c.current.openEvent=w?C:void 0,f.emit("openchange",{open:w,event:C,reason:R,nested:m}),o==null||o(w,C,R)}),g=x.useMemo(()=>({setPositionReference:p}),[]),y=x.useMemo(()=>({reference:h||r.reference||null,floating:r.floating||null,domReference:r.reference}),[h,r.reference,r.floating]);return x.useMemo(()=>({dataRef:c,open:l,onOpenChange:b,elements:y,events:f,floatingId:s,refs:g}),[l,b,y,f,s,g])}function dh(n){n===void 0&&(n={});const{nodeId:l}=n,o=dR({...n,elements:{reference:null,floating:null,...n.elements}}),r=n.rootContext||o,s=r.elements,[c,f]=x.useState(null),[m,h]=x.useState(null),b=(s==null?void 0:s.domReference)||c,g=x.useRef(null),y=uh();xa(()=>{b&&(g.current=b)},[b]);const w=QT({...n,elements:{...s,...m&&{reference:m}}}),C=x.useCallback(_=>{const D=vt(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),getClientRects:()=>_.getClientRects(),contextElement:_}:_;h(D),w.refs.setReference(D)},[w.refs]),R=x.useCallback(_=>{(vt(_)||_===null)&&(g.current=_,f(_)),(vt(w.refs.reference.current)||w.refs.reference.current===null||_!==null&&!vt(_))&&w.refs.setReference(_)},[w.refs]),j=x.useMemo(()=>({...w.refs,setReference:R,setPositionReference:C,domReference:g}),[w.refs,R,C]),N=x.useMemo(()=>({...w.elements,domReference:b}),[w.elements,b]),E=x.useMemo(()=>({...w,...r,refs:j,elements:N,nodeId:l}),[w,j,N,l,r]);return xa(()=>{r.dataRef.current.floatingContext=E;const _=y==null?void 0:y.nodesRef.current.find(D=>D.id===l);_&&(_.context=E)}),x.useMemo(()=>({...w,context:E,refs:j,elements:N}),[w,j,N,E])}function lm(){return FE()&&IE()}function mR(n,l){l===void 0&&(l={});const{open:o,onOpenChange:r,events:s,dataRef:c,elements:f}=n,{enabled:m=!0,visibleOnly:h=!0}=l,p=x.useRef(!1),b=x.useRef(-1),g=x.useRef(!0);x.useEffect(()=>{if(!m)return;const w=xn(f.domReference);function C(){!o&&ta(f.domReference)&&f.domReference===m0(dr(f.domReference))&&(p.current=!0)}function R(){g.current=!0}function j(){g.current=!1}return w.addEventListener("blur",C),lm()&&(w.addEventListener("keydown",R,!0),w.addEventListener("pointerdown",j,!0)),()=>{w.removeEventListener("blur",C),lm()&&(w.removeEventListener("keydown",R,!0),w.removeEventListener("pointerdown",j,!0))}},[f.domReference,o,m]),x.useEffect(()=>{if(!m)return;function w(C){let{reason:R}=C;(R==="reference-press"||R==="escape-key")&&(p.current=!0)}return s.on("openchange",w),()=>{s.off("openchange",w)}},[s,m]),x.useEffect(()=>()=>{In(b)},[]);const y=x.useMemo(()=>({onMouseLeave(){p.current=!1},onFocus(w){if(p.current)return;const C=vo(w.nativeEvent);if(h&&vt(C)){if(lm()&&!w.relatedTarget){if(!g.current&&!eT(C))return}else if(!tT(C))return}r(!0,w.nativeEvent,"focus")},onBlur(w){p.current=!1;const C=w.relatedTarget,R=w.nativeEvent,j=vt(C)&&C.hasAttribute(fh("focus-guard"))&&C.getAttribute("data-type")==="outside";b.current=window.setTimeout(()=>{var N;const E=m0(f.domReference?f.domReference.ownerDocument:document);!C&&E===f.domReference||Hi((N=c.current.floatingContext)==null?void 0:N.refs.floating.current,E)||Hi(f.domReference,E)||j||r(!1,R,"focus")})}}),[c,f.domReference,r,h]);return x.useMemo(()=>m?{reference:y}:{},[m,y])}function rm(n,l,o){const r=new Map,s=o==="item";let c=n;if(s&&n){const{[C0]:f,[E0]:m,...h}=n;c=h}return{...o==="floating"&&{tabIndex:-1,[JT]:""},...c,...l.map(f=>{const m=f?f[o]:null;return typeof m=="function"?n?m(n):null:m}).concat(n).reduce((f,m)=>(m&&Object.entries(m).forEach(h=>{let[p,b]=h;if(!(s&&[C0,E0].includes(p)))if(p.indexOf("on")===0){if(r.has(p)||r.set(p,[]),typeof b=="function"){var g;(g=r.get(p))==null||g.push(b),f[p]=function(){for(var y,w=arguments.length,C=new Array(w),R=0;Rj(...C)).find(j=>j!==void 0)}}}else f[p]=b}),f),{})}}function hR(n){n===void 0&&(n=[]);const l=n.map(m=>m==null?void 0:m.reference),o=n.map(m=>m==null?void 0:m.floating),r=n.map(m=>m==null?void 0:m.item),s=x.useCallback(m=>rm(m,n,"reference"),l),c=x.useCallback(m=>rm(m,n,"floating"),o),f=x.useCallback(m=>rm(m,n,"item"),r);return x.useMemo(()=>({getReferenceProps:s,getFloatingProps:c,getItemProps:f}),[s,c,f])}const pR=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function vR(n,l){var o,r;l===void 0&&(l={});const{open:s,elements:c,floatingId:f}=n,{enabled:m=!0,role:h="dialog"}=l,p=Qb(),b=((o=c.domReference)==null?void 0:o.id)||p,g=x.useMemo(()=>{var E;return((E=nT(c.floating))==null?void 0:E.id)||f},[c.floating,f]),y=(r=pR.get(h))!=null?r:h,C=ch()!=null,R=x.useMemo(()=>y==="tooltip"||h==="label"?{["aria-"+(h==="label"?"labelledby":"describedby")]:s?g:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":y==="alertdialog"?"dialog":y,"aria-controls":s?g:void 0,...y==="listbox"&&{role:"combobox"},...y==="menu"&&{id:b},...y==="menu"&&C&&{role:"menuitem"},...h==="select"&&{"aria-autocomplete":"none"},...h==="combobox"&&{"aria-autocomplete":"list"}},[y,g,C,s,b,h]),j=x.useMemo(()=>{const E={id:g,...y&&{role:y}};return y==="tooltip"||h==="label"?E:{...E,...y==="menu"&&{"aria-labelledby":b}}},[y,g,b,h]),N=x.useCallback(E=>{let{active:_,selected:D}=E;const L={role:"option",..._&&{id:g+"-fui-option"}};switch(h){case"select":case"combobox":return{...L,"aria-selected":D}}return{}},[g,h]);return x.useMemo(()=>m?{reference:R,floating:j,item:N}:{},[m,R,j,N])}const Ib={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Fb=(n,{scrollbarSize:l,overscrollBehavior:o,scrollbars:r})=>{let s=o;return o&&r&&(r==="x"?s=`${o} auto`:r==="y"&&(s=`auto ${o}`)),{root:{"--scrollarea-scrollbar-size":F(l),"--scrollarea-over-scroll-behavior":s}}},Na=ge(n=>{const l=ce("ScrollArea",Ib,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,scrollbarSize:m,vars:h,type:p,scrollHideDelay:b,viewportProps:g,viewportRef:y,onScrollPositionChange:w,children:C,offsetScrollbars:R,scrollbars:j,onBottomReached:N,onTopReached:E,onLeftReached:_,onRightReached:D,overscrollBehavior:L,startScrollPosition:U,attributes:V,...k}=l,[P,ae]=x.useState(!1),[te,W]=x.useState(!1),[oe,K]=x.useState(!1),ie=x.useRef(!0),O=x.useRef(!1),M=x.useRef(!0),B=x.useRef(!1),G=De({name:"ScrollArea",props:l,classes:th,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:V,vars:h,varsResolver:Fb}),J=x.useRef(null),[A,H]=x.useState(null),Q=Zb([y,J,x.useCallback(ee=>{H(se=>se===ee?se:ee)},[])]);return Ll(R==="present"?A:null,()=>{const ee=J.current;ee&&(W(ee.scrollHeight>ee.clientHeight),K(ee.scrollWidth>ee.clientWidth))}),wa(()=>{U&&J.current&&J.current.scrollTo({left:U.x??0,top:U.y??0})},[]),v.jsxs(wb,{getStyles:G,type:p==="never"?"always":p,scrollHideDelay:b,scrollbars:j,...G("root"),...k,children:[v.jsx(Mb,{...g,...G("viewport",{style:g==null?void 0:g.style}),ref:Q,"data-offset-scrollbars":R===!0?"xy":R||void 0,"data-scrollbars":j||void 0,"data-horizontal-hidden":R==="present"&&!oe?"true":void 0,"data-vertical-hidden":R==="present"&&!te?"true":void 0,onScroll:ee=>{var Ce;(Ce=g==null?void 0:g.onScroll)==null||Ce.call(g,ee),w==null||w({x:ee.currentTarget.scrollLeft,y:ee.currentTarget.scrollTop});const{scrollTop:se,scrollHeight:de,clientHeight:pe,scrollLeft:_e,scrollWidth:Me,clientWidth:He}=ee.currentTarget,st=se-(de-pe)>=-.8,je=se===0;st&&!O.current&&(N==null||N()),je&&!ie.current&&(E==null||E()),O.current=st,ie.current=je;const Qe=_e-(Me-He)>=-.8,$e=_e===0;Qe&&!B.current&&(D==null||D()),$e&&!M.current&&(_==null||_()),B.current=Qe,M.current=$e},children:C}),(j==="xy"||j==="x")&&v.jsx(xm,{...G("scrollbar"),orientation:"horizontal","data-hidden":p==="never"||R==="present"&&!oe?!0:void 0,forceMount:!0,onMouseEnter:()=>ae(!0),onMouseLeave:()=>ae(!1),children:v.jsx(wm,{...G("thumb")})}),(j==="xy"||j==="y")&&v.jsx(xm,{...G("scrollbar"),orientation:"vertical","data-hidden":p==="never"||R==="present"&&!te?!0:void 0,forceMount:!0,onMouseEnter:()=>ae(!0),onMouseLeave:()=>ae(!1),children:v.jsx(wm,{...G("thumb")})}),v.jsx(_E,{...G("corner"),"data-hovered":P||void 0,"data-hidden":p==="never"||void 0})]})});Na.displayName="@mantine/core/ScrollArea";const mh=ge(n=>{const{children:l,classNames:o,styles:r,scrollbarSize:s,scrollHideDelay:c,type:f,dir:m,offsetScrollbars:h,overscrollBehavior:p,viewportRef:b,onScrollPositionChange:g,unstyled:y,variant:w,viewportProps:C,scrollbars:R,style:j,vars:N,onBottomReached:E,onTopReached:_,startScrollPosition:D,onOverflowChange:L,...U}=ce("ScrollAreaAutosize",Ib,n),V=x.useRef(null),[k,P]=x.useState(null),ae=Zb([b,V,x.useCallback(K=>{P(ie=>ie===K?ie:K)},[])]),te=x.useRef(!1),W=x.useRef(!1),oe=x.useEffectEvent(()=>{const K=V.current;if(!K||!L)return;const ie=K.scrollHeight>K.clientHeight;ie!==te.current&&(W.current?L(ie):(W.current=!0,ie&&L(!0)),te.current=ie)});return Ll(L?k:null,oe),v.jsx(fe,{...U,variant:w,style:[{display:"flex",overflow:"hidden"},j],children:v.jsx(fe,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...R==="y"&&{minWidth:0},...R==="x"&&{minHeight:0},...R==="xy"&&{minWidth:0,minHeight:0},...R===!1&&{minWidth:0,minHeight:0}},children:v.jsx(Na,{classNames:o,styles:r,scrollHideDelay:c,scrollbarSize:s,type:f,dir:m,offsetScrollbars:h,overscrollBehavior:p,viewportRef:ae,onScrollPositionChange:g,unstyled:y,variant:w,viewportProps:C,vars:N,scrollbars:R,onBottomReached:E,onTopReached:_,startScrollPosition:D,"data-autosize":"true",children:l})})})});Na.classes=th;Na.varsResolver=Fb;mh.displayName="@mantine/core/ScrollAreaAutosize";mh.classes=th;Na.Autosize=mh;var Jb={root:"m_87cf2631"};const gR={__staticSelector:"UnstyledButton"},Hl=sn(n=>{const l=ce("UnstyledButton",gR,n),{className:o,component:r="button",__staticSelector:s,unstyled:c,classNames:f,styles:m,style:h,attributes:p,...b}=l;return v.jsx(fe,{...De({name:s,props:l,classes:Jb,className:o,style:h,classNames:f,styles:m,unstyled:c,attributes:p})("root",{focusable:!0}),component:r,type:r==="button"?"button":void 0,...b})});Hl.classes=Jb;Hl.displayName="@mantine/core/UnstyledButton";var Pb={root:"m_515a97f8"};const hh=ge(n=>{const l=ce("VisuallyHidden",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,attributes:h,...p}=l;return v.jsx(fe,{component:"span",...De({name:"VisuallyHidden",classes:Pb,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:h})("root"),...p})});hh.classes=Pb;hh.displayName="@mantine/core/VisuallyHidden";var Wb={root:"m_1b7284a3"};const e1=(n,{radius:l,shadow:o})=>({root:{"--paper-radius":l===void 0?void 0:Xt(l),"--paper-shadow":qm(o)}}),Yi=sn(n=>{const l=ce("Paper",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,withBorder:m,vars:h,radius:p,shadow:b,variant:g,mod:y,attributes:w,...C}=l,R=De({name:"Paper",props:l,classes:Wb,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:w,vars:h,varsResolver:e1});return v.jsx(fe,{mod:[{"data-with-border":m},y],...R("root"),variant:g,...C})});Yi.classes=Wb;Yi.varsResolver=e1;Yi.displayName="@mantine/core/Paper";function j0(n,l,o,r){return n==="center"||r==="center"?{top:l}:n==="end"?{bottom:o}:n==="start"?{top:o}:{}}function A0(n,l,o,r,s){return n==="center"||r==="center"?{left:l}:n==="end"?{[s==="ltr"?"right":"left"]:o}:n==="start"?{[s==="ltr"?"left":"right"]:o}:{}}const yR={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function bR({position:n,arrowSize:l,dir:o}){const[r,s]=n.split("-");if(!s)return;const c={width:l,height:l,position:"absolute"};if(r==="bottom"){const f=s==="start",m=f?o==="ltr"?"left":"right":o==="ltr"?"right":"left";return{...c,top:-l,[m]:0,clipPath:f!==(o==="rtl")?"polygon(0% 0%, 0% 100%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}if(r==="top"){const f=s==="start",m=f?o==="ltr"?"left":"right":o==="ltr"?"right":"left";return{...c,bottom:-l,[m]:0,clipPath:f!==(o==="rtl")?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 100% 0%, 100% 100%)"}}if(r==="left")return{...c,right:-l,[s==="start"?"top":"bottom"]:0,clipPath:s==="start"?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 0% 100%, 100% 100%)"};if(r==="right")return{...c,left:-l,[s==="start"?"top":"bottom"]:0,clipPath:s==="start"?"polygon(0% 0%, 100% 0%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}function SR({position:n,arrowSize:l,arrowOffset:o,arrowRadius:r,arrowPosition:s,arrowX:c,arrowY:f,dir:m}){if(s==="merge"){const y=bR({position:n,arrowSize:l,dir:m});if(y)return y}const[h,p="center"]=n.split("-"),b={width:l,height:l,transform:"rotate(45deg)",position:"absolute",[yR[h]]:r},g=-l/2;return h==="left"?{...b,...j0(p,f,o,s),right:g,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:h==="right"?{...b,...j0(p,f,o,s),left:g,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:h==="top"?{...b,...A0(p,c,o,s,m),bottom:g,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:h==="bottom"?{...b,...A0(p,c,o,s,m),top:g,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}function t1({position:n,dir:l}){const[o,r]=n.split("-");if(!r)return;const s=r==="start"&&l==="ltr"||r==="end"&&l==="rtl";if(o==="bottom")return s?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(o==="top")return s?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(o==="left")return r==="start"?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(o==="right")return r==="start"?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function Bc({position:n,arrowSize:l,arrowOffset:o,arrowRadius:r,arrowPosition:s,visible:c,arrowX:f,arrowY:m,style:h,...p}){const{dir:b}=To();return c?v.jsx("div",{...p,style:{...h,...SR({position:n,arrowSize:l,arrowOffset:o,arrowRadius:r,arrowPosition:s,dir:b,arrowX:f,arrowY:m})}}):null}Bc.displayName="@mantine/core/FloatingArrow";function n1(n,l){if(n==="rtl"&&(l.includes("right")||l.includes("left"))){const[o,r]=l.split("-"),s=o==="right"?"left":"right";return r===void 0?s:`${s}-${r}`}return l}var a1={root:"m_9814e45f"};const xR={zIndex:on("modal")},l1=(n,{gradient:l,color:o,backgroundOpacity:r,blur:s,radius:c,zIndex:f})=>({root:{"--overlay-bg":l||(o!==void 0||r!==void 0)&&Ol(o||"#000",r??.6)||void 0,"--overlay-filter":s?`blur(${F(s)})`:void 0,"--overlay-radius":c===void 0?void 0:Xt(c),"--overlay-z-index":f==null?void 0:f.toString()}}),Xi=sn(n=>{const l=ce("Overlay",xR,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,fixed:h,center:p,children:b,radius:g,zIndex:y,gradient:w,blur:C,color:R,backgroundOpacity:j,mod:N,attributes:E,..._}=l;return v.jsx(fe,{...De({name:"Overlay",props:l,classes:a1,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:E,vars:m,varsResolver:l1})("root"),mod:[{center:p,fixed:h},N],..._,children:b})});Xi.classes=a1;Xi.varsResolver=l1;Xi.displayName="@mantine/core/Overlay";function om(n){const l=document.createElement("div");return l.setAttribute("data-portal","true"),typeof n.className=="string"&&l.classList.add(...n.className.split(" ").filter(Boolean)),typeof n.style=="object"&&Object.assign(l.style,n.style),typeof n.id=="string"&&l.setAttribute("id",n.id),l}function wR({target:n,reuseTargetNode:l,...o}){if(n)return typeof n=="string"?document.querySelector(n)||om(o):n;if(l){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const s=om(o);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return om(o)}const CR={reuseTargetNode:!0},r1=ge(n=>{const{children:l,target:o,reuseTargetNode:r,ref:s,...c}=ce("Portal",CR,n),[f,m]=x.useState(!1),h=x.useRef(null);return wa(()=>(m(!0),h.current=wR({target:o,reuseTargetNode:r,...c}),Nc(s,h.current),!o&&!r&&h.current&&document.body.appendChild(h.current),()=>{!o&&!r&&h.current&&document.body.removeChild(h.current)}),[o]),!f||!h.current?null:Ja.createPortal(v.jsx(v.Fragment,{children:l}),h.current)});r1.displayName="@mantine/core/Portal";const $l=ge(({withinPortal:n=!0,children:l,...o})=>kc()==="test"||!n?v.jsx(v.Fragment,{children:l}):v.jsx(r1,{...o,children:l}));$l.displayName="@mantine/core/OptionalPortal";const _i=n=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${n==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),hc={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:{..._i("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{..._i("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{..._i("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{..._i("top"),common:{transformOrigin:"top left"}},"pop-top-right":{..._i("top"),common:{transformOrigin:"top right"}}},O0={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function M0({transition:n,state:l,duration:o,timingFunction:r}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${o}ms`,transitionTimingFunction:r};return typeof n=="string"?n in hc?{transitionProperty:hc[n].transitionProperty,...s,...hc[n].common,...hc[n][O0[l]]}:{}:{transitionProperty:n.transitionProperty,...s,...n.common,...n[O0[l]]}}function ER({duration:n,exitDuration:l,timingFunction:o,mounted:r,onEnter:s,onExit:c,onEntered:f,onExited:m,enterDelay:h,exitDelay:p}){const b=Wn(),g=Uc(),y=b.respectReducedMotion?g:!1,[w,C]=x.useState(y?0:n),[R,j]=x.useState(r?"entered":"exited"),N=x.useRef(-1),E=x.useRef(-1),_=x.useRef(-1);function D(){window.clearTimeout(N.current),window.clearTimeout(E.current),cancelAnimationFrame(_.current)}const L=V=>{D();const k=V?s:c,P=V?f:m,ae=y?0:V?n:l;C(ae),ae===0?(typeof k=="function"&&k(),typeof P=="function"&&P(),j(V?"entered":"exited")):_.current=requestAnimationFrame(()=>{ji.flushSync(()=>{j(V?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof k=="function"&&k(),j(V?"entering":"exiting"),N.current=window.setTimeout(()=>{typeof P=="function"&&P(),j(V?"entered":"exited")},ae)})})},U=V=>{if(D(),typeof(V?h:p)!="number"){L(V);return}E.current=window.setTimeout(()=>{L(V)},V?h:p)};return Eo(()=>{U(r)},[r]),x.useEffect(()=>()=>{D()},[]),{transitionDuration:w,transitionStatus:R,transitionTimingFunction:o||"ease"}}function nl({keepMounted:n,transition:l="fade",duration:o=250,exitDuration:r=o,mounted:s,children:c,timingFunction:f="ease",onExit:m,onEntered:h,onEnter:p,onExited:b,enterDelay:g,exitDelay:y}){const w=kc(),{transitionDuration:C,transitionStatus:R,transitionTimingFunction:j}=ER({mounted:s,exitDuration:r,duration:o,timingFunction:f,onExit:m,onEntered:h,onEnter:p,onExited:b,enterDelay:g,exitDelay:y});if(w==="test")return s?v.jsx(v.Fragment,{children:c({})}):n?c({display:"none"}):null;if(C===0)return n?v.jsx(x.Activity,{mode:s?"visible":"hidden",children:c({})}):s?v.jsx(v.Fragment,{children:c({})}):null;const N=R==="exited";return n?v.jsx(x.Activity,{mode:N?"hidden":"visible",children:c(N?{}:M0({transition:l,duration:C,state:R,timingFunction:j}))}):N?null:v.jsx(v.Fragment,{children:c(M0({transition:l,duration:C,state:R,timingFunction:j}))})}nl.displayName="@mantine/core/Transition";const TR={duration:100,transition:"fade"};function D0(n,l){return{...TR,...l,...n}}const[RR,ph]=Ea("Popover component was not found in the tree");function _R({childProps:n,disabled:l,opened:o,setReference:r,open:s}){const c=Py(n.onMouseDown,f=>{l||f.button===2&&f.stopPropagation()});return{onContextMenu:Py(n.onContextMenu,f=>{if(l||f.defaultPrevented)return;f.preventDefault();const{clientX:m,clientY:h}=f,p=f.currentTarget;r({getBoundingClientRect:()=>({x:m,y:h,width:0,height:0,top:h,left:m,right:m,bottom:h,toJSON:()=>{}}),contextElement:p}),s()}),onMouseDown:c,"data-expanded":o?!0:void 0}}function o1(n){const{children:l,disabled:o}=ce("PopoverContextMenu",null,n),r=br(l);if(!r)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=ph();return x.cloneElement(r,_R({childProps:r.props,disabled:o||s.disabled,opened:s.opened,setReference:s.reference,open:()=>{s.opened||s.onToggle()}}))}o1.displayName="@mantine/core/PopoverContextMenu";function Jc({children:n,active:l=!0,refProp:o="ref",innerRef:r}){const s=en(P2(l),r),c=br(n);return c?x.cloneElement(c,{[o]:s}):n}function i1(n){return v.jsx(hh,{tabIndex:-1,"data-autofocus":!0,...n})}Jc.displayName="@mantine/core/FocusTrap";i1.displayName="@mantine/core/FocusTrapInitialFocus";Jc.InitialFocus=i1;var s1={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const vh=ge(n=>{var E,_,D,L;const l=ce("PopoverDropdown",null,n),{className:o,style:r,vars:s,children:c,onKeyDownCapture:f,variant:m,classNames:h,styles:p,ref:b,...g}=l,y=ph(),{dir:w}=To(),C=y.arrowPosition==="merge"&&y.withArrow?t1({position:y.placement,dir:w}):void 0,R=ab({opened:y.opened,shouldReturnFocus:y.returnFocus}),j=y.withRoles?{"aria-labelledby":y.getTargetId(),id:y.getDropdownId(),role:"dialog",tabIndex:-1}:{},N=en(b,y.floating);return y.disabled?null:v.jsx($l,{...y.portalProps,withinPortal:y.withinPortal,children:v.jsx(nl,{mounted:y.opened,...y.transitionProps,transition:((E=y.transitionProps)==null?void 0:E.transition)||"fade",duration:((_=y.transitionProps)==null?void 0:_.duration)??150,keepMounted:y.keepMounted,exitDuration:typeof((D=y.transitionProps)==null?void 0:D.exitDuration)=="number"?y.transitionProps.exitDuration:(L=y.transitionProps)==null?void 0:L.duration,children:U=>{var V;return v.jsx(Jc,{active:y.trapFocus&&y.opened,innerRef:N,children:v.jsxs(fe,{...j,...g,variant:m,onKeyDownCapture:V2(()=>{var k,P;(k=y.onClose)==null||k.call(y),(P=y.onDismiss)==null||P.call(y)},{active:y.closeOnEscape,onTrigger:R,onKeyDown:f}),"data-position":y.placement,"data-fixed":y.floatingStrategy==="fixed"||void 0,...y.getStyles("dropdown",{className:o,props:l,classNames:h,styles:p,style:[{...U,...C,zIndex:y.zIndex,top:y.y??0,left:y.x??0,width:y.width==="target"?void 0:F(y.width),...y.referenceHidden?{display:"none"}:null},(V=y.resolvedStyles)==null?void 0:V.dropdown,p==null?void 0:p.dropdown,r]}),children:[c,v.jsx(Bc,{ref:y.arrowRef,arrowX:y.arrowX,arrowY:y.arrowY,visible:y.withArrow,position:y.placement,arrowSize:y.arrowSize,arrowRadius:y.arrowRadius,arrowOffset:y.arrowOffset,arrowPosition:y.arrowPosition,...y.getStyles("arrow",{props:l,classNames:h,styles:p})})]})})}})})});vh.classes=s1;vh.displayName="@mantine/core/PopoverDropdown";const NR={refProp:"ref",popupType:"dialog"},c1=ge(n=>{const{children:l,refProp:o,popupType:r,ref:s,...c}=ce("PopoverTarget",NR,n),f=br(l);if(!f)throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const m=c,h=ph(),p=en(h.reference,Vc(f),s),b=h.withRoles?{"aria-haspopup":r,"aria-expanded":h.opened,"aria-controls":h.opened?h.getDropdownId():void 0,id:h.getTargetId()}:{},g=f.props;return x.cloneElement(f,{...m,...b,...h.targetProps,className:zt(h.targetProps.className,m.className,g.className),[o]:p,...h.controlled?null:{onClick:y=>{var w;h.onToggle(),(w=g.onClick)==null||w.call(g,y)}}})});c1.displayName="@mantine/core/PopoverTarget";function jR(n){if(n===void 0)return{shift:!0,flip:!0};const l={...n};return n.shift===void 0&&(l.shift=!0),n.flip===void 0&&(l.flip=!0),l}function AR(n,l,o,r){const s=jR(n.middlewares),c=[qb(n.offset),FT()];if(s.flip&&!o){const f=typeof s.flip=="boolean"?{}:s.flip,m=r?{fallbackStrategy:"initialPlacement",...f}:f;c.push(jm(m))}return s.shift&&c.push(sh(typeof s.shift=="boolean"?{limiter:w0(),padding:5}:{limiter:w0(),padding:5,...s.shift})),s.inline&&c.push(typeof s.inline=="boolean"?Di():Di(s.inline)),c.push(Gb({element:n.arrowRef,padding:n.arrowOffset})),(s.size||n.width==="target")&&c.push(IT({...typeof s.size=="boolean"?{}:s.size,apply({rects:f,availableWidth:m,availableHeight:h,...p}){var g;const b=((g=l().refs.floating.current)==null?void 0:g.style)??{};s.size&&(typeof s.size=="object"&&s.size.apply?s.size.apply({rects:f,availableWidth:m,availableHeight:h,...p}):Object.assign(b,{maxWidth:`${m}px`,maxHeight:`${h}px`})),n.width==="target"&&Object.assign(b,{width:`${f.reference.width}px`})}})),c}function OR(n){const[l,o]=Bl({value:n.opened,defaultValue:n.defaultOpened,finalValue:!1,onChange:n.onChange}),r=x.useRef(l),[s,c]=x.useState(null),f=n.preventPositionChangeWhenVisible!==!1,m=x.useRef(l);l!==m.current&&(m.current=l,l&&s!==null&&c(null));const h=x.useCallback(()=>c(null),[]),p=()=>{l&&!n.disabled&&o(!1)},b=()=>{n.disabled||o(!l)},g=dh({open:l,strategy:n.strategy,placement:f?s??n.position:n.position,middleware:AR(n,()=>g,f&&s!==null,f),whileElementsMounted:n.keepMounted?void 0:Nm});x.useEffect(()=>{if(!(!g.refs.reference.current||!g.refs.floating.current)&&l)return Nm(g.refs.reference.current,g.refs.floating.current,g.update)},[l,g.update]);const y=x.useRef(!1);wa(()=>{if(!l){y.current=!1;return}if(!f||s!==null)return;const C=g.refs.floating.current;if(!(!C||C.offsetHeight===0||C.offsetWidth===0)){if(!y.current){y.current=!0,g.update();return}g.isPositioned&&c(g.placement)}},[f,l,g.isPositioned,g.placement,s,g.update]);const w=x.useRef(g.placement);return wa(()=>{var C;w.current!==g.placement&&(w.current=g.placement,(C=n.onPositionChange)==null||C.call(n,g.placement))},[g.placement]),Eo(()=>{var C,R;l!==r.current&&(l?(R=n.onOpen)==null||R.call(n):(C=n.onClose)==null||C.call(n)),r.current=l},[l,n.onClose,n.onOpen]),{floating:g,controlled:typeof n.opened=="boolean",opened:l,onClose:p,onToggle:b,resetLockedPlacement:h}}const MR={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:on("popover"),__staticSelector:"Popover",width:"max-content"},u1=(n,{radius:l,shadow:o})=>({dropdown:{"--popover-radius":l===void 0?void 0:Xt(l),"--popover-shadow":qm(o)}});function Sn(n){var Ve,Cn,En,Ut,qt,jt,ut;const l=ce("Popover",MR,n),{children:o,position:r,offset:s,onPositionChange:c,opened:f,transitionProps:m,onExitTransitionEnd:h,onEnterTransitionEnd:p,width:b,middlewares:g,withArrow:y,arrowSize:w,arrowOffset:C,arrowRadius:R,arrowPosition:j,unstyled:N,classNames:E,styles:_,closeOnClickOutside:D,withinPortal:L,portalProps:U,closeOnEscape:V,clickOutsideEvents:k,trapFocus:P,onClose:ae,onDismiss:te,onOpen:W,onChange:oe,zIndex:K,radius:ie,shadow:O,id:M,defaultOpened:B,__staticSelector:G,withRoles:J,disabled:A,returnFocus:H,variant:Q,keepMounted:ee,vars:se,floatingStrategy:de,withOverlay:pe,overlayProps:_e,hideDetached:Me,attributes:He,preventPositionChangeWhenVisible:st,...je}=l,Qe=De({name:G,props:l,classes:s1,classNames:E,styles:_,unstyled:N,attributes:He,rootSelector:"dropdown",vars:se,varsResolver:u1}),{resolvedStyles:$e}=Yc({classNames:E,styles:_,props:l}),Ce=x.useRef(null),[ct,me]=x.useState(null),[he,Ee]=x.useState(null),{dir:Ae}=To(),Ye=kc(),Oe=Ta(M),be=OR({middlewares:g,width:b,position:n1(Ae,r),offset:typeof s=="number"?s+(y?w/2:0):s,arrowRef:Ce,arrowOffset:C,onPositionChange:c,opened:f,defaultOpened:B,onChange:oe,onOpen:W,onClose:ae,onDismiss:te,strategy:de,disabled:A,preventPositionChangeWhenVisible:st,keepMounted:ee});X2(()=>{D&&(be.onClose(),te==null||te())},k,[ct,he]);const Ue=x.useCallback(Ie=>{me(Ie),be.floating.refs.setReference(Ie)},[be.floating.refs.setReference]),xe=x.useCallback(Ie=>{Ee(Ie),be.floating.refs.setFloating(Ie)},[be.floating.refs.setFloating]),Te=x.useCallback(()=>{var Ie;(Ie=m==null?void 0:m.onExited)==null||Ie.call(m),h==null||h(),be.resetLockedPlacement()},[m==null?void 0:m.onExited,h,be.resetLockedPlacement]),yt=x.useCallback(()=>{var Ie;(Ie=m==null?void 0:m.onEntered)==null||Ie.call(m),p==null||p()},[m==null?void 0:m.onEntered,p]);return v.jsxs(RR,{value:{returnFocus:H,disabled:A,controlled:be.controlled,reference:Ue,floating:xe,x:be.floating.x,y:be.floating.y,arrowX:(En=(Cn=(Ve=be.floating)==null?void 0:Ve.middlewareData)==null?void 0:Cn.arrow)==null?void 0:En.x,arrowY:(jt=(qt=(Ut=be.floating)==null?void 0:Ut.middlewareData)==null?void 0:qt.arrow)==null?void 0:jt.y,opened:be.opened,arrowRef:Ce,transitionProps:{...m,onExited:Te,onEntered:yt},width:b,withArrow:y,arrowSize:w,arrowOffset:C,arrowRadius:R,arrowPosition:j,placement:be.floating.placement,trapFocus:P,withinPortal:L,portalProps:U,zIndex:K,radius:ie,shadow:O,closeOnEscape:V,onDismiss:te,onClose:be.onClose,onToggle:be.onToggle,getTargetId:()=>Oe,getDropdownId:()=>`${Oe}-dropdown`,withRoles:J,targetProps:je,__staticSelector:G,classNames:E,styles:_,unstyled:N,variant:Q,keepMounted:ee,getStyles:Qe,resolvedStyles:$e,floatingStrategy:de,referenceHidden:Me&&Ye!=="test"?(ut=be.floating.middlewareData.hide)==null?void 0:ut.referenceHidden:!1},children:[o,pe&&v.jsx(nl,{transition:"fade",mounted:be.opened,duration:(m==null?void 0:m.duration)||250,exitDuration:(m==null?void 0:m.exitDuration)||250,children:Ie=>v.jsx($l,{withinPortal:L,children:v.jsx(Xi,{..._e,...Qe("overlay",{className:_e==null?void 0:_e.className,style:[Ie,_e==null?void 0:_e.style]})})})})]})}Sn.Target=c1;Sn.Dropdown=vh;Sn.ContextMenu=o1;Sn.varsResolver=u1;Sn.displayName="@mantine/core/Popover";Sn.extend=n=>n;Sn.withProps=n=>{const l=o=>v.jsx(Sn,{...n,...o});return l.extend=Sn.extend,l.displayName=`WithProps(${Sn.displayName})`,l};var ca={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 f1=({className:n,...l})=>v.jsxs(fe,{component:"span",className:zt(ca.barsLoader,n),...l,children:[v.jsx("span",{className:ca.bar}),v.jsx("span",{className:ca.bar}),v.jsx("span",{className:ca.bar})]});f1.displayName="@mantine/core/Bars";const d1=({className:n,...l})=>v.jsxs(fe,{component:"span",className:zt(ca.dotsLoader,n),...l,children:[v.jsx("span",{className:ca.dot}),v.jsx("span",{className:ca.dot}),v.jsx("span",{className:ca.dot})]});d1.displayName="@mantine/core/Dots";const m1=({className:n,...l})=>v.jsx(fe,{component:"span",className:zt(ca.ovalLoader,n),...l});m1.displayName="@mantine/core/Oval";const h1={bars:f1,oval:m1,dots:d1},DR={loaders:h1,type:"oval"},p1=(n,{size:l,color:o})=>({root:{"--loader-size":Pe(l,"loader-size"),"--loader-color":o?Fn(o,n):void 0}}),Hn=ge(n=>{const l=ce("Loader",DR,n),{size:o,color:r,type:s,vars:c,className:f,style:m,classNames:h,styles:p,unstyled:b,loaders:g,variant:y,children:w,attributes:C,...R}=l,j=De({name:"Loader",props:l,classes:ca,className:f,style:m,classNames:h,styles:p,unstyled:b,attributes:C,vars:c,varsResolver:p1});return w?v.jsx(fe,{...j("root"),...R,children:w}):v.jsx(fe,{...j("root"),component:g[s],variant:y,size:o,...R})});Hn.defaultLoaders=h1;Hn.classes=ca;Hn.varsResolver=p1;Hn.displayName="@mantine/core/Loader";var No={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const z0={orientation:"horizontal"},v1=(n,{borderWidth:l})=>({group:{"--ai-border-width":F(l)}}),Pc=ge(n=>{const l=ce("ActionIconGroup",z0,n),{className:o,style:r,classNames:s,styles:c,unstyled:f,orientation:m,vars:h,borderWidth:p,variant:b,mod:g,attributes:y,...w}=ce("ActionIconGroup",z0,n);return v.jsx(fe,{...De({name:"ActionIconGroup",props:l,classes:No,className:o,style:r,classNames:s,styles:c,unstyled:f,attributes:y,vars:h,varsResolver:v1,rootSelector:"group"})("group"),variant:b,mod:[{"data-orientation":m},g],role:"group",...w})});Pc.classes=No;Pc.varsResolver=v1;Pc.displayName="@mantine/core/ActionIconGroup";const g1=(n,{radius:l,color:o,gradient:r,variant:s,autoContrast:c,size:f})=>{const m=n.variantColorResolver({color:o||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Pe(f,"section-height"),"--section-padding-x":Pe(f,"section-padding-x"),"--section-fz":Wt(f),"--section-radius":l===void 0?void 0:Xt(l),"--section-bg":o||s?m.background:void 0,"--section-color":m.color,"--section-bd":o||s?m.border:void 0}}},Wc=ge(n=>{const l=ce("ActionIconGroupSection",null,n),{className:o,style:r,classNames:s,styles:c,unstyled:f,vars:m,variant:h,gradient:p,radius:b,autoContrast:g,attributes:y,...w}=l;return v.jsx(fe,{...De({name:"ActionIconGroupSection",props:l,classes:No,className:o,style:r,classNames:s,styles:c,unstyled:f,attributes:y,vars:m,varsResolver:g1,rootSelector:"groupSection"})("groupSection"),variant:h,...w})});Wc.classes=No;Wc.varsResolver=g1;Wc.displayName="@mantine/core/ActionIconGroupSection";const y1=(n,{size:l,radius:o,variant:r,gradient:s,color:c,autoContrast:f})=>{const m=n.variantColorResolver({color:c||n.primaryColor,theme:n,gradient:s,variant:r||"filled",autoContrast:f});return{root:{"--ai-size":Pe(l,"ai-size"),"--ai-radius":o===void 0?void 0:Xt(o),"--ai-bg":c||r?m.background:void 0,"--ai-hover":c||r?m.hover:void 0,"--ai-hover-color":c||r?m.hoverColor:void 0,"--ai-color":m.color,"--ai-bd":c||r?m.border:void 0}}},Jn=sn(n=>{const l=ce("ActionIcon",null,n),{className:o,unstyled:r,variant:s,classNames:c,styles:f,style:m,loading:h,loaderProps:p,size:b,color:g,radius:y,__staticSelector:w,gradient:C,vars:R,children:j,disabled:N,"data-disabled":E,autoContrast:_,mod:D,attributes:L,...U}=l,V=De({name:["ActionIcon",w],props:l,className:o,style:m,classes:No,classNames:c,styles:f,unstyled:r,attributes:L,vars:R,varsResolver:y1});return v.jsxs(Hl,{...V("root",{active:!N&&!h&&!E}),...U,unstyled:r,variant:s,size:b,disabled:N||h,mod:[{loading:h,disabled:N||E},D],children:[typeof h=="boolean"&&v.jsx(nl,{mounted:h,transition:"slide-down",duration:150,children:k=>v.jsx(fe,{component:"span",...V("loader",{style:k}),"aria-hidden":!0,children:v.jsx(Hn,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...p})})}),v.jsx(fe,{component:"span",mod:{loading:h},...V("icon"),children:j})]})});Jn.classes=No;Jn.varsResolver=y1;Jn.displayName="@mantine/core/ActionIcon";Jn.Group=Pc;Jn.GroupSection=Wc;function b1({size:n="var(--cb-icon-size, 70%)",style:l,...o}){return v.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...l,width:n,height:n},...o,children:v.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"})})}b1.displayName="@mantine/core/CloseIcon";var S1={root:"m_86a44da5","root--subtle":"m_220c80f2"};const zR={variant:"subtle"},x1=(n,{size:l,radius:o,iconSize:r})=>({root:{"--cb-size":Pe(l,"cb-size"),"--cb-radius":o===void 0?void 0:Xt(o),"--cb-icon-size":F(r)}}),Sr=sn(n=>{const l=ce("CloseButton",zR,n),{iconSize:o,children:r,vars:s,radius:c,className:f,classNames:m,style:h,styles:p,unstyled:b,"data-disabled":g,disabled:y,variant:w,icon:C,mod:R,attributes:j,__staticSelector:N,...E}=l,_=De({name:N||"CloseButton",props:l,className:f,style:h,classes:S1,classNames:m,styles:p,unstyled:b,attributes:j,vars:s,varsResolver:x1});return v.jsxs(Hl,{...E,unstyled:b,variant:w,disabled:y,mod:[{disabled:y||g},R],..._("root",{variant:w,active:!y&&!g}),children:[C||v.jsx(b1,{}),r]})});Sr.classes=S1;Sr.varsResolver=x1;Sr.displayName="@mantine/core/CloseButton";function BR(n){return x.Children.toArray(n).filter(Boolean)}var w1={root:"m_4081bf90"};const LR={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},C1=(n,{grow:l,preventGrowOverflow:o,gap:r,align:s,justify:c,wrap:f},{childWidth:m})=>({root:{"--group-child-width":l&&o?m:void 0,"--group-gap":el(r),"--group-align":s,"--group-justify":c,"--group-wrap":f}}),gt=ge(n=>{const l=ce("Group",LR,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,children:m,gap:h,align:p,justify:b,wrap:g,grow:y,preventGrowOverflow:w,vars:C,variant:R,__size:j,mod:N,attributes:E,..._}=l,D=BR(m),L=D.length,U=el(h??"md");return v.jsx(fe,{...De({name:"Group",props:l,stylesCtx:{childWidth:`calc(${100/L}% - (${U} - ${U} / ${L}))`},className:r,style:s,classes:w1,classNames:o,styles:c,unstyled:f,attributes:E,vars:C,varsResolver:C1})("root"),variant:R,mod:[{grow:y},N],size:j,..._,children:D})});gt.classes=w1;gt.varsResolver=C1;gt.displayName="@mantine/core/Group";const[HR,al]=Ea("ModalBase component was not found in tree");function $R({opened:n,transitionDuration:l}){const[o,r]=x.useState(n),s=x.useRef(-1),c=Uc()?0:l;return x.useEffect(()=>(n?(r(!0),window.clearTimeout(s.current)):c===0?r(!1):s.current=window.setTimeout(()=>r(!1),c),()=>window.clearTimeout(s.current)),[n,c]),o}function UR({id:n,transitionProps:l,opened:o,trapFocus:r,closeOnEscape:s,onClose:c,returnFocus:f}){const m=Ta(n),[h,p]=x.useState(!1),[b,g]=x.useState(!1),y=$R({opened:o,transitionDuration:typeof(l==null?void 0:l.duration)=="number"?l==null?void 0:l.duration:200});return ib("keydown",w=>{var C;w.key==="Escape"&&s&&!w.isComposing&&o&&((C=w.target)==null?void 0:C.getAttribute("data-mantine-stop-propagation"))!=="true"&&c()},{capture:!0}),ab({opened:o,shouldReturnFocus:r&&f}),{_id:m,titleMounted:h,bodyMounted:b,shouldLockScroll:y,setTitleMounted:p,setBodyMounted:g}}var ba=function(){return ba=Object.assign||function(l){for(var o,r=1,s=arguments.length;r"u")return n3;var l=a3(n),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,r-o+l[2]-l[0])}},r3=_1(),bo="data-scroll-locked",o3=function(n,l,o,r){var s=n.left,c=n.top,f=n.right,m=n.gap;return o===void 0&&(o="margin"),` + .`.concat(kR,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(m,"px ").concat(r,`; + } + body[`).concat(bo,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([l&&"position: relative ".concat(r,";"),o==="margin"&&` + padding-left: `.concat(s,`px; + padding-top: `).concat(c,`px; + padding-right: `).concat(f,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(m,"px ").concat(r,`; + `),o==="padding"&&"padding-right: ".concat(m,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Cc,` { + right: `).concat(m,"px ").concat(r,`; + } + + .`).concat(Ec,` { + margin-right: `).concat(m,"px ").concat(r,`; + } + + .`).concat(Cc," .").concat(Cc,` { + right: 0 `).concat(r,`; + } + + .`).concat(Ec," .").concat(Ec,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(bo,`] { + `).concat(YR,": ").concat(m,`px; + } +`)},L0=function(){var n=parseInt(document.body.getAttribute(bo)||"0",10);return isFinite(n)?n:0},i3=function(){x.useEffect(function(){return document.body.setAttribute(bo,(L0()+1).toString()),function(){var n=L0()-1;n<=0?document.body.removeAttribute(bo):document.body.setAttribute(bo,n.toString())}},[])},s3=function(n){var l=n.noRelative,o=n.noImportant,r=n.gapMode,s=r===void 0?"margin":r;i3();var c=x.useMemo(function(){return l3(s)},[s]);return x.createElement(r3,{styles:o3(c,!l,s,o?"":"!important")})},Om=!1;if(typeof window<"u")try{var pc=Object.defineProperty({},"passive",{get:function(){return Om=!0,!0}});window.addEventListener("test",pc,pc),window.removeEventListener("test",pc,pc)}catch{Om=!1}var mo=Om?{passive:!1}:!1,c3=function(n){return n.tagName==="TEXTAREA"},N1=function(n,l){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[l]!=="hidden"&&!(o.overflowY===o.overflowX&&!c3(n)&&o[l]==="visible")},u3=function(n){return N1(n,"overflowY")},f3=function(n){return N1(n,"overflowX")},H0=function(n,l){var o=l.ownerDocument,r=l;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=j1(n,r);if(s){var c=A1(n,r),f=c[1],m=c[2];if(f>m)return!0}r=r.parentNode}while(r&&r!==o.body);return!1},d3=function(n){var l=n.scrollTop,o=n.scrollHeight,r=n.clientHeight;return[l,o,r]},m3=function(n){var l=n.scrollLeft,o=n.scrollWidth,r=n.clientWidth;return[l,o,r]},j1=function(n,l){return n==="v"?u3(l):f3(l)},A1=function(n,l){return n==="v"?d3(l):m3(l)},h3=function(n,l){return n==="h"&&l==="rtl"?-1:1},p3=function(n,l,o,r,s){var c=h3(n,window.getComputedStyle(l).direction),f=c*r,m=o.target,h=l.contains(m),p=!1,b=f>0,g=0,y=0;do{if(!m)break;var w=A1(n,m),C=w[0],R=w[1],j=w[2],N=R-j-c*C;(C||N)&&j1(n,m)&&(g+=N,y+=C);var E=m.parentNode;m=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!h&&m!==document.body||h&&(l.contains(m)||l===m));return(b&&Math.abs(g)<1||!b&&Math.abs(y)<1)&&(p=!0),p},vc=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},$0=function(n){return[n.deltaX,n.deltaY]},U0=function(n){return n&&"current"in n?n.current:n},v3=function(n,l){return n[0]===l[0]&&n[1]===l[1]},g3=function(n){return` + .block-interactivity-`.concat(n,` {pointer-events: none;} + .allow-interactivity-`).concat(n,` {pointer-events: all;} +`)},y3=0,ho=[];function b3(n){var l=x.useRef([]),o=x.useRef([0,0]),r=x.useRef(),s=x.useState(y3++)[0],c=x.useState(_1)[0],f=x.useRef(n);x.useEffect(function(){f.current=n},[n]),x.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var R=VR([n.lockRef.current],(n.shards||[]).map(U0),!0).filter(Boolean);return R.forEach(function(j){return j.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),R.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=x.useCallback(function(R,j){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!f.current.allowPinchZoom;var N=vc(R),E=o.current,_="deltaX"in R?R.deltaX:E[0]-N[0],D="deltaY"in R?R.deltaY:E[1]-N[1],L,U=R.target,V=Math.abs(_)>Math.abs(D)?"h":"v";if("touches"in R&&V==="h"&&U.type==="range")return!1;var k=window.getSelection(),P=k&&k.anchorNode,ae=P?P===U||P.contains(U):!1;if(ae)return!1;var te=H0(V,U);if(!te)return!0;if(te?L=V:(L=V==="v"?"h":"v",te=H0(V,U)),!te)return!1;if(!r.current&&"changedTouches"in R&&(_||D)&&(r.current=L),!L)return!0;var W=r.current||L;return p3(W,j,R,W==="h"?_:D)},[]),h=x.useCallback(function(R){var j=R;if(!(!ho.length||ho[ho.length-1]!==c)){var N="deltaY"in j?$0(j):vc(j),E=l.current.filter(function(L){return L.name===j.type&&(L.target===j.target||j.target===L.shadowParent)&&v3(L.delta,N)})[0];if(E&&E.should){j.cancelable&&j.preventDefault();return}if(!E){var _=(f.current.shards||[]).map(U0).filter(Boolean).filter(function(L){return L.contains(j.target)}),D=_.length>0?m(j,_[0]):!f.current.noIsolation;D&&j.cancelable&&j.preventDefault()}}},[]),p=x.useCallback(function(R,j,N,E){var _={name:R,delta:j,target:N,should:E,shadowParent:S3(N)};l.current.push(_),setTimeout(function(){l.current=l.current.filter(function(D){return D!==_})},1)},[]),b=x.useCallback(function(R){o.current=vc(R),r.current=void 0},[]),g=x.useCallback(function(R){p(R.type,$0(R),R.target,m(R,n.lockRef.current))},[]),y=x.useCallback(function(R){p(R.type,vc(R),R.target,m(R,n.lockRef.current))},[]);x.useEffect(function(){return ho.push(c),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:y}),document.addEventListener("wheel",h,mo),document.addEventListener("touchmove",h,mo),document.addEventListener("touchstart",b,mo),function(){ho=ho.filter(function(R){return R!==c}),document.removeEventListener("wheel",h,mo),document.removeEventListener("touchmove",h,mo),document.removeEventListener("touchstart",b,mo)}},[]);var w=n.removeScrollBar,C=n.inert;return x.createElement(x.Fragment,null,C?x.createElement(c,{styles:g3(s)}):null,w?x.createElement(s3,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function S3(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const x3=IR(R1,b3);var gr=x.forwardRef(function(n,l){return x.createElement(eu,ba({},n,{ref:l,sideCar:x3}))});gr.classNames=eu.classNames;function gh({keepMounted:n,opened:l,onClose:o,id:r,transitionProps:s,onExitTransitionEnd:c,onEnterTransitionEnd:f,trapFocus:m,closeOnEscape:h,returnFocus:p,closeOnClickOutside:b,withinPortal:g,portalProps:y,lockScroll:w,children:C,zIndex:R,shadow:j,padding:N,__vars:E,unstyled:_,removeScrollProps:D,...L}){const{_id:U,titleMounted:V,bodyMounted:k,shouldLockScroll:P,setTitleMounted:ae,setBodyMounted:te}=UR({id:r,transitionProps:s,opened:l,trapFocus:m,closeOnEscape:h,onClose:o,returnFocus:p}),{key:W,...oe}=D||{};return v.jsx($l,{...y,withinPortal:g,children:v.jsx(HR,{value:{opened:l,onClose:o,closeOnClickOutside:b,onExitTransitionEnd:c,onEnterTransitionEnd:f,transitionProps:{...s,keepMounted:n},getTitleId:()=>`${U}-title`,getBodyId:()=>`${U}-body`,titleMounted:V,bodyMounted:k,setTitleMounted:ae,setBodyMounted:te,trapFocus:m,closeOnEscape:h,zIndex:R,unstyled:_},children:v.jsx(gr,{enabled:P&&w,...oe,children:v.jsx(fe,{...L,id:U,__vars:{...E,"--mb-z-index":(R||on("modal")).toString(),"--mb-shadow":qm(j),"--mb-padding":el(N)},children:C})},W)})})}gh.displayName="@mantine/core/ModalBase";function w3(){const n=al();return x.useEffect(()=>(n.setBodyMounted(!0),()=>n.setBodyMounted(!1)),[]),n.getBodyId()}var xo={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function yh({className:n,...l}){const o=w3(),r=al();return v.jsx(fe,{id:o,className:zt({[xo.body]:!r.unstyled},n),...l})}yh.displayName="@mantine/core/ModalBaseBody";function bh({className:n,onClick:l,...o}){const r=al();return v.jsx(Sr,{...o,onClick:s=>{r.onClose(),l==null||l(s)},className:zt({[xo.close]:!r.unstyled},n),unstyled:r.unstyled})}bh.displayName="@mantine/core/ModalBaseCloseButton";function Sh({transitionProps:n,className:l,innerProps:o,onKeyDown:r,style:s,ref:c,...f}){const m=al();return v.jsx(nl,{mounted:m.opened,transition:"pop",...m.transitionProps,onExited:()=>{var h,p,b;(h=m.onExitTransitionEnd)==null||h.call(m),(b=(p=m.transitionProps)==null?void 0:p.onExited)==null||b.call(p)},onEntered:()=>{var h,p,b;(h=m.onEnterTransitionEnd)==null||h.call(m),(b=(p=m.transitionProps)==null?void 0:p.onEntered)==null||b.call(p)},...n,children:h=>v.jsx("div",{...o,className:zt({[xo.inner]:!m.unstyled},o.className),children:v.jsx(Jc,{active:m.opened&&m.trapFocus,innerRef:c,children:v.jsx(Yi,{...f,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":m.bodyMounted?m.getBodyId():void 0,"aria-labelledby":m.titleMounted?m.getTitleId():void 0,style:[s,h],className:zt({[xo.content]:!m.unstyled},l),unstyled:m.unstyled,children:f.children})})})})}Sh.displayName="@mantine/core/ModalBaseContent";function xh({className:n,...l}){const o=al();return v.jsx(fe,{component:"header",className:zt({[xo.header]:!o.unstyled},n),...l})}xh.displayName="@mantine/core/ModalBaseHeader";const C3={duration:200,timingFunction:"ease",transition:"fade"};function E3(n){const l=al();return{...C3,...l.transitionProps,...n}}function wh({onClick:n,transitionProps:l,style:o,visible:r,...s}){const c=al(),f=E3(l);return v.jsx(nl,{mounted:r!==void 0?r:c.opened,...f,transition:"fade",children:m=>v.jsx(Xi,{fixed:!0,style:[o,m],zIndex:c.zIndex,unstyled:c.unstyled,onClick:h=>{n==null||n(h),c.closeOnClickOutside&&c.onClose()},...s})})}wh.displayName="@mantine/core/ModalBaseOverlay";function T3(){const n=al();return x.useEffect(()=>(n.setTitleMounted(!0),()=>n.setTitleMounted(!1)),[]),n.getTitleId()}function Ch({className:n,...l}){const o=T3(),r=al();return v.jsx(fe,{component:"h2",className:zt({[xo.title]:!r.unstyled},n),id:o,...l})}Ch.displayName="@mantine/core/ModalBaseTitle";function O1({children:n}){return v.jsx(v.Fragment,{children:n})}const M1=x.createContext({size:"sm"}),D1=ge(n=>{const l=ce("InputClearButton",null,n),{size:o,variant:r,vars:s,classNames:c,styles:f,...m}=l,h=x.use(M1),{resolvedClassNames:p,resolvedStyles:b}=Yc({classNames:c,styles:f,props:l});return v.jsx(Sr,{variant:r||"transparent",size:o||(h==null?void 0:h.size)||"sm",classNames:p,styles:b,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...m.style},...m})});D1.displayName="@mantine/core/InputClearButton";const R3={xs:7,sm:8,md:10,lg:12,xl:15};function _3({__clearable:n,__clearSection:l,rightSection:o,__defaultRightSection:r,size:s="sm",__clearSectionMode:c="both"}){const f=n&&l;return c==="rightSection"?o===null?null:o||r:c==="clear"?o===null?null:f||r:f&&(o||r)?v.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:R3[s]},children:[f,o||r]}):o===null?null:o||f||r}const jo=x.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var na={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 z1=(n,{size:l})=>({description:{"--input-description-size":l===void 0?void 0:`calc(${Wt(l)} - ${F(2)})`}}),qi=ge(n=>{const l=ce("InputDescription",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,__staticSelector:h,__inheritStyles:p=!0,attributes:b,...g}=ce("InputDescription",null,l),y=x.use(jo),w=De({name:["InputWrapper",h],props:l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:b,rootSelector:"description",vars:m,varsResolver:z1});return v.jsx(fe,{component:"p",...(p&&(y==null?void 0:y.getStyles)||w)("description",y!=null&&y.getStyles?{className:r,style:s}:void 0),...g})});qi.classes=na;qi.varsResolver=z1;qi.displayName="@mantine/core/InputDescription";const B1=(n,{size:l})=>({error:{"--input-error-size":l===void 0?void 0:`calc(${Wt(l)} - ${F(2)})`}}),Gi=ge(n=>{const l=ce("InputError",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,attributes:h,__staticSelector:p,__inheritStyles:b=!0,...g}=l,y=De({name:["InputWrapper",p],props:l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:h,rootSelector:"error",vars:m,varsResolver:B1}),w=x.use(jo);return v.jsx(fe,{component:"p",...(b&&(w==null?void 0:w.getStyles)||y)("error",w!=null&&w.getStyles?{className:r,style:s}:void 0),...g})});Gi.classes=na;Gi.varsResolver=B1;Gi.displayName="@mantine/core/InputError";const N3={labelElement:"label"},L1=(n,{size:l})=>({label:{"--input-label-size":Wt(l),"--input-asterisk-color":void 0}}),Zi=ge(n=>{const l=ce("InputLabel",N3,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,labelElement:h,required:p,htmlFor:b,onMouseDown:g,children:y,__staticSelector:w,mod:C,attributes:R,...j}=l,N=De({name:["InputWrapper",w],props:l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:R,rootSelector:"label",vars:m,varsResolver:L1}),E=x.use(jo),_=(E==null?void 0:E.getStyles)||N;return v.jsxs(fe,{..._("label",E!=null&&E.getStyles?{className:r,style:s}:void 0),component:h,htmlFor:h==="label"?b:void 0,mod:[{required:p},C],onMouseDown:D=>{g==null||g(D),!D.defaultPrevented&&D.detail>1&&D.preventDefault()},...j,children:[y,p&&v.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});Zi.classes=na;Zi.varsResolver=L1;Zi.displayName="@mantine/core/InputLabel";const Eh=ge(n=>{const l=ce("InputPlaceholder",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,__staticSelector:h,error:p,mod:b,attributes:g,...y}=l;return v.jsx(fe,{...De({name:["InputPlaceholder",h],props:l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:g,rootSelector:"placeholder"})("placeholder"),mod:[{error:!!p},b],component:"span",...y})});Eh.classes=na;Eh.displayName="@mantine/core/InputPlaceholder";function j3(n,{hasDescription:l,hasError:o}){const r=n.findIndex(m=>m==="input"),s=n.slice(0,r),c=n.slice(r+1),f=l&&s.includes("description")||o&&s.includes("error");return{offsetBottom:l&&c.includes("description")||o&&c.includes("error"),offsetTop:f}}const A3={labelElement:"label",inputContainer:n=>n,inputWrapperOrder:["label","description","input","error"]},H1=(n,{size:l})=>({label:{"--input-label-size":Wt(l),"--input-asterisk-color":void 0},error:{"--input-error-size":l===void 0?void 0:`calc(${Wt(l)} - ${F(2)})`},description:{"--input-description-size":l===void 0?void 0:`calc(${Wt(l)} - ${F(2)})`}}),tu=ge(n=>{const l=ce("InputWrapper",A3,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,size:h,variant:p,__staticSelector:b,inputContainer:g,inputWrapperOrder:y,label:w,error:C,description:R,labelProps:j,descriptionProps:N,errorProps:E,labelElement:_,children:D,withAsterisk:L,id:U,required:V,__stylesApiProps:k,mod:P,attributes:ae,...te}=l,W=De({name:["InputWrapper",b],props:k||l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:ae,vars:m,varsResolver:H1}),oe={size:h,variant:p,__staticSelector:b},K=Ta(U),ie=typeof L=="boolean"?L:V,O=(E==null?void 0:E.id)||`${K}-error`,M=(N==null?void 0:N.id)||`${K}-description`,B=K,G=!!C&&typeof C!="boolean",J=!!R,A=`${G?O:""} ${J?M:""}`,H=A.trim().length>0?A.trim():void 0,Q=(j==null?void 0:j.id)||`${K}-label`,ee=w&&v.jsx(Zi,{labelElement:_,id:Q,htmlFor:B,required:ie,...oe,...j,children:w},"label"),se=J&&v.jsx(qi,{...N,...oe,size:(N==null?void 0:N.size)||oe.size,id:(N==null?void 0:N.id)||M,children:R},"description"),de=v.jsx(x.Fragment,{children:g(D)},"input"),pe=G&&x.createElement(Gi,{...E,...oe,size:(E==null?void 0:E.size)||oe.size,key:"error",id:(E==null?void 0:E.id)||O},C),_e=y.map(Me=>{switch(Me){case"label":return ee;case"input":return de;case"description":return se;case"error":return pe;default:return null}});return v.jsx(jo,{value:{getStyles:W,describedBy:H,inputId:B,labelId:Q,...j3(y,{hasDescription:J,hasError:G})},children:v.jsx(fe,{variant:p,size:h,mod:[{error:!!C},P],id:_==="label"?void 0:U,...W("root"),...te,children:_e})})});tu.classes=na;tu.varsResolver=H1;tu.displayName="@mantine/core/InputWrapper";const O3={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm",loading:!1,loadingPosition:"right"},$1=(n,l,o)=>({wrapper:{"--input-margin-top":o.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":o.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Pe(l.size,"input-height"),"--input-fz":Wt(l.size),"--input-radius":l.radius===void 0?void 0:Xt(l.radius),"--input-left-section-width":l.leftSectionWidth!==void 0?F(l.leftSectionWidth):void 0,"--input-right-section-width":l.rightSectionWidth!==void 0?F(l.rightSectionWidth):void 0,"--input-padding-y":l.multiline?Pe(l.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":l.leftSectionPointerEvents,"--input-right-section-pointer-events":l.rightSectionPointerEvents}}),$t=sn(n=>{const l=ce("Input",O3,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,required:m,__staticSelector:h,__stylesApiProps:p,size:b,wrapperProps:g,error:y,disabled:w,leftSection:C,leftSectionProps:R,leftSectionWidth:j,rightSection:N,rightSectionProps:E,rightSectionWidth:_,rightSectionPointerEvents:D,leftSectionPointerEvents:L,variant:U,vars:V,pointer:k,multiline:P,radius:ae,id:te,withAria:W,withErrorStyles:oe,mod:K,inputSize:ie,attributes:O,__clearSection:M,__clearable:B,__clearSectionMode:G,__defaultRightSection:J,loading:A,loadingPosition:H,__bottomSection:Q,__bottomSectionProps:ee,rootRef:se,dir:de,...pe}=l,{styleProps:_e,rest:Me}=Xc(pe),He=x.use(jo),st={offsetBottom:He==null?void 0:He.offsetBottom,offsetTop:He==null?void 0:He.offsetTop},je=De({name:["Input",h],props:p||l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:O,stylesCtx:st,rootSelector:"wrapper",vars:V,varsResolver:$1}),Qe=W?{required:m,disabled:w,"aria-invalid":y?!0:void 0,"aria-describedby":He==null?void 0:He.describedBy,id:(He==null?void 0:He.inputId)||te}:{},$e=A?v.jsx(Hn,{size:H==="left"?"calc(var(--input-left-section-size) / 2)":"calc(var(--input-right-section-size) / 2)"}):null,Ce=A&&H==="left"?$e:C,ct=_3({__clearable:B,__clearSection:M,rightSection:A&&H==="right"?$e:N,__defaultRightSection:J,size:b,__clearSectionMode:G});return v.jsx(M1,{value:{size:b||"sm"},children:v.jsxs(fe,{ref:se,dir:de,...je("wrapper"),..._e,...g,mod:[{error:!!y&&oe,pointer:k,disabled:w,multiline:P,"data-with-right-section":!!ct,"data-with-left-section":!!Ce,"data-with-bottom-section":!!Q},K],variant:U,size:b,children:[Ce&&v.jsx("div",{...R,"data-position":"left",...je("section",{className:R==null?void 0:R.className,style:R==null?void 0:R.style}),children:Ce}),v.jsx(fe,{component:"input",...Me,...Qe,required:m,mod:{disabled:w,error:!!y&&oe},variant:U,__size:ie,...je("input")}),Q&&v.jsx("div",{...ee,...je("bottomSection",{className:ee==null?void 0:ee.className,style:ee==null?void 0:ee.style}),children:Q}),ct&&v.jsx("div",{...E,"data-position":"right",...je("section",{className:E==null?void 0:E.className,style:E==null?void 0:E.style}),children:ct})]})})});$t.classes=na;$t.varsResolver=$1;$t.Wrapper=tu;$t.Label=Zi;$t.Error=Gi;$t.Description=qi;$t.Placeholder=Eh;$t.ClearButton=D1;$t.displayName="@mantine/core/Input";function M3(n,l,o){const r=ce(["Input","InputWrapper",n],l,o),{label:s,description:c,error:f,required:m,classNames:h,styles:p,className:b,unstyled:g,__staticSelector:y,__stylesApiProps:w,errorProps:C,labelProps:R,descriptionProps:j,wrapperProps:N,id:E,size:_,style:D,inputContainer:L,inputWrapperOrder:U,withAsterisk:V,variant:k,vars:P,mod:ae,attributes:te,...W}=r,{styleProps:oe,rest:K}=Xc(W),ie={label:s,description:c,error:f,required:m,classNames:h,className:b,__staticSelector:y,__stylesApiProps:w||r,errorProps:C,labelProps:R,descriptionProps:j,unstyled:g,styles:p,size:_,style:D,inputContainer:L,inputWrapperOrder:U,withAsterisk:V,variant:k,id:E,mod:ae,attributes:te,...N};return{...K,classNames:h,styles:p,unstyled:g,wrapperProps:{...ie,...oe},inputProps:{required:m,classNames:h,styles:p,unstyled:g,size:_,__staticSelector:y,__stylesApiProps:w||r,error:f,variant:k,id:E,attributes:te}}}const D3={__staticSelector:"InputBase",withAria:!0,size:"sm"},Vl=sn(n=>{const{inputProps:l,wrapperProps:o,...r}=M3("InputBase",D3,n);return v.jsx($t.Wrapper,{...o,children:v.jsx($t,{...l,...r})})});Vl.classes={...$t.classes,...$t.Wrapper.classes};Vl.displayName="@mantine/core/InputBase";function U1({style:n,size:l=16,...o}){return v.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...n,width:F(l),height:F(l),display:"block"},...o,children:v.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"})})}U1.displayName="@mantine/core/AccordionChevron";var V1={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 k1=(n,{radius:l,color:o,variant:r,autoContrast:s})=>{const c=n.variantColorResolver({color:o||n.primaryColor,theme:n,variant:r||"light",autoContrast:s});return{root:{"--alert-radius":l===void 0?void 0:Xt(l),"--alert-bg":o||r?c.background:void 0,"--alert-color":c.color,"--alert-bd":o||r?c.border:void 0}}},wo=ge(n=>{const l=ce("Alert",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,radius:h,color:p,title:b,children:g,id:y,icon:w,withCloseButton:C,onClose:R,closeButtonLabel:j,variant:N,autoContrast:E,role:_,attributes:D,...L}=l,U=De({name:"Alert",classes:V1,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:D,vars:m,varsResolver:k1}),V=Ta(y),k=b&&`${V}-title`||void 0,P=`${V}-body`;return v.jsx(fe,{id:V,...U("root",{variant:N}),variant:N,...L,role:_||"alert","aria-describedby":g?P:void 0,"aria-labelledby":b?k:void 0,children:v.jsxs("div",{...U("wrapper"),children:[w&&v.jsx("div",{...U("icon"),children:w}),v.jsxs("div",{...U("body"),children:[b&&v.jsx("div",{...U("title"),"data-with-close-button":C||void 0,children:v.jsx("span",{id:k,...U("label"),children:b})}),g&&v.jsx("div",{id:P,...U("message"),"data-variant":N,children:g})]}),C&&v.jsx(Sr,{...U("closeButton"),onClick:R,variant:"transparent",size:16,iconSize:16,"aria-label":j,unstyled:f})]})})});wo.classes=V1;wo.varsResolver=k1;wo.displayName="@mantine/core/Alert";var Y1={root:"m_b6d8b162"};function z3(n){if(n==="start")return"start";if(n==="end"||n)return"end"}const B3={inherit:!1},X1=(n,{variant:l,lineClamp:o,gradient:r,size:s,textWrap:c})=>({root:{"--text-fz":Wt(s),"--text-lh":k2(s),"--text-gradient":l==="gradient"?bm(r,n):void 0,"--text-line-clamp":typeof o=="number"?o.toString():void 0,"--text-text-wrap":c}}),ke=sn(n=>{const l=ce("Text",B3,n),{lineClamp:o,truncate:r,inline:s,inherit:c,gradient:f,span:m,textWrap:h,__staticSelector:p,vars:b,className:g,style:y,classNames:w,styles:C,unstyled:R,variant:j,mod:N,size:E,attributes:_,...D}=l;return v.jsx(fe,{...De({name:["Text",p],props:l,classes:Y1,className:g,style:y,classNames:w,styles:C,unstyled:R,attributes:_,vars:b,varsResolver:X1})("root",{focusable:!0}),component:m?"span":"p",variant:j,mod:[{"data-truncate":z3(r),"data-line-clamp":typeof o=="number","data-inline":s,"data-inherit":c},N],size:E,...D})});ke.classes=Y1;ke.varsResolver=X1;ke.displayName="@mantine/core/Text";const[L3,Ao]=Ea("AppShell was not found in tree");var kl={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const Th=ge(n=>{const{classNames:l,className:o,style:r,styles:s,unstyled:c,vars:f,withBorder:m,zIndex:h,mod:p,...b}=ce("AppShellAside",null,n),g=Ao();return g.disabled?null:v.jsx(fe,{component:"aside",mod:[{"with-border":m??g.withBorder},p],...g.getStyles("aside",{className:zt({[gr.classNames.zeroRight]:g.offsetScrollbars},o),classNames:l,styles:s,style:r}),...b,__vars:{"--app-shell-aside-z-index":`calc(${h??g.zIndex} + 1)`}})});Th.classes=kl;Th.displayName="@mantine/core/AppShellAside";const Rh=ge(n=>{var y;const{classNames:l,className:o,style:r,styles:s,unstyled:c,vars:f,withBorder:m,zIndex:h,mod:p,...b}=ce("AppShellFooter",null,n),g=Ao();return g.disabled?null:v.jsx(fe,{component:"footer",mod:[{"with-border":m??g.withBorder},p],...g.getStyles("footer",{className:zt({[gr.classNames.zeroRight]:g.offsetScrollbars},o),classNames:l,styles:s,style:r}),...b,__vars:{"--app-shell-footer-z-index":(y=h??g.zIndex)==null?void 0:y.toString()}})});Rh.classes=kl;Rh.displayName="@mantine/core/AppShellFooter";const _h=ge(n=>{var y;const{classNames:l,className:o,style:r,styles:s,unstyled:c,vars:f,withBorder:m,zIndex:h,mod:p,...b}=ce("AppShellHeader",null,n),g=Ao();return g.disabled?null:v.jsx(fe,{component:"header",mod:[{"with-border":m??g.withBorder},p],...g.getStyles("header",{className:zt({[gr.classNames.zeroRight]:g.offsetScrollbars},o),classNames:l,styles:s,style:r}),...b,__vars:{"--app-shell-header-z-index":(y=h??g.zIndex)==null?void 0:y.toString()}})});_h.classes=kl;_h.displayName="@mantine/core/AppShellHeader";const Nh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("AppShellMain",null,n);return v.jsx(fe,{component:"main",...Ao().getStyles("main",{className:o,style:r,classNames:l,styles:s}),...f})});Nh.classes=kl;Nh.displayName="@mantine/core/AppShellMain";const jh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,unstyled:c,vars:f,withBorder:m,zIndex:h,mod:p,...b}=ce("AppShellNavbar",null,n),g=Ao();return g.disabled?null:v.jsx(fe,{component:"nav",mod:[{"with-border":m??g.withBorder},p],...g.getStyles("navbar",{className:o,classNames:l,styles:s,style:r}),...b,__vars:{"--app-shell-navbar-z-index":`calc(${h??g.zIndex} + 1)`}})});jh.classes=kl;jh.displayName="@mantine/core/AppShellNavbar";const Ah=sn(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,grow:f,mod:m,...h}=ce("AppShellSection",null,n),p=Ao();return v.jsx(fe,{mod:[{grow:f},m],...p.getStyles("section",{className:o,style:r,classNames:l,styles:s}),...h})});Ah.classes=kl;Ah.displayName="@mantine/core/AppShellSection";function Qi(n){return typeof n=="object"?n.base:n}function Ki(n){const l=typeof n=="object"&&n!==null&&typeof n.base<"u"&&Object.keys(n).length===1;return typeof n=="number"||typeof n=="string"||l}function Ii(n){return!(typeof n!="object"||n===null||Object.keys(n).length===1&&"base"in n)}function H3({baseStyles:n,minMediaStyles:l,maxMediaStyles:o,aside:r,theme:s,mode:c}){var p,b,g;const f=r==null?void 0:r.width,m="translateX(var(--app-shell-aside-width))",h="translateX(calc(var(--app-shell-aside-width) * -1))";if(r!=null&&r.breakpoint&&!((p=r==null?void 0:r.collapsed)!=null&&p.mobile)&&(o[r==null?void 0:r.breakpoint]=o[r==null?void 0:r.breakpoint]||{},c==="fixed"?(o[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="100%",o[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px"):(o[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="0px",o[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px")),Ki(f)){const y=F(Qi(f));n["--app-shell-aside-width"]=y,n["--app-shell-aside-offset"]=y}if(Ii(f)&&(typeof f.base<"u"&&(n["--app-shell-aside-width"]=F(f.base),n["--app-shell-aside-offset"]=F(f.base)),Ft(f).forEach(y=>{y!=="base"&&(l[y]=l[y]||{},l[y]["--app-shell-aside-width"]=F(f[y]),l[y]["--app-shell-aside-offset"]=F(f[y]))})),r!=null&&r.breakpoint&&c==="static"&&(l[r.breakpoint]=l[r.breakpoint]||{},l[r.breakpoint]["--app-shell-aside-position"]="sticky",l[r.breakpoint]["--app-shell-aside-grid-row"]="2",l[r.breakpoint]["--app-shell-aside-grid-column"]="3",l[r.breakpoint]["--app-shell-main-column-end"]="3"),(b=r==null?void 0:r.collapsed)!=null&&b.desktop){const y=r.breakpoint;l[y]=l[y]||{},l[y]["--app-shell-aside-transform"]=m,l[y]["--app-shell-aside-transform-rtl"]=h,c==="fixed"?l[y]["--app-shell-aside-offset"]="0px !important":(l[y]["--app-shell-aside-width"]="0px",l[y]["--app-shell-aside-display"]="none",l[y]["--app-shell-main-column-end"]="-1"),l[y]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if((g=r==null?void 0:r.collapsed)!=null&&g.mobile){const y=Gm(r.breakpoint,s.breakpoints)-.1;o[y]=o[y]||{},c==="fixed"?(o[y]["--app-shell-aside-width"]="100%",o[y]["--app-shell-aside-offset"]="0px"):o[y]["--app-shell-aside-width"]="0px",o[y]["--app-shell-aside-transform"]=m,o[y]["--app-shell-aside-transform-rtl"]=h,o[y]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function $3({baseStyles:n,minMediaStyles:l,footer:o,mode:r}){const s=o==null?void 0:o.height,c="translateY(var(--app-shell-footer-height))",f=r==="static"?!0:(o==null?void 0:o.offset)??!0;if(r==="static"&&o&&(n["--app-shell-footer-position"]="sticky",n["--app-shell-footer-grid-column"]="1 / -1",n["--app-shell-footer-grid-row"]="3"),Ki(s)){const m=F(Qi(s));n["--app-shell-footer-height"]=m,f&&(n["--app-shell-footer-offset"]=m)}Ii(s)&&(typeof s.base<"u"&&(n["--app-shell-footer-height"]=F(s.base),f&&(n["--app-shell-footer-offset"]=F(s.base))),Ft(s).forEach(m=>{m!=="base"&&(l[m]=l[m]||{},l[m]["--app-shell-footer-height"]=F(s[m]),f&&(l[m]["--app-shell-footer-offset"]=F(s[m])))})),o!=null&&o.collapsed&&(n["--app-shell-footer-transform"]=c,r==="fixed"&&(n["--app-shell-footer-offset"]="0px !important"))}function U3({baseStyles:n,minMediaStyles:l,header:o,mode:r}){const s=o==null?void 0:o.height,c="translateY(calc(var(--app-shell-header-height) * -1))",f=r==="static"?!0:(o==null?void 0:o.offset)??!0;if(r==="static"&&o&&(n["--app-shell-header-position"]="sticky",n["--app-shell-header-grid-column"]="1 / -1",n["--app-shell-header-grid-row"]="1"),Ki(s)){const m=F(Qi(s));n["--app-shell-header-height"]=m,f&&(n["--app-shell-header-offset"]=m)}Ii(s)&&(typeof s.base<"u"&&(n["--app-shell-header-height"]=F(s.base),f&&(n["--app-shell-header-offset"]=F(s.base))),Ft(s).forEach(m=>{m!=="base"&&(l[m]=l[m]||{},l[m]["--app-shell-header-height"]=F(s[m]),f&&(l[m]["--app-shell-header-offset"]=F(s[m])))})),o!=null&&o.collapsed&&(n["--app-shell-header-transform"]=c,r==="fixed"&&(n["--app-shell-header-offset"]="0px !important"))}function V3({baseStyles:n,minMediaStyles:l,maxMediaStyles:o,navbar:r,theme:s,mode:c}){var p,b,g;const f=r==null?void 0:r.width,m="translateX(calc(var(--app-shell-navbar-width) * -1))",h="translateX(var(--app-shell-navbar-width))";if(r!=null&&r.breakpoint&&!((p=r==null?void 0:r.collapsed)!=null&&p.mobile)&&(o[r==null?void 0:r.breakpoint]=o[r==null?void 0:r.breakpoint]||{},o[r==null?void 0:r.breakpoint]["--app-shell-navbar-offset"]="0px",o[r==null?void 0:r.breakpoint]["--app-shell-navbar-width"]="100%",c==="static"&&(o[r==null?void 0:r.breakpoint]["--app-shell-navbar-grid-width"]="0px")),Ki(f)){const y=F(Qi(f));n["--app-shell-navbar-width"]=y,n["--app-shell-navbar-offset"]=y,c==="static"&&(n["--app-shell-navbar-grid-width"]=y)}if(Ii(f)&&(typeof f.base<"u"&&(n["--app-shell-navbar-width"]=F(f.base),n["--app-shell-navbar-offset"]=F(f.base),c==="static"&&(n["--app-shell-navbar-grid-width"]=F(f.base))),Ft(f).forEach(y=>{y!=="base"&&(l[y]=l[y]||{},l[y]["--app-shell-navbar-width"]=F(f[y]),l[y]["--app-shell-navbar-offset"]=F(f[y]),c==="static"&&(l[y]["--app-shell-navbar-grid-width"]=F(f[y])))})),r!=null&&r.breakpoint&&c==="static"&&(l[r.breakpoint]=l[r.breakpoint]||{},l[r.breakpoint]["--app-shell-navbar-position"]="sticky",l[r.breakpoint]["--app-shell-navbar-grid-row"]="2",l[r.breakpoint]["--app-shell-navbar-grid-column"]="1",l[r.breakpoint]["--app-shell-main-column-start"]="2"),(b=r==null?void 0:r.collapsed)!=null&&b.desktop){const y=r.breakpoint;l[y]=l[y]||{},l[y]["--app-shell-navbar-transform"]=m,l[y]["--app-shell-navbar-transform-rtl"]=h,c==="fixed"?l[y]["--app-shell-navbar-offset"]="0px !important":(l[y]["--app-shell-navbar-width"]="0px",l[y]["--app-shell-navbar-display"]="none",l[y]["--app-shell-main-column-start"]="1")}if((g=r==null?void 0:r.collapsed)!=null&&g.mobile){const y=Gm(r.breakpoint,s.breakpoints)-.1;o[y]=o[y]||{},o[y]["--app-shell-navbar-width"]="100%",o[y]["--app-shell-navbar-offset"]="0px",c==="static"&&(o[y]["--app-shell-navbar-grid-width"]="0px"),o[y]["--app-shell-navbar-transform"]=m,o[y]["--app-shell-navbar-transform-rtl"]=h}}function um(n){return Number(n)===0?"0px":el(n)}function k3({padding:n,baseStyles:l,minMediaStyles:o}){Ki(n)&&(l["--app-shell-padding"]=um(Qi(n))),Ii(n)&&(n.base&&(l["--app-shell-padding"]=um(n.base)),Ft(n).forEach(r=>{r!=="base"&&(o[r]=o[r]||{},o[r]["--app-shell-padding"]=um(n[r]))}))}function Y3({navbar:n,header:l,footer:o,aside:r,padding:s,theme:c,mode:f}){const m={},h={},p={};f==="static"&&(p["--app-shell-main-grid-column"]="1 / -1",p["--app-shell-main-grid-row"]="2"),V3({baseStyles:p,minMediaStyles:m,maxMediaStyles:h,navbar:n,theme:c,mode:f}),H3({baseStyles:p,minMediaStyles:m,maxMediaStyles:h,aside:r,theme:c,mode:f}),U3({baseStyles:p,minMediaStyles:m,header:l,mode:f}),$3({baseStyles:p,minMediaStyles:m,footer:o,mode:f}),k3({baseStyles:p,minMediaStyles:m,padding:s});const b=Wy(Ft(m),c.breakpoints).map(y=>({query:`(min-width: ${_c(y.px)})`,styles:m[y.value]})),g=Wy(Ft(h),c.breakpoints).map(y=>({query:`(max-width: ${_c(y.px)})`,styles:h[y.value]}));return{baseStyles:p,media:[...b,...g]}}function X3({navbar:n,header:l,aside:o,footer:r,padding:s,mode:c,selector:f}){const m=Wn(),h=Ra(),{media:p,baseStyles:b}=Y3({navbar:n,header:l,footer:r,aside:o,padding:s,theme:m,mode:c});return v.jsx(vb,{media:p,styles:b,selector:f||h.cssVariablesSelector})}function q3({transitionDuration:n,disabled:l}){const[o,r]=x.useState(!0),s=x.useRef(-1),c=x.useRef(-1);return ib("resize",()=>{r(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>x.startTransition(()=>{r(!1)}),200)}),wa(()=>{r(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>x.startTransition(()=>{r(!1)}),n||0)},[l,n]),o}const G3={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:on("app"),mode:"fixed"},q1=(n,{transitionDuration:l,transitionTimingFunction:o})=>({root:{"--app-shell-transition-duration":`${l}ms`,"--app-shell-transition-timing-function":o}}),Bn=ge(n=>{const l=ce("AppShell",G3,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,navbar:h,withBorder:p,padding:b,transitionDuration:g,transitionTimingFunction:y,header:w,zIndex:C,layout:R,disabled:j,aside:N,footer:E,offsetScrollbars:_=!0,mode:D,mod:L,attributes:U,id:V,...k}=l,P=De({name:"AppShell",classes:kl,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:U,vars:m,varsResolver:q1}),ae=q3({disabled:j,transitionDuration:g}),te=Ta(V);return v.jsxs(L3,{value:{getStyles:P,withBorder:p,zIndex:C,disabled:j,offsetScrollbars:_,mode:D},children:[v.jsx(X3,{navbar:h,header:w,aside:N,footer:E,padding:b,mode:D,selector:D==="static"?`#${te}`:void 0}),v.jsx(fe,{...P("root"),id:te,mod:[{resizing:ae,layout:R,disabled:j,mode:D},L],...k})]})});Bn.classes=kl;Bn.varsResolver=q1;Bn.displayName="@mantine/core/AppShell";Bn.Navbar=jh;Bn.Header=_h;Bn.Main=Nh;Bn.Aside=Th;Bn.Footer=Rh;Bn.Section=Ah;function G1(n){return typeof n=="string"?{value:n,label:n}:typeof n=="object"&&"value"in n&&!("label"in n)?{value:n.value,label:`${n.value}`,disabled:n.disabled}:typeof n=="object"&&"group"in n?{group:n.group,items:n.items.map(l=>G1(l))}:typeof n=="number"||typeof n=="bigint"||typeof n=="boolean"?{value:n,label:`${n}`}:n}function Z3(n){return n?n.map(l=>G1(l)):[]}function Z1(n){return n.reduce((l,o)=>"group"in o?{...l,...Z1(o.items)}:(l[`${o.value}`]=o,l),{})}var ln={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const Q3={error:null},Q1=(n,{size:l,color:o})=>({chevron:{"--combobox-chevron-size":Pe(l,"combobox-chevron-size"),"--combobox-chevron-color":o?Fn(o,n):void 0}}),nu=ge(n=>{const l=ce("ComboboxChevron",Q3,n),{size:o,error:r,style:s,className:c,classNames:f,styles:m,unstyled:h,vars:p,attributes:b,mod:g,...y}=l,w=De({name:"ComboboxChevron",classes:ln,props:l,style:s,className:c,classNames:f,styles:m,unstyled:h,vars:p,varsResolver:Q1,attributes:b,rootSelector:"chevron"});return v.jsx(fe,{component:"svg",...y,...w("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},g],children:v.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});nu.classes=ln;nu.varsResolver=Q1;nu.displayName="@mantine/core/ComboboxChevron";const[K3,$n]=Ea("Combobox component was not found in tree");function K1({onMouseDown:n,onClick:l,onClear:o,...r}){return v.jsx($t.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:s=>{s.preventDefault(),n==null||n(s)},onClick:s=>{o(),l==null||l(s)}})}K1.displayName="@mantine/core/ComboboxClearButton";const Oh=ge(n=>{const{classNames:l,styles:o,className:r,style:s,hidden:c,...f}=ce("ComboboxDropdown",null,n),m=$n();return v.jsx(Sn.Dropdown,{...f,role:"presentation","data-hidden":c||void 0,"data-floating-height":m.floatingHeight||void 0,...m.getStyles("dropdown",{className:r,style:s,classNames:l,styles:o})})});Oh.classes=ln;Oh.displayName="@mantine/core/ComboboxDropdown";const I3={refProp:"ref"},I1=ge(n=>{const{children:l,refProp:o,ref:r}=ce("ComboboxDropdownTarget",I3,n);if($n(),!tb(l))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return v.jsx(Sn.Target,{ref:r,refProp:o,children:l})});I1.displayName="@mantine/core/ComboboxDropdownTarget";const Mh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ComboboxEmpty",null,n);return v.jsx(fe,{...$n().getStyles("empty",{className:o,classNames:l,styles:s,style:r}),...f})});Mh.classes=ln;Mh.displayName="@mantine/core/ComboboxEmpty";function Dh({onKeyDown:n,onClick:l,withKeyboardNavigation:o,withAriaAttributes:r,withExpandedAttribute:s,targetType:c,autoComplete:f}){const m=$n(),[h,p]=x.useState(null),b=w=>{if(n==null||n(w),!m.readOnly&&o){if(w.nativeEvent.isComposing)return;if(w.nativeEvent.code==="ArrowDown"&&(w.preventDefault(),m.store.dropdownOpened?p(m.store.selectNextOption()):(m.store.openDropdown("keyboard"),p(m.store.selectActiveOption()),m.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),w.nativeEvent.code==="ArrowUp"&&(w.preventDefault(),m.store.dropdownOpened?p(m.store.selectPreviousOption()):(m.store.openDropdown("keyboard"),p(m.store.selectActiveOption()),m.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),w.nativeEvent.code==="Enter"||w.nativeEvent.code==="NumpadEnter"){if(w.nativeEvent.keyCode===229)return;const C=m.store.getSelectedOptionIndex();m.store.dropdownOpened&&C!==-1?(w.preventDefault(),m.store.clickSelectedOption()):c==="button"&&(w.preventDefault(),m.store.openDropdown("keyboard"))}w.key==="Escape"&&m.store.closeDropdown("keyboard"),w.nativeEvent.code==="Space"&&c==="button"&&(w.preventDefault(),m.store.toggleDropdown("keyboard"))}};return{...r?{...s?{role:"combobox"}:{},"aria-haspopup":"listbox","aria-expanded":s?!!(m.store.listId&&m.store.dropdownOpened):void 0,"aria-controls":m.store.dropdownOpened&&m.store.listId?m.store.listId:void 0,"aria-activedescendant":m.store.dropdownOpened&&h||void 0,autoComplete:f,"data-expanded":m.store.dropdownOpened||void 0,"data-mantine-stop-propagation":m.store.dropdownOpened||void 0}:{},onKeyDown:b,onClick:w=>{c==="button"&&w.currentTarget.focus(),l==null||l(w)}}}const F3={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},F1=ge(n=>{const{children:l,refProp:o,withKeyboardNavigation:r,withAriaAttributes:s,withExpandedAttribute:c,targetType:f,autoComplete:m,ref:h,...p}=ce("ComboboxEventsTarget",F3,n),b=br(l);if(!b)throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const g=$n();return x.cloneElement(b,{...Dh({targetType:f,withAriaAttributes:s,withKeyboardNavigation:r,withExpandedAttribute:c,onKeyDown:b.props.onKeyDown,onClick:b.props.onClick,autoComplete:m}),...p,[o]:en(h,g.store.targetRef,Vc(b))})});F1.displayName="@mantine/core/ComboboxEventsTarget";const zh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ComboboxFooter",null,n);return v.jsx(fe,{...$n().getStyles("footer",{className:o,classNames:l,style:r,styles:s}),...f,onMouseDown:m=>{m.preventDefault()}})});zh.classes=ln;zh.displayName="@mantine/core/ComboboxFooter";const Bh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,children:f,label:m,id:h,...p}=ce("ComboboxGroup",null,n),b=$n(),g=Ta(h);return v.jsxs(fe,{role:"group","aria-labelledby":m?g:void 0,...b.getStyles("group",{className:o,classNames:l,style:r,styles:s}),...p,children:[m&&v.jsx("div",{id:g,...b.getStyles("groupLabel",{classNames:l,styles:s}),children:m}),f]})});Bh.classes=ln;Bh.displayName="@mantine/core/ComboboxGroup";const Lh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ComboboxHeader",null,n);return v.jsx(fe,{...$n().getStyles("header",{className:o,classNames:l,style:r,styles:s}),...f,onMouseDown:m=>{m.preventDefault()}})});Lh.classes=ln;Lh.displayName="@mantine/core/ComboboxHeader";function J1({value:n,valuesDivider:l=",",...o}){return v.jsx("input",{type:"hidden",value:Array.isArray(n)?n.join(l):n?`${n}`:"",...o})}J1.displayName="@mantine/core/ComboboxHiddenInput";const Hh=ge(n=>{const l=ce("ComboboxOption",null,n),{classNames:o,className:r,style:s,styles:c,vars:f,onClick:m,id:h,active:p,onMouseDown:b,onMouseOver:g,disabled:y,selected:w,mod:C,...R}=l,j=$n(),N=x.useId(),E=h||N;return v.jsx(fe,{...j.getStyles("option",{className:r,classNames:o,styles:c,style:s}),...R,id:E,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":y,"combobox-selected":w},C],role:"option",onClick:_=>{var D;y?_.preventDefault():((D=j.onOptionSubmit)==null||D.call(j,l.value,l),m==null||m(_))},onMouseDown:_=>{_.preventDefault(),b==null||b(_)},onMouseOver:_=>{j.resetSelectionOnOptionHover&&j.store.resetSelectedOption(),g==null||g(_)}})});Hh.classes=ln;Hh.displayName="@mantine/core/ComboboxOption";const $h=ge(n=>{const{classNames:l,className:o,style:r,styles:s,id:c,onMouseDown:f,labelledBy:m,...h}=ce("ComboboxOptions",null,n),p=$n(),b=Ta(c);return x.useEffect(()=>{p.store.setListId(b)},[b]),v.jsx(fe,{...p.getStyles("options",{className:o,style:r,classNames:l,styles:s}),...h,id:b,role:"listbox","aria-labelledby":m,onMouseDown:g=>{g.preventDefault(),f==null||f(g)}})});$h.classes=ln;$h.displayName="@mantine/core/ComboboxOptions";const J3={withAriaAttributes:!0,withKeyboardNavigation:!0},Uh=ge(n=>{const{classNames:l,styles:o,unstyled:r,vars:s,withAriaAttributes:c,onKeyDown:f,onClick:m,withKeyboardNavigation:h,size:p,ref:b,...g}=ce("ComboboxSearch",J3,n),y=$n(),w=y.getStyles("search"),C=Dh({targetType:"input",withAriaAttributes:c,withKeyboardNavigation:h,withExpandedAttribute:!1,onKeyDown:f,onClick:m,autoComplete:"off"});return v.jsx($t,{ref:en(b,y.store.searchRef),classNames:[{input:w.className},l],styles:[{input:w.style},o],size:p||y.size,...C,...g,__staticSelector:"Combobox"})});Uh.classes=ln;Uh.displayName="@mantine/core/ComboboxSearch";const P3={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},P1=ge(n=>{const{children:l,refProp:o,withKeyboardNavigation:r,withAriaAttributes:s,withExpandedAttribute:c,targetType:f,autoComplete:m,ref:h,...p}=ce("ComboboxTarget",P3,n),b=br(l);if(!b)throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const g=$n(),y=x.cloneElement(b,{...Dh({targetType:f,withAriaAttributes:s,withKeyboardNavigation:r,withExpandedAttribute:c,onKeyDown:b.props.onKeyDown,onClick:b.props.onClick,autoComplete:m}),...p});return v.jsx(Sn.Target,{refProp:o,ref:en(h,g.store.targetRef),children:y})});P1.displayName="@mantine/core/ComboboxTarget";function W3(n,l,o){for(let r=n-1;r>=0;r-=1)if(!l[r].hasAttribute("data-combobox-disabled"))return r;if(o){for(let r=l.length-1;r>-1;r-=1)if(!l[r].hasAttribute("data-combobox-disabled"))return r}return n}function e_(n,l,o){for(let r=n+1;r{m||(h(!0),s==null||s(O))},[h,s,m]),N=x.useCallback((O="unknown")=>{m&&(h(!1),r==null||r(O))},[h,r,m]),E=x.useCallback((O="unknown")=>{m?N(O):j(O)},[N,j,m]),_=x.useCallback(()=>{const O=Ia(y.current),M=bc(`#${p.current} [data-combobox-selected]`,O);M==null||M.removeAttribute("data-combobox-selected"),M==null||M.removeAttribute("aria-selected")},[]),D=x.useCallback(O=>{const M=Ia(y.current),B=bc(`#${p.current}`,M),G=B?Fa("[data-combobox-option]",B):null;if(!G)return null;const J=O>=G.length?0:O<0?G.length-1:O;return b.current=J,G!=null&&G[J]&&!G[J].hasAttribute("data-combobox-disabled")?(_(),G[J].setAttribute("data-combobox-selected","true"),G[J].setAttribute("aria-selected","true"),G[J].scrollIntoView({block:"nearest",behavior:f}),G[J].id):null},[f,_]),L=x.useCallback(()=>{const O=Ia(y.current),M=bc(`#${p.current} [data-combobox-active]`,O);return D(M?Fa(`#${p.current} [data-combobox-option]`,O).findIndex(B=>B===M):0)},[D]),U=x.useCallback(()=>{const O=Ia(y.current),M=Fa(`#${p.current} [data-combobox-option]`,O);return D(e_(b.current,M,c))},[D,c]),V=x.useCallback(()=>{const O=Ia(y.current),M=Fa(`#${p.current} [data-combobox-option]`,O);return D(W3(b.current,M,c))},[D,c]),k=x.useCallback(()=>{const O=Ia(y.current);return D(t_(Fa(`#${p.current} [data-combobox-option]`,O)))},[D]),P=x.useCallback((O="selected",M)=>{var B;if(typeof O=="number"){b.current=O;const G=Ia(y.current),J=Fa(`#${p.current} [data-combobox-option]`,G);M!=null&&M.scrollIntoView&&((B=J[O])==null||B.scrollIntoView({block:"nearest",behavior:f}));return}R.current=window.setTimeout(()=>{var H;const G=Ia(y.current),J=Fa(`#${p.current} [data-combobox-option]`,G),A=J.findIndex(Q=>Q.hasAttribute(`data-combobox-${O}`));b.current=A,M!=null&&M.scrollIntoView&&((H=J[A])==null||H.scrollIntoView({block:"nearest",behavior:f}))},0)},[]),ae=x.useCallback(()=>{b.current=-1,_()},[_]),te=x.useCallback(()=>{var M,B;const O=Ia(y.current);(B=(M=Fa(`#${p.current} [data-combobox-option]`,O))==null?void 0:M[b.current])==null||B.click()},[]),W=x.useCallback(O=>{p.current=O},[]),oe=x.useCallback(()=>{w.current=window.setTimeout(()=>{var O;return(O=g.current)==null?void 0:O.focus()},0)},[]),K=x.useCallback(()=>{C.current=window.setTimeout(()=>{var O;return(O=y.current)==null?void 0:O.focus()},0)},[]),ie=x.useCallback(()=>b.current,[]);return x.useEffect(()=>()=>{window.clearTimeout(w.current),window.clearTimeout(C.current),window.clearTimeout(R.current)},[]),{dropdownOpened:m,openDropdown:j,closeDropdown:N,toggleDropdown:E,selectedOptionIndex:b.current,getSelectedOptionIndex:ie,selectOption:D,selectFirstOption:k,selectActiveOption:L,selectNextOption:U,selectPreviousOption:V,resetSelectedOption:ae,updateSelectedOptionIndex:P,listId:p.current,setListId:W,clickSelectedOption:te,searchRef:g,focusSearchInput:oe,targetRef:y,focusTarget:K}}const n_={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},eS=(n,{size:l,dropdownPadding:o})=>({options:{"--combobox-option-fz":Wt(l),"--combobox-option-padding":Pe(l,"combobox-option-padding")},dropdown:{"--combobox-padding":o===void 0?void 0:F(o),"--combobox-option-fz":Wt(l),"--combobox-option-padding":Pe(l,"combobox-option-padding")}}),lt=n=>{const l=ce("Combobox",n_,n),{classNames:o,styles:r,unstyled:s,children:c,store:f,vars:m,onOptionSubmit:h,onClose:p,size:b,dropdownPadding:g,resetSelectionOnOptionHover:y,__staticSelector:w,readOnly:C,attributes:R,floatingHeight:j,middlewares:N,...E}=l,_=j==="viewport"?{...N,flip:!1,size:{...typeof(N==null?void 0:N.size)=="object"?N.size:{},padding:typeof(N==null?void 0:N.size)=="object"&&N.size.padding!==void 0?N.size.padding:10,apply:({availableHeight:k,availableWidth:P,elements:ae,...te})=>{ae.floating.style.setProperty("--combobox-floating-max-height",`${k}px`);const W=N==null?void 0:N.size;typeof W=="object"&&W.apply?W.apply({availableHeight:k,availableWidth:P,elements:ae,...te}):W&&Object.assign(ae.floating.style,{maxWidth:`${P}px`,maxHeight:`${k}px`})}}}:N,D=W1(),L=f||D,U=De({name:w||"Combobox",classes:ln,props:l,classNames:o,styles:r,unstyled:s,attributes:R,vars:m,varsResolver:eS}),V=()=>{p==null||p(),L.closeDropdown()};return v.jsx(K3,{value:{getStyles:U,store:L,onOptionSubmit:h,size:b,resetSelectionOnOptionHover:y,readOnly:C,floatingHeight:j},children:v.jsx(Sn,{opened:L.dropdownOpened,...E,middlewares:_,onChange:k=>!k&&V(),withRoles:!1,unstyled:s,children:c})})},a_=n=>n;lt.extend=a_;lt.classes=ln;lt.varsResolver=eS;lt.displayName="@mantine/core/Combobox";lt.Target=P1;lt.Dropdown=Oh;lt.Options=$h;lt.Option=Hh;lt.Search=Uh;lt.Empty=Mh;lt.Chevron=nu;lt.Footer=zh;lt.Header=Lh;lt.EventsTarget=F1;lt.DropdownTarget=I1;lt.Group=Bh;lt.ClearButton=K1;lt.HiddenInput=J1;function l_({children:n,role:l}){const o=x.use(jo);return o?v.jsx("div",{role:l,"aria-labelledby":o.labelId,"aria-describedby":o.describedBy,children:n}):v.jsx(v.Fragment,{children:n})}function r_({size:n,style:l,...o}){return v.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n!==void 0?{width:F(n),height:F(n),...l}:l,"aria-hidden":!0,...o,children:v.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"})})}var tS={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const o_=tS;function nS({__staticSelector:n,__stylesApiProps:l,className:o,classNames:r,styles:s,unstyled:c,children:f,label:m,description:h,id:p,disabled:b,error:g,size:y,labelPosition:w="left",bodyElement:C="div",labelElement:R="label",variant:j,style:N,vars:E,mod:_,attributes:D,...L}){const U=De({name:n,props:l,className:o,style:N,classes:tS,classNames:r,styles:s,unstyled:c,attributes:D}),V=h?`${p}-description`:void 0,k=g&&typeof g!="boolean"?`${p}-error`:void 0;return v.jsx(fe,{...U("root"),__vars:{"--label-fz":Wt(y),"--label-lh":Pe(y,"label-lh")},mod:[{"label-position":w},_],variant:j,size:y,...L,children:v.jsxs(fe,{component:C,htmlFor:C==="label"?p:void 0,...U("body"),children:[f,v.jsxs("div",{...U("labelWrapper"),"data-disabled":b||void 0,children:[m&&v.jsx(fe,{component:R,htmlFor:R==="label"?p:void 0,...U("label"),"data-disabled":b||void 0,children:m}),h&&v.jsx($t.Description,{id:V,size:y,__inheritStyles:!1,...U("description"),children:h}),g&&typeof g!="boolean"&&v.jsx($t.Error,{id:k,size:y,__inheritStyles:!1,...U("error"),children:g})]})]})})}nS.displayName="@mantine/core/InlineInput";function $i(n){return"group"in n}function aS({options:n,search:l,limit:o}){const r=l.trim().toLowerCase(),s=[];for(let c=0;c0)return!1;return!0}function lS(n,l=new Set){if(Array.isArray(n))for(const o of n)if($i(o))lS(o.items,l);else{if(typeof o.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(l.has(o.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${o.value}" was provided more than once`);l.add(o.value)}}function s_(n,l){return Array.isArray(n)?n.includes(l):n===l}function rS({data:n,withCheckIcon:l,withAlignedLabels:o,value:r,checkIconPosition:s,unstyled:c,renderOption:f}){if(!$i(n)){const h=s_(r,n.value),p=l&&(h?v.jsx(r_,{className:ln.optionsDropdownCheckIcon}):o?v.jsx("div",{className:ln.optionsDropdownCheckPlaceholder}):null),b=v.jsxs(v.Fragment,{children:[s==="left"&&p,v.jsx("span",{children:n.label}),s==="right"&&p]});return v.jsx(lt.Option,{value:n.value,disabled:n.disabled,className:zt({[ln.optionsDropdownOption]:!c}),"data-reverse":s==="right"||void 0,"data-checked":h||void 0,"aria-selected":h,active:h,children:typeof f=="function"?f({option:n,checked:h}):b})}const m=n.items.map(h=>v.jsx(rS,{data:h,value:r,unstyled:c,withCheckIcon:l,withAlignedLabels:o,checkIconPosition:s,renderOption:f},`${h.value}`));return v.jsx(lt.Group,{label:n.group,children:m})}function c_({data:n,hidden:l,hiddenWhenEmpty:o,filter:r,search:s,limit:c,maxDropdownHeight:f,floatingHeight:m,withScrollArea:h=!0,filterOptions:p=!0,withCheckIcon:b=!1,withAlignedLabels:g=!1,value:y,checkIconPosition:w,nothingFoundMessage:C,unstyled:R,labelId:j,renderOption:N,scrollAreaProps:E,"aria-label":_}){const D=$n();lS(n);const L=typeof s=="string"?(r||aS)({options:n,search:p?s:"",limit:c??1/0}):n,U=i_(L),V=L.map(k=>v.jsx(rS,{data:k,withCheckIcon:b,withAlignedLabels:g,value:y,checkIconPosition:w,unstyled:R,renderOption:N},$i(k)?k.group:`${k.value}`));return v.jsx(lt.Dropdown,{hidden:l||o&&U,"data-composed":!0,children:v.jsxs(lt.Options,{labelledBy:j,"aria-label":_,children:[h?v.jsx(Na.Autosize,{mah:(m??D.floatingHeight)==="viewport"?"var(--combobox-floating-options-max-height)":f??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...E,children:V}):V,U&&C&&v.jsx(lt.Empty,{children:C})]})})}var oS={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const iS=(n,{radius:l,color:o,gradient:r,variant:s,size:c,autoContrast:f,circle:m})=>{const h=n.variantColorResolver({color:o||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:f});return{root:{"--badge-height":Pe(c,"badge-height"),"--badge-padding-x":Pe(c,"badge-padding-x"),"--badge-fz":Pe(c,"badge-fz"),"--badge-radius":m||l===void 0?void 0:Xt(l),"--badge-bg":o||s?h.background:void 0,"--badge-color":o||s?h.color:void 0,"--badge-bd":o||s?h.border:void 0,"--badge-dot-color":s==="dot"?Fn(o,n):void 0}}},Tt=sn(n=>{const l=ce("Badge",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,radius:h,color:p,gradient:b,leftSection:g,rightSection:y,children:w,variant:C,fullWidth:R,autoContrast:j,circle:N,mod:E,attributes:_,...D}=l,L=De({name:"Badge",props:l,classes:oS,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:_,vars:m,varsResolver:iS});return v.jsxs(fe,{variant:C,mod:[{block:R,circle:N,"with-right-section":!!y,"with-left-section":!!g},E],...L("root",{variant:C}),...D,children:[g&&v.jsx("span",{...L("section"),"data-position":"left",children:g}),v.jsx("span",{...L("label"),children:w}),y&&v.jsx("span",{...L("section"),"data-position":"right",children:y})]})});Tt.classes=oS;Tt.varsResolver=iS;Tt.displayName="@mantine/core/Badge";var Oo={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const V0={orientation:"horizontal"},sS=(n,{borderWidth:l})=>({group:{"--button-border-width":F(l)}}),au=ge(n=>{const l=ce("ButtonGroup",V0,n),{className:o,style:r,classNames:s,styles:c,unstyled:f,orientation:m,vars:h,borderWidth:p,mod:b,attributes:g,...y}=ce("ButtonGroup",V0,n);return v.jsx(fe,{...De({name:"ButtonGroup",props:l,classes:Oo,className:o,style:r,classNames:s,styles:c,unstyled:f,attributes:g,vars:h,varsResolver:sS,rootSelector:"group"})("group"),mod:[{"data-orientation":m},b],role:"group",...y})});au.classes=Oo;au.varsResolver=sS;au.displayName="@mantine/core/ButtonGroup";const cS=(n,{radius:l,color:o,gradient:r,variant:s,autoContrast:c,size:f})=>{const m=n.variantColorResolver({color:o||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Pe(f,"section-height"),"--section-padding-x":Pe(f,"section-padding-x"),"--section-fz":f!=null&&f.includes("compact")?Wt(f.replace("compact-","")):Wt(f),"--section-radius":l===void 0?void 0:Xt(l),"--section-bg":o||s?m.background:void 0,"--section-color":m.color,"--section-bd":o||s?m.border:void 0}}},lu=ge(n=>{const l=ce("ButtonGroupSection",null,n),{className:o,style:r,classNames:s,styles:c,unstyled:f,vars:m,gradient:h,radius:p,autoContrast:b,attributes:g,...y}=l;return v.jsx(fe,{...De({name:"ButtonGroupSection",props:l,classes:Oo,className:o,style:r,classNames:s,styles:c,unstyled:f,attributes:g,vars:m,varsResolver:cS,rootSelector:"groupSection"})("groupSection"),...y})});lu.classes=Oo;lu.varsResolver=cS;lu.displayName="@mantine/core/ButtonGroupSection";const u_={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${F(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},uS=(n,{radius:l,color:o,gradient:r,variant:s,size:c,justify:f,autoContrast:m})=>{const h=n.variantColorResolver({color:o||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:m});return{root:{"--button-justify":f,"--button-height":Pe(c,"button-height"),"--button-padding-x":Pe(c,"button-padding-x"),"--button-fz":c!=null&&c.includes("compact")?Wt(c.replace("compact-","")):Wt(c),"--button-radius":l===void 0?void 0:Xt(l),"--button-bg":o||s?h.background:void 0,"--button-hover":o||s?h.hover:void 0,"--button-color":h.color,"--button-bd":o||s?h.border:void 0,"--button-hover-color":o||s?h.hoverColor:void 0}}},Rt=sn(n=>{const l=ce("Button",null,n),{style:o,vars:r,className:s,color:c,disabled:f,children:m,leftSection:h,rightSection:p,fullWidth:b,variant:g,radius:y,loading:w,loaderProps:C,gradient:R,classNames:j,styles:N,unstyled:E,"data-disabled":_,autoContrast:D,mod:L,attributes:U,...V}=l,k=De({name:"Button",props:l,classes:Oo,className:s,style:o,classNames:j,styles:N,unstyled:E,attributes:U,vars:r,varsResolver:uS}),P=!!h,ae=!!p;return v.jsxs(Hl,{...k("root",{active:!f&&!w&&!_}),unstyled:E,variant:g,disabled:f||w,mod:[{disabled:f||_,loading:w,block:b,"with-left-section":P,"with-right-section":ae},L],...V,children:[typeof w=="boolean"&&v.jsx(nl,{mounted:w,transition:u_,duration:150,children:te=>v.jsx(fe,{component:"span",...k("loader",{style:te}),"aria-hidden":!0,children:v.jsx(Hn,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...C})})}),v.jsxs("span",{...k("inner"),children:[h&&v.jsx(fe,{component:"span",...k("section"),mod:{position:"left"},children:h}),v.jsx(fe,{component:"span",mod:{loading:w},...k("label"),children:m}),p&&v.jsx(fe,{component:"span",...k("section"),mod:{position:"right"},children:p})]})]})});Rt.classes=Oo;Rt.varsResolver=uS;Rt.displayName="@mantine/core/Button";Rt.Group=au;Rt.GroupSection=lu;const[f_,d_]=Ea("Card component was not found in tree");var Vh={root:"m_e615b15f",section:"m_599a2148"};const ru=sn(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,withBorder:f,inheritPadding:m,mod:h,...p}=ce("CardSection",null,n),b=d_();return v.jsx(fe,{mod:[{"with-border":f,"inherit-padding":m},h],...b.getStyles("section",{className:o,style:r,styles:s,classNames:l}),...p})});ru.classes=Vh;ru.displayName="@mantine/core/CardSection";const fS=(n,{padding:l})=>({root:{"--card-padding":el(l)}}),m_={orientation:"vertical"},Ul=sn(n=>{const l=ce("Card",m_,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,children:h,padding:p,attributes:b,orientation:g,...y}=l,w=De({name:"Card",props:l,classes:Vh,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:b,vars:m,varsResolver:fS}),C=x.Children.toArray(h),R=C.map((j,N)=>{var E;return typeof j=="object"&&j&&"type"in j&&(j.type===ru||((E=j.type)==null?void 0:E.displayName)==="@mantine/core/CardSection")?x.cloneElement(j,{"data-orientation":g,"data-first-section":N===0||void 0,"data-last-section":N===C.length-1||void 0}):j});return v.jsx(f_,{value:{getStyles:w},children:v.jsx(Yi,{unstyled:f,"data-orientation":g,...w("root"),...y,children:R})})});Ul.classes=Vh;Ul.varsResolver=fS;Ul.displayName="@mantine/core/Card";Ul.Section=ru;var dS={root:"m_4451eb3a"};const Lc=sn(n=>{const l=ce("Center",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,inline:h,mod:p,attributes:b,...g}=l,y=De({name:"Center",props:l,classes:dS,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:b,vars:m});return v.jsx(fe,{mod:[{inline:h},p],...y("root"),...g})});Lc.classes=dS;Lc.displayName="@mantine/core/Center";const h_={timeout:1e3};function kh(n){const{children:l,timeout:o,value:r,...s}=ce("CopyButton",h_,n),c=q2({timeout:o}),f=()=>c.copy(r);return v.jsx(v.Fragment,{children:l({copy:f,copied:c.copied,...s})})}kh.displayName="@mantine/core/CopyButton";const[p_,Mo]=Ea("Drawer component was not found in tree");var ll={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const ou=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("DrawerBody",null,n);return v.jsx(yh,{...Mo().getStyles("body",{classNames:l,style:r,styles:s,className:o}),...f})});ou.classes=ll;ou.displayName="@mantine/core/DrawerBody";const iu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("DrawerCloseButton",null,n);return v.jsx(bh,{...Mo().getStyles("close",{classNames:l,style:r,styles:s,className:o}),...f})});iu.classes=ll;iu.displayName="@mantine/core/DrawerCloseButton";const su=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,children:f,radius:m,__hidden:h,...p}=ce("DrawerContent",null,n),b=Mo(),g=b.scrollAreaComponent||O1;return v.jsx(Sh,{...b.getStyles("content",{className:o,style:r,styles:s,classNames:l}),innerProps:b.getStyles("inner",{className:o,style:r,styles:s,classNames:l}),...p,radius:m||b.radius||0,"data-hidden":h||void 0,children:v.jsx(g,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:f})})});su.classes=ll;su.displayName="@mantine/core/DrawerContent";const cu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("DrawerHeader",null,n);return v.jsx(xh,{...Mo().getStyles("header",{classNames:l,style:r,styles:s,className:o}),...f})});cu.classes=ll;cu.displayName="@mantine/core/DrawerHeader";const uu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("DrawerOverlay",null,n);return v.jsx(wh,{...Mo().getStyles("overlay",{classNames:l,style:r,styles:s,className:o}),...f})});uu.classes=ll;uu.displayName="@mantine/core/DrawerOverlay";function v_(n){switch(n){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function g_(n){if(n==="top"||n==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const y_={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},b_={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},S_={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:on("modal"),position:"left"},mS=(n,{position:l,size:o,offset:r})=>({root:{"--drawer-size":Pe(o,"drawer-size"),"--drawer-flex":g_(l),"--drawer-height":l==="left"||l==="right"?void 0:"var(--drawer-size)","--drawer-align":v_(l),"--drawer-justify":l==="right"?"flex-end":void 0,"--drawer-offset":F(r)}}),Fi=ge(n=>{const l=ce("DrawerRoot",S_,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,scrollAreaComponent:h,position:p,transitionProps:b,radius:g,attributes:y,...w}=l,{dir:C}=To(),R=De({name:"Drawer",classes:ll,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:y,vars:m,varsResolver:mS}),j=(C==="rtl"?b_:y_)[p];return v.jsx(p_,{value:{scrollAreaComponent:h,getStyles:R,radius:g},children:v.jsx(gh,{...R("root"),transitionProps:{transition:j,...b},"data-offset-scrollbars":h===Na.Autosize||void 0,unstyled:f,...w})})});Fi.classes=ll;Fi.varsResolver=mS;Fi.displayName="@mantine/core/DrawerRoot";const hS=x.createContext(null);function pS({children:n}){const[l,o]=x.useState([]),[r,s]=x.useState(on("modal"));return v.jsx(hS,{value:{stack:l,addModal:(c,f)=>{o(m=>[...new Set([...m,c])]),s(m=>typeof f=="number"&&typeof m=="number"?Math.max(m,f):m)},removeModal:c=>o(f=>f.filter(m=>m!==c)),getZIndex:c=>`calc(${r} + ${l.indexOf(c)} + 1)`,currentId:l[l.length-1],maxZIndex:r},children:n})}pS.displayName="@mantine/core/DrawerStack";const fu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("DrawerTitle",null,n);return v.jsx(Ch,{...Mo().getStyles("title",{classNames:l,style:r,styles:s,className:o}),...f})});fu.classes=ll;fu.displayName="@mantine/core/DrawerTitle";const x_={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:on("modal"),withOverlay:!0,withCloseButton:!0},ma=ge(n=>{const{title:l,withOverlay:o,overlayProps:r,withCloseButton:s,closeButtonProps:c,children:f,opened:m,stackId:h,zIndex:p,...b}=ce("Drawer",x_,n),g=x.use(hS),y=!!l||s,w=g&&h?{closeOnEscape:g.currentId===h,trapFocus:g.currentId===h,zIndex:g.getZIndex(h)}:{},C=o===!1?!1:h&&g?g.currentId===h:m;return x.useEffect(()=>{g&&h&&(m?g.addModal(h,p||on("modal")):g.removeModal(h))},[m,h,p]),v.jsxs(Fi,{opened:m,zIndex:g&&h?g.getZIndex(h):p,...b,...w,children:[o&&v.jsx(uu,{visible:C,transitionProps:g&&h?{duration:0}:void 0,...r}),v.jsxs(su,{__hidden:g&&h&&m?h!==g.currentId:!1,children:[y&&v.jsxs(cu,{children:[l&&v.jsx(fu,{children:l}),s&&v.jsx(iu,{...c})]}),v.jsx(ou,{children:f})]})]})});ma.classes=ll;ma.displayName="@mantine/core/Drawer";ma.Root=Fi;ma.Overlay=uu;ma.Content=su;ma.Body=ou;ma.Header=cu;ma.Title=fu;ma.CloseButton=iu;ma.Stack=pS;function w_(n="top-end",l=0){const o={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=typeof l=="number"?l:l.x,s=typeof l=="number"?l:l.y,c=F(r),f=F(s),[m,h]=n.split("-");return m==="top"&&(o["--indicator-top"]=f,o["--indicator-translate-y"]="-50%"),m==="middle"&&(o["--indicator-top"]="50%",o["--indicator-translate-y"]="-50%"),m==="bottom"&&(o["--indicator-bottom"]=f,o["--indicator-translate-y"]="50%"),h==="start"&&(o["--indicator-left"]=c,o["--indicator-translate-x"]="-50%"),h==="center"&&(o["--indicator-left"]="50%",o["--indicator-translate-x"]="-50%"),h==="end"&&(o["--indicator-right"]=c,o["--indicator-translate-x"]="50%"),o}var vS={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const C_={position:"top-end",offset:0,showZero:!0},gS=(n,{color:l,position:o,offset:r,size:s,radius:c,zIndex:f,autoContrast:m})=>({root:{"--indicator-color":l?Fn(l,n):void 0,"--indicator-text-color":bC(m,n)?cb({color:l,theme:n,autoContrast:m}):void 0,"--indicator-size":F(s),"--indicator-radius":c===void 0?void 0:Xt(c),"--indicator-z-index":f==null?void 0:f.toString(),...w_(o,r)}}),du=ge(n=>{const l=ce("Indicator",C_,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,children:h,position:p,offset:b,inline:g,label:y,radius:w,color:C,withBorder:R,disabled:j,processing:N,zIndex:E,autoContrast:_,maxValue:D,showZero:L,mod:U,attributes:V,...k}=l,P=De({name:"Indicator",classes:vS,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:V,vars:m,varsResolver:gS}),ae=!L&&(y===0||y==="0"),te=D!==void 0&&typeof y=="number"&&y>D?`${D}+`:y;return v.jsxs(fe,{...P("root"),mod:[{inline:g},U],...k,children:[!j&&!ae&&v.jsx(fe,{mod:{"with-label":!!y,"with-border":R,processing:N},...P("indicator"),children:te}),h]})});du.classes=vS;du.varsResolver=gS;du.displayName="@mantine/core/Indicator";const[E_,Do]=Ea("Modal component was not found in tree");var rl={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const mu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ModalBody",null,n);return v.jsx(yh,{...Do().getStyles("body",{classNames:l,style:r,styles:s,className:o}),...f})});mu.classes=rl;mu.displayName="@mantine/core/ModalBody";const hu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ModalCloseButton",null,n);return v.jsx(bh,{...Do().getStyles("close",{classNames:l,style:r,styles:s,className:o}),...f})});hu.classes=rl;hu.displayName="@mantine/core/ModalCloseButton";const pu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,children:f,__hidden:m,...h}=ce("ModalContent",null,n),p=Do(),b=p.scrollAreaComponent||O1;return v.jsx(Sh,{...p.getStyles("content",{className:o,style:r,styles:s,classNames:l}),innerProps:p.getStyles("inner",{className:o,style:r,styles:s,classNames:l}),"data-full-screen":p.fullScreen||void 0,"data-modal-content":!0,"data-hidden":m||void 0,...h,children:v.jsx(b,{style:{maxHeight:p.fullScreen?"100dvh":`calc(100dvh - (${F(p.yOffset)} * 2))`},children:f})})});pu.classes=rl;pu.displayName="@mantine/core/ModalContent";const vu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ModalHeader",null,n);return v.jsx(xh,{...Do().getStyles("header",{classNames:l,style:r,styles:s,className:o}),...f})});vu.classes=rl;vu.displayName="@mantine/core/ModalHeader";const gu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ModalOverlay",null,n);return v.jsx(wh,{...Do().getStyles("overlay",{classNames:l,style:r,styles:s,className:o}),...f})});gu.classes=rl;gu.displayName="@mantine/core/ModalOverlay";const T_={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:on("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},yS=(n,{radius:l,size:o,yOffset:r,xOffset:s})=>({root:{"--modal-radius":l===void 0?void 0:Xt(l),"--modal-size":Pe(o,"modal-size"),"--modal-y-offset":F(r),"--modal-x-offset":F(s)}}),Ji=ge(n=>{const l=ce("ModalRoot",T_,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,yOffset:h,scrollAreaComponent:p,radius:b,fullScreen:g,centered:y,xOffset:w,__staticSelector:C,attributes:R,...j}=l,N=De({name:C,classes:rl,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:R,vars:m,varsResolver:yS});return v.jsx(E_,{value:{yOffset:h,scrollAreaComponent:p,getStyles:N,fullScreen:g},children:v.jsx(gh,{...N("root"),"data-full-screen":g||void 0,"data-centered":y||void 0,"data-offset-scrollbars":p===Na.Autosize||void 0,unstyled:f,...j})})});Ji.classes=rl;Ji.varsResolver=yS;Ji.displayName="@mantine/core/ModalRoot";const bS=x.createContext(null);function SS({children:n}){const[l,o]=x.useState([]),[r,s]=x.useState(on("modal"));return v.jsx(bS,{value:{stack:l,addModal:(c,f)=>{o(m=>[...new Set([...m,c])]),s(m=>typeof f=="number"&&typeof m=="number"?Math.max(m,f):m)},removeModal:c=>o(f=>f.filter(m=>m!==c)),getZIndex:c=>`calc(${r} + ${l.indexOf(c)} + 1)`,currentId:l[l.length-1],maxZIndex:r},children:n})}SS.displayName="@mantine/core/ModalStack";const yu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ModalTitle",null,n);return v.jsx(Ch,{...Do().getStyles("title",{classNames:l,style:r,styles:s,className:o}),...f})});yu.classes=rl;yu.displayName="@mantine/core/ModalTitle";const R_={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:on("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},cn=ge(n=>{const{title:l,withOverlay:o,overlayProps:r,withCloseButton:s,closeButtonProps:c,children:f,radius:m,opened:h,stackId:p,zIndex:b,...g}=ce("Modal",R_,n),y=x.use(bS),w=!!l||s,C=y&&p?{closeOnEscape:y.currentId===p,trapFocus:y.currentId===p,zIndex:y.getZIndex(p)}:{},R=o===!1?!1:p&&y?y.currentId===p:h;return x.useEffect(()=>{y&&p&&(h?y.addModal(p,b||on("modal")):y.removeModal(p))},[h,p,b]),v.jsxs(Ji,{radius:m,opened:h,zIndex:y&&p?y.getZIndex(p):b,...g,...C,children:[o&&v.jsx(gu,{visible:R,transitionProps:y&&p?{duration:0}:void 0,...r}),v.jsxs(pu,{radius:m,__hidden:y&&p&&h?p!==y.currentId:!1,children:[w&&v.jsxs(vu,{children:[l&&v.jsx(yu,{children:l}),s&&v.jsx(hu,{...c})]}),v.jsx(mu,{children:f})]})]})});cn.classes=rl;cn.displayName="@mantine/core/Modal";cn.Root=Ji;cn.Overlay=gu;cn.Content=pu;cn.Body=mu;cn.Header=vu;cn.Title=yu;cn.CloseButton=hu;cn.Stack=SS;var xS={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const wS=(n,{variant:l,color:o,childrenOffset:r,autoContrast:s})=>{const c=n.variantColorResolver({color:o||n.primaryColor,theme:n,variant:l||"light",autoContrast:s});return{root:{"--nl-bg":o||l?c.background:void 0,"--nl-hover":o||l?c.hover:void 0,"--nl-color":o||l?c.color:void 0},children:{"--nl-offset":el(r)}}},bu=sn(n=>{const l=ce("NavLink",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,opened:h,defaultOpened:p,onChange:b,children:g,active:y,disabled:w,leftSection:C,rightSection:R,label:j,description:N,disableRightSectionRotation:E,noWrap:_,childrenOffset:D,autoContrast:L,mod:U,attributes:V,onClick:k,onKeyDown:P,keepMounted:ae,...te}=l,W=De({name:"NavLink",props:l,classes:xS,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:V,vars:m,varsResolver:wS}),[oe,K]=Bl({value:h,defaultValue:p,finalValue:!1,onChange:b}),ie=!!g,O=M=>{k==null||k(M),ie&&(M.preventDefault(),K(!oe))};return v.jsxs(v.Fragment,{children:[v.jsxs(Hl,{...W("root"),component:"a",onClick:O,onKeyDown:M=>{P==null||P(M),M.nativeEvent.code==="Space"&&ie&&(M.preventDefault(),K(!oe))},unstyled:f,mod:[{disabled:w,active:y,expanded:oe},U],...te,children:[C&&v.jsx(fe,{component:"span",...W("section"),mod:{position:"left"},children:C}),v.jsxs(fe,{...W("body"),mod:{"no-wrap":_},children:[v.jsx(fe,{component:"span",...W("label"),children:j}),v.jsx(fe,{component:"span",mod:{active:y},...W("description"),children:N})]}),(ie||R!==void 0)&&v.jsx(fe,{...W("section"),component:"span",mod:{rotate:oe&&!E,position:"right"},children:ie?R!==void 0?R:v.jsx(U1,{...W("chevron")}):R})]}),ie&&v.jsx(xb,{expanded:oe,keepMounted:ae,...W("collapse"),children:v.jsx("div",{...W("children"),children:g})})]})});bu.classes=xS;bu.varsResolver=wS;bu.displayName="@mantine/core/NavLink";var CS={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const __={withCloseButton:!0},ES=(n,{radius:l,color:o})=>({root:{"--notification-radius":l===void 0?void 0:Xt(l),"--notification-color":o?Fn(o,n):void 0}}),Su=ge(n=>{const l=ce("Notification",__,n),{className:o,color:r,radius:s,loading:c,withCloseButton:f,withBorder:m,title:h,icon:p,children:b,onClose:g,closeButtonProps:y,classNames:w,style:C,styles:R,unstyled:j,vars:N,mod:E,loaderProps:_,role:D,attributes:L,...U}=l,V=De({name:"Notification",classes:CS,props:l,className:o,style:C,classNames:w,styles:R,unstyled:j,attributes:L,vars:N,varsResolver:ES});return v.jsxs(fe,{...V("root"),mod:[{"data-with-icon":!!p||c,"data-with-border":m},E],role:D||"alert",...U,children:[p&&!c&&v.jsx("div",{...V("icon"),children:p}),c&&v.jsx(Hn,{size:28,color:r,...V("loader"),..._}),v.jsxs("div",{...V("body"),children:[h&&v.jsx("div",{...V("title"),children:h}),v.jsx(fe,{...V("description"),mod:{"data-with-title":!!h},children:b})]}),f&&v.jsx(Sr,{iconSize:16,color:"gray",...y,unstyled:j,onClick:k=>{var P;(P=y==null?void 0:y.onClick)==null||P.call(y,k),g==null||g()},...V("closeButton")})]})});Su.classes=CS;Su.varsResolver=ES;Su.displayName="@mantine/core/Notification";function TS(n,l){var o={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&l.indexOf(r)<0&&(o[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s=m?s=s+Y0("0",f-m):s=(s.substring(0,f)||"0")+"."+s.substring(f),o+s}function X0(n,l,o){if(["","-"].indexOf(n)!==-1)return n;var r=(n.indexOf(".")!==-1||o)&&l,s=Yh(n),c=s.beforeDecimal,f=s.afterDecimal,m=s.hasNegation,h=parseFloat("0."+(f||"0")),p=f.length<=l?"0."+f:h.toFixed(l),b=p.split("."),g=c;c&&Number(b[0])&&(g=c.split("").reverse().reduce(function(R,j,N){return R.length>N?(Number(R[0])+Number(j)).toString()+R.substring(1,R.length):j+R},b[0]));var y=NS(b[1]||"",l,o),w=m?"-":"",C=r?".":"";return""+w+g+C+y}function fr(n,l){if(n.value=n.value,n!==null){if(n.createTextRange){var o=n.createTextRange();return o.move("character",l),o.select(),!0}return n.selectionStart||n.selectionStart===0?(n.focus(),n.setSelectionRange(l,l),!0):(n.focus(),!1)}}var AS=N_(function(n,l){for(var o=0,r=0,s=n.length,c=l.length;n[o]===l[o]&&oo&&s-r>o;)r++;return{from:{start:o,end:s-r},to:{start:o,end:c-r}}}),D_=function(n,l){var o=Math.min(n.selectionStart,l);return{from:{start:o,end:n.selectionEnd},to:{start:o,end:l}}};function z_(n,l,o){return Math.min(Math.max(n,l),o)}function fm(n){return Math.max(n.selectionStart,n.selectionEnd)}function B_(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function L_(n){return{from:{start:0,end:0},to:{start:0,end:n.length},lastValue:""}}function H_(n){var l=n.currentValue,o=n.formattedValue,r=n.currentValueIndex,s=n.formattedValueIndex;return l[r]===o[s]}function $_(n,l,o,r,s,c,f){f===void 0&&(f=H_);var m=s.findIndex(function(D){return D}),h=n.slice(0,m);!l&&!o.startsWith(h)&&(l=h,o=h+o,r=r+h.length);for(var p=o.length,b=n.length,g={},y=new Array(p),w=0;w0&&y[N]===-1;)N--;var _=N===-1||y[N]===-1?0:y[N]+1;return _>E?E:r-_=0&&!o[l];)l--;l===-1&&(l=o.indexOf(!0))}else{for(;l<=s&&!o[l];)l++;l>s&&(l=o.lastIndexOf(!0))}return l===-1&&(l=s),l}function U_(n){for(var l=Array.from({length:n.length+1}).map(function(){return!0}),o=0,r=l.length;oV.length-f.length||Ute||g>n.length-f.length)&&(ae=g),n=n.substring(0,ae),n=X_(_?"-"+n:n,s),n=(n.match(q_(C))||[]).join("");var W=n.indexOf(C);n=n.replace(new RegExp(_S(C),"g"),function(M,B){return B===W?".":""});var oe=Yh(n,s),K=oe.beforeDecimal,ie=oe.afterDecimal,O=oe.addNegation;return p.end-p.startA?!1:J>=se.start&&Jo?o:n}function W_(n){return n.toString().replace(".","").length}function eN(n,l){return(typeof n=="number"?n=l)&&(o===void 0||n<=o)}const pm={size:"sm",step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[".",","]},zS=(n,{size:l})=>({controls:{"--ni-chevron-size":Pe(l,"ni-chevron-size")}});function nN(n,l,o){const r=n.toString(),s=MS.test(r),c=r.replace(/^0+(?=\d)/,""),f=parseFloat(c);if(Number.isNaN(f))return c;if(f>Number.MAX_SAFE_INTEGER)return l!==void 0?l:c;const m=yc(f,o,l);return s?`${m.toString().replace(/^0+(?=\d)/,"")}.`:m}function aN(n,l){if(n===""||n==="-")return n;const o=Ai(n);return o===null?n:l.clampBehavior==="blur"?Tc(o,l.min,l.max):o}const wu=Wm(n=>{const l=ce(["Input","InputWrapper","NumberInput"],pm,n),{className:o,classNames:r,styles:s,unstyled:c,vars:f,onChange:m,onValueChange:h,value:p,defaultValue:b,max:g,min:y,step:w,hideControls:C,rightSection:R,isAllowed:j,clampBehavior:N,onBlur:E,allowDecimal:_,decimalScale:D,onKeyDown:L,onKeyDownCapture:U,handlersRef:V,startValue:k,disabled:P,rightSectionPointerEvents:ae,allowNegative:te,readOnly:W,size:oe,rightSectionWidth:K,stepHoldInterval:ie,stepHoldDelay:O,allowLeadingZeros:M,withKeyboardEvents:B,trimLeadingZeroesOnBlur:G,allowedDecimalSeparators:J,selectAllOnFocus:A,onMinReached:H,onMaxReached:Q,onFocus:ee,attributes:se,ref:de,...pe}=l,_e=te??!0,Me=M??!0,He=De({name:"NumberInput",classes:Mm,props:l,classNames:r,styles:s,unstyled:c,attributes:se,vars:f,varsResolver:zS}),{resolvedClassNames:st,resolvedStyles:je}=Yc({classNames:r,styles:s,props:l}),Qe=x.useRef(dm(p)||dm(b)?"bigint":"number");dm(p)?Qe.current="bigint":typeof p=="number"&&(Qe.current="number");const $e=Qe.current==="bigint",[Ce,ct]=Bl({value:p,defaultValue:b,finalValue:"",onChange:m}),me=O!==void 0&&ie!==void 0,he=x.useRef(null),Ee=x.useRef(null),Ae=x.useRef(0),Ye=typeof y=="number"?y:void 0,Oe=typeof g=="number"?g:void 0,be=typeof w=="number"?w:pm.step,Ue=typeof k=="number"?k:pm.startValue,xe=gc(y),Te=gc(g),yt=gc(w)??BigInt(1),Ve=gc(k)??BigInt(0),Cn=ve=>!DS(ve,_e)||Me&&Q0.test(ve)?ve:Ai(ve)??ve,En=ve=>{const Se=Number(ve);return Number.isSafeInteger(Se)?Se:void 0},Ut=(ve,Se)=>{Se.source==="event"&&ct($e?Cn(ve.value):eN(ve.floatValue,ve.value)&&!J_.test(ve.value)&&!(Me&&Q0.test(ve.value))&&!P_.test(ve.value)&&!MS.test(ve.value)?ve.floatValue:ve.value),h==null||h(ve,Se)},qt=ve=>{const Se=String(ve).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return Se?Math.max(0,(Se[1]?Se[1].length:0)-(Se[2]?+Se[2]:0)):0},jt=ve=>{he.current&&typeof ve<"u"&&he.current.setSelectionRange(ve,ve)},ut=x.useRef(gm);ut.current=()=>{if($e){if(!hm(Ce,_e))return;let bt;const We=Ce;if(typeof We=="bigint"){const St=We+yt;Te!==void 0&&St>Te&&(Q==null||Q()),bt=Te!==void 0&&St>Te?Te:St}else if(typeof We=="string"&&We!==""){const St=Ai(We);if(St===null)return;const la=St+yt;Te!==void 0&&la>Te&&(Q==null||Q()),bt=Te!==void 0&&la>Te?Te:la}else bt=Tc(Ve,xe,Te);const mt=bt.toString();ct(bt),h==null||h({floatValue:En(bt),formattedValue:mt,value:mt},{source:"increment"}),setTimeout(()=>{var St;return jt((St=he.current)==null?void 0:St.value.length)},0);return}if(!mm(Ce))return;let ve;const Se=qt(Ce),Bt=qt(be),Rn=Math.max(Se,Bt),un=10**Rn;if(!Dm(Ce)&&(typeof Ce!="number"||Number.isNaN(Ce)))ve=yc(Ue,Ye,Oe);else if(Oe!==void 0){const bt=(Math.round(Number(Ce)*un)+Math.round(be*un))/un;bt>Oe&&(Q==null||Q()),ve=bt<=Oe?bt:Oe}else ve=(Math.round(Number(Ce)*un)+Math.round(be*un))/un;const fn=ve.toFixed(Rn);ct(parseFloat(fn)),h==null||h({floatValue:parseFloat(fn),formattedValue:fn,value:fn},{source:"increment"}),setTimeout(()=>{var bt;return jt((bt=he.current)==null?void 0:bt.value.length)},0)};const Ie=x.useRef(gm);Ie.current=()=>{if($e){if(!hm(Ce,_e))return;let We;const mt=xe!==void 0?xe:_e?void 0:BigInt(0),St=Ce;if(typeof St=="bigint"){const nn=St-yt;mt!==void 0&&nn{var nn;return jt((nn=he.current)==null?void 0:nn.value.length)},0);return}if(!mm(Ce))return;let ve;const Se=Ye!==void 0?Ye:_e?Number.MIN_SAFE_INTEGER:0,Bt=qt(Ce),Rn=qt(be),un=Math.max(Bt,Rn),fn=10**un;if(!Dm(Ce)&&typeof Ce!="number"||Number.isNaN(Ce))ve=yc(Ue,Se,Oe);else{const We=(Math.round(Number(Ce)*fn)-Math.round(be*fn))/fn;Se!==void 0&&We{var We;return jt((We=he.current)==null?void 0:We.value.length)},0)};const tt=ve=>{var un,fn,bt;const Se=ve.clipboardData.getData("text"),Bt=pe.decimalSeparator||".",Rn=(J||[".",","]).filter(We=>We!==Bt);if(Rn.some(We=>Se.includes(We))){ve.preventDefault();let We=Se;Rn.forEach(St=>{We=We.split(St).join(Bt)});const mt=he.current;if(mt){const St=mt.selectionStart??0,la=mt.selectionEnd??0,nn=mt.value,dn=nn.substring(0,St)+We+nn.substring(la);(fn=(un=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:un.set)==null||fn.call(mt,dn),mt.dispatchEvent(new Event("change",{bubbles:!0}));const Lt=St+We.length;setTimeout(()=>jt(Lt),0)}}(bt=pe.onPaste)==null||bt.call(pe,ve)},aa=ve=>{var Se,Bt;L==null||L(ve),!(W||!B)&&(ve.key==="ArrowUp"&&(ve.preventDefault(),(Se=ut.current)==null||Se.call(ut)),ve.key==="ArrowDown"&&(ve.preventDefault(),(Bt=Ie.current)==null||Bt.call(Ie)))},Er=ve=>{if(U==null||U(ve),ve.key==="Backspace"){const Se=he.current;Se&&Se.selectionStart===0&&Se.selectionStart===Se.selectionEnd&&(ve.preventDefault(),window.setTimeout(()=>jt(0),0))}},Tr=ve=>{A&&setTimeout(()=>ve.currentTarget.select(),0),ee==null||ee(ve)},il=ve=>{let Se=Ce;$e?(N==="blur"&&typeof Se=="bigint"&&(Se=Tc(Se,xe,Te)),G&&typeof Se=="string"&&(Se=aN(Se,{min:xe,max:Te,clampBehavior:N}))):(N==="blur"&&typeof Se=="number"&&(Se=yc(Se,Ye,Oe)),G&&typeof Se=="string"&&qt(Se)<15&&(Se=nN(Se,Oe,Ye))),Ce!==Se&&ct(Se),E==null||E(ve)};Nc(V,{increment:ut.current,decrement:Ie.current});const Aa=ve=>{var Se,Bt;ve?(Se=ut.current)==null||Se.call(ut):(Bt=Ie.current)==null||Bt.call(Ie),Ae.current+=1},dt=ve=>{if(Aa(ve),me){const Se=typeof ie=="number"?ie:ie(Ae.current);Ee.current=window.setTimeout(()=>dt(ve),Se)}},wt=(ve,Se)=>{var Bt;ve.preventDefault(),(Bt=he.current)==null||Bt.focus(),Aa(Se),me&&(Ee.current=window.setTimeout(()=>dt(Se),O))},Tn=()=>{Ee.current&&window.clearTimeout(Ee.current),Ee.current=null,Ae.current=0},Yl=v.jsxs("div",{...He("controls"),children:[v.jsx(Hl,{...He("control"),tabIndex:-1,"aria-hidden":!0,disabled:P||typeof Ce=="number"&&Oe!==void 0&&Ce>=Oe||typeof Ce=="bigint"&&Te!==void 0&&Ce>=Te,mod:{direction:"up"},onMouseDown:ve=>ve.preventDefault(),onPointerDown:ve=>{wt(ve,!0)},onPointerUp:Tn,onPointerLeave:Tn,children:v.jsx(Z0,{direction:"up"})}),v.jsx(Hl,{...He("control"),tabIndex:-1,"aria-hidden":!0,disabled:P||typeof Ce=="number"&&Ye!==void 0&&Ce<=Ye||typeof Ce=="bigint"&&xe!==void 0&&Ce<=xe,mod:{direction:"down"},onMouseDown:ve=>ve.preventDefault(),onPointerDown:ve=>{wt(ve,!1)},onPointerUp:Tn,onPointerLeave:Tn,children:v.jsx(Z0,{direction:"down"})})]});return v.jsx(Vl,{component:F_,allowNegative:te,className:zt(Mm.root,o),size:oe,...pe,inputMode:$e?"numeric":"decimal",readOnly:W,disabled:P,value:typeof Ce=="bigint"?Ce.toString():Ce,getInputRef:en(de,he),onValueChange:Ut,rightSection:C||W||!($e?hm(Ce,_e):mm(Ce))?R:R||Yl,classNames:st,styles:je,unstyled:c,__staticSelector:"NumberInput",decimalScale:$e?0:_?D:0,onPaste:tt,onFocus:Tr,onKeyDown:aa,onKeyDownCapture:Er,rightSectionPointerEvents:ae??(P?"none":void 0),rightSectionWidth:K??`var(--ni-right-section-width-${oe||"sm"})`,allowLeadingZeros:M,allowedDecimalSeparators:J,onBlur:il,attributes:se,isAllowed:ve=>{if(!(!j||j(ve)))return!1;if(N!=="strict")return!0;if(!$e)return tN(ve.floatValue,Ye,Oe);if(ve.value===""||ve.value==="-")return!0;const Se=Ai(ve.value);return Se===null?!0:(xe===void 0||Se>=xe)&&(Te===void 0||Se<=Te)}})});wu.classes={...Vl.classes,...Mm};wu.varsResolver=zS;wu.displayName="@mantine/core/NumberInput";function lN({offset:n,position:l,defaultOpened:o}){const[r,s]=x.useState(o),c=x.useRef(null),{x:f,y:m,elements:h,refs:p,update:b,placement:g}=dh({placement:l,middleware:[sh({crossAxis:!0,padding:5,rootBoundary:"document"})]}),y=g.includes("right")?n:l.includes("left")?n*-1:0,w=g.includes("bottom")?n:l.includes("top")?n*-1:0,C=x.useCallback(({clientX:R,clientY:j})=>{p.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:R,y:j,left:R+y,top:j+w,right:R,bottom:j}}})},[h.reference]);return x.useEffect(()=>{if(p.floating.current){const R=c.current;R.addEventListener("mousemove",C);const j=Wa(p.floating.current);return j.forEach(N=>{N.addEventListener("scroll",b)}),()=>{R.removeEventListener("mousemove",C),j.forEach(N=>{N.removeEventListener("scroll",b)})}}},[h.reference,p.floating.current,b,C,r]),{handleMouseMove:C,x:f,y:m,opened:r,setOpened:s,boundaryRef:c,floating:p.setFloating}}var Cu={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const rN={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:on("popover")},BS=(n,{radius:l,color:o})=>({tooltip:{"--tooltip-radius":l===void 0?void 0:Xt(l),"--tooltip-bg":o?Fn(o,n):void 0,"--tooltip-color":o?"var(--mantine-color-white)":void 0}}),Eu=ge(n=>{const l=ce("TooltipFloating",rN,n),{children:o,refProp:r,withinPortal:s,style:c,className:f,classNames:m,styles:h,unstyled:p,radius:b,color:g,label:y,offset:w,position:C,multiline:R,zIndex:j,disabled:N,defaultOpened:E,variant:_,vars:D,portalProps:L,attributes:U,ref:V,...k}=l,P=Wn(),ae=De({name:"TooltipFloating",props:l,classes:Cu,className:f,style:c,classNames:m,styles:h,unstyled:p,attributes:U,rootSelector:"tooltip",vars:D,varsResolver:BS}),{handleMouseMove:te,x:W,y:oe,opened:K,boundaryRef:ie,floating:O,setOpened:M}=lN({offset:w,position:C,defaultOpened:E}),B=br(o);if(!B)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 G=en(ie,Vc(B),V),J=B.props,A=Q=>{var ee;(ee=J.onMouseEnter)==null||ee.call(J,Q),te(Q),M(!0)},H=Q=>{var ee;(ee=J.onMouseLeave)==null||ee.call(J,Q),M(!1)};return v.jsxs(v.Fragment,{children:[v.jsx($l,{...L,withinPortal:s,children:v.jsx(fe,{...k,...ae("tooltip",{style:{...Li(c,P),zIndex:j,display:!N&&K?"block":"none",top:(oe&&Math.round(oe))??"",left:(W&&Math.round(W))??""}}),variant:_,ref:O,mod:{multiline:R},children:y})}),x.cloneElement(B,{...J,[r]:G,onMouseEnter:A,onMouseLeave:H})]})});Eu.classes=Cu;Eu.varsResolver=BS;Eu.displayName="@mantine/core/TooltipFloating";const LS=x.createContext({withinGroup:!1}),oN={openDelay:0,closeDelay:0};function Xh(n){const{openDelay:l,closeDelay:o,children:r}=ce("TooltipGroup",oN,n);return v.jsx(LS,{value:{withinGroup:!0},children:v.jsx(iR,{delay:{open:l,close:o},children:r})})}Xh.displayName="@mantine/core/TooltipGroup";Xh.extend=n=>n;function iN(n){if(n===void 0)return{shift:!0,flip:!0};const l={...n};return n.shift===void 0&&(l.shift=!0),n.flip===void 0&&(l.flip=!0),l}function sN(n){const l=iN(n.middlewares),o=[qb(n.offset)];return l.shift&&o.push(sh(typeof l.shift=="boolean"?{padding:8}:{padding:8,...l.shift})),l.flip&&o.push(typeof l.flip=="boolean"?jm():jm(l.flip)),o.push(Gb({element:n.arrowRef,padding:n.arrowOffset})),l.inline?o.push(typeof l.inline=="boolean"?Di():Di(l.inline)):n.inline&&o.push(Di()),o}function cN(n){var L,U,V;const[l,o]=x.useState(n.defaultOpened),r=typeof n.opened=="boolean"?n.opened:l,s=x.use(LS).withinGroup,c=Ta(),f=x.useCallback(k=>{o(k),k&&j(c)},[c]),{x:m,y:h,context:p,refs:b,placement:g,middlewareData:{arrow:{x:y,y:w}={}}}=dh({strategy:n.strategy,placement:n.position,open:r,onOpenChange:f,middleware:sN(n),whileElementsMounted:Nm}),{delay:C,currentId:R,setCurrentId:j}=sR(p,{id:c}),{getReferenceProps:N,getFloatingProps:E}=hR([rR(p,{enabled:(L=n.events)==null?void 0:L.hover,delay:s?C:{open:n.openDelay,close:n.closeDelay},mouseOnly:!((U=n.events)!=null&&U.touch)}),mR(p,{enabled:(V=n.events)==null?void 0:V.focus,visibleOnly:!0}),vR(p,{role:"tooltip"}),fR(p,{enabled:typeof n.opened>"u"})]),_=x.useRef(g);wa(()=>{var k;_.current!==g&&(_.current=g,(k=n.onPositionChange)==null||k.call(n,g))},[g]);const D=r&&R&&R!==c;return{x:m,y:h,arrowX:y,arrowY:w,reference:b.setReference,floating:b.setFloating,getFloatingProps:E,getReferenceProps:N,isGroupPhase:D,opened:r,placement:g}}const uN={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:on("popover"),middlewares:{flip:!0,shift:!0,inline:!1}},HS=(n,{radius:l,color:o,variant:r,autoContrast:s})=>{const c=n.variantColorResolver({theme:n,color:o||n.primaryColor,autoContrast:s,variant:r||"filled"});return{tooltip:{"--tooltip-radius":l===void 0?void 0:Xt(l),"--tooltip-bg":o?c.background:void 0,"--tooltip-color":o?c.color:void 0}}},It=ge(n=>{const l=ce("Tooltip",uN,n),{children:o,position:r,refProp:s,label:c,openDelay:f,closeDelay:m,onPositionChange:h,opened:p,defaultOpened:b,withinPortal:g,radius:y,color:w,classNames:C,styles:R,unstyled:j,style:N,className:E,withArrow:_,arrowSize:D,arrowOffset:L,arrowRadius:U,arrowPosition:V,offset:k,transitionProps:P,multiline:ae,events:te,zIndex:W,disabled:oe,onClick:K,onMouseEnter:ie,onMouseLeave:O,inline:M,variant:B,keepMounted:G,vars:J,portalProps:A,mod:H,floatingStrategy:Q,middlewares:ee,autoContrast:se,attributes:de,target:pe,ref:_e,...Me}=l,{dir:He}=To(),st=x.useRef(null),je=cN({position:n1(He,r),closeDelay:m,openDelay:f,onPositionChange:h,opened:p,defaultOpened:b,events:te,arrowRef:st,arrowOffset:L,offset:typeof k=="number"?k+(_?D/2:0):k,inline:M,strategy:Q,middlewares:ee});x.useEffect(()=>{const Ae=pe instanceof HTMLElement?pe:typeof pe=="string"?document.querySelector(pe):(pe==null?void 0:pe.current)||null;Ae&&je.reference(Ae)},[pe,je]);const Qe=De({name:"Tooltip",props:l,classes:Cu,className:E,style:N,classNames:C,styles:R,unstyled:j,attributes:de,rootSelector:"tooltip",vars:J,varsResolver:HS}),$e=br(o);if(!pe&&!$e)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 Ce=Qe("tooltip"),ct=V==="merge"&&_?t1({position:je.placement,dir:He}):void 0;if(pe){const Ae=D0(P,{duration:100,transition:"fade"});return v.jsx(v.Fragment,{children:v.jsx($l,{...A,withinPortal:g,children:v.jsx(nl,{...Ae,keepMounted:G,mounted:!oe&&!!je.opened,duration:je.isGroupPhase?10:Ae.duration,children:Ye=>v.jsxs(fe,{...Me,"data-fixed":Q==="fixed"||void 0,variant:B,mod:[{multiline:ae},H],...Ce,...je.getFloatingProps({ref:je.floating,className:Ce.className,style:{...Ce.style,...Ye,...ct,zIndex:W,top:je.y??0,left:je.x??0}}),children:[c,v.jsx(Bc,{ref:st,arrowX:je.arrowX,arrowY:je.arrowY,visible:_,position:je.placement,arrowSize:D,arrowOffset:L,arrowRadius:U,arrowPosition:V,...Qe("arrow")})]})})})})}const me=$e.props,he=en(je.reference,Vc($e),_e),Ee=D0(P,{duration:100,transition:"fade"});return v.jsxs(v.Fragment,{children:[v.jsx($l,{...A,withinPortal:g,children:v.jsx(nl,{...Ee,keepMounted:G,mounted:!oe&&!!je.opened,duration:je.isGroupPhase?10:Ee.duration,children:Ae=>v.jsxs(fe,{...Me,"data-fixed":Q==="fixed"||void 0,variant:B,mod:[{multiline:ae},H],...je.getFloatingProps({ref:je.floating,className:Qe("tooltip").className,style:{...Qe("tooltip").style,...Ae,...ct,zIndex:W,top:je.y??0,left:je.x??0}}),children:[c,v.jsx(Bc,{ref:st,arrowX:je.arrowX,arrowY:je.arrowY,visible:_,position:je.placement,arrowSize:D,arrowOffset:L,arrowRadius:U,arrowPosition:V,...Qe("arrow")})]})})}),x.cloneElement($e,je.getReferenceProps({onClick:K,onMouseEnter:ie,onMouseLeave:O,onMouseMove:l.onMouseMove,onPointerDown:l.onPointerDown,onPointerEnter:l.onPointerEnter,...me,className:zt(E,me.className),[s]:he}))]})});It.classes=Cu;It.varsResolver=HS;It.displayName="@mantine/core/Tooltip";It.Floating=Eu;It.Group=Xh;const fN={size:"sm",withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},Tu=Wm(n=>{const l=ce(["Input","InputWrapper","Select"],fN,n),{classNames:o,styles:r,unstyled:s,vars:c,dropdownOpened:f,defaultDropdownOpened:m,onDropdownClose:h,onDropdownOpen:p,onFocus:b,onBlur:g,onClick:y,onChange:w,data:C,value:R,defaultValue:j,selectFirstOptionOnChange:N,selectFirstOptionOnDropdownOpen:E,onOptionSubmit:_,comboboxProps:D,readOnly:L,disabled:U,filter:V,limit:k,withScrollArea:P,maxDropdownHeight:ae,floatingHeight:te,size:W,searchable:oe,rightSection:K,checkIconPosition:ie,withCheckIcon:O,withAlignedLabels:M,nothingFoundMessage:B,name:G,form:J,searchValue:A,defaultSearchValue:H,onSearchChange:Q,allowDeselect:ee,error:se,rightSectionPointerEvents:de,id:pe,clearable:_e,clearSectionMode:Me,clearButtonProps:He,hiddenInputProps:st,renderOption:je,onClear:Qe,autoComplete:$e,scrollAreaProps:Ce,__defaultRightSection:ct,__clearSection:me,__clearable:he,chevronColor:Ee,autoSelectOnBlur:Ae,openOnFocus:Ye,attributes:Oe,...be}=l,Ue=x.useMemo(()=>Z3(C),[C]),xe=x.useRef({}),Te=x.useMemo(()=>Z1(Ue),[Ue]),yt=Ta(pe),[Ve,Cn,En]=Bl({value:R,defaultValue:j,finalValue:null,onChange:w}),Ut=Ve!=null?`${Ve}`in Te?Te[`${Ve}`]:xe.current[`${Ve}`]:void 0,qt=tC(Ut),[jt,ut,Ie]=Bl({value:A,defaultValue:H,finalValue:Ut?Ut.label:"",onChange:Q}),tt=W1({opened:f,defaultOpened:m,onDropdownOpen:()=>{p==null||p(),E?tt.selectFirstOption():tt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{h==null||h(),setTimeout(tt.resetSelectedOption,0)}}),aa=dt=>{ut(dt),tt.resetSelectedOption()},{resolvedClassNames:Er,resolvedStyles:Tr}=Yc({props:l,styles:r,classNames:o});x.useEffect(()=>{N&&tt.selectFirstOption()},[N,jt]),x.useEffect(()=>{R===null&&aa(""),R!=null&&Ut&&((qt==null?void 0:qt.value)!==Ut.value||(qt==null?void 0:qt.label)!==Ut.label)&&aa(Ut.label)},[R,Ut]),x.useEffect(()=>{var dt,wt;!En&&!Ie&&aa(Ve!=null?`${Ve}`in Te?(dt=Te[`${Ve}`])==null?void 0:dt.label:((wt=xe.current[`${Ve}`])==null?void 0:wt.label)||"":"")},[Te,Ve]),x.useEffect(()=>{Ve&&`${Ve}`in Te&&(xe.current[`${Ve}`]=Te[`${Ve}`])},[Te,Ve]);const il=v.jsx(lt.ClearButton,{...He,onClear:()=>{Cn(null,null),aa(""),Qe==null||Qe()}}),Aa=_e&&Ve!=null&&!U&&!L;return v.jsxs(v.Fragment,{children:[v.jsxs(lt,{store:tt,__staticSelector:"Select",classNames:Er,styles:Tr,unstyled:s,readOnly:L,size:W,attributes:Oe,floatingHeight:te,keepMounted:Ae,onOptionSubmit:dt=>{_==null||_(dt);const wt=ee&&`${Te[dt].value}`==`${Ve}`?null:Te[dt],Tn=wt?wt.value:null;Tn!==Ve&&Cn(Tn,wt),!En&&aa(Tn!=null&&(wt==null?void 0:wt.label)||""),tt.closeDropdown()},...D,children:[v.jsx(lt.Target,{targetType:oe?"input":"button",autoComplete:$e,withExpandedAttribute:!0,children:v.jsx(Vl,{id:yt,__defaultRightSection:v.jsx(lt.Chevron,{size:W,error:se,unstyled:s,color:Ee}),__clearSection:il,__clearable:Aa,__clearSectionMode:Me,rightSection:K,rightSectionPointerEvents:de||"none",...be,size:W,__staticSelector:"Select",disabled:U,readOnly:L||!oe,value:jt,onChange:dt=>{aa(dt.currentTarget.value),tt.openDropdown(),N&&tt.selectFirstOption()},onFocus:dt=>{Ye&&oe&&tt.openDropdown(),b==null||b(dt)},onBlur:dt=>{Ae&&tt.clickSelectedOption(),oe&&tt.closeDropdown();const wt=Ve!=null&&(`${Ve}`in Te?Te[`${Ve}`]:xe.current[`${Ve}`]);aa(wt&&wt.label||""),g==null||g(dt)},onClick:dt=>{oe?tt.openDropdown():tt.toggleDropdown(),y==null||y(dt)},classNames:Er,styles:Tr,unstyled:s,pointer:!oe,error:se,attributes:Oe})}),v.jsx(c_,{data:Ue,hidden:L||U,filter:V,search:jt,limit:k,hiddenWhenEmpty:!B,withScrollArea:P,maxDropdownHeight:ae,filterOptions:!!oe&&(Ut==null?void 0:Ut.label)!==jt,value:Ve,checkIconPosition:ie,withCheckIcon:O,withAlignedLabels:M,nothingFoundMessage:B,unstyled:s,labelId:be.label?`${yt}-label`:void 0,"aria-label":be.label?void 0:be["aria-label"],renderOption:je,scrollAreaProps:Ce})]}),v.jsx(lt.HiddenInput,{value:Ve,name:G,form:J,disabled:U,...st})]})});Tu.classes={...Vl.classes,...lt.classes};Tu.displayName="@mantine/core/Select";var $S={root:"m_6d731127"};const dN={gap:"md",align:"stretch",justify:"flex-start"},US=(n,{gap:l,align:o,justify:r})=>({root:{"--stack-gap":el(l),"--stack-align":o,"--stack-justify":r}}),rn=ge(n=>{const l=ce("Stack",dN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,align:h,justify:p,gap:b,variant:g,attributes:y,...w}=l;return v.jsx(fe,{...De({name:"Stack",props:l,classes:$S,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:y,vars:m,varsResolver:US})("root"),variant:g,...w})});rn.classes=$S;rn.varsResolver=US;rn.displayName="@mantine/core/Stack";const VS=x.createContext(null),mN={hiddenInputValuesSeparator:","},qh=Wm((n=>{const{value:l,defaultValue:o,onChange:r,size:s,wrapperProps:c,children:f,readOnly:m,name:h,hiddenInputValuesSeparator:p,hiddenInputProps:b,maxSelectedValues:g,disabled:y,...w}=ce("SwitchGroup",mN,n),[C,R]=Bl({value:l,defaultValue:o,finalValue:[],onChange:r}),j=_=>{const D=_.currentTarget.value;if(m)return;const L=C.includes(D);!L&&g&&C.length>=g||R(L?C.filter(U=>U!==D):[...C,D])},N=_=>{if(y)return!0;if(!g)return!1;const D=C.includes(_),L=C.length>=g;return!D&&L},E=C.join(p);return v.jsx(VS,{value:{value:C,onChange:j,size:s,isDisabled:N},children:v.jsxs($t.Wrapper,{size:s,...c,...w,labelElement:"div",__staticSelector:"SwitchGroup",children:[v.jsx(l_,{role:"group",children:f}),v.jsx("input",{type:"hidden",name:h,value:E,...b})]})})}));qh.classes=$t.Wrapper.classes;qh.displayName="@mantine/core/SwitchGroup";var kS={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const hN={labelPosition:"right",withThumbIndicator:!0},YS=(n,{radius:l,color:o,size:r})=>({root:{"--switch-radius":l===void 0?void 0:Xt(l),"--switch-height":Pe(r,"switch-height"),"--switch-width":Pe(r,"switch-width"),"--switch-thumb-size":Pe(r,"switch-thumb-size"),"--switch-label-font-size":Pe(r,"switch-label-font-size"),"--switch-track-label-padding":Pe(r,"switch-track-label-padding"),"--switch-color":o?Fn(o,n):void 0}}),pr=ge(n=>{var se;const l=ce("Switch",hN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,color:h,label:p,offLabel:b,onLabel:g,id:y,size:w,radius:C,wrapperProps:R,thumbIcon:j,checked:N,defaultChecked:E,onChange:_,labelPosition:D,description:L,error:U,disabled:V,variant:k,rootRef:P,mod:ae,withThumbIndicator:te,attributes:W,...oe}=l,K=x.use(VS),ie=w||(K==null?void 0:K.size),O=De({name:"Switch",props:l,classes:kS,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:W,vars:m,varsResolver:YS}),{styleProps:M,rest:B}=Xc(oe),G=Ta(y),J=[L?`${G}-description`:void 0,U&&typeof U!="boolean"?`${G}-error`:void 0,B["aria-describedby"]].filter(Boolean).join(" ")||void 0,A={checked:(K==null?void 0:K.value.includes(B.value))??N,onChange:de=>{K==null||K.onChange(de),_==null||_(de)}},H=V||((se=K==null?void 0:K.isDisabled)==null?void 0:se.call(K,B.value)),[Q,ee]=Bl({value:A.checked??N,defaultValue:E,finalValue:!1});return v.jsxs(nS,{...O("root"),__staticSelector:"Switch",__stylesApiProps:l,id:G,size:ie,labelPosition:D,label:p,description:L,error:U,disabled:H,bodyElement:"label",labelElement:"span",classNames:o,styles:c,unstyled:f,"data-checked":A.checked,variant:k,ref:P,mod:ae,attributes:W,inert:B.inert,...M,...R,children:[v.jsx("input",{...B,...A,disabled:H,checked:Q,"data-checked":A.checked,onChange:de=>{var pe;(pe=A.onChange)==null||pe.call(A,de),ee(de.currentTarget.checked)},id:G,type:"checkbox",role:"switch",inert:B.inert,"aria-describedby":J,...O("input")}),v.jsxs(fe,{"aria-hidden":"true",component:"span",mod:{error:U,"label-position":D,"without-labels":!g&&!b},...O("track"),children:[v.jsx(fe,{component:"span",mod:{"reduce-motion":!0,"with-thumb-indicator":te&&!j},...O("thumb"),children:j}),v.jsx("span",{...O("trackLabel"),children:Q?g:b})]})]})});pr.classes={...kS,...o_};pr.varsResolver=YS;pr.displayName="@mantine/core/Switch";pr.Group=qh;const[pN,vN]=Ea("Table component was not found in the tree");var Pi={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function gN(n,l){if(!l)return;const o={};return l.columnBorder&&n.withColumnBorders&&(o["data-with-column-border"]=!0),l.rowBorder&&n.withRowBorders&&(o["data-with-row-border"]=!0),l.striped&&n.striped&&(o["data-striped"]=n.striped),l.highlightOnHover&&n.highlightOnHover&&(o["data-hover"]=!0),l.captionSide&&n.captionSide&&(o["data-side"]=n.captionSide),l.stickyHeader&&n.stickyHeader&&(o["data-sticky"]=!0),o}function xr(n,l){const o=`Table${n.charAt(0).toUpperCase()}${n.slice(1)}`,r=ge(s=>{const c=ce(o,{},s),{classNames:f,className:m,style:h,styles:p,...b}=c,g=vN();return v.jsx(fe,{component:n,...gN(g,l),...g.getStyles(n,{className:m,classNames:f,style:h,styles:p,props:c}),...b})});return r.displayName=`@mantine/core/${o}`,r.classes=Pi,r}const zm=xr("th",{columnBorder:!0}),XS=xr("td",{columnBorder:!0}),Rc=xr("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),qS=xr("thead",{stickyHeader:!0}),GS=xr("tbody"),ZS=xr("tfoot"),QS=xr("caption",{captionSide:!0}),yN={type:"scrollarea"},KS=(n,{minWidth:l,maxHeight:o,type:r})=>({scrollContainer:{"--table-min-width":F(l),"--table-max-height":F(o),"--table-overflow":r==="native"?"auto":void 0}}),Ru=ge(n=>{const l=ce("TableScrollContainer",yN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,children:h,minWidth:p,maxHeight:b,type:g,scrollAreaProps:y,attributes:w,...C}=l,R=De({name:"TableScrollContainer",classes:Pi,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:w,vars:m,varsResolver:KS,rootSelector:"scrollContainer"});return v.jsx(fe,{component:g==="scrollarea"?Na:"div",...g==="scrollarea"?b?{offsetScrollbars:"xy",...y}:{offsetScrollbars:"x",...y}:{},...R("scrollContainer"),...C,children:v.jsx("div",{...R("scrollContainerInner"),children:h})})});Ru.classes=Pi;Ru.varsResolver=KS;Ru.displayName="@mantine/core/TableScrollContainer";function Gh({data:n}){return v.jsxs(v.Fragment,{children:[n.caption&&v.jsx(QS,{children:n.caption}),n.head&&v.jsx(qS,{children:v.jsx(Rc,{children:n.head.map((l,o)=>v.jsx(zm,{children:l},o))})}),n.body&&v.jsx(GS,{children:n.body.map((l,o)=>v.jsx(Rc,{children:l.map((r,s)=>v.jsx(XS,{children:r},s))},o))}),n.foot&&v.jsx(ZS,{children:v.jsx(Rc,{children:n.foot.map((l,o)=>v.jsx(zm,{children:l},o))})})]})}Gh.displayName="@mantine/core/TableDataRenderer";const bN={withRowBorders:!0,verticalSpacing:7},IS=(n,{layout:l,captionSide:o,horizontalSpacing:r,verticalSpacing:s,borderColor:c,stripedColor:f,highlightOnHoverColor:m,striped:h,highlightOnHover:p,stickyHeaderOffset:b,stickyHeader:g})=>({table:{"--table-layout":l,"--table-caption-side":o,"--table-horizontal-spacing":el(r),"--table-vertical-spacing":el(s),"--table-border-color":c?Fn(c,n):void 0,"--table-striped-color":h&&f?Fn(f,n):void 0,"--table-highlight-on-hover-color":p&&m?Fn(m,n):void 0,"--table-sticky-header-offset":g?F(b):void 0}}),ue=ge(n=>{const l=ce("Table",bN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,horizontalSpacing:h,verticalSpacing:p,captionSide:b,stripedColor:g,highlightOnHoverColor:y,striped:w,highlightOnHover:C,withColumnBorders:R,withRowBorders:j,withTableBorder:N,borderColor:E,layout:_,data:D,children:L,stickyHeader:U,stickyHeaderOffset:V,mod:k,tabularNums:P,attributes:ae,...te}=l,W=De({name:"Table",props:l,className:r,style:s,classes:Pi,classNames:o,styles:c,unstyled:f,attributes:ae,rootSelector:"table",vars:m,varsResolver:IS});return v.jsx(pN,{value:{getStyles:W,stickyHeader:U,striped:w===!0?"odd":w||void 0,highlightOnHover:C,withColumnBorders:R,withRowBorders:j,captionSide:b||"bottom"},children:v.jsx(fe,{component:"table",mod:[{"data-with-table-border":N,"data-tabular-nums":P},k],...W("table"),...te,children:L||!!D&&v.jsx(Gh,{data:D})})})});ue.classes=Pi;ue.varsResolver=IS;ue.displayName="@mantine/core/Table";ue.Td=XS;ue.Th=zm;ue.Tr=Rc;ue.Thead=qS;ue.Tbody=GS;ue.Tfoot=ZS;ue.Caption=QS;ue.ScrollContainer=Ru;ue.DataRenderer=Gh;const ua=ge(n=>v.jsx(Vl,{component:"input",...ce(["Input","InputWrapper","TextInput"],null,n),__staticSelector:"TextInput"}));ua.classes=Vl.classes;ua.displayName="@mantine/core/TextInput";var FS={root:"m_7341320d"};const JS=(n,{size:l,radius:o,variant:r,gradient:s,color:c,autoContrast:f})=>{const m=n.variantColorResolver({color:c||n.primaryColor,theme:n,gradient:s,variant:r||"filled",autoContrast:f});return{root:{"--ti-size":Pe(l,"ti-size"),"--ti-radius":o===void 0?void 0:Xt(o),"--ti-bg":c||r?m.background:void 0,"--ti-color":c||r?m.color:void 0,"--ti-bd":c||r?m.border:void 0}}},_u=ge(n=>{const l=ce("ThemeIcon",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,autoContrast:h,attributes:p,...b}=l;return v.jsx(fe,{...De({name:"ThemeIcon",classes:FS,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:p,vars:m,varsResolver:JS})("root"),...b})});_u.classes=FS;_u.varsResolver=JS;_u.displayName="@mantine/core/ThemeIcon";const SN=["h1","h2","h3","h4","h5","h6"],xN=["xs","sm","md","lg","xl"];function wN(n,l){const o=l!==void 0?l:`h${n}`;return SN.includes(o)?{fontSize:`var(--mantine-${o}-font-size)`,fontWeight:`var(--mantine-${o}-font-weight)`,lineHeight:`var(--mantine-${o}-line-height)`}:xN.includes(o)?{fontSize:`var(--mantine-font-size-${o})`,fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}:{fontSize:F(o),fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}}var PS={root:"m_8a5d1357"};const CN={order:1},WS=(n,{order:l,size:o,lineClamp:r,textWrap:s})=>{const c=wN(l||1,o);return{root:{"--title-fw":c.fontWeight,"--title-lh":c.lineHeight,"--title-fz":c.fontSize,"--title-line-clamp":typeof r=="number"?r.toString():void 0,"--title-text-wrap":s}}},wr=ge(n=>{const l=ce("Title",CN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,order:m,vars:h,size:p,variant:b,lineClamp:g,textWrap:y,mod:w,attributes:C,...R}=l,j=De({name:"Title",props:l,classes:PS,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:C,vars:h,varsResolver:WS});return[1,2,3,4,5,6].includes(m)?v.jsx(fe,{...j("root"),component:`h${m}`,variant:b,mod:[{order:m,"data-line-clamp":typeof g=="number"},w],size:p,...R}):null});wr.classes=PS;wr.varsResolver=WS;wr.displayName="@mantine/core/Title";function EN(n){let l=n,o=!1;const r=new Set;return{getState(){return l},updateState(s){l=typeof s=="function"?s(l):s},setState(s){this.updateState(s),r.forEach(c=>c(l))},initialize(s){o||(l=s,o=!0)},subscribe(s){return r.add(s),()=>r.delete(s)}}}function TN(n){return x.useSyncExternalStore(n.subscribe,()=>n.getState(),()=>n.getState())}function RN(n,l,o){const r=[],s=[],c={};for(const f of n){const m=f.position||l;c[m]=c[m]||0,c[m]+=1,c[m]<=o?s.push(f):r.push(f)}return{notifications:s,queue:r}}const _N=()=>EN({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),Cr=_N(),NN=(n=Cr)=>TN(n);function zo(n,l){const o=n.getState(),r=RN(l([...o.notifications,...o.queue]),o.defaultPosition,o.limit);n.setState({notifications:r.notifications,queue:r.queue,limit:o.limit,defaultPosition:o.defaultPosition})}function jN(n,l=Cr){const o=n.id||nb();return zo(l,r=>n.id&&r.some(s=>s.id===n.id)?r:[...r,{...n,id:o}]),o}function ex(n,l=Cr){return zo(l,o=>o.filter(r=>{var s;return r.id===n?((s=r.onClose)==null||s.call(r,r),!1):!0})),n}function AN(n,l=Cr){return zo(l,o=>o.map(r=>r.id===n.id?{...r,...n}:r)),n.id}function ON(n=Cr){zo(n,()=>[])}function MN(n=Cr){zo(n,l=>l.slice(0,n.getState().limit))}const wn={show:jN,hide:ex,update:AN,clean:ON,cleanQueue:MN,updateState:zo},tx=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function DN(n,l){return n.reduce((o,r)=>(o[r.position||l].push(r),o),tx.reduce((o,r)=>(o[r]=[],o),{}))}const K0={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},zN={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function BN({state:n,maxHeight:l,position:o,transitionDuration:r}){const[s,c]=o.split("-"),f=c==="center"?`${s}-center`:c,m={opacity:0,maxHeight:l,transform:K0[f],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},h={opacity:1,transform:zN[f]},p={opacity:0,maxHeight:0,transform:K0[f]};return{...m,...{entering:h,entered:h,exiting:p,exited:p}[n]}}function LN(n,l){return typeof l=="number"?l:l===!1||n===!1?!1:n}const HN=120;function nx({data:n,onHide:l,autoClose:o,transitionDuration:r,allowDragDismiss:s,allowScrollDismiss:c,paused:f,onHoverStart:m,onHoverEnd:h,ref:p,style:b,...g}){const[y,w]=x.useState(0),[C,R]=x.useState(!1),[j,N]=x.useState(1),[E,_]=x.useState(!1),D=Wn(),{autoClose:L,message:U,allowClose:V,position:k,style:P,withCloseButton:ae,onOpen:te,...W}=n,oe=LN(o,n.autoClose),K=x.useRef(-1),ie=x.useRef(-1),O=x.useRef(-1),M=x.useRef(null),B=x.useRef(!1),G=x.useRef(0),J=V===!1,A=()=>window.clearTimeout(K.current),H=()=>window.clearTimeout(ie.current),Q=()=>window.clearTimeout(O.current),ee=xe=>{G.current=xe,w(xe)},se=()=>{l(n.id),A(),H(),Q()},de=()=>{C||Qe||f||B.current||typeof oe!="number"||(K.current=window.setTimeout(se,oe))},pe=xe=>{var Te;return xe*((((Te=M.current)==null?void 0:Te.offsetWidth)??440)+40)},_e=(xe,Te)=>{var Ve;const yt=((Ve=M.current)==null?void 0:Ve.offsetWidth)??440;return Math.abs(xe)>yt*.35||Te>.5},Me=()=>{Q(),_(!1),ee(0)},He=xe=>{N(xe),R(!0),_(!1),ee(pe(xe)),A(),H(),Q(),ie.current=window.setTimeout(se,r)},st=()=>{Q(),O.current=window.setTimeout(()=>{_(!1),ee(0),de()},HN)},{ref:je,active:Qe}=sC(xe=>{if(!C)if(xe.first&&A(),xe.last){if(xe.tap||xe.canceled){ee(0),de();return}const Te=xe.movement[0],yt=Te===0?xe.direction[0]===-1?-1:1:Te>0?1:-1;_e(Te,xe.velocity[0])?He(yt):(ee(0),de())}else ee(xe.movement[0])},{axis:"x",threshold:5,filterTaps:!0,enabled:s&&!J&&!C}),$e=en(p,M,je),Ce=Li(b,D),ct=Li(P,D),me={...Ce,...ct},he=typeof me.opacity=="number"?me.opacity:1,Ee=C?0:1-Math.min(Math.abs(y)/200,1)*.6,Ae=me.transitionDuration??`${r}ms, ${r}ms, ${r}ms`,Ye={...me,"--notifications-state-transform":typeof me.transform=="string"?me.transform:"translateX(0)","--notifications-state-opacity":String(he),"--notifications-swipe-offset":`${y}px`,"--notifications-swipe-opacity":String(Ee),transform:"var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)",opacity:"calc(var(--notifications-state-opacity) * var(--notifications-swipe-opacity))",transitionDuration:Qe||E?"0ms, 0ms, 0ms":Ae,cursor:"default",touchAction:"pan-y"},Oe=()=>{B.current=!0,A(),m==null||m()},be=()=>{B.current=!1,E||(Me(),de()),h==null||h()},Ue=x.useEffectEvent(xe=>{if(C||Qe)return;const Te=xe.currentTarget===document;if(!Te&&!B.current)return;const{deltaX:yt,deltaY:Ve}=xe;if(Math.abs(yt)<=Math.abs(Ve)||yt===0||!c||J)return;Te||(xe.preventDefault(),xe.stopPropagation()),A(),_(!0);const Cn=G.current-yt,En=Cn>0?1:-1;if(_e(Cn,0)){He(En);return}ee(Cn),st()});return x.useEffect(()=>{if(E)return document.addEventListener("wheel",Ue,{passive:!1}),()=>document.removeEventListener("wheel",Ue,{passive:!1})},[E]),x.useEffect(()=>{const xe=()=>{C&&ee(pe(j))};return window.addEventListener("resize",xe),()=>window.removeEventListener("resize",xe)},[j,C]),x.useEffect(()=>{const xe=M.current;if(xe)return xe.addEventListener("wheel",Ue,{passive:!1}),()=>xe.removeEventListener("wheel",Ue,{passive:!1})},[]),x.useEffect(()=>()=>{H(),Q()},[]),x.useEffect(()=>{var xe;(xe=n.onOpen)==null||xe.call(n,n)},[]),x.useEffect(()=>(de(),A),[oe,Qe,C]),x.useEffect(()=>(f?A():de(),A),[f]),v.jsx(Su,{ref:$e,...g,style:Ye,...W,withCloseButton:J?!1:ae,onClose:se,onMouseEnter:Oe,onMouseLeave:be,children:U})}nx.displayName="@mantine/notifications/NotificationContainer";var ax={root:"m_b37d9ac7",notification:"m_5ed0edd0"};function Bm(){return Bm=Object.assign?Object.assign.bind():function(n){for(var l=1;l({root:{"--notifications-z-index":l==null?void 0:l.toString(),"--notifications-container-width":F(o)}}),ja=ge(n=>{const l=ce("Notifications",ZN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,attributes:h,position:p,autoClose:b,transitionDuration:g,allowDragDismiss:y,allowScrollDismiss:w,containerWidth:C,notificationMaxHeight:R,limit:j,zIndex:N,store:E,portalProps:_,withinPortal:D,pauseResetOnHover:L,...U}=l,V=Wn(),k=NN(E),P=eC(),ae=Uc(),te=x.useRef({}),W=x.useRef(0),[oe,K]=x.useState(0),ie=x.useCallback(()=>K(A=>A+1),[]),O=x.useCallback(()=>K(A=>Math.max(0,A-1)),[]),M=V.respectReducedMotion&&ae?1:g,B=De({name:"Notifications",classes:ax,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:h,vars:m,varsResolver:ox});x.useEffect(()=>{E==null||E.updateState(A=>({...A,limit:j||5,defaultPosition:p}))},[j,p]),Eo(()=>{k.notifications.length>W.current&&setTimeout(()=>P(),0),W.current=k.notifications.length},[k.notifications]);const G=DN(k.notifications,p),J=tx.reduce((A,H)=>(A[H]=G[H].map(({style:Q,...ee})=>v.jsx(GN,{timeout:M,onEnter:()=>te.current[ee.id].offsetHeight,nodeRef:{current:te.current[ee.id]},children:se=>v.jsx(nx,{ref:de=>{de&&(te.current[ee.id]=de)},data:ee,onHide:de=>ex(de,E),autoClose:b,transitionDuration:M,allowDragDismiss:y,allowScrollDismiss:w,paused:L==="all"?oe>0:!1,onHoverStart:ie,onHoverEnd:O,...B("notification",{style:{...BN({state:se,position:H,transitionDuration:M,maxHeight:R}),...Q}})})},ee.id)),A),{});return v.jsxs($l,{withinPortal:D,..._,children:[v.jsx(fe,{...B("root"),"data-position":"top-center",...U,children:v.jsx(Ml,{children:J["top-center"]})}),v.jsx(fe,{...B("root"),"data-position":"top-left",...U,children:v.jsx(Ml,{children:J["top-left"]})}),v.jsx(fe,{...B("root",{className:gr.classNames.fullWidth}),"data-position":"top-right",...U,children:v.jsx(Ml,{children:J["top-right"]})}),v.jsx(fe,{...B("root",{className:gr.classNames.fullWidth}),"data-position":"bottom-right",...U,children:v.jsx(Ml,{children:J["bottom-right"]})}),v.jsx(fe,{...B("root"),"data-position":"bottom-left",...U,children:v.jsx(Ml,{children:J["bottom-left"]})}),v.jsx(fe,{...B("root"),"data-position":"bottom-center",...U,children:v.jsx(Ml,{children:J["bottom-center"]})})]})});ja.classes=ax;ja.varsResolver=ox;ja.displayName="@mantine/notifications/Notifications";ja.show=wn.show;ja.hide=wn.hide;ja.update=wn.update;ja.clean=wn.clean;ja.cleanQueue=wn.cleanQueue;ja.updateState=wn.updateState;const QN=["#f1edff","#dcd3ff","#b5a3f5","#8d70ed","#6c47e6","#5a2fe2","#5023e0","#4119c7","#3915b3","#2f0f9e"],KN={primaryColor:"brand",colors:{brand:QN},fontFamily:"Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",defaultRadius:"md",headings:{fontWeight:"650"}};class Qh extends Error{constructor(o,r){super(o);Vy(this,"status");this.status=r}}async function zn(n,l){const o=await fetch(n,{headers:{"Content-Type":"application/json"},...l}),r=await o.text();let s=null;if(r)try{s=JSON.parse(r)}catch{s=r}if(!o.ok){const c=s&&typeof s=="object"&&"error"in s?String(s.error):`HTTP ${o.status}`;throw new Qh(c,o.status)}return s}const Ln={me:()=>zn("/api/me"),cluster:()=>zn("/api/cluster"),listRooms:()=>zn("/api/rooms"),createRoom:n=>zn("/api/rooms",{method:"POST",body:JSON.stringify(n)}),listMembers:n=>zn(`/api/rooms/${encodeURIComponent(n)}/members`),invite:(n,l)=>zn(`/api/rooms/${encodeURIComponent(n)}/invite`,{method:"POST",body:JSON.stringify(l)}),kick:(n,l)=>zn(`/api/rooms/${encodeURIComponent(n)}/kick`,{method:"POST",body:JSON.stringify({endpoint:l})}),listUsers:()=>zn("/api/users"),addUser:n=>zn("/api/users",{method:"POST",body:JSON.stringify(n)}),revokeUser:n=>zn("/api/users/revoke",{method:"POST",body:JSON.stringify({sign_pub:n})}),deleteUser:n=>zn(`/api/users/${encodeURIComponent(n)}`,{method:"DELETE"}),listInvites:()=>zn("/api/invites"),createInvite:n=>zn("/api/invites",{method:"POST",body:JSON.stringify(n)})};/** + * @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 IN={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 tn=(n,l,o,r)=>{const s=x.forwardRef(({color:c="currentColor",size:f=24,stroke:m=2,title:h,className:p,children:b,...g},y)=>x.createElement("svg",{ref:y,...IN[n],width:f,height:f,className:["tabler-icon",`tabler-icon-${l}`,p].join(" "),strokeWidth:m,stroke:c,...g},[h&&x.createElement("title",{key:"svg-title"},h),...r.map(([w,C])=>x.createElement(w,C)),...Array.isArray(b)?b:[b]]));return s.displayName=`${o}`,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 FN=[["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"}]],ix=tn("outline","alert-triangle","AlertTriangle",FN);/** + * @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 JN=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],$m=tn("outline","check","Check",JN);/** + * @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 PN=[["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"}]],sx=tn("outline","copy","Copy",PN);/** + * @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 WN=[["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 -2l0 -6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-5a4 4 0 0 1 8 0",key:"svg-2"}]],ej=tn("outline","lock-open","LockOpen",WN);/** + * @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 tj=[["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"}]],nj=tn("outline","lock","Lock",tj);/** + * @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 aj=[["path",{d:"M21 14l-3 -3h-7a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1h9a1 1 0 0 1 1 1v10",key:"svg-0"}],["path",{d:"M14 15v2a1 1 0 0 1 -1 1h-7l-3 3v-10a1 1 0 0 1 1 -1h2",key:"svg-1"}]],lj=tn("outline","messages","Messages",aj);/** + * @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 rj=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],cx=tn("outline","plus","Plus",rj);/** + * @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 oj=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],Kh=tn("outline","refresh","Refresh",oj);/** + * @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 ij=[["path",{d:"M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-2",key:"svg-0"}],["path",{d:"M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2",key:"svg-1"}],["path",{d:"M7 8l0 .01",key:"svg-2"}],["path",{d:"M7 16l0 .01",key:"svg-3"}],["path",{d:"M11 8h6",key:"svg-4"}],["path",{d:"M11 16h6",key:"svg-5"}]],ux=tn("outline","server-2","Server2",ij);/** + * @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 sj=[["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"}]],cj=tn("outline","shield-lock","ShieldLock",sj);/** + * @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 uj=[["path",{d:"M15 5l0 2",key:"svg-0"}],["path",{d:"M15 11l0 2",key:"svg-1"}],["path",{d:"M15 17l0 2",key:"svg-2"}],["path",{d:"M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2",key:"svg-3"}]],Um=tn("outline","ticket","Ticket",uj);/** + * @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 fj=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],fx=tn("outline","trash","Trash",fj);/** + * @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 dj=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4c.348 0 .686 .045 1.009 .128",key:"svg-1"}],["path",{d:"M16 19h6",key:"svg-2"}]],mj=tn("outline","user-minus","UserMinus",dj);/** + * @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 hj=[["path",{d:"M8.18 8.189a4.01 4.01 0 0 0 2.616 2.627m3.507 -.545a4 4 0 1 0 -5.59 -5.552",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4c.412 0 .81 .062 1.183 .178m2.633 2.618c.12 .38 .184 .785 .184 1.204v2",key:"svg-1"}],["path",{d:"M3 3l18 18",key:"svg-2"}]],pj=tn("outline","user-off","UserOff",hj);/** + * @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 vj=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M16 19h6",key:"svg-1"}],["path",{d:"M19 16v6",key:"svg-2"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4",key:"svg-3"}]],gj=tn("outline","user-plus","UserPlus",vj);/** + * @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 yj=[["path",{d:"M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]],dx=tn("outline","users","Users",yj);function yr(n,l=10,o=6){return n?n.length<=l+o+1?n:`${n.slice(0,l)}…${n.slice(-o)}`:""}function Vm(n){if(!n)return"—";const l=new Date(n);return Number.isNaN(l.getTime())?n:l.toLocaleString()}function bj({p:n,up:l}){if(!l)return v.jsx(ke,{c:"dimmed",size:"sm",children:"—"});const o=(r,s)=>v.jsx(Tt,{size:"sm",variant:r?"filled":"outline",color:r?"teal":"gray",children:s},s);return v.jsxs(gt,{gap:6,wrap:"wrap",children:[o(n.enforce,"enforce"),o(n.acl,"acl"),o(n.tls,"tls"),o(n.cluster,"cluster"),v.jsxs(Tt,{size:"sm",variant:"light",color:"brand",style:{textTransform:"none"},children:["store: ",n.store||"?"]})]})}function Sj(){const[n,l]=x.useState(null),[o,r]=x.useState(null),[s,c]=x.useState(!1),f=x.useCallback(()=>{c(!0),Ln.cluster().then(h=>{l(h),r(null)}).catch(h=>r(h.message)).finally(()=>c(!1))},[]);x.useEffect(()=>{f();const h=setInterval(f,1e4);return()=>clearInterval(h)},[f]);const m=(n==null?void 0:n.filter(h=>h.up).length)??0;return v.jsxs(rn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(gt,{gap:"sm",children:[v.jsx(wr,{order:3,children:"Cluster"}),n&&v.jsxs(Tt,{color:m===n.length?"teal":m===0?"red":"yellow",variant:"light",children:[m,"/",n.length," up"]})]}),v.jsx(It,{label:"Refrescar",children:v.jsx(Jn,{variant:"light",color:"brand",onClick:f,loading:s,children:v.jsx(Kh,{size:18})})})]}),o&&v.jsx(ke,{c:"red",children:o}),!n&&!o&&v.jsx(Hn,{color:"brand"}),n&&v.jsx(Ul,{withBorder:!0,bg:"dark.7",p:0,radius:"md",children:v.jsxs(ue,{verticalSpacing:"sm",horizontalSpacing:"md",highlightOnHover:!0,children:[v.jsx(ue.Thead,{children:v.jsxs(ue.Tr,{children:[v.jsx(ue.Th,{children:"Nodo"}),v.jsx(ue.Th,{children:"Estado"}),v.jsx(ue.Th,{children:"Latencia"}),v.jsx(ue.Th,{children:"Posture"}),v.jsx(ue.Th,{children:"URL"})]})}),v.jsx(ue.Tbody,{children:n.map(h=>v.jsxs(ue.Tr,{children:[v.jsx(ue.Td,{children:v.jsxs(gt,{gap:8,wrap:"nowrap",children:[v.jsx(du,{color:h.up?"teal":"red",size:9,processing:h.up,children:v.jsx(ux,{size:18})}),v.jsx(ke,{fw:600,children:h.name})]})}),v.jsx(ue.Td,{children:h.up?v.jsx(Tt,{color:"teal",variant:"light",children:"up"}):v.jsx(It,{label:h.error||"sin respuesta",multiline:!0,w:260,children:v.jsx(Tt,{color:"red",variant:"light",children:"down"})})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"sm",c:"dimmed",children:h.up?`${h.latency_ms} ms`:"—"})}),v.jsx(ue.Td,{children:v.jsx(bj,{p:h.posture,up:h.up})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:h.url})})]},h.name))})]})}),v.jsxs(ke,{size:"xs",c:"dimmed",children:["Posture leída de ",v.jsx("code",{children:"GET /healthz"})," de cada nodo (enforce + ACL + TLS + cluster + backend de store). El meta-leader y el tamaño de quórum requieren el endpoint de monitoreo de NATS (gap conocido)."]})]})}function Ih(n){wn.show({color:"red",title:"Error",message:n instanceof Qh?n.message:String(n)})}function xj(){const[n,l]=x.useState(null),[o,r]=x.useState(null),[s,c]=x.useState(!1),[f,m]=jc(!1),[h,p]=x.useState(null),b=x.useCallback(()=>{c(!0),Ln.listRooms().then(g=>{l(g),r(null)}).catch(g=>r(g.message)).finally(()=>c(!1))},[]);return x.useEffect(()=>{b()},[b]),v.jsxs(rn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(gt,{gap:"sm",children:[v.jsx(wr,{order:3,children:"Rooms"}),n&&v.jsx(Tt,{color:"brand",variant:"light",children:n.length})]}),v.jsxs(gt,{gap:"xs",children:[v.jsx(It,{label:"Refrescar",children:v.jsx(Jn,{variant:"light",color:"brand",onClick:b,loading:s,children:v.jsx(Kh,{size:18})})}),v.jsx(Rt,{leftSection:v.jsx(cx,{size:16}),onClick:m.open,children:"Crear room"})]})]}),o&&v.jsx(ke,{c:"red",children:o}),!n&&!o&&v.jsx(Hn,{color:"brand"}),n&&n.length===0&&v.jsx(ke,{c:"dimmed",children:"El admin no posee ni pertenece a ninguna room todavía."}),n&&n.length>0&&v.jsx(Ul,{withBorder:!0,bg:"dark.7",p:0,radius:"md",children:v.jsxs(ue,{verticalSpacing:"sm",horizontalSpacing:"md",highlightOnHover:!0,children:[v.jsx(ue.Thead,{children:v.jsxs(ue.Tr,{children:[v.jsx(ue.Th,{children:"Subject"}),v.jsx(ue.Th,{children:"Modo"}),v.jsx(ue.Th,{children:"Persist"}),v.jsx(ue.Th,{children:"Firmado"}),v.jsx(ue.Th,{children:"Epoch"}),v.jsx(ue.Th,{children:"Rol"}),v.jsx(ue.Th,{})]})}),v.jsx(ue.Tbody,{children:n.map(g=>v.jsxs(ue.Tr,{children:[v.jsxs(ue.Td,{children:[v.jsx(ke,{fw:600,children:g.subject}),v.jsx(ke,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:yr(g.room_id,14,4)})]}),v.jsx(ue.Td,{children:g.encrypt?v.jsx(Tt,{color:"teal",variant:"light",leftSection:v.jsx(nj,{size:12}),children:"E2E"}):v.jsx(Tt,{color:"orange",variant:"light",leftSection:v.jsx(ej,{size:12}),children:"cleartext"})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"sm",c:"dimmed",children:g.persist?"sí":"no"})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"sm",c:"dimmed",children:g.sign_msgs?"sí":"no"})}),v.jsx(ue.Td,{children:v.jsx(Tt,{variant:"default",children:g.epoch})}),v.jsx(ue.Td,{children:v.jsx(Tt,{variant:"dot",color:g.role==="owner"?"brand":"gray",children:g.role})}),v.jsx(ue.Td,{children:v.jsx(It,{label:"Ver miembros / claves",children:v.jsx(Jn,{variant:"subtle",color:"brand",onClick:()=>p(g),children:v.jsx(dx,{size:18})})})})]},g.room_id))})]})}),v.jsx(wj,{opened:f,onClose:m.close,onCreated:b}),v.jsx(Cj,{room:h,onClose:()=>p(null)})]})}function wj({opened:n,onClose:l,onCreated:o}){const[r,s]=x.useState(""),[c,f]=x.useState(!0),[m,h]=x.useState(!0),[p,b]=x.useState(!0),[g,y]=x.useState(!1),w=async()=>{y(!0);try{const C=await Ln.createRoom({subject:r.trim(),encrypt:c,persist:m,sign_msgs:p});wn.show({color:"teal",title:"Room creada",message:`${C.subject} (${yr(C.room_id,12,4)})`}),s(""),l(),o()}catch(C){Ih(C)}finally{y(!1)}};return v.jsx(cn,{opened:n,onClose:l,title:"Crear room",centered:!0,children:v.jsxs(rn,{gap:"md",children:[v.jsx(ua,{label:"Subject",description:"Identificador del canal en NATS (ej. team.general)",placeholder:"team.general",value:r,onChange:C=>s(C.currentTarget.value),"data-autofocus":!0}),v.jsx(pr,{label:"Cifrado de extremo a extremo (E2E)",description:"Recomendado. En despliegue público los nodos rechazan rooms en claro.",checked:c,onChange:C=>f(C.currentTarget.checked)}),v.jsx(pr,{label:"Persistente (JetStream / historial)",checked:m,onChange:C=>h(C.currentTarget.checked)}),v.jsx(pr,{label:"Mensajes firmados",checked:p,onChange:C=>b(C.currentTarget.checked)}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(Rt,{variant:"default",onClick:l,children:"Cancelar"}),v.jsx(Rt,{onClick:w,loading:g,disabled:r.trim().length===0,children:"Crear"})]})]})})}function Cj({room:n,onClose:l}){const[o,r]=x.useState(null),[s,c]=x.useState(null),[f,m]=jc(!1),h=x.useCallback(()=>{n&&(r(null),c(null),Ln.listMembers(n.room_id).then(r).catch(b=>c(b.message)))},[n]);x.useEffect(()=>{h()},[h]);const p=async b=>{if(n&&window.confirm(`¿Expulsar a ${b}? Esto rota la clave de la room (epoch nuevo) y el expulsado deja de poder descifrar.`))try{await Ln.kick(n.room_id,b),wn.show({color:"teal",title:"Rekey",message:"Miembro expulsado y clave rotada"}),h()}catch(g){Ih(g)}};return v.jsx(ma,{opened:n!==null,onClose:l,position:"right",size:"lg",title:n?v.jsx(ke,{fw:700,children:n.subject}):"",children:n&&v.jsxs(rn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(ke,{size:"sm",c:"dimmed",children:["epoch ",n.epoch," · ",n.encrypt?"E2E":"cleartext"]}),v.jsx(Rt,{size:"xs",leftSection:v.jsx(gj,{size:14}),onClick:m.open,disabled:n.role!=="owner",children:"Invitar"})]}),s&&v.jsx(ke,{c:"red",size:"sm",children:s}),!o&&!s&&v.jsx(Hn,{color:"brand",size:"sm"}),o&&v.jsxs(ue,{verticalSpacing:"xs",horizontalSpacing:"sm",children:[v.jsx(ue.Thead,{children:v.jsxs(ue.Tr,{children:[v.jsx(ue.Th,{children:"Endpoint"}),v.jsx(ue.Th,{children:"Rol"}),v.jsx(ue.Th,{children:"sign_pub"}),v.jsx(ue.Th,{})]})}),v.jsx(ue.Tbody,{children:o.map(b=>v.jsxs(ue.Tr,{children:[v.jsx(ue.Td,{children:v.jsx(ke,{size:"sm",style:{fontFamily:"monospace"},children:yr(b.endpoint,14,6)})}),v.jsx(ue.Td,{children:v.jsx(Tt,{size:"sm",variant:"dot",color:b.role==="owner"?"brand":"gray",children:b.role})}),v.jsx(ue.Td,{children:v.jsx(It,{label:b.sign_pub,children:v.jsx(ke,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:yr(b.sign_pub,10,6)})})}),v.jsx(ue.Td,{children:b.role!=="owner"&&n.role==="owner"&&v.jsx(It,{label:"Expulsar + rekey",children:v.jsx(Jn,{variant:"subtle",color:"red",onClick:()=>p(b.endpoint),children:v.jsx(mj,{size:16})})})})]},b.endpoint))})]}),v.jsx(Ej,{room:n,opened:f,onClose:m.close,onInvited:h})]})})}function Ej({room:n,opened:l,onClose:o,onInvited:r}){const[s,c]=x.useState(""),[f,m]=x.useState(""),[h,p]=x.useState(""),[b,g]=x.useState(!1),y=async()=>{g(!0);try{await Ln.invite(n.room_id,{endpoint:s.trim(),sign_pub:f.trim(),kex_pub:h.trim()}),wn.show({color:"teal",title:"Invitado",message:"Clave de room sellada para el nuevo miembro"}),c(""),m(""),p(""),o(),r()}catch(C){Ih(C)}finally{g(!1)}},w=f.trim().length===64&&h.trim().length===64;return v.jsx(cn,{opened:l,onClose:o,title:`Invitar a ${n.subject}`,centered:!0,children:v.jsxs(rn,{gap:"sm",children:[v.jsx(ke,{size:"sm",c:"dimmed",children:"Para una room E2E la clave se sella contra la clave X25519 del invitado, por eso se piden ambas claves públicas (hex de 64 chars)."}),v.jsx(ua,{label:"Endpoint (opcional)",description:"Se deriva de sign_pub si se deja vacío",value:s,onChange:C=>c(C.currentTarget.value)}),v.jsx(ua,{label:"sign_pub (hex, 64)",value:f,onChange:C=>m(C.currentTarget.value),error:f.length>0&&f.trim().length!==64?"64 chars hex":void 0}),v.jsx(ua,{label:"kex_pub (hex, 64)",value:h,onChange:C=>p(C.currentTarget.value),error:h.length>0&&h.trim().length!==64?"64 chars hex":void 0}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(Rt,{variant:"default",onClick:o,children:"Cancelar"}),v.jsx(Rt,{onClick:y,loading:b,disabled:!w,children:"Invitar"})]})]})})}function Nu(n){wn.show({color:"red",title:"Error",message:n instanceof Qh?n.message:String(n)})}function mx(n){return n.join_url?n.join_url:`${window.location.origin}/join?token=${n.token}`}function Tj({usersBackend:n,joinBaseURL:l}){const[o,r]=x.useState(null),[s,c]=x.useState([]),[f,m]=x.useState(null),[h,p]=x.useState(!1),[b,g]=jc(!1),[y,w]=jc(!1),[C,R]=x.useState(null),j=x.useCallback(()=>{p(!0),Promise.all([Ln.listUsers(),Ln.listInvites().catch(()=>[])]).then(([E,_])=>{r(E),c(_),m(null)}).catch(E=>m(E.message)).finally(()=>p(!1))},[]);x.useEffect(()=>{j()},[j]);const N=async E=>{if(window.confirm(`¿Revocar a "${E.handle}"? Pierde acceso al bus en AMBOS planos de inmediato (control y datos). La identidad permanece en la lista como revocada (auditable).`))try{await Ln.revokeUser(E.sign_pub),wn.show({color:"teal",title:"Revocado",message:E.handle}),j()}catch(_){Nu(_)}};return v.jsxs(rn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(gt,{gap:"sm",children:[v.jsx(wr,{order:3,children:"Users"}),o&&v.jsx(Tt,{color:"brand",variant:"light",children:o.length}),v.jsx(It,{label:"Vía de gestión de la allowlist del bus",children:v.jsxs(Tt,{variant:"outline",color:"teal",style:{textTransform:"none"},children:["backend: ",n]})})]}),v.jsxs(gt,{gap:"xs",children:[v.jsx(It,{label:"Refrescar",children:v.jsx(Jn,{variant:"light",color:"brand",onClick:j,loading:h,children:v.jsx(Kh,{size:18})})}),v.jsx(Rt,{variant:"default",leftSection:v.jsx(cx,{size:16}),onClick:g.open,children:"Añadir user (clave conocida)"}),v.jsx(Rt,{leftSection:v.jsx(Um,{size:16}),onClick:w.open,children:"Crear usuario"})]})]}),f&&v.jsx(ke,{c:"red",children:f}),!o&&!f&&v.jsx(Hn,{color:"brand"}),s.length>0&&v.jsx(Ul,{withBorder:!0,bg:"dark.7",radius:"md",children:v.jsxs(rn,{gap:"sm",children:[v.jsxs(gt,{gap:"sm",children:[v.jsx(Um,{size:18}),v.jsx(ke,{fw:600,children:"Invitaciones pendientes"}),v.jsx(Tt,{color:"brand",variant:"light",children:s.length})]}),v.jsxs(ue,{verticalSpacing:"xs",horizontalSpacing:"md",children:[v.jsx(ue.Thead,{children:v.jsxs(ue.Tr,{children:[v.jsx(ue.Th,{children:"Handle"}),v.jsx(ue.Th,{children:"Rol"}),v.jsx(ue.Th,{children:"Token"}),v.jsx(ue.Th,{children:"Caduca"}),v.jsx(ue.Th,{children:"Enlace"})]})}),v.jsx(ue.Tbody,{children:s.map(E=>v.jsxs(ue.Tr,{children:[v.jsx(ue.Td,{children:v.jsx(ke,{fw:600,children:E.handle})}),v.jsx(ue.Td,{children:v.jsx(Tt,{variant:"dot",color:E.role==="admin"?"brand":"gray",children:E.role})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:yr(E.token,10,6)})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"xs",c:"dimmed",children:Vm(E.expires_at)})}),v.jsx(ue.Td,{children:v.jsx(kh,{value:mx(E),children:({copied:_,copy:D})=>v.jsx(Rt,{size:"xs",variant:"light",color:_?"teal":"brand",leftSection:_?v.jsx($m,{size:14}):v.jsx(sx,{size:14}),onClick:D,children:_?"Copiado":"Copiar enlace"})})})]},E.token))})]})]})}),o&&v.jsx(Ul,{withBorder:!0,bg:"dark.7",p:0,radius:"md",children:v.jsxs(ue,{verticalSpacing:"sm",horizontalSpacing:"md",highlightOnHover:!0,children:[v.jsx(ue.Thead,{children:v.jsxs(ue.Tr,{children:[v.jsx(ue.Th,{children:"Handle"}),v.jsx(ue.Th,{children:"Rol"}),v.jsx(ue.Th,{children:"Estado"}),v.jsx(ue.Th,{children:"sign_pub"}),v.jsx(ue.Th,{children:"Creado"}),v.jsx(ue.Th,{})]})}),v.jsx(ue.Tbody,{children:o.map(E=>v.jsxs(ue.Tr,{children:[v.jsx(ue.Td,{children:v.jsx(ke,{fw:600,children:E.handle})}),v.jsx(ue.Td,{children:v.jsx(Tt,{variant:"dot",color:E.role==="admin"?"brand":"gray",children:E.role})}),v.jsx(ue.Td,{children:v.jsx(Tt,{variant:"light",color:E.status==="active"?"teal":"red",children:E.status})}),v.jsx(ue.Td,{children:v.jsx(It,{label:E.sign_pub,children:v.jsx(ke,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:yr(E.sign_pub,12,8)})})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"xs",c:"dimmed",children:Vm(E.created_at)})}),v.jsx(ue.Td,{children:v.jsxs(gt,{gap:4,justify:"flex-end",wrap:"nowrap",children:[E.status==="active"&&v.jsx(It,{label:"Revocar acceso (deja rastro auditable)",children:v.jsx(Jn,{variant:"subtle",color:"orange",onClick:()=>N(E),children:v.jsx(pj,{size:16})})}),v.jsx(It,{label:"Eliminar (borrado permanente)",children:v.jsx(Jn,{variant:"subtle",color:"red",onClick:()=>R(E),children:v.jsx(fx,{size:16})})})]})})]},E.sign_pub))})]})}),v.jsx(Rj,{opened:b,onClose:g.close,onAdded:j}),v.jsx(_j,{opened:y,onClose:w.close,onCreated:j,joinBaseURL:l}),v.jsx(Nj,{user:C,onClose:()=>R(null),onDeleted:j})]})}function Rj({opened:n,onClose:l,onAdded:o}){const[r,s]=x.useState(""),[c,f]=x.useState(""),[m,h]=x.useState("member"),[p,b]=x.useState(!1),g=async()=>{b(!0);try{await Ln.addUser({handle:r.trim(),sign_pub:c.trim(),role:m}),wn.show({color:"teal",title:"User añadido",message:r}),s(""),f(""),h("member"),l(),o()}catch(w){Nu(w)}finally{b(!1)}},y=r.trim().length>0&&c.trim().length===64;return v.jsx(cn,{opened:n,onClose:l,title:"Añadir user (clave ya conocida)",centered:!0,children:v.jsxs(rn,{gap:"sm",children:[v.jsx(ke,{size:"xs",c:"dimmed",children:"Para cuando ya tienes la clave pública del usuario. Para el alta normal sin manejar claves, usa «Crear usuario» (enlace de invitación)."}),v.jsx(ua,{label:"Handle",placeholder:"ana",value:r,onChange:w=>s(w.currentTarget.value),"data-autofocus":!0}),v.jsx(ua,{label:"sign_pub (hex, 64)",description:"Clave pública Ed25519 del usuario (la misma que autentica control + datos)",placeholder:"48bc0dc8…",value:c,onChange:w=>f(w.currentTarget.value),error:c.length>0&&c.trim().length!==64?"64 chars hex":void 0}),v.jsx(Tu,{label:"Rol",data:[{value:"member",label:"member"},{value:"admin",label:"admin"}],value:m,onChange:w=>h(w||"member"),allowDeselect:!1}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(Rt,{variant:"default",onClick:l,children:"Cancelar"}),v.jsx(Rt,{onClick:g,loading:p,disabled:!y,children:"Añadir"})]})]})})}function _j({opened:n,onClose:l,onCreated:o,joinBaseURL:r}){const[s,c]=x.useState(""),[f,m]=x.useState("member"),[h,p]=x.useState(7),[b,g]=x.useState(!1),[y,w]=x.useState(null),C=()=>{c(""),m("member"),p(7),w(null)},R=()=>{C(),l()},j=async()=>{g(!0);try{const _=typeof h=="number"?h*86400:0,D=await Ln.createInvite({handle:s.trim(),role:f,ttl_secs:_});w(D),o()}catch(_){Nu(_)}finally{g(!1)}},N=s.trim().length>0,E=y?mx(y):"";return v.jsx(cn,{opened:n,onClose:R,title:"Crear usuario (enlace de invitación)",centered:!0,children:y?v.jsxs(rn,{gap:"sm",children:[v.jsxs(wo,{color:"teal",icon:v.jsx($m,{size:16}),title:`Invitación para "${y.handle}" (${y.role})`,children:["Comparte este enlace con el usuario. Es de un solo uso y caduca el ",Vm(y.expires_at),"."]}),!r&&v.jsxs(wo,{color:"yellow",icon:v.jsx(ix,{size:16}),title:"Base URL del cliente sin configurar",children:["El enlace usa el origen de este panel como respaldo. Configura el cliente real con",v.jsx(ke,{span:!0,fw:600,children:" --join-base-url "})," o la variable",v.jsx(ke,{span:!0,fw:600,children:" UNIBUS_JOIN_BASE_URL "})," en el gateway."]}),v.jsx(ua,{readOnly:!0,value:E,styles:{input:{fontFamily:"monospace",fontSize:12}}}),v.jsxs(gt,{justify:"space-between",children:[v.jsx(kh,{value:E,children:({copied:_,copy:D})=>v.jsx(Rt,{color:_?"teal":"brand",leftSection:_?v.jsx($m,{size:16}):v.jsx(sx,{size:16}),onClick:D,children:_?"Copiado":"Copiar enlace"})}),v.jsx(Rt,{variant:"default",onClick:R,children:"Cerrar"})]})]}):v.jsxs(rn,{gap:"sm",children:[v.jsx(ke,{size:"xs",c:"dimmed",children:"Genera un enlace de un solo uso. El usuario lo abre en su dispositivo, crea ahí su clave (la privada nunca sale de su equipo) y se registra. Tú no manejas ninguna clave."}),v.jsx(ua,{label:"Handle",placeholder:"ana",value:s,onChange:_=>c(_.currentTarget.value),"data-autofocus":!0}),v.jsx(Tu,{label:"Rol",data:[{value:"member",label:"member"},{value:"admin",label:"admin"}],value:f,onChange:_=>m(_||"member"),allowDeselect:!1}),v.jsx(wu,{label:"Caducidad (días)",min:1,max:90,value:h,onChange:p}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(Rt,{variant:"default",onClick:R,children:"Cancelar"}),v.jsx(Rt,{onClick:j,loading:b,disabled:!N,leftSection:v.jsx(Um,{size:16}),children:"Crear enlace"})]})]})})}function Nj({user:n,onClose:l,onDeleted:o}){const[r,s]=x.useState(""),[c,f]=x.useState(!1);if(x.useEffect(()=>{s("")},[n]),!n)return null;const m=async()=>{f(!0);try{await Ln.deleteUser(n.sign_pub),wn.show({color:"red",title:"Usuario eliminado",message:`${n.handle} purgado del allowlist`}),l(),o()}catch(p){Nu(p)}finally{f(!1)}},h=r.trim()===n.handle;return v.jsx(cn,{opened:!!n,onClose:l,title:"Borrado permanente",centered:!0,children:v.jsxs(rn,{gap:"sm",children:[v.jsx(wo,{color:"red",icon:v.jsx(ix,{size:16}),title:"Esto NO es revocar",children:v.jsxs(ke,{size:"sm",children:["Vas a ",v.jsx(ke,{span:!0,fw:700,children:"BORRAR PERMANENTEMENTE"})," a «",n.handle,"» del allowlist del bus. Se elimina por completo (sin rastro auditable, a diferencia de revocar). El usuario deja de poder autenticarse en ambos planos; sus membresías de rooms quedan inertes. Esta acción es irreversible."]})}),v.jsx(ua,{label:`Escribe «${n.handle}» para confirmar`,placeholder:n.handle,value:r,onChange:p=>s(p.currentTarget.value),"data-autofocus":!0}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(Rt,{variant:"default",onClick:l,children:"Cancelar"}),v.jsx(Rt,{color:"red",leftSection:v.jsx(fx,{size:16}),onClick:m,loading:c,disabled:!h,children:"Eliminar permanentemente"})]})]})})}const jj=[{key:"cluster",label:"Cluster",icon:ux,desc:"Salud y posture de los 3 nodos"},{key:"rooms",label:"Rooms",icon:lj,desc:"Salas, miembros, claves"},{key:"users",label:"Users",icon:dx,desc:"Allowlist del bus"}];function Aj({me:n}){const[l,o]=x.useState("cluster");return v.jsxs(Bn,{header:{height:56},navbar:{width:240,breakpoint:"sm"},padding:"md",styles:{main:{backgroundColor:"var(--mantine-color-dark-8)"}},children:[v.jsx(Bn.Header,{bg:"dark.9",children:v.jsxs(gt,{h:"100%",px:"md",justify:"space-between",wrap:"nowrap",children:[v.jsxs(gt,{gap:"sm",wrap:"nowrap",children:[v.jsx(_u,{size:34,radius:"md",variant:"light",color:"brand",children:v.jsx(cj,{size:20})}),v.jsxs(fe,{children:[v.jsx(wr,{order:4,lh:1,children:"unibus · admin"}),v.jsx(ke,{size:"xs",c:"dimmed",children:"plano de control"})]})]}),v.jsxs(gt,{gap:"xs",wrap:"nowrap",children:[n.mock&&v.jsx(Tt,{color:"yellow",variant:"light",children:"MOCK"}),v.jsx(It,{label:`endpoint ${n.endpoint}`,multiline:!0,children:v.jsx(Tt,{color:"brand",variant:"light",style:{textTransform:"none"},children:yr(n.endpoint,12,6)})})]})]})}),v.jsx(Bn.Navbar,{bg:"dark.9",p:"xs",children:v.jsx(Na,{children:jj.map(r=>v.jsx(bu,{active:l===r.key,label:r.label,description:r.desc,leftSection:v.jsx(r.icon,{size:18}),onClick:()=>o(r.key),variant:"filled",mb:4},r.key))})}),v.jsxs(Bn.Main,{children:[l==="cluster"&&v.jsx(Sj,{}),l==="rooms"&&v.jsx(xj,{}),l==="users"&&v.jsx(Tj,{usersBackend:n.users_backend,joinBaseURL:n.join_base_url})]})]})}function Oj(){const[n,l]=x.useState(null),[o,r]=x.useState(null);return x.useEffect(()=>{Ln.me().then(l).catch(s=>r(s.message))},[]),o?v.jsx(Lc,{h:"100vh",bg:"dark.9",children:v.jsxs(rn,{align:"center",gap:"xs",children:[v.jsx(ke,{c:"red",children:"No se pudo contactar el gateway"}),v.jsx(ke,{c:"dimmed",size:"sm",children:o})]})}):n?v.jsx(Aj,{me:n}):v.jsx(Lc,{h:"100vh",bg:"dark.9",children:v.jsx(Hn,{color:"brand"})})}L2.createRoot(document.getElementById("root")).render(v.jsx(x.StrictMode,{children:v.jsxs(pb,{theme:KN,forceColorScheme:"dark",children:[v.jsx(ja,{position:"top-right"}),v.jsx(Oj,{})]})})); diff --git a/web/dist/index.html b/web/dist/index.html index 46ad446..4d2ac58 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -4,7 +4,7 @@ unibus · admin - + diff --git a/web/src/AdminShell.tsx b/web/src/AdminShell.tsx index ca1ccbc..9618cfa 100644 --- a/web/src/AdminShell.tsx +++ b/web/src/AdminShell.tsx @@ -91,7 +91,7 @@ export function AdminShell({ me }: { me: MeInfo }) { {tab === "cluster" && } {tab === "rooms" && } - {tab === "users" && } + {tab === "users" && } ); diff --git a/web/src/api.ts b/web/src/api.ts index 71d2299..a79a39b 100644 --- a/web/src/api.ts +++ b/web/src/api.ts @@ -4,8 +4,10 @@ // and real, and never signs or speaks NATS itself. import type { AddUserReq, + CreateInviteReq, CreateRoomReq, InviteReq, + InviteView, MeInfo, MemberView, NodeHealth, @@ -76,4 +78,15 @@ export const api = { method: "POST", body: JSON.stringify({ sign_pub: signPub }), }), + deleteUser: (signPub: string) => + req<{ status: string }>(`/api/users/${encodeURIComponent(signPub)}`, { + method: "DELETE", + }), + + listInvites: () => req("/api/invites"), + createInvite: (r: CreateInviteReq) => + req("/api/invites", { + method: "POST", + body: JSON.stringify(r), + }), }; diff --git a/web/src/pages/UsersPage.tsx b/web/src/pages/UsersPage.tsx index d2295a9..9740f16 100644 --- a/web/src/pages/UsersPage.tsx +++ b/web/src/pages/UsersPage.tsx @@ -1,12 +1,15 @@ import { useCallback, useEffect, useState } from "react"; import { ActionIcon, + Alert, Badge, Button, Card, + CopyButton, Group, Loader, Modal, + NumberInput, Select, Stack, Table, @@ -17,26 +20,49 @@ import { } from "@mantine/core"; import { useDisclosure } from "@mantine/hooks"; import { notifications } from "@mantine/notifications"; -import { IconPlus, IconRefresh, IconUserOff } from "@tabler/icons-react"; +import { + IconAlertTriangle, + IconCheck, + IconCopy, + IconPlus, + IconRefresh, + IconTicket, + IconTrash, + IconUserOff, +} from "@tabler/icons-react"; import { api, ApiError } from "../api"; -import type { UserView } from "../types"; +import type { InviteView, UserView } from "../types"; import { fmtTime, trunc } from "../util"; function notifyErr(e: unknown) { notifications.show({ color: "red", title: "Error", message: e instanceof ApiError ? e.message : String(e) }); } -export function UsersPage({ usersBackend }: { usersBackend: string }) { +// resolveJoinURL prefers the gateway-built link; when the gateway has no client +// base URL configured it falls back to the panel's own origin so the link is at +// least clickable, and the caller surfaces a warning to configure it properly. +function resolveJoinURL(inv: { join_url: string; token: string }): string { + if (inv.join_url) return inv.join_url; + return `${window.location.origin}/join?token=${inv.token}`; +} + +export function UsersPage({ usersBackend, joinBaseURL }: { usersBackend: string; joinBaseURL: string }) { const [users, setUsers] = useState(null); + const [invites, setInvites] = useState([]); const [err, setErr] = useState(null); const [loading, setLoading] = useState(false); const [addOpen, addCtl] = useDisclosure(false); + const [createOpen, createCtl] = useDisclosure(false); + const [toDelete, setToDelete] = useState(null); const load = useCallback(() => { setLoading(true); - api - .listUsers() - .then((u) => { setUsers(u); setErr(null); }) + Promise.all([api.listUsers(), api.listInvites().catch(() => [] as InviteView[])]) + .then(([u, inv]) => { + setUsers(u); + setInvites(inv); + setErr(null); + }) .catch((e: ApiError) => setErr(e.message)) .finally(() => setLoading(false)); }, []); @@ -44,7 +70,7 @@ export function UsersPage({ usersBackend }: { usersBackend: string }) { useEffect(() => { load(); }, [load]); const revoke = async (u: UserView) => { - if (!window.confirm(`¿Revocar a "${u.handle}"? Pierde acceso al bus en AMBOS planos de inmediato (control y datos).`)) return; + if (!window.confirm(`¿Revocar a "${u.handle}"? Pierde acceso al bus en AMBOS planos de inmediato (control y datos). La identidad permanece en la lista como revocada (auditable).`)) return; try { await api.revokeUser(u.sign_pub); notifications.show({ color: "teal", title: "Revocado", message: u.handle }); @@ -72,8 +98,11 @@ export function UsersPage({ usersBackend }: { usersBackend: string }) { - + @@ -81,6 +110,48 @@ export function UsersPage({ usersBackend }: { usersBackend: string }) { {err && {err}} {!users && !err && } + {invites.length > 0 && ( + + + + + Invitaciones pendientes + {invites.length} + + + + + Handle + Rol + Token + Caduca + Enlace + + + + {invites.map((inv) => ( + + {inv.handle} + {inv.role} + {trunc(inv.token, 10, 6)} + {fmtTime(inv.expires_at)} + + + {({ copied, copy }) => ( + + )} + + + + ))} + +
+
+
+ )} + {users && ( @@ -109,13 +180,20 @@ export function UsersPage({ usersBackend }: { usersBackend: string }) { {fmtTime(u.created_at)} - {u.status === "active" && ( - - revoke(u)}> - + + {u.status === "active" && ( + + revoke(u)}> + + + + )} + + setToDelete(u)}> + - )} + ))} @@ -125,10 +203,14 @@ export function UsersPage({ usersBackend }: { usersBackend: string }) { )} + + setToDelete(null)} onDeleted={load} /> ); } +// AddUserModal registers a user from a sign_pub the admin already holds (the +// pre-invite flow, kept for advanced use). The wallet-model path is CreateInvite. function AddUserModal({ opened, onClose, onAdded }: { opened: boolean; onClose: () => void; onAdded: () => void }) { const [handle, setHandle] = useState(""); const [signPub, setSignPub] = useState(""); @@ -153,8 +235,12 @@ function AddUserModal({ opened, onClose, onAdded }: { opened: boolean; onClose: const ready = handle.trim().length > 0 && signPub.trim().length === 64; return ( - + + + Para cuando ya tienes la clave pública del usuario. Para el alta normal sin manejar + claves, usa «Crear usuario» (enlace de invitación). + setHandle(e.currentTarget.value)} data-autofocus /> ); } + +// CreateInviteModal is the wallet-model account creation: the admin fixes a handle +// and role and gets back a single-use join link. The admin never sees a private +// key — the user generates its own keypair when it opens the link. +function CreateInviteModal({ + opened, + onClose, + onCreated, + joinBaseURL, +}: { + opened: boolean; + onClose: () => void; + onCreated: () => void; + joinBaseURL: string; +}) { + const [handle, setHandle] = useState(""); + const [role, setRole] = useState("member"); + const [days, setDays] = useState(7); + const [busy, setBusy] = useState(false); + const [created, setCreated] = useState(null); + + const reset = () => { setHandle(""); setRole("member"); setDays(7); setCreated(null); }; + const close = () => { reset(); onClose(); }; + + const submit = async () => { + setBusy(true); + try { + const ttl = typeof days === "number" ? days * 86400 : 0; + const inv = await api.createInvite({ handle: handle.trim(), role, ttl_secs: ttl }); + setCreated(inv); + onCreated(); + } catch (e) { + notifyErr(e); + } finally { + setBusy(false); + } + }; + + const ready = handle.trim().length > 0; + const joinURL = created ? resolveJoinURL(created) : ""; + + return ( + + {!created ? ( + + + Genera un enlace de un solo uso. El usuario lo abre en su dispositivo, crea ahí su + clave (la privada nunca sale de su equipo) y se registra. Tú no manejas ninguna clave. + + setHandle(e.currentTarget.value)} data-autofocus /> +