@type_of/interlock 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,45 @@
1
+ function rc(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var jp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ts(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var er={exports:{}},At={};var To;function oc(){if(To)return At;To=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return At.Fragment=t,At.jsx=n,At.jsxs=n,At}var _o;function sc(){return _o||(_o=1,er.exports=oc()),er.exports}var y=sc(),tr={exports:{}},Q={};var Po;function ic(){if(Po)return Q;Po=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),u=Symbol.iterator;function m(b){return b===null||typeof b!="object"?null:(b=u&&b[u]||b["@@iterator"],typeof b=="function"?b:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,v={};function w(b,_,I){this.props=b,this.context=_,this.refs=v,this.updater=I||g}w.prototype.isReactComponent={},w.prototype.setState=function(b,_){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,_,"setState")},w.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function S(){}S.prototype=w.prototype;function C(b,_,I){this.props=b,this.context=_,this.refs=v,this.updater=I||g}var x=C.prototype=new S;x.constructor=C,h(x,w.prototype),x.isPureReactComponent=!0;var E=Array.isArray;function T(){}var R={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function O(b,_,I){var B=I.ref;return{$$typeof:e,type:b,key:_,ref:B!==void 0?B:null,props:I}}function $(b,_){return O(b.type,_,b.props)}function A(b){return typeof b=="object"&&b!==null&&b.$$typeof===e}function D(b){var _={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(I){return _[I]})}var L=/\/+/g;function k(b,_){return typeof b=="object"&&b!==null&&b.key!=null?D(""+b.key):_.toString(36)}function U(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(T,T):(b.status="pending",b.then(function(_){b.status==="pending"&&(b.status="fulfilled",b.value=_)},function(_){b.status==="pending"&&(b.status="rejected",b.reason=_)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function F(b,_,I,B,Y){var V=typeof b;(V==="undefined"||V==="boolean")&&(b=null);var X=!1;if(b===null)X=!0;else switch(V){case"bigint":case"string":case"number":X=!0;break;case"object":switch(b.$$typeof){case e:case t:X=!0;break;case f:return X=b._init,F(X(b._payload),_,I,B,Y)}}if(X)return Y=Y(b),X=B===""?"."+k(b,0):B,E(Y)?(I="",X!=null&&(I=X.replace(L,"$&/")+"/"),F(Y,_,I,"",function(te){return te})):Y!=null&&(A(Y)&&(Y=$(Y,I+(Y.key==null||b&&b.key===Y.key?"":(""+Y.key).replace(L,"$&/")+"/")+X)),_.push(Y)),1;X=0;var q=B===""?".":B+":";if(E(b))for(var Z=0;Z<b.length;Z++)B=b[Z],V=q+k(B,Z),X+=F(B,_,I,V,Y);else if(Z=m(b),typeof Z=="function")for(b=Z.call(b),Z=0;!(B=b.next()).done;)B=B.value,V=q+k(B,Z++),X+=F(B,_,I,V,Y);else if(V==="object"){if(typeof b.then=="function")return F(U(b),_,I,B,Y);throw _=String(b),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return X}function N(b,_,I){if(b==null)return b;var B=[],Y=0;return F(b,B,"","",function(V){return _.call(I,V,Y++)}),B}function j(b){if(b._status===-1){var _=b._result;_=_(),_.then(function(I){(b._status===0||b._status===-1)&&(b._status=1,b._result=I)},function(I){(b._status===0||b._status===-1)&&(b._status=2,b._result=I)}),b._status===-1&&(b._status=0,b._result=_)}if(b._status===1)return b._result.default;throw b._result}var z=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},W={map:N,forEach:function(b,_,I){N(b,function(){_.apply(this,arguments)},I)},count:function(b){var _=0;return N(b,function(){_++}),_},toArray:function(b){return N(b,function(_){return _})||[]},only:function(b){if(!A(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return Q.Activity=d,Q.Children=W,Q.Component=w,Q.Fragment=n,Q.Profiler=o,Q.PureComponent=C,Q.StrictMode=r,Q.Suspense=c,Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Q.__COMPILER_RUNTIME={__proto__:null,c:function(b){return R.H.useMemoCache(b)}},Q.cache=function(b){return function(){return b.apply(null,arguments)}},Q.cacheSignal=function(){return null},Q.cloneElement=function(b,_,I){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var B=h({},b.props),Y=b.key;if(_!=null)for(V in _.key!==void 0&&(Y=""+_.key),_)!P.call(_,V)||V==="key"||V==="__self"||V==="__source"||V==="ref"&&_.ref===void 0||(B[V]=_[V]);var V=arguments.length-2;if(V===1)B.children=I;else if(1<V){for(var X=Array(V),q=0;q<V;q++)X[q]=arguments[q+2];B.children=X}return O(b.type,Y,B)},Q.createContext=function(b){return b={$$typeof:i,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:s,_context:b},b},Q.createElement=function(b,_,I){var B,Y={},V=null;if(_!=null)for(B in _.key!==void 0&&(V=""+_.key),_)P.call(_,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(Y[B]=_[B]);var X=arguments.length-2;if(X===1)Y.children=I;else if(1<X){for(var q=Array(X),Z=0;Z<X;Z++)q[Z]=arguments[Z+2];Y.children=q}if(b&&b.defaultProps)for(B in X=b.defaultProps,X)Y[B]===void 0&&(Y[B]=X[B]);return O(b,V,Y)},Q.createRef=function(){return{current:null}},Q.forwardRef=function(b){return{$$typeof:a,render:b}},Q.isValidElement=A,Q.lazy=function(b){return{$$typeof:f,_payload:{_status:-1,_result:b},_init:j}},Q.memo=function(b,_){return{$$typeof:l,type:b,compare:_===void 0?null:_}},Q.startTransition=function(b){var _=R.T,I={};R.T=I;try{var B=b(),Y=R.S;Y!==null&&Y(I,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(T,z)}catch(V){z(V)}finally{_!==null&&I.types!==null&&(_.types=I.types),R.T=_}},Q.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Q.use=function(b){return R.H.use(b)},Q.useActionState=function(b,_,I){return R.H.useActionState(b,_,I)},Q.useCallback=function(b,_){return R.H.useCallback(b,_)},Q.useContext=function(b){return R.H.useContext(b)},Q.useDebugValue=function(){},Q.useDeferredValue=function(b,_){return R.H.useDeferredValue(b,_)},Q.useEffect=function(b,_){return R.H.useEffect(b,_)},Q.useEffectEvent=function(b){return R.H.useEffectEvent(b)},Q.useId=function(){return R.H.useId()},Q.useImperativeHandle=function(b,_,I){return R.H.useImperativeHandle(b,_,I)},Q.useInsertionEffect=function(b,_){return R.H.useInsertionEffect(b,_)},Q.useLayoutEffect=function(b,_){return R.H.useLayoutEffect(b,_)},Q.useMemo=function(b,_){return R.H.useMemo(b,_)},Q.useOptimistic=function(b,_){return R.H.useOptimistic(b,_)},Q.useReducer=function(b,_,I){return R.H.useReducer(b,_,I)},Q.useRef=function(b){return R.H.useRef(b)},Q.useState=function(b){return R.H.useState(b)},Q.useSyncExternalStore=function(b,_,I){return R.H.useSyncExternalStore(b,_,I)},Q.useTransition=function(){return R.H.useTransition()},Q.version="19.2.8",Q}var Mo;function _s(){return Mo||(Mo=1,tr.exports=ic()),tr.exports}var p=_s();const Sr=Ts(p),Ps=rc({__proto__:null,default:Sr},[p]);var nr={exports:{}},fe={};var ko;function ac(){if(ko)return fe;ko=1;var e=_s();function t(c){var l="https://react.dev/errors/"+c;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+c+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(c,l,f){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:d==null?null:""+d,children:c,containerInfo:l,implementation:f}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(c,l){if(c==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fe.createPortal=function(c,l){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(t(299));return s(c,l,null,f)},fe.flushSync=function(c){var l=i.T,f=r.p;try{if(i.T=null,r.p=2,c)return c()}finally{i.T=l,r.p=f,r.d.f()}},fe.preconnect=function(c,l){typeof c=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,r.d.C(c,l))},fe.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},fe.preinit=function(c,l){if(typeof c=="string"&&l&&typeof l.as=="string"){var f=l.as,d=a(f,l.crossOrigin),u=typeof l.integrity=="string"?l.integrity:void 0,m=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;f==="style"?r.d.S(c,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:d,integrity:u,fetchPriority:m}):f==="script"&&r.d.X(c,{crossOrigin:d,integrity:u,fetchPriority:m,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},fe.preinitModule=function(c,l){if(typeof c=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var f=a(l.as,l.crossOrigin);r.d.M(c,{crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&r.d.M(c)},fe.preload=function(c,l){if(typeof c=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var f=l.as,d=a(f,l.crossOrigin);r.d.L(c,f,{crossOrigin:d,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},fe.preloadModule=function(c,l){if(typeof c=="string")if(l){var f=a(l.as,l.crossOrigin);r.d.m(c,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else r.d.m(c)},fe.requestFormReset=function(c){r.d.r(c)},fe.unstable_batchedUpdates=function(c,l){return c(l)},fe.useFormState=function(c,l,f){return i.H.useFormState(c,l,f)},fe.useFormStatus=function(){return i.H.useHostTransitionStatus()},fe.version="19.2.8",fe}var $o;function cc(){if($o)return nr.exports;$o=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),nr.exports=ac(),nr.exports}function Ie(e){return Object.keys(e)}function rr(e){return e&&typeof e=="object"&&!Array.isArray(e)}function jr(e,t){const n={...e},r=t;return rr(e)&&rr(t)&&Object.keys(t).forEach(o=>{rr(r[o])&&o in e?n[o]=jr(n[o],r[o]):n[o]=r[o]}),n}function lc(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function uc(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function dc(e){const t=uc(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function Ao(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function Ms(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r==="0")return`0${e}`;if(typeof r=="number"){const o=`${r/16}${e}`;return t?Ao(o):o}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(s=>n(s)).join(",");if(r.includes(" "))return r.split(" ").map(s=>n(s)).join(" ");const o=r.replace("px","");if(!Number.isNaN(Number(o))){const s=`${Number(o)/16}${e}`;return t?Ao(s):s}}return r}return n}const M=Ms("rem",{shouldScale:!0}),No=Ms("em");function Or(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function ks(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(n=>t.test(n))}return!1}function $s(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==p.Fragment:!1}function lt(e){const t=p.createContext(null);return[t,()=>{const r=p.use(t);if(r===null)throw new Error(e);return r}]}function Io(e,t){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(t);return`${e}-${n}`}}function pn(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function jo(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].disabled)return r;if(n){for(let r=t.length-1;r>-1;r-=1)if(!t[r].disabled)return r}return e}function Oo(e,t,n){for(let r=e+1;r<t.length;r+=1)if(!t[r].disabled)return r;if(n){for(let r=0;r<t.length;r+=1)if(!t[r].disabled)return r}return e}function fc(e,t,n){return pn(e,n)===pn(t,n)}function wn({parentSelector:e,siblingSelector:t,onKeyDown:n,loop:r=!0,activateOnFocus:o=!1,dir:s="rtl",orientation:i}){return a=>{n?.(a);const c=Array.from(pn(a.currentTarget,e)?.querySelectorAll(t)||[]).filter(g=>fc(a.currentTarget,g,e)),l=c.findIndex(g=>a.currentTarget===g),f=Oo(l,c,r),d=jo(l,c,r),u=s==="rtl"?d:f,m=s==="rtl"?f:d;switch(a.key){case"ArrowRight":i==="horizontal"&&(a.stopPropagation(),a.preventDefault(),c[u].focus(),o&&c[u].click());break;case"ArrowLeft":i==="horizontal"&&(a.stopPropagation(),a.preventDefault(),c[m].focus(),o&&c[m].click());break;case"ArrowUp":i==="vertical"&&(a.stopPropagation(),a.preventDefault(),c[d].focus(),o&&c[d].click());break;case"ArrowDown":i==="vertical"&&(a.stopPropagation(),a.preventDefault(),c[f].focus(),o&&c[f].click());break;case"Home":a.stopPropagation(),a.preventDefault(),c[Oo(-1,c,!1)]?.focus();break;case"End":a.stopPropagation(),a.preventDefault(),c[jo(c.length,c,!1)]?.focus()}}}const pc={app:100,modal:200,popover:300,overlay:400,max:9999};function ut(e){return pc[e]}const mc=()=>{};function hc(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||mc:n=>{n.key==="Escape"&&(e(n),t.onTrigger?.())}}function ne(e,t="size",n=!0){if(e!==void 0)return ks(e)?n?M(e):e:`var(--${t}-${e})`}function gc(e){return ne(e,"mantine-spacing")}function he(e){return e===void 0?"var(--mantine-radius-default)":ne(e,"mantine-radius")}function me(e){return ne(e,"mantine-font-size")}function Lr(e){if(e)return ne(e,"mantine-shadow",!1)}function ee(e,t){return n=>{e?.(n),t?.(n)}}function vc(e,t,n){return n?Array.from(pn(n,t)?.querySelectorAll(e)||[]).findIndex(r=>r===n):null}function yc(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function jt(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>((...n)=>t.current?.(...n)),[])}function xn(e,t){const{delay:n,flushOnUnmount:r,leading:o,maxWait:s}=typeof t=="number"?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,i=jt(e),a=p.useRef(0),c=p.useRef(0),l=p.useRef(null),f=p.useMemo(()=>{const d=Object.assign((...u)=>{window.clearTimeout(a.current),l.current=u;const m=d._isFirstCall;d._isFirstCall=!1;function g(){window.clearTimeout(a.current),window.clearTimeout(c.current),a.current=0,c.current=0,d._isFirstCall=!0,d._hasPendingCallback=!1}function h(){s!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(a.current!==0){const S=l.current;g(),i(...S)}},s))}if(o&&m){i(...u);const S=()=>{g()},C=()=>{a.current!==0&&(g(),i(...u))},x=()=>{g()};d.flush=C,d.cancel=x,a.current=window.setTimeout(S,n),h();return}if(o&&!m){d._hasPendingCallback=!0;const S=()=>{a.current!==0&&(g(),i(...u))},C=()=>{g()};d.flush=S,d.cancel=C;const x=()=>{g()};a.current=window.setTimeout(x,n),h();return}d._hasPendingCallback=!0;const v=()=>{a.current!==0&&(g(),i(...u))},w=()=>{g()};d.flush=v,d.cancel=w,a.current=window.setTimeout(v,n),h()},{flush:()=>{},cancel:()=>{},isPending:()=>d._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return d},[i,n,o,s]);return p.useEffect(()=>()=>{r?f.flush():f.cancel()},[f,r]),f}const bc=["mousedown","touchstart"];function wc(e,t,n,r=!0){const o=p.useRef(null),s=t||bc,i=p.useEffectEvent(c=>{const{target:l}=c??{};if(!document.body.contains(l)&&l?.tagName!=="HTML")return;const f=c.composedPath();Array.isArray(n)?n.every(d=>!!d&&!f.includes(d))&&e(c):o.current&&!f.includes(o.current)&&e(c)}),a=s.join(",");return p.useEffect(()=>{if(!r)return;const c=a.split(",");return c.forEach(l=>document.addEventListener(l,i)),()=>{c.forEach(l=>document.removeEventListener(l,i))}},[a,r]),o}function xc(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Sc(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=p.useState(n?t:xc(e));return p.useEffect(()=>{try{if("matchMedia"in window){const s=window.matchMedia(e);o(s.matches);const i=a=>o(a.matches);return s.addEventListener("change",i),()=>{s.removeEventListener("change",i)}}}catch{return}},[e]),r||!1}const Ze=typeof document<"u"?p.useLayoutEffect:p.useEffect;function Dr(e,t){const n=p.useRef(!1);p.useEffect(()=>()=>{n.current=!1},[]),p.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function As({opened:e,shouldReturnFocus:t=!0}){const n=p.useRef(null),r=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return Dr(()=>{let o=-1;const s=i=>{i.key==="Tab"&&window.clearTimeout(o)};if(document.addEventListener("keydown",s),e)n.current=document.activeElement;else if(t){const i=document.activeElement;o=window.setTimeout(()=>{const a=document.activeElement;(a===null||a===document.body||a===i)&&r()},10)}return()=>{window.clearTimeout(o),document.removeEventListener("keydown",s)}},[e,t]),r}const Cc=/input|select|textarea|button|object/,Ns="a, input, select, textarea, button, object, [tabindex]";function Rc(e){return e.style.display==="none"}function Ec(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let t=e;for(;t&&!(t===document.body||t.nodeType===11);){if(Rc(t))return!1;t=t.parentNode}return!0}function Is(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function Cr(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(Is(e));return(Cc.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&Ec(e)}function js(e){const t=Is(e);return(Number.isNaN(t)||t>=0)&&Cr(e)}function Tc(e){return Array.from(e.querySelectorAll(Ns)).filter(js)}function _c(e,t){const n=Tc(e);if(!n.length){t.preventDefault();return}const r=n[t.shiftKey?0:n.length-1],o=e.getRootNode();let s=r===o.activeElement||e===o.activeElement;const i=o.activeElement;if(i.tagName==="INPUT"&&i.getAttribute("type")==="radio"&&(s=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===i.getAttribute("name")).includes(r)),!s)return;t.preventDefault();const a=n[t.shiftKey?n.length-1:0];a&&a.focus()}function Pc(e=!0){const t=p.useRef(null),n=o=>{let s=o.querySelector("[data-autofocus]");if(!s){const i=Array.from(o.querySelectorAll(Ns));s=i.find(js)||i.find(Cr)||null,!s&&Cr(o)&&(s=o)}s?s.focus({preventScroll:!0}):console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node",o)},r=p.useCallback(o=>{if(e){if(o===null){t.current=null;return}t.current!==o&&(setTimeout(()=>{o.getRootNode()?n(o):console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom",o)}),t.current=o)}},[e]);return p.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});const o=s=>{s.key==="Tab"&&t.current&&_c(t.current,s)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e]),r}const Mc=e=>(e+1)%1e6;function kc(){const[,e]=p.useReducer(Mc,0);return e}function St(e){const t=p.useId(),[n,r]=p.useState(`mantine-${t.replace(/:/g,"")}`),o=p.useRef(!1);return Ze(()=>{o.current||(o.current=!0,r(yc()))},[]),typeof e=="string"?e:n}function $c(e,t,n){const r=p.useEffectEvent(t);p.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function Rr(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function Ac(...e){const t=new Map;return n=>{if(e.forEach(r=>{const o=Rr(r,n);o&&t.set(r,o)}),t.size>0)return()=>{e.forEach(r=>{const o=t.get(r);o&&typeof o=="function"?o():Rr(r,null)}),t.clear()}}}function ue(...e){return p.useCallback(Ac(...e),e)}function We({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[o,s]=p.useState(t!==void 0?t:n),i=(a,...c)=>{s(a),r?.(a,...c)};return e!==void 0?[e,r,!0]:[o,i,!1]}function Os(e,t){return Sc("(prefers-reduced-motion: reduce)",e,t)}const Nc=["mouse","touch"],Ic=10;function jc(e,t={}){const{threshold:n=400,events:r=Nc,cancelOnMove:o=!1,onStart:s,onFinish:i,onCancel:a}=t,c=p.useRef(!1),l=p.useRef(!1),f=p.useRef(-1),d=p.useRef(null);p.useEffect(()=>()=>window.clearTimeout(f.current),[]);const u=r.join(",");return p.useMemo(()=>{if(typeof e!="function")return{};const m=o!==!1,g=o===!0?Ic:o===!1?0:o,h=C=>{!Do(C)&&!Er(C)||(s&&s(C),d.current=Lo(C),l.current=!0,f.current=window.setTimeout(()=>{e(C),c.current=!0},n))},v=C=>{!Do(C)&&!Er(C)||(c.current?i&&i(C):l.current&&a&&a(C),c.current=!1,l.current=!1,d.current=null,f.current!==-1&&(window.clearTimeout(f.current),f.current=-1))},w=C=>{if(!m||!l.current||c.current)return;const x=Lo(C);if(!x||!d.current)return;const E=x.x-d.current.x,T=x.y-d.current.y;Math.sqrt(E*E+T*T)>g&&v(C)},S={};return r.includes("mouse")&&(S.onMouseDown=h,S.onMouseUp=v,S.onMouseLeave=v,m&&(S.onMouseMove=w)),r.includes("touch")&&(S.onTouchStart=h,S.onTouchEnd=v,S.onTouchCancel=v,m&&(S.onTouchMove=w)),S},[e,n,a,i,s,o,u])}function Lo(e){if(Er(e)){const t=e.touches[0]??e.changedTouches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function Er(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:"touches"in e.nativeEvent}function Do(e){return e.nativeEvent instanceof MouseEvent}var Br=cc();const Oc=Ts(Br);var Lc={};function Dc(){return"development"}function Bc(e){const t=Sr.version;return typeof Sr.version!="string"||t.startsWith("18.")?e?.ref:e?.props?.ref}function Ht(e){const t=p.Children.toArray(e);return t.length!==1||!$s(t[0])?null:t[0]}function Ls(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ls(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ve(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ls(e))&&(r&&(r+=" "),r+=t);return r}const zc={};function Fc(e){const t={};return e.forEach(n=>{Object.entries(n).forEach(([r,o])=>{t[r]?t[r]=ve(t[r],o):t[r]=o})}),t}function Dt({theme:e,classNames:t,props:n,stylesCtx:r}){return Fc((Array.isArray(t)?t:[t]).map(o=>typeof o=="function"?o(e,n,r):o||zc))}function mn({theme:e,styles:t,props:n,stylesCtx:r}){const o=Array.isArray(t)?t:[t],s={};for(const i of o)typeof i=="function"?Object.assign(s,i(e,n,r)):i&&Object.assign(s,i);return s}function Bo(e){return e==="auto"||e==="dark"||e==="light"}function Hc({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(e);return Bo(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{t=r=>{r.storageArea===window.localStorage&&r.key===e&&Bo(r.newValue)&&n(r.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}function Bt(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function Wc(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Vc(e){let t=e.replace("#","");if(t.length===3){const r=t.split("");t=[r[0],r[0],r[1],r[1],r[2],r[2]].join("")}if(t.length===8){const r=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:r}}const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function Yc(e){const[t,n,r,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:o===void 0?1:o}}function Uc(e){const t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};const n=parseInt(t[1],10),r=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,s=t[5]?parseFloat(t[5]):void 0,i=(1-Math.abs(2*o-1))*r,a=n/60,c=i*(1-Math.abs(a%2-1)),l=o-i/2;let f,d,u;return a>=0&&a<1?(f=i,d=c,u=0):a>=1&&a<2?(f=c,d=i,u=0):a>=2&&a<3?(f=0,d=i,u=c):a>=3&&a<4?(f=0,d=c,u=i):a>=4&&a<5?(f=c,d=0,u=i):(f=i,d=0,u=c),{r:Math.round((f+l)*255),g:Math.round((d+l)*255),b:Math.round((u+l)*255),a:s||1}}function zr(e){return Wc(e)?Vc(e):e.startsWith("rgb")?Yc(e):e.startsWith("hsl")?Uc(e):{r:0,g:0,b:0,a:1}}function or(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Xc(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function Gc(e){if(e.startsWith("oklch("))return(Xc(e)||0)/100;const{r:t,g:n,b:r}=zr(e),o=t/255,s=n/255,i=r/255,a=or(o),c=or(s),l=or(i);return .2126*a+.7152*c+.0722*l}function Nt(e,t=.179){return e.startsWith("var(")?!1:Gc(e)>t}function De({color:e,theme:t,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Nt(n==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Nt(n==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Nt(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,o]=e.split("."),s=o?Number(o):void 0,i=r in t.colors;if(i){const a=s!==void 0?t.colors[r][s]:t.colors[r][Bt(t,n||"light")];return{color:r,value:a,shade:s,isThemeColor:i,isLight:Nt(a,t.luminanceThreshold),variable:o?`--mantine-color-${r}-${s}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:i,isLight:Nt(e,t.luminanceThreshold),shade:s,variable:void 0}}function _e(e,t){const n=De({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Fr(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function st(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:r,b:o,a:s}=zr(e),i=1-t,a=c=>Math.round(c*i);return`rgba(${a(n)}, ${a(r)}, ${a(o)}, ${s})`}function zo(e,t){const n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=_e(n.from,t),o=_e(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${o} 100%)`}function qe(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var("))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:r,b:o}=zr(e);return`rgba(${n}, ${r}, ${o}, ${t})`}const Fo=qe,qc=({color:e,theme:t,variant:n,gradient:r,autoContrast:o})=>{const s=De({color:e,theme:t}),i=typeof o=="boolean"?o:t.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const a=s.isThemeColor&&s.shade===void 0&&Fr(t.colors[s.color]),c=i?a?`var(--mantine-color-${s.color}-contrast)`:s.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)":"var(--mantine-color-white)";return s.isThemeColor?s.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:c,border:`${M(1)} solid transparent`}:{background:`var(--mantine-color-${s.color}-${s.shade})`,hover:`var(--mantine-color-${s.color}-${s.shade===9?8:s.shade+1})`,color:c,border:`${M(1)} solid transparent`}:{background:e,hover:st(e,.1),color:c,border:`${M(1)} solid transparent`}}if(n==="light"){if(s.isThemeColor){if(s.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${M(1)} solid transparent`};const a=t.colors[s.color][s.shade];return{background:a,hover:st(a,.1),color:`var(--mantine-color-${s.color}-light-color)`,border:`${M(1)} solid transparent`}}return{background:qe(e,.1),hover:qe(e,.12),color:e,border:`${M(1)} solid transparent`}}if(n==="outline")return s.isThemeColor?s.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${M(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:qe(t.colors[s.color][s.shade],.05),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${M(1)} solid var(--mantine-color-${s.color}-${s.shade})`}:{background:"transparent",hover:qe(e,.05),color:e,border:`${M(1)} solid ${e}`};if(n==="subtle"){if(s.isThemeColor){if(s.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${M(1)} solid transparent`};const a=t.colors[s.color][s.shade];return{background:"transparent",hover:qe(a,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${M(1)} solid transparent`}}return{background:"transparent",hover:qe(e,.12),color:e,border:`${M(1)} solid transparent`}}return n==="transparent"?s.isThemeColor?s.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${M(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${M(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${M(1)} solid transparent`}:n==="white"?s.isThemeColor?s.shade===void 0?{background:"var(--mantine-color-white)",hover:st(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${M(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:st(t.white,.01),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${M(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:st(t.white,.01),color:e,border:`${M(1)} solid transparent`}:n==="gradient"?{background:zo(r,t),hover:zo(r,t),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${M(1)} solid var(--mantine-color-default-border)`}:{}};function Wt({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n=="boolean"?n:t.autoContrast)&&De({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Tr(e,t,n){return Wt({color:n==="dark"?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function Ho(e,t){const n=e.colors[e.primaryColor];return Fr(n)?e.autoContrast?Tr(n,e,t):"var(--mantine-color-white)":Wt({color:n[Bt(e,t)],theme:e,autoContrast:null})}function Hr(e,t){return typeof e=="boolean"?e:t.autoContrast}const Ds=p.createContext(null);function Ve(){const e=p.use(Ds);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function Kc(){return Ve().cssVariablesResolver}function Zc(){return Ve().classNamesPrefix}function Wr(){return Ve().getStyleNonce}function Qc(){return Ve().withStaticClasses}function Jc(){return Ve().headless}function el(){return Ve().stylesTransform?.sx}function tl(){return Ve().stylesTransform?.styles}function Sn(){return Ve().env||"default"}function nl(){return Ve().deduplicateInlineStyles}function mt(e,t){const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,r=e!=="auto"?e:n?"dark":"light";t()?.setAttribute("data-mantine-color-scheme",r)}function rl({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const o=p.useRef(null),[s,i]=p.useState(()=>e.get(t)),a=r||s,c=p.useCallback(f=>{r||(mt(f,n),i(f),e.set(f))},[e.set,a,r]),l=p.useCallback(()=>{i(t),mt(t,n),e.clear()},[e.clear,t]);return p.useEffect(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),Ze(()=>{mt(e.get(t),n)},[]),p.useEffect(()=>{if(r)return mt(r,n),()=>{};r===void 0&&mt(s,n),typeof window<"u"&&"matchMedia"in window&&(o.current=window.matchMedia("(prefers-color-scheme: dark)"));const f=d=>{s==="auto"&&mt(d.matches?"dark":"light",n)};return o.current?.addEventListener("change",f),()=>o.current?.removeEventListener("change",f)},[s,r]),{colorScheme:a,setColorScheme:c,clearColorScheme:l}}const ol={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"]},Wo="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Vr={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:ol,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:qc,autoContrast:!1,luminanceThreshold:.3,fontFamily:Wo,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:Wo,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:M(34),lineHeight:"1.3"},h2:{fontSize:M(26),lineHeight:"1.35"},h3:{fontSize:M(22),lineHeight:"1.4"},h4:{fontSize:M(18),lineHeight:"1.45"},h5:{fontSize:M(16),lineHeight:"1.5"},h6:{fontSize:M(14),lineHeight:"1.5"}}},fontSizes:{xs:M(12),sm:M(14),md:M(16),lg:M(18),xl:M(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:M(2),sm:M(4),md:M(8),lg:M(16),xl:M(32)},spacing:{xs:M(10),sm:M(12),md:M(16),lg:M(20),xl:M(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), 0 ${M(1)} ${M(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(10)} ${M(15)} ${M(-5)}, rgba(0, 0, 0, 0.04) 0 ${M(7)} ${M(7)} ${M(-5)}`,md:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(20)} ${M(25)} ${M(-5)}, rgba(0, 0, 0, 0.04) 0 ${M(10)} ${M(10)} ${M(-5)}`,lg:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(28)} ${M(23)} ${M(-7)}, rgba(0, 0, 0, 0.04) 0 ${M(12)} ${M(12)} ${M(-7)}`,xl:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(36)} ${M(28)} ${M(-7)}, rgba(0, 0, 0, 0.04) 0 ${M(17)} ${M(17)} ${M(-7)}`},other:{},components:{}},sl="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Vo="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function sr(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function Yo(e){if(!(e.primaryColor in e.colors))throw new Error(sl);if(typeof e.primaryShade=="object"&&(!sr(e.primaryShade.dark)||!sr(e.primaryShade.light)))throw new Error(Vo);if(typeof e.primaryShade=="number"&&!sr(e.primaryShade))throw new Error(Vo)}function il(e,t){if(!t)return Yo(e),e;const n=jr(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),Yo(n),n}const Yr=p.createContext(null),al=()=>p.use(Yr)||Vr;function Me(){const e=p.use(Yr);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function Bs({theme:e,children:t,inherit:n=!0}){const r=al(),o=p.useMemo(()=>il(n?r:Vr,e),[e,r,n]);return y.jsx(Yr,{value:o,children:t})}Bs.displayName="@mantine/core/MantineThemeProvider";function ir(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function zs(e,t){const n=t?[t]:[":root",":host"],r=ir(e.variables),o=r?`${n.join(", ")}{${r}}`:"",s=ir(e.dark),i=ir(e.light),a=c=>n.map(l=>l===":host"?`${l}([data-mantine-color-scheme="${c}"])`:`${l}[data-mantine-color-scheme="${c}"]`).join(", ");return`${o}
2
+
3
+ ${s?`${a("dark")}{${s}}`:""}
4
+
5
+ ${i?`${a("light")}{${i}}`:""}`}function tn({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:o=!0}){if(!e.colors[t])return{};if(n==="light"){const a=Bt(e,"light"),c={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+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}-${a})`,[`--mantine-color-${r}-outline-hover`]:Fo(e.colors[t][a],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...c}:c}const s=Bt(e,"dark"),i={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${s===9?8:s+1})`,[`--mantine-color-${r}-light`]:st(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:st(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(s-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Fo(e.colors[t][Math.max(s-4,0)],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...i}:i}function rt(e,t,n){Ie(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}const Fs=e=>{const t=Bt(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:M(e.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":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":Ho(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-success":"var(--mantine-color-teal-8)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--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":Ho(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-success":"var(--mantine-color-teal-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--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)"}};rt(r.variables,e.breakpoints,"breakpoint"),rt(r.variables,e.spacing,"spacing"),rt(r.variables,e.fontSizes,"font-size"),rt(r.variables,e.lineHeights,"line-height"),rt(r.variables,e.shadows,"shadow"),rt(r.variables,e.radius,"radius"),rt(r.variables,e.fontWeights,"font-weight"),e.colors[e.primaryColor].forEach((s,i)=>{r.variables[`--mantine-primary-color-${i}`]=`var(--mantine-color-${e.primaryColor}-${i})`}),Ie(e.colors).forEach(s=>{const i=e.colors[s];if(Fr(i)){Object.assign(r.light,tn({theme:e,name:i.name,color:i.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,tn({theme:e,name:i.name,color:i.dark,colorScheme:"dark",withColorValues:!0})),r.light[`--mantine-color-${i.name}-contrast`]=Tr(i,e,"light"),r.dark[`--mantine-color-${i.name}-contrast`]=Tr(i,e,"dark");return}i.forEach((a,c)=>{r.variables[`--mantine-color-${s}-${c}`]=a}),Object.assign(r.light,tn({theme:e,color:s,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,tn({theme:e,color:s,colorScheme:"dark",withColorValues:!1}))});const o=e.headings.sizes;return Ie(o).forEach(s=>{r.variables[`--mantine-${s}-font-size`]=o[s].fontSize,r.variables[`--mantine-${s}-line-height`]=o[s].lineHeight,r.variables[`--mantine-${s}-font-weight`]=o[s].fontWeight||e.headings.fontWeight}),r};function cl(){const e=Me(),t=Wr(),n=Ie(e.breakpoints).reduce((r,o)=>{const s=e.breakpoints[o].includes("px"),i=dc(e.breakpoints[o]);return`${r}@media (max-width: ${s?`${i-.1}px`:No(i-.1)}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${s?`${i}px`:No(i)}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");return y.jsx("style",{"data-mantine-styles":"classes",nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function ll({theme:e,generator:t}){const n=Fs(e),r=t?.(e);return r?jr(n,r):n}const ar=Fs(Vr);function ul(e){const t={variables:{},light:{},dark:{}};return Ie(e.variables).forEach(n=>{ar.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),Ie(e.light).forEach(n=>{ar.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),Ie(e.dark).forEach(n=>{ar.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function dl(e){return zs({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},e)}function Hs({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=Me(),r=Wr(),o=Kc(),s=ll({theme:n,generator:o}),i=(e===void 0||e===":root"||e===":host")&&t,a=i?ul(s):s,c=zs(a,e);return c?y.jsx("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${c}${i?"":dl(e)}`}}):null}Hs.displayName="@mantine/CssVariables";function fl({respectReducedMotion:e,getRootElement:t}){Ze(()=>{e&&t()?.setAttribute("data-respect-reduced-motion","true")},[e])}function pl({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:o=!0,deduplicateCssVariables:s=!0,withCssVariables:i=!0,cssVariablesSelector:a,classNamesPrefix:c="mantine",colorSchemeManager:l=Hc(),defaultColorScheme:f="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:u,forceColorScheme:m,stylesTransform:g,env:h,deduplicateInlineStyles:v=!1}){const{colorScheme:w,setColorScheme:S,clearColorScheme:C}=rl({defaultColorScheme:f,forceColorScheme:m,manager:l,getRootElement:d});return fl({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),y.jsx(Ds,{value:{colorScheme:w,setColorScheme:S,clearColorScheme:C,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:u,cssVariablesSelector:a??":root",withStaticClasses:r,stylesTransform:g,env:h,deduplicateInlineStyles:v},children:y.jsxs(Bs,{theme:e,children:[i&&y.jsx(Hs,{cssVariablesSelector:a,deduplicateCssVariables:s}),o&&y.jsx(cl,{}),t]})})}pl.displayName="@mantine/core/MantineProvider";function H(e,t,n){const r=Me(),o=(Array.isArray(e)?e:[e]).filter(Boolean);let s={};for(const i of o){const a=r.components[i]?.defaultProps,c=typeof a=="function"?a(r):a;c&&(s={...s,...c})}return{...t,...s,...Or(n)}}function Op(e){return e}function Ur({classNames:e,styles:t,props:n,stylesCtx:r}){const o=Me();return{resolvedClassNames:e===void 0?void 0:Dt({theme:o,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:mn({theme:o,styles:t,props:n,stylesCtx:r||void 0})}}const ml={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function hl({theme:e,options:t,unstyled:n}){return ve(t?.focusable&&!n&&(e.focusClassName||ml[e.focusRing]),t?.active&&!n&&e.activeClassName)}function gl({selector:e,stylesCtx:t,options:n,props:r,theme:o}){return Dt({theme:o,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function vl({selector:e,stylesCtx:t,theme:n,classNames:r,props:o}){return Dt({theme:n,classNames:r,props:o,stylesCtx:t})[e]}function yl({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function bl({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function wl({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(o=>`${t}-${o}-${n}`)}function xl({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function Sl({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:o,resolvedClassNames:s,resolvedThemeClassNames:i,classes:a,unstyled:c,className:l,rootSelector:f,props:d,stylesCtx:u,withStaticClasses:m,headless:g,transformedStyles:h}){return ve(hl({theme:e,options:t,unstyled:c||g}),i.map(v=>v[r]),xl({options:t,classes:a,selector:r,unstyled:c||g}),s[r],vl({selector:r,stylesCtx:u,theme:e,classNames:h,props:d}),gl({selector:r,stylesCtx:u,options:t,props:d,theme:e}),yl({rootSelector:f,selector:r,className:l}),bl({selector:r,classes:a,unstyled:c||g}),m&&!g&&wl({themeName:n,classNamesPrefix:o,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function Xr({style:e,theme:t}){return Array.isArray(e)?e.reduce((n,r)=>({...n,...Xr({style:r,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function Cl({theme:e,selector:t,options:n,props:r,stylesCtx:o,rootSelector:s,withStylesTransform:i,resolvedStyles:a,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:f}){return{...c[t],...a[t],...!i&&mn({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:o})[t],...l[t],...s===t?f:null,...Xr({style:n?.style,theme:e})}}function Rl(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{t[r]={...t[r],...Or(n[r])}}),t),{})}function El({props:e,stylesCtx:t,themeName:n,theme:r}){const o=tl()?.();return{getTransformedStyles:i=>o?[...i.map(a=>o(a,{props:e,theme:r,ctx:t})),...n.map(a=>o(r.components[a]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!o}}function J({name:e,classes:t,props:n,stylesCtx:r,className:o,style:s,rootSelector:i="root",unstyled:a,classNames:c,styles:l,vars:f,varsResolver:d,attributes:u}){const m=Me(),g=Zc(),h=Qc(),v=Jc(),w=(Array.isArray(e)?e:[e]).filter($=>$),{withStylesTransform:S,getTransformedStyles:C}=El({props:n,stylesCtx:r,themeName:w,theme:m}),x=Dt({theme:m,classNames:c,props:n,stylesCtx:r}),E=w.map($=>Dt({theme:m,classNames:m.components[$]?.classNames,props:n,stylesCtx:r})),T=S?{}:mn({theme:m,styles:l,props:n,stylesCtx:r}),R={};if(!S)for(const $ of w){const A=mn({theme:m,styles:m.components[$]?.styles,props:n,stylesCtx:r});for(const D of Object.keys(A))R[D]={...R[D],...A[D]}}const P=Rl([v?{}:d?.(m,n,r),...w.map($=>m.components?.[$]?.vars?.(m,n,r)),f?.(m,n,r)]),O=Xr({style:s,theme:m});return($,A)=>({...u?.[$],className:Sl({theme:m,options:A,themeName:w,selector:$,classNamesPrefix:g,resolvedClassNames:x,resolvedThemeClassNames:E,classes:t,unstyled:a,className:o,rootSelector:i,props:n,stylesCtx:r,withStaticClasses:h,headless:v,transformedStyles:C([A?.styles,l])}),style:Cl({theme:m,selector:$,options:A,props:n,stylesCtx:r,rootSelector:i,withStylesTransform:S,resolvedStyles:T,resolvedThemeStyles:R,resolvedVars:P,resolvedRootStyle:O})})}function Lt(e){return Ie(e).reduce((t,n)=>e[n]!==void 0?`${t}${lc(n)}:${e[n]};`:t,"").trim()}function Tl({selector:e,styles:t,media:n,container:r}){const o=t?Lt(t):"",s=Array.isArray(n)?n.map(a=>`@media${a.query}{${e}{${Lt(a.styles)}}}`):[],i=Array.isArray(r)?r.map(a=>`@container ${a.query}{${e}{${Lt(a.styles)}}}`):[];return`${o?`${e}{${o}}`:""}${s.join("")}${i.join("")}`.trim()}function _l(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)&4294967295;return(t>>>0).toString(36)}function Pl({deduplicate:e,...t}){const n=Wr(),r=Tl(t);return e?y.jsx("style",{href:`mantine-${_l(r)}`,precedence:"mantine",nonce:n?.(),children:r}):y.jsx("style",{"data-mantine-styles":"inline",nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function Ml(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)&4294967295;return(t>>>0).toString(36)}function kl(e,t){return`__mdi__-${Ml(`${e?Lt(e):""}|${Array.isArray(t)?t.map(n=>`${n.query}:${Lt(n.styles)}`).join("|"):""}`)}`}function Cn(e){const{m:t,mx:n,my:r,mt:o,mb:s,ml:i,mr:a,me:c,ms:l,mis:f,mie:d,p:u,px:m,py:g,pt:h,pb:v,pl:w,pr:S,pe:C,ps:x,pis:E,pie:T,bd:R,bdrs:P,bg:O,c:$,opacity:A,ff:D,fz:L,fw:k,lts:U,ta:F,lh:N,fs:j,tt:z,td:W,w:b,miw:_,maw:I,h:B,mih:Y,mah:V,bgsz:X,bgp:q,bgr:Z,bga:te,pos:se,top:re,left:de,bottom:ie,right:Ae,inset:Se,display:Fe,flex:tt,hiddenFrom:Kn,visibleFrom:Zn,lightHidden:Qn,darkHidden:Jn,sx:en,...oe}=e;return{styleProps:Or({m:t,mx:n,my:r,mt:o,mb:s,ml:i,mr:a,me:c,ms:l,mis:f,mie:d,p:u,px:m,py:g,pt:h,pb:v,pl:w,pr:S,pis:E,pie:T,pe:C,ps:x,bd:R,bg:O,c:$,opacity:A,ff:D,fz:L,fw:k,lts:U,ta:F,lh:N,fs:j,tt:z,td:W,w:b,miw:_,maw:I,h:B,mih:Y,mah:V,bgsz:X,bgp:q,bgr:Z,bga:te,pos:se,top:re,left:de,bottom:ie,right:Ae,inset:Se,display:Fe,flex:tt,bdrs:P,hiddenFrom:Kn,visibleFrom:Zn,lightHidden:Qn,darkHidden:Jn,sx:en}),rest:oe}}const $l={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 Gr(e,t){const n=De({color:e,theme:t});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function Al(e,t){const n=De({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Gr(e,t)}function Nl(e,t){if(typeof e=="number")return M(e);if(typeof e=="string"){const[n,r,...o]=e.split(" ").filter(i=>i.trim()!=="");let s=`${M(n)}`;return r&&(s+=` ${r}`),o.length>0&&(s+=` ${Gr(o.join(" "),t)}`),s.trim()}return e}const Uo={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 Il(e){return typeof e=="string"&&e in Uo?Uo[e]:e}const jl=["h1","h2","h3","h4","h5","h6"];function Ol(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&jl.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?M(e):e}function Ll(e){return e}const Dl=["h1","h2","h3","h4","h5","h6"];function Bl(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&Dl.includes(e)?`var(--mantine-${e}-line-height)`:e}function zl(e,t){return typeof e=="string"&&e in t.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?M(e):e}function Fl(e){return typeof e=="number"?M(e):e}function Hl(e,t){if(typeof e=="number")return M(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return M(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e}const cr={color:Gr,textColor:Al,fontSize:Ol,spacing:Hl,radius:zl,identity:Ll,size:Fl,lineHeight:Bl,fontFamily:Il,border:Nl};function Xo(e){return e.replace("(min-width: ","").replace("em)","")}function Wl({media:e,...t}){const n=Object.keys(e).sort((r,o)=>Number(Xo(r))-Number(Xo(o))).map(r=>({query:r,styles:e[r]}));return{...t,media:n}}function Vl(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function Yl(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function Ul(e){return typeof e=="object"&&e!==null?Ie(e).filter(t=>t!=="base"):[]}function Xl(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function Gl({styleProps:e,data:t,theme:n}){return Wl(Ie(e).reduce((r,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return r;const s=t[o],i=Array.isArray(s.property)?s.property:[s.property],a=Yl(e[o]);if(!Vl(e[o]))return i.forEach(l=>{r.inlineStyles[l]=cr[s.type](a,n)}),r;r.hasResponsiveStyles=!0;const c=Ul(e[o]);return i.forEach(l=>{a!=null&&(r.styles[l]=cr[s.type](a,n)),c.forEach(f=>{const d=`(min-width: ${n.breakpoints[f]})`;r.media[d]={...r.media[d],[l]:cr[s.type](Xl(e[o],f),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function ql(){return`__m__-${p.useId().replace(/[:«»]/g,"")}`}function Kl(e){return e}const Zl=Kl;function Ws(e){return e}function K(e){const t=e;return t.extend=Ws,t.withProps=n=>{const r=o=>y.jsx(t,{...n,...o});return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t}function Ql(e){return K(e)}function ke(e){const t=e;return t.withProps=n=>{const r=o=>y.jsx(t,{...n,...o});return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t.extend=Ws,t}function Vs(e){return`data-${(e.startsWith("data-")?e.slice(5):e).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`}function Jl(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r===void 0||r===""||r===!1||r===null||(t[Vs(n)]=e[n]),t},{})}function Ys(e){return e?typeof e=="string"?{[Vs(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...Ys(n)}),{}):Jl(e):null}function _r(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,..._r(r,t)}),{}):typeof e=="function"?e(t):e??{}}function eu({theme:e,style:t,vars:n,styleProps:r}){const o=_r(t,e),s=_r(n,e);return{...o,...s,...r}}function Us({component:e,style:t,__vars:n,className:r,variant:o,mod:s,size:i,hiddenFrom:a,visibleFrom:c,lightHidden:l,darkHidden:f,renderRoot:d,__size:u,ref:m,...g}){const h=Me(),v=e||"div",{styleProps:w,rest:S}=Cn(g),C=el()?.()?.(w.sx),x=ql(),E=Gl({styleProps:w,theme:h,data:$l}),T=nl(),R=T&&E.hasResponsiveStyles?kl(E.styles,E.media):x,P={ref:m,style:eu({theme:h,style:t,vars:n,styleProps:E.inlineStyles}),className:ve(r,C,{[R]:E.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":f,[`mantine-hidden-from-${a}`]:a,[`mantine-visible-from-${c}`]:c}),"data-variant":o,"data-size":ks(i)?void 0:i||void 0,size:u,...Ys(s),...S};return y.jsxs(y.Fragment,{children:[E.hasResponsiveStyles&&y.jsx(Pl,{selector:`.${R}`,styles:E.styles,media:E.media,deduplicate:T}),typeof d=="function"?d(P):y.jsx(v,{...P})]})}Us.displayName="@mantine/core/Box";const G=Zl(Us),tu=p.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Ye(){return p.use(tu)}const[nu,Re]=lt("ScrollArea.Root component was not found in tree");function Qe(e,t){const n=p.useEffectEvent(t);Ze(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e])}function ru(e){const{style:t,...n}=e,r=Re(),[o,s]=p.useState(0),[i,a]=p.useState(0),c=!!(o&&i);return Qe(r.scrollbarX,()=>{const l=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(l),a(l)}),Qe(r.scrollbarY,()=>{const l=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(l),s(l)}),c?y.jsx("div",{...n,style:{...t,width:o,height:i}}):null}function ou(e){const t=Re(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&n?y.jsx(ru,{...e}):null}const su={scrollHideDelay:1e3,type:"hover"};function Xs(e){const{type:t,scrollHideDelay:n,scrollbars:r,getStyles:o,ref:s,...i}=H("ScrollAreaRoot",su,e),[a,c]=p.useState(null),[l,f]=p.useState(null),[d,u]=p.useState(null),[m,g]=p.useState(null),[h,v]=p.useState(null),[w,S]=p.useState(0),[C,x]=p.useState(0),[E,T]=p.useState(!1),[R,P]=p.useState(!1),O=ue(s,c);return y.jsx(nu,{value:{type:t,scrollHideDelay:n,scrollArea:a,viewport:l,onViewportChange:f,content:d,onContentChange:u,scrollbarX:m,onScrollbarXChange:g,scrollbarXEnabled:E,onScrollbarXEnabledChange:T,scrollbarY:h,onScrollbarYChange:v,scrollbarYEnabled:R,onScrollbarYEnabledChange:P,onCornerWidthChange:S,onCornerHeightChange:x,getStyles:o},children:y.jsx(G,{...i,ref:O,__vars:{"--sa-corner-width":r!=="xy"?"0px":`${w}px`,"--sa-corner-height":r!=="xy"?"0px":`${C}px`}})})}Xs.displayName="@mantine/core/ScrollAreaRoot";function Gs(e,t){const n=e/t;return Number.isNaN(n)?0:n}function Rn(e){const t=Gs(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function qs(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function iu(e,[t,n]){return Math.min(n,Math.max(t,e))}function Go(e,t,n="ltr"){const r=Rn(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,i=t.content-t.viewport,a=s-r,c=iu(e,n==="ltr"?[0,i]:[i*-1,0]);return qs([0,i],[0,a])(c)}function au(e,t,n,r="ltr"){const o=Rn(n),s=o/2,i=t||s,a=o-i,c=n.scrollbar.paddingStart+i,l=n.scrollbar.size-n.scrollbar.paddingEnd-a,f=n.content-n.viewport,d=r==="ltr"?[0,f]:[f*-1,0];return qs([c,l],d)(e)}function Ks(e,t){return e>0&&e<t}function hn(e){return e?parseInt(e,10):0}function it(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}const[cu,Zs]=lt("ScrollAreaScrollbar was not found in tree");function Qs(e){const{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:i,onDragScroll:a,onWheelScroll:c,onResize:l,ref:f,...d}=e,u=Re(),[m,g]=p.useState(null),h=ue(f,g),v=p.useRef(null),w=p.useRef(""),{viewport:S}=u,C=t.content-t.viewport,x=p.useEffectEvent(c),E=jt(i),T=xn(l,10),R=P=>{if(v.current){const O=P.clientX-v.current.left,$=P.clientY-v.current.top;a({x:O,y:$})}};return p.useEffect(()=>{const P=O=>{const $=O.target;m?.contains($)&&x(O,C)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[S,m,C]),p.useEffect(E,[t,E]),Qe(m,T),Qe(u.content,T),y.jsx(cu,{value:{scrollbar:m,hasThumb:n,onThumbChange:jt(r),onThumbPointerUp:jt(o),onThumbPositionChange:E,onThumbPointerDown:jt(s)},children:y.jsx("div",{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:it(e.onPointerDown,P=>{P.preventDefault(),P.button===0&&(P.target.setPointerCapture(P.pointerId),v.current=m.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",R(P))}),onPointerMove:it(e.onPointerMove,R),onPointerUp:it(e.onPointerUp,P=>{const O=P.target;O.hasPointerCapture(P.pointerId)&&(P.preventDefault(),O.releasePointerCapture(P.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=w.current,v.current=null}})})}const Js=e=>{const{sizes:t,onSizesChange:n,style:r,ref:o,...s}=e,i=Re(),[a,c]=p.useState(),l=p.useRef(null),f=ue(o,l,i.onScrollbarXChange);return p.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),y.jsx(Qs,{"data-orientation":"horizontal",...s,ref:f,sizes:t,style:{...r,"--sa-thumb-width":`${Rn(t)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,u)=>{if(i.viewport){const m=i.viewport.scrollLeft+d.deltaX;e.onWheelScroll(m),Ks(m,u)&&d.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:hn(a.paddingLeft),paddingEnd:hn(a.paddingRight)}})}})};Js.displayName="@mantine/core/ScrollAreaScrollbarX";function ei(e){const{sizes:t,onSizesChange:n,style:r,ref:o,...s}=e,i=Re(),[a,c]=p.useState(),l=p.useRef(null),f=ue(o,l,i.onScrollbarYChange);return p.useEffect(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),y.jsx(Qs,{...s,"data-orientation":"vertical",ref:f,sizes:t,style:{"--sa-thumb-height":`${Rn(t)}px`,...r},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,u)=>{if(i.viewport){const m=i.viewport.scrollTop+d.deltaY;e.onWheelScroll(m),Ks(m,u)&&d.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:hn(a.paddingTop),paddingEnd:hn(a.paddingBottom)}})}})}ei.displayName="@mantine/core/ScrollAreaScrollbarY";function En(e){const{orientation:t="vertical",...n}=e,{dir:r}=Ye(),o=Re(),s=p.useRef(null),i=p.useRef(0),[a,c]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=Gs(a.viewport,a.content),f={...n,sizes:a,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:u=>{s.current=u},onThumbPointerUp:()=>{i.current=0},onThumbPointerDown:u=>{i.current=u}},d=(u,m)=>au(u,i.current,a,m);return t==="horizontal"?y.jsx(Js,{...f,onThumbPositionChange:()=>{if(o.viewport&&s.current){const u=o.viewport.scrollLeft,m=Go(u,a,r);s.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:u=>{o.viewport&&(o.viewport.scrollLeft=u)},onDragScroll:u=>{o.viewport&&(o.viewport.scrollLeft=d(u,r))}}):t==="vertical"?y.jsx(ei,{...f,onThumbPositionChange:()=>{if(o.viewport&&s.current){const u=o.viewport.scrollTop,m=Go(u,a);a.scrollbar.size===0?s.current.style.setProperty("--thumb-opacity","0"):s.current.style.setProperty("--thumb-opacity","1"),s.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:u=>{o.viewport&&(o.viewport.scrollTop=u)},onDragScroll:u=>{o.viewport&&(o.viewport.scrollTop=d(u))}}):null}En.displayName="@mantine/core/ScrollAreaScrollbarVisible";function qr(e){const t=Re(),{forceMount:n,...r}=e,[o,s]=p.useState(!1),i=e.orientation==="horizontal",a=xn(()=>{if(t.viewport){const c=t.viewport.offsetWidth<t.viewport.scrollWidth,l=t.viewport.offsetHeight<t.viewport.scrollHeight;s(i?c:l)}},10);return Qe(t.viewport,a),Qe(t.content,a),n||o?y.jsx(En,{"data-state":o?"visible":"hidden",...r}):null}qr.displayName="@mantine/core/ScrollAreaScrollbarAuto";function ti(e){const{forceMount:t,...n}=e,r=Re(),[o,s]=p.useState(!1);return p.useEffect(()=>{const{scrollArea:i}=r;let a=0;if(i){const c=()=>{window.clearTimeout(a),s(!0)},l=()=>{a=window.setTimeout(()=>s(!1),r.scrollHideDelay)};return i.addEventListener("pointerenter",c),i.addEventListener("pointerleave",l),()=>{window.clearTimeout(a),i.removeEventListener("pointerenter",c),i.removeEventListener("pointerleave",l)}}},[r.scrollArea,r.scrollHideDelay]),t||o?y.jsx(qr,{"data-state":o?"visible":"hidden",...n}):null}ti.displayName="@mantine/core/ScrollAreaScrollbarHover";function lu(e){const{forceMount:t,...n}=e,r=Re(),o=e.orientation==="horizontal",[s,i]=p.useState("hidden"),a=xn(()=>i("idle"),100);return p.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>i("hidden"),r.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,r.scrollHideDelay]),p.useEffect(()=>{const{viewport:c}=r,l=o?"scrollLeft":"scrollTop";if(c){let f=c[l];const d=()=>{const u=c[l];f!==u&&(i("scrolling"),a()),f=u};return c.addEventListener("scroll",d),()=>c.removeEventListener("scroll",d)}},[r.viewport,o,a]),t||s!=="hidden"?y.jsx(En,{"data-state":s==="hidden"?"hidden":"visible",...n,onPointerEnter:it(e.onPointerEnter,()=>i("interacting")),onPointerLeave:it(e.onPointerLeave,()=>i("idle"))}):null}function Pr(e){const{forceMount:t,...n}=e,r=Re(),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:s}=r,i=e.orientation==="horizontal";return p.useEffect(()=>(i?o(!0):s(!0),()=>{i?o(!1):s(!1)}),[i,o,s]),r.type==="hover"?y.jsx(ti,{...n,forceMount:t}):r.type==="scroll"?y.jsx(lu,{...n,forceMount:t}):r.type==="auto"?y.jsx(qr,{...n,forceMount:t}):r.type==="always"?y.jsx(En,{...n}):null}Pr.displayName="@mantine/core/ScrollAreaScrollbar";function uu(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,a=n.top!==s.top;(i||a)&&t(),n=s,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)}function ni(e){const{style:t,ref:n,...r}=e,o=Re(),s=Zs(),{onThumbPositionChange:i}=s,a=ue(n,s.onThumbChange),c=p.useRef(void 0),l=xn(()=>{c.current&&(c.current(),c.current=void 0)},100);return p.useEffect(()=>{const{viewport:f}=o;if(f){const d=()=>{if(l(),!c.current){const u=uu(f,i);c.current=u,i()}};return i(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[o.viewport,l,i]),y.jsx("div",{"data-state":s.hasThumb?"visible":"hidden",...r,ref:a,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...t},onPointerDownCapture:it(e.onPointerDownCapture,f=>{const d=f.target.getBoundingClientRect(),u=f.clientX-d.left,m=f.clientY-d.top;s.onThumbPointerDown({x:u,y:m})}),onPointerUp:it(e.onPointerUp,s.onThumbPointerUp)})}ni.displayName="@mantine/core/ScrollAreaThumb";function Mr(e){const{forceMount:t,...n}=e,r=Zs();return t||r.hasThumb?y.jsx(ni,{...n}):null}Mr.displayName="@mantine/core/ScrollAreaThumb";function ri({children:e,style:t,ref:n,onWheel:r,...o}){const s=Re(),i=ue(n,s.onViewportChange),a=c=>{if(r?.(c),s.scrollbarXEnabled&&s.viewport&&c.shiftKey){const{scrollTop:l,scrollHeight:f,clientHeight:d,scrollWidth:u,clientWidth:m}=s.viewport,g=l<1,h=l>=f-d-1;u>m&&(g||h)&&c.stopPropagation()}};return y.jsx(G,{...o,ref:i,onWheel:a,"data-scrollarea-viewport":!0,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...t},children:y.jsx("div",{...s.getStyles("content"),ref:s.onContentChange,children:e})})}ri.displayName="@mantine/core/ScrollAreaViewport";var Kr={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};function Tn(){return typeof window<"u"}function Ct(e){return oi(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){var t;return(t=(oi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oi(e){return Tn()?e instanceof Node||e instanceof ge(e).Node:!1}function le(e){return Tn()?e instanceof Element||e instanceof ge(e).Element:!1}function Je(e){return Tn()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function gn(e){return!Tn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function _n(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function du(e){return/^(table|td|th)$/.test(Ct(e))}function Pn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const fu=/transform|translate|scale|rotate|perspective|filter/,pu=/paint|layout|strict|content/,ot=e=>!!e&&e!=="none";let lr;function Zr(e){const t=le(e)?je(e):e;return ot(t.transform)||ot(t.translate)||ot(t.scale)||ot(t.rotate)||ot(t.perspective)||!Qr()&&(ot(t.backdropFilter)||ot(t.filter))||fu.test(t.willChange||"")||pu.test(t.contain||"")}function mu(e){let t=at(e);for(;Je(t)&&!zt(t);){if(Zr(t))return t;if(Pn(t))return null;t=at(t)}return null}function Qr(){return lr==null&&(lr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),lr}function zt(e){return/^(html|body|#document)$/.test(Ct(e))}function je(e){return ge(e).getComputedStyle(e)}function Mn(e){return le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gn(e)&&e.host||Ue(e);return gn(t)?t.host:t}function si(e){const t=at(e);return zt(t)?(e.ownerDocument||e).body:Je(t)&&_n(t)?t:si(t)}function Ft(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=si(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=ge(o);if(s){const a=kr(i);return t.concat(i,i.visualViewport||[],_n(o)?o:[],a&&n?Ft(a):[])}else return t.concat(o,Ft(o,[],n))}function kr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const hu=["top","right","bottom","left"],Pe=Math.min,Ce=Math.max,vn=Math.round,nn=Math.floor,He=e=>({x:e,y:e}),gu={left:"right",right:"left",bottom:"top",top:"bottom"};function ii(e,t,n){return Ce(e,Pe(t,n))}function Oe(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function Rt(e){return e.split("-")[1]}function Jr(e){return e==="x"?"y":"x"}function eo(e){return e==="y"?"height":"width"}function Ee(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function to(e){return Jr(Ee(e))}function vu(e,t,n){n===void 0&&(n=!1);const r=Rt(e),o=to(e),s=eo(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=yn(i)),[i,yn(i)]}function yu(e){const t=yn(e);return[$r(e),t,$r(t)]}function $r(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const qo=["left","right"],Ko=["right","left"],bu=["top","bottom"],wu=["bottom","top"];function xu(e,t,n){switch(e){case"top":case"bottom":return n?t?Ko:qo:t?qo:Ko;case"left":case"right":return t?bu:wu;default:return[]}}function Su(e,t,n,r){const o=Rt(e);let s=xu(Le(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map($r)))),s}function yn(e){const t=Le(e);return gu[t]+e.slice(t.length)}function Cu(e){var t,n,r,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function no(e){return typeof e!="number"?Cu(e):{top:e,right:e,bottom:e,left:e}}function Ke(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ru(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&gn(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function rn(e){return e?.ownerDocument||document}function Ar(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var Eu=typeof document<"u",Tu=function(){},bt=Eu?p.useLayoutEffect:Tu;const _u={...Ps};function on(e){const t=p.useRef(e);return bt(()=>{t.current=e}),t}const Pu=_u.useInsertionEffect,Mu=Pu||(e=>e());function Ot(e){const t=p.useRef(()=>{});return Mu(()=>{t.current=e}),p.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function Zo(e,t,n){let{reference:r,floating:o}=e;const s=Ee(t),i=to(t),a=eo(i),c=Le(t),l=s==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,u=r[a]/2-o[a]/2;let m;switch(c){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}const g=Rt(t);return g&&(m[i]+=u*(g==="end"?1:-1)*(n&&l?-1:1)),m}async function ku(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:u=!1,padding:m=0}=Oe(t,e),g=no(m),v=a[u?d==="floating"?"reference":"floating":d],w=Ke(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),S=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(C))&&await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1},E=Ke(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:C,strategy:c}):S);return{top:(w.top-E.top+g.top)/x.y,bottom:(E.bottom-w.bottom+g.bottom)/x.y,left:(w.left-E.left+g.left)/x.x,right:(E.right-w.right+g.right)/x.x}}const $u=50,Au=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:ku},c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Zo(l,r,c),u=r,m=0;const g={};for(let h=0;h<s.length;h++){const v=s[h];if(!v)continue;const{name:w,fn:S}=v,{x:C,y:x,data:E,reset:T}=await S({x:f,y:d,initialPlacement:r,placement:u,strategy:o,middlewareData:g,rects:l,platform:a,elements:{reference:e,floating:t}});f=C??f,d=x??d,g[w]={...g[w],...E},T&&m<$u&&(m++,typeof T=="object"&&(T.placement&&(u=T.placement),T.rects&&(l=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:f,y:d}=Zo(l,u,c)),h=-1)}return{x:f,y:d,placement:u,strategy:o,middlewareData:g}},Nu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:f=0}=Oe(e,t)||{};if(l==null)return{};const d=no(f),u={x:n,y:r},m=to(o),g=eo(m),h=await i.getDimensions(l),v=m==="y",w=v?"top":"left",S=v?"bottom":"right",C=v?"clientHeight":"clientWidth",x=s.reference[g]+s.reference[m]-u[m]-s.floating[g],E=u[m]-s.reference[m],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let R=T?T[C]:0;(!R||!await(i.isElement==null?void 0:i.isElement(T)))&&(R=a.floating[C]||s.floating[g]);const P=x/2-E/2,O=R/2-h[g]/2-1,$=Pe(d[w],O),A=Pe(d[S],O),D=R-h[g]-A,L=R/2-h[g]/2+P,k=ii($,L,D),U=!c.arrow&&Rt(o)!=null&&L!==k&&s.reference[g]/2-(L<$?$:A)-h[g]/2<0,F=U?L<$?L-$:L-D:0;return{[m]:u[m]+F,data:{[m]:k,centerOffset:L-k-F,...U&&{alignmentOffset:F}},reset:U}}}),Iu=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...v}=Oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=Le(o),S=Ee(a),C=Le(a)===a,x=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=u||(C||!h?[yn(a)]:yu(a)),T=g!=="none";!u&&T&&E.push(...Su(a,h,g,x));const R=[a,...E],P=await c.detectOverflow(t,v),O=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&O.push(P[w]),d){const k=vu(o,i,x);O.push(P[k[0]],P[k[1]])}if($=[...$,{placement:o,overflows:O}],!O.every(k=>k<=0)){var A,D;const k=(((A=s.flip)==null?void 0:A.index)||0)+1,U=R[k];if(U&&(!(d==="alignment"?S!==Ee(U):!1)||$.every(j=>Ee(j.placement)===S?j.overflows[0]>0:!0)))return{data:{index:k,overflows:$},reset:{placement:U}};let F=(D=$.filter(N=>N.overflows[0]<=0).sort((N,j)=>N.overflows[1]-j.overflows[1])[0])==null?void 0:D.placement;if(!F)switch(m){case"bestFit":{var L;const N=(L=$.filter(j=>{if(T){const z=Ee(j.placement);return z===S||z==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(z=>z>0).reduce((z,W)=>z+W,0)]).sort((j,z)=>j[1]-z[1])[0])==null?void 0:L[0];N&&(F=N);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Qo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jo(e){return hu.some(t=>e[t]>=0)}const ju=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Oe(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Qo(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Jo(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Qo(i,n.floating);return{data:{escapedOffsets:a,escaped:Jo(a)}}}default:return{}}}}};function ai(e){const t=Pe(...e.map(s=>s.left)),n=Pe(...e.map(s=>s.top)),r=Ce(...e.map(s=>s.right)),o=Ce(...e.map(s=>s.bottom));return{x:t,y:n,width:r-t,height:o-n}}function Ou(e){const t=e.slice().sort((o,s)=>o.y-s.y),n=[];let r=null;for(let o=0;o<t.length;o++){const s=t[o];!r||s.y-r.y>r.height/2?n.push([s]):n[n.length-1].push(s),r=s}return n.map(o=>Ke(ai(o)))}const Lu=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:s,strategy:i}=t,{padding:a=2,x:c,y:l}=Oe(e,t),f=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(r.reference))||[]);if(!f.length)return{};const d=Ou(f),u=Ke(ai(f)),m=no(a);function g(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(v=>c>v.left-m.left&&c<v.right+m.right&&l>v.top-m.top&&l<v.bottom+m.bottom)||u;if(d.length>=2){if(Ee(n)==="y"){const T=d[0],R=d[d.length-1],P=Le(n)==="top",O=T.top,$=R.bottom,A=P?T.left:R.left,D=P?T.right:R.right;return Ke({x:A,y:O,width:D-A,height:$-O})}const v=Le(n)==="left",w=Ce(...d.map(T=>T.right)),S=Pe(...d.map(T=>T.left)),C=d.filter(T=>v?T.left===S:T.right===w),x=C[0].top,E=C[C.length-1].bottom;return Ke({x:S,y:x,width:w-S,height:E-x})}return u}const h=await s.getElementRects({reference:{getBoundingClientRect:g},floating:r.floating,strategy:i});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},ci=new Set(["left","top"]);async function Du(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Le(n),a=Rt(n),c=Ee(n)==="y",l=ci.has(i)?-1:1,f=s&&c?-1:1,d=Oe(t,e);let{mainAxis:u,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),c?{x:m*f,y:u*l}:{x:u*l,y:m*f}}const Bu=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await Du(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},zu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:S=>{let{x:C,y:x}=S;return{x:C,y:x}}},...l}=Oe(e,t),f={x:n,y:r},d=await s.detectOverflow(t,l),u=Ee(o),m=Jr(u);let g=f[m],h=f[u];const v=(S,C)=>ii(C+d[S==="y"?"top":"left"],C,C-d[S==="y"?"bottom":"right"]);i&&(g=v(m,g)),a&&(h=v(u,h));const w=c.fn({...t,[m]:g,[u]:h});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[m]:i,[u]:a}}}}}},Fu=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:o,y:s,placement:i,rects:a,middlewareData:c}=t,{offset:l=0,mainAxis:f=!0,crossAxis:d=!0}=Oe(e,t),u={x:o,y:s},m=Ee(i),g=Jr(m);let h=u[g],v=u[m];const w=Oe(l,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(r=w.crossAxis)!=null?r:0};if(f){const E=g==="y"?"height":"width",T=a.reference[g]-a.floating[E]+S.mainAxis,R=a.reference[g]+a.reference[E]-S.mainAxis;h<T?h=T:h>R&&(h=R)}if(d){var C,x;const E=g==="y"?"width":"height",T=ci.has(Le(i)),R=a.reference[m]-a.floating[E]+(T&&((C=c.offset)==null?void 0:C[m])||0)+(T?0:S.crossAxis),P=a.reference[m]+a.reference[E]+(T?0:((x=c.offset)==null?void 0:x[m])||0)-(T?S.crossAxis:0);v<R?v=R:v>P&&(v=P)}return{[g]:h,[m]:v}}}},Hu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:s}=t,{apply:i=()=>{},...a}=Oe(e,t),c=await o.detectOverflow(t,a),l=Le(n),f=Rt(n),d=Ee(n)==="y",{width:u,height:m}=r.floating;let g,h;l==="top"||l==="bottom"?(g=l,h=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(h=l,g=f==="end"?"top":"bottom");const v=m-c.top-c.bottom,w=u-c.left-c.right,S=Pe(m-c[g],v),C=Pe(u-c[h],w),x=t.middlewareData.shift,E=!x;let T=S,R=C;x!=null&&x.enabled.x&&(R=w),x!=null&&x.enabled.y&&(T=v),E&&!f&&(d?R=u-2*Ce(c.left,c.right):T=m-2*Ce(c.top,c.bottom)),await i({...t,availableWidth:R,availableHeight:T});const P=await o.getDimensions(s.floating);return u!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}};function li(e){const t=je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Je(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=vn(n)!==s||vn(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function ro(e){return le(e)?e:e.contextElement}function vt(e){const t=ro(e);if(!Je(t))return He(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=li(t);let i=(s?vn(n.width):n.width)/r,a=(s?vn(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Wu=He(0);function ui(e){const t=ge(e);return!Qr()||!t.visualViewport?Wu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vu(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ge(e)}function ct(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ro(e);let i=He(1);t&&(r?le(r)&&(i=vt(r)):i=vt(e));const a=Vu(s,n,r)?ui(s):He(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,f=o.width/i.x,d=o.height/i.y;if(s&&r){const u=ge(s),m=le(r)?ge(r):r;let g=u,h=kr(g);for(;h&&m!==g;){const v=vt(h),w=h.getBoundingClientRect(),S=je(h),C=w.left+(h.clientLeft+parseFloat(S.paddingLeft))*v.x,x=w.top+(h.clientTop+parseFloat(S.paddingTop))*v.y;c*=v.x,l*=v.y,f*=v.x,d*=v.y,c+=C,l+=x,g=ge(h),h=kr(g)}}return Ke({width:f,height:d,x:c,y:l})}function kn(e,t){const n=Mn(e).scrollLeft;return t?t.left+n:ct(Ue(e)).left+n}function di(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-kn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Yu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Ue(r),a=t?Pn(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=He(1);const f=He(0),d=Je(r);if((d||!s)&&((Ct(r)!=="body"||_n(i))&&(c=Mn(r)),d)){const m=ct(r);l=vt(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const u=i&&!d&&!s?di(i,c):He(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+u.x,y:n.y*l.y-c.scrollTop*l.y+f.y+u.y}}function Uu(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Xu(e){const t=Mn(e),n=e.ownerDocument.body,r=Ce(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Ce(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+kn(e);const i=-t.scrollTop;return je(n).direction==="rtl"&&(s+=Ce(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:s,y:i}}const Gu=25;function qu(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",o=ge(e),s=Ue(e),i=o.visualViewport;let a=s.clientWidth,c=s.clientHeight,l=0,f=0;if(i){const u=!Qr()||t==="fixed";r?u||(l=-i.offsetLeft,f=-i.offsetTop):(a=i.width,c=i.height,u&&(l=i.offsetLeft,f=i.offsetTop))}if(kn(s)<=0){const u=s.ownerDocument,m=u.body,g=getComputedStyle(m),h=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(s.clientWidth-m.clientWidth-h),w=getComputedStyle(s).scrollbarGutter==="stable both-edges"?v/2:v;w<=Gu&&(a-=w)}return{width:a,height:c,x:l,y:f}}function Ku(e,t){const n=ct(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=vt(e),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function es(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=qu(e,n,t);else if(t==="document")r=Xu(Ue(e));else if(le(t))r=Ku(t,n);else{const o=ui(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ke(r)}function Zu(e,t){const n=t.get(e);if(n)return n;let r=Ft(e,[],!1).filter(a=>le(a)&&Ct(a)!=="body"),o=null;const s=je(e).position==="fixed";let i=s?at(e):e;for(;le(i)&&!zt(i);){const a=je(i),c=Zr(i),l=o?o.position:s?"fixed":"";!c&&(l==="fixed"||l==="absolute"&&a.position==="static")?r=r.filter(d=>d!==i):o=a,i=at(i)}return t.set(e,r),r}function Qu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Pn(t)?[]:Zu(t,this._c):[].concat(n),r],a=es(t,i[0],o);let c=a.top,l=a.right,f=a.bottom,d=a.left;for(let u=1;u<i.length;u++){const m=es(t,i[u],o);c=Ce(m.top,c),l=Pe(m.right,l),f=Pe(m.bottom,f),d=Ce(m.left,d)}return{width:l-d,height:f-c,x:d,y:c}}function Ju(e){const{width:t,height:n}=li(e);return{width:t,height:n}}function ed(e,t,n){const r=Je(t),o=Ue(t),s=n==="fixed",i=ct(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=He(0);if((r||!s)&&((Ct(t)!=="body"||_n(o))&&(a=Mn(t)),r)){const u=ct(t,!0,s,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}!r&&o&&(c.x=kn(o));const l=o&&!r&&!s?di(o,a):He(0),f=i.left+a.scrollLeft-c.x-l.x,d=i.top+a.scrollTop-c.y-l.y;return{x:f,y:d,width:i.width,height:i.height}}function ur(e){return je(e).position==="static"}function ts(e,t){if(!Je(e)||je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ue(e)===n&&(n=n.ownerDocument.body),n}function fi(e,t){const n=ge(e);if(Pn(e))return n;if(!Je(e)){let o=at(e);for(;o&&!zt(o);){if(le(o)&&!ur(o))return o;o=at(o)}return n}let r=ts(e,t);for(;r&&du(r)&&ur(r);)r=ts(r,t);return r&&zt(r)&&ur(r)&&!Zr(r)?n:r||mu(e)||n}const td=async function(e){const t=this.getOffsetParent||fi,n=this.getDimensions,r=await n(e.floating);return{reference:ed(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nd(e){return je(e).direction==="rtl"}const rd={convertOffsetParentRelativeRectToViewportRelativeRect:Yu,getDocumentElement:Ue,getClippingRect:Qu,getOffsetParent:fi,getElementRects:td,getClientRects:Uu,getDimensions:Ju,getScale:vt,isElement:le,isRTL:nd};function pi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function od(e,t,n){let r=null,o;const s=Ue(e);function i(){var f;clearTimeout(o),(f=r)==null||f.disconnect(),r=null}function a(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),i();const u=e.getBoundingClientRect(),{left:m,top:g,width:h,height:v}=u;if(f||t(),!h||!v)return;const w=nn(g),S=nn(s.clientWidth-(m+h)),C=nn(s.clientHeight-(g+v)),x=nn(m),T={rootMargin:-w+"px "+-S+"px "+-C+"px "+-x+"px",threshold:Ce(0,Pe(1,d))||1};let R=!0;function P(O){const $=O[0].intersectionRatio;if(!pi(u,e.getBoundingClientRect()))return a();if($!==d){if(!R)return a();$?a(!1,$):o=setTimeout(()=>{a(!1,1e-7)},1e3)}R=!1}try{r=new IntersectionObserver(P,{...T,root:s.ownerDocument})}catch{r=new IntersectionObserver(P,T)}r.observe(e)}const c=ge(e),l=()=>a(n);return c.addEventListener("resize",l),a(!0),()=>{c.removeEventListener("resize",l),i()}}function ns(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=ro(e),f=o||s?[...l?Ft(l):[],...t?Ft(t):[]]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n),s&&w.addEventListener("resize",n)});const d=l&&a?od(l,n,s):null;let u=-1,m=null;i&&(m=new ResizeObserver(w=>{let[S]=w;S&&S.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),l&&!c&&m.observe(l),t&&m.observe(t));let g,h=c?ct(e):null;c&&v();function v(){const w=ct(e);h&&!pi(h,w)&&n(),h=w,g=requestAnimationFrame(v)}return n(),()=>{var w;f.forEach(S=>{o&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),d?.(),(w=m)==null||w.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const sd=Bu,id=zu,ad=Iu,cd=Hu,ld=ju,rs=Nu,ud=Lu,dd=Fu,fd=(e,t,n)=>{const r=new Map,o=n??{},s={...rd,...o.platform,_c:r};return Au(e,t,{...o,platform:s})};var pd=typeof document<"u",md=function(){},un=pd?p.useLayoutEffect:md;function bn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!bn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!bn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function mi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function os(e,t){const n=mi(e);return Math.round(t*n)/n}function dr(e){const t=p.useRef(e);return un(()=>{t.current=e}),t}function hd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[u,m]=p.useState(r);bn(u,r)||m(r);const[g,h]=p.useState(null),[v,w]=p.useState(null),S=p.useCallback(j=>{j!==T.current&&(T.current=j,h(j))},[]),C=p.useCallback(j=>{j!==R.current&&(R.current=j,w(j))},[]),x=s||g,E=i||v,T=p.useRef(null),R=p.useRef(null),P=p.useRef(f),O=c!=null,$=dr(c),A=dr(o),D=dr(l),L=p.useCallback(()=>{if(!T.current||!R.current)return;const j={placement:t,strategy:n,middleware:u};A.current&&(j.platform=A.current),fd(T.current,R.current,j).then(z=>{const W={...z,isPositioned:D.current!==!1};k.current&&!bn(P.current,W)&&(P.current=W,Br.flushSync(()=>{d(W)}))})},[u,t,n,A,D]);un(()=>{l===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(j=>({...j,isPositioned:!1})))},[l]);const k=p.useRef(!1);un(()=>(k.current=!0,()=>{k.current=!1}),[]),un(()=>{if(x&&(T.current=x),E&&(R.current=E),x&&E){if($.current)return $.current(x,E,L);L()}},[x,E,L,$,O]);const U=p.useMemo(()=>({reference:T,floating:R,setReference:S,setFloating:C}),[S,C]),F=p.useMemo(()=>({reference:x,floating:E}),[x,E]),N=p.useMemo(()=>{const j={position:n,left:0,top:0};if(!F.floating)return j;const z=os(F.floating,f.x),W=os(F.floating,f.y);return a?{...j,transform:"translate("+z+"px, "+W+"px)",...mi(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:W}},[n,a,F.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:L,refs:U,elements:F,floatingStyles:N}),[f,L,U,F,N])}const gd=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?rs({element:r.current,padding:o}).fn(n):{}:r?rs({element:r,padding:o}).fn(n):{}}}},vd=(e,t)=>{const n=sd(e);return{name:n.name,fn:n.fn,options:[e,t]}},yd=(e,t)=>{const n=id(e);return{name:n.name,fn:n.fn,options:[e,t]}},bd=(e,t)=>({fn:dd(e).fn,options:[e,t]}),wd=(e,t)=>{const n=ad(e);return{name:n.name,fn:n.fn,options:[e,t]}},xd=(e,t)=>{const n=cd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sd=(e,t)=>{const n=ld(e);return{name:n.name,fn:n.fn,options:[e,t]}},ss=(e,t)=>{const n=ud(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cd=(e,t)=>{const n=gd(e);return{name:n.name,fn:n.fn,options:[e,t]}};function hi(e){const t=p.useRef(void 0),n=p.useCallback(r=>{const o=e.map(s=>{if(s!=null){if(typeof s=="function"){const i=s,a=i(r);return typeof a=="function"?a:()=>{i(null)}}return s.current=r,()=>{s.current=null}}});return()=>{o.forEach(s=>s?.())}},e);return p.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const Rd="data-floating-ui-focusable",is="active",as="selected",Ed={...Ps};let cs=!1,Td=0;const ls=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Td++;function _d(){const[e,t]=p.useState(()=>cs?ls():void 0);return bt(()=>{e==null&&t(ls())},[]),p.useEffect(()=>{cs=!0},[]),e}const Pd=Ed.useId,Md=Pd||_d;function kd(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const $d=p.createContext(null),Ad=p.createContext(null),gi=()=>{var e;return((e=p.useContext($d))==null?void 0:e.id)||null},vi=()=>p.useContext(Ad);function Nd(e){return"data-floating-ui-"+e}function xe(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const us=Nd("safe-polygon");function fr(e,t,n){if(n&&!Ar(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}function pr(e){return typeof e=="function"?e():e}function Id(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:s,elements:i}=e,{enabled:a=!0,delay:c=0,handleClose:l=null,mouseOnly:f=!1,restMs:d=0,move:u=!0}=t,m=vi(),g=gi(),h=on(l),v=on(c),w=on(n),S=on(d),C=p.useRef(),x=p.useRef(-1),E=p.useRef(),T=p.useRef(-1),R=p.useRef(!0),P=p.useRef(!1),O=p.useRef(()=>{}),$=p.useRef(!1),A=Ot(()=>{var N;const j=(N=o.current.openEvent)==null?void 0:N.type;return j?.includes("mouse")&&j!=="mousedown"});p.useEffect(()=>{if(!a)return;function N(j){let{open:z}=j;z||(xe(x),xe(T),R.current=!0,$.current=!1)}return s.on("openchange",N),()=>{s.off("openchange",N)}},[a,s]),p.useEffect(()=>{if(!a||!h.current||!n)return;function N(z){A()&&r(!1,z,"hover")}const j=rn(i.floating).documentElement;return j.addEventListener("mouseleave",N),()=>{j.removeEventListener("mouseleave",N)}},[i.floating,n,r,a,h,A]);const D=p.useCallback(function(N,j,z){j===void 0&&(j=!0),z===void 0&&(z="hover");const W=fr(v.current,"close",C.current);W&&!E.current?(xe(x),x.current=window.setTimeout(()=>r(!1,N,z),W)):j&&(xe(x),r(!1,N,z))},[v,r]),L=Ot(()=>{O.current(),E.current=void 0}),k=Ot(()=>{if(P.current){const N=rn(i.floating).body;N.style.pointerEvents="",N.removeAttribute(us),P.current=!1}}),U=Ot(()=>o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1);p.useEffect(()=>{if(!a)return;function N(_){if(xe(x),R.current=!1,f&&!Ar(C.current)||pr(S.current)>0&&!fr(v.current,"open"))return;const I=fr(v.current,"open",C.current);I?x.current=window.setTimeout(()=>{w.current||r(!0,_,"hover")},I):n||r(!0,_,"hover")}function j(_){if(U()){k();return}O.current();const I=rn(i.floating);if(xe(T),$.current=!1,h.current&&o.current.floatingContext){n||xe(x),E.current=h.current({...o.current.floatingContext,tree:m,x:_.clientX,y:_.clientY,onClose(){k(),L(),U()||D(_,!0,"safe-polygon")}});const Y=E.current;I.addEventListener("mousemove",Y),O.current=()=>{I.removeEventListener("mousemove",Y)};return}(C.current!=="touch"||!Ru(i.floating,_.relatedTarget))&&D(_)}function z(_){U()||o.current.floatingContext&&(h.current==null||h.current({...o.current.floatingContext,tree:m,x:_.clientX,y:_.clientY,onClose(){k(),L(),U()||D(_)}})(_))}function W(){xe(x)}function b(_){U()||D(_,!1)}if(le(i.domReference)){const _=i.domReference,I=i.floating;return n&&_.addEventListener("mouseleave",z),u&&_.addEventListener("mousemove",N,{once:!0}),_.addEventListener("mouseenter",N),_.addEventListener("mouseleave",j),I&&(I.addEventListener("mouseleave",z),I.addEventListener("mouseenter",W),I.addEventListener("mouseleave",b)),()=>{n&&_.removeEventListener("mouseleave",z),u&&_.removeEventListener("mousemove",N),_.removeEventListener("mouseenter",N),_.removeEventListener("mouseleave",j),I&&(I.removeEventListener("mouseleave",z),I.removeEventListener("mouseenter",W),I.removeEventListener("mouseleave",b))}}},[i,a,e,f,u,D,L,k,r,n,w,m,v,h,o,U,S]),bt(()=>{var N;if(a&&n&&(N=h.current)!=null&&(N=N.__options)!=null&&N.blockPointerEvents&&A()){P.current=!0;const z=i.floating;if(le(i.domReference)&&z){var j;const W=rn(i.floating).body;W.setAttribute(us,"");const b=i.domReference,_=m==null||(j=m.nodesRef.current.find(I=>I.id===g))==null||(j=j.context)==null?void 0:j.elements.floating;return _&&(_.style.pointerEvents=""),W.style.pointerEvents="none",b.style.pointerEvents="auto",z.style.pointerEvents="auto",()=>{W.style.pointerEvents="",b.style.pointerEvents="",z.style.pointerEvents=""}}}},[a,n,g,i,m,h,A]),bt(()=>{n||(C.current=void 0,$.current=!1,L(),k())},[n,L,k]),p.useEffect(()=>()=>{L(),xe(x),xe(T),k()},[a,i.domReference,L,k]);const F=p.useMemo(()=>{function N(j){C.current=j.pointerType}return{onPointerDown:N,onPointerEnter:N,onMouseMove(j){const{nativeEvent:z}=j;function W(){!R.current&&!w.current&&r(!0,z,"hover")}f&&!Ar(C.current)||n||pr(S.current)===0||$.current&&j.movementX**2+j.movementY**2<2||(xe(T),C.current==="touch"?W():($.current=!0,T.current=window.setTimeout(W,pr(S.current))))}}},[f,r,n,w,S]);return p.useMemo(()=>a?{reference:F}:{},[a,F])}function mr(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&gn(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function jd(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Od(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Md(),s=p.useRef({}),[i]=p.useState(()=>kd()),a=gi()!=null,[c,l]=p.useState(r.reference),f=Ot((m,g,h)=>{s.current.openEvent=m?g:void 0,i.emit("openchange",{open:m,event:g,reason:h,nested:a}),n?.(m,g,h)}),d=p.useMemo(()=>({setPositionReference:l}),[]),u=p.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return p.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:u,events:i,floatingId:o,refs:d}),[t,f,u,i,o,d])}function yi(e){var t,n;let{elements:r,...o}=e===void 0?{}:e;const{nodeId:s}=o,i=Od({...o,elements:{reference:(t=r?.reference)!=null?t:null,floating:(n=r?.floating)!=null?n:null}}),a=o.rootContext||i,c=a.elements,[l,f]=p.useState(null),[d,u]=p.useState(null),g=c?.domReference||l,h=p.useRef(null),v=vi();bt(()=>{g&&(h.current=g)},[g]);const w=hd({...o,elements:{...c,...d&&{reference:d}}}),S=p.useCallback(R=>{const P=le(R)?{getBoundingClientRect:()=>R.getBoundingClientRect(),getClientRects:()=>R.getClientRects(),contextElement:R}:R;u(P),w.refs.setReference(P)},[w.refs]),C=p.useCallback(R=>{(le(R)||R===null)&&(h.current=R,f(R)),(le(w.refs.reference.current)||w.refs.reference.current===null||R!==null&&!le(R))&&w.refs.setReference(R)},[w.refs]),x=p.useMemo(()=>({...w.refs,setReference:C,setPositionReference:S,domReference:h}),[w.refs,C,S]),E=p.useMemo(()=>({...w.elements,domReference:g}),[w.elements,g]),T=p.useMemo(()=>({...w,...a,refs:x,elements:E,nodeId:s}),[w,x,E,s,a]);return bt(()=>{a.dataRef.current.floatingContext=T;const R=v?.nodesRef.current.find(P=>P.id===s);R&&(R.context=T)}),p.useMemo(()=>({...w,context:T,refs:x,elements:E}),[w,x,E,T])}function hr(e,t,n){const r=new Map,o=n==="item";let s=e;if(o&&e){const{[is]:i,[as]:a,...c}=e;s=c}return{...n==="floating"&&{tabIndex:-1,[Rd]:""},...s,...t.map(i=>{const a=i?i[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((i,a)=>(a&&Object.entries(a).forEach(c=>{let[l,f]=c;if(!(o&&[is,as].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof f=="function"){var d;(d=r.get(l))==null||d.push(f),i[l]=function(){for(var u,m=arguments.length,g=new Array(m),h=0;h<m;h++)g[h]=arguments[h];return(u=r.get(l))==null?void 0:u.map(v=>v(...g)).find(v=>v!==void 0)}}}else i[l]=f}),i),{})}}function Ld(e){e===void 0&&(e=[]);const t=e.map(a=>a?.reference),n=e.map(a=>a?.floating),r=e.map(a=>a?.item),o=p.useCallback(a=>hr(a,e,"reference"),t),s=p.useCallback(a=>hr(a,e,"floating"),n),i=p.useCallback(a=>hr(a,e,"item"),r);return p.useMemo(()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:i}),[o,s,i])}function bi(e,t,n){return n===void 0&&(n=!0),e.filter(o=>{var s;return o.parentId===t&&(!n||((s=o.context)==null?void 0:s.open))}).flatMap(o=>[o,...bi(e,o.id,n)])}function ds(e,t){const[n,r]=e;let o=!1;const s=t.length;for(let i=0,a=s-1;i<s;a=i++){const[c,l]=t[i]||[0,0],[f,d]=t[a]||[0,0];l>=r!=d>=r&&n<=(f-c)*(r-l)/(d-l)+c&&(o=!o)}return o}function Dd(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Bd(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o={current:-1};let s=!1,i=null,a=null,c=typeof performance<"u"?performance.now():0;function l(d,u){const m=performance.now(),g=m-c;if(i===null||a===null||g===0)return i=d,a=u,c=m,null;const h=d-i,v=u-a,S=Math.sqrt(h*h+v*v)/g;return i=d,a=u,c=m,S}const f=d=>{let{x:u,y:m,placement:g,elements:h,onClose:v,nodeId:w,tree:S}=d;return function(x){function E(){xe(o),v()}if(xe(o),!h.domReference||!h.floating||g==null||u==null||m==null)return;const{clientX:T,clientY:R}=x,P=[T,R],O=jd(x),$=x.type==="mouseleave",A=mr(h.floating,O),D=mr(h.domReference,O),L=h.domReference.getBoundingClientRect(),k=h.floating.getBoundingClientRect(),U=g.split("-")[0],F=u>k.right-k.width/2,N=m>k.bottom-k.height/2,j=Dd(P,L),z=k.width>L.width,W=k.height>L.height,b=(z?L:k).left,_=(z?L:k).right,I=(W?L:k).top,B=(W?L:k).bottom;if(A&&(s=!0,!$))return;if(D&&(s=!1),D&&!$){s=!0;return}if($&&le(x.relatedTarget)&&mr(h.floating,x.relatedTarget)||S&&bi(S.nodesRef.current,w).length)return;if(U==="top"&&m>=L.bottom-1||U==="bottom"&&m<=L.top+1||U==="left"&&u>=L.right-1||U==="right"&&u<=L.left+1)return E();let Y=[];switch(U){case"top":Y=[[b,L.top+1],[b,k.bottom-1],[_,k.bottom-1],[_,L.top+1]];break;case"bottom":Y=[[b,k.top+1],[b,L.bottom-1],[_,L.bottom-1],[_,k.top+1]];break;case"left":Y=[[k.right-1,B],[k.right-1,I],[L.left+1,I],[L.left+1,B]];break;case"right":Y=[[L.right-1,B],[L.right-1,I],[k.left+1,I],[k.left+1,B]];break}function V(X){let[q,Z]=X;switch(U){case"top":{const te=[z?q+t/2:F?q+t*4:q-t*4,Z+t+1],se=[z?q-t/2:F?q+t*4:q-t*4,Z+t+1],re=[[k.left,F||z?k.bottom-t:k.top],[k.right,F?z?k.bottom-t:k.top:k.bottom-t]];return[te,se,...re]}case"bottom":{const te=[z?q+t/2:F?q+t*4:q-t*4,Z-t],se=[z?q-t/2:F?q+t*4:q-t*4,Z-t],re=[[k.left,F||z?k.top+t:k.bottom],[k.right,F?z?k.top+t:k.bottom:k.top+t]];return[te,se,...re]}case"left":{const te=[q+t+1,W?Z+t/2:N?Z+t*4:Z-t*4],se=[q+t+1,W?Z-t/2:N?Z+t*4:Z-t*4];return[...[[N||W?k.right-t:k.left,k.top],[N?W?k.right-t:k.left:k.right-t,k.bottom]],te,se]}case"right":{const te=[q-t,W?Z+t/2:N?Z+t*4:Z-t*4],se=[q-t,W?Z-t/2:N?Z+t*4:Z-t*4],re=[[N||W?k.left+t:k.right,k.top],[N?W?k.left+t:k.right:k.left+t,k.bottom]];return[te,se,...re]}}}if(!ds([T,R],Y)){if(s&&!j)return E();if(!$&&r){const X=l(x.clientX,x.clientY);if(X!==null&&X<.1)return E()}ds([T,R],V([u,m]))?!s&&r&&(o.current=window.setTimeout(E,40)):E()}}};return f.__options={blockPointerEvents:n},f}const wi={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},xi=(e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let o=n;return n&&r&&(r==="x"?o=`${n} auto`:r==="y"&&(o=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":M(t),"--scrollarea-over-scroll-behavior":o}}},Et=K(e=>{const t=H("ScrollArea",wi,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,scrollbarSize:a,vars:c,type:l,scrollHideDelay:f,viewportProps:d,viewportRef:u,onScrollPositionChange:m,children:g,offsetScrollbars:h,scrollbars:v,onBottomReached:w,onTopReached:S,onLeftReached:C,onRightReached:x,overscrollBehavior:E,startScrollPosition:T,verticalScrollbarPosition:R,attributes:P,...O}=t,[$,A]=p.useState(!1),[D,L]=p.useState(!1),[k,U]=p.useState(!1),F=p.useRef(!0),N=p.useRef(!1),j=p.useRef(!0),z=p.useRef(!1),W=J({name:"ScrollArea",props:t,classes:Kr,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:P,vars:c,varsResolver:xi}),b=p.useRef(null),[_,I]=p.useState(null),B=p.useCallback(V=>{I(X=>X===V?X:V)},[]),Y=hi([u,b,B]);return Qe(h==="present"?_:null,()=>{const V=b.current;V&&(L(V.scrollHeight>V.clientHeight),U(V.scrollWidth>V.clientWidth))}),Ze(()=>{T&&b.current&&b.current.scrollTo({left:T.x??0,top:T.y??0})},[]),y.jsxs(Xs,{getStyles:W,type:l==="never"?"always":l,scrollHideDelay:f,scrollbars:v,...W("root"),...O,children:[y.jsx(ri,{...d,...W("viewport",{style:d?.style}),ref:Y,"data-offset-scrollbars":h===!0?"xy":h||void 0,"data-scrollbars":v||void 0,"data-vertical-scrollbar-position":R||void 0,"data-horizontal-hidden":h==="present"&&!k?"true":void 0,"data-vertical-hidden":h==="present"&&!D?"true":void 0,onScroll:V=>{d?.onScroll?.(V),m?.({x:V.currentTarget.scrollLeft,y:V.currentTarget.scrollTop});const{scrollTop:X,scrollHeight:q,clientHeight:Z,scrollLeft:te,scrollWidth:se,clientWidth:re}=V.currentTarget,de=X-(q-Z)>=-.8,ie=X===0;de&&!N.current&&w?.(),ie&&!F.current&&S?.(),N.current=de,F.current=ie;const Ae=te-(se-re)>=-.8,Se=te===0;Ae&&!z.current&&x?.(),Se&&!j.current&&C?.(),z.current=Ae,j.current=Se},children:g}),(v==="xy"||v==="x")&&y.jsx(Pr,{...W("scrollbar"),orientation:"horizontal","data-vertical-scrollbar-position":R||void 0,"data-hidden":l==="never"||h==="present"&&!k?!0:void 0,forceMount:!0,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:y.jsx(Mr,{...W("thumb")})}),(v==="xy"||v==="y")&&y.jsx(Pr,{...W("scrollbar"),orientation:"vertical","data-vertical-scrollbar-position":R||void 0,"data-hidden":l==="never"||h==="present"&&!D?!0:void 0,forceMount:!0,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:y.jsx(Mr,{...W("thumb")})}),y.jsx(ou,{...W("corner"),"data-vertical-scrollbar-position":R||void 0,"data-hovered":$||void 0,"data-hidden":l==="never"||void 0})]})});Et.displayName="@mantine/core/ScrollArea";const oo=K(e=>{const{children:t,classNames:n,styles:r,scrollbarSize:o,scrollHideDelay:s,type:i,dir:a,offsetScrollbars:c,overscrollBehavior:l,viewportRef:f,onScrollPositionChange:d,unstyled:u,variant:m,viewportProps:g,scrollbars:h,style:v,vars:w,onBottomReached:S,onTopReached:C,startScrollPosition:x,verticalScrollbarPosition:E,onOverflowChange:T,...R}=H("ScrollAreaAutosize",wi,e),P=p.useRef(null),[O,$]=p.useState(null),A=p.useCallback(F=>{$(N=>N===F?N:F)},[]),D=hi([f,P,A]),L=p.useRef(!1),k=p.useRef(!1),U=p.useEffectEvent(()=>{const F=P.current;if(!F||!T)return;const N=F.scrollHeight>F.clientHeight;N!==L.current&&(k.current?T(N):(k.current=!0,N&&T(!0)),L.current=N)});return Qe(T?O:null,U),y.jsx(G,{...R,variant:m,style:[{display:"flex",overflow:"hidden"},v],children:y.jsx(G,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...h==="y"&&{minWidth:0},...h==="x"&&{minHeight:0},...h==="xy"&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:y.jsx(Et,{classNames:n,styles:r,scrollHideDelay:s,scrollbarSize:o,type:i,dir:a,offsetScrollbars:c,overscrollBehavior:l,viewportRef:D,onScrollPositionChange:d,unstyled:u,variant:m,viewportProps:g,vars:w,scrollbars:h,onBottomReached:S,onTopReached:C,startScrollPosition:x,verticalScrollbarPosition:E,"data-autosize":"true",children:t})})})});Et.classes=Kr;Et.varsResolver=xi;oo.displayName="@mantine/core/ScrollAreaAutosize";oo.classes=Kr;Et.Autosize=oo;var Si={root:"m_87cf2631"};const zd={__staticSelector:"UnstyledButton"},Be=ke(e=>{const t=H("UnstyledButton",zd,e),{className:n,component:r="button",__staticSelector:o,unstyled:s,classNames:i,styles:a,style:c,attributes:l,...f}=t,d=J({name:o,props:t,classes:Si,className:n,style:c,classNames:i,styles:a,unstyled:s,attributes:l});return y.jsx(G,{...d("root",{focusable:!0}),component:r,type:r==="button"?"button":void 0,...f})});Be.classes=Si;Be.displayName="@mantine/core/UnstyledButton";var Ci={root:"m_515a97f8"};const so=K(e=>{const t=H("VisuallyHidden",null,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,attributes:c,...l}=t,f=J({name:"VisuallyHidden",classes:Ci,props:t,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:c});return y.jsx(G,{component:"span",...f("root"),...l})});so.classes=Ci;so.displayName="@mantine/core/VisuallyHidden";var Ri={root:"m_1b7284a3"};const Ei=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:he(t),"--paper-shadow":Lr(n)}}),$n=ke(e=>{const t=H("Paper",null,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,withBorder:a,vars:c,radius:l,shadow:f,variant:d,mod:u,attributes:m,...g}=t,h=J({name:"Paper",props:t,classes:Ri,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:m,vars:c,varsResolver:Ei});return y.jsx(G,{mod:[{withBorder:a},u],...h("root"),variant:d,...g})});$n.classes=Ri;$n.varsResolver=Ei;$n.displayName="@mantine/core/Paper";function fs(e,t,n,r){return e==="center"||r==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function ps(e,t,n,r,o){return e==="center"||r==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:n}:e==="start"?{[o==="ltr"?"left":"right"]:n}:{}}const Fd={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Hd({position:e,arrowSize:t,dir:n}){const[r,o]=e.split("-");if(!o)return;const s={width:t,height:t,position:"absolute"};if(r==="bottom"){const i=o==="start",a=i?n==="ltr"?"left":"right":n==="ltr"?"right":"left";return{...s,top:-t,[a]:0,clipPath:i!==(n==="rtl")?"polygon(0% 0%, 0% 100%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}if(r==="top"){const i=o==="start",a=i?n==="ltr"?"left":"right":n==="ltr"?"right":"left";return{...s,bottom:-t,[a]:0,clipPath:i!==(n==="rtl")?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 100% 0%, 100% 100%)"}}if(r==="left")return{...s,right:-t,[o==="start"?"top":"bottom"]:0,clipPath:o==="start"?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 0% 100%, 100% 100%)"};if(r==="right")return{...s,left:-t,[o==="start"?"top":"bottom"]:0,clipPath:o==="start"?"polygon(0% 0%, 100% 0%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}function Wd({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:s,arrowY:i,dir:a}){if(o==="merge"){const u=Hd({position:e,arrowSize:t,dir:a});if(u)return u}const[c,l="center"]=e.split("-"),f={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[Fd[c]]:r},d=-t/2;return c==="left"?{...f,...fs(l,i,n,o),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...f,...fs(l,i,n,o),left:d,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...f,...ps(l,s,n,o,a),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...f,...ps(l,s,n,o,a),top:d,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}function Vd({position:e,dir:t}){const[n,r]=e.split("-");if(!r)return;const o=r==="start"&&t==="ltr"||r==="end"&&t==="rtl";if(n==="bottom")return o?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n==="top")return o?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n==="left")return r==="start"?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n==="right")return r==="start"?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function Ti({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,visible:s,arrowX:i,arrowY:a,style:c,...l}){const{dir:f}=Ye();return s?y.jsx("div",{role:"presentation",...l,style:{...c,...Wd({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,dir:f,arrowX:i,arrowY:a})}}):null}Ti.displayName="@mantine/core/FloatingArrow";function _i(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,r]=t.split("-"),o=n==="right"?"left":"right";return r===void 0?o:`${o}-${r}`}return t}function Yd({open:e,close:t,openDelay:n,closeDelay:r}){const o=p.useRef(-1),s=p.useRef(-1),i=()=>{window.clearTimeout(o.current),window.clearTimeout(s.current)},a=()=>{i(),n===0||n===void 0?e():o.current=window.setTimeout(e,n)},c=()=>{i(),r===0||r===void 0?t():s.current=window.setTimeout(t,r)};return p.useEffect(()=>i,[]),{openDropdown:a,closeDropdown:c}}var Pi={root:"m_9814e45f"};const Ud={zIndex:ut("modal")},Mi=(e,{gradient:t,color:n,backgroundOpacity:r,blur:o,radius:s,zIndex:i})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&qe(n||"#000",r??.6)||void 0,"--overlay-filter":o?`blur(${M(o)})`:void 0,"--overlay-radius":s===void 0?void 0:he(s),"--overlay-z-index":i?.toString()}}),Vt=ke(e=>{const t=H("Overlay",Ud,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,fixed:c,center:l,children:f,radius:d,zIndex:u,gradient:m,blur:g,color:h,backgroundOpacity:v,mod:w,attributes:S,...C}=t,x=J({name:"Overlay",props:t,classes:Pi,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:S,vars:a,varsResolver:Mi});return y.jsx(G,{...x("root"),mod:[{center:l,fixed:c},w],...C,children:f})});Vt.classes=Pi;Vt.varsResolver=Mi;Vt.displayName="@mantine/core/Overlay";function gr(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}function Xd({target:e,reuseTargetNode:t,...n}){if(e)return typeof e=="string"?document.querySelector(e)||gr(n):e;if(t){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const o=gr(n);return o.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(o),o}return gr(n)}const Gd={reuseTargetNode:!0},ki=K(e=>{const{children:t,target:n,reuseTargetNode:r,ref:o,...s}=H("Portal",Gd,e),[i,a]=p.useState(!1),c=p.useRef(null);return Ze(()=>(a(!0),c.current=Xd({target:n,reuseTargetNode:r,...s}),Rr(o,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!i||!c.current?null:Br.createPortal(y.jsx(y.Fragment,{children:t}),c.current)});ki.displayName="@mantine/core/Portal";const An=K(({withinPortal:e=!0,children:t,...n})=>Sn()==="test"||!e?y.jsx(y.Fragment,{children:t}):y.jsx(ki,{...n,children:t}));An.displayName="@mantine/core/OptionalPortal";const It=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),sn={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:{...It("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...It("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...It("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...It("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...It("top"),common:{transformOrigin:"top right"}}},ms={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function hs({transition:e,state:t,duration:n,timingFunction:r}){const o={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e=="string"?e in sn?{transitionProperty:sn[e].transitionProperty,...o,...sn[e].common,...sn[e][ms[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[ms[t]]}}function qd({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:s,onEntered:i,onExited:a,enterDelay:c,exitDelay:l}){const f=Me(),d=Os(),u=f.respectReducedMotion?d:!1,[m,g]=p.useState(u?0:e),[h,v]=p.useState(r?"entered":"exited"),w=p.useRef(-1),S=p.useRef(-1),C=p.useRef(-1);function x(){window.clearTimeout(w.current),window.clearTimeout(S.current),cancelAnimationFrame(C.current)}const E=R=>{x();const P=R?o:s,O=R?i:a,$=u?0:R?e:t;g($),$===0?(typeof P=="function"&&P(),typeof O=="function"&&O(),v(R?"entered":"exited")):C.current=requestAnimationFrame(()=>{Oc.flushSync(()=>{v(R?"pre-entering":"pre-exiting")}),C.current=requestAnimationFrame(()=>{typeof P=="function"&&P(),v(R?"entering":"exiting"),w.current=window.setTimeout(()=>{typeof O=="function"&&O(),v(R?"entered":"exited")},$)})})},T=R=>{if(x(),typeof(R?c:l)!="number"){E(R);return}S.current=window.setTimeout(()=>{E(R)},R?c:l)};return Dr(()=>{T(r)},[r]),p.useEffect(()=>()=>{x()},[]),{transitionDuration:m,transitionStatus:h,transitionTimingFunction:n||"ease"}}function dt({keepMounted:e,keepMountedMode:t="activity",transition:n="fade",duration:r=250,exitDuration:o=r,mounted:s,children:i,timingFunction:a="ease",onExit:c,onEntered:l,onEnter:f,onExited:d,enterDelay:u,exitDelay:m}){const g=Sn(),{transitionDuration:h,transitionStatus:v,transitionTimingFunction:w}=qd({mounted:s,exitDuration:o,duration:r,timingFunction:a,onExit:c,onEntered:l,onEnter:f,onExited:d,enterDelay:u,exitDelay:m});if(g==="test")return s?y.jsx(y.Fragment,{children:i({})}):e?i({display:"none"}):null;if(h===0)return e?t==="display-none"?s?y.jsx(y.Fragment,{children:i({})}):i({display:"none"}):y.jsx(p.Activity,{mode:s?"visible":"hidden",children:i({})}):s?y.jsx(y.Fragment,{children:i({})}):null;const S=v==="exited";if(e){const C=i(S?t==="display-none"?{display:"none"}:{}:hs({transition:n,duration:h,state:v,timingFunction:w}));return t==="display-none"?C:y.jsx(p.Activity,{mode:S?"hidden":"visible",children:C})}return S?null:y.jsx(y.Fragment,{children:i(hs({transition:n,duration:h,state:v,timingFunction:w}))})}dt.displayName="@mantine/core/Transition";const[Kd,Nn]=lt("Popover component was not found in the tree");function $i({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:o,open:s}){const i=p.useRef(!1),a=p.useRef(!1),c=p.useRef(null),l=p.useRef(t);l.current=t;const f=(g,h,v)=>{o({getBoundingClientRect:()=>({x:g,y:h,width:0,height:0,top:h,left:g,right:g,bottom:h,toJSON:()=>{}}),contextElement:v}),s()},d=ee(e.onMouseDown,g=>{t||g.button===2&&g.stopPropagation()}),u=ee(e.onContextMenu,g=>{t||g.defaultPrevented||(g.preventDefault(),!a.current&&(f(g.clientX,g.clientY,g.currentTarget),i.current&&(a.current=!0)))}),m=jc(g=>{if(l.current||a.current)return;const h=g,v=h.touches[0]??h.changedTouches[0];v&&(f(v.clientX,v.clientY,c.current),a.current=!0)},{threshold:r,events:["touch"],cancelOnMove:!0,onStart:g=>{i.current=!0,a.current=!1,c.current=g.currentTarget},onFinish:g=>{i.current=!1,a.current=!1,l.current||g.preventDefault()},onCancel:()=>{i.current=!1,a.current=!1}});return{onContextMenu:u,onMouseDown:d,onTouchStart:ee(e.onTouchStart,m.onTouchStart),onTouchEnd:ee(e.onTouchEnd,m.onTouchEnd),onTouchCancel:ee(e.onTouchCancel,m.onTouchCancel),onTouchMove:ee(e.onTouchMove,m.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"},"data-expanded":n?!0:void 0}}function Ai(e){const{children:t,disabled:n,longPressDelay:r}=H("PopoverContextMenu",null,e),o=Ht(t);if(!o)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=Nn(),i=$i({childProps:o.props,disabled:n||s.disabled,opened:s.opened,longPressDelay:r,setReference:s.reference,open:()=>{s.opened||s.onToggle()}});return p.cloneElement(o,i)}Ai.displayName="@mantine/core/PopoverContextMenu";function In({children:e,active:t=!0,refProp:n="ref",innerRef:r}){const o=Pc(t),s=ue(o,r),i=Ht(e);return i?p.cloneElement(i,{[n]:s}):e}function Ni(e){return y.jsx(so,{tabIndex:-1,"data-autofocus":!0,...e})}In.displayName="@mantine/core/FocusTrap";Ni.displayName="@mantine/core/FocusTrapInitialFocus";In.InitialFocus=Ni;var Ii={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const io=K(e=>{const t=H("PopoverDropdown",null,e),{className:n,style:r,vars:o,children:s,onKeyDownCapture:i,variant:a,classNames:c,styles:l,ref:f,...d}=t,u=Nn(),{dir:m}=Ye(),g=u.arrowPosition==="merge"&&u.withArrow?Vd({position:u.placement,dir:m}):void 0,h=As({opened:u.opened,shouldReturnFocus:u.returnFocus}),v=u.withRoles?{"aria-labelledby":u.getTargetId(),id:u.getDropdownId(),role:"dialog",tabIndex:-1}:{},w=ue(f,u.floating);return u.disabled?null:y.jsx(An,{...u.portalProps,withinPortal:u.withinPortal,children:y.jsx(dt,{mounted:u.opened,...u.transitionProps,transition:u.transitionProps?.transition||"fade",duration:u.transitionProps?.duration??150,keepMounted:u.keepMounted,keepMountedMode:u.keepMountedMode,exitDuration:typeof u.transitionProps?.exitDuration=="number"?u.transitionProps.exitDuration:u.transitionProps?.duration,children:S=>y.jsx(In,{active:u.trapFocus&&u.opened,innerRef:w,children:y.jsxs(G,{...v,...d,variant:a,onKeyDownCapture:hc(()=>{u.onClose?.(),u.onDismiss?.()},{active:u.closeOnEscape,onTrigger:h,onKeyDown:i}),"data-position":u.placement,"data-fixed":u.floatingStrategy==="fixed"||void 0,...u.getStyles("dropdown",{className:n,props:t,classNames:c,styles:l,style:[{...S,...g,zIndex:u.zIndex,top:u.y??0,left:u.x??0,width:u.width==="target"?void 0:M(u.width),...u.referenceHidden?{display:"none"}:null},u.resolvedStyles?.dropdown,l?.dropdown,r]}),children:[s,y.jsx(Ti,{ref:u.arrowRef,arrowX:u.arrowX,arrowY:u.arrowY,visible:u.withArrow,position:u.placement,arrowSize:u.arrowSize,arrowRadius:u.arrowRadius,arrowOffset:u.arrowOffset,arrowPosition:u.arrowPosition,...u.getStyles("arrow",{props:t,classNames:c,styles:l})})]})})})})});io.classes=Ii;io.displayName="@mantine/core/PopoverDropdown";const Zd={refProp:"ref",popupType:"dialog"},ji=K(e=>{const{children:t,refProp:n,popupType:r,ref:o,...s}=H("PopoverTarget",Zd,e),i=Ht(t);if(!i)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 a=s,c=Nn(),l=ue(c.reference,Bc(i),o),f=c.withRoles?{"aria-haspopup":r,"aria-expanded":c.opened,"aria-controls":c.opened?c.getDropdownId():void 0,id:c.getTargetId()}:{},d=i.props;return p.cloneElement(i,{...a,...f,...c.targetProps,className:ve(c.targetProps.className,a.className,d.className),[n]:l,...c.controlled?null:{onClick:u=>{c.onToggle(),d.onClick?.(u)}}})});ji.displayName="@mantine/core/PopoverTarget";function Qd(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function Jd(e,t,n,r){const o=Qd(e.middlewares),s=[vd(e.offset),Sd()];if(o.flip&&!n){const i=typeof o.flip=="boolean"?{}:o.flip,a=r?{fallbackStrategy:"initialPlacement",...i}:i;s.push(wd(a))}if(o.shift){const i=typeof o.shift=="boolean"?{}:o.shift;s.push(yd(a=>{const c=a.placement.startsWith("top")||a.placement.startsWith("bottom");return{limiter:bd(),padding:5,...e.width==="target"&&c?{mainAxis:!1}:null,...i}}))}return o.inline&&s.push(typeof o.inline=="boolean"?ss():ss(o.inline)),s.push(Cd({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&s.push(xd({...typeof o.size=="boolean"?{}:o.size,apply({rects:i,availableWidth:a,availableHeight:c,...l}){const f=t().refs.floating.current?.style??{};o.size&&(typeof o.size=="object"&&o.size.apply?o.size.apply({rects:i,availableWidth:a,availableHeight:c,...l}):Object.assign(f,{maxWidth:`${a}px`,maxHeight:`${c}px`})),e.width==="target"&&Object.assign(f,{width:`${i.reference.width}px`})}})),s}function ef(e){const[t,n]=We({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=p.useRef(t),[o,s]=p.useState(null),i=e.preventPositionChangeWhenVisible!==!1,a=p.useRef(t);t!==a.current&&(a.current=t,t&&o!==null&&s(null));const c=p.useCallback(()=>s(null),[]),l=()=>{t&&!e.disabled&&n(!1)},f=()=>{e.disabled||n(!t)},d=yi({open:t,strategy:e.strategy,placement:i?o??e.position:e.position,middleware:Jd(e,()=>d,i&&o!==null,i),whileElementsMounted:e.keepMounted?void 0:ns});p.useEffect(()=>{if(!e.keepMounted)return;const g=d.refs.reference.current,h=d.refs.floating.current;if(t&&g&&h)return ns(g,h,d.update)},[e.keepMounted,t,d.update,d.elements.reference,d.elements.floating]);const u=p.useRef(!1);Ze(()=>{if(!t){u.current=!1;return}if(!i||o!==null)return;const g=d.refs.floating.current;if(!(!g||g.offsetHeight===0||g.offsetWidth===0)){if(!u.current){u.current=!0,d.update();return}d.isPositioned&&s(d.placement)}},[i,t,d.isPositioned,d.placement,o,d.update]);const m=p.useRef(d.placement);return Ze(()=>{m.current!==d.placement&&(m.current=d.placement,e.onPositionChange?.(d.placement))},[d.placement]),Dr(()=>{t!==r.current&&(t?e.onOpen?.():e.onClose?.()),r.current=t},[t,e.onClose,e.onOpen]),{floating:d,controlled:typeof e.opened=="boolean",opened:t,onClose:l,onToggle:f,resetLockedPlacement:c}}const tf={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:ut("popover"),__staticSelector:"Popover",width:"max-content"},Oi=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:he(t),"--popover-shadow":Lr(n)}});function pe(e){const t=H("Popover",tf,e),{children:n,position:r,offset:o,onPositionChange:s,opened:i,transitionProps:a,onExitTransitionEnd:c,onEnterTransitionEnd:l,width:f,middlewares:d,withArrow:u,arrowSize:m,arrowOffset:g,arrowRadius:h,arrowPosition:v,unstyled:w,classNames:S,styles:C,closeOnClickOutside:x,withinPortal:E,portalProps:T,closeOnEscape:R,clickOutsideEvents:P,trapFocus:O,onClose:$,onDismiss:A,onOpen:D,onChange:L,zIndex:k,radius:U,shadow:F,id:N,defaultOpened:j,__staticSelector:z,withRoles:W,disabled:b,returnFocus:_,variant:I,keepMounted:B,keepMountedMode:Y,vars:V,floatingStrategy:X,withOverlay:q,overlayProps:Z,hideDetached:te,attributes:se,preventPositionChangeWhenVisible:re,...de}=t,ie=J({name:z,props:t,classes:Ii,classNames:S,styles:C,unstyled:w,attributes:se,rootSelector:"dropdown",vars:V,varsResolver:Oi}),{resolvedStyles:Ae}=Ur({classNames:S,styles:C,props:t}),Se=p.useRef(null),[Fe,tt]=p.useState(null),[Kn,Zn]=p.useState(null),{dir:Qn}=Ye(),Jn=Sn(),en=St(N),oe=ef({middlewares:d,width:f,position:_i(Qn,r),offset:typeof o=="number"?o+(u?m/2:0):o,arrowRef:Se,arrowOffset:g,onPositionChange:s,opened:i,defaultOpened:j,onChange:L,onOpen:D,onClose:$,onDismiss:A,strategy:X,disabled:b,preventPositionChangeWhenVisible:re,keepMounted:B});wc(()=>{x&&(oe.onClose(),A?.())},P,[Fe,Kn]);const Ja=p.useCallback(nt=>{tt(nt),oe.floating.refs.setReference(nt)},[oe.floating.refs.setReference]),ec=p.useCallback(nt=>{Zn(nt),oe.floating.refs.setFloating(nt)},[oe.floating.refs.setFloating]),tc=p.useCallback(()=>{a?.onExited?.(),c?.(),oe.resetLockedPlacement()},[a?.onExited,c,oe.resetLockedPlacement]),nc=p.useCallback(()=>{a?.onEntered?.(),l?.()},[a?.onEntered,l]);return y.jsxs(Kd,{value:{returnFocus:_,disabled:b,controlled:oe.controlled,reference:Ja,floating:ec,x:oe.floating.x,y:oe.floating.y,arrowX:oe.floating?.middlewareData?.arrow?.x,arrowY:oe.floating?.middlewareData?.arrow?.y,opened:oe.opened,arrowRef:Se,transitionProps:{...a,onExited:tc,onEntered:nc},width:f,withArrow:u,arrowSize:m,arrowOffset:g,arrowRadius:h,arrowPosition:v,placement:oe.floating.placement,trapFocus:O,withinPortal:E,portalProps:T,zIndex:k,radius:U,shadow:F,closeOnEscape:R,onDismiss:A,onClose:oe.onClose,onToggle:oe.onToggle,getTargetId:()=>en,getDropdownId:()=>`${en}-dropdown`,withRoles:W,targetProps:de,__staticSelector:z,classNames:S,styles:C,unstyled:w,variant:I,keepMounted:B,keepMountedMode:Y,getStyles:ie,resolvedStyles:Ae,floatingStrategy:X,referenceHidden:te&&Jn!=="test"?oe.floating.middlewareData.hide?.referenceHidden:!1},children:[n,q&&y.jsx(dt,{transition:"fade",mounted:oe.opened,duration:a?.duration||250,exitDuration:a?.exitDuration||250,children:nt=>y.jsx(An,{withinPortal:E,children:y.jsx(Vt,{...Z,...ie("overlay",{className:Z?.className,style:[nt,Z?.style]})})})})]})}pe.Target=ji;pe.Dropdown=io;pe.ContextMenu=Ai;pe.varsResolver=Oi;pe.displayName="@mantine/core/Popover";pe.extend=e=>e;pe.withProps=e=>{const t=n=>y.jsx(pe,{...e,...n});return t.extend=pe.extend,t.displayName=`WithProps(${pe.displayName})`,t};var Te={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 Li=({className:e,...t})=>y.jsxs(G,{component:"span",className:ve(Te.barsLoader,e),...t,children:[y.jsx("span",{className:Te.bar}),y.jsx("span",{className:Te.bar}),y.jsx("span",{className:Te.bar})]});Li.displayName="@mantine/core/Bars";const Di=({className:e,...t})=>y.jsxs(G,{component:"span",className:ve(Te.dotsLoader,e),...t,children:[y.jsx("span",{className:Te.dot}),y.jsx("span",{className:Te.dot}),y.jsx("span",{className:Te.dot})]});Di.displayName="@mantine/core/Dots";const Bi=({className:e,...t})=>y.jsx(G,{component:"span",className:ve(Te.ovalLoader,e),...t});Bi.displayName="@mantine/core/Oval";const zi={bars:Li,oval:Bi,dots:Di},nf={loaders:zi,type:"oval"},Fi=(e,{size:t,color:n})=>({root:{"--loader-size":ne(t,"loader-size"),"--loader-color":n?_e(n,e):void 0}}),ft=K(e=>{const t=H("Loader",nf,e),{size:n,color:r,type:o,vars:s,className:i,style:a,classNames:c,styles:l,unstyled:f,loaders:d,variant:u,children:m,attributes:g,...h}=t,v=J({name:"Loader",props:t,classes:Te,className:i,style:a,classNames:c,styles:l,unstyled:f,attributes:g,vars:s,varsResolver:Fi});return m?y.jsx(G,{...v("root"),...h,children:m}):y.jsx(G,{...v("root"),component:d[o],variant:u,size:n,...h})});ft.defaultLoaders=zi;ft.classes=Te;ft.varsResolver=Fi;ft.displayName="@mantine/core/Loader";var Tt={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const rf={orientation:"horizontal"},Hi=(e,{borderWidth:t})=>({group:{"--ai-border-width":M(t)}}),jn=K(e=>{const t=H("ActionIconGroup",rf,e),{className:n,style:r,classNames:o,styles:s,unstyled:i,orientation:a,vars:c,borderWidth:l,variant:f,mod:d,attributes:u,...m}=t,g=J({name:"ActionIconGroup",props:t,classes:Tt,className:n,style:r,classNames:o,styles:s,unstyled:i,attributes:u,vars:c,varsResolver:Hi,rootSelector:"group"});return y.jsx(G,{...g("group"),variant:f,mod:[{orientation:a},d],role:"group",...m})});jn.classes=Tt;jn.varsResolver=Hi;jn.displayName="@mantine/core/ActionIconGroup";const Wi=(e,{radius:t,color:n,gradient:r,variant:o,autoContrast:s,size:i})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:s});return{groupSection:{"--section-height":ne(i,"section-height"),"--section-padding-x":ne(i,"section-padding-x"),"--section-fz":me(i),"--section-radius":t===void 0?void 0:he(t),"--section-bg":n||o?a.background:void 0,"--section-color":a.color,"--section-bd":n||o?a.border:void 0}}},On=K(e=>{const t=H("ActionIconGroupSection",null,e),{className:n,style:r,classNames:o,styles:s,unstyled:i,vars:a,variant:c,gradient:l,radius:f,autoContrast:d,attributes:u,...m}=t,g=J({name:"ActionIconGroupSection",props:t,classes:Tt,className:n,style:r,classNames:o,styles:s,unstyled:i,attributes:u,vars:a,varsResolver:Wi,rootSelector:"groupSection"});return y.jsx(G,{...g("groupSection"),variant:c,...m})});On.classes=Tt;On.varsResolver=Wi;On.displayName="@mantine/core/ActionIconGroupSection";const Vi=(e,{size:t,radius:n,variant:r,gradient:o,color:s,autoContrast:i})=>{const a=e.variantColorResolver({color:s||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:i});return{root:{"--ai-size":ne(t,"ai-size"),"--ai-radius":n===void 0?void 0:he(n),"--ai-bg":s||r?a.background:void 0,"--ai-hover":s||r?a.hover:void 0,"--ai-hover-color":s||r?a.hoverColor:void 0,"--ai-color":a.color,"--ai-bd":s||r?a.border:void 0}}},Yt=ke(e=>{const t=H("ActionIcon",null,e),{className:n,unstyled:r,variant:o,classNames:s,styles:i,style:a,loading:c,loaderProps:l,size:f,color:d,radius:u,__staticSelector:m,gradient:g,vars:h,children:v,disabled:w,"data-disabled":S,autoContrast:C,mod:x,attributes:E,...T}=t,R=J({name:["ActionIcon",m],props:t,className:n,style:a,classes:Tt,classNames:s,styles:i,unstyled:r,attributes:E,vars:h,varsResolver:Vi});return y.jsxs(Be,{...R("root",{active:!w&&!c&&!S}),"aria-busy":c||void 0,...T,unstyled:r,variant:o,size:f,disabled:w||c,mod:[{loading:c,disabled:w||S},x],children:[typeof c=="boolean"&&y.jsx(dt,{mounted:c,transition:"slide-down",duration:150,children:P=>y.jsx(G,{component:"span",...R("loader",{style:P}),"aria-hidden":!0,children:y.jsx(ft,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...l})})}),y.jsx(G,{component:"span",mod:{loading:c},...R("icon"),children:v})]})});Yt.classes=Tt;Yt.varsResolver=Vi;Yt.displayName="@mantine/core/ActionIcon";Yt.Group=jn;Yt.GroupSection=On;function Yi({size:e="var(--cb-icon-size, 70%)",style:t,...n}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},...n,children:y.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}Yi.displayName="@mantine/core/CloseIcon";var Ui={root:"m_86a44da5","root--subtle":"m_220c80f2"};const of={variant:"subtle"},Xi=(e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":ne(t,"cb-size"),"--cb-radius":n===void 0?void 0:he(n),"--cb-icon-size":M(r)}}),Ut=ke(e=>{const t=H("CloseButton",of,e),{iconSize:n,children:r,vars:o,radius:s,className:i,classNames:a,style:c,styles:l,unstyled:f,"data-disabled":d,disabled:u,variant:m,icon:g,mod:h,attributes:v,__staticSelector:w,...S}=t,C=J({name:w||"CloseButton",props:t,className:i,style:c,classes:Ui,classNames:a,styles:l,unstyled:f,attributes:v,vars:o,varsResolver:Xi});return y.jsxs(Be,{...S,unstyled:f,variant:m,disabled:u,mod:[{disabled:u||d},h],...C("root",{variant:m,active:!u&&!d}),children:[g||y.jsx(Yi,{}),r]})});Ut.classes=Ui;Ut.varsResolver=Xi;Ut.displayName="@mantine/core/CloseButton";const[sf,Xe]=lt("ModalBase component was not found in tree");function af({opened:e,transitionDuration:t}){const[n,r]=p.useState(e),o=p.useRef(-1),s=Os()?0:t;return p.useEffect(()=>(e?(r(!0),window.clearTimeout(o.current)):s===0?r(!1):o.current=window.setTimeout(()=>r(!1),s),()=>window.clearTimeout(o.current)),[e,s]),n}function cf({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:o,onClose:s,returnFocus:i}){const a=St(e),[c,l]=p.useState(!1),[f,d]=p.useState(!1),u=typeof t?.duration=="number"?t?.duration:200,m=af({opened:n,transitionDuration:u});return $c("keydown",g=>{g.key==="Escape"&&o&&!g.isComposing&&n&&g.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&s()},{capture:!0}),As({opened:n,shouldReturnFocus:r&&i}),{_id:a,titleMounted:c,bodyMounted:f,shouldLockScroll:m,setTitleMounted:l,setBodyMounted:d}}var Ne=function(){return Ne=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ne.apply(this,arguments)};function Gi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function lf(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var dn="right-scroll-bar-position",fn="width-before-scroll-bar",uf="with-scroll-bars-hidden",df="--removed-body-scroll-bar-size";function vr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ff(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var pf=typeof window<"u"?p.useLayoutEffect:p.useEffect,gs=new WeakMap;function mf(e,t){var n=ff(null,function(r){return e.forEach(function(o){return vr(o,r)})});return pf(function(){var r=gs.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||vr(a,null)}),s.forEach(function(a){o.has(a)||vr(a,i)})}gs.set(n,e)},[e]),n}function hf(e){return e}function gf(e,t){t===void 0&&(t=hf);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),n}}}};return o}function vf(e){e===void 0&&(e={});var t=gf(null);return t.options=Ne({async:!0,ssr:!1},e),t}var qi=function(e){var t=e.sideCar,n=Gi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,Ne({},n))};qi.isSideCarExport=!0;function yf(e,t){return e.useMedium(t),qi}var Ki=vf(),yr=function(){},Ln=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:yr,onWheelCapture:yr,onTouchMoveCapture:yr}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,u=e.sideCar,m=e.noRelative,g=e.noIsolation,h=e.inert,v=e.allowPinchZoom,w=e.as,S=w===void 0?"div":w,C=e.gapMode,x=Gi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=u,T=mf([n,t]),R=Ne(Ne({},x),o);return p.createElement(p.Fragment,null,f&&p.createElement(E,{sideCar:Ki,removeScrollBar:l,shards:d,noRelative:m,noIsolation:g,inert:h,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:C}),i?p.cloneElement(p.Children.only(a),Ne(Ne({},R),{ref:T})):p.createElement(S,Ne({},R,{className:c,ref:T}),a))});Ln.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ln.classNames={fullWidth:fn,zeroRight:dn};var bf=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=bf();return t&&e.setAttribute("nonce",t),e}function xf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Sf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Cf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=wf())&&(xf(t,n),Sf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Rf=function(){var e=Cf();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Zi=function(){var e=Rf(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ef={left:0,top:0,right:0,gap:0},br=function(e){return parseInt(e||"",10)||0},Tf=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[br(n),br(r),br(o)]},_f=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ef;var t=Tf(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Pf=Zi(),yt="data-scroll-locked",Mf=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
6
+ .`.concat(uf,` {
7
+ overflow: hidden `).concat(r,`;
8
+ padding-right: `).concat(a,"px ").concat(r,`;
9
+ }
10
+ body[`).concat(yt,`] {
11
+ overflow: hidden `).concat(r,`;
12
+ overscroll-behavior: contain;
13
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
14
+ padding-left: `.concat(o,`px;
15
+ padding-top: `).concat(s,`px;
16
+ padding-right: `).concat(i,`px;
17
+ margin-left:0;
18
+ margin-top:0;
19
+ margin-right: `).concat(a,"px ").concat(r,`;
20
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
21
+ }
22
+
23
+ .`).concat(dn,` {
24
+ right: `).concat(a,"px ").concat(r,`;
25
+ }
26
+
27
+ .`).concat(fn,` {
28
+ margin-right: `).concat(a,"px ").concat(r,`;
29
+ }
30
+
31
+ .`).concat(dn," .").concat(dn,` {
32
+ right: 0 `).concat(r,`;
33
+ }
34
+
35
+ .`).concat(fn," .").concat(fn,` {
36
+ margin-right: 0 `).concat(r,`;
37
+ }
38
+
39
+ body[`).concat(yt,`] {
40
+ `).concat(df,": ").concat(a,`px;
41
+ }
42
+ `)},vs=function(){var e=parseInt(document.body.getAttribute(yt)||"0",10);return isFinite(e)?e:0},kf=function(){p.useEffect(function(){return document.body.setAttribute(yt,(vs()+1).toString()),function(){var e=vs()-1;e<=0?document.body.removeAttribute(yt):document.body.setAttribute(yt,e.toString())}},[])},$f=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;kf();var s=p.useMemo(function(){return _f(o)},[o]);return p.createElement(Pf,{styles:Mf(s,!t,o,n?"":"!important")})},Nr=!1;if(typeof window<"u")try{var an=Object.defineProperty({},"passive",{get:function(){return Nr=!0,!0}});window.addEventListener("test",an,an),window.removeEventListener("test",an,an)}catch{Nr=!1}var ht=Nr?{passive:!1}:!1,Af=function(e){return e.tagName==="TEXTAREA"},Qi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Af(e)&&n[t]==="visible")},Nf=function(e){return Qi(e,"overflowY")},If=function(e){return Qi(e,"overflowX")},ys=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ji(e,r);if(o){var s=ea(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},jf=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Of=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ji=function(e,t){return e==="v"?Nf(t):If(t)},ea=function(e,t){return e==="v"?jf(t):Of(t)},Lf=function(e,t){return e==="h"&&t==="rtl"?-1:1},Df=function(e,t,n,r,o){var s=Lf(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),l=!1,f=i>0,d=0,u=0;do{if(!a)break;var m=ea(e,a),g=m[0],h=m[1],v=m[2],w=h-v-s*g;(g||w)&&Ji(e,a)&&(d+=w,u+=g);var S=a.parentNode;a=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(f&&Math.abs(d)<1||!f&&Math.abs(u)<1)&&(l=!0),l},cn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bs=function(e){return[e.deltaX,e.deltaY]},ws=function(e){return e&&"current"in e?e.current:e},Bf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zf=function(e){return`
43
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
44
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
45
+ `)},Ff=0,gt=[];function Hf(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(Ff++)[0],s=p.useState(Zi)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=lf([e.lockRef.current],(e.shards||[]).map(ws),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var w=cn(h),S=n.current,C="deltaX"in h?h.deltaX:S[0]-w[0],x="deltaY"in h?h.deltaY:S[1]-w[1],E,T=h.target,R=Math.abs(C)>Math.abs(x)?"h":"v";if("touches"in h&&R==="h"&&T.type==="range")return!1;var P=window.getSelection(),O=P&&P.anchorNode,$=O?O===T||O.contains(T):!1;if($)return!1;var A=ys(R,T);if(!A)return!0;if(A?E=R:(E=R==="v"?"h":"v",A=ys(R,T)),!A)return!1;if(!r.current&&"changedTouches"in h&&(C||x)&&(r.current=E),!E)return!0;var D=r.current||E;return Df(D,v,h,D==="h"?C:x)},[]),c=p.useCallback(function(h){var v=h;if(!(!gt.length||gt[gt.length-1]!==s)){var w="deltaY"in v?bs(v):cn(v),S=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&Bf(E.delta,w)})[0];if(S&&S.should){v.cancelable&&v.preventDefault();return}if(!S){var C=(i.current.shards||[]).map(ws).filter(Boolean).filter(function(E){return E.contains(v.target)}),x=C.length>0?a(v,C[0]):!i.current.noIsolation;x&&v.cancelable&&v.preventDefault()}}},[]),l=p.useCallback(function(h,v,w,S){var C={name:h,delta:v,target:w,should:S,shadowParent:Wf(w)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(x){return x!==C})},1)},[]),f=p.useCallback(function(h){n.current=cn(h),r.current=void 0},[]),d=p.useCallback(function(h){l(h.type,bs(h),h.target,a(h,e.lockRef.current))},[]),u=p.useCallback(function(h){l(h.type,cn(h),h.target,a(h,e.lockRef.current))},[]);p.useEffect(function(){return gt.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:u}),document.addEventListener("wheel",c,ht),document.addEventListener("touchmove",c,ht),document.addEventListener("touchstart",f,ht),function(){gt=gt.filter(function(h){return h!==s}),document.removeEventListener("wheel",c,ht),document.removeEventListener("touchmove",c,ht),document.removeEventListener("touchstart",f,ht)}},[]);var m=e.removeScrollBar,g=e.inert;return p.createElement(p.Fragment,null,g?p.createElement(s,{styles:zf(o)}):null,m?p.createElement($f,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Wf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Vf=yf(Ki,Hf);var ta=p.forwardRef(function(e,t){return p.createElement(Ln,Ne({},e,{ref:t,sideCar:Vf}))});ta.classNames=Ln.classNames;function na({keepMounted:e,keepMountedMode:t="activity",opened:n,onClose:r,id:o,transitionProps:s,onExitTransitionEnd:i,onEnterTransitionEnd:a,trapFocus:c,closeOnEscape:l,returnFocus:f,closeOnClickOutside:d,withinPortal:u,portalProps:m,lockScroll:g,children:h,zIndex:v,shadow:w,padding:S,__vars:C,unstyled:x,removeScrollProps:E,...T}){const{_id:R,titleMounted:P,bodyMounted:O,shouldLockScroll:$,setTitleMounted:A,setBodyMounted:D}=cf({id:o,transitionProps:s,opened:n,trapFocus:c,closeOnEscape:l,onClose:r,returnFocus:f}),{key:L,...k}=E||{};return y.jsx(An,{...m,withinPortal:u,children:y.jsx(sf,{value:{opened:n,onClose:r,closeOnClickOutside:d,onExitTransitionEnd:i,onEnterTransitionEnd:a,transitionProps:{...s,keepMounted:e,keepMountedMode:t},getTitleId:()=>`${R}-title`,getBodyId:()=>`${R}-body`,titleMounted:P,bodyMounted:O,setTitleMounted:A,setBodyMounted:D,trapFocus:c,closeOnEscape:l,zIndex:v,unstyled:x},children:y.jsx(ta,{enabled:$&&g,...k,children:y.jsx(G,{...T,id:R,__vars:{...C,"--mb-z-index":(v||ut("modal")).toString(),"--mb-shadow":Lr(w),"--mb-padding":gc(S)},children:h})},L)})})}na.displayName="@mantine/core/ModalBase";function Yf(){const e=Xe();return p.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var wt={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function ra({className:e,...t}){const n=Yf(),r=Xe();return y.jsx(G,{id:n,className:ve({[wt.body]:!r.unstyled},e),...t})}ra.displayName="@mantine/core/ModalBaseBody";function oa({className:e,onClick:t,...n}){const r=Xe();return y.jsx(Ut,{...n,onClick:o=>{r.onClose(),t?.(o)},className:ve({[wt.close]:!r.unstyled},e),unstyled:r.unstyled})}oa.displayName="@mantine/core/ModalBaseCloseButton";function sa({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:o,ref:s,...i}){const a=Xe();return y.jsx(dt,{mounted:a.opened,transition:"pop",...a.transitionProps,onExited:()=>{a.onExitTransitionEnd?.(),a.transitionProps?.onExited?.()},onEntered:()=>{a.onEnterTransitionEnd?.(),a.transitionProps?.onEntered?.()},...e,children:c=>y.jsx("div",{...n,className:ve({[wt.inner]:!a.unstyled},n.className),children:y.jsx(In,{active:a.opened&&a.trapFocus,innerRef:s,children:y.jsx($n,{...i,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":a.bodyMounted?a.getBodyId():void 0,"aria-labelledby":a.titleMounted?a.getTitleId():void 0,style:[o,c],className:ve({[wt.content]:!a.unstyled},t),unstyled:a.unstyled,children:i.children})})})})}sa.displayName="@mantine/core/ModalBaseContent";function ia({className:e,...t}){const n=Xe();return y.jsx(G,{component:"header",className:ve({[wt.header]:!n.unstyled},e),...t})}ia.displayName="@mantine/core/ModalBaseHeader";const Uf={duration:200,timingFunction:"ease",transition:"fade"};function Xf(e){const t=Xe();return{...Uf,...t.transitionProps,...e}}function aa({onClick:e,transitionProps:t,style:n,visible:r,...o}){const s=Xe(),i=Xf(t);return y.jsx(dt,{mounted:r!==void 0?r:s.opened,...i,transition:"fade",children:a=>y.jsx(Vt,{fixed:!0,style:[n,a],zIndex:s.zIndex,unstyled:s.unstyled,onClick:c=>{e?.(c),s.closeOnClickOutside&&s.onClose()},...o})})}aa.displayName="@mantine/core/ModalBaseOverlay";function Gf(){const e=Xe();return p.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function ca({className:e,...t}){const n=Gf(),r=Xe();return y.jsx(G,{component:"h2",className:ve({[wt.title]:!r.unstyled},e),id:n,...t})}ca.displayName="@mantine/core/ModalBaseTitle";function qf({children:e}){return y.jsx(y.Fragment,{children:e})}const la=p.createContext({size:"sm"}),ua=K(e=>{const t=H("InputClearButton",null,e),{size:n,variant:r,vars:o,classNames:s,styles:i,...a}=t,c=p.use(la),{resolvedClassNames:l,resolvedStyles:f}=Ur({classNames:s,styles:i,props:t});return y.jsx(Ut,{variant:r||"transparent",size:n||c?.size||"sm",classNames:l,styles:f,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...a.style},...a})});ua.displayName="@mantine/core/InputClearButton";const Kf={xs:7,sm:8,md:10,lg:12,xl:15};function Zf({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:o="sm",__clearSectionMode:s="both"}){const i=e&&t;return s==="rightSection"?n===null?null:n||r:s==="clear"?n===null?null:i||r:i&&(n||r)?y.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:Kf[o]},children:[i,n||r]}):n===null?null:n||i||r}const pt=p.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var ye={wrapper:"m_6c018570",input:"m_8fb7ebe7",bottomSection:"m_93f4ed57",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",success:"m_9d9d40e0",description:"m_fe47ce59"};const da=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${me(t)} - ${M(2)})`}}),Xt=K(e=>{const t=H("InputDescription",null,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,__staticSelector:c,__inheritStyles:l=!0,attributes:f,...d}=H("InputDescription",null,t),u=p.use(pt),m=J({name:["InputWrapper",c],props:t,classes:ye,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:f,rootSelector:"description",vars:a,varsResolver:da}),g=l&&u?.getStyles||m;return y.jsx(G,{component:"p",...g("description",u?.getStyles?{className:r,style:o}:void 0),...d})});Xt.classes=ye;Xt.varsResolver=da;Xt.displayName="@mantine/core/InputDescription";const fa=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${me(t)} - ${M(2)})`}}),Gt=K(e=>{const t=H("InputError",null,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,attributes:c,__staticSelector:l,__inheritStyles:f=!0,...d}=t,u=J({name:["InputWrapper",l],props:t,classes:ye,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:c,rootSelector:"error",vars:a,varsResolver:fa}),m=p.use(pt),g=f&&m?.getStyles||u;return y.jsx(G,{component:"p",...g("error",m?.getStyles?{className:r,style:o}:void 0),...d})});Gt.classes=ye;Gt.varsResolver=fa;Gt.displayName="@mantine/core/InputError";const Qf={labelElement:"label"},pa=(e,{size:t})=>({label:{"--input-label-size":me(t),"--input-asterisk-color":void 0}}),qt=K(e=>{const t=H("InputLabel",Qf,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,labelElement:c,required:l,htmlFor:f,onMouseDown:d,children:u,__staticSelector:m,mod:g,attributes:h,...v}=t,w=J({name:["InputWrapper",m],props:t,classes:ye,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:h,rootSelector:"label",vars:a,varsResolver:pa}),S=p.use(pt),C=S?.getStyles||w,x=v.component||c,E=typeof x!="string"||x==="label";return y.jsxs(G,{...C("label",S?.getStyles?{className:r,style:o}:void 0),component:c,htmlFor:E?f:void 0,mod:[{required:l},g],onMouseDown:T=>{d?.(T),!T.defaultPrevented&&T.detail>1&&T.preventDefault()},...v,children:[u,l&&y.jsx("span",{...C("required"),"aria-hidden":!0,children:" *"})]})});qt.classes=ye;qt.varsResolver=pa;qt.displayName="@mantine/core/InputLabel";const ao=K(e=>{const t=H("InputPlaceholder",null,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,__staticSelector:c,error:l,mod:f,attributes:d,...u}=t,m=J({name:["InputPlaceholder",c],props:t,classes:ye,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:d,rootSelector:"placeholder"});return y.jsx(G,{...m("placeholder"),mod:[{error:!!l},f],component:"span",...u})});ao.classes=ye;ao.displayName="@mantine/core/InputPlaceholder";const ma=(e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${me(t)} - ${M(2)})`}}),Kt=K(e=>{const t=H("InputSuccess",null,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,attributes:c,__staticSelector:l,__inheritStyles:f=!0,...d}=t,u=J({name:["InputWrapper",l],props:t,classes:ye,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:c,rootSelector:"success",vars:a,varsResolver:ma}),m=p.use(pt),g=f&&m?.getStyles||u;return y.jsx(G,{component:"p",...g("success",m?.getStyles?{className:r,style:o}:void 0),...d})});Kt.classes=ye;Kt.varsResolver=ma;Kt.displayName="@mantine/core/InputSuccess";function Jf(e,{hasDescription:t,hasError:n}){const r=e.findIndex(a=>a==="input"),o=e.slice(0,r),s=e.slice(r+1),i=t&&o.includes("description")||n&&o.includes("error");return{offsetBottom:t&&s.includes("description")||n&&s.includes("error"),offsetTop:i}}const ep={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},ha=(e,{size:t})=>({label:{"--input-label-size":me(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${me(t)} - ${M(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${me(t)} - ${M(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${me(t)} - ${M(2)})`}}),Dn=K(e=>{const t=H("InputWrapper",ep,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,size:c,variant:l,__staticSelector:f,inputContainer:d,inputWrapperOrder:u,label:m,error:g,success:h,description:v,labelProps:w,descriptionProps:S,errorProps:C,successProps:x,labelElement:E,children:T,withAsterisk:R,id:P,required:O,__stylesApiProps:$,mod:A,attributes:D,...L}=t,k=J({name:["InputWrapper",f],props:$||t,classes:ye,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:D,vars:a,varsResolver:ha}),U={size:c,variant:l,__staticSelector:f},F=St(P),N=typeof R=="boolean"?R:O,j=C?.id||`${F}-error`,z=x?.id||`${F}-success`,W=S?.id||`${F}-description`,b=F,_=!!g&&typeof g!="boolean",I=!!h&&typeof h!="boolean"&&!g,B=!!v,Y=_&&u.includes("error"),V=I&&u.includes("error"),X=B&&u.includes("description"),q=`${Y?j:""} ${V?z:""} ${X?W:""}`,Z=q.trim().length>0?q.trim():void 0,te=w?.id||`${F}-label`,se=m&&y.jsx(qt,{labelElement:E,id:te,htmlFor:b,required:N,...U,...w,children:m},"label"),re=B&&y.jsx(Xt,{...S,...U,size:S?.size||U.size,id:S?.id||W,children:v},"description"),de=y.jsx(p.Fragment,{children:d(T)},"input"),ie=_&&p.createElement(Gt,{...C,...U,size:C?.size||U.size,key:"error",id:C?.id||j},g),Ae=I&&p.createElement(Kt,{...x,...U,size:x?.size||U.size,key:"success",id:x?.id||z},h),Se=u.map(Fe=>{switch(Fe){case"label":return se;case"input":return de;case"description":return re;case"error":return ie||Ae;default:return null}});return y.jsx(pt,{value:{getStyles:k,describedBy:Z,inputId:b,labelId:te,...Jf(u,{hasDescription:B,hasError:_||I})},children:y.jsx(G,{variant:l,size:c,mod:[{error:!!g,success:!!h&&!g},A],id:E==="label"?void 0:P,...k("root"),...L,children:Se})})});Dn.classes=ye;Dn.varsResolver=ha;Dn.displayName="@mantine/core/InputWrapper";const tp={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:"sm",loading:!1,loadingPosition:"right"},ga=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":ne(t.size,"input-height"),"--input-fz":me(t.size),"--input-radius":t.radius===void 0?void 0:he(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?M(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?M(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?ne(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),ae=ke(e=>{const t=H("Input",tp,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,required:a,__staticSelector:c,__stylesApiProps:l,size:f,wrapperProps:d,error:u,success:m,disabled:g,leftSection:h,leftSectionProps:v,leftSectionWidth:w,rightSection:S,rightSectionProps:C,rightSectionWidth:x,rightSectionPointerEvents:E,leftSectionPointerEvents:T,variant:R,vars:P,pointer:O,multiline:$,radius:A,id:D,withAria:L,withErrorStyles:k,withSuccessStyles:U,mod:F,inputSize:N,attributes:j,__clearSection:z,__clearable:W,__clearSectionMode:b,__defaultRightSection:_,loading:I,loadingPosition:B,__bottomSection:Y,__bottomSectionProps:V,rootRef:X,dir:q,...Z}=t,{styleProps:te,rest:se}=Cn(Z),re=p.use(pt),de={offsetBottom:re?.offsetBottom,offsetTop:re?.offsetTop},ie=J({name:["Input",c],props:l||t,classes:ye,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:j,stylesCtx:de,rootSelector:"wrapper",vars:P,varsResolver:ga}),Ae=L?{required:a,disabled:g,"aria-invalid":u?!0:void 0,"aria-describedby":re?.describedBy,id:re?.inputId||D}:{},Se=I?y.jsx(ft,{size:B==="left"?"calc(var(--input-left-section-size) / 2)":"calc(var(--input-right-section-size) / 2)"}):null,Fe=I&&B==="left"?Se:h,tt=Zf({__clearable:W,__clearSection:z,rightSection:I&&B==="right"?Se:S,__defaultRightSection:_,size:f,__clearSectionMode:b});return y.jsx(la,{value:{size:f||"sm"},children:y.jsxs(G,{ref:X,dir:q,...ie("wrapper"),...te,...d,mod:[{error:!!u&&k,success:!!m&&!u&&U,pointer:O,disabled:g,multiline:$,withRightSection:!!tt,withLeftSection:!!Fe,withBottomSection:!!Y},F],variant:R,size:f,children:[Fe&&y.jsx("div",{...v,"data-position":"left",...ie("section",{className:v?.className,style:v?.style}),children:Fe}),y.jsx(G,{component:"input",...se,...Ae,required:a,mod:{disabled:g,error:!!u&&k,success:!!m&&!u&&U},variant:R,__size:N,...ie("input")}),Y&&y.jsx("div",{...V,...ie("bottomSection",{className:V?.className,style:V?.style}),children:Y}),tt&&y.jsx("div",{...C,"data-position":"right",...ie("section",{className:C?.className,style:C?.style}),children:tt})]})})});ae.classes=ye;ae.varsResolver=ga;ae.Wrapper=Dn;ae.Label=qt;ae.Error=Gt;ae.Success=Kt;ae.Description=Xt;ae.Placeholder=ao;ae.ClearButton=ua;ae.displayName="@mantine/core/Input";function np(e,t,n){const r=H(["Input","InputWrapper",e],t,n),{label:o,description:s,error:i,success:a,required:c,classNames:l,styles:f,className:d,unstyled:u,__staticSelector:m,__stylesApiProps:g,errorProps:h,successProps:v,labelProps:w,descriptionProps:S,wrapperProps:C,id:x,size:E,style:T,inputContainer:R,inputWrapperOrder:P,withAsterisk:O,variant:$,vars:A,mod:D,attributes:L,...k}=r,{styleProps:U,rest:F}=Cn(k),N={label:o,description:s,error:i,success:a,required:c,classNames:l,className:d,__staticSelector:m,__stylesApiProps:g||r,errorProps:h,successProps:v,labelProps:w,descriptionProps:S,unstyled:u,styles:f,size:E,style:T,inputContainer:R,inputWrapperOrder:P,withAsterisk:O,variant:$,id:x,mod:D,attributes:L,...C};return{...F,classNames:l,styles:f,unstyled:u,wrapperProps:{...N,...U},inputProps:{required:c,classNames:l,styles:f,unstyled:u,size:E,__staticSelector:m,__stylesApiProps:g||r,error:i,success:a,variant:$,id:x,attributes:L}}}const rp={__staticSelector:"InputBase",withAria:!0,size:"sm"},et=ke(e=>{const{inputProps:t,wrapperProps:n,...r}=np("InputBase",rp,e);return y.jsx(ae.Wrapper,{...n,children:y.jsx(ae,{...t,...r})})});et.classes={...ae.classes,...ae.Wrapper.classes};et.displayName="@mantine/core/InputBase";function va({style:e,size:t=16,...n}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:M(t),height:M(t),display:"block"},...n,children:y.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}va.displayName="@mantine/core/AccordionChevron";function ya(e){return typeof e=="string"?{value:e,label:e}:typeof e=="object"&&"value"in e&&!("label"in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e=="object"&&"group"in e?{group:e.group,items:e.items.map(t=>ya(t))}:typeof e=="number"||typeof e=="bigint"||typeof e=="boolean"?{value:e,label:`${e}`}:e}function op(e){return e?e.map(t=>ya(t)):[]}var ba={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 sp={error:null},wa=(e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":ne(t,"combobox-chevron-size"),"--combobox-chevron-color":n?_e(n,e):void 0}}),Bn=K(e=>{const t=H("ComboboxChevron",sp,e),{size:n,error:r,style:o,className:s,classNames:i,styles:a,unstyled:c,vars:l,attributes:f,mod:d,...u}=t,m=J({name:"ComboboxChevron",classes:ba,props:t,style:o,className:s,classNames:i,styles:a,unstyled:c,vars:l,varsResolver:wa,attributes:f,rootSelector:"chevron"});return y.jsx(G,{component:"svg",...u,...m("chevron"),size:n,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},d],children:y.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});Bn.classes=ba;Bn.varsResolver=wa;Bn.displayName="@mantine/core/ComboboxChevron";function ip({children:e,role:t}){const n=p.use(pt);return n?y.jsx("div",{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):y.jsx(y.Fragment,{children:e})}const co=p.createContext(null),ap={hiddenInputValuesSeparator:","},lo=Ql((e=>{const{value:t,defaultValue:n,onChange:r,size:o,wrapperProps:s,children:i,readOnly:a,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:f,maxSelectedValues:d,disabled:u,...m}=H("CheckboxGroup",ap,e),[g,h]=We({value:t,defaultValue:n,finalValue:[],onChange:r}),v=C=>{const x=typeof C=="string"?C:C.currentTarget.value;if(a)return;const E=g.includes(x);!E&&d&&g.length>=d||h(E?g.filter(T=>T!==x):[...g,x])},w=C=>{if(u)return!0;if(!d)return!1;const x=g.includes(C),E=g.length>=d;return!x&&E},S=g.join(l);return y.jsx(co,{value:{value:g,onChange:v,size:o,isDisabled:w},children:y.jsxs(ae.Wrapper,{size:o,...s,...m,labelElement:"div",__staticSelector:"CheckboxGroup",children:[y.jsx(ip,{role:"group",children:i}),y.jsx("input",{type:"hidden",name:c,value:S,...f})]})})}));lo.classes=ae.Wrapper.classes;lo.displayName="@mantine/core/CheckboxGroup";var xa={card:"m_26775b0a"};const Sa=p.createContext(null),cp={withBorder:!0},Ca=(e,{radius:t})=>({card:{"--card-radius":he(t)}}),zn=K(e=>{const t=H("CheckboxCard",cp,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,checked:c,mod:l,withBorder:f,value:d,onClick:u,defaultChecked:m,onChange:g,indeterminate:h,attributes:v,...w}=t,S=J({name:"CheckboxCard",classes:xa,props:t,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:v,vars:a,varsResolver:Ca,rootSelector:"card"}),C=p.use(co),x=typeof c=="boolean"?c:C?C.value.includes(d||""):void 0,[E,T]=We({value:x,defaultValue:m,finalValue:!1,onChange:g});return y.jsx(Sa,{value:{checked:E,indeterminate:h},children:y.jsx(Be,{mod:[{"with-border":f,checked:E,indeterminate:h},l],...S("card"),...w,role:"checkbox","aria-checked":h?"mixed":E,onClick:R=>{u?.(R),C?.onChange(d||""),T(!E)}})})});zn.displayName="@mantine/core/CheckboxCard";zn.classes=xa;zn.varsResolver=Ca;function Ra({size:e,style:t,...n}){const r=e!==void 0?{width:M(e),height:M(e),...t}:t;return y.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:y.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ea({indeterminate:e,...t}){return e?y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...t,children:y.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):y.jsx(Ra,{...t})}var Ta={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const lp={icon:Ea,variant:"filled",radius:"sm"},_a=(e,{radius:t,color:n,size:r,iconColor:o,variant:s,autoContrast:i})=>{const a=De({color:n||e.primaryColor,theme:e}),c=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{indicator:{"--checkbox-size":ne(r,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:he(t),"--checkbox-color":s==="outline"?c:_e(n,e),"--checkbox-icon-color":o?_e(o,e):Hr(i,e)?Wt({color:n,theme:e,autoContrast:i}):void 0}}},Fn=K(e=>{const t=H("CheckboxIndicator",lp,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,icon:c,indeterminate:l,radius:f,color:d,iconColor:u,autoContrast:m,checked:g,mod:h,variant:v,disabled:w,attributes:S,...C}=t,x=J({name:"CheckboxIndicator",classes:Ta,props:t,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:S,vars:a,varsResolver:_a,rootSelector:"indicator"}),E=p.use(Sa),T=typeof l=="boolean"?l:E?.indeterminate,R=typeof g=="boolean"||typeof l=="boolean"?g||l:E?.checked||E?.indeterminate||!1;return y.jsx(G,{...x("indicator",{variant:v}),variant:v,mod:[{checked:R,disabled:w},h],...C,children:y.jsx(c,{indeterminate:T,...x("icon")})})});Fn.displayName="@mantine/core/CheckboxIndicator";Fn.classes=Ta;Fn.varsResolver=_a;var Pa={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const up=Pa;function Ma({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:o,unstyled:s,children:i,label:a,description:c,id:l,disabled:f,error:d,size:u,labelPosition:m="left",bodyElement:g="div",labelElement:h="label",variant:v,style:w,vars:S,mod:C,attributes:x,...E}){const T=J({name:e,props:t,className:n,style:w,classes:Pa,classNames:r,styles:o,unstyled:s,attributes:x}),R=c?`${l}-description`:void 0,P=d&&typeof d!="boolean"?`${l}-error`:void 0;return y.jsx(G,{...T("root"),__vars:{"--label-fz":me(u),"--label-lh":ne(u,"label-lh")},mod:[{"label-position":m},C],variant:v,size:u,...E,children:y.jsxs(G,{component:g,htmlFor:g==="label"?l:void 0,...T("body"),children:[i,y.jsxs("div",{...T("labelWrapper"),"data-disabled":f||void 0,children:[a&&y.jsx(G,{component:h,htmlFor:h==="label"?l:void 0,...T("label"),"data-disabled":f||void 0,children:a}),c&&y.jsx(ae.Description,{id:R,size:u,__inheritStyles:!1,...T("description"),children:c}),d&&typeof d!="boolean"&&y.jsx(ae.Error,{id:P,size:u,__inheritStyles:!1,...T("error"),children:d})]})]})})}Ma.displayName="@mantine/core/InlineInput";var ka={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const dp={labelPosition:"right",icon:Ea,withErrorStyles:!0,variant:"filled",radius:"sm"},$a=(e,{radius:t,color:n,size:r,iconColor:o,variant:s,autoContrast:i})=>{const a=De({color:n||e.primaryColor,theme:e}),c=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{root:{"--checkbox-size":ne(r,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:he(t),"--checkbox-color":s==="outline"?c:_e(n,e),"--checkbox-icon-color":o?_e(o,e):Hr(i,e)?Wt({color:n,theme:e,autoContrast:i}):void 0}}},_t=K(e=>{const t=H("Checkbox",dp,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,color:c,label:l,id:f,size:d,radius:u,wrapperProps:m,checked:g,labelPosition:h,description:v,error:w,disabled:S,variant:C,indeterminate:x,icon:E,rootRef:T,iconColor:R,onChange:P,autoContrast:O,mod:$,attributes:A,readOnly:D,onClick:L,withErrorStyles:k,ref:U,...F}=t,N=p.useRef(null),j=p.use(co),z=d||j?.size,W=J({name:"Checkbox",props:t,classes:ka,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:A,vars:a,varsResolver:$a}),{styleProps:b,rest:_}=Cn(F),I=St(f),B=[v?`${I}-description`:void 0,w&&typeof w!="boolean"?`${I}-error`:void 0,_["aria-describedby"]].filter(Boolean).join(" ")||void 0,Y={checked:j?.value.includes(_.value)??g,onChange:q=>{D||(j?.onChange(q),P?.(q))}},V=j?.isDisabled?.(_.value)??!1,X=S||V;return p.useEffect(()=>{N.current&&(N.current.indeterminate=x||!1,x?N.current.setAttribute("data-indeterminate","true"):N.current.removeAttribute("data-indeterminate"))},[x]),y.jsx(Ma,{...W("root"),__staticSelector:"Checkbox",__stylesApiProps:t,id:I,size:z,labelPosition:h,label:l,description:v,error:w,disabled:X,classNames:n,styles:s,unstyled:i,"data-checked":Y.checked||g||void 0,variant:C,ref:T,mod:$,attributes:A,inert:_.inert,...b,...m,children:y.jsxs(G,{...W("inner"),mod:{labelPosition:h},children:[y.jsx(G,{component:"input",id:I,ref:ue(N,U),mod:{error:!!w,"with-error-styles":k},...W("input",{focusable:!0,variant:C}),..._,...Y,"aria-describedby":B,disabled:X,inert:_.inert,type:"checkbox",onClick:q=>{D&&Y.checked===void 0&&q.preventDefault(),L?.(q)}}),y.jsx(E,{indeterminate:x,...W("icon")})]})})});_t.classes={...ka,...up};_t.varsResolver=$a;_t.displayName="@mantine/core/Checkbox";_t.Group=lo;_t.Indicator=Fn;_t.Card=zn;var Aa={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const Na=(e,{radius:t,color:n,gradient:r,variant:o,size:s,autoContrast:i,circle:a})=>{const c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:i});return{root:{"--badge-height":ne(s,"badge-height"),"--badge-padding-x":ne(s,"badge-padding-x"),"--badge-fz":ne(s,"badge-fz"),"--badge-radius":a||t===void 0?void 0:he(t),"--badge-bg":n||o?c.background:void 0,"--badge-color":n||o?c.color:void 0,"--badge-bd":n||o?c.border:void 0,"--badge-dot-color":o==="dot"?_e(n,e):void 0}}},uo=ke(e=>{const t=H("Badge",null,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,radius:c,color:l,gradient:f,leftSection:d,rightSection:u,children:m,variant:g,fullWidth:h,autoContrast:v,circle:w,mod:S,attributes:C,...x}=t,E=J({name:"Badge",props:t,classes:Aa,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:C,vars:a,varsResolver:Na});return y.jsxs(G,{variant:g,mod:[{block:h,circle:w,"with-right-section":!!u,"with-left-section":!!d},S],...E("root",{variant:g}),...x,children:[d&&y.jsx("span",{...E("section"),"data-position":"left",children:d}),y.jsx("span",{...E("label"),children:m}),u&&y.jsx("span",{...E("section"),"data-position":"right",children:u})]})});uo.classes=Aa;uo.varsResolver=Na;uo.displayName="@mantine/core/Badge";var Pt={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const xs={orientation:"horizontal"},Ia=(e,{borderWidth:t})=>({group:{"--button-border-width":M(t)}}),Hn=K(e=>{const t=H("ButtonGroup",xs,e),{className:n,style:r,classNames:o,styles:s,unstyled:i,orientation:a,vars:c,borderWidth:l,mod:f,attributes:d,...u}=H("ButtonGroup",xs,e),m=J({name:"ButtonGroup",props:t,classes:Pt,className:n,style:r,classNames:o,styles:s,unstyled:i,attributes:d,vars:c,varsResolver:Ia,rootSelector:"group"});return y.jsx(G,{...m("group"),mod:[{orientation:a},f],role:"group",...u})});Hn.classes=Pt;Hn.varsResolver=Ia;Hn.displayName="@mantine/core/ButtonGroup";const ja=(e,{radius:t,color:n,gradient:r,variant:o,autoContrast:s,size:i})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:s});return{groupSection:{"--section-height":ne(i,"section-height"),"--section-padding-x":ne(i,"section-padding-x"),"--section-fz":i?.includes("compact")?me(i.replace("compact-","")):me(i),"--section-radius":t===void 0?void 0:he(t),"--section-bg":n||o?a.background:void 0,"--section-color":a.color,"--section-bd":n||o?a.border:void 0}}},Wn=K(e=>{const t=H("ButtonGroupSection",null,e),{className:n,style:r,classNames:o,styles:s,unstyled:i,vars:a,gradient:c,radius:l,autoContrast:f,attributes:d,...u}=t,m=J({name:"ButtonGroupSection",props:t,classes:Pt,className:n,style:r,classNames:o,styles:s,unstyled:i,attributes:d,vars:a,varsResolver:ja,rootSelector:"groupSection"});return y.jsx(G,{...m("groupSection"),...u})});Wn.classes=Pt;Wn.varsResolver=ja;Wn.displayName="@mantine/core/ButtonGroupSection";const fp={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${M(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},Oa=(e,{radius:t,color:n,gradient:r,variant:o,size:s,justify:i,autoContrast:a})=>{const c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:a});return{root:{"--button-justify":i,"--button-height":ne(s,"button-height"),"--button-padding-x":ne(s,"button-padding-x"),"--button-fz":s?.includes("compact")?me(s.replace("compact-","")):me(s),"--button-radius":t===void 0?void 0:he(t),"--button-bg":n||o?c.background:void 0,"--button-hover":n||o?c.hover:void 0,"--button-color":c.color,"--button-bd":n||o?c.border:void 0,"--button-hover-color":n||o?c.hoverColor:void 0}}},Zt=ke(e=>{const t=H("Button",null,e),{style:n,vars:r,className:o,color:s,disabled:i,children:a,leftSection:c,rightSection:l,fullWidth:f,variant:d,radius:u,loading:m,loaderProps:g,gradient:h,classNames:v,styles:w,unstyled:S,"data-disabled":C,autoContrast:x,mod:E,attributes:T,...R}=t,P=J({name:"Button",props:t,classes:Pt,className:o,style:n,classNames:v,styles:w,unstyled:S,attributes:T,vars:r,varsResolver:Oa}),O=!!c,$=!!l;return y.jsxs(Be,{...P("root",{active:!i&&!m&&!C}),unstyled:S,variant:d,disabled:i||m,mod:[{disabled:i||C,loading:m,block:f,"with-left-section":O,"with-right-section":$},E],...R,children:[typeof m=="boolean"&&y.jsx(dt,{mounted:m,transition:fp,duration:150,children:A=>y.jsx(G,{component:"span",...P("loader",{style:A}),"aria-hidden":!0,children:y.jsx(ft,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...g})})}),y.jsxs("span",{...P("inner"),children:[c&&y.jsx(G,{component:"span",...P("section"),mod:{position:"left"},children:c}),y.jsx(G,{component:"span",mod:{loading:m},...P("label"),children:a}),l&&y.jsx(G,{component:"span",...P("section"),mod:{position:"right"},children:l})]})]})});Zt.classes=Pt;Zt.varsResolver=Oa;Zt.displayName="@mantine/core/Button";Zt.Group=Hn;Zt.GroupSection=Wn;const pp=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],Ss={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"};function Cs(e){Object.keys(Ss).forEach(t=>{e.style.setProperty(t,Ss[t],"important")})}function mp(e){const t=window.getComputedStyle(e);if(t===null)return null;const n={};for(const r of pp)n[r]=t[r];return n.boxSizing===""?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}let ce=null;function hp(e,t,n=1,r=1/0){ce||(ce=document.createElement("textarea"),ce.setAttribute("tabindex","-1"),ce.setAttribute("aria-hidden","true"),ce.setAttribute("aria-label","autosize measurement"),Cs(ce)),ce.parentNode===null&&document.body.appendChild(ce);const{paddingSize:o,borderSize:s,sizingStyle:i}=e,{boxSizing:a}=i;Object.keys(i).forEach(u=>{ce.style[u]=i[u]}),Cs(ce),ce.value=t;let c=a==="border-box"?ce.scrollHeight+s:ce.scrollHeight-o;ce.value=t,c=a==="border-box"?ce.scrollHeight+s:ce.scrollHeight-o,ce.value="x";const l=ce.scrollHeight-o;let f=l*n;a==="border-box"&&(f=f+o+s),c=Math.max(f,c);let d=l*r;return a==="border-box"&&(d=d+o+s),c=Math.min(d,c),[c,l]}function gp({maxRows:e,minRows:t,onChange:n,ref:r,...o}){const s=o.value!==void 0,i=p.useRef(null),a=ue(i,r),c=p.useRef(0),l=p.useRef(0),f=()=>{const u=i.current;if(!u)return;const m=mp(u);if(!m)return;const[g]=hp(m,u.value||u.placeholder||"x",t,e);c.current!==g&&(c.current=g,u.style.setProperty("height",`${g}px`,"important"))},d=u=>{s||f(),n?.(u)};return p.useLayoutEffect(f),p.useEffect(()=>{const u=()=>f();return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),p.useEffect(()=>{const u=i.current;if(!u||typeof ResizeObserver>"u")return;l.current=u.offsetWidth;const m=new ResizeObserver(()=>{i.current&&i.current.offsetWidth!==l.current&&(l.current=i.current.offsetWidth,f())});return m.observe(u),()=>m.disconnect()},[]),p.useEffect(()=>{const u=()=>f();return document.fonts.addEventListener("loadingdone",u),()=>document.fonts.removeEventListener("loadingdone",u)},[]),p.useEffect(()=>{const u=m=>{if(i.current?.form===m.target&&!s){const g=i.current.value;requestAnimationFrame(()=>{i.current&&g!==i.current.value&&f()})}};return document.body.addEventListener("reset",u),()=>document.body.removeEventListener("reset",u)},[s]),y.jsx("textarea",{rows:t,...o,onChange:d,ref:a})}const La=K(e=>{const{autosize:t,maxRows:n,minRows:r,__staticSelector:o,resize:s,bottomSection:i,bottomSectionProps:a,...c}=H(["Input","InputWrapper","Textarea"],null,e),l=t&&Dc()!=="test",f=l?{maxRows:n,minRows:r}:{};return y.jsx(et,{component:l?gp:"textarea",...c,__staticSelector:o||"Textarea",__bottomSection:i,__bottomSectionProps:a,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":s},...f})});La.classes=et.classes;La.displayName="@mantine/core/Textarea";const[vp,be]=lt("Menu component was not found in the tree"),Da=p.createContext(null);function Ba(e){const{value:t,defaultValue:n,onChange:r,children:o}=H("MenuCheckboxGroup",null,e),[s,i]=We({value:t,defaultValue:n,finalValue:[],onChange:r}),a=p.useCallback(c=>{i(s.includes(c)?s.filter(l=>l!==c):[...s,c])},[s,i]);return y.jsx(Da,{value:{values:s,onChange:a},children:o})}Ba.displayName="@mantine/core/MenuCheckboxGroup";const xt=p.createContext(null);function za({role:e,checked:t,indicator:n,onSelect:r,color:o,closeMenuOnClick:s,rightSection:i,children:a,disabled:c,dataDisabled:l,className:f,style:d,styles:u,classNames:m,buttonRef:g,others:h}){const v=be(),w=p.use(xt),S=Me(),{dir:C}=Ye(),x=p.useRef(null),E=ee(h.onClick,()=>{l||(r(),s&&v.closeDropdownImmediately())}),T=ee(h.onMouseMove,()=>{if(!v.hasSearch)return;const A=x.current?.closest("[data-menu-dropdown]");A&&A.querySelectorAll("[data-menu-active]").forEach(D=>{D!==x.current&&D.closest("[data-menu-dropdown]")===A&&D.removeAttribute("data-menu-active")})}),R=ee(h.onKeyDown,A=>{A.key==="ArrowLeft"&&w&&(w.close(),w.focusParentItem())}),P=o?S.variantColorResolver({color:o,theme:S,variant:"light"}):void 0,O=o?De({color:o,theme:S}):null,$=v.alignItemsLabels!=="none"||t;return y.jsxs(Be,{onMouseDown:A=>A.preventDefault(),...h,unstyled:v.unstyled,tabIndex:v.menuItemTabIndex,...v.getStyles("item",{className:f,style:d,styles:u,classNames:m}),ref:ue(x,g),role:e,"aria-checked":t,disabled:c,"data-menu-item":!0,"data-checked":t||void 0,"data-disabled":c||l||void 0,"data-mantine-stop-propagation":!0,onClick:E,onMouseMove:T,onKeyDown:wn({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:v.loop,dir:C,orientation:"vertical",onKeyDown:R}),__vars:{"--menu-item-color":O?.isThemeColor&&O?.shade===void 0?`var(--mantine-color-${O.color}-6)`:P?.color,"--menu-item-hover":P?.hover},children:[$&&y.jsx("div",{...v.getStyles("itemIndicator",{styles:u,classNames:m}),"data-checked":t||void 0,children:t?n:null}),a&&y.jsx("div",{...v.getStyles("itemLabel",{styles:u,classNames:m}),"data-menu-item-label":!0,children:a}),i&&y.jsx("div",{...v.getStyles("itemSection",{styles:u,classNames:m}),"data-position":"right",children:i})]})}var $e={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",search:"m_ef8769b6",itemLabel:"m_5476e0d3",itemIndicator:"m_8395186e",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const fo=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,color:i,closeMenuOnClick:a,rightSection:c,children:l,disabled:f,"data-disabled":d,value:u,checked:m,defaultChecked:g,onChange:h,checkIcon:v,ref:w,...S}=H("MenuCheckboxItem",null,e),C=be(),x=p.use(Da),E=x&&u!==void 0?x.values.includes(u):void 0,[T,R]=We({value:m??E,defaultValue:g,finalValue:!1,onChange:h}),P=v??C.checkIcon??y.jsx(Ra,{size:10});return y.jsx(za,{role:"menuitemcheckbox",checked:T,indicator:P,onSelect:()=>{h?R(!T):x&&u!==void 0?x.onChange(u):R(!T)},color:i,closeMenuOnClick:a,rightSection:c,disabled:f,dataDisabled:d,className:n,style:r,styles:o,classNames:t,buttonRef:w,others:S,children:l})});fo.classes=$e;fo.displayName="@mantine/core/MenuCheckboxItem";function Fa(e){const{children:t,disabled:n,longPressDelay:r}=H("MenuContextMenu",null,e),o=Ht(t);if(!o)throw new Error("Menu.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=be(),i=Nn(),a=$i({childProps:o.props,disabled:n||i.disabled,opened:s.opened,longPressDelay:r,setReference:i.reference,open:()=>s.openDropdown()});return p.cloneElement(o,a)}Fa.displayName="@mantine/core/MenuContextMenu";const po=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,...i}=H("MenuDivider",null,e),a=be();return y.jsx(G,{...a.getStyles("divider",{className:n,style:r,styles:o,classNames:t}),...i})});po.classes=$e;po.displayName="@mantine/core/MenuDivider";const yp=500;function Rs(e){return((e.querySelector("[data-menu-item-label]")??e).textContent??"").trim().toLowerCase()}function bp(e){return e.length>1&&e.split("").every(t=>t===e[0])}function Ha({enabled:e,opened:t,getDropdown:n}){const r=p.useRef({buffer:"",timeoutId:null});return p.useEffect(()=>{if(t&&e)return;const o=r.current;o.timeoutId!==null&&(window.clearTimeout(o.timeoutId),o.timeoutId=null),o.buffer=""},[t,e]),p.useEffect(()=>()=>{const{timeoutId:o}=r.current;o!==null&&window.clearTimeout(o)},[]),o=>{if(!e||o.defaultPrevented||o.ctrlKey||o.metaKey||o.altKey||o.key.length!==1||o.key===" ")return;const s=o.target;if(s&&(s.tagName==="INPUT"||s.tagName==="TEXTAREA"||s.tagName==="SELECT"||s.isContentEditable))return;const i=n();if(!i)return;const a=Array.from(i.querySelectorAll("[data-menu-item]:not([data-disabled])")).filter(u=>u.closest("[data-menu-dropdown]")===i);if(a.length===0)return;const c=r.current;c.buffer=(c.buffer+o.key).toLowerCase(),c.timeoutId!==null&&window.clearTimeout(c.timeoutId),c.timeoutId=window.setTimeout(()=>{c.buffer="",c.timeoutId=null},yp);const l=document.activeElement,f=l?a.indexOf(l):-1;let d=null;if(c.buffer.length===1||bp(c.buffer)){const u=c.buffer[0],m=f+1;for(let g=0;g<a.length;g+=1){const h=(m+g)%a.length;if(Rs(a[h]).startsWith(u)){d=a[h];break}}}else for(let u=0;u<a.length;u+=1)if(Rs(a[u]).startsWith(c.buffer)){d=a[u];break}d&&(o.preventDefault(),d.focus())}}const mo=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,onMouseEnter:i,onMouseLeave:a,onKeyDown:c,children:l,ref:f,...d}=H("MenuDropdown",null,e),u=p.useRef(null),m=be(),g=Ha({enabled:!m.hasSearch,opened:m.opened,getDropdown:()=>u.current}),h=ee(c,S=>{g(S),!(S.defaultPrevented||m.hasSearch)&&(S.key==="ArrowUp"||S.key==="ArrowDown")&&(S.preventDefault(),u.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),v=ee(i,()=>(m.trigger==="hover"||m.trigger==="click-hover")&&m.openDropdown()),w=ee(a,()=>(m.trigger==="hover"||m.trigger==="click-hover")&&m.closeDropdown());return y.jsxs(pe.Dropdown,{...d,onMouseEnter:v,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:ue(f,u),...m.getStyles("dropdown",{className:n,style:r,styles:o,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:h,children:[m.withInitialFocusPlaceholder&&!m.hasSearch&&y.jsx("div",{role:"presentation",tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),l]})});mo.classes=$e;mo.displayName="@mantine/core/MenuDropdown";const ho=ke(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,color:i,closeMenuOnClick:a,leftSection:c,rightSection:l,children:f,disabled:d,"data-disabled":u,ref:m,...g}=H("MenuItem",null,e),h=be(),v=p.use(xt),w=Me(),{dir:S}=Ye(),C=p.useRef(null),x=g,E=ee(x.onClick,()=>{u||(typeof a=="boolean"?a&&h.closeDropdownImmediately():h.closeOnItemClick&&h.closeDropdownImmediately())}),T=ee(x.onMouseMove,()=>{if(!h.hasSearch)return;const $=C.current?.closest("[data-menu-dropdown]");$&&$.querySelectorAll("[data-menu-active]").forEach(A=>{A!==C.current&&A.closest("[data-menu-dropdown]")===$&&A.removeAttribute("data-menu-active")})}),R=i?w.variantColorResolver({color:i,theme:w,variant:"light"}):void 0,P=i?De({color:i,theme:w}):null,O=ee(x.onKeyDown,$=>{$.key==="ArrowLeft"&&v&&(v.close(),v.focusParentItem())});return y.jsxs(Be,{onMouseDown:$=>$.preventDefault(),...g,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles("item",{className:n,style:r,styles:o,classNames:t}),ref:ue(C,m),role:"menuitem",disabled:d,"data-menu-item":!0,"data-disabled":d||u||void 0,"data-mantine-stop-propagation":!0,onClick:E,onMouseMove:T,onKeyDown:wn({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:h.loop,dir:S,orientation:"vertical",onKeyDown:O}),__vars:{"--menu-item-color":P?.isThemeColor&&P?.shade===void 0?`var(--mantine-color-${P.color}-6)`:R?.color,"--menu-item-hover":R?.hover},children:[h.alignItemsLabels==="all"&&y.jsx("div",{...h.getStyles("itemIndicator",{styles:o,classNames:t}),"data-placeholder":!0}),c&&y.jsx("div",{...h.getStyles("itemSection",{styles:o,classNames:t}),"data-position":"left",children:c}),f&&y.jsx("div",{...h.getStyles("itemLabel",{styles:o,classNames:t}),"data-menu-item-label":!0,children:f}),l&&y.jsx("div",{...h.getStyles("itemSection",{styles:o,classNames:t}),"data-position":"right",children:l})]})});ho.classes=$e;ho.displayName="@mantine/core/MenuItem";const go=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,...i}=H("MenuLabel",null,e),a=be();return y.jsx(G,{...a.getStyles("label",{className:n,style:r,styles:o,classNames:t}),...i})});go.classes=$e;go.displayName="@mantine/core/MenuLabel";const Wa=p.createContext(null);function Va(e){const{value:t,defaultValue:n,onChange:r,children:o}=H("MenuRadioGroup",null,e),[s,i]=We({value:t,defaultValue:n,finalValue:null,onChange:r});return y.jsx(Wa,{value:{value:s,onChange:a=>i(a)},children:o})}Va.displayName="@mantine/core/MenuRadioGroup";function wp({size:e,style:t,...n}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:{width:M(e),height:M(e),...t},"aria-hidden":!0,...n,children:y.jsx("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"currentColor"})})}const vo=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,color:i,closeMenuOnClick:a,rightSection:c,children:l,disabled:f,"data-disabled":d,value:u,checked:m,onChange:g,checkIcon:h,ref:v,...w}=H("MenuRadioItem",null,e),S=be(),C=p.use(Wa),x=m??(C?C.value===u:!1),E=h??S.checkIcon??y.jsx(wp,{size:5});return y.jsx(za,{role:"menuitemradio",checked:x,indicator:E,onSelect:()=>{x||(g?g(u):C&&C.onChange(u))},color:i,closeMenuOnClick:a,rightSection:c,disabled:f,dataDisabled:d,className:n,style:r,styles:o,classNames:t,buttonRef:v,others:w,children:l})});vo.classes=$e;vo.displayName="@mantine/core/MenuRadioItem";const xp="[data-menu-item]:not([data-disabled])",Sp="[data-menu-active]";function wr(e){return e?.closest("[data-menu-dropdown]")}function Cp(e){return e?Array.from(e.querySelectorAll(xp)).filter(t=>t.closest("[data-menu-dropdown]")===e):[]}function Ir(e){e&&e.querySelectorAll(Sp).forEach(t=>{t.closest("[data-menu-dropdown]")===e&&t.removeAttribute("data-menu-active")})}function ln(e,t){Ir(t),e&&(e.setAttribute("data-menu-active","true"),e.scrollIntoView({block:"nearest"}))}function xr(e){return e.findIndex(t=>t.hasAttribute("data-menu-active"))}const Rp={clearSearchOnClose:!0},yo=K(e=>{const{classNames:t,styles:n,onKeyDown:r,onChange:o,size:s,clearSearchOnClose:i,ref:a,...c}=H("MenuSearch",Rp,e),l=be(),f=p.useRef(null),d=ue(a,f),u=p.useRef(o);u.current=o,p.useEffect(()=>l.registerSearch(),[l.registerSearch]),p.useEffect(()=>{i?l.searchExitClearRef.current=()=>{u.current?.({currentTarget:{value:""}})}:l.searchExitClearRef.current=null},[i,l.searchExitClearRef]),p.useEffect(()=>{l.opened||Ir(wr(f.current))},[l.opened]);const m=ee(o,v=>{Ir(wr(v.currentTarget))}),g=ee(r,v=>{if(v.defaultPrevented)return;const w=wr(v.currentTarget),S=Cp(w);if(v.key==="ArrowDown"){if(v.preventDefault(),S.length===0)return;const C=xr(S);ln(S[C>=S.length-1?l.loop?0:C:C+1]??null,w)}else if(v.key==="ArrowUp"){if(v.preventDefault(),S.length===0)return;const C=xr(S);ln(S[C<=0?C===-1||l.loop?S.length-1:0:C-1]??null,w)}else if(v.key==="Home")v.preventDefault(),S.length>0&&ln(S[0],w);else if(v.key==="End")v.preventDefault(),S.length>0&&ln(S[S.length-1],w);else if(v.key==="Enter"){if(v.nativeEvent.isComposing||v.nativeEvent.keyCode===229)return;const C=S[xr(S)];C&&(v.preventDefault(),C.hasAttribute("data-sub-menu-item")?(C.focus(),C.dispatchEvent(new KeyboardEvent("keydown",{key:"ArrowRight",bubbles:!0}))):C.click())}}),h=l.getStyles("search");return y.jsx(ae,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:"search",size:s,...c,ref:d,classNames:[{input:h.className},t],styles:[{input:h.style},n],onKeyDown:g,onChange:m,__staticSelector:"Menu"})});yo.classes=$e;yo.displayName="@mantine/core/MenuSearch";const bo=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,onMouseEnter:i,onMouseLeave:a,onPointerEnter:c,onPointerLeave:l,onKeyDown:f,children:d,ref:u,...m}=H("MenuSubDropdown",null,e),g=p.useRef(null),h=be(),v=p.use(xt),w=Ha({enabled:!h.hasSearch,opened:v?.opened??!1,getDropdown:()=>g.current}),S=ee(f,x=>{w(x),!x.ctrlKey&&!x.metaKey&&!x.altKey&&x.key.length===1&&x.key!==" "&&x.stopPropagation()}),C=v?.getFloatingProps({onMouseEnter:i,onMouseLeave:a,onPointerEnter:c,onPointerLeave:l});return y.jsx(pe.Dropdown,{...m,...C,role:"menu","aria-orientation":"vertical",ref:ue(u,g,v?.setFloating),...h.getStyles("dropdown",{className:n,style:r,styles:o,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:S,children:d})});bo.classes=$e;bo.displayName="@mantine/core/MenuSubDropdown";const wo=ke(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,color:i,leftSection:a,rightSection:c,children:l,disabled:f,"data-disabled":d,closeMenuOnClick:u,ref:m,...g}=H("MenuSubItem",null,e),h=be(),v=p.use(xt),w=Me(),{dir:S}=Ye(),C=p.useRef(null),x=g,E=i?w.variantColorResolver({color:i,theme:w,variant:"light"}):void 0,T=i?De({color:i,theme:w}):null,R=ee(x.onKeyDown,A=>{A.key==="ArrowRight"&&(v?.open(),v?.focusFirstItem()),A.key==="ArrowLeft"&&v?.parentContext&&(v.parentContext.close(),v.parentContext.focusParentItem())}),P=ee(x.onClick,()=>{!d&&u&&h.closeDropdownImmediately()}),O=ee(x.onMouseMove,()=>{if(!h.hasSearch)return;const A=C.current?.closest("[data-menu-dropdown]");A&&A.querySelectorAll("[data-menu-active]").forEach(D=>{D!==C.current&&D.closest("[data-menu-dropdown]")===A&&D.removeAttribute("data-menu-active")})}),$=v?.getReferenceProps({onMouseEnter:x.onMouseEnter,onMouseLeave:x.onMouseLeave,onPointerEnter:x.onPointerEnter,onPointerLeave:x.onPointerLeave});return y.jsxs(Be,{onMouseDown:A=>A.preventDefault(),...g,...$,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles("item",{className:n,style:r,styles:o,classNames:t}),ref:ue(C,m,v?.setReference),role:"menuitem",disabled:f,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":f||d||void 0,"data-mantine-stop-propagation":!0,onClick:P,onMouseMove:O,onKeyDown:wn({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:h.loop,dir:S,orientation:"vertical",onKeyDown:R}),__vars:{"--menu-item-color":T?.isThemeColor&&T?.shade===void 0?`var(--mantine-color-${T.color}-6)`:E?.color,"--menu-item-hover":E?.hover},children:[h.alignItemsLabels==="all"&&y.jsx("div",{...h.getStyles("itemIndicator",{styles:o,classNames:t}),"data-placeholder":!0}),a&&y.jsx("div",{...h.getStyles("itemSection",{styles:o,classNames:t}),"data-position":"left",children:a}),l&&y.jsx("div",{...h.getStyles("itemLabel",{styles:o,classNames:t}),"data-menu-item-label":!0,children:l}),y.jsx("div",{...h.getStyles("itemSection",{styles:o,classNames:t}),"data-position":"right",children:c||y.jsx(va,{...h.getStyles("chevron"),size:14})})]})});wo.classes=$e;wo.displayName="@mantine/core/MenuSubItem";function Ya({children:e,refProp:t}){if(!$s(e))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return be(),y.jsx(pe.Target,{refProp:t,popupType:"menu",children:e})}Ya.displayName="@mantine/core/MenuSubTarget";const Ep={offset:0,position:"right-start",safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function Mt(e){const{children:t,closeDelay:n,openDelay:r,position:o,safeAreaPolygon:s,opened:i,onChange:a,...c}=H("MenuSub",Ep,e),l=St(),[f,d]=We({value:i,finalValue:!1,onChange:a}),u=p.use(xt),m=be(),{dir:g}=Ye(),h=_i(g,o),v=u?.registerOpenSub??m.registerOpenSub,w=p.useRef(null),S=p.useCallback(D=>{const L=w.current;return L&&L!==D&&L(),w.current=D,()=>{w.current===D&&(w.current=null)}},[]),C=p.useRef(d);C.current=d;const x=p.useCallback(()=>C.current(!0),[]),E=p.useCallback(()=>C.current(!1),[]);p.useEffect(()=>{if(f)return v(E)},[f,v,E]);const{context:T,refs:R}=yi({placement:h,open:f,onOpenChange:D=>{D?x():E()}}),{getReferenceProps:P,getFloatingProps:O}=Ld([Id(T,{handleClose:s?Bd(typeof s=="object"?s:void 0):void 0,delay:{open:r,close:n}})]),$=()=>window.setTimeout(()=>{document.getElementById(`${l}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),A=()=>window.setTimeout(()=>{document.getElementById(`${l}-target`)?.focus()},16);return y.jsx(xt,{value:{opened:f,close:E,open:x,focusFirstItem:$,focusParentItem:A,parentContext:u,setReference:R.setReference,setFloating:R.setFloating,getReferenceProps:P,getFloatingProps:O,registerOpenSub:S},children:y.jsx(pe,{opened:f,onChange:D=>D?x():E(),withinPortal:!1,withArrow:!1,id:l,position:o,...c,children:t})})}Mt.extend=e=>e;Mt.displayName="@mantine/core/MenuSub";Mt.Target=Ya;Mt.Dropdown=bo;Mt.Item=wo;const Tp={refProp:"ref"};function Ua(e){const{children:t,refProp:n,...r}=H("MenuTarget",Tp,e),o=Ht(t);if(!o)throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=be(),i=o.props,a=ee(i.onClick,()=>{s.trigger==="click"?s.toggleDropdown():s.trigger==="click-hover"&&(s.setOpenedViaClick(!0),s.opened||s.openDropdown())}),c=ee(i.onMouseEnter,()=>(s.trigger==="hover"||s.trigger==="click-hover")&&s.openDropdown()),l=ee(i.onMouseLeave,()=>{(s.trigger==="hover"||s.trigger==="click-hover"&&!s.openedViaClick)&&s.closeDropdown()});return y.jsx(pe.Target,{refProp:n,popupType:"menu",...r,children:p.cloneElement(o,{onClick:a,onMouseEnter:c,onMouseLeave:l,"data-expanded":s.opened?!0:void 0})})}Ua.displayName="@mantine/core/MenuTarget";const _p={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:"with-indicators"},we=K(e=>{const t=H("Menu",_p,e),{children:n,onOpen:r,onClose:o,opened:s,defaultOpened:i,trapFocus:a,onChange:c,closeOnItemClick:l,loop:f,closeOnEscape:d,trigger:u,openDelay:m,closeDelay:g,classNames:h,styles:v,unstyled:w,variant:S,vars:C,menuItemTabIndex:x,keepMounted:E,withInitialFocusPlaceholder:T,attributes:R,onExitTransitionEnd:P,alignItemsLabels:O,checkIcon:$,...A}=t,D=J({name:"Menu",classes:$e,props:t,classNames:h,styles:v,unstyled:w,attributes:R}),[L,k]=We({value:s,defaultValue:i,finalValue:!1,onChange:c}),[U,F]=p.useState(!1),N=()=>{k(!1),F(!1),L&&o?.()},j=()=>{k(!0),!L&&r?.()},z=()=>{L?N():j()},{openDropdown:W,closeDropdown:b}=Yd({open:j,close:N,closeDelay:g,openDelay:m}),_=p.useRef(null),I=p.useCallback(de=>{const ie=_.current;return ie&&ie!==de&&ie(),_.current=de,()=>{_.current===de&&(_.current=null)}},[]),B=p.useRef(0),[Y,V]=p.useState(!1),X=p.useCallback(()=>(B.current+=1,B.current===1&&V(!0),()=>{B.current-=1,B.current===0&&V(!1)}),[]),q=p.useRef(null),Z=()=>{q.current?.(),P?.()},te=de=>vc("[data-menu-item]","[data-menu-dropdown]",de),{resolvedClassNames:se,resolvedStyles:re}=Ur({classNames:h,styles:v,props:t});return y.jsx(vp,{value:{getStyles:D,opened:L,toggleDropdown:z,getItemIndex:te,openedViaClick:U,setOpenedViaClick:F,closeOnItemClick:l,closeDropdown:u==="click"?N:b,openDropdown:u==="click"?j:W,closeDropdownImmediately:N,loop:f,trigger:u,unstyled:w,menuItemTabIndex:x,withInitialFocusPlaceholder:T,registerOpenSub:I,hasSearch:Y,registerSearch:X,searchExitClearRef:q,alignItemsLabels:O,checkIcon:$},children:y.jsx(pe,{returnFocus:!0,...A,opened:L,onChange:z,defaultOpened:i,trapFocus:E?!1:a,closeOnEscape:d,__staticSelector:"Menu",classNames:se,styles:re,unstyled:w,variant:S,keepMounted:E,onExitTransitionEnd:Z,children:n})})});we.displayName="@mantine/core/Menu";we.classes=$e;we.Item=ho;we.Label=go;we.Dropdown=mo;we.Target=Ua;we.Divider=po;we.Search=yo;we.Sub=Mt;we.CheckboxItem=fo;we.CheckboxGroup=Ba;we.RadioItem=vo;we.RadioGroup=Va;we.ContextMenu=Fa;const[Pp,kt]=lt("Modal component was not found in tree");var Ge={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const Vn=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,...i}=H("ModalBody",null,e),a=kt();return y.jsx(ra,{...a.getStyles("body",{classNames:t,style:r,styles:o,className:n}),...i})});Vn.classes=Ge;Vn.displayName="@mantine/core/ModalBody";const Yn=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,...i}=H("ModalCloseButton",null,e),a=kt();return y.jsx(oa,{...a.getStyles("close",{classNames:t,style:r,styles:o,className:n}),...i})});Yn.classes=Ge;Yn.displayName="@mantine/core/ModalCloseButton";const Un=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,children:i,__hidden:a,...c}=H("ModalContent",null,e),l=kt(),f=l.scrollAreaComponent||qf;return y.jsx(sa,{...l.getStyles("content",{className:n,style:r,styles:o,classNames:t}),innerProps:l.getStyles("inner",{className:n,style:r,styles:o,classNames:t}),"data-full-screen":l.fullScreen||void 0,"data-modal-content":!0,"data-hidden":a||void 0,...c,children:y.jsx(f,{style:{maxHeight:l.fullScreen?"100dvh":`calc(100dvh - (${M(l.yOffset)} * 2))`},children:i})})});Un.classes=Ge;Un.displayName="@mantine/core/ModalContent";const Xn=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,...i}=H("ModalHeader",null,e),a=kt();return y.jsx(ia,{...a.getStyles("header",{classNames:t,style:r,styles:o,className:n}),...i})});Xn.classes=Ge;Xn.displayName="@mantine/core/ModalHeader";const Gn=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,...i}=H("ModalOverlay",null,e),a=kt();return y.jsx(aa,{...a.getStyles("overlay",{classNames:t,style:r,styles:o,className:n}),...i})});Gn.classes=Ge;Gn.displayName="@mantine/core/ModalOverlay";const Mp={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ut("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},Xa=(e,{radius:t,size:n,yOffset:r,xOffset:o})=>({root:{"--modal-radius":t===void 0?void 0:he(t),"--modal-size":ne(n,"modal-size"),"--modal-y-offset":M(r),"--modal-x-offset":M(o)}}),Qt=K(e=>{const t=H("ModalRoot",Mp,e),{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:a,yOffset:c,scrollAreaComponent:l,radius:f,fullScreen:d,centered:u,xOffset:m,__staticSelector:g,attributes:h,...v}=t,w=J({name:g,classes:Ge,props:t,className:r,style:o,classNames:n,styles:s,unstyled:i,attributes:h,vars:a,varsResolver:Xa});return y.jsx(Pp,{value:{yOffset:c,scrollAreaComponent:l,getStyles:w,fullScreen:d},children:y.jsx(na,{...w("root"),"data-full-screen":d||void 0,"data-centered":u||void 0,"data-offset-scrollbars":l===Et.Autosize||void 0,unstyled:i,...v})})});Qt.classes=Ge;Qt.varsResolver=Xa;Qt.displayName="@mantine/core/ModalRoot";const Ga=p.createContext(null);function qa({children:e}){const[t,n]=p.useState([]),[r,o]=p.useState(ut("modal"));return y.jsx(Ga,{value:{stack:t,addModal:(s,i)=>{n(a=>[...new Set([...a,s])]),o(a=>typeof i=="number"&&typeof a=="number"?Math.max(a,i):a)},removeModal:s=>n(i=>i.filter(a=>a!==s)),getZIndex:s=>`calc(${r} + ${t.indexOf(s)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}qa.displayName="@mantine/core/ModalStack";const qn=K(e=>{const{classNames:t,className:n,style:r,styles:o,vars:s,...i}=H("ModalTitle",null,e),a=kt();return y.jsx(ca,{...a.getStyles("title",{classNames:t,style:r,styles:o,className:n}),...i})});qn.classes=Ge;qn.displayName="@mantine/core/ModalTitle";const kp={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ut("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},ze=K(e=>{const{title:t,withOverlay:n,overlayProps:r,withCloseButton:o,closeButtonProps:s,children:i,radius:a,opened:c,stackId:l,zIndex:f,...d}=H("Modal",kp,e),u=p.use(Ga),m=!!t||o,g=u&&l?{closeOnEscape:u.currentId===l,trapFocus:u.currentId===l,zIndex:u.getZIndex(l)}:{},h=n===!1?!1:l&&u?u.currentId===l:c;return p.useEffect(()=>{u&&l&&(c?u.addModal(l,f||ut("modal")):u.removeModal(l))},[c,l,f]),y.jsxs(Qt,{radius:a,opened:c,zIndex:u&&l?u.getZIndex(l):f,...d,...g,children:[n&&y.jsx(Gn,{visible:h,transitionProps:u&&l?{duration:0}:void 0,...r}),y.jsxs(Un,{radius:a,__hidden:u&&l&&c?l!==u.currentId:!1,children:[m&&y.jsxs(Xn,{children:[t&&y.jsx(qn,{children:t}),o&&y.jsx(Yn,{...s})]}),y.jsx(Vn,{children:i})]})]})});ze.classes=Ge;ze.displayName="@mantine/core/Modal";ze.Root=Qt;ze.Overlay=Gn;ze.Content=Un;ze.Body=Vn;ze.Header=Xn;ze.Title=qn;ze.CloseButton=Yn;ze.Stack=qa;function $p(e){return"group"in e}function xo({data:e}){if($p(e)){const o=e.items.map(s=>y.jsx(xo,{data:s},s.value));return y.jsx("optgroup",{label:e.group,children:o})}const{value:t,label:n,...r}=e;return y.jsx("option",{value:e.value,...r,children:e.label})}xo.displayName="@mantine/core/NativeSelectOption";const Ap={size:"sm",rightSectionPointerEvents:"none"},Ka=K(e=>{const{data:t,children:n,size:r,error:o,rightSection:s,unstyled:i,...a}=H(["Input","InputWrapper","NativeSelect"],Ap,e),c=op(t).map((l,f)=>y.jsx(xo,{data:l},f));return y.jsx(et,{component:"select",...a,__staticSelector:"NativeSelect",size:r,pointer:!0,error:o,unstyled:i,rightSection:s||y.jsx(Bn,{size:r,error:o,unstyled:i}),children:n||c})});Ka.classes=et.classes;Ka.displayName="@mantine/core/NativeSelect";const[Np,So]=lt("Tabs component was not found in the tree");var Jt={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const Co=K(e=>{const t=H("TabsList",null,e),{children:n,className:r,grow:o,justify:s,classNames:i,styles:a,style:c,mod:l,...f}=t,d=So();return y.jsx(G,{...d.getStyles("list",{className:r,style:c,classNames:i,styles:a,props:t,variant:d.variant}),role:"tablist",variant:d.variant,mod:[{grow:o,orientation:d.orientation,placement:d.orientation==="vertical"&&d.placement,inverted:d.inverted},l],"aria-orientation":d.orientation,__vars:{"--tabs-justify":s},...f,children:n})});Co.classes=Jt;Co.displayName="@mantine/core/TabsList";const Ro=K(e=>{const t=H("TabsPanel",null,e),{children:n,className:r,value:o,classNames:s,styles:i,style:a,mod:c,keepMounted:l,...f}=t,d=Sn(),u=So();p.useEffect(()=>(u.setMountedPanel(o,!0),()=>{u.setMountedPanel(o,!1)}),[o]);const m=u.value===o,g=u.keepMounted||l,h=u.keepMountedMode!=="display-none",v=g&&h&&d!=="test"?y.jsx(p.Activity,{mode:m?"visible":"hidden",children:n}):g||m?n:null;return y.jsx(G,{...u.getStyles("panel",{className:r,classNames:s,styles:i,style:[a,m?void 0:{display:"none"}],props:t}),mod:[{orientation:u.orientation},c],role:"tabpanel",id:u.getPanelId(o),"aria-labelledby":u.getTabId(o),...f,children:v})});Ro.classes=Jt;Ro.displayName="@mantine/core/TabsPanel";const Eo=K(e=>{const t=H("TabsTab",null,e),{className:n,children:r,rightSection:o,leftSection:s,value:i,onClick:a,onKeyDown:c,disabled:l,color:f,style:d,classNames:u,styles:m,vars:g,mod:h,tabIndex:v,...w}=t,S=Me(),{dir:C}=Ye(),x=So(),E=i===x.value,T=P=>{x.onChange(x.allowTabDeactivation&&i===x.value?null:i),a?.(P)},R={classNames:u,styles:m,props:t};return y.jsxs(Be,{...x.getStyles("tab",{className:n,style:d,variant:x.variant,...R}),disabled:l,unstyled:x.unstyled,variant:x.variant,mod:[{active:E,disabled:l,orientation:x.orientation,inverted:x.inverted,placement:x.orientation==="vertical"&&x.placement},h],role:"tab",id:x.getTabId(i),"aria-selected":E,tabIndex:v!==void 0?v:E||x.value===null?0:-1,"aria-controls":x.mountedPanels.current.has(i)?x.getPanelId(i):void 0,onClick:T,__vars:{"--tabs-color":f?_e(f,S):void 0},onKeyDown:wn({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:x.activateTabWithKeyboard,loop:x.loop,orientation:x.orientation||"horizontal",dir:C,onKeyDown:c}),...w,children:[s&&y.jsx("span",{...x.getStyles("tabSection",R),"data-position":"left",children:s}),r&&y.jsx("span",{...x.getStyles("tabLabel",R),children:r}),o&&y.jsx("span",{...x.getStyles("tabSection",R),"data-position":"right",children:o})]})});Eo.classes=Jt;Eo.displayName="@mantine/core/TabsTab";const Es="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",Ip={keepMounted:!0,keepMountedMode:"activity",orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},Za=(e,{radius:t,color:n,autoContrast:r})=>({root:{"--tabs-radius":he(t),"--tabs-color":_e(n,e),"--tabs-text-color":Hr(r,e)?Wt({color:n,theme:e,autoContrast:r}):void 0}}),$t=K(e=>{const t=H("Tabs",Ip,e),{defaultValue:n,value:r,onChange:o,orientation:s,children:i,loop:a,id:c,activateTabWithKeyboard:l,allowTabDeactivation:f,variant:d,color:u,radius:m,inverted:g,placement:h,keepMounted:v,keepMountedMode:w,classNames:S,styles:C,unstyled:x,className:E,style:T,vars:R,autoContrast:P,mod:O,attributes:$,...A}=t,D=St(c),L=p.useRef(new Set),k=kc(),U=p.useCallback((z,W)=>{const b=L.current;W&&!b.has(z)?(b.add(z),k()):!W&&b.has(z)&&(b.delete(z),k())},[]),[F,N]=We({value:r,defaultValue:n,finalValue:null,onChange:o}),j=J({name:"Tabs",props:t,classes:Jt,className:E,style:T,classNames:S,styles:C,unstyled:x,attributes:$,vars:R,varsResolver:Za});return y.jsx(Np,{value:{placement:h,value:F,orientation:s,id:D,loop:a,activateTabWithKeyboard:l,getTabId:Io(`${D}-tab`,Es),getPanelId:Io(`${D}-panel`,Es),onChange:N,allowTabDeactivation:f,variant:d,color:u,radius:m,inverted:g,keepMounted:v,keepMountedMode:w,unstyled:x,getStyles:j,mountedPanels:L,setMountedPanel:U},children:y.jsx(G,{id:D,variant:d,mod:[{orientation:s,inverted:s==="horizontal"&&g,placement:s==="vertical"&&h},O],...j("root"),...A,children:i})})});$t.classes=Jt;$t.varsResolver=Za;$t.displayName="@mantine/core/Tabs";$t.Tab=Eo;$t.Panel=Ro;$t.List=Co;const Qa=K(e=>{const t=H(["Input","InputWrapper","TextInput"],null,e);return y.jsx(et,{component:"input",...t,__staticSelector:"TextInput"})});Qa.classes=et.classes;Qa.displayName="@mantine/core/TextInput";export{Yt as A,Zt as B,_t as C,Dn as I,ze as M,Ka as N,Sr as R,La as T,p as a,cc as b,Op as c,ae as d,uo as e,$t as f,Ts as g,Qa as h,we as i,y as j,jp as k,pl as l,_s as r};