function Bd(e,t){for(var n=0;no[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ND=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ED(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var La={exports:{}},Xo={};var ou;function kv(){if(ou)return Xo;ou=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,r,s){var a=null;if(s!==void 0&&(a=""+s),r.key!==void 0&&(a=""+r.key),"key"in r){s={};for(var i in r)i!=="key"&&(s[i]=r[i])}else s=r;return r=s.ref,{$$typeof:e,type:o,key:a,ref:r!==void 0?r:null,props:s}}return Xo.Fragment=t,Xo.jsx=n,Xo.jsxs=n,Xo}var ru;function $v(){return ru||(ru=1,La.exports=kv()),La.exports}var p=$v(),Fa={exports:{}},Se={};var su;function jv(){if(su)return Se;su=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator;function m(_){return _===null||typeof _!="object"?null:(_=f&&_[f]||_["@@iterator"],typeof _=="function"?_:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function x(_,T,L){this.props=_,this.context=T,this.refs=y,this.updater=L||h}x.prototype.isReactComponent={},x.prototype.setState=function(_,T){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,T,"setState")},x.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function b(){}b.prototype=x.prototype;function w(_,T,L){this.props=_,this.context=T,this.refs=y,this.updater=L||h}var C=w.prototype=new b;C.constructor=w,g(C,x.prototype),C.isPureReactComponent=!0;var S=Array.isArray;function N(){}var D={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function I(_,T,L){var B=L.ref;return{$$typeof:e,type:_,key:T,ref:B!==void 0?B:null,props:L}}function A(_,T){return I(_.type,T,_.props)}function F(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function z(_){var T={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(L){return T[L]})}var V=/\/+/g;function $(_,T){return typeof _=="object"&&_!==null&&_.key!=null?z(""+_.key):T.toString(36)}function O(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(N,N):(_.status="pending",_.then(function(T){_.status==="pending"&&(_.status="fulfilled",_.value=T)},function(T){_.status==="pending"&&(_.status="rejected",_.reason=T)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function R(_,T,L,B,G){var q=typeof _;(q==="undefined"||q==="boolean")&&(_=null);var X=!1;if(_===null)X=!0;else switch(q){case"bigint":case"string":case"number":X=!0;break;case"object":switch(_.$$typeof){case e:case t:X=!0;break;case u:return X=_._init,R(X(_._payload),T,L,B,G)}}if(X)return G=G(_),X=B===""?"."+$(_,0):B,S(G)?(L="",X!=null&&(L=X.replace(V,"$&/")+"/"),R(G,T,L,"",function(ee){return ee})):G!=null&&(F(G)&&(G=A(G,L+(G.key==null||_&&_.key===G.key?"":(""+G.key).replace(V,"$&/")+"/")+X)),T.push(G)),1;X=0;var le=B===""?".":B+":";if(S(_))for(var J=0;J<_.length;J++)B=_[J],q=le+$(B,J),X+=R(B,T,L,q,G);else if(J=m(_),typeof J=="function")for(_=J.call(_),J=0;!(B=_.next()).done;)B=B.value,q=le+$(B,J++),X+=R(B,T,L,q,G);else if(q==="object"){if(typeof _.then=="function")return R(O(_),T,L,B,G);throw T=String(_),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.")}return X}function E(_,T,L){if(_==null)return _;var B=[],G=0;return R(_,B,"","",function(q){return T.call(L,q,G++)}),B}function P(_){if(_._status===-1){var T=_._result;T=T(),T.then(function(L){(_._status===0||_._status===-1)&&(_._status=1,_._result=L)},function(L){(_._status===0||_._status===-1)&&(_._status=2,_._result=L)}),_._status===-1&&(_._status=0,_._result=T)}if(_._status===1)return _._result.default;throw _._result}var j=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var T=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(T))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},M={map:E,forEach:function(_,T,L){E(_,function(){T.apply(this,arguments)},L)},count:function(_){var T=0;return E(_,function(){T++}),T},toArray:function(_){return E(_,function(T){return T})||[]},only:function(_){if(!F(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Se.Activity=d,Se.Children=M,Se.Component=x,Se.Fragment=n,Se.Profiler=r,Se.PureComponent=w,Se.StrictMode=o,Se.Suspense=l,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Se.__COMPILER_RUNTIME={__proto__:null,c:function(_){return D.H.useMemoCache(_)}},Se.cache=function(_){return function(){return _.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(_,T,L){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var B=g({},_.props),G=_.key;if(T!=null)for(q in T.key!==void 0&&(G=""+T.key),T)!k.call(T,q)||q==="key"||q==="__self"||q==="__source"||q==="ref"&&T.ref===void 0||(B[q]=T[q]);var q=arguments.length-2;if(q===1)B.children=L;else if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),za.exports=Mv(),za.exports}var Gt=function(){return Gt=Object.assign||function(t){for(var n,o=1,r=arguments.length;o"u")return Jv;var t=Qv(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},tg=Kd(),xo="data-scroll-locked",ng=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),` .`.concat(Av,` { overflow: hidden `).concat(o,`; padding-right: `).concat(i,"px ").concat(o,`; } body[`).concat(xo,`] { overflow: hidden `).concat(o,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` padding-left: `.concat(r,`px; padding-top: `).concat(s,`px; padding-right: `).concat(a,`px; margin-left:0; margin-top:0; margin-right: `).concat(i,"px ").concat(o,`; `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(o,";")].filter(Boolean).join(""),` } .`).concat(Kr,` { right: `).concat(i,"px ").concat(o,`; } .`).concat(Ur,` { margin-right: `).concat(i,"px ").concat(o,`; } .`).concat(Kr," .").concat(Kr,` { right: 0 `).concat(o,`; } .`).concat(Ur," .").concat(Ur,` { margin-right: 0 `).concat(o,`; } body[`).concat(xo,`] { `).concat(Lv,": ").concat(i,`px; } `)},uu=function(){var e=parseInt(document.body.getAttribute(xo)||"0",10);return isFinite(e)?e:0},og=function(){v.useEffect(function(){return document.body.setAttribute(xo,(uu()+1).toString()),function(){var e=uu()-1;e<=0?document.body.removeAttribute(xo):document.body.setAttribute(xo,e.toString())}},[])},rg=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;og();var s=v.useMemo(function(){return eg(r)},[r]);return v.createElement(tg,{styles:ng(s,!t,r,n?"":"!important")})},gi=!1;if(typeof window<"u")try{var Ir=Object.defineProperty({},"passive",{get:function(){return gi=!0,!0}});window.addEventListener("test",Ir,Ir),window.removeEventListener("test",Ir,Ir)}catch{gi=!1}var lo=gi?{passive:!1}:!1,sg=function(e){return e.tagName==="TEXTAREA"},Ud=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!sg(e)&&n[t]==="visible")},ag=function(e){return Ud(e,"overflowY")},ig=function(e){return Ud(e,"overflowX")},du=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=qd(e,o);if(r){var s=Xd(e,o),a=s[1],i=s[2];if(a>i)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},lg=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},cg=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},qd=function(e,t){return e==="v"?ag(t):ig(t)},Xd=function(e,t){return e==="v"?lg(t):cg(t)},ug=function(e,t){return e==="h"&&t==="rtl"?-1:1},dg=function(e,t,n,o,r){var s=ug(e,window.getComputedStyle(t).direction),a=s*o,i=n.target,l=t.contains(i),c=!1,u=a>0,d=0,f=0;do{if(!i)break;var m=Xd(e,i),h=m[0],g=m[1],y=m[2],x=g-y-s*h;(h||x)&&qd(e,i)&&(d+=x,f+=h);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},Or=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fu=function(e){return[e.deltaX,e.deltaY]},pu=function(e){return e&&"current"in e?e.current:e},fg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pg=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},mg=0,co=[];function hg(e){var t=v.useRef([]),n=v.useRef([0,0]),o=v.useRef(),r=v.useState(mg++)[0],s=v.useState(Kd)[0],a=v.useRef(e);v.useEffect(function(){a.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var g=Ov([e.lockRef.current],(e.shards||[]).map(pu),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var i=v.useCallback(function(g,y){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var x=Or(g),b=n.current,w="deltaX"in g?g.deltaX:b[0]-x[0],C="deltaY"in g?g.deltaY:b[1]-x[1],S,N=g.target,D=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in g&&D==="h"&&N.type==="range")return!1;var k=window.getSelection(),I=k&&k.anchorNode,A=I?I===N||I.contains(N):!1;if(A)return!1;var F=du(D,N);if(!F)return!0;if(F?S=D:(S=D==="v"?"h":"v",F=du(D,N)),!F)return!1;if(!o.current&&"changedTouches"in g&&(w||C)&&(o.current=S),!S)return!0;var z=o.current||S;return dg(z,y,g,z==="h"?w:C)},[]),l=v.useCallback(function(g){var y=g;if(!(!co.length||co[co.length-1]!==s)){var x="deltaY"in y?fu(y):Or(y),b=t.current.filter(function(S){return S.name===y.type&&(S.target===y.target||y.target===S.shadowParent)&&fg(S.delta,x)})[0];if(b&&b.should){y.cancelable&&y.preventDefault();return}if(!b){var w=(a.current.shards||[]).map(pu).filter(Boolean).filter(function(S){return S.contains(y.target)}),C=w.length>0?i(y,w[0]):!a.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),c=v.useCallback(function(g,y,x,b){var w={name:g,delta:y,target:x,should:b,shadowParent:vg(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=v.useCallback(function(g){n.current=Or(g),o.current=void 0},[]),d=v.useCallback(function(g){c(g.type,fu(g),g.target,i(g,e.lockRef.current))},[]),f=v.useCallback(function(g){c(g.type,Or(g),g.target,i(g,e.lockRef.current))},[]);v.useEffect(function(){return co.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,lo),document.addEventListener("touchmove",l,lo),document.addEventListener("touchstart",u,lo),function(){co=co.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,lo),document.removeEventListener("touchmove",l,lo),document.removeEventListener("touchstart",u,lo)}},[]);var m=e.removeScrollBar,h=e.inert;return v.createElement(v.Fragment,null,h?v.createElement(s,{styles:pg(r)}):null,m?v.createElement(rg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gg=Wv(Gd,hg);var Un=v.forwardRef(function(e,t){return v.createElement(bs,Gt({},e,{ref:t,sideCar:gg}))});Un.classNames=bs.classNames;function Ve(e){return Object.keys(e)}function Ya(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Hi(e,t){const n={...e},o=t;return Ya(e)&&Ya(t)&&Object.keys(t).forEach(r=>{Ya(o[r])&&r in e?n[r]=Hi(n[r],o[r]):n[r]=o[r]}),n}function yg(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function bg(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function rr(e){const t=bg(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 mu(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function Zd(e,{shouldScale:t=!1}={}){function n(o){if(o===0||o==="0")return`0${e}`;if(typeof o=="number"){const r=`${o/16}${e}`;return t?mu(r):r}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(s=>n(s)).join(",");if(o.includes(" "))return o.split(" ").map(s=>n(s)).join(" ");const r=o.replace("px","");if(!Number.isNaN(Number(r))){const s=`${Number(r)/16}${e}`;return t?mu(s):s}}return o}return n}const K=Zd("rem",{shouldScale:!0}),as=Zd("em");function Dn(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function Jd(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(o=>t.test(o))}return!1}function xs(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==v.Fragment:!1}function nt(e){const t=v.createContext(null);return[({children:r,value:s})=>p.jsx(t.Provider,{value:s,children:r}),()=>{const r=v.useContext(t);if(r===null)throw new Error(e);return r}]}function Bt(e=null){const t=v.createContext(e);return[({children:r,value:s})=>p.jsx(t.Provider,{value:s,children:r}),()=>v.useContext(t)]}function is(e,t){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(t);return`${e}-${n}`}}function ls(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function xg(e,t,n){for(let o=e-1;o>=0;o-=1)if(!t[o].disabled)return o;if(n){for(let o=t.length-1;o>-1;o-=1)if(!t[o].disabled)return o}return e}function wg(e,t,n){for(let o=e+1;o{n?.(i);const l=Array.from(ls(i.currentTarget,e)?.querySelectorAll(t)||[]).filter(h=>Cg(i.currentTarget,h,e)),c=l.findIndex(h=>i.currentTarget===h),u=wg(c,l,o),d=xg(c,l,o),f=s==="rtl"?d:u,m=s==="rtl"?u:d;switch(i.key){case"ArrowRight":{a==="horizontal"&&(i.stopPropagation(),i.preventDefault(),l[f].focus(),r&&l[f].click());break}case"ArrowLeft":{a==="horizontal"&&(i.stopPropagation(),i.preventDefault(),l[m].focus(),r&&l[m].click());break}case"ArrowUp":{a==="vertical"&&(i.stopPropagation(),i.preventDefault(),l[d].focus(),r&&l[d].click());break}case"ArrowDown":{a==="vertical"&&(i.stopPropagation(),i.preventDefault(),l[u].focus(),r&&l[u].click());break}case"Home":{i.stopPropagation(),i.preventDefault(),!l[0].disabled&&l[0].focus();break}case"End":{i.stopPropagation(),i.preventDefault();const h=l.length-1;!l[h].disabled&&l[h].focus();break}}}}const Sg={app:100,modal:200,popover:300,overlay:400,max:9999};function st(e){return Sg[e]}const cs=()=>{};function _g(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||cs:n=>{n.key==="Escape"&&(e(n),t.onTrigger?.())}}function he(e,t="size",n=!0){if(e!==void 0)return Jd(e)?n?K(e):e:`var(--${t}-${e})`}function ze(e){return he(e,"mantine-spacing")}function Ee(e){return e===void 0?"var(--mantine-radius-default)":he(e,"mantine-radius")}function Ge(e){return he(e,"mantine-font-size")}function Qd(e){return he(e,"mantine-line-height",!1)}function Yi(e){if(e)return he(e,"mantine-shadow",!1)}function qe(e,t){return n=>{e?.(n),t?.(n)}}function Wi(e,t){return e in t?rr(t[e]):rr(e)}function sr(e,t){const n=e.map(o=>({value:o,px:Wi(o,t)}));return n.sort((o,r)=>o.px-r.px),n}function $t(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function Pg(e,t,n){return n?Array.from(ls(n,t)?.querySelectorAll(e)||[]).findIndex(o=>o===n):null}function gt(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function Ut(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function Rg(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;const n=Object.keys(e),{length:o}=n;if(o!==Object.keys(t).length)return!1;for(let r=0;r{t.current=e}),v.useMemo(()=>((...n)=>t.current?.(...n)),[])}function Cs(e,t){const{delay:n,flushOnUnmount:o,leading:r}=typeof t=="number"?{delay:t,flushOnUnmount:!1,leading:!1}:t,s=Vn(e),a=v.useRef(0),i=v.useMemo(()=>{const l=Object.assign((...c)=>{window.clearTimeout(a.current);const u=l._isFirstCall;l._isFirstCall=!1;function d(){window.clearTimeout(a.current),a.current=0,l._isFirstCall=!0}if(r&&u){s(...c);const h=()=>{d()},g=()=>{a.current!==0&&(d(),s(...c))},y=()=>{d()};l.flush=g,l.cancel=y,a.current=window.setTimeout(h,n);return}if(r&&!u){const h=()=>{a.current!==0&&(d(),s(...c))},g=()=>{d()};l.flush=h,l.cancel=g;const y=()=>{d()};a.current=window.setTimeout(y,n);return}const f=()=>{a.current!==0&&(d(),s(...c))},m=()=>{d()};l.flush=f,l.cancel=m,a.current=window.setTimeout(f,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return l},[s,n,r]);return v.useEffect(()=>()=>{o?i.flush():i.cancel()},[i,o]),i}const Dg=["mousedown","touchstart"];function ef(e,t,n){const o=v.useRef(null),r=t||Dg;return v.useEffect(()=>{const s=a=>{const{target:i}=a??{};if(Array.isArray(n)){const l=!document.body.contains(i)&&i?.tagName!=="HTML";n.every(u=>!!u&&!a.composedPath().includes(u))&&!l&&e(a)}else o.current&&!o.current.contains(i)&&e(a)};return r.forEach(a=>document.addEventListener(a,s)),()=>{r.forEach(a=>document.removeEventListener(a,s))}},[o,e,n]),o}function Ng(e={timeout:2e3}){const[t,n]=v.useState(null),[o,r]=v.useState(!1),[s,a]=v.useState(null),i=u=>{window.clearTimeout(s),a(window.setTimeout(()=>r(!1),e.timeout)),r(u)};return{copy:u=>{"clipboard"in navigator?navigator.clipboard.writeText(u).then(()=>i(!0)).catch(d=>n(d)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{r(!1),n(null),window.clearTimeout(s)},error:t,copied:o}}function Eg(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function Tg(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Hn(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,r]=v.useState(n?t:Tg(e));return v.useEffect(()=>{try{const s=window.matchMedia(e);return r(s.matches),Eg(s,a=>r(a.matches))}catch{return}},[e]),o||!1}function tf(e,t){return Hn("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function TD(e,t,n={leading:!1}){const[o,r]=v.useState(e),s=v.useRef(!1),a=v.useRef(null),i=v.useRef(!1),l=v.useCallback(()=>window.clearTimeout(a.current),[]);return v.useEffect(()=>{s.current&&(!i.current&&n.leading?(i.current=!0,r(e)):(l(),a.current=window.setTimeout(()=>{i.current=!1,r(e)},t)))},[e,n.leading,t]),v.useEffect(()=>(s.current=!0,l),[]),[o,l]}const It=typeof document<"u"?v.useLayoutEffect:v.useEffect;function bt(e,t){const n=v.useRef(!1);v.useEffect(()=>()=>{n.current=!1},[]),v.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function nf({opened:e,shouldReturnFocus:t=!0}){const n=v.useRef(null),o=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return bt(()=>{let r=-1;const s=a=>{a.key==="Tab"&&window.clearTimeout(r)};return document.addEventListener("keydown",s),e?n.current=document.activeElement:t&&(r=window.setTimeout(o,10)),()=>{window.clearTimeout(r),document.removeEventListener("keydown",s)}},[e,t]),o}const kg=/input|select|textarea|button|object/,of="a, input, select, textarea, button, object, [tabindex]";function $g(e){return e.style.display==="none"}function jg(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if($g(n))return!1;n=n.parentNode}return!0}function rf(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function yi(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(rf(e));return(kg.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&jg(e)}function sf(e){const t=rf(e);return(Number.isNaN(t)||t>=0)&&yi(e)}function Mg(e){return Array.from(e.querySelectorAll(of)).filter(sf)}function Ig(e,t){const n=Mg(e);if(!n.length){t.preventDefault();return}const o=n[t.shiftKey?0:n.length-1],r=e.getRootNode();let s=o===r.activeElement||e===r.activeElement;const a=r.activeElement;if(a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(s=n.filter(u=>u.getAttribute("type")==="radio"&&u.getAttribute("name")===a.getAttribute("name")).includes(o)),!s)return;t.preventDefault();const l=n[t.shiftKey?n.length-1:0];l&&l.focus()}function Og(e=!0){const t=v.useRef(null),n=r=>{let s=r.querySelector("[data-autofocus]");if(!s){const a=Array.from(r.querySelectorAll(of));s=a.find(sf)||a.find(yi)||null,!s&&yi(r)&&(s=r)}s&&s.focus({preventScroll:!0})},o=v.useCallback(r=>{e&&r!==null&&t.current!==r&&(r?(setTimeout(()=>{r.getRootNode()&&n(r)}),t.current=r):t.current=null)},[e]);return v.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>n(t.current));const r=s=>{s.key==="Tab"&&t.current&&Ig(t.current,s)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),o}const Ag=e=>(e+1)%1e6;function Lg(){const[,e]=v.useReducer(Ag,0);return e}const Fg=Je.useId||(()=>{});function zg(){const e=Fg();return e?`mantine-${e.replace(/:/g,"")}`:""}function Qe(e){const t=zg(),[n,o]=v.useState(t);return It(()=>{o(Ut())},[]),typeof e=="string"?e:typeof window>"u"?t:n}function kD(e=[]){const[t,n]=v.useState(e),o=v.useCallback((...x)=>n(b=>[...b,...x]),[]),r=v.useCallback((...x)=>n(b=>[...x,...b]),[]),s=v.useCallback((x,...b)=>n(w=>[...w.slice(0,x),...b,...w.slice(x)]),[]),a=v.useCallback(x=>n(b=>b.map((w,C)=>x(w,C))),[]),i=v.useCallback((...x)=>n(b=>b.filter((w,C)=>!x.includes(C))),[]),l=v.useCallback(()=>n(x=>{const b=[...x];return b.pop(),b}),[]),c=v.useCallback(()=>n(x=>{const b=[...x];return b.shift(),b}),[]),u=v.useCallback(({from:x,to:b})=>n(w=>{const C=[...w],S=w[x];return C.splice(x,1),C.splice(b,0,S),C}),[]),d=v.useCallback(({from:x,to:b})=>n(w=>{const C=[...w],S=C[x],N=C[b];return C.splice(b,1,S),C.splice(x,1,N),C}),[]),f=v.useCallback((x,b)=>n(w=>{const C=[...w];return C[x]=b,C}),[]),m=v.useCallback((x,b,w)=>n(C=>{const S=[...C];return S[x]={...S[x],[b]:w},S}),[]),h=v.useCallback((x,b)=>n(w=>w.map((C,S)=>x(C,S)?b(C,S):C)),[]),g=v.useCallback(x=>{n(b=>b.filter(x))},[]),y=v.useMemo(()=>({setState:n,append:o,prepend:r,insert:s,pop:l,shift:c,apply:a,applyWhere:h,remove:i,reorder:u,swap:d,setItem:f,setItemProp:m,filter:g}),[]);return[t,y]}function _o(e,t,n){v.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function Bg(e,t="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${t}: Failed to serialize the value`)}}function Vg(e){try{return e&&JSON.parse(e)}catch{return e}}function Hg(e){return{getItem:r=>{try{return window[e].getItem(r)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(r,s)=>{try{window[e].setItem(r,s)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:r=>{try{window[e].removeItem(r)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function Yg(e,t){const n="mantine-local-storage",{getItem:o,setItem:r,removeItem:s}=Hg(e);return function({key:i,defaultValue:l,getInitialValueInEffect:c=!0,sync:u=!0,deserialize:d=Vg,serialize:f=m=>Bg(m,t)}){const m=v.useCallback(b=>{let w;try{w=typeof window>"u"||!(e in window)||window[e]===null||!!b}catch{w=!0}if(w)return l;const C=o(i);return C!==null?d(C):l},[i,l]),[h,g]=v.useState(m(c)),y=v.useCallback(b=>{b instanceof Function?g(w=>{const C=b(w);return r(i,f(C)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:i,value:b(w)}}))}),C}):(r(i,f(b)),window.dispatchEvent(new CustomEvent(n,{detail:{key:i,value:b}})),g(b))},[i]),x=v.useCallback(()=>{s(i),g(l),window.dispatchEvent(new CustomEvent(n,{detail:{key:i,value:l}}))},[i,l]);return _o("storage",b=>{u&&b.storageArea===window[e]&&b.key===i&&g(d(b.newValue??void 0))}),_o(n,b=>{u&&b.detail.key===i&&g(b.detail.value)}),v.useEffect(()=>{l!==void 0&&h===void 0&&y(l)},[l,h,y]),v.useEffect(()=>{const b=m();b!==void 0&&y(b)},[i]),[h===void 0?l:h,y,x]}}function $D(e){return Yg("localStorage","use-local-storage")(e)}function ar(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function af(...e){const t=new Map;return n=>{if(e.forEach(o=>{const r=ar(o,n);r&&t.set(o,r)}),t.size>0)return()=>{e.forEach(o=>{const r=t.get(o);r&&typeof r=="function"?r():ar(o,null)}),t.clear()}}}function $e(...e){return v.useCallback(af(...e),e)}function lf(e){return{x:gt(e.x,0,1),y:gt(e.y,0,1)}}function Gi(e,t,n="ltr"){const o=v.useRef(!1),r=v.useRef(!1),s=v.useRef(0),[a,i]=v.useState(!1),l=v.useRef(null);return v.useEffect(()=>{o.current=!0},[]),{ref:v.useCallback(u=>{if(l.current&&(l.current(),l.current=null),!u)return;const d=({x:C,y:S})=>{cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{if(o.current&&u){u.style.userSelect="none";const N=u.getBoundingClientRect();if(N.width&&N.height){const D=gt((C-N.left)/N.width,0,1);e({x:n==="ltr"?D:1-D,y:gt((S-N.top)/N.height,0,1)})}}})},f=()=>{document.addEventListener("mousemove",x),document.addEventListener("mouseup",g),document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",g)},m=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",g)},h=()=>{!r.current&&o.current&&(r.current=!0,typeof t?.onScrubStart=="function"&&t.onScrubStart(),i(!0),f())},g=()=>{r.current&&o.current&&(r.current=!1,i(!1),m(),setTimeout(()=>{typeof t?.onScrubEnd=="function"&&t.onScrubEnd()},0))},y=C=>{h(),C.preventDefault(),x(C)},x=C=>d({x:C.clientX,y:C.clientY}),b=C=>{C.cancelable&&C.preventDefault(),h(),w(C)},w=C=>{C.cancelable&&C.preventDefault(),d({x:C.changedTouches[0].clientX,y:C.changedTouches[0].clientY})};u.addEventListener("mousedown",y),u.addEventListener("touchstart",b,{passive:!1}),l.current=()=>{u.removeEventListener("mousedown",y),u.removeEventListener("touchstart",b)}},[n,e]),active:a}}function He({value:e,defaultValue:t,finalValue:n,onChange:o=()=>{}}){const[r,s]=v.useState(t!==void 0?t:n),a=(i,...l)=>{s(i),o?.(i,...l)};return e!==void 0?[e,o,!0]:[r,a,!1]}function bn(e,t){const n=t-e+1;return Array.from({length:n},(o,r)=>r+e)}const Ar="dots";function Wg({total:e,siblings:t=1,boundaries:n=1,page:o,initialPage:r=1,onChange:s}){const a=Math.max(Math.trunc(e),0),[i,l]=He({value:o,onChange:s,defaultValue:r,finalValue:r}),c=g=>{g<=0?l(1):g>a?l(a):l(g)},u=()=>c(i+1),d=()=>c(i-1),f=()=>c(1),m=()=>c(a);return{range:v.useMemo(()=>{if(t*2+3+n*2>=a)return bn(1,a);const y=Math.max(i-t,n),x=Math.min(i+t,a-n),b=y>n+2,w=xtypeof window<"u"?new ResizeObserver(a=>{const i=a[0];i&&(cancelAnimationFrame(t.current),t.current=requestAnimationFrame(()=>{if(n.current){const l=i.borderBoxSize?.[0]||i.contentBoxSize?.[0];if(l){const c=l.inlineSize,u=l.blockSize;r({width:c,height:u,x:i.contentRect.x,y:i.contentRect.y,top:i.contentRect.top,left:i.contentRect.left,bottom:i.contentRect.bottom,right:i.contentRect.right})}else r(i.contentRect)}}))}):null,[]);return v.useEffect(()=>(n.current&&s?.observe(n.current,e),()=>{s?.disconnect(),t.current&&cancelAnimationFrame(t.current)}),[n.current]),[n,o]}function Kg(e,t){if(!e||!t)return!1;if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;nt(Wa())),_o("resize",()=>t(Wa())),v.useEffect(()=>{t(Wa())},[]),[e,Xg]}const Jg={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function Lr(e){const t=e.replace("Key","").toLowerCase();return Jg[e]||t}function Qg(e){const t=e.toLowerCase().split("+").map(s=>s.trim()),n={alt:t.includes("alt"),ctrl:t.includes("ctrl"),meta:t.includes("meta"),mod:t.includes("mod"),shift:t.includes("shift"),plus:t.includes("[plus]")},o=["alt","ctrl","meta","shift","mod"],r=t.find(s=>!o.includes(s));return{...n,key:r==="[plus]"?"+":r}}function ey(e,t,n){const{alt:o,ctrl:r,meta:s,mod:a,shift:i,key:l}=e,{altKey:c,ctrlKey:u,metaKey:d,shiftKey:f,key:m,code:h}=t;if(o!==c)return!1;if(a){if(!u&&!d)return!1}else if(r!==u||s!==d)return!1;return i!==f?!1:!!(l&&(n?Lr(h)===Lr(l):Lr(m??h)===Lr(l)))}function ty(e,t){return n=>ey(Qg(e),n,t)}function ny(e,t,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function MD(e,t=["INPUT","TEXTAREA","SELECT"],n=!1){v.useEffect(()=>{const o=r=>{e.forEach(([s,a,i={preventDefault:!0,usePhysicalKeys:!1}])=>{ty(s,i.usePhysicalKeys)(r)&&ny(r,t,n)&&(i.preventDefault&&r.preventDefault(),a(r))})};return document.documentElement.addEventListener("keydown",o),()=>document.documentElement.removeEventListener("keydown",o)},[e])}function ID(){const[e,t]=v.useState(!1),n=v.useRef(null),o=v.useCallback(()=>{t(!0)},[]),r=v.useCallback(()=>{t(!1)},[]);return{ref:v.useCallback(a=>{n.current&&(n.current.removeEventListener("mouseenter",o),n.current.removeEventListener("mouseleave",r)),a&&(a.addEventListener("mouseenter",o),a.addEventListener("mouseleave",r)),n.current=a},[o,r]),hovered:e}}function Ki(e=!1,t={}){const[n,o]=v.useState(e),r=v.useCallback(()=>{o(i=>i||(t.onOpen?.(),!0))},[t.onOpen]),s=v.useCallback(()=>{o(i=>i&&(t.onClose?.(),!1))},[t.onClose]),a=v.useCallback(()=>{n?s():r()},[s,r,n]);return[n,{open:r,close:s,toggle:a}]}function oy(e,t,n={autoInvoke:!1}){const o=v.useRef(null),r=v.useCallback((...a)=>{o.current||(o.current=window.setTimeout(()=>{e(a),o.current=null},t))},[t]),s=v.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return v.useEffect(()=>(n.autoInvoke&&r(),s),[s,r]),{start:r,clear:s}}function ry(e){const t=v.useRef(void 0);return v.useEffect(()=>{t.current=e},[e]),t.current}const bi=(e,t)=>e<=t,sy=(e,t,n,o,r,s)=>{const a=bi(e,t);a&&!n.current||!a&&o&&!n.current?(n.current=!0,r?.()):!a&&n.current&&(n.current=!1,s?.())},ay=()=>{const[e,t]=v.useState(0),[n,o]=v.useState(!1),[r,s]=v.useState(!1);return v.useEffect(()=>{let a;const i=()=>{s(!0),clearTimeout(a),a=setTimeout(()=>{s(!1)},300)},l=()=>{if(r)return;const c=window.scrollY||document.documentElement.scrollTop;o(c{window.removeEventListener("scroll",l),window.removeEventListener("resize",i)}},[e,r]),n};function OD({fixedAt:e=0,onPin:t,onFix:n,onRelease:o}={}){const r=v.useRef(!1),s=ay(),[{y:a}]=Zg();return It(()=>{sy(a,e,r,s,t,o)},[a]),It(()=>{bi(a,e)&&n?.()},[a,e,n]),!!(bi(a,e)||s)}function cf(e,t,n){const o=v.useRef(null),r=v.useRef(null);return v.useEffect(()=>{const s=typeof n=="function"?n():n;return(s||r.current)&&(o.current=new MutationObserver(e),o.current.observe(s||r.current,t)),()=>{o.current?.disconnect()}},[e,t]),r}function iy(){const[e,t]=v.useState(!1);return v.useEffect(()=>t(!0),[]),e}function AD(e,{autoInvoke:t=!0,...n}={}){const[o,r]=v.useState(null),[s,a]=v.useState(!1),[i,l]=v.useState(null),c=v.useRef(null),u=v.useCallback(()=>(c.current&&c.current.abort(),c.current=new AbortController,a(!0),fetch(e,{signal:c.current.signal,...n}).then(f=>f.json()).then(f=>(r(f),a(!1),f)).catch(f=>(a(!1),f.name!=="AbortError"&&l(f),f))),[e]),d=v.useCallback(()=>{c.current&&c.current?.abort("")},[]);return v.useEffect(()=>(t&&u(),()=>{c.current&&c.current.abort("")}),[u,t]),{data:o,loading:s,error:i,refetch:u,abort:d}}function ly(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}function cy(e){function t(o){const r=Object.keys(o).reduce((s,a)=>(s[`${e}:${a}`]=i=>o[a](i.detail),s),{});It(()=>(Object.keys(r).forEach(s=>{window.removeEventListener(s,r[s]),window.addEventListener(s,r[s])}),()=>Object.keys(r).forEach(s=>{window.removeEventListener(s,r[s])})),[r])}function n(o){return(...r)=>ly(`${e}:${String(o)}`,r[0])}return[t,n]}var uy={};function uf(){return typeof process<"u"&&uy?"production":"development"}function dy(e,t){return t.length===0?e:t.reduce((n,o)=>Math.abs(o-e){Object.entries(n).forEach(([o,r])=>{t[o]?t[o]=Ze(t[o],r):t[o]=r})}),t}function Ps({theme:e,classNames:t,props:n,stylesCtx:o}){const s=(Array.isArray(t)?t:[t]).map(a=>typeof a=="function"?a(e,n,o):a||fy);return py(s)}function us({theme:e,styles:t,props:n,stylesCtx:o}){return(Array.isArray(t)?t:[t]).reduce((s,a)=>typeof a=="function"?{...s,...a(e,n,o)}:{...s,...a},{})}const Ui=v.createContext(null);function dn(){const e=v.useContext(Ui);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function my(){return dn().cssVariablesResolver}function hy(){return dn().classNamesPrefix}function Rs(){return dn().getStyleNonce}function vy(){return dn().withStaticClasses}function gy(){return dn().headless}function yy(){return dn().stylesTransform?.sx}function by(){return dn().stylesTransform?.styles}function Ds(){return dn().env||"default"}function xy(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function wy(e){let t=e.replace("#","");if(t.length===3){const a=t.split("");t=[a[0],a[0],a[1],a[1],a[2],a[2]].join("")}if(t.length===8){const a=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}}const n=parseInt(t,16),o=n>>16&255,r=n>>8&255,s=n&255;return{r:o,g:r,b:s,a:1}}function Cy(e){const[t,n,o,r]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:o,a:r===void 0?1:r}}function Sy(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(t);if(!n)return{r:0,g:0,b:0,a:1};const o=parseInt(n[1],10),r=parseInt(n[2],10)/100,s=parseInt(n[3],10)/100,a=n[5]?parseFloat(n[5]):void 0,i=(1-Math.abs(2*s-1))*r,l=o/60,c=i*(1-Math.abs(l%2-1)),u=s-i/2;let d,f,m;return l>=0&&l<1?(d=i,f=c,m=0):l>=1&&l<2?(d=c,f=i,m=0):l>=2&&l<3?(d=0,f=i,m=c):l>=3&&l<4?(d=0,f=c,m=i):l>=4&&l<5?(d=c,f=0,m=i):(d=i,f=0,m=c),{r:Math.round((d+u)*255),g:Math.round((f+u)*255),b:Math.round((m+u)*255),a:a||1}}function Ns(e){return xy(e)?wy(e):e.startsWith("rgb")?Cy(e):e.startsWith("hsl")?Sy(e):{r:0,g:0,b:0,a:1}}function Fr(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:o,b:r,a:s}=Ns(e),a=1-t,i=l=>Math.round(l*a);return`rgba(${i(n)}, ${i(o)}, ${i(r)}, ${s})`}function ir(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function Ga(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function _y(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function ff(e){if(e.startsWith("oklch("))return(_y(e)||0)/100;const{r:t,g:n,b:o}=Ns(e),r=t/255,s=n/255,a=o/255,i=Ga(r),l=Ga(s),c=Ga(a);return .2126*i+.7152*l+.0722*c}function Zo(e,t=.179){return e.startsWith("var(")?!1:ff(e)>t}function Pt({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:Zo(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:Zo(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:Zo(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,r]=e.split("."),s=r?Number(r):void 0,a=o in t.colors;if(a){const i=s!==void 0?t.colors[o][s]:t.colors[o][ir(t,n||"light")];return{color:o,value:i,shade:s,isThemeColor:a,isLight:Zo(i,t.luminanceThreshold),variable:r?`--mantine-color-${o}-${s}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:a,isLight:Zo(e,t.luminanceThreshold),shade:s,variable:void 0}}function Ae(e,t){const n=Pt({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function xi(e,t){const n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},o=Ae(n.from,t),r=Ae(n.to,t);return`linear-gradient(${n.deg}deg, ${o} 0%, ${r} 100%)`}function Wt(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const s=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${s}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:o,b:r}=Ns(e);return`rgba(${n}, ${o}, ${r}, ${t})`}const uo=Wt,Py=({color:e,theme:t,variant:n,gradient:o,autoContrast:r})=>{const s=Pt({color:e,theme:t}),a=typeof r=="boolean"?r:t.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const i=a&&s.isLight?"var(--mantine-color-black)":"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:i,border:`${K(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:i,border:`${K(1)} solid transparent`}:{background:e,hover:Fr(e,.1),color:i,border:`${K(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:`${K(1)} solid transparent`};const i=t.colors[s.color][s.shade];return{background:Wt(i,.1),hover:Wt(i,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${K(1)} solid transparent`}}return{background:Wt(e,.1),hover:Wt(e,.12),color:e,border:`${K(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:`${K(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:Wt(t.colors[s.color][s.shade],.05),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${K(1)} solid var(--mantine-color-${s.color}-${s.shade})`}:{background:"transparent",hover:Wt(e,.05),color:e,border:`${K(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:`${K(1)} solid transparent`};const i=t.colors[s.color][s.shade];return{background:"transparent",hover:Wt(i,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${K(1)} solid transparent`}}return{background:"transparent",hover:Wt(e,.12),color:e,border:`${K(1)} solid transparent`}}return n==="transparent"?s.isThemeColor?s.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${K(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${K(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${K(1)} solid transparent`}:n==="white"?s.isThemeColor?s.shade===void 0?{background:"var(--mantine-color-white)",hover:Fr(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${K(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Fr(t.white,.01),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${K(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Fr(t.white,.01),color:e,border:`${K(1)} solid transparent`}:n==="gradient"?{background:xi(o,t),hover:xi(o,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:`${K(1)} solid var(--mantine-color-default-border)`}:{}},Ry={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"]},hu="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",qi={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:Ry,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:Py,autoContrast:!1,luminanceThreshold:.3,fontFamily:hu,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:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:hu,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:K(34),lineHeight:"1.3"},h2:{fontSize:K(26),lineHeight:"1.35"},h3:{fontSize:K(22),lineHeight:"1.4"},h4:{fontSize:K(18),lineHeight:"1.45"},h5:{fontSize:K(16),lineHeight:"1.5"},h6:{fontSize:K(14),lineHeight:"1.5"}}},fontSizes:{xs:K(12),sm:K(14),md:K(16),lg:K(18),xl:K(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:K(2),sm:K(4),md:K(8),lg:K(16),xl:K(32)},spacing:{xs:K(10),sm:K(12),md:K(16),lg:K(20),xl:K(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), 0 ${K(1)} ${K(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(10)} ${K(15)} ${K(-5)}, rgba(0, 0, 0, 0.04) 0 ${K(7)} ${K(7)} ${K(-5)}`,md:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(20)} ${K(25)} ${K(-5)}, rgba(0, 0, 0, 0.04) 0 ${K(10)} ${K(10)} ${K(-5)}`,lg:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(28)} ${K(23)} ${K(-7)}, rgba(0, 0, 0, 0.04) 0 ${K(12)} ${K(12)} ${K(-7)}`,xl:`0 ${K(1)} ${K(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${K(36)} ${K(28)} ${K(-7)}, rgba(0, 0, 0, 0.04) 0 ${K(17)} ${K(17)} ${K(-7)}`},other:{},components:{}};function vu(e){return e==="auto"||e==="dark"||e==="light"}function Dy({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window>"u")return n;try{const o=window.localStorage.getItem(e);return vu(o)?o:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(o){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",o)}},subscribe:n=>{t=o=>{o.storageArea===window.localStorage&&o.key===e&&vu(o.newValue)&&n(o.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const Ny="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",gu="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Ka(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function yu(e){if(!(e.primaryColor in e.colors))throw new Error(Ny);if(typeof e.primaryShade=="object"&&(!Ka(e.primaryShade.dark)||!Ka(e.primaryShade.light)))throw new Error(gu);if(typeof e.primaryShade=="number"&&!Ka(e.primaryShade))throw new Error(gu)}function Ey(e,t){if(!t)return yu(e),e;const n=Hi(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings.fontFamily=t.fontFamily),yu(n),n}const Xi=v.createContext(null),Ty=()=>v.useContext(Xi)||qi;function Ke(){const e=v.useContext(Xi);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 pf({theme:e,children:t,inherit:n=!0}){const o=Ty(),r=v.useMemo(()=>Ey(n?o:qi,e),[e,o,n]);return p.jsx(Xi.Provider,{value:r,children:t})}pf.displayName="@mantine/core/MantineThemeProvider";function ky(){const e=Ke(),t=Rs(),n=Ve(e.breakpoints).reduce((o,r)=>{const s=e.breakpoints[r].includes("px"),a=rr(e.breakpoints[r]),i=s?`${a-.1}px`:as(a-.1),l=s?`${a}px`:as(a);return`${o}@media (max-width: ${i}) {.mantine-visible-from-${r} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${r} {display: none !important;}}`},"");return p.jsx("style",{"data-mantine-styles":"classes",nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function Ua(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function mf(e,t){const n=t?[t]:[":root",":host"],o=Ua(e.variables),r=o?`${n.join(", ")}{${o}}`:"",s=Ua(e.dark),a=Ua(e.light),i=u=>n.map(d=>d===":host"?`${d}([data-mantine-color-scheme="${u}"])`:`${d}[data-mantine-color-scheme="${u}"]`).join(", "),l=s?`${i("dark")}{${s}}`:"",c=a?`${i("light")}{${a}}`:"";return`${r} ${l} ${c}`}function Qt({color:e,theme:t,autoContrast:n}){return(typeof n=="boolean"?n:t.autoContrast)&&Pt({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function bu(e,t){return Qt({color:e.colors[e.primaryColor][ir(e,t)],theme:e,autoContrast:null})}function zr({theme:e,color:t,colorScheme:n,name:o=t,withColorValues:r=!0}){if(!e.colors[t])return{};if(n==="light"){const i=ir(e,"light"),l={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${i===9?8:i+1})`,[`--mantine-color-${o}-light`]:uo(e.colors[t][i],.1),[`--mantine-color-${o}-light-hover`]:uo(e.colors[t][i],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-outline-hover`]:uo(e.colors[t][i],.05)};return r?{[`--mantine-color-${o}-0`]:e.colors[t][0],[`--mantine-color-${o}-1`]:e.colors[t][1],[`--mantine-color-${o}-2`]:e.colors[t][2],[`--mantine-color-${o}-3`]:e.colors[t][3],[`--mantine-color-${o}-4`]:e.colors[t][4],[`--mantine-color-${o}-5`]:e.colors[t][5],[`--mantine-color-${o}-6`]:e.colors[t][6],[`--mantine-color-${o}-7`]:e.colors[t][7],[`--mantine-color-${o}-8`]:e.colors[t][8],[`--mantine-color-${o}-9`]:e.colors[t][9],...l}:l}const s=ir(e,"dark"),a={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${s})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${s===9?8:s+1})`,[`--mantine-color-${o}-light`]:uo(e.colors[t][Math.max(0,s-2)],.15),[`--mantine-color-${o}-light-hover`]:uo(e.colors[t][Math.max(0,s-2)],.2),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${Math.max(s-5,0)})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(s-4,0)})`,[`--mantine-color-${o}-outline-hover`]:uo(e.colors[t][Math.max(s-4,0)],.05)};return r?{[`--mantine-color-${o}-0`]:e.colors[t][0],[`--mantine-color-${o}-1`]:e.colors[t][1],[`--mantine-color-${o}-2`]:e.colors[t][2],[`--mantine-color-${o}-3`]:e.colors[t][3],[`--mantine-color-${o}-4`]:e.colors[t][4],[`--mantine-color-${o}-5`]:e.colors[t][5],[`--mantine-color-${o}-6`]:e.colors[t][6],[`--mantine-color-${o}-7`]:e.colors[t][7],[`--mantine-color-${o}-8`]:e.colors[t][8],[`--mantine-color-${o}-9`]:e.colors[t][9],...a}:a}function $y(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function fo(e,t,n){Ve(t).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:t[o]}))}const hf=e=>{const t=ir(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:K(e.defaultRadius),o={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":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":bu(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-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":bu(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-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)"}};fo(o.variables,e.breakpoints,"breakpoint"),fo(o.variables,e.spacing,"spacing"),fo(o.variables,e.fontSizes,"font-size"),fo(o.variables,e.lineHeights,"line-height"),fo(o.variables,e.shadows,"shadow"),fo(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((s,a)=>{o.variables[`--mantine-primary-color-${a}`]=`var(--mantine-color-${e.primaryColor}-${a})`}),Ve(e.colors).forEach(s=>{const a=e.colors[s];if($y(a)){Object.assign(o.light,zr({theme:e,name:a.name,color:a.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,zr({theme:e,name:a.name,color:a.dark,colorScheme:"dark",withColorValues:!0}));return}a.forEach((i,l)=>{o.variables[`--mantine-color-${s}-${l}`]=i}),Object.assign(o.light,zr({theme:e,color:s,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,zr({theme:e,color:s,colorScheme:"dark",withColorValues:!1}))});const r=e.headings.sizes;return Ve(r).forEach(s=>{o.variables[`--mantine-${s}-font-size`]=r[s].fontSize,o.variables[`--mantine-${s}-line-height`]=r[s].lineHeight,o.variables[`--mantine-${s}-font-weight`]=r[s].fontWeight||e.headings.fontWeight}),o};function jy({theme:e,generator:t}){const n=hf(e),o=t?.(e);return o?Hi(n,o):n}const qa=hf(qi);function My(e){const t={variables:{},light:{},dark:{}};return Ve(e.variables).forEach(n=>{qa.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),Ve(e.light).forEach(n=>{qa.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),Ve(e.dark).forEach(n=>{qa.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function Iy(e){return mf({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},e)}function vf({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=Ke(),o=Rs(),r=my(),s=jy({theme:n,generator:r}),a=(e===void 0||e===":root"||e===":host")&&t,i=a?My(s):s,l=mf(i,e);return l?p.jsx("style",{"data-mantine-styles":!0,nonce:o?.(),dangerouslySetInnerHTML:{__html:`${l}${a?"":Iy(e)}`}}):null}vf.displayName="@mantine/CssVariables";function po(e,t){const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,o=e!=="auto"?e:n?"dark":"light";t()?.setAttribute("data-mantine-color-scheme",o)}function Oy({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:o}){const r=v.useRef(null),[s,a]=v.useState(()=>e.get(t)),i=o||s,l=v.useCallback(u=>{o||(po(u,n),a(u),e.set(u))},[e.set,i,o]),c=v.useCallback(()=>{a(t),po(t,n),e.clear()},[e.clear,t]);return v.useEffect(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),It(()=>{po(e.get(t),n)},[]),v.useEffect(()=>{if(o)return po(o,n),()=>{};o===void 0&&po(s,n),typeof window<"u"&&"matchMedia"in window&&(r.current=window.matchMedia("(prefers-color-scheme: dark)"));const u=d=>{s==="auto"&&po(d.matches?"dark":"light",n)};return r.current?.addEventListener("change",u),()=>r.current?.removeEventListener("change",u)},[s,o]),{colorScheme:i,setColorScheme:l,clearColorScheme:c}}function Ay({respectReducedMotion:e,getRootElement:t}){It(()=>{e&&t()?.setAttribute("data-respect-reduced-motion","true")},[e])}function Ly({theme:e,children:t,getStyleNonce:n,withStaticClasses:o=!0,withGlobalClasses:r=!0,deduplicateCssVariables:s=!0,withCssVariables:a=!0,cssVariablesSelector:i,classNamesPrefix:l="mantine",colorSchemeManager:c=Dy(),defaultColorScheme:u="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:m,stylesTransform:h,env:g}){const{colorScheme:y,setColorScheme:x,clearColorScheme:b}=Oy({defaultColorScheme:u,forceColorScheme:m,manager:c,getRootElement:d});return Ay({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),p.jsx(Ui.Provider,{value:{colorScheme:y,setColorScheme:x,clearColorScheme:b,getRootElement:d,classNamesPrefix:l,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:i??":root",withStaticClasses:o,stylesTransform:h,env:g},children:p.jsxs(pf,{theme:e,children:[a&&p.jsx(vf,{cssVariablesSelector:i,deduplicateCssVariables:s}),r&&p.jsx(ky,{}),t]})})}Ly.displayName="@mantine/core/MantineProvider";function pt({classNames:e,styles:t,props:n,stylesCtx:o}){const r=Ke();return{resolvedClassNames:Ps({theme:r,classNames:e,props:n,stylesCtx:o||void 0}),resolvedStyles:us({theme:r,styles:t,props:n,stylesCtx:o||void 0})}}const Fy={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function zy({theme:e,options:t,unstyled:n}){return Ze(t?.focusable&&!n&&(e.focusClassName||Fy[e.focusRing]),t?.active&&!n&&e.activeClassName)}function By({selector:e,stylesCtx:t,options:n,props:o,theme:r}){return Ps({theme:r,classNames:n?.classNames,props:n?.props||o,stylesCtx:t})[e]}function xu({selector:e,stylesCtx:t,theme:n,classNames:o,props:r}){return Ps({theme:n,classNames:o,props:r,stylesCtx:t})[e]}function Vy({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function Hy({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function Yy({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:o}){return o===!1?[]:e.map(r=>`${t}-${r}-${n}`)}function Wy({themeName:e,theme:t,selector:n,props:o,stylesCtx:r}){return e.map(s=>Ps({theme:t,classNames:t.components[s]?.classNames,props:o,stylesCtx:r})?.[n])}function Gy({options:e,classes:t,selector:n,unstyled:o}){return e?.variant&&!o?t[`${n}--${e.variant}`]:void 0}function Ky({theme:e,options:t,themeName:n,selector:o,classNamesPrefix:r,classNames:s,classes:a,unstyled:i,className:l,rootSelector:c,props:u,stylesCtx:d,withStaticClasses:f,headless:m,transformedStyles:h}){return Ze(zy({theme:e,options:t,unstyled:i||m}),Wy({theme:e,themeName:n,selector:o,props:u,stylesCtx:d}),Gy({options:t,classes:a,selector:o,unstyled:i}),xu({selector:o,stylesCtx:d,theme:e,classNames:s,props:u}),xu({selector:o,stylesCtx:d,theme:e,classNames:h,props:u}),By({selector:o,stylesCtx:d,options:t,props:u,theme:e}),Vy({rootSelector:c,selector:o,className:l}),Hy({selector:o,classes:a,unstyled:i||m}),f&&!m&&Yy({themeName:n,classNamesPrefix:r,selector:o,withStaticClass:t?.withStaticClass}),t?.className)}function Uy({theme:e,themeName:t,props:n,stylesCtx:o,selector:r}){return t.map(s=>us({theme:e,styles:e.components[s]?.styles,props:n,stylesCtx:o})[r]).reduce((s,a)=>({...s,...a}),{})}function wi({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...wi({style:o,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function qy(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(o=>{t[o]={...t[o],...Dn(n[o])}}),t),{})}function Xy({vars:e,varsResolver:t,theme:n,props:o,stylesCtx:r,selector:s,themeName:a,headless:i}){return qy([i?{}:t?.(n,o,r),...a.map(l=>n.components?.[l]?.vars?.(n,o,r)),e?.(n,o,r)])?.[s]}function Zy({theme:e,themeName:t,selector:n,options:o,props:r,stylesCtx:s,rootSelector:a,styles:i,style:l,vars:c,varsResolver:u,headless:d,withStylesTransform:f}){return{...!f&&Uy({theme:e,themeName:t,props:r,stylesCtx:s,selector:n}),...!f&&us({theme:e,styles:i,props:r,stylesCtx:s})[n],...!f&&us({theme:e,styles:o?.styles,props:o?.props||r,stylesCtx:s})[n],...Xy({theme:e,props:r,stylesCtx:s,vars:c,varsResolver:u,selector:n,themeName:t,headless:d}),...a===n?wi({style:l,theme:e}):null,...wi({style:o?.style,theme:e})}}function Jy({props:e,stylesCtx:t,themeName:n}){const o=Ke(),r=by()?.();return{getTransformedStyles:a=>r?[...a.map(l=>r(l,{props:e,theme:o,ctx:t})),...n.map(l=>r(o.components[l]?.styles,{props:e,theme:o,ctx:t}))].filter(Boolean):[],withStylesTransform:!!r}}function ne({name:e,classes:t,props:n,stylesCtx:o,className:r,style:s,rootSelector:a="root",unstyled:i,classNames:l,styles:c,vars:u,varsResolver:d,attributes:f}){const m=Ke(),h=hy(),g=vy(),y=gy(),x=(Array.isArray(e)?e:[e]).filter(C=>C),{withStylesTransform:b,getTransformedStyles:w}=Jy({props:n,stylesCtx:o,themeName:x});return(C,S)=>({className:Ky({theme:m,options:S,themeName:x,selector:C,classNamesPrefix:h,classNames:l,classes:t,unstyled:i,className:r,rootSelector:a,props:n,stylesCtx:o,withStaticClasses:g,headless:y,transformedStyles:w([S?.styles,c])}),style:Zy({theme:m,themeName:x,selector:C,options:S,props:n,stylesCtx:o,rootSelector:a,styles:c,style:s,vars:u,varsResolver:d,headless:y,withStylesTransform:b}),...f?.[C]})}function FD(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, white ${t*100}%)`;const{r:n,g:o,b:r,a:s}=Ns(e),a=i=>Math.round(i+(255-i)*t);return`rgba(${a(n)}, ${a(o)}, ${a(r)}, ${s})`}function En(e,t){return typeof e=="boolean"?e:t.autoContrast}function wu(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(o=>o.remove())}function Qy({keepTransitions:e}={}){const t=v.useRef(cs),n=v.useRef(-1),o=v.useContext(Ui),r=Rs(),s=v.useRef(r?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const a=d=>{o.setColorScheme(d),t.current=e?()=>{}:wu(s.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},i=()=>{o.clearColorScheme(),t.current=e?()=>{}:wu(s.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},l=tf("light",{getInitialValueInEffect:!1}),c=o.colorScheme==="auto"?l:o.colorScheme,u=v.useCallback(()=>a(c==="light"?"dark":"light"),[a,c]);return v.useEffect(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:a,clearColorScheme:i,toggleColorScheme:u}}function zD(e,t={getInitialValueInEffect:!0}){const n=tf(e,t),{colorScheme:o}=Qy();return o==="auto"?n:o}function H(e,t,n){const o=Ke(),r=o.components[e]?.defaultProps,s=typeof r=="function"?r(o):r;return{...t,...s,...Dn(n)}}function BD(e){return e}const Xr=["xs","sm","md","lg","xl"];function eb(e,t){if(!t)return e.base;let n=Xr.indexOf(t);for(;n>=0;){if(Xr[n]in e)return e[Xr[n]];n-=1}return e.base}function tb(e){return e.findLastIndex(t=>t)}function VD(e,t){const n=Ke(),o=Hn(`(min-width: ${n.breakpoints.xs})`,!1,t),r=Hn(`(min-width: ${n.breakpoints.sm})`,!1,t),s=Hn(`(min-width: ${n.breakpoints.md})`,!1,t),a=Hn(`(min-width: ${n.breakpoints.lg})`,!1,t),i=Hn(`(min-width: ${n.breakpoints.xl})`,!1,t),c=tb([o,r,s,a,i]);return eb(e,Xr[c])}function Xa(e){return Ve(e).reduce((t,n)=>e[n]!==void 0?`${t}${yg(n)}:${e[n]};`:t,"").trim()}function nb({selector:e,styles:t,media:n,container:o}){const r=t?Xa(t):"",s=Array.isArray(n)?n.map(i=>`@media${i.query}{${e}{${Xa(i.styles)}}}`):[],a=Array.isArray(o)?o.map(i=>`@container ${i.query}{${e}{${Xa(i.styles)}}}`):[];return`${r?`${e}{${r}}`:""}${s.join("")}${a.join("")}`.trim()}function Qn(e){const t=Rs();return p.jsx("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:nb(e)}})}function fn(e){const{m:t,mx:n,my:o,mt:r,mb:s,ml:a,mr:i,me:l,ms:c,p:u,px:d,py:f,pt:m,pb:h,pl:g,pr:y,pe:x,ps:b,bd:w,bdrs:C,bg:S,c:N,opacity:D,ff:k,fz:I,fw:A,lts:F,ta:z,lh:V,fs:$,tt:O,td:R,w:E,miw:P,maw:j,h:M,mih:_,mah:T,bgsz:L,bgp:B,bgr:G,bga:q,pos:X,top:le,left:J,bottom:ee,right:ce,inset:re,display:ae,flex:pe,hiddenFrom:ge,visibleFrom:ie,lightHidden:te,darkHidden:Z,sx:oe,...be}=e;return{styleProps:Dn({m:t,mx:n,my:o,mt:r,mb:s,ml:a,mr:i,me:l,ms:c,p:u,px:d,py:f,pt:m,pb:h,pl:g,pr:y,pe:x,ps:b,bd:w,bg:S,c:N,opacity:D,ff:k,fz:I,fw:A,lts:F,ta:z,lh:V,fs:$,tt:O,td:R,w:E,miw:P,maw:j,h:M,mih:_,mah:T,bgsz:L,bgp:B,bgr:G,bga:q,pos:X,top:le,left:J,bottom:ee,right:ce,inset:re,display:ae,flex:pe,bdrs:C,hiddenFrom:ge,visibleFrom:ie,lightHidden:te,darkHidden:Z,sx:oe}),rest:be}}const ob={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"},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"},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 Zi(e,t){const n=Pt({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 rb(e,t){const n=Pt({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Zi(e,t)}function sb(e,t){if(typeof e=="number")return K(e);if(typeof e=="string"){const[n,o,...r]=e.split(" ").filter(a=>a.trim()!=="");let s=`${K(n)}`;return o&&(s+=` ${o}`),r.length>0&&(s+=` ${Zi(r.join(" "),t)}`),s.trim()}return e}const Cu={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 ab(e){return typeof e=="string"&&e in Cu?Cu[e]:e}const ib=["h1","h2","h3","h4","h5","h6"];function lb(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&ib.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?K(e):e}function cb(e){return e}const ub=["h1","h2","h3","h4","h5","h6"];function db(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&ub.includes(e)?`var(--mantine-${e}-line-height)`:e}function fb(e,t){return typeof e=="string"&&e in t.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?K(e):e}function pb(e){return typeof e=="number"?K(e):e}function mb(e,t){if(typeof e=="number")return K(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return K(e);const o=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e}const Za={color:Zi,textColor:rb,fontSize:lb,spacing:mb,radius:fb,identity:cb,size:pb,lineHeight:db,fontFamily:ab,border:sb};function Su(e){return e.replace("(min-width: ","").replace("em)","")}function hb({media:e,...t}){const o=Object.keys(e).sort((r,s)=>Number(Su(r))-Number(Su(s))).map(r=>({query:r,styles:e[r]}));return{...t,media:o}}function vb(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function gb(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function yb(e){return typeof e=="object"&&e!==null?Ve(e).filter(t=>t!=="base"):[]}function bb(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function gf({styleProps:e,data:t,theme:n}){return hb(Ve(e).reduce((o,r)=>{if(r==="hiddenFrom"||r==="visibleFrom"||r==="sx")return o;const s=t[r],a=Array.isArray(s.property)?s.property:[s.property],i=gb(e[r]);if(!vb(e[r]))return a.forEach(c=>{o.inlineStyles[c]=Za[s.type](i,n)}),o;o.hasResponsiveStyles=!0;const l=yb(e[r]);return a.forEach(c=>{i!=null&&(o.styles[c]=Za[s.type](i,n)),l.forEach(u=>{const d=`(min-width: ${n.breakpoints[u]})`;o.media[d]={...o.media[d],[c]:Za[s.type](bb(e[r],u),n)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function fr(){return`__m__-${v.useId().replace(/[:«»]/g,"")}`}function Ji(e,t){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...Ji(o,t)}),{}):typeof e=="function"?e(t):e??{}}function HD(e){return e}function yf(e){return e.startsWith("data-")?e:`data-${e}`}function xb(e){return Object.keys(e).reduce((t,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(t[yf(n)]=e[n]),t},{})}function bf(e){return e?typeof e=="string"?{[yf(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...bf(n)}),{}):xb(e):null}function Ci(e,t){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...Ci(o,t)}),{}):typeof e=="function"?e(t):e??{}}function wb({theme:e,style:t,vars:n,styleProps:o}){const r=Ci(t,e),s=Ci(n,e);return{...r,...s,...o}}const xf=v.forwardRef(({component:e,style:t,__vars:n,className:o,variant:r,mod:s,size:a,hiddenFrom:i,visibleFrom:l,lightHidden:c,darkHidden:u,renderRoot:d,__size:f,...m},h)=>{const g=Ke(),y=e||"div",{styleProps:x,rest:b}=fn(m),C=yy()?.()?.(x.sx),S=fr(),N=gf({styleProps:x,theme:g,data:ob}),D={ref:h,style:wb({theme:g,style:t,vars:n,styleProps:N.inlineStyles}),className:Ze(o,C,{[S]:N.hasResponsiveStyles,"mantine-light-hidden":c,"mantine-dark-hidden":u,[`mantine-hidden-from-${i}`]:i,[`mantine-visible-from-${l}`]:l}),"data-variant":r,"data-size":Jd(a)?void 0:a||void 0,size:f,...bf(s),...b};return p.jsxs(p.Fragment,{children:[N.hasResponsiveStyles&&p.jsx(Qn,{selector:`.${S}`,styles:N.styles,media:N.media}),typeof d=="function"?d(D):p.jsx(y,{...D})]})});xf.displayName="@mantine/core/Box";const W=xf;function wf(e){return e}function Cf(e){const t=e;return n=>{const o=v.forwardRef((r,s)=>p.jsx(t,{...n,...r,ref:s}));return o.extend=t.extend,o.displayName=`WithProps(${t.displayName})`,o}}function U(e){const t=v.forwardRef(e);return t.extend=wf,t.withProps=n=>{const o=v.forwardRef((r,s)=>p.jsx(t,{...n,...r,ref:s}));return o.extend=t.extend,o.displayName=`WithProps(${t.displayName})`,o},t}function et(e){const t=v.forwardRef(e);return t.withProps=n=>{const o=v.forwardRef((r,s)=>p.jsx(t,{...n,...r,ref:s}));return o.extend=t.extend,o.displayName=`WithProps(${t.displayName})`,o},t.extend=wf,t}const Sf=v.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function en(){return v.useContext(Sf)}function YD({children:e,initialDirection:t="ltr",detectDirection:n=!0}){const[o,r]=v.useState(t),s=v.useCallback(l=>{r(l),document.documentElement.getAttribute("dir")!==l&&document.documentElement.setAttribute("dir",l)},[]),a=()=>s(o==="ltr"?"rtl":"ltr");It(()=>{if(n){const l=document.documentElement.getAttribute("dir");(l==="rtl"||l==="ltr")&&r(l)}},[]);const i=v.useCallback(()=>{if(typeof document>"u")return;const l=document.documentElement.getAttribute("dir");(l==="rtl"||l==="ltr")&&r(c=>c!==l?l:c)},[]);return cf(i,n?{attributes:!0,attributeFilter:["dir"]}:{},typeof document<"u"&&n?document.documentElement:null),p.jsx(Sf.Provider,{value:{dir:o,toggleDirection:a,setDirection:s},children:e})}var pr=Iv();const yo=dr(pr),WD=Bd({__proto__:null,default:yo},[pr]);function Cb(e){if(!e||typeof e=="string")return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Ja(e){return e?.current?e.current.scrollHeight:"auto"}const Jo=typeof window<"u"&&window.requestAnimationFrame,_u=0,Sb=e=>({height:0,overflow:"hidden",...e?{}:{display:"none"}});function _b({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:n=()=>{},opened:o,keepMounted:r=!1}){const s=v.useRef(null),a=Sb(r),[i,l]=v.useState(o?{}:a),c=h=>{pr.flushSync(()=>l(h))},u=h=>{c(g=>({...g,...h}))};function d(h){const g=e||Cb(h);return{transition:`height ${g}ms ${t}, opacity ${g}ms ${t}`}}bt(()=>{typeof Jo=="function"&&Jo(o?()=>{u({willChange:"height",display:"block",overflow:"hidden"}),Jo(()=>{const h=Ja(s);u({...d(h),height:h})})}:()=>{const h=Ja(s);u({...d(h),willChange:"height",height:h}),Jo(()=>u({height:_u,overflow:"hidden"}))})},[o]);const f=h=>{if(!(h.target!==s.current||h.propertyName!=="height"))if(o){const g=Ja(s);g===i.height?c({}):u({height:g}),n()}else i.height===_u&&(c(a),n())};function m({style:h={},refKey:g="ref",...y}={}){const x=y[g],b={"aria-hidden":!o,...y,[g]:af(s,x),onTransitionEnd:f,style:{boxSizing:"border-box",...h,...i}};return Je.version.startsWith("18")?o||(b.inert=""):b.inert=!o,b}return m}const Pb={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},Qi=U((e,t)=>{const{children:n,in:o,transitionDuration:r,transitionTimingFunction:s,style:a,onTransitionEnd:i,animateOpacity:l,keepMounted:c,...u}=H("Collapse",Pb,e),d=Ke(),f=Ss(),h=(d.respectReducedMotion?f:!1)?0:r,g=_b({opened:o,transitionDuration:h,transitionTimingFunction:s,onTransitionEnd:i,keepMounted:c});return h===0?o?p.jsx(W,{...u,children:n}):null:p.jsx(W,{...g({style:{opacity:o||!l?1:0,transition:l?`opacity ${h}ms ${s}`:"none",...Ji(a,d)},ref:t,...u}),children:n})});Qi.displayName="@mantine/core/Collapse";function Es(){return typeof window<"u"}function $o(e){return _f(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tn(e){var t;return(t=(_f(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _f(e){return Es()?e instanceof Node||e instanceof yt(e).Node:!1}function We(e){return Es()?e instanceof Element||e instanceof yt(e).Element:!1}function Rt(e){return Es()?e instanceof HTMLElement||e instanceof yt(e).HTMLElement:!1}function Si(e){return!Es()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function mr(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=_t(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Rb(e){return/^(table|td|th)$/.test($o(e))}function Ts(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Db=/transform|translate|scale|rotate|perspective|filter/,Nb=/paint|layout|strict|content/,Fn=e=>!!e&&e!=="none";let Qa;function el(e){const t=We(e)?_t(e):e;return Fn(t.transform)||Fn(t.translate)||Fn(t.scale)||Fn(t.rotate)||Fn(t.perspective)||!ks()&&(Fn(t.backdropFilter)||Fn(t.filter))||Db.test(t.willChange||"")||Nb.test(t.contain||"")}function Eb(e){let t=cn(e);for(;Rt(t)&&!an(t);){if(el(t))return t;if(Ts(t))return null;t=cn(t)}return null}function ks(){return Qa==null&&(Qa=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Qa}function an(e){return/^(html|body|#document)$/.test($o(e))}function _t(e){return yt(e).getComputedStyle(e)}function $s(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cn(e){if($o(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Si(e)&&e.host||tn(e);return Si(t)?t.host:t}function Pf(e){const t=cn(e);return an(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rt(t)&&mr(t)?t:Pf(t)}function ln(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Pf(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=yt(r);if(s){const i=_i(a);return t.concat(a,a.visualViewport||[],mr(r)?r:[],i&&n?ln(i):[])}else return t.concat(r,ln(r,[],n))}function _i(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Tb=["top","right","bottom","left"],Ot=Math.min,ut=Math.max,ds=Math.round,Br=Math.floor,qt=e=>({x:e,y:e}),kb={left:"right",right:"left",bottom:"top",top:"bottom"};function Pi(e,t,n){return ut(e,Ot(t,n))}function Zt(e,t){return typeof e=="function"?e(t):e}function At(e){return e.split("-")[0]}function jo(e){return e.split("-")[1]}function tl(e){return e==="x"?"y":"x"}function nl(e){return e==="y"?"height":"width"}function jt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ol(e){return tl(jt(e))}function $b(e,t,n){n===void 0&&(n=!1);const o=jo(e),r=ol(e),s=nl(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=fs(a)),[a,fs(a)]}function jb(e){const t=fs(e);return[Ri(e),t,Ri(t)]}function Ri(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Pu=["left","right"],Ru=["right","left"],Mb=["top","bottom"],Ib=["bottom","top"];function Ob(e,t,n){switch(e){case"top":case"bottom":return n?t?Ru:Pu:t?Pu:Ru;case"left":case"right":return t?Mb:Ib;default:return[]}}function Ab(e,t,n,o){const r=jo(e);let s=Ob(At(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(Ri)))),s}function fs(e){const t=At(e);return kb[t]+e.slice(t.length)}function Lb(e){return{top:0,right:0,bottom:0,left:0,...e}}function rl(e){return typeof e!="number"?Lb(e):{top:e,right:e,bottom:e,left:e}}function Po(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Fb(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function zb(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:o}=t;return n+"/"+o}).join(" "):navigator.userAgent}function Bb(){return/apple/i.test(navigator.vendor)}function Vb(){return Fb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Hb(){return zb().includes("jsdom/")}const Du="data-floating-ui-focusable",Yb="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Nu(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function lr(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Si(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function ho(e){return"composedPath"in e?e.composedPath()[0]:e.target}function ei(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Wb(e){return e.matches("html,body")}function Wn(e){return e?.ownerDocument||document}function Gb(e){return Rt(e)&&e.matches(Yb)}function Kb(e){if(!e||Hb())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Ub(e){return e?e.hasAttribute(Du)?e:e.querySelector("["+Du+"]")||e:null}function Zr(e,t,n){return n===void 0&&(n=!0),e.filter(r=>{var s;return r.parentId===t&&(!n||((s=r.context)==null?void 0:s.open))}).flatMap(r=>[r,...Zr(e,r.id,n)])}function qb(e){return"nativeEvent"in e}function Di(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var Xb=typeof document<"u",Zb=function(){},Xt=Xb?v.useLayoutEffect:Zb;const Jb={...Yd};function Vr(e){const t=v.useRef(e);return Xt(()=>{t.current=e}),t}const Qb=Jb.useInsertionEffect,e0=Qb||(e=>e());function Kt(e){const t=v.useRef(()=>{});return e0(()=>{t.current=e}),v.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:t0},l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Eu(c,o,l),f=o,m=0;const h={};for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=Zt(e,t)||{};if(c==null)return{};const d=rl(u),f={x:n,y:o},m=ol(r),h=nl(m),g=await a.getDimensions(c),y=m==="y",x=y?"top":"left",b=y?"bottom":"right",w=y?"clientHeight":"clientWidth",C=s.reference[h]+s.reference[m]-f[m]-s.floating[h],S=f[m]-s.reference[m],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let D=N?N[w]:0;(!D||!await(a.isElement==null?void 0:a.isElement(N)))&&(D=i.floating[w]||s.floating[h]);const k=C/2-S/2,I=D/2-g[h]/2-1,A=Ot(d[x],I),F=Ot(d[b],I),z=A,V=D-g[h]-F,$=D/2-g[h]/2+k,O=Pi(z,$,V),R=!l.arrow&&jo(r)!=null&&$!==O&&s.reference[h]/2-($$<=0)){var F,z;const $=(((F=s.flip)==null?void 0:F.index)||0)+1,O=D[$];if(O&&(!(d==="alignment"?b!==jt(O):!1)||A.every(P=>jt(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:$,overflows:A},reset:{placement:O}};let R=(z=A.filter(E=>E.overflows[0]<=0).sort((E,P)=>E.overflows[1]-P.overflows[1])[0])==null?void 0:z.placement;if(!R)switch(m){case"bestFit":{var V;const E=(V=A.filter(P=>{if(N){const j=jt(P.placement);return j===b||j==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(j=>j>0).reduce((j,M)=>j+M,0)]).sort((P,j)=>P[1]-j[1])[0])==null?void 0:V[0];E&&(R=E);break}case"initialPlacement":R=i;break}if(r!==R)return{reset:{placement:R}}}return{}}}};function Tu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ku(e){return Tb.some(t=>e[t]>=0)}const a0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=Zt(e,t);switch(r){case"referenceHidden":{const a=await o.detectOverflow(t,{...s,elementContext:"reference"}),i=Tu(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ku(i)}}}case"escaped":{const a=await o.detectOverflow(t,{...s,altBoundary:!0}),i=Tu(a,n.floating);return{data:{escapedOffsets:i,escaped:ku(i)}}}default:return{}}}}};function Rf(e){const t=Ot(...e.map(s=>s.left)),n=Ot(...e.map(s=>s.top)),o=ut(...e.map(s=>s.right)),r=ut(...e.map(s=>s.bottom));return{x:t,y:n,width:o-t,height:r-n}}function i0(e){const t=e.slice().sort((r,s)=>r.y-s.y),n=[];let o=null;for(let r=0;ro.height/2?n.push([s]):n[n.length-1].push(s),o=s}return n.map(r=>Po(Rf(r)))}const l0=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:r,platform:s,strategy:a}=t,{padding:i=2,x:l,y:c}=Zt(e,t),u=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(o.reference))||[]),d=i0(u),f=Po(Rf(u)),m=rl(i);function h(){if(d.length===2&&d[0].left>d[1].right&&l!=null&&c!=null)return d.find(y=>l>y.left-m.left&&ly.top-m.top&&c=2){if(jt(n)==="y"){const A=d[0],F=d[d.length-1],z=At(n)==="top",V=A.top,$=F.bottom,O=z?A.left:F.left,R=z?A.right:F.right,E=R-O,P=$-V;return{top:V,bottom:$,left:O,right:R,width:E,height:P,x:O,y:V}}const y=At(n)==="left",x=ut(...d.map(A=>A.right)),b=Ot(...d.map(A=>A.left)),w=d.filter(A=>y?A.left===b:A.right===x),C=w[0].top,S=w[w.length-1].bottom,N=b,D=x,k=D-N,I=S-C;return{top:C,bottom:S,left:N,right:D,width:k,height:I,x:N,y:C}}return f}const g=await s.getElementRects({reference:{getBoundingClientRect:h},floating:o.floating,strategy:a});return r.reference.x!==g.reference.x||r.reference.y!==g.reference.y||r.reference.width!==g.reference.width||r.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},Df=new Set(["left","top"]);async function c0(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=At(n),i=jo(n),l=jt(n)==="y",c=Df.has(a)?-1:1,u=s&&l?-1:1,d=Zt(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof h=="number"&&(m=i==="end"?h*-1:h),l?{x:m*u,y:f*c}:{x:f*c,y:m*u}}const u0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:a,middlewareData:i}=t,l=await c0(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:a}}}}},d0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:x=>{let{x:b,y:w}=x;return{x:b,y:w}}},...c}=Zt(e,t),u={x:n,y:o},d=await s.detectOverflow(t,c),f=jt(At(r)),m=tl(f);let h=u[m],g=u[f];if(a){const x=m==="y"?"top":"left",b=m==="y"?"bottom":"right",w=h+d[x],C=h-d[b];h=Pi(w,h,C)}if(i){const x=f==="y"?"top":"left",b=f==="y"?"bottom":"right",w=g+d[x],C=g-d[b];g=Pi(w,g,C)}const y=l.fn({...t,[m]:h,[f]:g});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[m]:a,[f]:i}}}}}},f0=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=Zt(e,t),u={x:n,y:o},d=jt(r),f=tl(d);let m=u[f],h=u[d];const g=Zt(i,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=f==="y"?"height":"width",C=s.reference[f]-s.floating[w]+y.mainAxis,S=s.reference[f]+s.reference[w]-y.mainAxis;mS&&(m=S)}if(c){var x,b;const w=f==="y"?"width":"height",C=Df.has(At(r)),S=s.reference[d]-s.floating[w]+(C&&((x=a.offset)==null?void 0:x[d])||0)+(C?0:y.crossAxis),N=s.reference[d]+s.reference[w]+(C?0:((b=a.offset)==null?void 0:b[d])||0)-(C?y.crossAxis:0);hN&&(h=N)}return{[f]:m,[d]:h}}}},p0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...c}=Zt(e,t),u=await a.detectOverflow(t,c),d=At(r),f=jo(r),m=jt(r)==="y",{width:h,height:g}=s.floating;let y,x;d==="top"||d==="bottom"?(y=d,x=f===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(x=d,y=f==="end"?"top":"bottom");const b=g-u.top-u.bottom,w=h-u.left-u.right,C=Ot(g-u[y],b),S=Ot(h-u[x],w),N=!t.middlewareData.shift;let D=C,k=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(D=b),N&&!f){const A=ut(u.left,0),F=ut(u.right,0),z=ut(u.top,0),V=ut(u.bottom,0);m?k=h-2*(A!==0||F!==0?A+F:ut(u.left,u.right)):D=g-2*(z!==0||V!==0?z+V:ut(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:D});const I=await a.getDimensions(i.floating);return h!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function Nf(e){const t=_t(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Rt(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,i=ds(n)!==s||ds(o)!==a;return i&&(n=s,o=a),{width:n,height:o,$:i}}function sl(e){return We(e)?e:e.contextElement}function wo(e){const t=sl(e);if(!Rt(t))return qt(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Nf(t);let a=(s?ds(n.width):n.width)/o,i=(s?ds(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const m0=qt(0);function Ef(e){const t=yt(e);return!ks()||!t.visualViewport?m0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function h0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yt(e)?!1:t}function qn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=sl(e);let a=qt(1);t&&(o?We(o)&&(a=wo(o)):a=wo(e));const i=h0(s,n,o)?Ef(s):qt(0);let l=(r.left+i.x)/a.x,c=(r.top+i.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(s){const f=yt(s),m=o&&We(o)?yt(o):o;let h=f,g=_i(h);for(;g&&o&&m!==h;){const y=wo(g),x=g.getBoundingClientRect(),b=_t(g),w=x.left+(g.clientLeft+parseFloat(b.paddingLeft))*y.x,C=x.top+(g.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,d*=y.y,l+=w,c+=C,h=yt(g),g=_i(h)}}return Po({width:u,height:d,x:l,y:c})}function js(e,t){const n=$s(e).scrollLeft;return t?t.left+n:qn(tn(e)).left+n}function Tf(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-js(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function v0(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",a=tn(o),i=t?Ts(t.floating):!1;if(o===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},c=qt(1);const u=qt(0),d=Rt(o);if((d||!d&&!s)&&(($o(o)!=="body"||mr(a))&&(l=$s(o)),d)){const m=qn(o);c=wo(o),u.x=m.x+o.clientLeft,u.y=m.y+o.clientTop}const f=a&&!d&&!s?Tf(a,l):qt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function g0(e){return Array.from(e.getClientRects())}function y0(e){const t=tn(e),n=$s(e),o=e.ownerDocument.body,r=ut(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ut(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+js(e);const i=-n.scrollTop;return _t(o).direction==="rtl"&&(a+=ut(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:i}}const $u=25;function b0(e,t){const n=yt(e),o=tn(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,i=0,l=0;if(r){s=r.width,a=r.height;const u=ks();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}const c=js(o);if(c<=0){const u=o.ownerDocument,d=u.body,f=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(o.clientWidth-d.clientWidth-m);h<=$u&&(s-=h)}else c<=$u&&(s+=c);return{width:s,height:a,x:i,y:l}}function x0(e,t){const n=qn(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Rt(e)?wo(e):qt(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=r*s.x,c=o*s.y;return{width:a,height:i,x:l,y:c}}function ju(e,t,n){let o;if(t==="viewport")o=b0(e,n);else if(t==="document")o=y0(tn(e));else if(We(t))o=x0(t,n);else{const r=Ef(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Po(o)}function kf(e,t){const n=cn(e);return n===t||!We(n)||an(n)?!1:_t(n).position==="fixed"||kf(n,t)}function w0(e,t){const n=t.get(e);if(n)return n;let o=ln(e,[],!1).filter(i=>We(i)&&$o(i)!=="body"),r=null;const s=_t(e).position==="fixed";let a=s?cn(e):e;for(;We(a)&&!an(a);){const i=_t(a),l=el(a);!l&&i.position==="fixed"&&(r=null),(s?!l&&!r:!l&&i.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||mr(a)&&!l&&kf(e,a))?o=o.filter(u=>u!==a):r=i,a=cn(a)}return t.set(e,o),o}function C0(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?Ts(t)?[]:w0(t,this._c):[].concat(n),o],i=ju(t,a[0],r);let l=i.top,c=i.right,u=i.bottom,d=i.left;for(let f=1;f{a(!1,1e-7)},1e3)}D===1&&!jf(c,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return a(!0),s}function Ni(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=sl(e),u=r||s?[...c?ln(c):[],...t?ln(t):[]]:[];u.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const d=c&&i?N0(c,n):null;let f=-1,m=null;a&&(m=new ResizeObserver(x=>{let[b]=x;b&&b.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let h,g=l?qn(e):null;l&&y();function y(){const x=qn(e);g&&!jf(g,x)&&n(),g=x,h=requestAnimationFrame(y)}return n(),()=>{var x;u.forEach(b=>{r&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),d?.(),(x=m)==null||x.disconnect(),m=null,l&&cancelAnimationFrame(h)}}const E0=u0,T0=d0,k0=s0,$0=p0,j0=a0,Iu=r0,M0=l0,I0=f0,O0=(e,t,n)=>{const o=new Map,r={platform:D0,...n},s={...r.platform,_c:o};return o0(e,t,{...r,platform:s})};var A0=typeof document<"u",L0=function(){},Jr=A0?v.useLayoutEffect:L0;function ps(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,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!ps(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!ps(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Mf(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ou(e,t){const n=Mf(e);return Math.round(t*n)/n}function ni(e){const t=v.useRef(e);return Jr(()=>{t.current=e}),t}function F0(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[u,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=v.useState(o);ps(f,o)||m(o);const[h,g]=v.useState(null),[y,x]=v.useState(null),b=v.useCallback(P=>{P!==N.current&&(N.current=P,g(P))},[]),w=v.useCallback(P=>{P!==D.current&&(D.current=P,x(P))},[]),C=s||h,S=a||y,N=v.useRef(null),D=v.useRef(null),k=v.useRef(u),I=l!=null,A=ni(l),F=ni(r),z=ni(c),V=v.useCallback(()=>{if(!N.current||!D.current)return;const P={placement:t,strategy:n,middleware:f};F.current&&(P.platform=F.current),O0(N.current,D.current,P).then(j=>{const M={...j,isPositioned:z.current!==!1};$.current&&!ps(k.current,M)&&(k.current=M,pr.flushSync(()=>{d(M)}))})},[f,t,n,F,z]);Jr(()=>{c===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[c]);const $=v.useRef(!1);Jr(()=>($.current=!0,()=>{$.current=!1}),[]),Jr(()=>{if(C&&(N.current=C),S&&(D.current=S),C&&S){if(A.current)return A.current(C,S,V);V()}},[C,S,V,A,I]);const O=v.useMemo(()=>({reference:N,floating:D,setReference:b,setFloating:w}),[b,w]),R=v.useMemo(()=>({reference:C,floating:S}),[C,S]),E=v.useMemo(()=>{const P={position:n,left:0,top:0};if(!R.floating)return P;const j=Ou(R.floating,u.x),M=Ou(R.floating,u.y);return i?{...P,transform:"translate("+j+"px, "+M+"px)",...Mf(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:M}},[n,i,R.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:V,refs:O,elements:R,floatingStyles:E}),[u,V,O,R,E])}const z0=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Iu({element:o.current,padding:r}).fn(n):{}:o?Iu({element:o,padding:r}).fn(n):{}}}},If=(e,t)=>{const n=E0(e);return{name:n.name,fn:n.fn,options:[e,t]}},al=(e,t)=>{const n=T0(e);return{name:n.name,fn:n.fn,options:[e,t]}},Au=(e,t)=>({fn:I0(e).fn,options:[e,t]}),ms=(e,t)=>{const n=k0(e);return{name:n.name,fn:n.fn,options:[e,t]}},B0=(e,t)=>{const n=$0(e);return{name:n.name,fn:n.fn,options:[e,t]}},V0=(e,t)=>{const n=j0(e);return{name:n.name,fn:n.fn,options:[e,t]}},or=(e,t)=>{const n=M0(e);return{name:n.name,fn:n.fn,options:[e,t]}},Of=(e,t)=>{const n=z0(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Af(e){const t=v.useRef(void 0),n=v.useCallback(o=>{const r=e.map(s=>{if(s!=null){if(typeof s=="function"){const a=s,i=a(o);return typeof i=="function"?i:()=>{a(null)}}return s.current=o,()=>{s.current=null}}});return()=>{r.forEach(s=>s?.())}},e);return v.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const H0="data-floating-ui-focusable",Lu="active",Fu="selected",Y0={...Yd};let zu=!1,W0=0;const Bu=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+W0++;function G0(){const[e,t]=v.useState(()=>zu?Bu():void 0);return Xt(()=>{e==null&&t(Bu())},[]),v.useEffect(()=>{zu=!0},[]),e}const K0=Y0.useId,Lf=K0||G0;function U0(){const e=new Map;return{emit(t,n){var o;(o=e.get(t))==null||o.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var o;(o=e.get(t))==null||o.delete(n)}}}const q0=v.createContext(null),X0=v.createContext(null),il=()=>{var e;return((e=v.useContext(q0))==null?void 0:e.id)||null},ll=()=>v.useContext(X0);function cl(e){return"data-floating-ui-"+e}function wt(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const Vu=cl("safe-polygon");function Qr(e,t,n){if(n&&!Di(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o?.[t]}return e?.[t]}function oi(e){return typeof e=="function"?e():e}function Ff(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,dataRef:r,events:s,elements:a}=e,{enabled:i=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,m=ll(),h=il(),g=Vr(c),y=Vr(l),x=Vr(n),b=Vr(d),w=v.useRef(),C=v.useRef(-1),S=v.useRef(),N=v.useRef(-1),D=v.useRef(!0),k=v.useRef(!1),I=v.useRef(()=>{}),A=v.useRef(!1),F=Kt(()=>{var E;const P=(E=r.current.openEvent)==null?void 0:E.type;return P?.includes("mouse")&&P!=="mousedown"});v.useEffect(()=>{if(!i)return;function E(P){let{open:j}=P;j||(wt(C),wt(N),D.current=!0,A.current=!1)}return s.on("openchange",E),()=>{s.off("openchange",E)}},[i,s]),v.useEffect(()=>{if(!i||!g.current||!n)return;function E(j){F()&&o(!1,j,"hover")}const P=Wn(a.floating).documentElement;return P.addEventListener("mouseleave",E),()=>{P.removeEventListener("mouseleave",E)}},[a.floating,n,o,i,g,F]);const z=v.useCallback(function(E,P,j){P===void 0&&(P=!0),j===void 0&&(j="hover");const M=Qr(y.current,"close",w.current);M&&!S.current?(wt(C),C.current=window.setTimeout(()=>o(!1,E,j),M)):P&&(wt(C),o(!1,E,j))},[y,o]),V=Kt(()=>{I.current(),S.current=void 0}),$=Kt(()=>{if(k.current){const E=Wn(a.floating).body;E.style.pointerEvents="",E.removeAttribute(Vu),k.current=!1}}),O=Kt(()=>r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1);v.useEffect(()=>{if(!i)return;function E(T){if(wt(C),D.current=!1,u&&!Di(w.current)||oi(b.current)>0&&!Qr(y.current,"open"))return;const L=Qr(y.current,"open",w.current);L?C.current=window.setTimeout(()=>{x.current||o(!0,T,"hover")},L):n||o(!0,T,"hover")}function P(T){if(O()){$();return}I.current();const L=Wn(a.floating);if(wt(N),A.current=!1,g.current&&r.current.floatingContext){n||wt(C),S.current=g.current({...r.current.floatingContext,tree:m,x:T.clientX,y:T.clientY,onClose(){$(),V(),O()||z(T,!0,"safe-polygon")}});const G=S.current;L.addEventListener("mousemove",G),I.current=()=>{L.removeEventListener("mousemove",G)};return}(w.current!=="touch"||!lr(a.floating,T.relatedTarget))&&z(T)}function j(T){O()||r.current.floatingContext&&(g.current==null||g.current({...r.current.floatingContext,tree:m,x:T.clientX,y:T.clientY,onClose(){$(),V(),O()||z(T)}})(T))}function M(){wt(C)}function _(T){O()||z(T,!1)}if(We(a.domReference)){const T=a.domReference,L=a.floating;return n&&T.addEventListener("mouseleave",j),f&&T.addEventListener("mousemove",E,{once:!0}),T.addEventListener("mouseenter",E),T.addEventListener("mouseleave",P),L&&(L.addEventListener("mouseleave",j),L.addEventListener("mouseenter",M),L.addEventListener("mouseleave",_)),()=>{n&&T.removeEventListener("mouseleave",j),f&&T.removeEventListener("mousemove",E),T.removeEventListener("mouseenter",E),T.removeEventListener("mouseleave",P),L&&(L.removeEventListener("mouseleave",j),L.removeEventListener("mouseenter",M),L.removeEventListener("mouseleave",_))}}},[a,i,e,u,f,z,V,$,o,n,x,m,y,g,r,O,b]),Xt(()=>{var E;if(i&&n&&(E=g.current)!=null&&(E=E.__options)!=null&&E.blockPointerEvents&&F()){k.current=!0;const j=a.floating;if(We(a.domReference)&&j){var P;const M=Wn(a.floating).body;M.setAttribute(Vu,"");const _=a.domReference,T=m==null||(P=m.nodesRef.current.find(L=>L.id===h))==null||(P=P.context)==null?void 0:P.elements.floating;return T&&(T.style.pointerEvents=""),M.style.pointerEvents="none",_.style.pointerEvents="auto",j.style.pointerEvents="auto",()=>{M.style.pointerEvents="",_.style.pointerEvents="",j.style.pointerEvents=""}}}},[i,n,h,a,m,g,F]),Xt(()=>{n||(w.current=void 0,A.current=!1,V(),$())},[n,V,$]),v.useEffect(()=>()=>{V(),wt(C),wt(N),$()},[i,a.domReference,V,$]);const R=v.useMemo(()=>{function E(P){w.current=P.pointerType}return{onPointerDown:E,onPointerEnter:E,onMouseMove(P){const{nativeEvent:j}=P;function M(){!D.current&&!x.current&&o(!0,j,"hover")}u&&!Di(w.current)||n||oi(b.current)===0||A.current&&P.movementX**2+P.movementY**2<2||(wt(N),w.current==="touch"?M():(A.current=!0,N.current=window.setTimeout(M,oi(b.current))))}}},[u,o,n,x,b]);return v.useMemo(()=>i?{reference:R}:{},[i,R])}const Ei=()=>{},zf=v.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Ei,setState:Ei,isInstantPhase:!1}),Z0=()=>v.useContext(zf);function Bf(e){const{children:t,delay:n,timeoutMs:o=0}=e,[r,s]=v.useReducer((l,c)=>({...l,...c}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),a=v.useRef(null),i=v.useCallback(l=>{s({currentId:l})},[]);return Xt(()=>{r.currentId?a.current===null?a.current=r.currentId:r.isInstantPhase||s({isInstantPhase:!0}):(r.isInstantPhase&&s({isInstantPhase:!1}),a.current=null)},[r.currentId,r.isInstantPhase]),p.jsx(zf.Provider,{value:v.useMemo(()=>({...r,setState:s,setCurrentId:i}),[r,i]),children:t})}function Vf(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,floatingId:r}=e,{id:s,enabled:a=!0}=t,i=s??r,l=Z0(),{currentId:c,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:m}=l;return Xt(()=>{a&&c&&(f({delay:{open:1,close:Qr(d,"close")}}),c!==i&&o(!1))},[a,i,o,f,c,d]),Xt(()=>{function h(){o(!1),f({delay:d,currentId:null})}if(a&&c&&!n&&c===i){if(m){const g=window.setTimeout(h,m);return()=>{clearTimeout(g)}}h()}},[a,n,f,c,i,o,d,m]),Xt(()=>{a&&(u===Ei||!n||u(i))},[a,n,u,i]),l}const J0={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Q0={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Hu=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function Hf(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,elements:r,dataRef:s}=e,{enabled:a=!0,escapeKey:i=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:m,capture:h}=t,g=ll(),y=Kt(typeof l=="function"?l:()=>!1),x=typeof l=="function"?y:l,b=v.useRef(!1),{escapeKey:w,outsidePress:C}=Hu(m),{escapeKey:S,outsidePress:N}=Hu(h),D=v.useRef(!1),k=Kt($=>{var O;if(!n||!a||!i||$.key!=="Escape"||D.current)return;const R=(O=s.current.floatingContext)==null?void 0:O.nodeId,E=g?Zr(g.nodesRef.current,R):[];if(!w&&($.stopPropagation(),E.length>0)){let P=!0;if(E.forEach(j=>{var M;if((M=j.context)!=null&&M.open&&!j.context.dataRef.current.__escapeKeyBubbles){P=!1;return}}),!P)return}o(!1,qb($)?$.nativeEvent:$,"escape-key")}),I=Kt($=>{var O;const R=()=>{var E;k($),(E=ho($))==null||E.removeEventListener("keydown",R)};(O=ho($))==null||O.addEventListener("keydown",R)}),A=Kt($=>{var O;const R=s.current.insideReactTree;s.current.insideReactTree=!1;const E=b.current;if(b.current=!1,c==="click"&&E||R||typeof x=="function"&&!x($))return;const P=ho($),j="["+cl("inert")+"]",M=Wn(r.floating).querySelectorAll(j);let _=We(P)?P:null;for(;_&&!an(_);){const G=cn(_);if(an(G)||!We(G))break;_=G}if(M.length&&We(P)&&!Wb(P)&&!lr(P,r.floating)&&Array.from(M).every(G=>!lr(_,G)))return;if(Rt(P)&&V){const G=an(P),q=_t(P),X=/auto|scroll/,le=G||X.test(q.overflowX),J=G||X.test(q.overflowY),ee=le&&P.clientWidth>0&&P.scrollWidth>P.clientWidth,ce=J&&P.clientHeight>0&&P.scrollHeight>P.clientHeight,re=q.direction==="rtl",ae=ce&&(re?$.offsetX<=P.offsetWidth-P.clientWidth:$.offsetX>P.clientWidth),pe=ee&&$.offsetY>P.clientHeight;if(ae||pe)return}const T=(O=s.current.floatingContext)==null?void 0:O.nodeId,L=g&&Zr(g.nodesRef.current,T).some(G=>{var q;return ei($,(q=G.context)==null?void 0:q.elements.floating)});if(ei($,r.floating)||ei($,r.domReference)||L)return;const B=g?Zr(g.nodesRef.current,T):[];if(B.length>0){let G=!0;if(B.forEach(q=>{var X;if((X=q.context)!=null&&X.open&&!q.context.dataRef.current.__outsidePressBubbles){G=!1;return}}),!G)return}o(!1,$,"outside-press")}),F=Kt($=>{var O;const R=()=>{var E;A($),(E=ho($))==null||E.removeEventListener(c,R)};(O=ho($))==null||O.addEventListener(c,R)});v.useEffect(()=>{if(!n||!a)return;s.current.__escapeKeyBubbles=w,s.current.__outsidePressBubbles=C;let $=-1;function O(M){o(!1,M,"ancestor-scroll")}function R(){window.clearTimeout($),D.current=!0}function E(){$=window.setTimeout(()=>{D.current=!1},ks()?5:0)}const P=Wn(r.floating);i&&(P.addEventListener("keydown",S?I:k,S),P.addEventListener("compositionstart",R),P.addEventListener("compositionend",E)),x&&P.addEventListener(c,N?F:A,N);let j=[];return f&&(We(r.domReference)&&(j=ln(r.domReference)),We(r.floating)&&(j=j.concat(ln(r.floating))),!We(r.reference)&&r.reference&&r.reference.contextElement&&(j=j.concat(ln(r.reference.contextElement)))),j=j.filter(M=>{var _;return M!==((_=P.defaultView)==null?void 0:_.visualViewport)}),j.forEach(M=>{M.addEventListener("scroll",O,{passive:!0})}),()=>{i&&(P.removeEventListener("keydown",S?I:k,S),P.removeEventListener("compositionstart",R),P.removeEventListener("compositionend",E)),x&&P.removeEventListener(c,N?F:A,N),j.forEach(M=>{M.removeEventListener("scroll",O)}),window.clearTimeout($)}},[s,r,i,x,c,n,o,f,a,w,C,k,S,I,A,N,F]),v.useEffect(()=>{s.current.insideReactTree=!1},[s,x,c]);const z=v.useMemo(()=>({onKeyDown:k,...u&&{[J0[d]]:$=>{o(!1,$.nativeEvent,"reference-press")},...d!=="click"&&{onClick($){o(!1,$.nativeEvent,"reference-press")}}}}),[k,o,u,d]),V=v.useMemo(()=>{function $(O){O.button===0&&(b.current=!0)}return{onKeyDown:k,onMouseDown:$,onMouseUp:$,[Q0[c]]:()=>{s.current.insideReactTree=!0}}},[k,c,s]);return v.useMemo(()=>a?{reference:z,floating:V}:{},[a,z,V])}function ex(e){const{open:t=!1,onOpenChange:n,elements:o}=e,r=Lf(),s=v.useRef({}),[a]=v.useState(()=>U0()),i=il()!=null,[l,c]=v.useState(o.reference),u=Kt((m,h,g)=>{s.current.openEvent=m?h:void 0,a.emit("openchange",{open:m,event:h,reason:g,nested:i}),n?.(m,h,g)}),d=v.useMemo(()=>({setPositionReference:c}),[]),f=v.useMemo(()=>({reference:l||o.reference||null,floating:o.floating||null,domReference:o.reference}),[l,o.reference,o.floating]);return v.useMemo(()=>({dataRef:s,open:t,onOpenChange:u,elements:f,events:a,floatingId:r,refs:d}),[t,u,f,a,r,d])}function Ms(e){e===void 0&&(e={});const{nodeId:t}=e,n=ex({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,r=o.elements,[s,a]=v.useState(null),[i,l]=v.useState(null),u=r?.domReference||s,d=v.useRef(null),f=ll();Xt(()=>{u&&(d.current=u)},[u]);const m=F0({...e,elements:{...r,...i&&{reference:i}}}),h=v.useCallback(w=>{const C=We(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),getClientRects:()=>w.getClientRects(),contextElement:w}:w;l(C),m.refs.setReference(C)},[m.refs]),g=v.useCallback(w=>{(We(w)||w===null)&&(d.current=w,a(w)),(We(m.refs.reference.current)||m.refs.reference.current===null||w!==null&&!We(w))&&m.refs.setReference(w)},[m.refs]),y=v.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:d}),[m.refs,g,h]),x=v.useMemo(()=>({...m.elements,domReference:u}),[m.elements,u]),b=v.useMemo(()=>({...m,...o,refs:y,elements:x,nodeId:t}),[m,y,x,t,o]);return Xt(()=>{o.dataRef.current.floatingContext=b;const w=f?.nodesRef.current.find(C=>C.id===t);w&&(w.context=b)}),v.useMemo(()=>({...m,context:b,refs:y,elements:x}),[m,y,x,b])}function ri(){return Vb()&&Bb()}function tx(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,events:r,dataRef:s,elements:a}=e,{enabled:i=!0,visibleOnly:l=!0}=t,c=v.useRef(!1),u=v.useRef(-1),d=v.useRef(!0);v.useEffect(()=>{if(!i)return;const m=yt(a.domReference);function h(){!n&&Rt(a.domReference)&&a.domReference===Nu(Wn(a.domReference))&&(c.current=!0)}function g(){d.current=!0}function y(){d.current=!1}return m.addEventListener("blur",h),ri()&&(m.addEventListener("keydown",g,!0),m.addEventListener("pointerdown",y,!0)),()=>{m.removeEventListener("blur",h),ri()&&(m.removeEventListener("keydown",g,!0),m.removeEventListener("pointerdown",y,!0))}},[a.domReference,n,i]),v.useEffect(()=>{if(!i)return;function m(h){let{reason:g}=h;(g==="reference-press"||g==="escape-key")&&(c.current=!0)}return r.on("openchange",m),()=>{r.off("openchange",m)}},[r,i]),v.useEffect(()=>()=>{wt(u)},[]);const f=v.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(m){if(c.current)return;const h=ho(m.nativeEvent);if(l&&We(h)){if(ri()&&!m.relatedTarget){if(!d.current&&!Gb(h))return}else if(!Kb(h))return}o(!0,m.nativeEvent,"focus")},onBlur(m){c.current=!1;const h=m.relatedTarget,g=m.nativeEvent,y=We(h)&&h.hasAttribute(cl("focus-guard"))&&h.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var x;const b=Nu(a.domReference?a.domReference.ownerDocument:document);!h&&b===a.domReference||lr((x=s.current.floatingContext)==null?void 0:x.refs.floating.current,b)||lr(a.domReference,b)||y||o(!1,g,"focus")})}}),[s,a.domReference,o,l]);return v.useMemo(()=>i?{reference:f}:{},[i,f])}function si(e,t,n){const o=new Map,r=n==="item";let s=e;if(r&&e){const{[Lu]:a,[Fu]:i,...l}=e;s=l}return{...n==="floating"&&{tabIndex:-1,[H0]:""},...s,...t.map(a=>{const i=a?a[n]:null;return typeof i=="function"?e?i(e):null:i}).concat(e).reduce((a,i)=>(i&&Object.entries(i).forEach(l=>{let[c,u]=l;if(!(r&&[Lu,Fu].includes(c)))if(c.indexOf("on")===0){if(o.has(c)||o.set(c,[]),typeof u=="function"){var d;(d=o.get(c))==null||d.push(u),a[c]=function(){for(var f,m=arguments.length,h=new Array(m),g=0;gy(...h)).find(y=>y!==void 0)}}}else a[c]=u}),a),{})}}function Yf(e){e===void 0&&(e=[]);const t=e.map(i=>i?.reference),n=e.map(i=>i?.floating),o=e.map(i=>i?.item),r=v.useCallback(i=>si(i,e,"reference"),t),s=v.useCallback(i=>si(i,e,"floating"),n),a=v.useCallback(i=>si(i,e,"item"),o);return v.useMemo(()=>({getReferenceProps:r,getFloatingProps:s,getItemProps:a}),[r,s,a])}const nx=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Wf(e,t){var n,o;t===void 0&&(t={});const{open:r,elements:s,floatingId:a}=e,{enabled:i=!0,role:l="dialog"}=t,c=Lf(),u=((n=s.domReference)==null?void 0:n.id)||c,d=v.useMemo(()=>{var b;return((b=Ub(s.floating))==null?void 0:b.id)||a},[s.floating,a]),f=(o=nx.get(l))!=null?o:l,h=il()!=null,g=v.useMemo(()=>f==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:r?d:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":f==="alertdialog"?"dialog":f,"aria-controls":r?d:void 0,...f==="listbox"&&{role:"combobox"},...f==="menu"&&{id:u},...f==="menu"&&h&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[f,d,h,r,u,l]),y=v.useMemo(()=>{const b={id:d,...f&&{role:f}};return f==="tooltip"||l==="label"?b:{...b,...f==="menu"&&{"aria-labelledby":u}}},[f,d,u,l]),x=v.useCallback(b=>{let{active:w,selected:C}=b;const S={role:"option",...w&&{id:d+"-fui-option"}};switch(l){case"select":case"combobox":return{...S,"aria-selected":C}}return{}},[d,l]);return v.useMemo(()=>i?{reference:g,floating:y,item:x}:{},[i,g,y,x])}var ul={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const[ox,Dt]=nt("ScrollArea.Root component was not found in tree");function Ro(e,t){const n=Vn(t);It(()=>{let o=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(o),r.unobserve(e)}}},[e,n])}const rx=v.forwardRef((e,t)=>{const{style:n,...o}=e,r=Dt(),[s,a]=v.useState(0),[i,l]=v.useState(0),c=!!(s&&i);return Ro(r.scrollbarX,()=>{const u=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(u),l(u)}),Ro(r.scrollbarY,()=>{const u=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(u),a(u)}),c?p.jsx("div",{...o,ref:t,style:{...n,width:s,height:i}}):null}),sx=v.forwardRef((e,t)=>{const n=Dt(),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?p.jsx(rx,{...e,ref:t}):null}),ax={scrollHideDelay:1e3,type:"hover"},Gf=v.forwardRef((e,t)=>{const{type:n,scrollHideDelay:o,scrollbars:r,getStyles:s,...a}=H("ScrollAreaRoot",ax,e),[i,l]=v.useState(null),[c,u]=v.useState(null),[d,f]=v.useState(null),[m,h]=v.useState(null),[g,y]=v.useState(null),[x,b]=v.useState(0),[w,C]=v.useState(0),[S,N]=v.useState(!1),[D,k]=v.useState(!1),I=$e(t,A=>l(A));return p.jsx(ox,{value:{type:n,scrollHideDelay:o,scrollArea:i,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:m,onScrollbarXChange:h,scrollbarXEnabled:S,onScrollbarXEnabledChange:N,scrollbarY:g,onScrollbarYChange:y,scrollbarYEnabled:D,onScrollbarYEnabledChange:k,onCornerWidthChange:b,onCornerHeightChange:C,getStyles:s},children:p.jsx(W,{...a,ref:I,__vars:{"--sa-corner-width":r!=="xy"?"0px":`${x}px`,"--sa-corner-height":r!=="xy"?"0px":`${w}px`}})})});Gf.displayName="@mantine/core/ScrollAreaRoot";function Kf(e,t){const n=e/t;return Number.isNaN(n)?0:n}function Is(e){const t=Kf(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*t;return Math.max(o,18)}function Uf(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function ix(e,[t,n]){return Math.min(n,Math.max(t,e))}function Yu(e,t,n="ltr"){const o=Is(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-r,a=t.content-t.viewport,i=s-o,l=n==="ltr"?[0,a]:[a*-1,0],c=ix(e,l);return Uf([0,a],[0,i])(c)}function lx(e,t,n,o="ltr"){const r=Is(n),s=r/2,a=t||s,i=r-a,l=n.scrollbar.paddingStart+a,c=n.scrollbar.size-n.scrollbar.paddingEnd-i,u=n.content-n.viewport,d=o==="ltr"?[0,u]:[u*-1,0];return Uf([l,c],d)(e)}function qf(e,t){return e>0&&e{e?.(o),(n===!1||!o.defaultPrevented)&&t?.(o)}}const[cx,Xf]=nt("ScrollAreaScrollbar was not found in tree"),Zf=v.forwardRef((e,t)=>{const{sizes:n,hasThumb:o,onThumbChange:r,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:i,onDragScroll:l,onWheelScroll:c,onResize:u,...d}=e,f=Dt(),[m,h]=v.useState(null),g=$e(t,k=>h(k)),y=v.useRef(null),x=v.useRef(""),{viewport:b}=f,w=n.content-n.viewport,C=Vn(c),S=Vn(i),N=Cs(u,10),D=k=>{if(y.current){const I=k.clientX-y.current.left,A=k.clientY-y.current.top;l({x:I,y:A})}};return v.useEffect(()=>{const k=I=>{const A=I.target;m?.contains(A)&&C(I,w)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[b,m,w,C]),v.useEffect(S,[n,S]),Ro(m,N),Ro(f.content,N),p.jsx(cx,{value:{scrollbar:m,hasThumb:o,onThumbChange:Vn(r),onThumbPointerUp:Vn(s),onThumbPositionChange:S,onThumbPointerDown:Vn(a)},children:p.jsx("div",{...d,ref:g,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:Kn(e.onPointerDown,k=>{k.preventDefault(),k.button===0&&(k.target.setPointerCapture(k.pointerId),y.current=m.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",D(k))}),onPointerMove:Kn(e.onPointerMove,D),onPointerUp:Kn(e.onPointerUp,k=>{const I=k.target;I.hasPointerCapture(k.pointerId)&&(k.preventDefault(),I.releasePointerCapture(k.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=x.current,y.current=null}})})}),Jf=v.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,style:r,...s}=e,a=Dt(),[i,l]=v.useState(),c=v.useRef(null),u=$e(t,c,a.onScrollbarXChange);return v.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),p.jsx(Zf,{"data-orientation":"horizontal",...s,ref:u,sizes:n,style:{...r,"--sa-thumb-width":`${Is(n)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(a.viewport){const m=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(m),qf(m,f)&&d.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&o({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Rn(i.paddingLeft),paddingEnd:Rn(i.paddingRight)}})}})});Jf.displayName="@mantine/core/ScrollAreaScrollbarX";const Qf=v.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,style:r,...s}=e,a=Dt(),[i,l]=v.useState(),c=v.useRef(null),u=$e(t,c,a.onScrollbarYChange);return v.useEffect(()=>{c.current&&l(window.getComputedStyle(c.current))},[]),p.jsx(Zf,{...s,"data-orientation":"vertical",ref:u,sizes:n,style:{"--sa-thumb-height":`${Is(n)}px`,...r},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(a.viewport){const m=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(m),qf(m,f)&&d.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&o({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Rn(i.paddingTop),paddingEnd:Rn(i.paddingBottom)}})}})});Qf.displayName="@mantine/core/ScrollAreaScrollbarY";const Os=v.forwardRef((e,t)=>{const{orientation:n="vertical",...o}=e,{dir:r}=en(),s=Dt(),a=v.useRef(null),i=v.useRef(0),[l,c]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Kf(l.viewport,l.content),d={...o,sizes:l,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:m=>{a.current=m},onThumbPointerUp:()=>{i.current=0},onThumbPointerDown:m=>{i.current=m}},f=(m,h)=>lx(m,i.current,l,h);return n==="horizontal"?p.jsx(Jf,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&a.current){const m=s.viewport.scrollLeft,h=Yu(m,l,r);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:m=>{s.viewport&&(s.viewport.scrollLeft=m)},onDragScroll:m=>{s.viewport&&(s.viewport.scrollLeft=f(m,r))}}):n==="vertical"?p.jsx(Qf,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&a.current){const m=s.viewport.scrollTop,h=Yu(m,l);l.scrollbar.size===0?a.current.style.setProperty("--thumb-opacity","0"):a.current.style.setProperty("--thumb-opacity","1"),a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:m=>{s.viewport&&(s.viewport.scrollTop=m)},onDragScroll:m=>{s.viewport&&(s.viewport.scrollTop=f(m))}}):null});Os.displayName="@mantine/core/ScrollAreaScrollbarVisible";const dl=v.forwardRef((e,t)=>{const n=Dt(),{forceMount:o,...r}=e,[s,a]=v.useState(!1),i=e.orientation==="horizontal",l=Cs(()=>{if(n.viewport){const c=n.viewport.offsetWidth{const{forceMount:n,...o}=e,r=Dt(),[s,a]=v.useState(!1);return v.useEffect(()=>{const{scrollArea:i}=r;let l=0;if(i){const c=()=>{window.clearTimeout(l),a(!0)},u=()=>{l=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return i.addEventListener("pointerenter",c),i.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",c),i.removeEventListener("pointerleave",u)}}},[r.scrollArea,r.scrollHideDelay]),n||s?p.jsx(dl,{"data-state":s?"visible":"hidden",...o,ref:t}):null});ep.displayName="@mantine/core/ScrollAreaScrollbarHover";const ux=v.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=Dt(),s=e.orientation==="horizontal",[a,i]=v.useState("hidden"),l=Cs(()=>i("idle"),100);return v.useEffect(()=>{if(a==="idle"){const c=window.setTimeout(()=>i("hidden"),r.scrollHideDelay);return()=>window.clearTimeout(c)}},[a,r.scrollHideDelay]),v.useEffect(()=>{const{viewport:c}=r,u=s?"scrollLeft":"scrollTop";if(c){let d=c[u];const f=()=>{const m=c[u];d!==m&&(i("scrolling"),l()),d=m};return c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[r.viewport,s,l]),n||a!=="hidden"?p.jsx(Os,{"data-state":a==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:Kn(e.onPointerEnter,()=>i("interacting")),onPointerLeave:Kn(e.onPointerLeave,()=>i("idle"))}):null}),Ti=v.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=Dt(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:a}=r,i=e.orientation==="horizontal";return v.useEffect(()=>(i?s(!0):a(!0),()=>{i?s(!1):a(!1)}),[i,s,a]),r.type==="hover"?p.jsx(ep,{...o,ref:t,forceMount:n}):r.type==="scroll"?p.jsx(ux,{...o,ref:t,forceMount:n}):r.type==="auto"?p.jsx(dl,{...o,ref:t,forceMount:n}):r.type==="always"?p.jsx(Os,{...o,ref:t}):null});Ti.displayName="@mantine/core/ScrollAreaScrollbar";function dx(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function r(){const s={left:e.scrollLeft,top:e.scrollTop},a=n.left!==s.left,i=n.top!==s.top;(a||i)&&t(),n=s,o=window.requestAnimationFrame(r)})(),()=>window.cancelAnimationFrame(o)}const tp=v.forwardRef((e,t)=>{const{style:n,...o}=e,r=Dt(),s=Xf(),{onThumbPositionChange:a}=s,i=$e(t,u=>s.onThumbChange(u)),l=v.useRef(void 0),c=Cs(()=>{l.current&&(l.current(),l.current=void 0)},100);return v.useEffect(()=>{const{viewport:u}=r;if(u){const d=()=>{if(c(),!l.current){const f=dx(u,a);l.current=f,a()}};return a(),u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[r.viewport,c,a]),p.jsx("div",{"data-state":s.hasThumb?"visible":"hidden",...o,ref:i,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Kn(e.onPointerDownCapture,u=>{const f=u.target.getBoundingClientRect(),m=u.clientX-f.left,h=u.clientY-f.top;s.onThumbPointerDown({x:m,y:h})}),onPointerUp:Kn(e.onPointerUp,s.onThumbPointerUp)})});tp.displayName="@mantine/core/ScrollAreaThumb";const ki=v.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=Xf();return n||r.hasThumb?p.jsx(tp,{ref:t,...o}):null});ki.displayName="@mantine/core/ScrollAreaThumb";const np=v.forwardRef(({children:e,style:t,onWheel:n,...o},r)=>{const s=Dt(),a=$e(r,s.onViewportChange),i=l=>{if(n?.(l),s.scrollbarXEnabled&&s.viewport&&l.shiftKey){const{scrollTop:c,scrollHeight:u,clientHeight:d,scrollWidth:f,clientWidth:m}=s.viewport,h=c<1,g=c>=u-d-1;f>m&&(h||g)&&l.stopPropagation()}};return p.jsx(W,{...o,ref:a,onWheel:i,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...t},children:p.jsx("div",{...s.getStyles("content"),ref:s.onContentChange,children:e})})});np.displayName="@mantine/core/ScrollAreaViewport";const op={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},fx=(e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:o})=>{let r=n;return n&&o&&(o==="x"?r=`${n} auto`:o==="y"&&(r=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":K(t),"--scrollarea-over-scroll-behavior":r}}},Lt=U((e,t)=>{const n=H("ScrollArea",op,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,scrollbarSize:l,vars:c,type:u,scrollHideDelay:d,viewportProps:f,viewportRef:m,onScrollPositionChange:h,children:g,offsetScrollbars:y,scrollbars:x,onBottomReached:b,onTopReached:w,overscrollBehavior:C,attributes:S,...N}=n,[D,k]=v.useState(!1),[I,A]=v.useState(!1),[F,z]=v.useState(!1),V=ne({name:"ScrollArea",props:n,classes:ul,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:S,vars:c,varsResolver:fx}),$=v.useRef(null),O=Af([m,$]);return v.useEffect(()=>{if(!$.current||y!=="present")return;const R=$.current,E=new ResizeObserver(()=>{const{scrollHeight:P,clientHeight:j,scrollWidth:M,clientWidth:_}=R;A(P>j),z(M>_)});return E.observe(R),()=>E.disconnect()},[$,y]),p.jsxs(Gf,{getStyles:V,type:u==="never"?"always":u,scrollHideDelay:d,ref:t,scrollbars:x,...V("root"),...N,children:[p.jsx(np,{...f,...V("viewport",{style:f?.style}),ref:O,"data-offset-scrollbars":y===!0?"xy":y||void 0,"data-scrollbars":x||void 0,"data-horizontal-hidden":y==="present"&&!F?"true":void 0,"data-vertical-hidden":y==="present"&&!I?"true":void 0,onScroll:R=>{f?.onScroll?.(R),h?.({x:R.currentTarget.scrollLeft,y:R.currentTarget.scrollTop});const{scrollTop:E,scrollHeight:P,clientHeight:j}=R.currentTarget;E-(P-j)>=-.8&&b?.(),E===0&&w?.()},children:g}),(x==="xy"||x==="x")&&p.jsx(Ti,{...V("scrollbar"),orientation:"horizontal","data-hidden":u==="never"||y==="present"&&!F?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:p.jsx(ki,{...V("thumb")})}),(x==="xy"||x==="y")&&p.jsx(Ti,{...V("scrollbar"),orientation:"vertical","data-hidden":u==="never"||y==="present"&&!I?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:p.jsx(ki,{...V("thumb")})}),p.jsx(sx,{...V("corner"),"data-hovered":D||void 0,"data-hidden":u==="never"||void 0})]})});Lt.displayName="@mantine/core/ScrollArea";const fl=U((e,t)=>{const{children:n,classNames:o,styles:r,scrollbarSize:s,scrollHideDelay:a,type:i,dir:l,offsetScrollbars:c,overscrollBehavior:u,viewportRef:d,onScrollPositionChange:f,unstyled:m,variant:h,viewportProps:g,scrollbars:y,style:x,vars:b,onBottomReached:w,onTopReached:C,onOverflowChange:S,...N}=H("ScrollAreaAutosize",op,e),D=v.useRef(null),k=Af([d,D]),[I,A]=v.useState(!1),F=v.useRef(!1);return v.useEffect(()=>{if(!S)return;const z=D.current;if(!z)return;const V=()=>{const O=z.scrollHeight>z.clientHeight;O!==I&&(F.current?S?.(O):(F.current=!0,O&&S?.(!0)),A(O))};V();const $=new ResizeObserver(V);return $.observe(z),()=>$.disconnect()},[S,I]),p.jsx(W,{...N,ref:t,style:[{display:"flex",overflow:"hidden"},x],children:p.jsx(W,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...y==="y"&&{minWidth:0},...y==="x"&&{minHeight:0},...y==="xy"&&{minWidth:0,minHeight:0},...y===!1&&{minWidth:0,minHeight:0}},children:p.jsx(Lt,{classNames:o,styles:r,scrollHideDelay:a,scrollbarSize:s,type:i,dir:l,offsetScrollbars:c,overscrollBehavior:u,viewportRef:k,onScrollPositionChange:f,unstyled:m,variant:h,viewportProps:g,vars:b,scrollbars:y,onBottomReached:w,onTopReached:C,"data-autosize":"true",children:n})})})});Lt.classes=ul;fl.displayName="@mantine/core/ScrollAreaAutosize";fl.classes=ul;Lt.Autosize=fl;var rp={root:"m_87cf2631"};const px={__staticSelector:"UnstyledButton"},Xe=et((e,t)=>{const n=H("UnstyledButton",px,e),{className:o,component:r="button",__staticSelector:s,unstyled:a,classNames:i,styles:l,style:c,attributes:u,...d}=n,f=ne({name:s,props:n,classes:rp,className:o,style:c,classNames:i,styles:l,unstyled:a,attributes:u});return p.jsx(W,{...f("root",{focusable:!0}),component:r,ref:t,type:r==="button"?"button":void 0,...d})});Xe.classes=rp;Xe.displayName="@mantine/core/UnstyledButton";var sp={root:"m_515a97f8"};const pl=U((e,t)=>{const n=H("VisuallyHidden",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,attributes:c,...u}=n,d=ne({name:"VisuallyHidden",classes:sp,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:c});return p.jsx(W,{component:"span",ref:t,...d("root"),...u})});pl.classes=sp;pl.displayName="@mantine/core/VisuallyHidden";var ap={root:"m_1b7284a3"};const mx=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:Ee(t),"--paper-shadow":Yi(n)}}),As=et((e,t)=>{const n=H("Paper",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,withBorder:l,vars:c,radius:u,shadow:d,variant:f,mod:m,attributes:h,...g}=n,y=ne({name:"Paper",props:n,classes:ap,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:h,vars:c,varsResolver:mx});return p.jsx(W,{ref:t,mod:[{"data-with-border":l},m],...y("root"),variant:f,...g})});As.classes=ap;As.displayName="@mantine/core/Paper";function Wu(e,t,n,o){return e==="center"||o==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function Gu(e,t,n,o,r){return e==="center"||o==="center"?{left:t}:e==="end"?{[r==="ltr"?"right":"left"]:n}:e==="start"?{[r==="ltr"?"left":"right"]:n}:{}}const hx={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function vx({position:e,arrowSize:t,arrowOffset:n,arrowRadius:o,arrowPosition:r,arrowX:s,arrowY:a,dir:i}){const[l,c="center"]=e.split("-"),u={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[hx[l]]:o},d=-t/2;return l==="left"?{...u,...Wu(c,a,n,r),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:l==="right"?{...u,...Wu(c,a,n,r),left:d,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:l==="top"?{...u,...Gu(c,s,n,r,i),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:l==="bottom"?{...u,...Gu(c,s,n,r,i),top:d,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const hs=v.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:o,arrowPosition:r,visible:s,arrowX:a,arrowY:i,style:l,...c},u)=>{const{dir:d}=en();return s?p.jsx("div",{...c,ref:u,style:{...l,...vx({position:e,arrowSize:t,arrowOffset:n,arrowRadius:o,arrowPosition:r,dir:d,arrowX:a,arrowY:i})}}):null});hs.displayName="@mantine/core/FloatingArrow";function ip(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,o]=t.split("-"),r=n==="right"?"left":"right";return o===void 0?r:`${r}-${o}`}return t}var lp={root:"m_9814e45f"};const gx={zIndex:st("modal")},yx=(e,{gradient:t,color:n,backgroundOpacity:o,blur:r,radius:s,zIndex:a})=>({root:{"--overlay-bg":t||(n!==void 0||o!==void 0)&&Wt(n||"#000",o??.6)||void 0,"--overlay-filter":r?`blur(${K(r)})`:void 0,"--overlay-radius":s===void 0?void 0:Ee(s),"--overlay-z-index":a?.toString()}}),Do=et((e,t)=>{const n=H("Overlay",gx,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,fixed:c,center:u,children:d,radius:f,zIndex:m,gradient:h,blur:g,color:y,backgroundOpacity:x,mod:b,attributes:w,...C}=n,S=ne({name:"Overlay",props:n,classes:lp,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:w,vars:l,varsResolver:yx});return p.jsx(W,{ref:t,...S("root"),mod:[{center:u,fixed:c},b],...C,children:d})});Do.classes=lp;Do.displayName="@mantine/core/Overlay";function ai(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 bx({target:e,reuseTargetNode:t,...n}){if(e)return typeof e=="string"?document.querySelector(e)||ai(n):e;if(t){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const r=ai(n);return r.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(r),r}return ai(n)}const xx={reuseTargetNode:!0},cp=U((e,t)=>{const{children:n,target:o,reuseTargetNode:r,...s}=H("Portal",xx,e),[a,i]=v.useState(!1),l=v.useRef(null);return It(()=>(i(!0),l.current=bx({target:o,reuseTargetNode:r,...s}),ar(t,l.current),!o&&!r&&l.current&&document.body.appendChild(l.current),()=>{!o&&!r&&l.current&&document.body.removeChild(l.current)}),[o]),!a||!l.current?null:pr.createPortal(p.jsx(p.Fragment,{children:n}),l.current)});cp.displayName="@mantine/core/Portal";const Jt=U(({withinPortal:e=!0,children:t,...n},o)=>Ds()==="test"||!e?p.jsx(p.Fragment,{children:t}):p.jsx(cp,{ref:o,...n,children:t}));Jt.displayName="@mantine/core/OptionalPortal";const Qo=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Hr={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:{...Qo("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Qo("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Qo("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Qo("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Qo("top"),common:{transformOrigin:"top right"}}},Ku={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function wx({transition:e,state:t,duration:n,timingFunction:o}){const r={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in Hr?{transitionProperty:Hr[e].transitionProperty,...r,...Hr[e].common,...Hr[e][Ku[t]]}:{}:{transitionProperty:e.transitionProperty,...r,...e.common,...e[Ku[t]]}}function Cx({duration:e,exitDuration:t,timingFunction:n,mounted:o,onEnter:r,onExit:s,onEntered:a,onExited:i,enterDelay:l,exitDelay:c}){const u=Ke(),d=Ss(),f=u.respectReducedMotion?d:!1,[m,h]=v.useState(f?0:e),[g,y]=v.useState(o?"entered":"exited"),x=v.useRef(-1),b=v.useRef(-1),w=v.useRef(-1);function C(){window.clearTimeout(x.current),window.clearTimeout(b.current),cancelAnimationFrame(w.current)}const S=D=>{C();const k=D?r:s,I=D?a:i,A=f?0:D?e:t;h(A),A===0?(typeof k=="function"&&k(),typeof I=="function"&&I(),y(D?"entered":"exited")):w.current=requestAnimationFrame(()=>{yo.flushSync(()=>{y(D?"pre-entering":"pre-exiting")}),w.current=requestAnimationFrame(()=>{typeof k=="function"&&k(),y(D?"entering":"exiting"),x.current=window.setTimeout(()=>{typeof I=="function"&&I(),y(D?"entered":"exited")},A)})})},N=D=>{if(C(),typeof(D?l:c)!="number"){S(D);return}b.current=window.setTimeout(()=>{S(D)},D?l:c)};return bt(()=>{N(o)},[o]),v.useEffect(()=>()=>{C()},[]),{transitionDuration:m,transitionStatus:g,transitionTimingFunction:n||"ease"}}function Ft({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:o=n,mounted:r,children:s,timingFunction:a="ease",onExit:i,onEntered:l,onEnter:c,onExited:u,enterDelay:d,exitDelay:f}){const m=Ds(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:y}=Cx({mounted:r,exitDuration:o,duration:n,timingFunction:a,onExit:i,onEntered:l,onEnter:c,onExited:u,enterDelay:d,exitDelay:f});return h===0||m==="test"?r?p.jsx(p.Fragment,{children:s({})}):e?s({display:"none"}):null:g==="exited"?e?s({display:"none"}):null:p.jsx(p.Fragment,{children:s(wx({transition:t,duration:h,state:g,timingFunction:y}))})}Ft.displayName="@mantine/core/Transition";const[Sx,up]=nt("Popover component was not found in the tree");var dp={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};function Ls({children:e,active:t=!0,refProp:n="ref",innerRef:o}){const r=Og(t),s=$e(r,o),a=Nn(e);return a?v.cloneElement(a,{[n]:s}):e}function fp(e){return p.jsx(pl,{tabIndex:-1,"data-autofocus":!0,...e})}Ls.displayName="@mantine/core/FocusTrap";fp.displayName="@mantine/core/FocusTrapInitialFocus";Ls.InitialFocus=fp;const ml=U((e,t)=>{const n=H("PopoverDropdown",null,e),{className:o,style:r,vars:s,children:a,onKeyDownCapture:i,variant:l,classNames:c,styles:u,...d}=n,f=up(),m=nf({opened:f.opened,shouldReturnFocus:f.returnFocus}),h=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},g=$e(t,f.floating);return f.disabled?null:p.jsx(Jt,{...f.portalProps,withinPortal:f.withinPortal,children:p.jsx(Ft,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||"fade",duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,exitDuration:typeof f.transitionProps?.exitDuration=="number"?f.transitionProps.exitDuration:f.transitionProps?.duration,children:y=>p.jsx(Ls,{active:f.trapFocus&&f.opened,innerRef:g,children:p.jsxs(W,{...h,...d,variant:l,onKeyDownCapture:_g(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:m,onKeyDown:i}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:o,props:n,classNames:c,styles:u,style:[{...y,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:K(f.width),...f.referenceHidden?{display:"none"}:null},f.resolvedStyles.dropdown,u?.dropdown,r]}),children:[a,p.jsx(hs,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:c,styles:u})})]})})})})});ml.classes=dp;ml.displayName="@mantine/core/PopoverDropdown";const _x={refProp:"ref",popupType:"dialog"},pp=U((e,t)=>{const{children:n,refProp:o,popupType:r,...s}=H("PopoverTarget",_x,e),a=Nn(n);if(!a)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 i=s,l=up(),c=$e(l.reference,_s(a),t),u=l.withRoles?{"aria-haspopup":r,"aria-expanded":l.opened,"aria-controls":l.opened?l.getDropdownId():void 0,id:l.getTargetId()}:{},d=a.props;return v.cloneElement(a,{...i,...u,...l.targetProps,className:Ze(l.targetProps.className,i.className,d.className),[o]:c,...l.controlled?null:{onClick:()=>{l.onToggle(),d.onClick?.()}}})});pp.displayName="@mantine/core/PopoverTarget";function Px(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 Rx(e,t,n){const o=Px(e.middlewares),r=[If(e.offset),V0()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(o.flip=!1),o.flip&&r.push(typeof o.flip=="boolean"?ms():ms(o.flip)),o.shift&&r.push(al(typeof o.shift=="boolean"?{limiter:Au(),padding:5}:{limiter:Au(),padding:5,...o.shift})),o.inline&&r.push(typeof o.inline=="boolean"?or():or(o.inline)),r.push(Of({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&r.push(B0({...typeof o.size=="boolean"?{}:o.size,apply({rects:s,availableWidth:a,availableHeight:i,...l}){const u=t().refs.floating.current?.style??{};o.size&&(typeof o.size=="object"&&o.size.apply?o.size.apply({rects:s,availableWidth:a,availableHeight:i,...l}):Object.assign(u,{maxWidth:`${a}px`,maxHeight:`${i}px`})),e.width==="target"&&Object.assign(u,{width:`${s.reference.width}px`})}})),r}function Dx(e){const t=Ds(),[n,o]=He({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=v.useRef(n),s=()=>{n&&!e.disabled&&o(!1)},a=()=>{e.disabled||o(!n)},i=Ms({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:Rx(e,()=>i,t),whileElementsMounted:e.keepMounted?void 0:Ni});return v.useEffect(()=>{if(!(!i.refs.reference.current||!i.refs.floating.current)&&n)return Ni(i.refs.reference.current,i.refs.floating.current,i.update)},[n,i.update]),bt(()=>{e.onPositionChange?.(i.placement),e.positionRef.current=i.placement},[i.placement,e.preventPositionChangeWhenVisible]),bt(()=>{n!==r.current&&(n?e.onOpen?.():e.onClose?.()),r.current=n},[n,e.onClose,e.onOpen]),It(()=>{let l=-1;return n&&(l=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(l)}},[n,e.position]),{floating:i,controlled:typeof e.opened=="boolean",opened:n,onClose:s,onToggle:a}}const Nx={position:"bottom",offset:8,positionDependencies:[],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,clickOutsideEvents:["mousedown","touchstart"],zIndex:st("popover"),__staticSelector:"Popover",width:"max-content"},Ex=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:Ee(t),"--popover-shadow":Yi(n)}});function Be(e){const t=H("Popover",Nx,e),{children:n,position:o,offset:r,onPositionChange:s,positionDependencies:a,opened:i,transitionProps:l,onExitTransitionEnd:c,onEnterTransitionEnd:u,width:d,middlewares:f,withArrow:m,arrowSize:h,arrowOffset:g,arrowRadius:y,arrowPosition:x,unstyled:b,classNames:w,styles:C,closeOnClickOutside:S,withinPortal:N,portalProps:D,closeOnEscape:k,clickOutsideEvents:I,trapFocus:A,onClose:F,onDismiss:z,onOpen:V,onChange:$,zIndex:O,radius:R,shadow:E,id:P,defaultOpened:j,__staticSelector:M,withRoles:_,disabled:T,returnFocus:L,variant:B,keepMounted:G,vars:q,floatingStrategy:X,withOverlay:le,overlayProps:J,hideDetached:ee,attributes:ce,preventPositionChangeWhenVisible:re,...ae}=t,pe=ne({name:M,props:t,classes:dp,classNames:w,styles:C,unstyled:b,attributes:ce,rootSelector:"dropdown",vars:q,varsResolver:Ex}),{resolvedStyles:ge}=pt({classNames:w,styles:C,props:t}),[ie,te]=v.useState(i??j??!1),Z=v.useRef(o),oe=v.useRef(null),[be,_e]=v.useState(null),[me,we]=v.useState(null),{dir:ke}=en(),Pe=Ds(),De=Qe(P),Y=Dx({middlewares:f,width:d,position:ip(ke,o),offset:typeof r=="number"?r+(m?h/2:0):r,arrowRef:oe,arrowOffset:g,onPositionChange:s,positionDependencies:a,opened:i,defaultOpened:j,onChange:$,onOpen:V,onClose:F,onDismiss:z,strategy:X,dropdownVisible:ie,setDropdownVisible:te,positionRef:Z,disabled:T,preventPositionChangeWhenVisible:re,keepMounted:G});ef(()=>{S&&(Y.onClose(),z?.())},I,[be,me]);const ue=v.useCallback(se=>{_e(se),Y.floating.refs.setReference(se)},[Y.floating.refs.setReference]),Te=v.useCallback(se=>{we(se),Y.floating.refs.setFloating(se)},[Y.floating.refs.setFloating]),Me=v.useCallback(()=>{l?.onExited?.(),c?.(),te(!1),re||(Z.current=o)},[l?.onExited,c,re,o]),de=v.useCallback(()=>{l?.onEntered?.(),u?.()},[l?.onEntered,u]);return p.jsxs(Sx,{value:{returnFocus:L,disabled:T,controlled:Y.controlled,reference:ue,floating:Te,x:Y.floating.x,y:Y.floating.y,arrowX:Y.floating?.middlewareData?.arrow?.x,arrowY:Y.floating?.middlewareData?.arrow?.y,opened:Y.opened,arrowRef:oe,transitionProps:{...l,onExited:Me,onEntered:de},width:d,withArrow:m,arrowSize:h,arrowOffset:g,arrowRadius:y,arrowPosition:x,placement:Y.floating.placement,trapFocus:A,withinPortal:N,portalProps:D,zIndex:O,radius:R,shadow:E,closeOnEscape:k,onDismiss:z,onClose:Y.onClose,onToggle:Y.onToggle,getTargetId:()=>`${De}-target`,getDropdownId:()=>`${De}-dropdown`,withRoles:_,targetProps:ae,__staticSelector:M,classNames:w,styles:C,unstyled:b,variant:B,keepMounted:G,getStyles:pe,resolvedStyles:ge,floatingStrategy:X,referenceHidden:ee&&Pe!=="test"?Y.floating.middlewareData.hide?.referenceHidden:!1},children:[n,le&&p.jsx(Ft,{transition:"fade",mounted:Y.opened,duration:l?.duration||250,exitDuration:l?.exitDuration||250,children:se=>p.jsx(Jt,{withinPortal:N,children:p.jsx(Do,{...J,...pe("overlay",{className:J?.className,style:[se,J?.style]})})})})]})}Be.Target=pp;Be.Dropdown=ml;Be.displayName="@mantine/core/Popover";Be.extend=e=>e;var Mt={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 mp=v.forwardRef(({className:e,...t},n)=>p.jsxs(W,{component:"span",className:Ze(Mt.barsLoader,e),...t,ref:n,children:[p.jsx("span",{className:Mt.bar}),p.jsx("span",{className:Mt.bar}),p.jsx("span",{className:Mt.bar})]}));mp.displayName="@mantine/core/Bars";const hp=v.forwardRef(({className:e,...t},n)=>p.jsxs(W,{component:"span",className:Ze(Mt.dotsLoader,e),...t,ref:n,children:[p.jsx("span",{className:Mt.dot}),p.jsx("span",{className:Mt.dot}),p.jsx("span",{className:Mt.dot})]}));hp.displayName="@mantine/core/Dots";const vp=v.forwardRef(({className:e,...t},n)=>p.jsx(W,{component:"span",className:Ze(Mt.ovalLoader,e),...t,ref:n}));vp.displayName="@mantine/core/Oval";const gp={bars:mp,oval:vp,dots:hp},Tx={loaders:gp,type:"oval"},kx=(e,{size:t,color:n})=>({root:{"--loader-size":he(t,"loader-size"),"--loader-color":n?Ae(n,e):void 0}}),eo=U((e,t)=>{const n=H("Loader",Tx,e),{size:o,color:r,type:s,vars:a,className:i,style:l,classNames:c,styles:u,unstyled:d,loaders:f,variant:m,children:h,attributes:g,...y}=n,x=ne({name:"Loader",props:n,classes:Mt,className:i,style:l,classNames:c,styles:u,unstyled:d,attributes:g,vars:a,varsResolver:kx});return h?p.jsx(W,{...x("root"),ref:t,...y,children:h}):p.jsx(W,{...x("root"),ref:t,component:f[s],variant:m,size:o,...y})});eo.defaultLoaders=gp;eo.classes=Mt;eo.displayName="@mantine/core/Loader";var Mo={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const Uu={orientation:"horizontal"},$x=(e,{borderWidth:t})=>({group:{"--ai-border-width":K(t)}}),hl=U((e,t)=>{const n=H("ActionIconGroup",Uu,e),{className:o,style:r,classNames:s,styles:a,unstyled:i,orientation:l,vars:c,borderWidth:u,variant:d,mod:f,attributes:m,...h}=H("ActionIconGroup",Uu,e),g=ne({name:"ActionIconGroup",props:n,classes:Mo,className:o,style:r,classNames:s,styles:a,unstyled:i,attributes:m,vars:c,varsResolver:$x,rootSelector:"group"});return p.jsx(W,{...g("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...h})});hl.classes=Mo;hl.displayName="@mantine/core/ActionIconGroup";const jx=(e,{radius:t,color:n,gradient:o,variant:r,autoContrast:s,size:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:s});return{groupSection:{"--section-height":he(a,"section-height"),"--section-padding-x":he(a,"section-padding-x"),"--section-fz":Ge(a),"--section-radius":t===void 0?void 0:Ee(t),"--section-bg":n||r?i.background:void 0,"--section-color":i.color,"--section-bd":n||r?i.border:void 0}}},vl=U((e,t)=>{const n=H("ActionIconGroupSection",null,e),{className:o,style:r,classNames:s,styles:a,unstyled:i,vars:l,variant:c,gradient:u,radius:d,autoContrast:f,attributes:m,...h}=n,g=ne({name:"ActionIconGroupSection",props:n,classes:Mo,className:o,style:r,classNames:s,styles:a,unstyled:i,attributes:m,vars:l,varsResolver:jx,rootSelector:"groupSection"});return p.jsx(W,{...g("groupSection"),ref:t,variant:c,...h})});vl.classes=Mo;vl.displayName="@mantine/core/ActionIconGroupSection";const Mx=(e,{size:t,radius:n,variant:o,gradient:r,color:s,autoContrast:a})=>{const i=e.variantColorResolver({color:s||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:a});return{root:{"--ai-size":he(t,"ai-size"),"--ai-radius":n===void 0?void 0:Ee(n),"--ai-bg":s||o?i.background:void 0,"--ai-hover":s||o?i.hover:void 0,"--ai-hover-color":s||o?i.hoverColor:void 0,"--ai-color":i.color,"--ai-bd":s||o?i.border:void 0}}},Io=et((e,t)=>{const n=H("ActionIcon",null,e),{className:o,unstyled:r,variant:s,classNames:a,styles:i,style:l,loading:c,loaderProps:u,size:d,color:f,radius:m,__staticSelector:h,gradient:g,vars:y,children:x,disabled:b,"data-disabled":w,autoContrast:C,mod:S,attributes:N,...D}=n,k=ne({name:["ActionIcon",h],props:n,className:o,style:l,classes:Mo,classNames:a,styles:i,unstyled:r,attributes:N,vars:y,varsResolver:Mx});return p.jsxs(Xe,{...k("root",{active:!b&&!c&&!w}),...D,unstyled:r,variant:s,size:d,disabled:b||c,ref:t,mod:[{loading:c,disabled:b||w},S],children:[typeof c=="boolean"&&p.jsx(Ft,{mounted:c,transition:"slide-down",duration:150,children:I=>p.jsx(W,{component:"span",...k("loader",{style:I}),"aria-hidden":!0,children:p.jsx(eo,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...u})})}),p.jsx(W,{component:"span",mod:{loading:c},...k("icon"),children:x})]})});Io.classes=Mo;Io.displayName="@mantine/core/ActionIcon";Io.Group=hl;Io.GroupSection=vl;const yp=v.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...n},o)=>p.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:o,...n,children:p.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"})}));yp.displayName="@mantine/core/CloseIcon";var bp={root:"m_86a44da5","root--subtle":"m_220c80f2"};const Ix={variant:"subtle"},Ox=(e,{size:t,radius:n,iconSize:o})=>({root:{"--cb-size":he(t,"cb-size"),"--cb-radius":n===void 0?void 0:Ee(n),"--cb-icon-size":K(o)}}),Tn=et((e,t)=>{const n=H("CloseButton",Ix,e),{iconSize:o,children:r,vars:s,radius:a,className:i,classNames:l,style:c,styles:u,unstyled:d,"data-disabled":f,disabled:m,variant:h,icon:g,mod:y,attributes:x,__staticSelector:b,...w}=n,C=ne({name:b||"CloseButton",props:n,className:i,style:c,classes:bp,classNames:l,styles:u,unstyled:d,attributes:x,vars:s,varsResolver:Ox});return p.jsxs(Xe,{ref:t,...w,unstyled:d,variant:h,disabled:m,mod:[{disabled:m||f},y],...C("root",{variant:h,active:!m&&!f}),children:[g||p.jsx(yp,{}),r]})});Tn.classes=bp;Tn.displayName="@mantine/core/CloseButton";function Ax(e){return v.Children.toArray(e).filter(Boolean)}var xp={root:"m_4081bf90"};const Lx={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},Fx=(e,{grow:t,preventGrowOverflow:n,gap:o,align:r,justify:s,wrap:a},{childWidth:i})=>({root:{"--group-child-width":t&&n?i:void 0,"--group-gap":ze(o),"--group-align":r,"--group-justify":s,"--group-wrap":a}}),Fs=U((e,t)=>{const n=H("Group",Lx,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,children:l,gap:c,align:u,justify:d,wrap:f,grow:m,preventGrowOverflow:h,vars:g,variant:y,__size:x,mod:b,attributes:w,...C}=n,S=Ax(l),N=S.length,D=ze(c??"md"),I={childWidth:`calc(${100/N}% - (${D} - ${D} / ${N}))`},A=ne({name:"Group",props:n,stylesCtx:I,className:r,style:s,classes:xp,classNames:o,styles:a,unstyled:i,attributes:w,vars:g,varsResolver:Fx});return p.jsx(W,{...A("root"),ref:t,variant:y,mod:[{grow:m},b],size:x,...C,children:S})});Fs.classes=xp;Fs.displayName="@mantine/core/Group";const[zx,pn]=nt("ModalBase component was not found in tree");function Bx({opened:e,transitionDuration:t}){const[n,o]=v.useState(e),r=v.useRef(-1),a=Ss()?0:t;return v.useEffect(()=>(e?(o(!0),window.clearTimeout(r.current)):a===0?o(!1):r.current=window.setTimeout(()=>o(!1),a),()=>window.clearTimeout(r.current)),[e,a]),n}function Vx({id:e,transitionProps:t,opened:n,trapFocus:o,closeOnEscape:r,onClose:s,returnFocus:a}){const i=Qe(e),[l,c]=v.useState(!1),[u,d]=v.useState(!1),f=typeof t?.duration=="number"?t?.duration:200,m=Bx({opened:n,transitionDuration:f});return _o("keydown",h=>{h.key==="Escape"&&r&&!h.isComposing&&n&&h.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&s()},{capture:!0}),nf({opened:n,shouldReturnFocus:o&&a}),{_id:i,titleMounted:l,bodyMounted:u,shouldLockScroll:m,setTitleMounted:c,setBodyMounted:d}}const gl=v.forwardRef(({keepMounted:e,opened:t,onClose:n,id:o,transitionProps:r,onExitTransitionEnd:s,onEnterTransitionEnd:a,trapFocus:i,closeOnEscape:l,returnFocus:c,closeOnClickOutside:u,withinPortal:d,portalProps:f,lockScroll:m,children:h,zIndex:g,shadow:y,padding:x,__vars:b,unstyled:w,removeScrollProps:C,...S},N)=>{const{_id:D,titleMounted:k,bodyMounted:I,shouldLockScroll:A,setTitleMounted:F,setBodyMounted:z}=Vx({id:o,transitionProps:r,opened:t,trapFocus:i,closeOnEscape:l,onClose:n,returnFocus:c}),{key:V,...$}=C||{};return p.jsx(Jt,{...f,withinPortal:d,children:p.jsx(zx,{value:{opened:t,onClose:n,closeOnClickOutside:u,onExitTransitionEnd:s,onEnterTransitionEnd:a,transitionProps:{...r,keepMounted:e},getTitleId:()=>`${D}-title`,getBodyId:()=>`${D}-body`,titleMounted:k,bodyMounted:I,setTitleMounted:F,setBodyMounted:z,trapFocus:i,closeOnEscape:l,zIndex:g,unstyled:w},children:p.jsx(Un,{enabled:A&&m,...$,children:p.jsx(W,{ref:N,...S,__vars:{...b,"--mb-z-index":(g||st("modal")).toString(),"--mb-shadow":Yi(y),"--mb-padding":ze(x)},children:h})},V)})})});gl.displayName="@mantine/core/ModalBase";var No={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function Hx(){const e=pn();return v.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}const yl=v.forwardRef(({className:e,...t},n)=>{const o=Hx(),r=pn();return p.jsx(W,{ref:n,...t,id:o,className:Ze({[No.body]:!r.unstyled},e)})});yl.displayName="@mantine/core/ModalBaseBody";const bl=v.forwardRef(({className:e,onClick:t,...n},o)=>{const r=pn();return p.jsx(Tn,{ref:o,...n,onClick:s=>{r.onClose(),t?.(s)},className:Ze({[No.close]:!r.unstyled},e),unstyled:r.unstyled})});bl.displayName="@mantine/core/ModalBaseCloseButton";const xl=v.forwardRef(({transitionProps:e,className:t,innerProps:n,onKeyDown:o,style:r,...s},a)=>{const i=pn();return p.jsx(Ft,{mounted:i.opened,transition:"pop",...i.transitionProps,onExited:()=>{i.onExitTransitionEnd?.(),i.transitionProps?.onExited?.()},onEntered:()=>{i.onEnterTransitionEnd?.(),i.transitionProps?.onEntered?.()},...e,children:l=>p.jsx("div",{...n,className:Ze({[No.inner]:!i.unstyled},n.className),children:p.jsx(Ls,{active:i.opened&&i.trapFocus,innerRef:a,children:p.jsx(As,{...s,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":i.bodyMounted?i.getBodyId():void 0,"aria-labelledby":i.titleMounted?i.getTitleId():void 0,style:[r,l],className:Ze({[No.content]:!i.unstyled},t),unstyled:i.unstyled,children:s.children})})})})});xl.displayName="@mantine/core/ModalBaseContent";const wl=v.forwardRef(({className:e,...t},n)=>{const o=pn();return p.jsx(W,{component:"header",ref:n,className:Ze({[No.header]:!o.unstyled},e),...t})});wl.displayName="@mantine/core/ModalBaseHeader";const Yx={duration:200,timingFunction:"ease",transition:"fade"};function Wx(e){const t=pn();return{...Yx,...t.transitionProps,...e}}const Cl=v.forwardRef(({onClick:e,transitionProps:t,style:n,visible:o,...r},s)=>{const a=pn(),i=Wx(t);return p.jsx(Ft,{mounted:o!==void 0?o:a.opened,...i,transition:"fade",children:l=>p.jsx(Do,{ref:s,fixed:!0,style:[n,l],zIndex:a.zIndex,unstyled:a.unstyled,onClick:c=>{e?.(c),a.closeOnClickOutside&&a.onClose()},...r})})});Cl.displayName="@mantine/core/ModalBaseOverlay";function Gx(){const e=pn();return v.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const Sl=v.forwardRef(({className:e,...t},n)=>{const o=Gx(),r=pn();return p.jsx(W,{component:"h2",ref:n,className:Ze({[No.title]:!r.unstyled},e),...t,id:o})});Sl.displayName="@mantine/core/ModalBaseTitle";function wp({children:e}){return p.jsx(p.Fragment,{children:e})}const[Kx,Ux]=Bt({size:"sm"});var Nt={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const Cp=U((e,t)=>{const n=H("InputClearButton",null,e),{size:o,variant:r,vars:s,classNames:a,styles:i,...l}=n,c=Ux(),{resolvedClassNames:u,resolvedStyles:d}=pt({classNames:a,styles:i,props:n});return p.jsx(Tn,{variant:r||"transparent",ref:t,size:o||c?.size||"sm",classNames:u,styles:d,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...l.style},...l})});Cp.displayName="@mantine/core/InputClearButton";const qx={xs:7,sm:8,md:10,lg:12,xl:15};function Xx({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:o,size:r="sm"}){const s=e&&t;return s&&(n||o)?p.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:qx[r]},children:[s,n||o]}):n===null?null:n||s||o}const[Zx,Oo]=Bt({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),Jx=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${Ge(t)} - ${K(2)})`}}),zs=U((e,t)=>{const n=H("InputDescription",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,size:c,__staticSelector:u,__inheritStyles:d=!0,attributes:f,variant:m,...h}=H("InputDescription",null,n),g=Oo(),y=ne({name:["InputWrapper",u],props:n,classes:Nt,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:f,rootSelector:"description",vars:l,varsResolver:Jx}),x=d&&g?.getStyles||y;return p.jsx(W,{component:"p",ref:t,variant:m,size:c,...x("description",g?.getStyles?{className:r,style:s}:void 0),...h})});zs.classes=Nt;zs.displayName="@mantine/core/InputDescription";const Qx=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${Ge(t)} - ${K(2)})`}}),Bs=U((e,t)=>{const n=H("InputError",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,size:c,attributes:u,__staticSelector:d,__inheritStyles:f=!0,variant:m,...h}=n,g=ne({name:["InputWrapper",d],props:n,classes:Nt,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:u,rootSelector:"error",vars:l,varsResolver:Qx}),y=Oo(),x=f&&y?.getStyles||g;return p.jsx(W,{component:"p",ref:t,variant:m,size:c,...x("error",y?.getStyles?{className:r,style:s}:void 0),...h})});Bs.classes=Nt;Bs.displayName="@mantine/core/InputError";const qu={labelElement:"label"},ew=(e,{size:t})=>({label:{"--input-label-size":Ge(t),"--input-asterisk-color":void 0}}),Vs=U((e,t)=>{const n=H("InputLabel",qu,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,labelElement:c,size:u,required:d,htmlFor:f,onMouseDown:m,children:h,__staticSelector:g,variant:y,mod:x,attributes:b,...w}=H("InputLabel",qu,n),C=ne({name:["InputWrapper",g],props:n,classes:Nt,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:b,rootSelector:"label",vars:l,varsResolver:ew}),S=Oo(),N=S?.getStyles||C;return p.jsxs(W,{...N("label",S?.getStyles?{className:r,style:s}:void 0),component:c,variant:y,size:u,ref:t,htmlFor:c==="label"?f:void 0,mod:[{required:d},x],onMouseDown:D=>{m?.(D),!D.defaultPrevented&&D.detail>1&&D.preventDefault()},...w,children:[h,d&&p.jsx("span",{...N("required"),"aria-hidden":!0,children:" *"})]})});Vs.classes=Nt;Vs.displayName="@mantine/core/InputLabel";const _l=U((e,t)=>{const n=H("InputPlaceholder",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,__staticSelector:c,variant:u,error:d,mod:f,attributes:m,...h}=n,g=ne({name:["InputPlaceholder",c],props:n,classes:Nt,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:m,rootSelector:"placeholder"});return p.jsx(W,{...g("placeholder"),mod:[{error:!!d},f],component:"span",variant:u,ref:t,...h})});_l.classes=Nt;_l.displayName="@mantine/core/InputPlaceholder";function tw(e,{hasDescription:t,hasError:n}){const o=e.findIndex(l=>l==="input"),r=e.slice(0,o),s=e.slice(o+1),a=t&&r.includes("description")||n&&r.includes("error");return{offsetBottom:t&&s.includes("description")||n&&s.includes("error"),offsetTop:a}}const nw={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},ow=(e,{size:t})=>({label:{"--input-label-size":Ge(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${Ge(t)} - ${K(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${Ge(t)} - ${K(2)})`}}),Pl=U((e,t)=>{const n=H("InputWrapper",nw,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,size:c,variant:u,__staticSelector:d,inputContainer:f,inputWrapperOrder:m,label:h,error:g,description:y,labelProps:x,descriptionProps:b,errorProps:w,labelElement:C,children:S,withAsterisk:N,id:D,required:k,__stylesApiProps:I,mod:A,attributes:F,...z}=n,V=ne({name:["InputWrapper",d],props:I||n,classes:Nt,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:F,vars:l,varsResolver:ow}),$={size:c,variant:u,__staticSelector:d},O=Qe(D),R=typeof N=="boolean"?N:k,E=w?.id||`${O}-error`,P=b?.id||`${O}-description`,j=O,M=!!g&&typeof g!="boolean",_=!!y,T=`${M?E:""} ${_?P:""}`,L=T.trim().length>0?T.trim():void 0,B=x?.id||`${O}-label`,G=h&&p.jsx(Vs,{labelElement:C,id:B,htmlFor:j,required:R,...$,...x,children:h},"label"),q=_&&p.jsx(zs,{...b,...$,size:b?.size||$.size,id:b?.id||P,children:y},"description"),X=p.jsx(v.Fragment,{children:f(S)},"input"),le=M&&v.createElement(Bs,{...w,...$,size:w?.size||$.size,key:"error",id:w?.id||E},g),J=m.map(ee=>{switch(ee){case"label":return G;case"input":return X;case"description":return q;case"error":return le;default:return null}});return p.jsx(Zx,{value:{getStyles:V,describedBy:L,inputId:j,labelId:B,...tw(m,{hasDescription:_,hasError:M})},children:p.jsx(W,{ref:t,variant:u,size:c,mod:[{error:!!g},A],...V("root"),...z,children:J})})});Pl.classes=Nt;Pl.displayName="@mantine/core/InputWrapper";const rw={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},sw=(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":he(t.size,"input-height"),"--input-fz":Ge(t.size),"--input-radius":t.radius===void 0?void 0:Ee(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?K(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?K(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?he(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),je=et((e,t)=>{const n=H("Input",rw,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,required:l,__staticSelector:c,__stylesApiProps:u,size:d,wrapperProps:f,error:m,disabled:h,leftSection:g,leftSectionProps:y,leftSectionWidth:x,rightSection:b,rightSectionProps:w,rightSectionWidth:C,rightSectionPointerEvents:S,leftSectionPointerEvents:N,variant:D,vars:k,pointer:I,multiline:A,radius:F,id:z,withAria:V,withErrorStyles:$,mod:O,inputSize:R,attributes:E,__clearSection:P,__clearable:j,__defaultRightSection:M,..._}=n,{styleProps:T,rest:L}=fn(_),B=Oo(),G={offsetBottom:B?.offsetBottom,offsetTop:B?.offsetTop},q=ne({name:["Input",c],props:u||n,classes:Nt,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:E,stylesCtx:G,rootSelector:"wrapper",vars:k,varsResolver:sw}),X=V?{required:l,disabled:h,"aria-invalid":!!m,"aria-describedby":B?.describedBy,id:B?.inputId||z}:{},le=Xx({__clearable:j,__clearSection:P,rightSection:b,__defaultRightSection:M,size:d});return p.jsx(Kx,{value:{size:d||"sm"},children:p.jsxs(W,{...q("wrapper"),...T,...f,mod:[{error:!!m&&$,pointer:I,disabled:h,multiline:A,"data-with-right-section":!!le,"data-with-left-section":!!g},O],variant:D,size:d,children:[g&&p.jsx("div",{...y,"data-position":"left",...q("section",{className:y?.className,style:y?.style}),children:g}),p.jsx(W,{component:"input",...L,...X,ref:t,required:l,mod:{disabled:h,error:!!m&&$},variant:D,__size:R,...q("input")}),le&&p.jsx("div",{...w,"data-position":"right",...q("section",{className:w?.className,style:w?.style}),children:le})]})})});je.classes=Nt;je.Wrapper=Pl;je.Label=Vs;je.Error=Bs;je.Description=zs;je.Placeholder=_l;je.ClearButton=Cp;je.displayName="@mantine/core/Input";function Rl(e,t,n){const o=H(e,t,n),{label:r,description:s,error:a,required:i,classNames:l,styles:c,className:u,unstyled:d,__staticSelector:f,__stylesApiProps:m,errorProps:h,labelProps:g,descriptionProps:y,wrapperProps:x,id:b,size:w,style:C,inputContainer:S,inputWrapperOrder:N,withAsterisk:D,variant:k,vars:I,mod:A,attributes:F,...z}=o,{styleProps:V,rest:$}=fn(z),O={label:r,description:s,error:a,required:i,classNames:l,className:u,__staticSelector:f,__stylesApiProps:m||o,errorProps:h,labelProps:g,descriptionProps:y,unstyled:d,styles:c,size:w,style:C,inputContainer:S,inputWrapperOrder:N,withAsterisk:D,variant:k,id:b,mod:A,attributes:F,...x};return{...$,classNames:l,styles:c,unstyled:d,wrapperProps:{...O,...V},inputProps:{required:i,classNames:l,styles:c,unstyled:d,size:w,__staticSelector:f,__stylesApiProps:m||o,error:a,variant:k,id:b,attributes:F}}}const aw={__staticSelector:"InputBase",withAria:!0,size:"sm"},it=et((e,t)=>{const{inputProps:n,wrapperProps:o,...r}=Rl("InputBase",aw,e);return p.jsx(je.Wrapper,{...o,children:p.jsx(je,{...n,...r,ref:t})})});it.classes={...je.classes,...je.Wrapper.classes};it.displayName="@mantine/core/InputBase";const iw={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var Sp={root:"m_8bffd616"};const _p=et((e,t)=>{const n=H("Flex",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,gap:c,rowGap:u,columnGap:d,align:f,justify:m,wrap:h,direction:g,attributes:y,...x}=n,b=ne({name:"Flex",classes:Sp,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:y,vars:l}),w=Ke(),C=fr(),S=gf({styleProps:{gap:c,rowGap:u,columnGap:d,align:f,justify:m,wrap:h,direction:g},theme:w,data:iw});return p.jsxs(p.Fragment,{children:[S.hasResponsiveStyles&&p.jsx(Qn,{selector:`.${C}`,styles:S.styles,media:S.media}),p.jsx(W,{ref:t,...b("root",{className:C,style:Dn(S.inlineStyles)}),...x})]})});_p.classes=Sp;_p.displayName="@mantine/core/Flex";var Pp={root:"m_96b553a6"};function lw(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function cw({target:e,parent:t,ref:n,displayAfterTransitionEnd:o}){const r=v.useRef(-1),[s,a]=v.useState(!1),[i,l]=v.useState(typeof o=="boolean"?o:!1),c=()=>{if(!e||!t||!n.current)return;const m=e.getBoundingClientRect(),h=t.getBoundingClientRect(),g=window.getComputedStyle(e),y=window.getComputedStyle(t),x=Rn(g.borderTopWidth)+Rn(y.borderTopWidth),b=Rn(g.borderLeftWidth)+Rn(y.borderLeftWidth),w={top:m.top-h.top-x,left:m.left-h.left-b,width:m.width,height:m.height};n.current.style.transform=`translateY(${w.top}px) translateX(${w.left}px)`,n.current.style.width=`${w.width}px`,n.current.style.height=`${w.height}px`},u=()=>{window.clearTimeout(r.current),n.current&&(n.current.style.transitionDuration="0ms"),c(),r.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},d=v.useRef(null),f=v.useRef(null);return v.useEffect(()=>{if(c(),e)return d.current=new ResizeObserver(u),d.current.observe(e),t&&(f.current=new ResizeObserver(u),f.current.observe(t)),()=>{d.current?.disconnect(),f.current?.disconnect()}},[t,e]),v.useEffect(()=>{if(t){const m=h=>{lw(h.target,t)&&(u(),l(!1))};return t.addEventListener("transitionend",m),()=>{t.removeEventListener("transitionend",m)}}},[t]),oy(()=>{uf()!=="test"&&a(!0)},20,{autoInvoke:!0}),cf(m=>{m.forEach(h=>{h.type==="attributes"&&h.attributeName==="dir"&&u()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:s,hidden:i}}const uw=(e,{transitionDuration:t})=>({root:{"--transition-duration":typeof t=="number"?`${t}ms`:t}}),Dl=U((e,t)=>{const n=H("FloatingIndicator",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,target:c,parent:u,transitionDuration:d,mod:f,displayAfterTransitionEnd:m,attributes:h,...g}=n,y=ne({name:"FloatingIndicator",classes:Pp,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:h,vars:l,varsResolver:uw}),x=v.useRef(null),{initialized:b,hidden:w}=cw({target:c,parent:u,ref:x,displayAfterTransitionEnd:m}),C=$e(t,x);return!c||!u?null:p.jsx(W,{ref:C,mod:[{initialized:b,hidden:w},f],...y("root"),...g})});Dl.displayName="@mantine/core/FloatingIndicator";Dl.classes=Pp;function Rp({open:e,close:t,openDelay:n,closeDelay:o}){const r=v.useRef(-1),s=v.useRef(-1),a=()=>{window.clearTimeout(r.current),window.clearTimeout(s.current)},i=()=>{a(),n===0||n===void 0?e():r.current=window.setTimeout(e,n)},l=()=>{a(),o===0||o===void 0?t():s.current=window.setTimeout(t,o)};return v.useEffect(()=>a,[]),{openDropdown:i,closeDropdown:l}}const[dw,Nl]=nt("Accordion component was not found in the tree");var hr={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};function Xn({style:e,size:t=16,...n}){return p.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:K(t),height:K(t),display:"block"},...n,children:p.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"})})}Xn.displayName="@mantine/core/AccordionChevron";const[fw,Dp]=nt("Accordion.Item component was not found in the tree"),El=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,chevron:i,icon:l,onClick:c,onKeyDown:u,children:d,disabled:f,mod:m,...h}=H("AccordionControl",null,e),{value:g}=Dp(),y=Nl(),x=y.isItemActive(g),b=typeof y.order=="number",w=`h${y.order}`,C=p.jsxs(Xe,{...h,...y.getStyles("control",{className:o,classNames:n,style:r,styles:s,variant:y.variant}),unstyled:y.unstyled,mod:["accordion-control",{active:x,"chevron-position":y.chevronPosition,disabled:f},m],ref:t,onClick:S=>{c?.(S),y.onChange(g)},type:"button",disabled:f,"aria-expanded":x,"aria-controls":y.getRegionId(g),id:y.getControlId(g),onKeyDown:ws({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:y.loop,orientation:"vertical",onKeyDown:u}),children:[p.jsx(W,{component:"span",mod:{rotate:!y.disableChevronRotation&&x,position:y.chevronPosition},...y.getStyles("chevron",{classNames:n,styles:s}),children:i||y.chevron}),p.jsx("span",{...y.getStyles("label",{classNames:n,styles:s}),children:d}),l&&p.jsx(W,{component:"span",mod:{"chevron-position":y.chevronPosition},...y.getStyles("icon",{classNames:n,styles:s}),children:l})]});return b?p.jsx(w,{...y.getStyles("itemTitle",{classNames:n,styles:s}),children:C}):C});El.displayName="@mantine/core/AccordionControl";El.classes=hr;const Tl=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,value:i,mod:l,...c}=H("AccordionItem",null,e),u=Nl();return p.jsx(fw,{value:{value:i},children:p.jsx(W,{ref:t,mod:[{active:u.isItemActive(i)},l],...u.getStyles("item",{className:o,classNames:n,styles:s,style:r,variant:u.variant}),...c})})});Tl.displayName="@mantine/core/AccordionItem";Tl.classes=hr;const kl=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,children:i,...l}=H("AccordionPanel",null,e),{value:c}=Dp(),u=Nl();return p.jsx(Qi,{ref:t,...u.getStyles("panel",{className:o,classNames:n,style:r,styles:s}),...l,in:u.isItemActive(c),transitionDuration:u.transitionDuration??200,role:"region",id:u.getRegionId(c),"aria-labelledby":u.getControlId(c),children:p.jsx("div",{...u.getStyles("content",{classNames:n,styles:s}),children:i})})});kl.displayName="@mantine/core/AccordionPanel";kl.classes=hr;const pw={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevronSize:"auto",chevronIconSize:16},mw=(e,{transitionDuration:t,chevronSize:n,radius:o})=>({root:{"--accordion-transition-duration":t===void 0?void 0:`${t}ms`,"--accordion-chevron-size":n===void 0?void 0:K(n),"--accordion-radius":o===void 0?void 0:Ee(o)}});function un(e){const t=H("Accordion",pw,e),{classNames:n,className:o,style:r,styles:s,unstyled:a,vars:i,children:l,multiple:c,value:u,defaultValue:d,onChange:f,id:m,loop:h,transitionDuration:g,disableChevronRotation:y,chevronPosition:x,chevronSize:b,order:w,chevron:C,variant:S,radius:N,chevronIconSize:D,attributes:k,...I}=t,A=Qe(m),[F,z]=He({value:u,defaultValue:d,finalValue:c?[]:null,onChange:f}),V=R=>Array.isArray(F)?F.includes(R):R===F,$=R=>{const E=Array.isArray(F)?F.includes(R)?F.filter(P=>P!==R):[...F,R]:R===F?null:R;z(E)},O=ne({name:"Accordion",classes:hr,props:t,className:o,style:r,classNames:n,styles:s,unstyled:a,attributes:k,vars:i,varsResolver:mw});return p.jsx(dw,{value:{isItemActive:V,onChange:$,getControlId:is(`${A}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:is(`${A}-panel`,"Accordion.Item component was rendered with invalid value or without value"),chevron:C===null?null:C||p.jsx(Xn,{size:D}),transitionDuration:g,disableChevronRotation:y,chevronPosition:x,order:w,loop:h,getStyles:O,variant:S,unstyled:a},children:p.jsx(W,{...O("root"),id:A,...I,variant:S,"data-accordion":!0,children:l})})}const hw=e=>e;un.extend=hw;un.withProps=Cf(un);un.classes=hr;un.displayName="@mantine/core/Accordion";un.Item=Tl;un.Panel=kl;un.Control=El;un.Chevron=Xn;var Np={root:"m_7f854edf"};const vw={position:{bottom:0,right:0},zIndex:st("modal"),withinPortal:!0},gw=(e,{zIndex:t,position:n})=>({root:{"--affix-z-index":t?.toString(),"--affix-top":ze(n?.top),"--affix-left":ze(n?.left),"--affix-bottom":ze(n?.bottom),"--affix-right":ze(n?.right)}}),Ep=U((e,t)=>{const n=H("Affix",vw,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,portalProps:c,zIndex:u,withinPortal:d,position:f,attributes:m,...h}=n,g=ne({name:"Affix",classes:Np,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:m,vars:l,varsResolver:gw});return p.jsx(Jt,{...c,withinPortal:d,children:p.jsx(W,{ref:t,...g("root"),...h})})});Ep.classes=Np;Ep.displayName="@mantine/core/Affix";var Tp={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const yw=(e,{radius:t,color:n,variant:o,autoContrast:r})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:o||"light",autoContrast:r});return{root:{"--alert-radius":t===void 0?void 0:Ee(t),"--alert-bg":n||o?s.background:void 0,"--alert-color":s.color,"--alert-bd":n||o?s.border:void 0}}},kp=U((e,t)=>{const n=H("Alert",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,radius:c,color:u,title:d,children:f,id:m,icon:h,withCloseButton:g,onClose:y,closeButtonLabel:x,variant:b,autoContrast:w,role:C,attributes:S,...N}=n,D=ne({name:"Alert",classes:Tp,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:S,vars:l,varsResolver:yw}),k=Qe(m),I=d&&`${k}-title`||void 0,A=`${k}-body`;return p.jsx(W,{id:k,...D("root",{variant:b}),variant:b,ref:t,role:C||"alert",...N,"aria-describedby":f?A:void 0,"aria-labelledby":d?I:void 0,children:p.jsxs("div",{...D("wrapper"),children:[h&&p.jsx("div",{...D("icon"),children:h}),p.jsxs("div",{...D("body"),children:[d&&p.jsx("div",{...D("title"),"data-with-close-button":g||void 0,children:p.jsx("span",{id:I,...D("label"),children:d})}),f&&p.jsx("div",{id:A,...D("message"),"data-variant":b,children:f})]}),g&&p.jsx(Tn,{...D("closeButton"),onClick:y,variant:"transparent",size:16,iconSize:16,"aria-label":x,unstyled:i})]})})});kp.classes=Tp;kp.displayName="@mantine/core/Alert";var $p={root:"m_b6d8b162"};function bw(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const xw={inherit:!1},ww=(e,{variant:t,lineClamp:n,gradient:o,size:r,color:s})=>({root:{"--text-fz":Ge(r),"--text-lh":Qd(r),"--text-gradient":t==="gradient"?xi(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":s?Ae(s,e):void 0}}),vr=et((e,t)=>{const n=H("Text",xw,e),{lineClamp:o,truncate:r,inline:s,inherit:a,gradient:i,span:l,__staticSelector:c,vars:u,className:d,style:f,classNames:m,styles:h,unstyled:g,variant:y,mod:x,size:b,attributes:w,...C}=n,S=ne({name:["Text",c],props:n,classes:$p,className:d,style:f,classNames:m,styles:h,unstyled:g,attributes:w,vars:u,varsResolver:ww});return p.jsx(W,{...S("root",{focusable:!0}),ref:t,component:l?"span":"p",variant:y,mod:[{"data-truncate":bw(r),"data-line-clamp":typeof o=="number","data-inline":s,"data-inherit":a},x],size:b,...C})});vr.classes=$p;vr.displayName="@mantine/core/Text";var jp={root:"m_849cf0da"};const Cw={underline:"hover"},Mp=et((e,t)=>{const{underline:n,className:o,unstyled:r,mod:s,...a}=H("Anchor",Cw,e);return p.jsx(vr,{component:"a",ref:t,className:Ze({[jp.root]:!r},o),...a,mod:[{underline:n},s],__staticSelector:"Anchor",unstyled:r})});Mp.classes=jp;Mp.displayName="@mantine/core/Anchor";const[Sw,Ao]=nt("AppShell was not found in tree");var kn={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const $l=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,unstyled:a,vars:i,withBorder:l,zIndex:c,mod:u,...d}=H("AppShellAside",null,e),f=Ao();return f.disabled?null:p.jsx(W,{component:"aside",ref:t,mod:[{"with-border":l??f.withBorder},u],...f.getStyles("aside",{className:Ze({[Un.classNames.zeroRight]:f.offsetScrollbars},o),classNames:n,styles:s,style:r}),...d,__vars:{"--app-shell-aside-z-index":`calc(${c??f.zIndex} + 1)`}})});$l.classes=kn;$l.displayName="@mantine/core/AppShellAside";const jl=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,unstyled:a,vars:i,withBorder:l,zIndex:c,mod:u,...d}=H("AppShellFooter",null,e),f=Ao();return f.disabled?null:p.jsx(W,{component:"footer",ref:t,mod:[{"with-border":l??f.withBorder},u],...f.getStyles("footer",{className:Ze({[Un.classNames.zeroRight]:f.offsetScrollbars},o),classNames:n,styles:s,style:r}),...d,__vars:{"--app-shell-footer-z-index":(c??f.zIndex)?.toString()}})});jl.classes=kn;jl.displayName="@mantine/core/AppShellFooter";const Ml=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,unstyled:a,vars:i,withBorder:l,zIndex:c,mod:u,...d}=H("AppShellHeader",null,e),f=Ao();return f.disabled?null:p.jsx(W,{component:"header",ref:t,mod:[{"with-border":l??f.withBorder},u],...f.getStyles("header",{className:Ze({[Un.classNames.zeroRight]:f.offsetScrollbars},o),classNames:n,styles:s,style:r}),...d,__vars:{"--app-shell-header-z-index":(c??f.zIndex)?.toString()}})});Ml.classes=kn;Ml.displayName="@mantine/core/AppShellHeader";const Il=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,...i}=H("AppShellMain",null,e),l=Ao();return p.jsx(W,{component:"main",ref:t,...l.getStyles("main",{className:o,style:r,classNames:n,styles:s}),...i})});Il.classes=kn;Il.displayName="@mantine/core/AppShellMain";function gr(e){return typeof e=="object"?e.base:e}function yr(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function br(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function _w({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:o,theme:r,mode:s}){const a=o?.width,i="translateX(var(--app-shell-aside-width))",l="translateX(calc(var(--app-shell-aside-width) * -1))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(n[o?.breakpoint]=n[o?.breakpoint]||{},s==="fixed"?(n[o?.breakpoint]["--app-shell-aside-width"]="100%",n[o?.breakpoint]["--app-shell-aside-offset"]="0px"):(n[o?.breakpoint]["--app-shell-aside-width"]="0px",n[o?.breakpoint]["--app-shell-aside-offset"]="0px")),yr(a)){const c=K(gr(a));e["--app-shell-aside-width"]=c,e["--app-shell-aside-offset"]=c}if(br(a)&&(typeof a.base<"u"&&(e["--app-shell-aside-width"]=K(a.base),e["--app-shell-aside-offset"]=K(a.base)),Ve(a).forEach(c=>{c!=="base"&&(t[c]=t[c]||{},t[c]["--app-shell-aside-width"]=K(a[c]),t[c]["--app-shell-aside-offset"]=K(a[c]))})),o?.breakpoint&&s==="static"&&(t[o.breakpoint]=t[o.breakpoint]||{},t[o.breakpoint]["--app-shell-aside-position"]="sticky",t[o.breakpoint]["--app-shell-aside-grid-row"]="2",t[o.breakpoint]["--app-shell-aside-grid-column"]="3",t[o.breakpoint]["--app-shell-main-column-end"]="3"),o?.collapsed?.desktop){const c=o.breakpoint;t[c]=t[c]||{},t[c]["--app-shell-aside-transform"]=i,t[c]["--app-shell-aside-transform-rtl"]=l,s==="fixed"?t[c]["--app-shell-aside-offset"]="0px !important":(t[c]["--app-shell-aside-width"]="0px",t[c]["--app-shell-aside-display"]="none",t[c]["--app-shell-main-column-end"]="-1"),t[c]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if(o?.collapsed?.mobile){const c=Wi(o.breakpoint,r.breakpoints)-.1;n[c]=n[c]||{},s==="fixed"?(n[c]["--app-shell-aside-width"]="100%",n[c]["--app-shell-aside-offset"]="0px"):n[c]["--app-shell-aside-width"]="0px",n[c]["--app-shell-aside-transform"]=i,n[c]["--app-shell-aside-transform-rtl"]=l,n[c]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function Pw({baseStyles:e,minMediaStyles:t,footer:n,mode:o}){const r=n?.height,s="translateY(var(--app-shell-footer-height))",a=o==="static"?!0:n?.offset??!0;if(o==="static"&&n&&(e["--app-shell-footer-position"]="sticky",e["--app-shell-footer-grid-column"]="1 / -1",e["--app-shell-footer-grid-row"]="3"),yr(r)){const i=K(gr(r));e["--app-shell-footer-height"]=i,a&&(e["--app-shell-footer-offset"]=i)}br(r)&&(typeof r.base<"u"&&(e["--app-shell-footer-height"]=K(r.base),a&&(e["--app-shell-footer-offset"]=K(r.base))),Ve(r).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-footer-height"]=K(r[i]),a&&(t[i]["--app-shell-footer-offset"]=K(r[i])))})),n?.collapsed&&(e["--app-shell-footer-transform"]=s,o==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}function Rw({baseStyles:e,minMediaStyles:t,header:n,mode:o}){const r=n?.height,s="translateY(calc(var(--app-shell-header-height) * -1))",a=o==="static"?!0:n?.offset??!0;if(o==="static"&&n&&(e["--app-shell-header-position"]="sticky",e["--app-shell-header-grid-column"]="1 / -1",e["--app-shell-header-grid-row"]="1"),yr(r)){const i=K(gr(r));e["--app-shell-header-height"]=i,a&&(e["--app-shell-header-offset"]=i)}br(r)&&(typeof r.base<"u"&&(e["--app-shell-header-height"]=K(r.base),a&&(e["--app-shell-header-offset"]=K(r.base))),Ve(r).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-header-height"]=K(r[i]),a&&(t[i]["--app-shell-header-offset"]=K(r[i])))})),n?.collapsed&&(e["--app-shell-header-transform"]=s,o==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}function Dw({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:o,theme:r,mode:s}){const a=o?.width,i="translateX(calc(var(--app-shell-navbar-width) * -1))",l="translateX(var(--app-shell-navbar-width))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(n[o?.breakpoint]=n[o?.breakpoint]||{},n[o?.breakpoint]["--app-shell-navbar-offset"]="0px",n[o?.breakpoint]["--app-shell-navbar-width"]="100%",s==="static"&&(n[o?.breakpoint]["--app-shell-navbar-grid-width"]="0px")),yr(a)){const c=K(gr(a));e["--app-shell-navbar-width"]=c,e["--app-shell-navbar-offset"]=c,s==="static"&&(e["--app-shell-navbar-grid-width"]=c)}if(br(a)&&(typeof a.base<"u"&&(e["--app-shell-navbar-width"]=K(a.base),e["--app-shell-navbar-offset"]=K(a.base),s==="static"&&(e["--app-shell-navbar-grid-width"]=K(a.base))),Ve(a).forEach(c=>{c!=="base"&&(t[c]=t[c]||{},t[c]["--app-shell-navbar-width"]=K(a[c]),t[c]["--app-shell-navbar-offset"]=K(a[c]),s==="static"&&(t[c]["--app-shell-navbar-grid-width"]=K(a[c])))})),o?.breakpoint&&s==="static"&&(t[o.breakpoint]=t[o.breakpoint]||{},t[o.breakpoint]["--app-shell-navbar-position"]="sticky",t[o.breakpoint]["--app-shell-navbar-grid-row"]="2",t[o.breakpoint]["--app-shell-navbar-grid-column"]="1",t[o.breakpoint]["--app-shell-main-column-start"]="2"),o?.collapsed?.desktop){const c=o.breakpoint;t[c]=t[c]||{},t[c]["--app-shell-navbar-transform"]=i,t[c]["--app-shell-navbar-transform-rtl"]=l,s==="fixed"?t[c]["--app-shell-navbar-offset"]="0px !important":(t[c]["--app-shell-navbar-width"]="0px",t[c]["--app-shell-navbar-display"]="none",t[c]["--app-shell-main-column-start"]="1")}if(o?.collapsed?.mobile){const c=Wi(o.breakpoint,r.breakpoints)-.1;n[c]=n[c]||{},n[c]["--app-shell-navbar-width"]="100%",n[c]["--app-shell-navbar-offset"]="0px",s==="static"&&(n[c]["--app-shell-navbar-grid-width"]="0px"),n[c]["--app-shell-navbar-transform"]=i,n[c]["--app-shell-navbar-transform-rtl"]=l}}function ii(e){return Number(e)===0?"0px":ze(e)}function Nw({padding:e,baseStyles:t,minMediaStyles:n}){yr(e)&&(t["--app-shell-padding"]=ii(gr(e))),br(e)&&(e.base&&(t["--app-shell-padding"]=ii(e.base)),Ve(e).forEach(o=>{o!=="base"&&(n[o]=n[o]||{},n[o]["--app-shell-padding"]=ii(e[o]))}))}function Ew({navbar:e,header:t,footer:n,aside:o,padding:r,theme:s,mode:a}){const i={},l={},c={};a==="static"&&(c["--app-shell-main-grid-column"]="1 / -1",c["--app-shell-main-grid-row"]="2"),Dw({baseStyles:c,minMediaStyles:i,maxMediaStyles:l,navbar:e,theme:s,mode:a}),_w({baseStyles:c,minMediaStyles:i,maxMediaStyles:l,aside:o,theme:s,mode:a}),Rw({baseStyles:c,minMediaStyles:i,header:t,mode:a}),Pw({baseStyles:c,minMediaStyles:i,footer:n,mode:a}),Nw({baseStyles:c,minMediaStyles:i,padding:r});const u=sr(Ve(i),s.breakpoints).map(m=>({query:`(min-width: ${as(m.px)})`,styles:i[m.value]})),d=sr(Ve(l),s.breakpoints).map(m=>({query:`(max-width: ${as(m.px)})`,styles:l[m.value]})),f=[...u,...d];return{baseStyles:c,media:f}}function Tw({navbar:e,header:t,aside:n,footer:o,padding:r,mode:s,selector:a}){const i=Ke(),l=dn(),{media:c,baseStyles:u}=Ew({navbar:e,header:t,footer:o,aside:n,padding:r,theme:i,mode:s});return p.jsx(Qn,{media:c,styles:u,selector:a||l.cssVariablesSelector})}const Ol=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,unstyled:a,vars:i,withBorder:l,zIndex:c,mod:u,...d}=H("AppShellNavbar",null,e),f=Ao();return f.disabled?null:p.jsx(W,{component:"nav",ref:t,mod:[{"with-border":l??f.withBorder},u],...f.getStyles("navbar",{className:o,classNames:n,styles:s,style:r}),...d,__vars:{"--app-shell-navbar-z-index":`calc(${c??f.zIndex} + 1)`}})});Ol.classes=kn;Ol.displayName="@mantine/core/AppShellNavbar";const Al=et((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,grow:i,mod:l,...c}=H("AppShellSection",null,e),u=Ao();return p.jsx(W,{ref:t,mod:[{grow:i},l],...u.getStyles("section",{className:o,style:r,classNames:n,styles:s}),...c})});Al.classes=kn;Al.displayName="@mantine/core/AppShellSection";function kw({transitionDuration:e,disabled:t}){const[n,o]=v.useState(!0),r=v.useRef(-1),s=v.useRef(-1);return _o("resize",()=>{o(!0),clearTimeout(r.current),r.current=window.setTimeout(()=>v.startTransition(()=>{o(!1)}),200)}),It(()=>{o(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>v.startTransition(()=>{o(!1)}),e||0)},[t,e]),n}const $w={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:st("app"),mode:"fixed"},jw=(e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}}),$n=U((e,t)=>{const n=H("AppShell",$w,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,navbar:c,withBorder:u,padding:d,transitionDuration:f,transitionTimingFunction:m,header:h,zIndex:g,layout:y,disabled:x,aside:b,footer:w,offsetScrollbars:C=!0,mode:S,mod:N,attributes:D,id:k,...I}=n,A=ne({name:"AppShell",classes:kn,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:D,vars:l,varsResolver:jw}),F=kw({disabled:x,transitionDuration:f}),z=Qe(k);return p.jsxs(Sw,{value:{getStyles:A,withBorder:u,zIndex:g,disabled:x,offsetScrollbars:C,mode:S},children:[p.jsx(Tw,{navbar:c,header:h,aside:b,footer:w,padding:d,mode:S,selector:S==="static"?`#${z}`:void 0}),p.jsx(W,{ref:t,...A("root"),mod:[{resizing:F,layout:y,disabled:x,mode:S},N],id:z,...I})]})});$n.classes=kn;$n.displayName="@mantine/core/AppShell";$n.Navbar=Ol;$n.Header=Ml;$n.Main=Il;$n.Aside=$l;$n.Footer=jl;$n.Section=Al;function Ip(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(t=>Ip(t))}:e}function Hs(e){return e?e.map(t=>Ip(t)):[]}function xr(e){return e.reduce((t,n)=>"group"in n?{...t,...xr(n.items)}:(t[n.value]=n,t),{})}var vt={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 Mw={error:null},Iw=(e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":he(t,"combobox-chevron-size"),"--combobox-chevron-color":n?Ae(n,e):void 0}}),Ll=U((e,t)=>{const n=H("ComboboxChevron",Mw,e),{size:o,error:r,style:s,className:a,classNames:i,styles:l,unstyled:c,vars:u,mod:d,...f}=n,m=ne({name:"ComboboxChevron",classes:vt,props:n,style:s,className:a,classNames:i,styles:l,unstyled:c,vars:u,varsResolver:Iw,rootSelector:"chevron"});return p.jsx(W,{component:"svg",...f,...m("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},d],ref:t,children:p.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"})})});Ll.classes=vt;Ll.displayName="@mantine/core/ComboboxChevron";const[Ow,Et]=nt("Combobox component was not found in tree"),Op=v.forwardRef(({size:e,onMouseDown:t,onClick:n,onClear:o,...r},s)=>p.jsx(je.ClearButton,{ref:s,tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:a=>{a.preventDefault(),t?.(a)},onClick:a=>{o(),n?.(a)}}));Op.displayName="@mantine/core/ComboboxClearButton";const Fl=U((e,t)=>{const{classNames:n,styles:o,className:r,style:s,hidden:a,...i}=H("ComboboxDropdown",null,e),l=Et();return p.jsx(Be.Dropdown,{...i,ref:t,role:"presentation","data-hidden":a||void 0,...l.getStyles("dropdown",{className:r,style:s,classNames:n,styles:o})})});Fl.classes=vt;Fl.displayName="@mantine/core/ComboboxDropdown";const Aw={refProp:"ref"},Ap=U((e,t)=>{const{children:n,refProp:o}=H("ComboboxDropdownTarget",Aw,e);if(Et(),!xs(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return p.jsx(Be.Target,{ref:t,refProp:o,children:n})});Ap.displayName="@mantine/core/ComboboxDropdownTarget";const zl=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,...i}=H("ComboboxEmpty",null,e),l=Et();return p.jsx(W,{ref:t,...l.getStyles("empty",{className:o,classNames:n,styles:s,style:r}),...i})});zl.classes=vt;zl.displayName="@mantine/core/ComboboxEmpty";function Bl({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:o,targetType:r,autoComplete:s}){const a=Et(),[i,l]=v.useState(null),c=d=>{if(e?.(d),!a.readOnly&&t){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectNextOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectPreviousOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const f=a.store.getSelectedOptionIndex();a.store.dropdownOpened&&f!==-1?(d.preventDefault(),a.store.clickSelectedOption()):r==="button"&&(d.preventDefault(),a.store.openDropdown("keyboard"))}d.key==="Escape"&&a.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&r==="button"&&(d.preventDefault(),a.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":o?!!(a.store.listId&&a.store.dropdownOpened):void 0,"aria-controls":a.store.dropdownOpened&&a.store.listId?a.store.listId:void 0,"aria-activedescendant":a.store.dropdownOpened&&i||void 0,autoComplete:s,"data-expanded":a.store.dropdownOpened||void 0,"data-mantine-stop-propagation":a.store.dropdownOpened||void 0}:{},onKeyDown:c}}const Lw={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Lp=U((e,t)=>{const{children:n,refProp:o,withKeyboardNavigation:r,withAriaAttributes:s,withExpandedAttribute:a,targetType:i,autoComplete:l,...c}=H("ComboboxEventsTarget",Lw,e),u=Nn(n);if(!u)throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=Et(),f=Bl({targetType:i,withAriaAttributes:s,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,autoComplete:l});return v.cloneElement(u,{...f,...c,[o]:$e(t,d.store.targetRef,_s(u))})});Lp.displayName="@mantine/core/ComboboxEventsTarget";const Vl=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,...i}=H("ComboboxFooter",null,e),l=Et();return p.jsx(W,{ref:t,...l.getStyles("footer",{className:o,classNames:n,style:r,styles:s}),...i,onMouseDown:c=>{c.preventDefault()}})});Vl.classes=vt;Vl.displayName="@mantine/core/ComboboxFooter";const Hl=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,children:i,label:l,id:c,...u}=H("ComboboxGroup",null,e),d=Et(),f=Qe(c);return p.jsxs(W,{ref:t,role:"group","aria-labelledby":l?f:void 0,...d.getStyles("group",{className:o,classNames:n,style:r,styles:s}),...u,children:[l&&p.jsx("div",{id:f,...d.getStyles("groupLabel",{classNames:n,styles:s}),children:l}),i]})});Hl.classes=vt;Hl.displayName="@mantine/core/ComboboxGroup";const Yl=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,...i}=H("ComboboxHeader",null,e),l=Et();return p.jsx(W,{ref:t,...l.getStyles("header",{className:o,classNames:n,style:r,styles:s}),...i,onMouseDown:c=>{c.preventDefault()}})});Yl.classes=vt;Yl.displayName="@mantine/core/ComboboxHeader";function Fp({value:e,valuesDivider:t=",",...n}){return p.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...n})}Fp.displayName="@mantine/core/ComboboxHiddenInput";const Wl=U((e,t)=>{const n=H("ComboboxOption",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,onClick:l,id:c,active:u,onMouseDown:d,onMouseOver:f,disabled:m,selected:h,mod:g,...y}=n,x=Et(),b=v.useId(),w=c||b;return p.jsx(W,{...x.getStyles("option",{className:r,classNames:o,styles:a,style:s}),...y,ref:t,id:w,mod:["combobox-option",{"combobox-active":u,"combobox-disabled":m,"combobox-selected":h},g],role:"option",onClick:C=>{m?C.preventDefault():(x.onOptionSubmit?.(n.value,n),l?.(C))},onMouseDown:C=>{C.preventDefault(),d?.(C)},onMouseOver:C=>{x.resetSelectionOnOptionHover&&x.store.resetSelectedOption(),f?.(C)}})});Wl.classes=vt;Wl.displayName="@mantine/core/ComboboxOption";const Gl=U((e,t)=>{const n=H("ComboboxOptions",null,e),{classNames:o,className:r,style:s,styles:a,id:i,onMouseDown:l,labelledBy:c,...u}=n,d=Et(),f=Qe(i);return v.useEffect(()=>{d.store.setListId(f)},[f]),p.jsx(W,{ref:t,...d.getStyles("options",{className:r,style:s,classNames:o,styles:a}),...u,id:f,role:"listbox","aria-labelledby":c,onMouseDown:m=>{m.preventDefault(),l?.(m)}})});Gl.classes=vt;Gl.displayName="@mantine/core/ComboboxOptions";const Fw={withAriaAttributes:!0,withKeyboardNavigation:!0},Kl=U((e,t)=>{const n=H("ComboboxSearch",Fw,e),{classNames:o,styles:r,unstyled:s,vars:a,withAriaAttributes:i,onKeyDown:l,withKeyboardNavigation:c,size:u,...d}=n,f=Et(),m=f.getStyles("search"),h=Bl({targetType:"input",withAriaAttributes:i,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return p.jsx(je,{ref:$e(t,f.store.searchRef),classNames:[{input:m.className},o],styles:[{input:m.style},r],size:u||f.size,...h,...d,__staticSelector:"Combobox"})});Kl.classes=vt;Kl.displayName="@mantine/core/ComboboxSearch";const zw={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},zp=U((e,t)=>{const{children:n,refProp:o,withKeyboardNavigation:r,withAriaAttributes:s,withExpandedAttribute:a,targetType:i,autoComplete:l,...c}=H("ComboboxTarget",zw,e),u=Nn(n);if(!u)throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=Et(),f=Bl({targetType:i,withAriaAttributes:s,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,autoComplete:l}),m=v.cloneElement(u,{...f,...c});return p.jsx(Be.Target,{ref:$e(t,d.store.targetRef),children:m})});zp.displayName="@mantine/core/ComboboxTarget";function Bw(e,t,n){for(let o=e-1;o>=0;o-=1)if(!t[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=t.length-1;o>-1;o-=1)if(!t[o].hasAttribute("data-combobox-disabled"))return o}return e}function Vw(e,t,n){for(let o=e+1;o{i||(l(!0),r?.(R))},[l,r,i]),x=v.useCallback((R="unknown")=>{i&&(l(!1),o?.(R))},[l,o,i]),b=v.useCallback((R="unknown")=>{i?x(R):y(R)},[x,y,i]),w=v.useCallback(()=>{const R=xn(f.current),E=qr(`#${c.current} [data-combobox-selected]`,R);E?.removeAttribute("data-combobox-selected"),E?.removeAttribute("aria-selected")},[]),C=v.useCallback(R=>{const E=xn(f.current),P=qr(`#${c.current}`,E),j=P?Cn("[data-combobox-option]",P):null;if(!j)return null;const M=R>=j.length?0:R<0?j.length-1:R;return u.current=M,j?.[M]&&!j[M].hasAttribute("data-combobox-disabled")?(w(),j[M].setAttribute("data-combobox-selected","true"),j[M].setAttribute("aria-selected","true"),j[M].scrollIntoView({block:"nearest",behavior:a}),j[M].id):null},[a,w]),S=v.useCallback(()=>{const R=xn(f.current),E=qr(`#${c.current} [data-combobox-active]`,R);if(E){const j=Cn(`#${c.current} [data-combobox-option]`,R).findIndex(M=>M===E);return C(j)}return C(0)},[C]),N=v.useCallback(()=>{const R=xn(f.current),E=Cn(`#${c.current} [data-combobox-option]`,R);return C(Vw(u.current,E,s))},[C,s]),D=v.useCallback(()=>{const R=xn(f.current),E=Cn(`#${c.current} [data-combobox-option]`,R);return C(Bw(u.current,E,s))},[C,s]),k=v.useCallback(()=>{const R=xn(f.current),E=Cn(`#${c.current} [data-combobox-option]`,R);return C(Hw(E))},[C]),I=v.useCallback((R="selected",E)=>{g.current=window.setTimeout(()=>{const P=xn(f.current),j=Cn(`#${c.current} [data-combobox-option]`,P),M=j.findIndex(_=>_.hasAttribute(`data-combobox-${R}`));u.current=M,E?.scrollIntoView&&j[M]?.scrollIntoView({block:"nearest",behavior:a})},0)},[]),A=v.useCallback(()=>{u.current=-1,w()},[w]),F=v.useCallback(()=>{const R=xn(f.current);Cn(`#${c.current} [data-combobox-option]`,R)?.[u.current]?.click()},[]),z=v.useCallback(R=>{c.current=R},[]),V=v.useCallback(()=>{m.current=window.setTimeout(()=>d.current?.focus(),0)},[]),$=v.useCallback(()=>{h.current=window.setTimeout(()=>f.current?.focus(),0)},[]),O=v.useCallback(()=>u.current,[]);return v.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(h.current),window.clearTimeout(g.current)},[]),{dropdownOpened:i,openDropdown:y,closeDropdown:x,toggleDropdown:b,selectedOptionIndex:u.current,getSelectedOptionIndex:O,selectOption:C,selectFirstOption:k,selectActiveOption:S,selectNextOption:N,selectPreviousOption:D,resetSelectedOption:A,updateSelectedOptionIndex:I,listId:c.current,setListId:z,clickSelectedOption:F,searchRef:d,focusSearchInput:V,targetRef:f,focusTarget:$}}const Yw={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},Ww=(e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":Ge(t),"--combobox-option-padding":he(t,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:K(n),"--combobox-option-fz":Ge(t),"--combobox-option-padding":he(t,"combobox-option-padding")}});function Ce(e){const t=H("Combobox",Yw,e),{classNames:n,styles:o,unstyled:r,children:s,store:a,vars:i,onOptionSubmit:l,onClose:c,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:m,readOnly:h,attributes:g,...y}=t,x=wr(),b=a||x,w=ne({name:m||"Combobox",classes:vt,props:t,classNames:n,styles:o,unstyled:r,attributes:g,vars:i,varsResolver:Ww}),C=()=>{c?.(),b.closeDropdown()};return p.jsx(Ow,{value:{getStyles:w,store:b,onOptionSubmit:l,size:u,resetSelectionOnOptionHover:f,readOnly:h},children:p.jsx(Be,{opened:b.dropdownOpened,preventPositionChangeWhenVisible:!1,...y,onChange:S=>!S&&C(),withRoles:!1,unstyled:r,children:s})})}const Gw=e=>e;Ce.extend=Gw;Ce.classes=vt;Ce.displayName="@mantine/core/Combobox";Ce.Target=zp;Ce.Dropdown=Fl;Ce.Options=Gl;Ce.Option=Wl;Ce.Search=Kl;Ce.Empty=zl;Ce.Chevron=Ll;Ce.Footer=Vl;Ce.Header=Yl;Ce.EventsTarget=Lp;Ce.DropdownTarget=Ap;Ce.Group=Hl;Ce.ClearButton=Op;Ce.HiddenInput=Fp;var Bp={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const Vp=Bp,Ys=v.forwardRef(({__staticSelector:e,__stylesApiProps:t,className:n,classNames:o,styles:r,unstyled:s,children:a,label:i,description:l,id:c,disabled:u,error:d,size:f,labelPosition:m="left",bodyElement:h="div",labelElement:g="label",variant:y,style:x,vars:b,mod:w,attributes:C,...S},N)=>{const D=ne({name:e,props:t,className:n,style:x,classes:Bp,classNames:o,styles:r,unstyled:s,attributes:C});return p.jsx(W,{...D("root"),ref:N,__vars:{"--label-fz":Ge(f),"--label-lh":he(f,"label-lh")},mod:[{"label-position":m},w],variant:y,size:f,...S,children:p.jsxs(W,{component:h,htmlFor:h==="label"?c:void 0,...D("body"),children:[a,p.jsxs("div",{...D("labelWrapper"),"data-disabled":u||void 0,children:[i&&p.jsx(W,{component:g,htmlFor:g==="label"?c:void 0,...D("label"),"data-disabled":u||void 0,children:i}),l&&p.jsx(je.Description,{size:f,__inheritStyles:!1,...D("description"),children:l}),d&&typeof d!="boolean"&&p.jsx(je.Error,{size:f,__inheritStyles:!1,...D("error"),children:d})]})]})})});Ys.displayName="@mantine/core/InlineInput";var Hp={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const Yp=v.createContext(null),Kw=Yp.Provider,Wp=()=>v.useContext(Yp),[Uw,qw]=Bt();var Gp={card:"m_26775b0a"};const Xw={withBorder:!0},Zw=(e,{radius:t})=>({card:{"--card-radius":Ee(t)}}),Ul=U((e,t)=>{const n=H("CheckboxCard",Xw,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,checked:c,mod:u,withBorder:d,value:f,onClick:m,defaultChecked:h,onChange:g,attributes:y,...x}=n,b=ne({name:"CheckboxCard",classes:Gp,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:y,vars:l,varsResolver:Zw,rootSelector:"card"}),w=Wp(),C=typeof c=="boolean"?c:w?w.value.includes(f||""):void 0,[S,N]=He({value:C,defaultValue:h,finalValue:!1,onChange:g});return p.jsx(Uw,{value:{checked:S},children:p.jsx(Xe,{ref:t,mod:[{"with-border":d,checked:S},u],...b("card"),...x,role:"checkbox","aria-checked":S,onClick:D=>{m?.(D),w?.onChange(f||""),N(!S)}})})});Ul.displayName="@mantine/core/CheckboxCard";Ul.classes=Gp;function ql({children:e,role:t}){const n=Oo();return n?p.jsx("div",{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):p.jsx(p.Fragment,{children:e})}const Xl=U((e,t)=>{const{value:n,defaultValue:o,onChange:r,size:s,wrapperProps:a,children:i,readOnly:l,disabled:c,...u}=H("CheckboxGroup",null,e),[d,f]=He({value:n,defaultValue:o,finalValue:[],onChange:r}),m=h=>{const g=typeof h=="string"?h:h.currentTarget.value;!l&&f(d.includes(g)?d.filter(y=>y!==g):[...d,g])};return p.jsx(Kw,{value:{value:d,onChange:m,size:s,disabled:c},children:p.jsx(je.Wrapper,{size:s,ref:t,...a,...u,labelElement:"div",__staticSelector:"CheckboxGroup",children:p.jsx(ql,{role:"group",children:i})})})});Xl.classes=je.Wrapper.classes;Xl.displayName="@mantine/core/CheckboxGroup";function Ws({size:e,style:t,...n}){const o=e!==void 0?{width:K(e),height:K(e),...t}:t;return p.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o,"aria-hidden":!0,...n,children:p.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 Kp({indeterminate:e,...t}){return e?p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...t,children:p.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):p.jsx(Ws,{...t})}var Up={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const Jw={icon:Kp,variant:"filled"},Qw=(e,{radius:t,color:n,size:o,iconColor:r,variant:s,autoContrast:a})=>{const i=Pt({color:n||e.primaryColor,theme:e}),l=i.isThemeColor&&i.shade===void 0?`var(--mantine-color-${i.color}-outline)`:i.color;return{indicator:{"--checkbox-size":he(o,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:Ee(t),"--checkbox-color":s==="outline"?l:Ae(n,e),"--checkbox-icon-color":r?Ae(r,e):En(a,e)?Qt({color:n,theme:e,autoContrast:a}):void 0}}},Zl=U((e,t)=>{const n=H("CheckboxIndicator",Jw,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,icon:c,indeterminate:u,radius:d,color:f,iconColor:m,autoContrast:h,checked:g,mod:y,variant:x,disabled:b,attributes:w,...C}=n,S=ne({name:"CheckboxIndicator",classes:Up,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:w,vars:l,varsResolver:Qw,rootSelector:"indicator"}),N=qw(),D=typeof g=="boolean"||typeof u=="boolean"?g||u:N?.checked||!1;return p.jsx(W,{ref:t,...S("indicator",{variant:x}),variant:x,mod:[{checked:D,disabled:b},y],...C,children:p.jsx(c,{indeterminate:u,...S("icon")})})});Zl.displayName="@mantine/core/CheckboxIndicator";Zl.classes=Up;const e1={labelPosition:"right",icon:Kp,variant:"filled"},t1=(e,{radius:t,color:n,size:o,iconColor:r,variant:s,autoContrast:a})=>{const i=Pt({color:n||e.primaryColor,theme:e}),l=i.isThemeColor&&i.shade===void 0?`var(--mantine-color-${i.color}-outline)`:i.color;return{root:{"--checkbox-size":he(o,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:Ee(t),"--checkbox-color":s==="outline"?l:Ae(n,e),"--checkbox-icon-color":r?Ae(r,e):En(a,e)?Qt({color:n,theme:e,autoContrast:a}):void 0}}},Cr=U((e,t)=>{const n=H("Checkbox",e1,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,color:c,label:u,id:d,size:f,radius:m,wrapperProps:h,checked:g,labelPosition:y,description:x,error:b,disabled:w,variant:C,indeterminate:S,icon:N,rootRef:D,iconColor:k,onChange:I,autoContrast:A,mod:F,attributes:z,...V}=n,$=Wp(),O=f||$?.size,R=ne({name:"Checkbox",props:n,classes:Hp,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:z,vars:l,varsResolver:t1}),{styleProps:E,rest:P}=fn(V),j=Qe(d),M={checked:$?.value.includes(P.value)??g,onChange:L=>{$?.onChange(L),I?.(L)},disabled:$?.disabled??w},_=v.useRef(null),T=t||_;return v.useEffect(()=>{T&&"current"in T&&T.current&&(T.current.indeterminate=S||!1,S?T.current.setAttribute("data-indeterminate","true"):T.current.removeAttribute("data-indeterminate"))},[S,T]),p.jsx(Ys,{...R("root"),__staticSelector:"Checkbox",__stylesApiProps:n,id:j,size:O,labelPosition:y,label:u,description:x,error:b,disabled:M.disabled,classNames:o,styles:a,unstyled:i,"data-checked":M.checked||g||void 0,variant:C,ref:D,mod:F,inert:P.inert,...E,...h,children:p.jsxs(W,{...R("inner"),mod:{"data-label-position":y},children:[p.jsx(W,{component:"input",id:j,ref:T,mod:{error:!!b},...R("input",{focusable:!0,variant:C}),...P,...M,inert:P.inert,type:"checkbox"}),p.jsx(N,{indeterminate:S,...R("icon")})]})})});Cr.classes={...Hp,...Vp};Cr.displayName="@mantine/core/Checkbox";Cr.Group=Xl;Cr.Indicator=Zl;Cr.Card=Ul;function Zn(e){return"group"in e}function qp({options:e,search:t,limit:n}){const o=t.trim().toLowerCase(),r=[];for(let s=0;s0)return!1;return!0}function Xp(e,t=new Set){if(Array.isArray(e))for(const n of e)if(Zn(n))Xp(n.items,t);else{if(typeof n.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof n.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(t.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function o1(e,t){return Array.isArray(e)?e.includes(t):e===t}function Zp({data:e,withCheckIcon:t,withAlignedLabels:n,value:o,checkIconPosition:r,unstyled:s,renderOption:a}){if(!Zn(e)){const l=o1(o,e.value),c=t&&(l?p.jsx(Ws,{className:vt.optionsDropdownCheckIcon}):n?p.jsx("div",{className:vt.optionsDropdownCheckPlaceholder}):null),u=p.jsxs(p.Fragment,{children:[r==="left"&&c,p.jsx("span",{children:e.label}),r==="right"&&c]});return p.jsx(Ce.Option,{value:e.value,disabled:e.disabled,className:Ze({[vt.optionsDropdownOption]:!s}),"data-reverse":r==="right"||void 0,"data-checked":l||void 0,"aria-selected":l,active:l,children:typeof a=="function"?a({option:e,checked:l}):u})}const i=e.items.map(l=>p.jsx(Zp,{data:l,value:o,unstyled:s,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:r,renderOption:a},l.value));return p.jsx(Ce.Group,{label:e.group,children:i})}function Gs({data:e,hidden:t,hiddenWhenEmpty:n,filter:o,search:r,limit:s,maxDropdownHeight:a,withScrollArea:i=!0,filterOptions:l=!0,withCheckIcon:c=!1,withAlignedLabels:u=!1,value:d,checkIconPosition:f,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:y,scrollAreaProps:x,"aria-label":b}){Xp(e);const C=typeof r=="string"?(o||qp)({options:e,search:l?r:"",limit:s??1/0}):e,S=n1(C),N=C.map(D=>p.jsx(Zp,{data:D,withCheckIcon:c,withAlignedLabels:u,value:d,checkIconPosition:f,unstyled:h,renderOption:y},Zn(D)?D.group:D.value));return p.jsx(Ce.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:p.jsxs(Ce.Options,{labelledBy:g,"aria-label":b,children:[i?p.jsx(Lt.Autosize,{mah:a??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...x,children:N}):N,S&&m&&p.jsx(Ce.Empty,{children:m})]})})}const Jp=U((e,t)=>{const n=H("Autocomplete",null,e),{classNames:o,styles:r,unstyled:s,vars:a,dropdownOpened:i,defaultDropdownOpened:l,onDropdownClose:c,onDropdownOpen:u,onFocus:d,onBlur:f,onClick:m,onChange:h,data:g,value:y,defaultValue:x,selectFirstOptionOnChange:b,selectFirstOptionOnDropdownOpen:w,onOptionSubmit:C,comboboxProps:S,readOnly:N,disabled:D,filter:k,limit:I,withScrollArea:A,maxDropdownHeight:F,size:z,id:V,renderOption:$,autoComplete:O,scrollAreaProps:R,onClear:E,clearButtonProps:P,error:j,clearable:M,rightSection:_,autoSelectOnBlur:T,openOnFocus:L=!0,attributes:B,...G}=n,q=Qe(V),X=Hs(g),le=xr(X),[J,ee]=He({value:y,defaultValue:x,finalValue:"",onChange:h}),ce=wr({opened:i,defaultOpened:l,onDropdownOpen:()=>{u?.(),w&&ce.selectFirstOption()},onDropdownClose:()=>{c?.(),setTimeout(ce.resetSelectedOption,0)}}),re=ie=>{ee(ie),ce.resetSelectedOption()},{resolvedClassNames:ae,resolvedStyles:pe}=pt({props:n,styles:r,classNames:o});v.useEffect(()=>{b&&ce.selectFirstOption()},[b,J]);const ge=p.jsx(Ce.ClearButton,{...P,onClear:()=>{re(""),E?.()}});return p.jsxs(Ce,{store:ce,__staticSelector:"Autocomplete",classNames:ae,styles:pe,unstyled:s,readOnly:N,size:z,attributes:B,keepMounted:T,onOptionSubmit:ie=>{C?.(ie),re(le[ie].label),ce.closeDropdown()},...S,children:[p.jsx(Ce.Target,{autoComplete:O,children:p.jsx(it,{ref:t,...G,size:z,__staticSelector:"Autocomplete",__clearSection:ge,__clearable:M&&!!J&&!D&&!N,rightSection:_,disabled:D,readOnly:N,value:J,error:j,onChange:ie=>{re(ie.currentTarget.value),ce.openDropdown(),b&&ce.selectFirstOption()},onFocus:ie=>{L&&ce.openDropdown(),d?.(ie)},onBlur:ie=>{T&&ce.clickSelectedOption(),ce.closeDropdown(),f?.(ie)},onClick:ie=>{ce.openDropdown(),m?.(ie)},classNames:ae,styles:pe,unstyled:s,attributes:B,id:q})}),p.jsx(Gs,{data:X,hidden:N||D,filter:k,search:J,limit:I,hiddenWhenEmpty:!0,withScrollArea:A,maxDropdownHeight:F,unstyled:s,labelId:G.label?`${q}-label`:void 0,"aria-label":G.label?void 0:G["aria-label"],renderOption:$,scrollAreaProps:R})]})});Jp.classes={...it.classes,...Ce.classes};Jp.displayName="@mantine/core/Autocomplete";var Ks={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const Qp=v.createContext(null),r1=Qp.Provider;function s1(){return{withinGroup:!!v.useContext(Qp)}}const a1=(e,{spacing:t})=>({group:{"--ag-spacing":ze(t)}}),Jl=U((e,t)=>{const n=H("AvatarGroup",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,spacing:c,attributes:u,...d}=n,f=ne({name:"AvatarGroup",classes:Ks,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:u,vars:l,varsResolver:a1,rootSelector:"group"});return p.jsx(r1,{value:!0,children:p.jsx(W,{ref:t,...f("group"),...d})})});Jl.classes=Ks;Jl.displayName="@mantine/core/AvatarGroup";function i1(e){return p.jsx("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function l1(e){let t=0;for(let n=0;no[0]).slice(0,t).join("").toUpperCase()}const f1=(e,{size:t,radius:n,variant:o,gradient:r,color:s,autoContrast:a,name:i,allowedInitialsColors:l})=>{const c=s==="initials"&&typeof i=="string"?u1(i,l):s,u=e.variantColorResolver({color:c||"gray",theme:e,gradient:r,variant:o||"light",autoContrast:a});return{root:{"--avatar-size":he(t,"avatar-size"),"--avatar-radius":n===void 0?void 0:Ee(n),"--avatar-bg":c||o?u.background:void 0,"--avatar-color":c||o?u.color:void 0,"--avatar-bd":c||o?u.border:void 0}}},Ql=et((e,t)=>{const n=H("Avatar",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,src:c,alt:u,radius:d,color:f,gradient:m,imageProps:h,children:g,autoContrast:y,mod:x,name:b,allowedInitialsColors:w,attributes:C,...S}=n,N=s1(),[D,k]=v.useState(!c),I=ne({name:"Avatar",props:n,classes:Ks,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:C,vars:l,varsResolver:f1});return v.useEffect(()=>k(!c),[c]),p.jsx(W,{...I("root"),mod:[{"within-group":N.withinGroup},x],ref:t,...S,children:D||!c?p.jsx("span",{...I("placeholder"),title:u,children:g||typeof b=="string"&&d1(b)||p.jsx(i1,{})}):p.jsx("img",{...h,...I("image"),src:c,alt:u,onError:A=>{k(!0),h?.onError?.(A)}})})});Ql.classes=Ks;Ql.displayName="@mantine/core/Avatar";Ql.Group=Jl;var em={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const p1=(e,{radius:t,color:n,gradient:o,variant:r,size:s,autoContrast:a,circle:i})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:a});return{root:{"--badge-height":he(s,"badge-height"),"--badge-padding-x":he(s,"badge-padding-x"),"--badge-fz":he(s,"badge-fz"),"--badge-radius":i||t===void 0?void 0:Ee(t),"--badge-bg":n||r?l.background:void 0,"--badge-color":n||r?l.color:void 0,"--badge-bd":n||r?l.border:void 0,"--badge-dot-color":r==="dot"?Ae(n,e):void 0}}},tm=et((e,t)=>{const n=H("Badge",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,radius:c,color:u,gradient:d,leftSection:f,rightSection:m,children:h,variant:g,fullWidth:y,autoContrast:x,circle:b,mod:w,attributes:C,...S}=n,N=ne({name:"Badge",props:n,classes:em,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:C,vars:l,varsResolver:p1});return p.jsxs(W,{variant:g,mod:[{block:y,circle:b,"with-right-section":!!m,"with-left-section":!!f},w],...N("root",{variant:g}),ref:t,...S,children:[f&&p.jsx("span",{...N("section"),"data-position":"left",children:f}),p.jsx("span",{...N("label"),children:h}),m&&p.jsx("span",{...N("section"),"data-position":"right",children:m})]})});tm.classes=em;tm.displayName="@mantine/core/Badge";var nm={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const m1={separator:"/"},h1=(e,{separatorMargin:t})=>({root:{"--bc-separator-margin":ze(t)}}),om=U((e,t)=>{const n=H("Breadcrumbs",m1,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,children:c,separator:u,separatorMargin:d,attributes:f,...m}=n,h=ne({name:"Breadcrumbs",classes:nm,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:f,vars:l,varsResolver:h1}),g=v.Children.toArray(c).reduce((y,x,b,w)=>{const C=xs(x)?v.cloneElement(x,{...h("breadcrumb",{className:x.props?.className}),key:b}):v.createElement("div",{...h("breadcrumb"),key:b},x);return y.push(C),b!==w.length-1&&y.push(v.createElement(W,{...h("separator"),key:`separator-${b}`},u)),y},[]);return p.jsx(W,{ref:t,...h("root"),...m,children:g})});om.classes=nm;om.displayName="@mantine/core/Breadcrumbs";var rm={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const v1=(e,{color:t,size:n,lineSize:o,transitionDuration:r,transitionTimingFunction:s})=>({root:{"--burger-color":t?Ae(t,e):void 0,"--burger-size":he(n,"burger-size"),"--burger-line-size":o?K(o):void 0,"--burger-transition-duration":r===void 0?void 0:`${r}ms`,"--burger-transition-timing-function":s}}),sm=U((e,t)=>{const n=H("Burger",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,opened:c,children:u,transitionDuration:d,transitionTimingFunction:f,lineSize:m,attributes:h,...g}=n,y=ne({name:"Burger",classes:rm,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:h,vars:l,varsResolver:v1});return p.jsxs(Xe,{...y("root"),ref:t,...g,children:[p.jsx(W,{mod:["reduce-motion",{opened:c}],...y("burger")}),u]})});sm.classes=rm;sm.displayName="@mantine/core/Burger";var Lo={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const Xu={orientation:"horizontal"},g1=(e,{borderWidth:t})=>({group:{"--button-border-width":K(t)}}),ec=U((e,t)=>{const n=H("ButtonGroup",Xu,e),{className:o,style:r,classNames:s,styles:a,unstyled:i,orientation:l,vars:c,borderWidth:u,variant:d,mod:f,attributes:m,...h}=H("ButtonGroup",Xu,e),g=ne({name:"ButtonGroup",props:n,classes:Lo,className:o,style:r,classNames:s,styles:a,unstyled:i,attributes:m,vars:c,varsResolver:g1,rootSelector:"group"});return p.jsx(W,{...g("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...h})});ec.classes=Lo;ec.displayName="@mantine/core/ButtonGroup";const y1=(e,{radius:t,color:n,gradient:o,variant:r,autoContrast:s,size:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:s});return{groupSection:{"--section-height":he(a,"section-height"),"--section-padding-x":he(a,"section-padding-x"),"--section-fz":a?.includes("compact")?Ge(a.replace("compact-","")):Ge(a),"--section-radius":t===void 0?void 0:Ee(t),"--section-bg":n||r?i.background:void 0,"--section-color":i.color,"--section-bd":n||r?i.border:void 0}}},tc=U((e,t)=>{const n=H("ButtonGroupSection",null,e),{className:o,style:r,classNames:s,styles:a,unstyled:i,vars:l,variant:c,gradient:u,radius:d,autoContrast:f,attributes:m,...h}=n,g=ne({name:"ButtonGroupSection",props:n,classes:Lo,className:o,style:r,classNames:s,styles:a,unstyled:i,attributes:m,vars:l,varsResolver:y1,rootSelector:"groupSection"});return p.jsx(W,{...g("groupSection"),ref:t,variant:c,...h})});tc.classes=Lo;tc.displayName="@mantine/core/ButtonGroupSection";const b1={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${K(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},x1=(e,{radius:t,color:n,gradient:o,variant:r,size:s,justify:a,autoContrast:i})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:i});return{root:{"--button-justify":a,"--button-height":he(s,"button-height"),"--button-padding-x":he(s,"button-padding-x"),"--button-fz":s?.includes("compact")?Ge(s.replace("compact-","")):Ge(s),"--button-radius":t===void 0?void 0:Ee(t),"--button-bg":n||r?l.background:void 0,"--button-hover":n||r?l.hover:void 0,"--button-color":l.color,"--button-bd":n||r?l.border:void 0,"--button-hover-color":n||r?l.hoverColor:void 0}}},Eo=et((e,t)=>{const n=H("Button",null,e),{style:o,vars:r,className:s,color:a,disabled:i,children:l,leftSection:c,rightSection:u,fullWidth:d,variant:f,radius:m,loading:h,loaderProps:g,gradient:y,classNames:x,styles:b,unstyled:w,"data-disabled":C,autoContrast:S,mod:N,attributes:D,...k}=n,I=ne({name:"Button",props:n,classes:Lo,className:s,style:o,classNames:x,styles:b,unstyled:w,attributes:D,vars:r,varsResolver:x1}),A=!!c,F=!!u;return p.jsxs(Xe,{ref:t,...I("root",{active:!i&&!h&&!C}),unstyled:w,variant:f,disabled:i||h,mod:[{disabled:i||C,loading:h,block:d,"with-left-section":A,"with-right-section":F},N],...k,children:[typeof h=="boolean"&&p.jsx(Ft,{mounted:h,transition:b1,duration:150,children:z=>p.jsx(W,{component:"span",...I("loader",{style:z}),"aria-hidden":!0,children:p.jsx(eo,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...g})})}),p.jsxs("span",{...I("inner"),children:[c&&p.jsx(W,{component:"span",...I("section"),mod:{position:"left"},children:c}),p.jsx(W,{component:"span",mod:{loading:h},...I("label"),children:l}),u&&p.jsx(W,{component:"span",...I("section"),mod:{position:"right"},children:u})]})]})});Eo.classes=Lo;Eo.displayName="@mantine/core/Button";Eo.Group=ec;Eo.GroupSection=tc;const[w1,C1]=nt("Card component was not found in tree");var nc={root:"m_e615b15f",section:"m_599a2148"};const Us=et((e,t)=>{const n=H("CardSection",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,withBorder:l,inheritPadding:c,mod:u,...d}=n,f=C1();return p.jsx(W,{ref:t,mod:[{"with-border":l,"inherit-padding":c},u],...f.getStyles("section",{className:r,style:s,styles:a,classNames:o}),...d})});Us.classes=nc;Us.displayName="@mantine/core/CardSection";const S1=(e,{padding:t})=>({root:{"--card-padding":ze(t)}}),oc=et((e,t)=>{const n=H("Card",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,children:c,padding:u,attributes:d,...f}=n,m=ne({name:"Card",props:n,classes:nc,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:d,vars:l,varsResolver:S1}),h=v.Children.toArray(c),g=h.map((y,x)=>typeof y=="object"&&y&&"type"in y&&y.type===Us?v.cloneElement(y,{"data-first-section":x===0||void 0,"data-last-section":x===h.length-1||void 0}):y);return p.jsx(w1,{value:{getStyles:m},children:p.jsx(As,{ref:t,unstyled:i,...m("root"),...f,children:g})})});oc.classes=nc;oc.displayName="@mantine/core/Card";oc.Section=Us;var am={root:"m_4451eb3a"};const im=et((e,t)=>{const n=H("Center",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,inline:c,mod:u,attributes:d,...f}=n,m=ne({name:"Center",props:n,classes:am,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:d,vars:l});return p.jsx(W,{ref:t,mod:[{inline:c},u],...m("root"),...f})});im.classes=am;im.displayName="@mantine/core/Center";var lm={root:"m_b183c0a2"};const _1=(e,{color:t})=>({root:{"--code-bg":t?Ae(t,e):void 0}}),cm=U((e,t)=>{const n=H("Code",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,color:c,block:u,variant:d,mod:f,attributes:m,...h}=n,g=ne({name:"Code",props:n,classes:lm,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:m,vars:l,varsResolver:_1});return p.jsx(W,{component:u?"pre":"code",variant:d,ref:t,mod:[{block:u},f],...g("root"),...h,dir:"ltr"})});cm.classes=lm;cm.displayName="@mantine/core/Code";var um={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const Zu={withShadow:!0},P1=(e,{radius:t,size:n})=>({root:{"--cs-radius":t===void 0?void 0:Ee(t),"--cs-size":K(n)}}),qs=et((e,t)=>{const n=H("ColorSwatch",Zu,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,color:c,size:u,radius:d,withShadow:f,children:m,variant:h,attributes:g,...y}=H("ColorSwatch",Zu,n),x=ne({name:"ColorSwatch",props:n,classes:um,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:g,vars:l,varsResolver:P1});return p.jsxs(W,{ref:t,variant:h,size:u,...x("root",{focusable:!0}),...y,children:[p.jsx("span",{...x("alphaOverlay")}),f&&p.jsx("span",{...x("shadowOverlay")}),p.jsx("span",{...x("colorOverlay",{style:{backgroundColor:c}})}),p.jsx("span",{...x("childrenOverlay"),children:m})]})});qs.classes=um;qs.displayName="@mantine/core/ColorSwatch";const[R1,rc]=Bt(null);var sc={wrapper:"m_fee9c77",preview:"m_9dddfbac",body:"m_bffecc3e",sliders:"m_3283bb96",thumb:"m_40d572ba",swatch:"m_d8ee6fd8",swatches:"m_5711e686",saturation:"m_202a296e",saturationOverlay:"m_11b3db02",slider:"m_d856d47d",sliderOverlay:"m_8f327113"};const ac=v.forwardRef(({position:e,...t},n)=>p.jsx(W,{ref:n,__vars:{"--thumb-y-offset":`${e.y*100}%`,"--thumb-x-offset":`${e.x*100}%`},...t}));ac.displayName="@mantine/core/ColorPickerThumb";const ic=U((e,t)=>{const n=H("ColorSlider",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,onChange:c,onChangeEnd:u,maxValue:d,round:f,size:m="md",focusable:h=!0,value:g,overlays:y,thumbColor:x="transparent",onScrubStart:b,onScrubEnd:w,__staticSelector:C="ColorPicker",attributes:S,...N}=n,D=ne({name:C,classes:sc,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:S}),I=rc()?.getStyles||D,A=Ke(),[F,z]=v.useState({y:0,x:g/d}),V=v.useRef(F),$=j=>f?Math.round(j*d):j*d,{ref:O}=Gi(({x:j,y:M})=>{V.current={x:j,y:M},c?.($(j))},{onScrubEnd:()=>{const{x:j}=V.current;u?.($(j)),w?.()},onScrubStart:b});bt(()=>{z({y:0,x:g/d})},[g]);const R=(j,M)=>{j.preventDefault();const _=lf(M);c?.($(_.x)),u?.($(_.x))},E=j=>{switch(j.key){case"ArrowRight":{R(j,{x:F.x+.05,y:F.y});break}case"ArrowLeft":{R(j,{x:F.x-.05,y:F.y});break}}},P=y.map((j,M)=>v.createElement("div",{...I("sliderOverlay"),style:j,key:M}));return p.jsxs(W,{...N,ref:$e(O,t),...I("slider"),role:"slider","aria-valuenow":g,"aria-valuemax":d,"aria-valuemin":0,tabIndex:h?0:-1,onKeyDown:E,"data-focus-ring":A.focusRing,__vars:{"--cp-thumb-size":`var(--cp-thumb-size-${m})`},children:[P,p.jsx(ac,{position:F,...I("thumb",{style:{top:K(1),background:x}})})]})});ic.displayName="@mantine/core/ColorSlider";function Ct(e,t=0,n=10**t){return Math.round(n*e)/n}function D1({h:e,s:t,l:n,a:o}){const r=t*((n<50?n:100-n)/100);return{h:e,s:r>0?2*r/(n+r)*100:0,v:n+r,a:o}}const N1={grad:360/400,turn:360,rad:360/(Math.PI*2)};function E1(e,t="deg"){return Number(e)*(N1[t]||1)}const T1=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function Ju(e){const t=T1.exec(e);return t?D1({h:E1(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}}function $i({r:e,g:t,b:n,a:o}){const r=Math.max(e,t,n),s=r-Math.min(e,t,n),a=s?r===e?(t-n)/s:r===t?2+(n-e)/s:4+(e-t)/s:0;return{h:Ct(60*(a<0?a+6:a),3),s:Ct(r?s/r*100:0,3),v:Ct(r/255*100,3),a:o}}function ji(e){const t=e[0]==="#"?e.slice(1):e;return t.length===3?$i({r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:1}):$i({r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:1})}function k1(e){const t=e[0]==="#"?e.slice(1):e,n=a=>Ct(parseInt(a,16)/255,3);if(t.length===4){const a=t.slice(0,3),i=n(t[3]+t[3]);return{...ji(a),a:i}}const o=t.slice(0,6),r=n(t.slice(6,8));return{...ji(o),a:r}}const $1=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function Qu(e){const t=$1.exec(e);return t?$i({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}}const dm={hex:/^#?([0-9A-F]{3}){1,2}$/i,hexa:/^#?([0-9A-F]{4}){1,2}$/i,rgb:/^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,rgba:/^rgba\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,hsl:/hsl\(\s*(\d+)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\)/i,hsla:/^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/i},j1={hex:ji,hexa:k1,rgb:Qu,rgba:Qu,hsl:Ju,hsla:Ju};function M1(e){for(const[,t]of Object.entries(dm))if(t.test(e))return!0;return!1}function Yr(e){if(typeof e!="string")return{h:0,s:0,v:0,a:1};if(e==="transparent")return{h:0,s:0,v:0,a:0};const t=e.trim();for(const[n,o]of Object.entries(dm))if(o.test(t))return j1[n](t);return{h:0,s:0,v:0,a:1}}const fm=v.forwardRef((e,t)=>{const{value:n,onChange:o,onChangeEnd:r,color:s,...a}=H("AlphaSlider",null,e);return p.jsx(ic,{...a,ref:t,value:n,onChange:i=>o?.(Ct(i,2)),onChangeEnd:i=>r?.(Ct(i,2)),maxValue:1,round:!1,"data-alpha":!0,overlays:[{backgroundImage:"linear-gradient(45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(-45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--slider-checkers) 75%), linear-gradient(-45deg, var(--mantine-color-body) 75%, var(--slider-checkers) 75%)",backgroundSize:`${K(8)} ${K(8)}`,backgroundPosition:`0 0, 0 ${K(4)}, ${K(4)} ${K(-4)}, ${K(-4)} 0`},{backgroundImage:`linear-gradient(90deg, transparent, ${s})`},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${K(1)} inset, rgb(0, 0, 0, .15) 0 0 ${K(4)} inset`}]})});fm.displayName="@mantine/core/AlphaSlider";function pm({h:e,s:t,v:n,a:o}){const r=e/360*6,s=t/100,a=n/100,i=Math.floor(r),l=a*(1-s),c=a*(1-(r-i)*s),u=a*(1-(1-r+i)*s),d=i%6;return{r:Ct([a,c,l,l,u,a][d]*255),g:Ct([u,a,a,c,l,l][d]*255),b:Ct([l,l,u,a,a,c][d]*255),a:Ct(o,2)}}function ed(e,t){const{r:n,g:o,b:r,a:s}=pm(e);return t?`rgba(${n}, ${o}, ${r}, ${Ct(s,2)})`:`rgb(${n}, ${o}, ${r})`}function td({h:e,s:t,v:n,a:o},r){const s=(200-t)*n/100,a={h:Math.round(e),s:Math.round(s>0&&s<200?t*n/100/(s<=100?s:200-s)*100:0),l:Math.round(s/2)};return r?`hsla(${a.h}, ${a.s}%, ${a.l}%, ${Ct(o,2)})`:`hsl(${a.h}, ${a.s}%, ${a.l}%)`}function es(e){const t=e.toString(16);return t.length<2?`0${t}`:t}function mm(e){const{r:t,g:n,b:o}=pm(e);return`#${es(t)}${es(n)}${es(o)}`}function I1(e){const t=Math.round(e.a*255);return`${mm(e)}${es(t)}`}const li={hex:mm,hexa:e=>I1(e),rgb:e=>ed(e,!1),rgba:e=>ed(e,!0),hsl:e=>td(e,!1),hsla:e=>td(e,!0)};function Sn(e,t){return t?e in li?li[e](t):li.hex(t):"#000000"}const hm=v.forwardRef((e,t)=>{const{value:n,onChange:o,onChangeEnd:r,color:s,...a}=H("HueSlider",{},e);return p.jsx(ic,{...a,ref:t,value:n,onChange:o,onChangeEnd:r,maxValue:360,thumbColor:`hsl(${n}, 100%, 50%)`,round:!0,"data-hue":!0,overlays:[{backgroundImage:"linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))"},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${K(1)} inset, rgb(0, 0, 0, .15) 0 0 ${K(4)} inset`}]})});hm.displayName="@mantine/core/HueSlider";function vm({className:e,onChange:t,onChangeEnd:n,value:o,saturationLabel:r,focusable:s=!0,size:a,color:i,onScrubStart:l,onScrubEnd:c,...u}){const{getStyles:d}=rc(),[f,m]=v.useState({x:o.s/100,y:1-o.v/100}),h=v.useRef(f),{ref:g}=Gi(({x:b,y:w})=>{h.current={x:b,y:w},t({s:Math.round(b*100),v:Math.round((1-w)*100)})},{onScrubEnd:()=>{const{x:b,y:w}=h.current;n({s:Math.round(b*100),v:Math.round((1-w)*100)}),c?.()},onScrubStart:l});v.useEffect(()=>{m({x:o.s/100,y:1-o.v/100})},[o.s,o.v]);const y=(b,w)=>{b.preventDefault();const C=lf(w);t({s:Math.round(C.x*100),v:Math.round((1-C.y)*100)}),n({s:Math.round(C.x*100),v:Math.round((1-C.y)*100)})},x=b=>{switch(b.key){case"ArrowUp":{y(b,{y:f.y-.05,x:f.x});break}case"ArrowDown":{y(b,{y:f.y+.05,x:f.x});break}case"ArrowRight":{y(b,{x:f.x+.05,y:f.y});break}case"ArrowLeft":{y(b,{x:f.x-.05,y:f.y});break}}};return p.jsxs(W,{...d("saturation"),ref:g,...u,role:"slider","aria-label":r,"aria-valuenow":f.x,"aria-valuetext":Sn("rgba",o),tabIndex:s?0:-1,onKeyDown:x,children:[p.jsx("div",{...d("saturationOverlay",{style:{backgroundColor:`hsl(${o.h}, 100%, 50%)`}})}),p.jsx("div",{...d("saturationOverlay",{style:{backgroundImage:"linear-gradient(90deg, #fff, transparent)"}})}),p.jsx("div",{...d("saturationOverlay",{style:{backgroundImage:"linear-gradient(0deg, #000, transparent)"}})}),p.jsx(ac,{position:f,...d("thumb",{style:{backgroundColor:i}})})]})}vm.displayName="@mantine/core/Saturation";const gm=v.forwardRef(({className:e,datatype:t,setValue:n,onChangeEnd:o,size:r,focusable:s,data:a,swatchesPerRow:i,value:l,...c},u)=>{const d=rc(),f=a.map((m,h)=>v.createElement(qs,{...d.getStyles("swatch"),unstyled:d.unstyled,component:"button",type:"button",color:m,key:h,radius:"sm",onClick:()=>{n(m),o?.(m)},"aria-label":m,tabIndex:s?0:-1,"data-swatch":!0},l===m&&p.jsx(Ws,{size:"35%",color:ff(m)<.5?"white":"black"})));return p.jsx(W,{...d.getStyles("swatches"),ref:u,...c,children:f})});gm.displayName="@mantine/core/Swatches";const O1={swatchesPerRow:7,withPicker:!0,focusable:!0,size:"md",__staticSelector:"ColorPicker"},A1=(e,{size:t,swatchesPerRow:n})=>({wrapper:{"--cp-preview-size":he(t,"cp-preview-size"),"--cp-width":he(t,"cp-width"),"--cp-body-spacing":ze(t),"--cp-swatch-size":`${100/n}%`,"--cp-thumb-size":he(t,"cp-thumb-size"),"--cp-saturation-height":he(t,"cp-saturation-height")}}),ym=U((e,t)=>{const n=H("ColorPicker",O1,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,format:c="hex",value:u,defaultValue:d,onChange:f,onChangeEnd:m,withPicker:h,size:g,saturationLabel:y,hueLabel:x,alphaLabel:b,focusable:w,swatches:C,swatchesPerRow:S,fullWidth:N,onColorSwatchClick:D,__staticSelector:k,mod:I,attributes:A,...F}=n,z=ne({name:k,props:n,classes:sc,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:A,rootSelector:"wrapper",vars:l,varsResolver:A1}),V=v.useRef(c||"hex"),$=v.useRef(""),O=v.useRef(-1),R=v.useRef(!1),E=c==="hexa"||c==="rgba"||c==="hsla",[P,j,M]=He({value:u,defaultValue:d,finalValue:"#FFFFFF",onChange:f}),[_,T]=v.useState(Yr(P)),L=()=>{window.clearTimeout(O.current),R.current=!0},B=()=>{window.clearTimeout(O.current),O.current=window.setTimeout(()=>{R.current=!1},200)},G=q=>{T(X=>{const le={...X,...q};return $.current=Sn(V.current,le),le}),j($.current)};return bt(()=>{typeof u=="string"&&M1(u)&&!R.current&&T(Yr(u))},[u]),bt(()=>{V.current=c||"hex",j(Sn(V.current,_))},[c]),p.jsx(R1,{value:{getStyles:z,unstyled:i},children:p.jsxs(W,{ref:t,...z("wrapper"),size:g,mod:[{"full-width":N},I],...F,children:[h&&p.jsxs(p.Fragment,{children:[p.jsx(vm,{value:_,onChange:G,onChangeEnd:({s:q,v:X})=>m?.(Sn(V.current,{..._,s:q,v:X})),color:P,size:g,focusable:w,saturationLabel:y,onScrubStart:L,onScrubEnd:B}),p.jsxs("div",{...z("body"),children:[p.jsxs("div",{...z("sliders"),children:[p.jsx(hm,{value:_.h,onChange:q=>G({h:q}),onChangeEnd:q=>m?.(Sn(V.current,{..._,h:q})),size:g,focusable:w,"aria-label":x,onScrubStart:L,onScrubEnd:B}),E&&p.jsx(fm,{value:_.a,onChange:q=>G({a:q}),onChangeEnd:q=>{m?.(Sn(V.current,{..._,a:q}))},size:g,color:Sn("hex",_),focusable:w,"aria-label":b,onScrubStart:L,onScrubEnd:B})]}),E&&p.jsx(qs,{color:P,radius:"sm",size:"var(--cp-preview-size)",...z("preview")})]})]}),Array.isArray(C)&&p.jsx(gm,{data:C,swatchesPerRow:S,focusable:w,setValue:j,value:P,onChangeEnd:q=>{const X=Sn(c,Yr(q));D?.(X),m?.(X),M||T(Yr(q))}})]})})});ym.classes=sc;ym.displayName="@mantine/core/ColorPicker";var bm={root:"m_7485cace"};const L1=(e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:he(t,"container-size")}}),xm=U((e,t)=>{const n=H("Container",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,fluid:c,mod:u,attributes:d,strategy:f,...m}=n,h=ne({name:"Container",classes:bm,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:d,vars:l,varsResolver:L1});return p.jsx(W,{ref:t,mod:[{fluid:c,strategy:f||"block"},u],...h("root"),...m})});xm.classes=bm;xm.displayName="@mantine/core/Container";const F1={timeout:1e3};function z1(e){const{children:t,timeout:n,value:o,...r}=H("CopyButton",F1,e),s=Ng({timeout:n}),a=()=>s.copy(o);return p.jsx(p.Fragment,{children:t({copy:a,copied:s.copied,...r})})}z1.displayName="@mantine/core/CopyButton";var wm={root:"m_3eebeb36",label:"m_9e365f20"};const B1={orientation:"horizontal"},V1=(e,{color:t,variant:n,size:o})=>({root:{"--divider-color":t?Ae(t,e):void 0,"--divider-border-style":n,"--divider-size":he(o,"divider-size")}}),Cm=U((e,t)=>{const n=H("Divider",B1,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,color:c,orientation:u,label:d,labelPosition:f,mod:m,attributes:h,...g}=n,y=ne({name:"Divider",classes:wm,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:h,vars:l,varsResolver:V1});return p.jsx(W,{ref:t,mod:[{orientation:u,"with-label":!!d},m],...y("root"),...g,role:"separator",children:d&&p.jsx(W,{component:"span",mod:{position:f},...y("label"),children:d})})});Cm.classes=wm;Cm.displayName="@mantine/core/Divider";var mn={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const[H1,Fo]=nt("Drawer component was not found in tree"),Xs=U((e,t)=>{const n=H("DrawerBody",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,...l}=n,c=Fo();return p.jsx(yl,{ref:t,...c.getStyles("body",{classNames:o,style:s,styles:a,className:r}),...l})});Xs.classes=mn;Xs.displayName="@mantine/core/DrawerBody";const Zs=U((e,t)=>{const n=H("DrawerCloseButton",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,...l}=n,c=Fo();return p.jsx(bl,{ref:t,...c.getStyles("close",{classNames:o,style:s,styles:a,className:r}),...l})});Zs.classes=mn;Zs.displayName="@mantine/core/DrawerCloseButton";const Js=U((e,t)=>{const n=H("DrawerContent",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,children:l,radius:c,__hidden:u,...d}=n,f=Fo(),m=f.scrollAreaComponent||wp;return p.jsx(xl,{...f.getStyles("content",{className:r,style:s,styles:a,classNames:o}),innerProps:f.getStyles("inner",{className:r,style:s,styles:a,classNames:o}),ref:t,...d,radius:c||f.radius||0,"data-hidden":u||void 0,children:p.jsx(m,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:l})})});Js.classes=mn;Js.displayName="@mantine/core/DrawerContent";const Qs=U((e,t)=>{const n=H("DrawerHeader",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,...l}=n,c=Fo();return p.jsx(wl,{ref:t,...c.getStyles("header",{classNames:o,style:s,styles:a,className:r}),...l})});Qs.classes=mn;Qs.displayName="@mantine/core/DrawerHeader";const ea=U((e,t)=>{const n=H("DrawerOverlay",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,...l}=n,c=Fo();return p.jsx(Cl,{ref:t,...c.getStyles("overlay",{classNames:o,style:s,styles:a,className:r}),...l})});ea.classes=mn;ea.displayName="@mantine/core/DrawerOverlay";function Y1(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function W1(e){if(e==="top"||e==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const G1={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},K1={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},U1={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:st("modal"),position:"left"},q1=(e,{position:t,size:n,offset:o})=>({root:{"--drawer-size":he(n,"drawer-size"),"--drawer-flex":W1(t),"--drawer-height":t==="left"||t==="right"?void 0:"var(--drawer-size)","--drawer-align":Y1(t),"--drawer-justify":t==="right"?"flex-end":void 0,"--drawer-offset":K(o)}}),ta=U((e,t)=>{const n=H("DrawerRoot",U1,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,scrollAreaComponent:c,position:u,transitionProps:d,radius:f,attributes:m,...h}=n,{dir:g}=en(),y=ne({name:"Drawer",classes:mn,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:m,vars:l,varsResolver:q1}),x=(g==="rtl"?K1:G1)[u];return p.jsx(H1,{value:{scrollAreaComponent:c,getStyles:y,radius:f},children:p.jsx(gl,{ref:t,...y("root"),transitionProps:{transition:x,...d},"data-offset-scrollbars":c===Lt.Autosize||void 0,unstyled:i,...h})})});ta.classes=mn;ta.displayName="@mantine/core/DrawerRoot";const[X1,Z1]=Bt();function Sm({children:e}){const[t,n]=v.useState([]),[o,r]=v.useState(st("modal"));return p.jsx(X1,{value:{stack:t,addModal:(s,a)=>{n(i=>[...new Set([...i,s])]),r(i=>typeof a=="number"&&typeof i=="number"?Math.max(i,a):i)},removeModal:s=>n(a=>a.filter(i=>i!==s)),getZIndex:s=>`calc(${o} + ${t.indexOf(s)} + 1)`,currentId:t[t.length-1],maxZIndex:o},children:e})}Sm.displayName="@mantine/core/DrawerStack";const na=U((e,t)=>{const n=H("DrawerTitle",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,...l}=n,c=Fo();return p.jsx(Sl,{ref:t,...c.getStyles("title",{classNames:o,style:s,styles:a,className:r}),...l})});na.classes=mn;na.displayName="@mantine/core/DrawerTitle";const J1={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:st("modal"),withOverlay:!0,withCloseButton:!0},nn=U((e,t)=>{const{title:n,withOverlay:o,overlayProps:r,withCloseButton:s,closeButtonProps:a,children:i,opened:l,stackId:c,zIndex:u,...d}=H("Drawer",J1,e),f=Z1(),m=!!n||s,h=f&&c?{closeOnEscape:f.currentId===c,trapFocus:f.currentId===c,zIndex:f.getZIndex(c)}:{},g=o===!1?!1:c&&f?f.currentId===c:l;return v.useEffect(()=>{f&&c&&(l?f.addModal(c,u||st("modal")):f.removeModal(c))},[l,c,u]),p.jsxs(ta,{ref:t,opened:l,zIndex:f&&c?f.getZIndex(c):u,...d,...h,children:[o&&p.jsx(ea,{visible:g,transitionProps:f&&c?{duration:0}:void 0,...r}),p.jsxs(Js,{__hidden:f&&c&&l?c!==f.currentId:!1,children:[m&&p.jsxs(Qs,{children:[n&&p.jsx(na,{children:n}),s&&p.jsx(Zs,{...a})]}),p.jsx(Xs,{children:i})]})]})});nn.classes=mn;nn.displayName="@mantine/core/Drawer";nn.Root=ta;nn.Overlay=ea;nn.Content=Js;nn.Body=Xs;nn.Header=Qs;nn.Title=na;nn.CloseButton=Zs;nn.Stack=Sm;var _m={root:"m_e9408a47","root--default":"m_84c9523a","root--filled":"m_ef274e49","root--unstyled":"m_eda993d3",legend:"m_90794832","legend--unstyled":"m_74ca27fe"};const Q1={variant:"default"},eC=(e,{radius:t})=>({root:{"--fieldset-radius":t===void 0?void 0:Ee(t)}}),Pm=U((e,t)=>{const n=H("Fieldset",Q1,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,legend:c,variant:u,children:d,attributes:f,...m}=n,h=ne({name:"Fieldset",classes:_m,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:f,vars:l,varsResolver:eC});return p.jsxs(W,{component:"fieldset",ref:t,variant:u,...h("root",{variant:u}),...m,children:[c&&p.jsx("legend",{...h("legend",{variant:u}),children:c}),d]})});Pm.classes=_m;Pm.displayName="@mantine/core/Fieldset";const tC={multiple:!1},nC=v.forwardRef((e,t)=>{const{onChange:n,children:o,multiple:r,accept:s,name:a,form:i,resetRef:l,disabled:c,capture:u,inputProps:d,...f}=H("FileButton",tC,e),m=v.useRef(null),h=()=>{!c&&m.current?.click()},g=x=>{if(x.currentTarget.files===null)return n(r?[]:null);n(r?Array.from(x.currentTarget.files):x.currentTarget.files[0]||null)};return ar(l,()=>{m.current&&(m.current.value="")}),p.jsxs(p.Fragment,{children:[p.jsx("input",{style:{display:"none"},type:"file",accept:s,multiple:r,onChange:g,ref:$e(t,m),name:a,form:i,capture:u,...d}),o({onClick:h,...f})]})});nC.displayName="@mantine/core/FileButton";const[nd,Rm]=nt("Grid component was not found in tree");var lc={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const Mi=(e,t)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(t/e)}%`:void 0,od=(e,t,n)=>n||e==="auto"?"100%":e==="content"?"unset":Mi(e,t),rd=(e,t)=>{if(e)return e==="auto"||t?"1":"auto"},sd=(e,t)=>e===0?"0":e?`${100/(t/e)}%`:void 0;function oC({span:e,order:t,offset:n,selector:o}){const r=Ke(),s=Rm(),a=s.breakpoints||r.breakpoints,l=$t(e)===void 0?12:$t(e),c=Dn({"--col-order":$t(t)?.toString(),"--col-flex-grow":rd(l,s.grow),"--col-flex-basis":Mi(l,s.columns),"--col-width":l==="content"?"auto":void 0,"--col-max-width":od(l,s.columns,s.grow),"--col-offset":sd($t(n),s.columns)}),u=Ve(a).reduce((m,h)=>(m[h]||(m[h]={}),typeof t=="object"&&t[h]!==void 0&&(m[h]["--col-order"]=t[h]?.toString()),typeof e=="object"&&e[h]!==void 0&&(m[h]["--col-flex-grow"]=rd(e[h],s.grow),m[h]["--col-flex-basis"]=Mi(e[h],s.columns),m[h]["--col-width"]=e[h]==="content"?"auto":void 0,m[h]["--col-max-width"]=od(e[h],s.columns,s.grow)),typeof n=="object"&&n[h]!==void 0&&(m[h]["--col-offset"]=sd(n[h],s.columns)),m),{}),f=sr(Ve(u),a).filter(m=>Ve(u[m.value]).length>0).map(m=>({query:s.type==="container"?`mantine-grid (min-width: ${a[m.value]})`:`(min-width: ${a[m.value]})`,styles:u[m.value]}));return p.jsx(Qn,{styles:c,media:s.type==="container"?void 0:f,container:s.type==="container"?f:void 0,selector:o})}const rC={span:12},cc=U((e,t)=>{const n=H("GridCol",rC,e),{classNames:o,className:r,style:s,styles:a,vars:i,span:l,order:c,offset:u,...d}=n,f=Rm(),m=fr();return p.jsxs(p.Fragment,{children:[p.jsx(oC,{selector:`.${m}`,span:l,order:c,offset:u}),p.jsx(W,{ref:t,...f.getStyles("col",{className:Ze(r,m),style:s,classNames:o,styles:a}),...d})]})});cc.classes=lc;cc.displayName="@mantine/core/GridCol";function ad({gutter:e,selector:t,breakpoints:n,type:o}){const r=Ke(),s=n||r.breakpoints,a=Dn({"--grid-gutter":ze($t(e))}),i=Ve(s).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--grid-gutter"]=ze(e[d])),u),{}),c=sr(Ve(i),s).filter(u=>Ve(i[u.value]).length>0).map(u=>({query:o==="container"?`mantine-grid (min-width: ${s[u.value]})`:`(min-width: ${s[u.value]})`,styles:i[u.value]}));return p.jsx(Qn,{styles:a,media:o==="container"?void 0:c,container:o==="container"?c:void 0,selector:t})}const sC={gutter:"md",grow:!1,columns:12},aC=(e,{justify:t,align:n,overflow:o})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":o}}),uc=U((e,t)=>{const n=H("Grid",sC,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,grow:c,gutter:u,columns:d,align:f,justify:m,children:h,breakpoints:g,type:y,attributes:x,...b}=n,w=ne({name:"Grid",classes:lc,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:x,vars:l,varsResolver:aC}),C=fr();return y==="container"&&g?p.jsxs(nd,{value:{getStyles:w,grow:c,columns:d,breakpoints:g,type:y},children:[p.jsx(ad,{selector:`.${C}`,...n}),p.jsx("div",{...w("container"),children:p.jsx(W,{ref:t,...w("root",{className:C}),...b,children:p.jsx("div",{...w("inner"),children:h})})})]}):p.jsxs(nd,{value:{getStyles:w,grow:c,columns:d,breakpoints:g,type:y},children:[p.jsx(ad,{selector:`.${C}`,...n}),p.jsx(W,{ref:t,...w("root",{className:C}),...b,children:p.jsx("div",{...w("inner"),children:h})})]})});uc.classes=lc;uc.displayName="@mantine/core/Grid";uc.Col=cc;function id({color:e,theme:t,defaultShade:n}){const o=Pt({color:e,theme:t});return o.isThemeColor?o.shade===void 0?`var(--mantine-color-${o.color}-${n})`:`var(${o.variable})`:e}var Dm={root:"m_bcb3f3c2"};const iC={color:"yellow"},lC=(e,{color:t})=>({root:{"--mark-bg-dark":id({color:t,theme:e,defaultShade:5}),"--mark-bg-light":id({color:t,theme:e,defaultShade:2})}}),dc=U((e,t)=>{const n=H("Mark",iC,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,color:c,variant:u,attributes:d,...f}=n,m=ne({name:"Mark",props:n,className:r,style:s,classes:Dm,classNames:o,styles:a,unstyled:i,attributes:d,vars:l,varsResolver:lC});return p.jsx(W,{component:"mark",ref:t,variant:u,...m("root"),...f})});dc.classes=Dm;dc.displayName="@mantine/core/Mark";function ld(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function cC(e,t){if(t==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(t)?t.map(ld):ld(t);if(!(Array.isArray(n)?n.filter(i=>i.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];const r=typeof n=="string"?n.trim():n.filter(i=>i.trim().length!==0).map(i=>i.trim()).sort((i,l)=>l.length-i.length).join("|"),s=new RegExp(`(${r})`,"gi");return e.split(s).map(i=>({chunk:i,highlighted:s.test(i)})).filter(({chunk:i})=>i)}const Nm=et((e,t)=>{const{unstyled:n,children:o,highlight:r,highlightStyles:s,color:a,...i}=H("Highlight",null,e),l=cC(o,r);return p.jsx(vr,{unstyled:n,ref:t,...i,__staticSelector:"Highlight",children:l.map(({chunk:c,highlighted:u},d)=>u?p.jsx(dc,{unstyled:n,color:a,style:s,"data-highlight":c,children:c},d):p.jsx("span",{children:c},d))})});Nm.classes=vr.classes;Nm.displayName="@mantine/core/Highlight";const[uC,Em]=nt("HoverCard component was not found in the tree"),Tm=v.createContext(!1),dC=Tm.Provider,fc=()=>v.useContext(Tm);function km(e){const{children:t,onMouseEnter:n,onMouseLeave:o,...r}=H("HoverCardDropdown",null,e),s=Em();if(fc()&&s.getFloatingProps&&s.floating){const c=s.getFloatingProps();return p.jsx(Be.Dropdown,{ref:s.floating,...c,onMouseEnter:qe(n,c.onMouseEnter),onMouseLeave:qe(o,c.onMouseLeave),...r,children:t})}const i=qe(n,s.openDropdown),l=qe(o,s.closeDropdown);return p.jsx(Be.Dropdown,{onMouseEnter:i,onMouseLeave:l,...r,children:t})}km.displayName="@mantine/core/HoverCardDropdown";const fC={openDelay:0,closeDelay:0};function pc(e){const{openDelay:t,closeDelay:n,children:o}=H("HoverCardGroup",fC,e);return p.jsx(dC,{value:!0,children:p.jsx(Bf,{delay:{open:t,close:n},children:o})})}pc.displayName="@mantine/core/HoverCardGroup";pc.extend=e=>e;const pC={refProp:"ref"},$m=v.forwardRef((e,t)=>{const{children:n,refProp:o,eventPropsWrapperName:r,...s}=H("HoverCardTarget",pC,e),a=Nn(n);if(!a)throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=Em();if(fc()&&i.getReferenceProps&&i.reference){const f=i.getReferenceProps();return p.jsx(Be.Target,{refProp:o,ref:t,...s,children:v.cloneElement(a,r?{[r]:{...f,ref:i.reference}}:{...f,ref:i.reference})})}const c=qe(a.props.onMouseEnter,i.openDropdown),u=qe(a.props.onMouseLeave,i.closeDropdown),d={onMouseEnter:c,onMouseLeave:u};return p.jsx(Be.Target,{refProp:o,ref:t,...s,children:v.cloneElement(a,r?{[r]:d}:d)})});$m.displayName="@mantine/core/HoverCardTarget";function mC(e){const[t,n]=v.useState(e.defaultOpened),r=typeof e.opened=="boolean"?e.opened:t,s=fc(),a=Qe(),i=v.useRef(-1),l=v.useRef(-1),c=v.useCallback(()=>{window.clearTimeout(i.current),window.clearTimeout(l.current)},[]),u=v.useCallback(w=>{n(w),w?(h(a),e.onOpen?.()):e.onClose?.()},[a,e.onOpen,e.onClose]),{context:d,refs:f}=Ms({open:r,onOpenChange:u}),{delay:m,setCurrentId:h}=Vf(d,{id:a}),{getReferenceProps:g,getFloatingProps:y}=Yf([Ff(d,{enabled:!0,delay:s?m:{open:e.openDelay,close:e.closeDelay}}),Wf(d,{role:"dialog"}),Hf(d,{enabled:s})]),x=v.useCallback(()=>{s||(c(),e.openDelay===0||e.openDelay===void 0?u(!0):i.current=window.setTimeout(()=>u(!0),e.openDelay))},[s,c,e.openDelay,u]),b=v.useCallback(()=>{s||(c(),e.closeDelay===0||e.closeDelay===void 0?u(!1):l.current=window.setTimeout(()=>u(!1),e.closeDelay))},[s,c,e.closeDelay,u]);return v.useEffect(()=>()=>c(),[c]),{opened:r,reference:f.setReference,floating:f.setFloating,getReferenceProps:g,getFloatingProps:y,openDropdown:x,closeDropdown:b}}const hC={openDelay:0,closeDelay:150,initiallyOpened:!1};function Sr(e){const{children:t,onOpen:n,onClose:o,openDelay:r,closeDelay:s,initiallyOpened:a,...i}=H("HoverCard",hC,e),l=mC({openDelay:r,closeDelay:s,defaultOpened:a,onOpen:n,onClose:o});return p.jsx(uC,{value:{openDropdown:l.openDropdown,closeDropdown:l.closeDropdown,getReferenceProps:l.getReferenceProps,getFloatingProps:l.getFloatingProps,reference:l.reference,floating:l.floating},children:p.jsx(Be,{...i,opened:l.opened,__staticSelector:"HoverCard",children:t})})}Sr.displayName="@mantine/core/HoverCard";Sr.Target=$m;Sr.Dropdown=km;Sr.Group=pc;Sr.extend=e=>e;var jm={root:"m_9e117634"};const vC=(e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:Ee(t),"--image-object-fit":n}}),Mm=et((e,t)=>{const n=H("Image",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,onError:c,src:u,radius:d,fit:f,fallbackSrc:m,mod:h,attributes:g,...y}=n,[x,b]=v.useState(!u);v.useEffect(()=>b(!u),[u]);const w=ne({name:"Image",classes:jm,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:g,vars:l,varsResolver:vC});return x&&m?p.jsx(W,{component:"img",ref:t,src:m,...w("root"),onError:c,mod:["fallback",h],...y}):p.jsx(W,{component:"img",ref:t,...w("root"),src:u,onError:C=>{c?.(C),b(!0)},mod:h,...y})});Mm.classes=jm;Mm.displayName="@mantine/core/Image";function gC(e="top-end",t=0){const n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},o=K(t),[r,s]=e.split("-");return r==="top"&&(n["--indicator-top"]=o,n["--indicator-translate-y"]="-50%"),r==="middle"&&(n["--indicator-top"]="50%",n["--indicator-translate-y"]="-50%"),r==="bottom"&&(n["--indicator-bottom"]=o,n["--indicator-translate-y"]="50%"),s==="start"&&(n["--indicator-left"]=o,n["--indicator-translate-x"]="-50%"),s==="center"&&(n["--indicator-left"]="50%",n["--indicator-translate-x"]="-50%"),s==="end"&&(n["--indicator-right"]=o,n["--indicator-translate-x"]="50%"),n}var Im={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const yC={position:"top-end",offset:0},bC=(e,{color:t,position:n,offset:o,size:r,radius:s,zIndex:a,autoContrast:i})=>({root:{"--indicator-color":t?Ae(t,e):void 0,"--indicator-text-color":En(i,e)?Qt({color:t,theme:e,autoContrast:i}):void 0,"--indicator-size":K(r),"--indicator-radius":s===void 0?void 0:Ee(s),"--indicator-z-index":a?.toString(),...gC(n,o)}}),Om=U((e,t)=>{const n=H("Indicator",yC,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,children:c,position:u,offset:d,inline:f,label:m,radius:h,color:g,withBorder:y,disabled:x,processing:b,zIndex:w,autoContrast:C,mod:S,attributes:N,...D}=n,k=ne({name:"Indicator",classes:Im,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:N,vars:l,varsResolver:bC});return p.jsxs(W,{ref:t,...k("root"),mod:[{inline:f},S],...D,children:[!x&&p.jsx(W,{mod:{"with-label":!!m,"with-border":y,processing:b},...k("indicator"),children:m}),c]})});Om.classes=Im;Om.displayName="@mantine/core/Indicator";function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{autosize:n,maxRows:o,minRows:r,__staticSelector:s,resize:a,...i}=H("Textarea",OC,e),l=n&&uf()!=="test",c=l?{maxRows:o,minRows:r}:{};return p.jsx(it,{component:l?IC:"textarea",ref:t,...i,__staticSelector:s||"Textarea",multiline:!0,"data-no-overflow":n&&o===void 0||void 0,__vars:{"--input-resize":a},...c})});vc.classes=it.classes;vc.displayName="@mantine/core/Textarea";function md(e,t){if(typeof e=="string"&&e.trim().length===0)return!0;try{return t(e),!0}catch{return!1}}const AC={serialize:JSON.stringify,deserialize:JSON.parse,size:"sm"},Am=U((e,t)=>{const{value:n,defaultValue:o,onChange:r,formatOnBlur:s,validationError:a,serialize:i,deserialize:l,onFocus:c,onBlur:u,readOnly:d,error:f,...m}=H("JsonInput",AC,e),[h,g]=He({value:n,defaultValue:o,finalValue:"",onChange:r}),[y,x]=v.useState(md(h,l)),b=C=>{c?.(C),x(!0)},w=C=>{typeof u=="function"&&u(C);const S=md(C.currentTarget.value,l);s&&!d&&S&&C.currentTarget.value.trim()!==""&&g(i(l(C.currentTarget.value),null,2)),x(S)};return p.jsx(vc,{value:h,onChange:C=>g(C.currentTarget.value),onFocus:b,onBlur:w,ref:t,readOnly:d,...m,autoComplete:"off",__staticSelector:"JsonInput",error:y?f:a||!0,"data-monospace":!0})});Am.classes=it.classes;Am.displayName="@mantine/core/JsonInput";const[LC,FC]=nt("List component was not found in tree");var gc={root:"m_abbac491",item:"m_abb6bec2",itemWrapper:"m_75cd9f71",itemIcon:"m_60f83e5b"};const yc=U((e,t)=>{const n=H("ListItem",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,icon:l,children:c,mod:u,...d}=n,f=FC(),m=l||f.icon,h={classNames:o,styles:a};return p.jsx(W,{...f.getStyles("item",{...h,className:r,style:s}),component:"li",mod:[{"with-icon":!!m,centered:f.center},u],ref:t,...d,children:p.jsxs("div",{...f.getStyles("itemWrapper",h),children:[m&&p.jsx("span",{...f.getStyles("itemIcon",h),children:m}),p.jsx("span",{...f.getStyles("itemLabel",h),children:c})]})})});yc.classes=gc;yc.displayName="@mantine/core/ListItem";const zC={type:"unordered"},BC=(e,{size:t,spacing:n})=>({root:{"--list-fz":Ge(t),"--list-lh":Qd(t),"--list-spacing":ze(n)}}),bc=U((e,t)=>{const n=H("List",zC,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,children:c,type:u,withPadding:d,icon:f,spacing:m,center:h,listStyleType:g,mod:y,attributes:x,...b}=n,w=ne({name:"List",classes:gc,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:x,vars:l,varsResolver:BC});return p.jsx(LC,{value:{center:h,icon:f,getStyles:w},children:p.jsx(W,{...w("root",{style:{listStyleType:g}}),component:u==="unordered"?"ul":"ol",mod:[{"with-padding":d,type:f?"none":g},y],ref:t,...b,children:c})})});bc.classes=gc;bc.displayName="@mantine/core/List";bc.Item=yc;var Lm={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const hd={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:st("overlay")},VC=(e,{zIndex:t})=>({root:{"--lo-z-index":t?.toString()}}),Fm=U((e,t)=>{const n=H("LoadingOverlay",hd,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,transitionProps:c,loaderProps:u,overlayProps:d,visible:f,zIndex:m,attributes:h,...g}=n,y=Ke(),x=ne({name:"LoadingOverlay",classes:Lm,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:h,vars:l,varsResolver:VC}),b={...hd.overlayProps,...d};return p.jsx(Ft,{transition:"fade",...c,mounted:!!f,children:w=>p.jsxs(W,{...x("root",{style:w}),ref:t,...g,children:[p.jsx(eo,{...x("loader"),unstyled:i,...u}),p.jsx(Do,{...b,...x("overlay"),darkHidden:!0,unstyled:i,color:d?.color||y.white}),p.jsx(Do,{...b,...x("overlay"),lightHidden:!0,unstyled:i,color:d?.color||y.colors.dark[5]})]})})});Fm.classes=Lm;Fm.displayName="@mantine/core/LoadingOverlay";const[HC,jn]=nt("Menu component was not found in the tree");var Mn={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const xc=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,...i}=H("MenuDivider",null,e),l=jn();return p.jsx(W,{ref:t,...l.getStyles("divider",{className:o,style:r,styles:s,classNames:n}),...i})});xc.classes=Mn;xc.displayName="@mantine/core/MenuDivider";const wc=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,onMouseEnter:i,onMouseLeave:l,onKeyDown:c,children:u,...d}=H("MenuDropdown",null,e),f=v.useRef(null),m=jn(),h=qe(c,x=>{(x.key==="ArrowUp"||x.key==="ArrowDown")&&(x.preventDefault(),f.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),g=qe(i,()=>(m.trigger==="hover"||m.trigger==="click-hover")&&m.openDropdown()),y=qe(l,()=>(m.trigger==="hover"||m.trigger==="click-hover")&&m.closeDropdown());return p.jsxs(Be.Dropdown,{...d,onMouseEnter:g,onMouseLeave:y,role:"menu","aria-orientation":"vertical",ref:$e(t,f),...m.getStyles("dropdown",{className:o,style:r,styles:s,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:h,children:[m.withInitialFocusPlaceholder&&p.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),u]})});wc.classes=Mn;wc.displayName="@mantine/core/MenuDropdown";const[YC,oa]=Bt(),Cc=et((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,color:i,closeMenuOnClick:l,leftSection:c,rightSection:u,children:d,disabled:f,"data-disabled":m,...h}=H("MenuItem",null,e),g=jn(),y=oa(),x=Ke(),{dir:b}=en(),w=v.useRef(null),C=h,S=qe(C.onClick,()=>{m||(typeof l=="boolean"?l&&g.closeDropdownImmediately():g.closeOnItemClick&&g.closeDropdownImmediately())}),N=i?x.variantColorResolver({color:i,theme:x,variant:"light"}):void 0,D=i?Pt({color:i,theme:x}):null,k=qe(C.onKeyDown,I=>{I.key==="ArrowLeft"&&y&&(y.close(),y.focusParentItem())});return p.jsxs(Xe,{onMouseDown:I=>I.preventDefault(),...h,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles("item",{className:o,style:r,styles:s,classNames:n}),ref:$e(w,t),role:"menuitem",disabled:f,"data-menu-item":!0,"data-disabled":f||m||void 0,"data-mantine-stop-propagation":!0,onClick:S,onKeyDown:ws({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:g.loop,dir:b,orientation:"vertical",onKeyDown:k}),__vars:{"--menu-item-color":D?.isThemeColor&&D?.shade===void 0?`var(--mantine-color-${D.color}-6)`:N?.color,"--menu-item-hover":N?.hover},children:[c&&p.jsx("div",{...g.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"left",children:c}),d&&p.jsx("div",{...g.getStyles("itemLabel",{styles:s,classNames:n}),children:d}),u&&p.jsx("div",{...g.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"right",children:u})]})});Cc.classes=Mn;Cc.displayName="@mantine/core/MenuItem";const Sc=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,...i}=H("MenuLabel",null,e),l=jn();return p.jsx(W,{ref:t,...l.getStyles("label",{className:o,style:r,styles:s,classNames:n}),...i})});Sc.classes=Mn;Sc.displayName="@mantine/core/MenuLabel";const _c=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,onMouseEnter:i,onMouseLeave:l,onKeyDown:c,children:u,...d}=H("MenuSubDropdown",null,e),f=v.useRef(null),m=jn(),h=oa(),g=qe(i,h?.open),y=qe(l,h?.close);return p.jsx(Be.Dropdown,{...d,onMouseEnter:g,onMouseLeave:y,role:"menu","aria-orientation":"vertical",ref:$e(t,f),...m.getStyles("dropdown",{className:o,style:r,styles:s,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:u})});_c.classes=Mn;_c.displayName="@mantine/core/MenuSubDropdown";const Pc=et((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,color:i,leftSection:l,rightSection:c,children:u,disabled:d,"data-disabled":f,closeMenuOnClick:m,...h}=H("MenuSubItem",null,e),g=jn(),y=oa(),x=Ke(),{dir:b}=en(),w=v.useRef(null),C=h,S=i?x.variantColorResolver({color:i,theme:x,variant:"light"}):void 0,N=i?Pt({color:i,theme:x}):null,D=qe(C.onKeyDown,F=>{F.key==="ArrowRight"&&(y?.open(),y?.focusFirstItem()),F.key==="ArrowLeft"&&y?.parentContext&&(y.parentContext.close(),y.parentContext.focusParentItem())}),k=qe(C.onClick,()=>{!f&&m&&g.closeDropdownImmediately()}),I=qe(C.onMouseEnter,y?.open),A=qe(C.onMouseLeave,y?.close);return p.jsxs(Xe,{onMouseDown:F=>F.preventDefault(),...h,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles("item",{className:o,style:r,styles:s,classNames:n}),ref:$e(w,t),role:"menuitem",disabled:d,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:I,onMouseLeave:A,onClick:k,onKeyDown:ws({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:g.loop,dir:b,orientation:"vertical",onKeyDown:D}),__vars:{"--menu-item-color":N?.isThemeColor&&N?.shade===void 0?`var(--mantine-color-${N.color}-6)`:S?.color,"--menu-item-hover":S?.hover},children:[l&&p.jsx("div",{...g.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"left",children:l}),u&&p.jsx("div",{...g.getStyles("itemLabel",{styles:s,classNames:n}),children:u}),p.jsx("div",{...g.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"right",children:c||p.jsx(Xn,{...g.getStyles("chevron"),size:14})})]})});Pc.classes=Mn;Pc.displayName="@mantine/core/MenuSubItem";function zm({children:e,refProp:t}){if(!xs(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 jn(),p.jsx(Be.Target,{refProp:t,popupType:"menu",children:e})}zm.displayName="@mantine/core/MenuSubTarget";const WC={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function zo(e){const{children:t,closeDelay:n,openDelay:o,...r}=H("MenuSub",WC,e),s=Qe(),[a,{open:i,close:l}]=Ki(!1),c=oa(),{openDropdown:u,closeDropdown:d}=Rp({open:i,close:l,closeDelay:n,openDelay:o}),f=()=>window.setTimeout(()=>{document.getElementById(`${s}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),m=()=>window.setTimeout(()=>{document.getElementById(`${s}-target`)?.focus()},16);return p.jsx(YC,{value:{opened:a,close:d,open:u,focusFirstItem:f,focusParentItem:m,parentContext:c},children:p.jsx(Be,{opened:a,withinPortal:!1,withArrow:!1,id:s,...r,children:t})})}zo.extend=e=>e;zo.displayName="@mantine/core/MenuSub";zo.Target=zm;zo.Dropdown=_c;zo.Item=Pc;const GC={refProp:"ref"},Bm=v.forwardRef((e,t)=>{const{children:n,refProp:o,...r}=H("MenuTarget",GC,e),s=Nn(n);if(!s)throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=jn(),i=s.props,l=qe(i.onClick,()=>{a.trigger==="click"?a.toggleDropdown():a.trigger==="click-hover"&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=qe(i.onMouseEnter,()=>(a.trigger==="hover"||a.trigger==="click-hover")&&a.openDropdown()),u=qe(i.onMouseLeave,()=>{(a.trigger==="hover"||a.trigger==="click-hover"&&!a.openedViaClick)&&a.closeDropdown()});return p.jsx(Be.Target,{refProp:o,popupType:"menu",ref:t,...r,children:v.cloneElement(s,{onClick:l,onMouseEnter:c,onMouseLeave:u,"data-expanded":a.opened?!0:void 0})})});Bm.displayName="@mantine/core/MenuTarget";const KC={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function zt(e){const t=H("Menu",KC,e),{children:n,onOpen:o,onClose:r,opened:s,defaultOpened:a,trapFocus:i,onChange:l,closeOnItemClick:c,loop:u,closeOnEscape:d,trigger:f,openDelay:m,closeDelay:h,classNames:g,styles:y,unstyled:x,variant:b,vars:w,menuItemTabIndex:C,keepMounted:S,withInitialFocusPlaceholder:N,attributes:D,...k}=t,I=ne({name:"Menu",classes:Mn,props:t,classNames:g,styles:y,unstyled:x,attributes:D}),[A,F]=He({value:s,defaultValue:a,finalValue:!1,onChange:l}),[z,V]=v.useState(!1),$=()=>{F(!1),V(!1),A&&r?.()},O=()=>{F(!0),!A&&o?.()},R=()=>{A?$():O()},{openDropdown:E,closeDropdown:P}=Rp({open:O,close:$,closeDelay:h,openDelay:m}),j=T=>Pg("[data-menu-item]","[data-menu-dropdown]",T),{resolvedClassNames:M,resolvedStyles:_}=pt({classNames:g,styles:y,props:t});return p.jsx(HC,{value:{getStyles:I,opened:A,toggleDropdown:R,getItemIndex:j,openedViaClick:z,setOpenedViaClick:V,closeOnItemClick:c,closeDropdown:f==="click"?$:P,openDropdown:f==="click"?O:E,closeDropdownImmediately:$,loop:u,trigger:f,unstyled:x,menuItemTabIndex:C,withInitialFocusPlaceholder:N},children:p.jsx(Be,{returnFocus:!0,...k,opened:A,onChange:R,defaultOpened:a,trapFocus:S?!1:i,closeOnEscape:d,__staticSelector:"Menu",classNames:M,styles:_,unstyled:x,variant:b,keepMounted:S,children:n})})}zt.extend=e=>e;zt.withProps=Cf(zt);zt.classes=Mn;zt.displayName="@mantine/core/Menu";zt.Item=Cc;zt.Label=Sc;zt.Dropdown=wc;zt.Target=Bm;zt.Divider=xc;zt.Sub=zo;var hn={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const[UC,Bo]=nt("Modal component was not found in tree"),ra=U((e,t)=>{const n=H("ModalBody",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,...l}=n,c=Bo();return p.jsx(yl,{ref:t,...c.getStyles("body",{classNames:o,style:s,styles:a,className:r}),...l})});ra.classes=hn;ra.displayName="@mantine/core/ModalBody";const sa=U((e,t)=>{const n=H("ModalCloseButton",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,...l}=n,c=Bo();return p.jsx(bl,{ref:t,...c.getStyles("close",{classNames:o,style:s,styles:a,className:r}),...l})});sa.classes=hn;sa.displayName="@mantine/core/ModalCloseButton";const aa=U((e,t)=>{const n=H("ModalContent",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,children:l,__hidden:c,...u}=n,d=Bo(),f=d.scrollAreaComponent||wp;return p.jsx(xl,{...d.getStyles("content",{className:r,style:s,styles:a,classNames:o}),innerProps:d.getStyles("inner",{className:r,style:s,styles:a,classNames:o}),"data-full-screen":d.fullScreen||void 0,"data-modal-content":!0,"data-hidden":c||void 0,ref:t,...u,children:p.jsx(f,{style:{maxHeight:d.fullScreen?"100dvh":`calc(100dvh - (${K(d.yOffset)} * 2))`},children:l})})});aa.classes=hn;aa.displayName="@mantine/core/ModalContent";const ia=U((e,t)=>{const n=H("ModalHeader",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,...l}=n,c=Bo();return p.jsx(wl,{ref:t,...c.getStyles("header",{classNames:o,style:s,styles:a,className:r}),...l})});ia.classes=hn;ia.displayName="@mantine/core/ModalHeader";const la=U((e,t)=>{const n=H("ModalOverlay",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,...l}=n,c=Bo();return p.jsx(Cl,{ref:t,...c.getStyles("overlay",{classNames:o,style:s,styles:a,className:r}),...l})});la.classes=hn;la.displayName="@mantine/core/ModalOverlay";const qC={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:st("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},XC=(e,{radius:t,size:n,yOffset:o,xOffset:r})=>({root:{"--modal-radius":t===void 0?void 0:Ee(t),"--modal-size":he(n,"modal-size"),"--modal-y-offset":K(o),"--modal-x-offset":K(r)}}),ca=U((e,t)=>{const n=H("ModalRoot",qC,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,yOffset:c,scrollAreaComponent:u,radius:d,fullScreen:f,centered:m,xOffset:h,__staticSelector:g,attributes:y,...x}=n,b=ne({name:g,classes:hn,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:y,vars:l,varsResolver:XC});return p.jsx(UC,{value:{yOffset:c,scrollAreaComponent:u,getStyles:b,fullScreen:f},children:p.jsx(gl,{ref:t,...b("root"),"data-full-screen":f||void 0,"data-centered":m||void 0,"data-offset-scrollbars":u===Lt.Autosize||void 0,unstyled:i,...x})})});ca.classes=hn;ca.displayName="@mantine/core/ModalRoot";const[ZC,JC]=Bt();function Vm({children:e}){const[t,n]=v.useState([]),[o,r]=v.useState(st("modal"));return p.jsx(ZC,{value:{stack:t,addModal:(s,a)=>{n(i=>[...new Set([...i,s])]),r(i=>typeof a=="number"&&typeof i=="number"?Math.max(i,a):i)},removeModal:s=>n(a=>a.filter(i=>i!==s)),getZIndex:s=>`calc(${o} + ${t.indexOf(s)} + 1)`,currentId:t[t.length-1],maxZIndex:o},children:e})}Vm.displayName="@mantine/core/ModalStack";const ua=U((e,t)=>{const n=H("ModalTitle",null,e),{classNames:o,className:r,style:s,styles:a,vars:i,...l}=n,c=Bo();return p.jsx(Sl,{ref:t,...c.getStyles("title",{classNames:o,style:s,styles:a,className:r}),...l})});ua.classes=hn;ua.displayName="@mantine/core/ModalTitle";const QC={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:st("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Tt=U((e,t)=>{const{title:n,withOverlay:o,overlayProps:r,withCloseButton:s,closeButtonProps:a,children:i,radius:l,opened:c,stackId:u,zIndex:d,...f}=H("Modal",QC,e),m=JC(),h=!!n||s,g=m&&u?{closeOnEscape:m.currentId===u,trapFocus:m.currentId===u,zIndex:m.getZIndex(u)}:{},y=o===!1?!1:u&&m?m.currentId===u:c;return v.useEffect(()=>{m&&u&&(c?m.addModal(u,d||st("modal")):m.removeModal(u))},[c,u,d]),p.jsxs(ca,{ref:t,radius:l,opened:c,zIndex:m&&u?m.getZIndex(u):d,...f,...g,children:[o&&p.jsx(la,{visible:y,transitionProps:m&&u?{duration:0}:void 0,...r}),p.jsxs(aa,{radius:l,__hidden:m&&u&&c?u!==m.currentId:!1,children:[h&&p.jsxs(ia,{children:[n&&p.jsx(ua,{children:n}),s&&p.jsx(sa,{...a})]}),p.jsx(ra,{children:i})]})]})});Tt.classes=hn;Tt.displayName="@mantine/core/Modal";Tt.Root=ca;Tt.Overlay=la;Tt.Content=aa;Tt.Body=ra;Tt.Header=ia;Tt.Title=ua;Tt.CloseButton=sa;Tt.Stack=Vm;const[eS,Rc]=Bt();var da={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const[tS,nS]=Bt(),oS=(e,{gap:t},{size:n})=>({group:{"--pg-gap":t!==void 0?he(t):he(n,"pg-gap")}}),Dc=U((e,t)=>{const n=H("PillGroup",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,size:c,disabled:u,attributes:d,...f}=n,h=Rc()?.size||c||void 0,g=ne({name:"PillGroup",classes:da,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:d,vars:l,varsResolver:oS,stylesCtx:{size:h},rootSelector:"group"});return p.jsx(tS,{value:{size:h,disabled:u},children:p.jsx(W,{ref:t,size:h,...g("group"),...f})})});Dc.classes=da;Dc.displayName="@mantine/core/PillGroup";const rS={variant:"default"},sS=(e,{radius:t},{size:n})=>({root:{"--pill-fz":he(n,"pill-fz"),"--pill-height":he(n,"pill-height"),"--pill-radius":t===void 0?void 0:Ee(t)}}),Jn=U((e,t)=>{const n=H("Pill",rS,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,variant:c,children:u,withRemoveButton:d,onRemove:f,removeButtonProps:m,radius:h,size:g,disabled:y,mod:x,attributes:b,...w}=n,C=nS(),S=Rc(),N=g||C?.size||void 0,D=S?.variant==="filled"?"contrast":c||"default",k=ne({name:"Pill",classes:da,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:b,vars:l,varsResolver:sS,stylesCtx:{size:N}});return p.jsxs(W,{component:"span",ref:t,variant:D,size:N,...k("root",{variant:D}),mod:[{"with-remove":d&&!y,disabled:y||C?.disabled},x],...w,children:[p.jsx("span",{...k("label"),children:u}),d&&p.jsx(Tn,{variant:"transparent",radius:h,tabIndex:-1,"aria-hidden":!0,unstyled:i,...m,...k("remove",{className:m?.className,style:m?.style}),onMouseDown:I=>{I.preventDefault(),I.stopPropagation(),m?.onMouseDown?.(I)},onClick:I=>{I.stopPropagation(),f?.(),m?.onClick?.(I)}})]})});Jn.classes=da;Jn.displayName="@mantine/core/Pill";Jn.Group=Dc;var Hm={field:"m_45c4369d"};const aS={type:"visible"},Nc=U((e,t)=>{const n=H("PillsInputField",aS,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,type:c,disabled:u,id:d,pointer:f,mod:m,attributes:h,...g}=n,y=Rc(),x=Oo(),b=ne({name:"PillsInputField",classes:Hm,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:h,rootSelector:"field"}),w=u||y?.disabled;return p.jsx(W,{component:"input",ref:$e(t,y?.fieldRef),"data-type":c,disabled:w,mod:[{disabled:w,pointer:f},m],...b("field"),...g,id:x?.inputId||d,"aria-invalid":y?.hasError,"aria-describedby":x?.describedBy,type:"text",onMouseDown:C=>!f&&C.stopPropagation()})});Nc.classes=Hm;Nc.displayName="@mantine/core/PillsInputField";const iS={size:"sm"},To=U((e,t)=>{const n=H("PillsInput",iS,e),{children:o,onMouseDown:r,onClick:s,size:a,disabled:i,__staticSelector:l,error:c,variant:u,...d}=n,f=v.useRef(null);return p.jsx(eS,{value:{fieldRef:f,size:a,disabled:i,hasError:!!c,variant:u},children:p.jsx(it,{size:a,error:c,variant:u,component:"div",ref:t,"data-no-overflow":!0,onMouseDown:m=>{m.preventDefault(),r?.(m),f.current?.focus()},onClick:m=>{m.preventDefault(),m.currentTarget.closest("fieldset")?.disabled||(f.current?.focus(),s?.(m))},...d,multiline:!0,disabled:i,__staticSelector:l||"PillsInput",withAria:!1,children:o})})});To.displayName="@mantine/core/PillsInput";To.Field=Nc;function lS({data:e,value:t}){const n=t.map(r=>r.trim().toLowerCase());return e.reduce((r,s)=>(Zn(s)?r.push({group:s.group,items:s.items.filter(a=>n.indexOf(a.value.toLowerCase().trim())===-1)}):n.indexOf(s.value.toLowerCase().trim())===-1&&r.push(s),r),[])}const vd={xs:41,sm:50,md:60,lg:72,xl:89},cS={maxValues:1/0,withCheckIcon:!0,checkIconPosition:"left",hiddenInputValuesDivider:",",clearSearchOnChange:!0,openOnFocus:!0,size:"sm"},Ym=U((e,t)=>{const n=H("MultiSelect",cS,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,size:c,value:u,defaultValue:d,onChange:f,onKeyDown:m,variant:h,data:g,dropdownOpened:y,defaultDropdownOpened:x,onDropdownOpen:b,onDropdownClose:w,selectFirstOptionOnChange:C,selectFirstOptionOnDropdownOpen:S,onOptionSubmit:N,comboboxProps:D,filter:k,limit:I,withScrollArea:A,maxDropdownHeight:F,searchValue:z,defaultSearchValue:V,onSearchChange:$,readOnly:O,disabled:R,onFocus:E,onBlur:P,radius:j,rightSection:M,rightSectionWidth:_,rightSectionPointerEvents:T,rightSectionProps:L,leftSection:B,leftSectionWidth:G,leftSectionPointerEvents:q,leftSectionProps:X,inputContainer:le,inputWrapperOrder:J,withAsterisk:ee,labelProps:ce,descriptionProps:re,errorProps:ae,wrapperProps:pe,description:ge,label:ie,error:te,maxValues:Z,searchable:oe,nothingFoundMessage:be,withCheckIcon:_e,withAlignedLabels:me,checkIconPosition:we,hidePickedOptions:ke,withErrorStyles:Pe,name:De,form:Y,id:ue,clearable:Te,clearButtonProps:Me,hiddenInputProps:de,placeholder:se,hiddenInputValuesDivider:Ne,required:ve,mod:xe,renderOption:Ie,onRemove:ot,onClear:fe,scrollAreaProps:lt,chevronColor:tt,attributes:Fe,clearSearchOnChange:mt,openOnFocus:at,...so}=n,gn=Qe(ue),sn=Hs(g),Ue=xr(sn),yn=v.useRef({}),rt=wr({opened:y,defaultOpened:x,onDropdownOpen:()=>{b?.(),S&&rt.selectFirstOption()},onDropdownClose:()=>{w?.(),rt.resetSelectedOption()}}),{styleProps:ao,rest:{type:jr,autoComplete:ye,...Ye}}=fn(so),[Le,Ht]=He({value:u,defaultValue:d,finalValue:[],onChange:f}),[xt,Uo]=He({value:z,defaultValue:V,finalValue:"",onChange:$}),Ln=Oe=>{Uo(Oe),rt.resetSelectedOption()},io=ne({name:"MultiSelect",classes:{},props:n,classNames:o,styles:a,unstyled:i,attributes:Fe}),{resolvedClassNames:qo,resolvedStyles:Mr}=pt({props:n,styles:a,classNames:o}),Ma=Oe=>{m?.(Oe),Oe.key===" "&&!oe&&(Oe.preventDefault(),rt.toggleDropdown()),Oe.key==="Backspace"&&xt.length===0&&Le.length>0&&(ot?.(Le[Le.length-1]),Ht(Le.slice(0,Le.length-1)))},Ia=Le.map((Oe,Aa)=>{const Ev=Ue[Oe]||yn.current[Oe];return p.jsx(Jn,{withRemoveButton:!O&&!Ue[Oe]?.disabled,onRemove:()=>{Ht(Le.filter(Tv=>Oe!==Tv)),ot?.(Oe)},unstyled:i,disabled:R,...io("pill"),children:Ev?.label||Oe},`${Oe}-${Aa}`)});v.useEffect(()=>{C&&rt.selectFirstOption()},[C,xt]),v.useEffect(()=>{Le.forEach(Oe=>{Oe in Ue&&(yn.current[Oe]=Ue[Oe])})},[Ue,Le]);const Oa=p.jsx(Ce.ClearButton,{...Me,onClear:()=>{fe?.(),Ht([]),Ln("")}}),Re=lS({data:sn,value:Le}),kt=Te&&Le.length>0&&!R&&!O,Yt=kt?{paddingInlineEnd:vd[c]??vd.sm}:void 0;return p.jsxs(p.Fragment,{children:[p.jsxs(Ce,{store:rt,classNames:qo,styles:Mr,unstyled:i,size:c,readOnly:O,__staticSelector:"MultiSelect",attributes:Fe,onOptionSubmit:Oe=>{N?.(Oe),mt&&Ln(""),rt.updateSelectedOptionIndex("selected"),Le.includes(Ue[Oe].value)?(Ht(Le.filter(Aa=>Aa!==Ue[Oe].value)),ot?.(Ue[Oe].value)):Le.lengthoe?rt.openDropdown():rt.toggleDropdown(),"data-expanded":rt.dropdownOpened||void 0,id:gn,required:ve,mod:xe,attributes:Fe,children:p.jsxs(Jn.Group,{attributes:Fe,disabled:R,unstyled:i,...io("pillsList",{style:Yt}),children:[Ia,p.jsx(Ce.EventsTarget,{autoComplete:ye,children:p.jsx(To.Field,{...Ye,ref:t,id:gn,placeholder:se,type:!oe&&!se?"hidden":"visible",...io("inputField"),unstyled:i,onFocus:Oe=>{E?.(Oe),at&&oe&&rt.openDropdown()},onBlur:Oe=>{P?.(Oe),rt.closeDropdown(),Ln("")},onKeyDown:Ma,value:xt,onChange:Oe=>{Ln(Oe.currentTarget.value),oe&&rt.openDropdown(),C&&rt.selectFirstOption()},disabled:R,readOnly:O||!oe,pointer:!oe})})]})})}),p.jsx(Gs,{data:ke?Re:sn,hidden:O||R,filter:k,search:xt,limit:I,hiddenWhenEmpty:!be,withScrollArea:A,maxDropdownHeight:F,filterOptions:oe,value:Le,checkIconPosition:we,withCheckIcon:_e,withAlignedLabels:me,nothingFoundMessage:be,unstyled:i,labelId:ie?`${gn}-label`:void 0,"aria-label":ie?void 0:so["aria-label"],renderOption:Ie,scrollAreaProps:lt})]}),p.jsx(Ce.HiddenInput,{name:De,valuesDivider:Ne,value:Le,form:Y,disabled:R,...de})]})});Ym.classes={...it.classes,...Ce.classes};Ym.displayName="@mantine/core/MultiSelect";var Wm={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const uS=(e,{variant:t,color:n,childrenOffset:o,autoContrast:r})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:t||"light",autoContrast:r});return{root:{"--nl-bg":n||t?s.background:void 0,"--nl-hover":n||t?s.hover:void 0,"--nl-color":n||t?s.color:void 0},children:{"--nl-offset":ze(o)}}},Gm=et((e,t)=>{const n=H("NavLink",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,opened:c,defaultOpened:u,onChange:d,children:f,active:m,disabled:h,leftSection:g,rightSection:y,label:x,description:b,disableRightSectionRotation:w,noWrap:C,childrenOffset:S,autoContrast:N,mod:D,attributes:k,onClick:I,onKeyDown:A,...F}=n,z=ne({name:"NavLink",props:n,classes:Wm,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:k,vars:l,varsResolver:uS}),[V,$]=He({value:c,defaultValue:u,finalValue:!1,onChange:d}),O=!!f,R=E=>{I?.(E),O&&(E.preventDefault(),$(!V))};return p.jsxs(p.Fragment,{children:[p.jsxs(Xe,{...z("root"),component:"a",ref:t,onClick:R,onKeyDown:E=>{A?.(E),E.nativeEvent.code==="Space"&&O&&(E.preventDefault(),$(!V))},unstyled:i,mod:[{disabled:h,active:m,expanded:V},D],...F,children:[g&&p.jsx(W,{component:"span",...z("section"),mod:{position:"left"},children:g}),p.jsxs(W,{...z("body"),mod:{"no-wrap":C},children:[p.jsx(W,{component:"span",...z("label"),children:x}),p.jsx(W,{component:"span",mod:{active:m},...z("description"),children:b})]}),(O||y!==void 0)&&p.jsx(W,{...z("section"),component:"span",mod:{rotate:V&&!w,position:"right"},children:O?y!==void 0?y:p.jsx(Xn,{...z("chevron")}):y})]}),O&&p.jsx(Qi,{in:V,...z("collapse"),children:p.jsx("div",{...z("children"),children:f})})]})});Gm.classes=Wm;Gm.displayName="@mantine/core/NavLink";var Km={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const dS={withCloseButton:!0},fS=(e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:Ee(t),"--notification-color":n?Ae(n,e):void 0}}),Ec=U((e,t)=>{const n=H("Notification",dS,e),{className:o,color:r,radius:s,loading:a,withCloseButton:i,withBorder:l,title:c,icon:u,children:d,onClose:f,closeButtonProps:m,classNames:h,style:g,styles:y,unstyled:x,vars:b,mod:w,loaderProps:C,role:S,attributes:N,...D}=n,k=ne({name:"Notification",classes:Km,props:n,className:o,style:g,classNames:h,styles:y,unstyled:x,attributes:N,vars:b,varsResolver:fS});return p.jsxs(W,{...k("root"),mod:[{"data-with-icon":!!u||a,"data-with-border":l},w],ref:t,role:S||"alert",...D,children:[u&&!a&&p.jsx("div",{...k("icon"),children:u}),a&&p.jsx(eo,{size:28,color:r,...C,...k("loader")}),p.jsxs("div",{...k("body"),children:[c&&p.jsx("div",{...k("title"),children:c}),p.jsx(W,{...k("description"),mod:{"data-with-title":!!c},children:d})]}),i&&p.jsx(Tn,{iconSize:16,color:"gray",...m,unstyled:x,onClick:f,...k("closeButton")})]})});Ec.classes=Km;Ec.displayName="@mantine/core/Notification";function Um(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r=i?r=r+gd("0",a-i):r=(r.substring(0,a)||"0")+"."+r.substring(a),n+r}function yd(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var o=(e.indexOf(".")!==-1||n)&&t,r=Tc(e),s=r.beforeDecimal,a=r.afterDecimal,i=r.hasNegation,l=parseFloat("0."+(a||"0")),c=a.length<=t?"0."+a:l.toFixed(t),u=c.split("."),d=s;s&&Number(u[0])&&(d=s.split("").reverse().reduce(function(g,y,x){return g.length>x?(Number(g[0])+Number(y)).toString()+g.substring(1,g.length):y+g},u[0]));var f=Zm(u[1]||"",t,n),m=i?"-":"",h=o?".":"";return""+m+d+h+f}function Yn(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Qm=pS(function(e,t){for(var n=0,o=0,r=e.length,s=t.length;e[n]===t[n]&&nn&&r-o>n;)o++;return{from:{start:n,end:r-o},to:{start:n,end:s-o}}}),bS=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function xS(e,t,n){return Math.min(Math.max(e,t),n)}function ci(e){return Math.max(e.selectionStart,e.selectionEnd)}function wS(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function CS(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function SS(e){var t=e.currentValue,n=e.formattedValue,o=e.currentValueIndex,r=e.formattedValueIndex;return t[o]===n[r]}function _S(e,t,n,o,r,s,a){a===void 0&&(a=SS);var i=r.findIndex(function(C){return C}),l=e.slice(0,i);!t&&!n.startsWith(l)&&(t=l,n=l+n,o=o+l.length);for(var c=n.length,u=e.length,d={},f=new Array(c),m=0;m0&&f[x]===-1;)x--;var w=x===-1||f[x]===-1?0:f[x]+1;return w>b?b:o-w=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=r&&!n[t];)t++;t>r&&(t=n.lastIndexOf(!0))}return t===-1&&(t=r),t}function PS(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,o=t.length;nD.length-a.length||NF||d>e.length-a.length)&&(A=d),e=e.substring(0,A),e=ES(w?"-"+e:e,r),e=(e.match(TS(h))||[]).join("");var z=e.indexOf(h);e=e.replace(new RegExp(Xm(h),"g"),function(E,P){return P===z?".":""});var V=Tc(e,r),$=V.beforeDecimal,O=V.afterDecimal,R=V.addNegation;return c.end-c.start_?!1:M>=G.start&&M=t,r=n===void 0||e<=n;return o&&r}const VS={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[".",","]},HS=(e,{size:t})=>({controls:{"--ni-chevron-size":he(t,"ni-chevron-size")}});function YS(e,t,n){const o=e.toString(),r=th.test(o),s=o.replace(/^0+(?=\d)/,""),a=parseFloat(s);if(Number.isNaN(a))return s;if(a>Number.MAX_SAFE_INTEGER)return t!==void 0?t:s;const i=gt(a,n,t);return r?`${i.toString().replace(/^0+(?=\d)/,"")}.`:i}const nh=U((e,t)=>{const n=H("NumberInput",VS,e),{className:o,classNames:r,styles:s,unstyled:a,vars:i,onChange:l,onValueChange:c,value:u,defaultValue:d,max:f,min:m,step:h,hideControls:g,rightSection:y,isAllowed:x,clampBehavior:b,onBlur:w,allowDecimal:C,decimalScale:S,onKeyDown:N,onKeyDownCapture:D,handlersRef:k,startValue:I,disabled:A,rightSectionPointerEvents:F,allowNegative:z,readOnly:V,size:$,rightSectionWidth:O,stepHoldInterval:R,stepHoldDelay:E,allowLeadingZeros:P,withKeyboardEvents:j,trimLeadingZeroesOnBlur:M,allowedDecimalSeparators:_,attributes:T,...L}=n,B=ne({name:"NumberInput",classes:Ii,props:n,classNames:r,styles:s,unstyled:a,attributes:T,vars:i,varsResolver:HS}),{resolvedClassNames:G,resolvedStyles:q}=pt({classNames:r,styles:s,props:n}),[X,le]=He({value:u,defaultValue:d,finalValue:"",onChange:l}),J=E!==void 0&&R!==void 0,ee=v.useRef(null),ce=v.useRef(null),re=v.useRef(0),ae=(Y,ue)=>{ue.source==="event"&&le(BS(Y.floatValue,Y.value)&&!AS.test(Y.value)&&!(P&&LS.test(Y.value))&&!FS.test(Y.value)&&!th.test(Y.value)?Y.floatValue:Y.value),c?.(Y,ue)},pe=Y=>{const ue=String(Y).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return ue?Math.max(0,(ue[1]?ue[1].length:0)-(ue[2]?+ue[2]:0)):0},ge=Y=>{ee.current&&typeof Y<"u"&&ee.current.setSelectionRange(Y,Y)},ie=v.useRef(cs);ie.current=()=>{if(!ui(X))return;let Y;const ue=pe(X),Te=pe(h),Me=Math.max(ue,Te),de=10**Me;if(!Oi(X)&&(typeof X!="number"||Number.isNaN(X)))Y=gt(I,m,f);else if(f!==void 0){const Ne=(Math.round(Number(X)*de)+Math.round(h*de))/de;Y=Ne<=f?Ne:f}else Y=(Math.round(Number(X)*de)+Math.round(h*de))/de;const se=Y.toFixed(Me);le(parseFloat(se)),c?.({floatValue:parseFloat(se),formattedValue:se,value:se},{source:"increment"}),setTimeout(()=>ge(ee.current?.value.length),0)};const te=v.useRef(cs);te.current=()=>{if(!ui(X))return;let Y;const ue=m!==void 0?m:z?Number.MIN_SAFE_INTEGER:0,Te=pe(X),Me=pe(h),de=Math.max(Te,Me),se=10**de;if(!Oi(X)&&typeof X!="number"||Number.isNaN(X))Y=gt(I,ue,f);else{const ve=(Math.round(Number(X)*se)-Math.round(h*se))/se;Y=ue!==void 0&&vege(ee.current?.value.length),0)};const Z=Y=>{const ue=Y.clipboardData.getData("text"),Te=L.decimalSeparator||".",Me=(_||[".",","]).filter(de=>de!==Te);if(Me.some(de=>ue.includes(de))){Y.preventDefault();let de=ue;Me.forEach(Ne=>{de=de.split(Ne).join(Te)});const se=ee.current;if(se){const Ne=se.selectionStart??0,ve=se.selectionEnd??0,xe=se.value,Ie=xe.substring(0,Ne)+de+xe.substring(ve);Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set?.call(se,Ie),se.dispatchEvent(new Event("change",{bubbles:!0}));const fe=Ne+de.length;setTimeout(()=>ge(fe),0)}}L.onPaste?.(Y)},oe=Y=>{N?.(Y),!(V||!j)&&(Y.key==="ArrowUp"&&(Y.preventDefault(),ie.current?.()),Y.key==="ArrowDown"&&(Y.preventDefault(),te.current?.()))},be=Y=>{if(D?.(Y),Y.key==="Backspace"){const ue=ee.current;ue&&ue.selectionStart===0&&ue.selectionStart===ue.selectionEnd&&(Y.preventDefault(),window.setTimeout(()=>ge(0),0))}},_e=Y=>{let ue=X;b==="blur"&&typeof ue=="number"&&(ue=gt(ue,m,f)),M&&typeof ue=="string"&&pe(ue)<15&&(ue=YS(ue,f,m)),X!==ue&&le(ue),w?.(Y)};ar(k,{increment:ie.current,decrement:te.current});const me=Y=>{Y?ie.current?.():te.current?.(),re.current+=1},we=Y=>{if(me(Y),J){const ue=typeof R=="number"?R:R(re.current);ce.current=window.setTimeout(()=>we(Y),ue)}},ke=(Y,ue)=>{Y.preventDefault(),ee.current?.focus(),me(ue),J&&(ce.current=window.setTimeout(()=>we(ue),E))},Pe=()=>{ce.current&&window.clearTimeout(ce.current),ce.current=null,re.current=0},De=p.jsxs("div",{...B("controls"),children:[p.jsx(Xe,{...B("control"),tabIndex:-1,"aria-hidden":!0,disabled:A||typeof X=="number"&&f!==void 0&&X>=f,mod:{direction:"up"},onMouseDown:Y=>Y.preventDefault(),onPointerDown:Y=>{ke(Y,!0)},onPointerUp:Pe,onPointerLeave:Pe,children:p.jsx(wd,{direction:"up"})}),p.jsx(Xe,{...B("control"),tabIndex:-1,"aria-hidden":!0,disabled:A||typeof X=="number"&&m!==void 0&&X<=m,mod:{direction:"down"},onMouseDown:Y=>Y.preventDefault(),onPointerDown:Y=>{ke(Y,!1)},onPointerUp:Pe,onPointerLeave:Pe,children:p.jsx(wd,{direction:"down"})})]});return p.jsx(it,{component:OS,allowNegative:z,className:Ze(Ii.root,o),size:$,inputMode:"decimal",...L,readOnly:V,disabled:A,value:X,getInputRef:$e(t,ee),onValueChange:ae,rightSection:g||V||!ui(X)?y:y||De,classNames:G,styles:q,unstyled:a,__staticSelector:"NumberInput",decimalScale:C?S:0,onPaste:Z,onKeyDown:oe,onKeyDownCapture:be,rightSectionPointerEvents:F??(A?"none":void 0),rightSectionWidth:O??`var(--ni-right-section-width-${$||"sm"})`,allowLeadingZeros:P,allowedDecimalSeparators:_,onBlur:_e,attributes:T,isAllowed:Y=>b==="strict"?x?x(Y)&&Cd(Y.floatValue,m,f):Cd(Y.floatValue,m,f):x?x(Y):!0})});nh.classes={...it.classes,...Ii};nh.displayName="@mantine/core/NumberInput";var _r={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};const[WS,pa]=nt("Pagination.Root component was not found in tree"),GS={withPadding:!0},Pr=U((e,t)=>{const n=H("PaginationControl",GS,e),{classNames:o,className:r,style:s,styles:a,vars:i,active:l,disabled:c,withPadding:u,mod:d,...f}=n,m=pa(),h=c||m.disabled;return p.jsx(Xe,{ref:t,disabled:h,mod:[{active:l,disabled:h,"with-padding":u},d],...m.getStyles("control",{className:r,style:s,classNames:o,styles:a,active:!h}),...f})});Pr.classes=_r;Pr.displayName="@mantine/core/PaginationControl";function Rr({style:e,children:t,path:n,...o}){return p.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)",...e},...o,children:p.jsx("path",{d:n,fill:"currentColor"})})}const KS=e=>p.jsx(Rr,{...e,path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"}),US=e=>p.jsx(Rr,{...e,path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"}),qS=e=>p.jsx(Rr,{...e,path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"}),XS=e=>p.jsx(Rr,{...e,path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"}),ZS=e=>p.jsx(Rr,{...e,path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"}),JS={icon:ZS},ma=U((e,t)=>{const n=H("PaginationDots",JS,e),{classNames:o,className:r,style:s,styles:a,vars:i,icon:l,...c}=n,u=pa();return p.jsx(W,{ref:t,...u.getStyles("dots",{className:r,style:s,styles:a,classNames:o}),...c,children:p.jsx(l,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});ma.classes=_r;ma.displayName="@mantine/core/PaginationDots";function ha({icon:e,name:t,action:n,type:o}){const r={icon:e},s=v.forwardRef((a,i)=>{const{icon:l,...c}=H(t,r,a),u=pa(),d=o==="next"?u.active===u.total:u.active===1;return p.jsx(Pr,{disabled:u.disabled||d,ref:i,onClick:u[n],withPadding:!1,...c,children:p.jsx(l,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});return s.displayName=`@mantine/core/${t}`,s}const oh=ha({icon:KS,name:"PaginationNext",action:"onNext",type:"next"}),rh=ha({icon:US,name:"PaginationPrevious",action:"onPrevious",type:"previous"}),sh=ha({icon:qS,name:"PaginationFirst",action:"onFirst",type:"previous"}),ah=ha({icon:XS,name:"PaginationLast",action:"onLast",type:"next"});function kc({dotsIcon:e}){const t=pa(),n=t.range.map((o,r)=>o==="dots"?p.jsx(ma,{icon:e},r):p.jsx(Pr,{active:o===t.active,"aria-current":o===t.active?"page":void 0,onClick:()=>t.onChange(o),disabled:t.disabled,...t.getItemProps?.(o),children:t.getItemProps?.(o)?.children??o},r));return p.jsx(p.Fragment,{children:n})}kc.displayName="@mantine/core/PaginationItems";const QS={siblings:1,boundaries:1},e_=(e,{size:t,radius:n,color:o,autoContrast:r})=>({root:{"--pagination-control-radius":n===void 0?void 0:Ee(n),"--pagination-control-size":he(t,"pagination-control-size"),"--pagination-control-fz":Ge(t),"--pagination-active-bg":o?Ae(o,e):void 0,"--pagination-active-color":En(r,e)?Qt({color:o,theme:e,autoContrast:r}):void 0}}),va=U((e,t)=>{const n=H("PaginationRoot",QS,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,total:c,value:u,defaultValue:d,onChange:f,disabled:m,siblings:h,boundaries:g,color:y,radius:x,onNextPage:b,onPreviousPage:w,onFirstPage:C,onLastPage:S,getItemProps:N,autoContrast:D,attributes:k,...I}=n,A=ne({name:"Pagination",classes:_r,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:k,vars:l,varsResolver:e_}),{range:F,setPage:z,next:V,previous:$,active:O,first:R,last:E}=Wg({page:u,initialPage:d,onChange:f,total:c,siblings:h,boundaries:g}),P=qe(b,V),j=qe(w,$),M=qe(C,R),_=qe(S,E);return p.jsx(WS,{value:{total:c,range:F,active:O,disabled:m,getItemProps:N,onChange:z,onNext:P,onPrevious:j,onFirst:M,onLast:_,getStyles:A},children:p.jsx(W,{ref:t,...A("root"),...I})})});va.classes=_r;va.displayName="@mantine/core/PaginationRoot";const t_={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},on=U((e,t)=>{const n=H("Pagination",t_,e),{withEdges:o,withControls:r,getControlProps:s,nextIcon:a,previousIcon:i,lastIcon:l,firstIcon:c,dotsIcon:u,total:d,gap:f,hideWithOnePage:m,withPages:h,...g}=n;return d<=0||m&&d===1?null:p.jsx(va,{ref:t,total:d,...g,children:p.jsxs(Fs,{gap:f,children:[o&&p.jsx(sh,{icon:c,...s?.("first")}),r&&p.jsx(rh,{icon:i,...s?.("previous")}),h&&p.jsx(kc,{dotsIcon:u}),r&&p.jsx(oh,{icon:a,...s?.("next")}),o&&p.jsx(ah,{icon:l,...s?.("last")})]})})});on.classes=_r;on.displayName="@mantine/core/Pagination";on.Root=va;on.Control=Pr;on.Dots=ma;on.First=sh;on.Last=ah;on.Next=oh;on.Previous=rh;on.Items=kc;var Ai={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const n_=({reveal:e})=>p.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:p.jsx("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}),o_={visibilityToggleIcon:n_},r_=(e,{size:t})=>({root:{"--psi-icon-size":he(t,"psi-icon-size"),"--psi-button-size":he(t,"psi-button-size")}}),ih=U((e,t)=>{const n=H("PasswordInput",o_,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,required:c,error:u,leftSection:d,disabled:f,id:m,variant:h,inputContainer:g,description:y,label:x,size:b,errorProps:w,descriptionProps:C,labelProps:S,withAsterisk:N,inputWrapperOrder:D,wrapperProps:k,radius:I,rightSection:A,rightSectionWidth:F,rightSectionPointerEvents:z,leftSectionWidth:V,visible:$,defaultVisible:O,onVisibilityChange:R,visibilityToggleIcon:E,visibilityToggleButtonProps:P,rightSectionProps:j,leftSectionProps:M,leftSectionPointerEvents:_,withErrorStyles:T,mod:L,attributes:B,...G}=n,q=Qe(m),[X,le]=He({value:$,defaultValue:O,finalValue:!1,onChange:R}),J=()=>le(!X),ee=ne({name:"PasswordInput",classes:Ai,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:B,vars:l,varsResolver:r_}),{resolvedClassNames:ce,resolvedStyles:re}=pt({classNames:o,styles:a,props:n}),{styleProps:ae,rest:pe}=fn(G),ge=w?.id||`${q}-error`,ie=C?.id||`${q}-description`,oe=`${!!u&&typeof u!="boolean"?ge:""} ${!!y?ie:""}`,be=oe.trim().length>0?oe.trim():void 0,_e=p.jsx(Io,{...ee("visibilityToggle"),disabled:f,radius:I,"aria-hidden":!P,"aria-pressed":X,tabIndex:-1,...P,variant:P?.variant??"subtle",color:"gray",unstyled:i,onTouchEnd:me=>{me.preventDefault(),P?.onTouchEnd?.(me),J()},onMouseDown:me=>{me.preventDefault(),P?.onMouseDown?.(me),J()},onKeyDown:me=>{P?.onKeyDown?.(me),me.key===" "&&(me.preventDefault(),J())},children:p.jsx(E,{reveal:X})});return p.jsx(je.Wrapper,{required:c,id:q,label:x,error:u,description:y,size:b,classNames:ce,styles:re,__staticSelector:"PasswordInput",__stylesApiProps:n,unstyled:i,withAsterisk:N,inputWrapperOrder:D,inputContainer:g,variant:h,labelProps:{...S,htmlFor:q},descriptionProps:{...C,id:ie},errorProps:{...w,id:ge},mod:L,attributes:B,...ee("root"),...ae,...k,children:p.jsx(je,{component:"div",error:u,leftSection:d,size:b,classNames:{...ce,input:Ze(Ai.input,ce.input)},styles:re,radius:I,disabled:f,__staticSelector:"PasswordInput",__stylesApiProps:n,rightSectionWidth:F,rightSection:A??_e,variant:h,unstyled:i,leftSectionWidth:V,rightSectionPointerEvents:z||"all",rightSectionProps:j,leftSectionProps:M,leftSectionPointerEvents:_,withAria:!1,withErrorStyles:T,attributes:B,children:p.jsx("input",{required:c,"data-invalid":!!u||void 0,"data-with-left-section":!!d||void 0,...ee("innerInput"),disabled:f,id:q,ref:t,...pe,"aria-describedby":be,autoComplete:pe.autoComplete||"off",type:X?"text":"password"})})})});ih.classes={...it.classes,...Ai};ih.displayName="@mantine/core/PasswordInput";var Dr={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd","stripes-animation-vertical":"m_e0fb7a86",label:"m_91e40b74"};const[s_,lh]=nt("Progress.Root component was not found in tree"),$c=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,...i}=H("ProgressLabel",null,e),l=lh();return p.jsx(W,{ref:t,...l.getStyles("label",{className:o,style:r,classNames:n,styles:s}),...i})});$c.classes=Dr;$c.displayName="@mantine/core/ProgressLabel";const a_=(e,{size:t,radius:n,transitionDuration:o})=>({root:{"--progress-size":he(t,"progress-size"),"--progress-radius":n===void 0?void 0:Ee(n),"--progress-transition-duration":typeof o=="number"?`${o}ms`:void 0}}),ga=U((e,t)=>{const n=H("ProgressRoot",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,autoContrast:c,transitionDuration:u,orientation:d,attributes:f,mod:m,...h}=n,g=ne({name:"Progress",classes:Dr,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:f,vars:l,varsResolver:a_});return p.jsx(s_,{value:{getStyles:g,autoContrast:c},children:p.jsx(W,{ref:t,mod:[{orientation:d},m],...g("root"),...h})})});ga.classes=Dr;ga.displayName="@mantine/core/ProgressRoot";const i_={withAria:!0},ya=U((e,t)=>{const{classNames:n,className:o,style:r,styles:s,vars:a,value:i,withAria:l,color:c,striped:u,animated:d,mod:f,...m}=H("ProgressSection",i_,e),h=lh(),g=Ke(),y=l?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":i,"aria-valuetext":`${i}%`}:{};return p.jsx(W,{ref:t,...h.getStyles("section",{className:o,classNames:n,styles:s,style:r}),...m,...y,mod:[{striped:u||d,animated:d},f],__vars:{"--progress-section-size":`${i}%`,"--progress-section-color":Ae(c,g),"--progress-label-color":En(h.autoContrast,g)?Qt({color:c,theme:g,autoContrast:h.autoContrast}):void 0}})});ya.classes=Dr;ya.displayName="@mantine/core/ProgressSection";const Vo=U((e,t)=>{const n=H("Progress",null,e),{value:o,classNames:r,styles:s,vars:a,color:i,striped:l,animated:c,"aria-label":u,...d}=n,{resolvedClassNames:f,resolvedStyles:m}=pt({classNames:r,styles:s,props:n});return p.jsx(ga,{ref:t,classNames:f,styles:m,vars:a,...d,children:p.jsx(ya,{value:o,color:i,striped:l,animated:c,"aria-label":u})})});Vo.classes=Dr;Vo.displayName="@mantine/core/Progress";Vo.Section=ya;Vo.Root=ga;Vo.Label=$c;var ch={root:"m_f3f1af94",inner:"m_89c4f5e4",icon:"m_f3ed6b2b",radio:"m_8a3dbb89","radio--outline":"m_1bfe9d39"};const[l_,uh]=Bt(),[c_,u_]=Bt();var dh={card:"m_9dc8ae12"};const d_={withBorder:!0},f_=(e,{radius:t})=>({card:{"--card-radius":Ee(t)}}),jc=U((e,t)=>{const n=H("RadioCard",d_,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,checked:c,mod:u,withBorder:d,value:f,onClick:m,name:h,onKeyDown:g,attributes:y,...x}=n,b=ne({name:"RadioCard",classes:dh,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:y,vars:l,varsResolver:f_,rootSelector:"card"}),{dir:w}=en(),C=uh(),S=typeof c=="boolean"?c:C?.value===f||!1,N=h||C?.name,D=k=>{if(g?.(k),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(k.nativeEvent.code)){k.preventDefault();const I=Array.from(document.querySelectorAll(`[role="radio"][name="${N||"__mantine"}"]`)),A=I.findIndex(V=>V===k.target),F=A+1>=I.length?0:A+1,z=A-1<0?I.length-1:A-1;k.nativeEvent.code==="ArrowDown"&&(I[F].focus(),I[F].click()),k.nativeEvent.code==="ArrowUp"&&(I[z].focus(),I[z].click()),k.nativeEvent.code==="ArrowLeft"&&(I[w==="ltr"?z:F].focus(),I[w==="ltr"?z:F].click()),k.nativeEvent.code==="ArrowRight"&&(I[w==="ltr"?F:z].focus(),I[w==="ltr"?F:z].click())}};return p.jsx(c_,{value:{checked:S},children:p.jsx(Xe,{ref:t,mod:[{"with-border":d,checked:S},u],...b("card"),...x,role:"radio","aria-checked":S,name:N,onClick:k=>{m?.(k),C?.onChange(f||"")},onKeyDown:D})})});jc.displayName="@mantine/core/RadioCard";jc.classes=dh;const Mc=U((e,t)=>{const{value:n,defaultValue:o,onChange:r,size:s,wrapperProps:a,children:i,name:l,readOnly:c,disabled:u,...d}=H("RadioGroup",null,e),f=Qe(l),[m,h]=He({value:n,defaultValue:o,finalValue:"",onChange:r}),g=y=>!c&&h(typeof y=="string"?y:y.currentTarget.value);return p.jsx(l_,{value:{value:m,onChange:g,size:s,name:f,disabled:u},children:p.jsx(je.Wrapper,{size:s,ref:t,...a,...d,labelElement:"div",__staticSelector:"RadioGroup",children:p.jsx(ql,{role:"radiogroup",children:i})})})});Mc.classes=je.Wrapper.classes;Mc.displayName="@mantine/core/RadioGroup";function fh({size:e,style:t,...n}){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:{width:K(e),height:K(e),...t},"aria-hidden":!0,...n,children:p.jsx("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"currentColor"})})}var ph={indicator:"m_717d7ff6",icon:"m_3e4da632","indicator--outline":"m_2980836c"};const p_={icon:fh},m_=(e,{radius:t,color:n,size:o,iconColor:r,variant:s,autoContrast:a})=>{const i=Pt({color:n||e.primaryColor,theme:e}),l=i.isThemeColor&&i.shade===void 0?`var(--mantine-color-${i.color}-outline)`:i.color;return{indicator:{"--radio-size":he(o,"radio-size"),"--radio-radius":t===void 0?void 0:Ee(t),"--radio-color":s==="outline"?l:Ae(n,e),"--radio-icon-size":he(o,"radio-icon-size"),"--radio-icon-color":r?Ae(r,e):En(a,e)?Qt({color:n,theme:e,autoContrast:a}):void 0}}},Ic=U((e,t)=>{const n=H("RadioIndicator",p_,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,icon:c,radius:u,color:d,iconColor:f,autoContrast:m,checked:h,mod:g,variant:y,disabled:x,attributes:b,...w}=n,C=ne({name:"RadioIndicator",classes:ph,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:b,vars:l,varsResolver:m_,rootSelector:"indicator"}),S=u_(),N=typeof h=="boolean"?h:S?.checked||!1;return p.jsx(W,{ref:t,...C("indicator",{variant:y}),variant:y,mod:[{checked:N,disabled:x},g],...w,children:p.jsx(c,{...C("icon")})})});Ic.displayName="@mantine/core/RadioIndicator";Ic.classes=ph;const h_={labelPosition:"right"},v_=(e,{size:t,radius:n,color:o,iconColor:r,variant:s,autoContrast:a})=>{const i=Pt({color:o||e.primaryColor,theme:e}),l=i.isThemeColor&&i.shade===void 0?`var(--mantine-color-${i.color}-outline)`:i.color;return{root:{"--radio-size":he(t,"radio-size"),"--radio-radius":n===void 0?void 0:Ee(n),"--radio-color":s==="outline"?l:Ae(o,e),"--radio-icon-color":r?Ae(r,e):En(a,e)?Qt({color:o,theme:e,autoContrast:a}):void 0,"--radio-icon-size":he(t,"radio-icon-size")}}},Nr=U((e,t)=>{const n=H("Radio",h_,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,id:c,size:u,label:d,labelPosition:f,description:m,error:h,radius:g,color:y,variant:x,disabled:b,wrapperProps:w,icon:C=fh,rootRef:S,iconColor:N,onChange:D,mod:k,attributes:I,checked:A,...F}=n,z=ne({name:"Radio",classes:ch,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:I,vars:l,varsResolver:v_}),V=uh(),$=V?.size??u,O=n.size?u:$,{styleProps:R,rest:E}=fn(F),P=Qe(c),j=V?V.value===E.value:void 0,M={checked:j??A,name:V?.name??E.name,onChange:_=>{V?.onChange(_),D?.(_)},disabled:V?.disabled??b};return p.jsx(Ys,{...z("root"),__staticSelector:"Radio",__stylesApiProps:n,id:P,size:O,labelPosition:f,label:d,description:m,error:h,disabled:M.disabled,classNames:o,styles:a,unstyled:i,"data-checked":(j??A)||void 0,variant:x,ref:S,mod:k,...R,...w,children:p.jsxs(W,{...z("inner"),mod:{"label-position":f},children:[p.jsx(W,{...z("radio",{focusable:!0,variant:x}),...E,...M,component:"input",mod:{error:!!h},ref:t,id:P,type:"radio"}),p.jsx(C,{...z("icon"),"aria-hidden":!0})]})})});Nr.classes=ch;Nr.displayName="@mantine/core/Radio";Nr.Group=Mc;Nr.Card=jc;Nr.Indicator=Ic;const g_={duration:100,transition:"fade"};function Sd(e,t){return{...g_,...t,...e}}var ba={tooltip:"m_1b3c8819",arrow:"m_f898399f"};function y_({offset:e,position:t,defaultOpened:n}){const[o,r]=v.useState(n),s=v.useRef(null),{x:a,y:i,elements:l,refs:c,update:u,placement:d}=Ms({placement:t,middleware:[al({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=d.includes("right")?e:t.includes("left")?e*-1:0,m=d.includes("bottom")?e:t.includes("top")?e*-1:0,h=v.useCallback(({clientX:g,clientY:y})=>{c.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:g,y,left:g+f,top:y+m,right:g,bottom:y}}})},[l.reference]);return v.useEffect(()=>{if(c.floating.current){const g=s.current;g.addEventListener("mousemove",h);const y=ln(c.floating.current);return y.forEach(x=>{x.addEventListener("scroll",u)}),()=>{g.removeEventListener("mousemove",h),y.forEach(x=>{x.removeEventListener("scroll",u)})}}},[l.reference,c.floating.current,u,h,o]),{handleMouseMove:h,x:a,y:i,opened:o,setOpened:r,boundaryRef:s,floating:c.setFloating}}const b_={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:st("popover")},x_=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:Ee(t),"--tooltip-bg":n?Ae(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),Oc=U((e,t)=>{const n=H("TooltipFloating",b_,e),{children:o,refProp:r,withinPortal:s,style:a,className:i,classNames:l,styles:c,unstyled:u,radius:d,color:f,label:m,offset:h,position:g,multiline:y,zIndex:x,disabled:b,defaultOpened:w,variant:C,vars:S,portalProps:N,attributes:D,...k}=n,I=Ke(),A=ne({name:"TooltipFloating",props:n,classes:ba,className:i,style:a,classNames:l,styles:c,unstyled:u,attributes:D,rootSelector:"tooltip",vars:S,varsResolver:x_}),{handleMouseMove:F,x:z,y:V,opened:$,boundaryRef:O,floating:R,setOpened:E}=y_({offset:h,position:g,defaultOpened:w}),P=Nn(o);if(!P)throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const j=$e(O,_s(P),t),M=P.props,_=L=>{M.onMouseEnter?.(L),F(L),E(!0)},T=L=>{M.onMouseLeave?.(L),E(!1)};return p.jsxs(p.Fragment,{children:[p.jsx(Jt,{...N,withinPortal:s,children:p.jsx(W,{...k,...A("tooltip",{style:{...Ji(a,I),zIndex:x,display:!b&&$?"block":"none",top:(V&&Math.round(V))??"",left:(z&&Math.round(z))??""}}),variant:C,ref:R,mod:{multiline:y},children:m})}),v.cloneElement(P,{...M,[r]:j,onMouseEnter:_,onMouseLeave:T})]})});Oc.classes=ba;Oc.displayName="@mantine/core/TooltipFloating";const mh=v.createContext(!1),w_=mh.Provider,C_=()=>v.useContext(mh),S_={openDelay:0,closeDelay:0};function Ac(e){const{openDelay:t,closeDelay:n,children:o}=H("TooltipGroup",S_,e);return p.jsx(w_,{value:!0,children:p.jsx(Bf,{delay:{open:t,close:n},children:o})})}Ac.displayName="@mantine/core/TooltipGroup";Ac.extend=e=>e;function __(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 P_(e){const t=__(e.middlewares),n=[If(e.offset)];return t.shift&&n.push(al(typeof t.shift=="boolean"?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip=="boolean"?ms():ms(t.flip)),n.push(Of({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline=="boolean"?or():or(t.inline)):e.inline&&n.push(or()),n}function R_(e){const[t,n]=v.useState(e.defaultOpened),r=typeof e.opened=="boolean"?e.opened:t,s=C_(),a=Qe(),i=v.useCallback(S=>{n(S),S&&x(a)},[a]),{x:l,y:c,context:u,refs:d,placement:f,middlewareData:{arrow:{x:m,y:h}={}}}=Ms({strategy:e.strategy,placement:e.position,open:r,onOpenChange:i,middleware:P_(e),whileElementsMounted:Ni}),{delay:g,currentId:y,setCurrentId:x}=Vf(u,{id:a}),{getReferenceProps:b,getFloatingProps:w}=Yf([Ff(u,{enabled:e.events?.hover,delay:s?g:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),tx(u,{enabled:e.events?.focus,visibleOnly:!0}),Wf(u,{role:"tooltip"}),Hf(u,{enabled:typeof e.opened>"u"})]);bt(()=>{e.onPositionChange?.(f)},[f]);const C=r&&y&&y!==a;return{x:l,y:c,arrowX:m,arrowY:h,reference:d.setReference,floating:d.setFloating,getFloatingProps:w,getReferenceProps:b,isGroupPhase:C,opened:r,placement:f}}const _d={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:st("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},D_=(e,{radius:t,color:n,variant:o,autoContrast:r})=>{const s=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:r,variant:o||"filled"});return{tooltip:{"--tooltip-radius":t===void 0?void 0:Ee(t),"--tooltip-bg":n?s.background:void 0,"--tooltip-color":n?s.color:void 0}}},Er=U((e,t)=>{const n=H("Tooltip",_d,e),{children:o,position:r,refProp:s,label:a,openDelay:i,closeDelay:l,onPositionChange:c,opened:u,defaultOpened:d,withinPortal:f,radius:m,color:h,classNames:g,styles:y,unstyled:x,style:b,className:w,withArrow:C,arrowSize:S,arrowOffset:N,arrowRadius:D,arrowPosition:k,offset:I,transitionProps:A,multiline:F,events:z,zIndex:V,disabled:$,positionDependencies:O,onClick:R,onMouseEnter:E,onMouseLeave:P,inline:j,variant:M,keepMounted:_,vars:T,portalProps:L,mod:B,floatingStrategy:G,middlewares:q,autoContrast:X,attributes:le,target:J,...ee}=H("Tooltip",_d,n),{dir:ce}=en(),re=v.useRef(null),ae=R_({position:ip(ce,r),closeDelay:l,openDelay:i,onPositionChange:c,opened:u,defaultOpened:d,events:z,arrowRef:re,arrowOffset:N,offset:typeof I=="number"?I+(C?S/2:0):I,positionDependencies:[...O,J??o],inline:j,strategy:G,middlewares:q});v.useEffect(()=>{const oe=J instanceof HTMLElement?J:typeof J=="string"?document.querySelector(J):J?.current||null;oe&&ae.reference(oe)},[J,ae]);const pe=ne({name:"Tooltip",props:n,classes:ba,className:w,style:b,classNames:g,styles:y,unstyled:x,attributes:le,rootSelector:"tooltip",vars:T,varsResolver:D_}),ge=Nn(o);if(!J&&!ge)throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");if(J){const oe=Sd(A,{duration:100,transition:"fade"});return p.jsx(p.Fragment,{children:p.jsx(Jt,{...L,withinPortal:f,children:p.jsx(Ft,{...oe,keepMounted:_,mounted:!$&&!!ae.opened,duration:ae.isGroupPhase?10:oe.duration,children:be=>p.jsxs(W,{...ee,"data-fixed":G==="fixed"||void 0,variant:M,mod:[{multiline:F},B],...ae.getFloatingProps({ref:ae.floating,className:pe("tooltip").className,style:{...pe("tooltip").style,...be,zIndex:V,top:ae.y??0,left:ae.x??0}}),children:[a,p.jsx(hs,{ref:re,arrowX:ae.arrowX,arrowY:ae.arrowY,visible:C,position:ae.placement,arrowSize:S,arrowOffset:N,arrowRadius:D,arrowPosition:k,...pe("arrow")})]})})})})}const ie=ge.props,te=$e(ae.reference,_s(ge),t),Z=Sd(A,{duration:100,transition:"fade"});return p.jsxs(p.Fragment,{children:[p.jsx(Jt,{...L,withinPortal:f,children:p.jsx(Ft,{...Z,keepMounted:_,mounted:!$&&!!ae.opened,duration:ae.isGroupPhase?10:Z.duration,children:oe=>p.jsxs(W,{...ee,"data-fixed":G==="fixed"||void 0,variant:M,mod:[{multiline:F},B],...ae.getFloatingProps({ref:ae.floating,className:pe("tooltip").className,style:{...pe("tooltip").style,...oe,zIndex:V,top:ae.y??0,left:ae.x??0}}),children:[a,p.jsx(hs,{ref:re,arrowX:ae.arrowX,arrowY:ae.arrowY,visible:C,position:ae.placement,arrowSize:S,arrowOffset:N,arrowRadius:D,arrowPosition:k,...pe("arrow")})]})})}),v.cloneElement(ge,ae.getReferenceProps({onClick:R,onMouseEnter:E,onMouseLeave:P,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,...ie,className:Ze(w,ie.className),[s]:te}))]})});Er.classes=ba;Er.displayName="@mantine/core/Tooltip";Er.Floating=Oc;Er.Group=Ac;function N_({size:e,thickness:t,sum:n,value:o,root:r,offset:s}){const a=(e*.9-t*2)/2,i=Math.PI*a*2/100,l=r||o===void 0?`${(100-n)*i}, ${n*i}`:`${o*i}, ${(100-o)*i}`;return{strokeWidth:Number.isNaN(t)?12:t,cx:e/2||0,cy:e/2||0,r:a||0,transform:r?`scale(1, -1) translate(0, -${e})`:void 0,strokeDasharray:l,strokeDashoffset:r?0:s||0}}function hh({size:e,value:t,offset:n,sum:o,thickness:r,root:s,color:a,lineRoundCaps:i,tooltip:l,getStyles:c,display:u,...d}){const f=Ke();return p.jsx(Er.Floating,{disabled:!l,label:l,children:p.jsx(W,{component:"circle",...d,...c("curve"),__vars:{"--curve-color":a?Ae(a,f):void 0},fill:"none",strokeLinecap:i?"round":"butt",...N_({sum:o,size:e,thickness:r,value:t,offset:n,root:s})})})}hh.displayName="@mantine/core/Curve";function E_({size:e,thickness:t,sections:n,renderRoundedLineCaps:o,rootColor:r}){const s=n.reduce((u,d)=>u+d.value,0),a=Math.PI*((e*.9-t*2)/2)*2;let i=a;const l=[],c=[];for(let u=0;u2){c.push({...l[0],lineRoundCaps:o}),c.push({...l[l.length-2],lineRoundCaps:o});for(let u=1;u<=l.length-3;u+=1)c.push({...l[u],lineRoundCaps:!1})}else c.push({...l[0],lineRoundCaps:o});return c}var vh={root:"m_b32e4812",svg:"m_d43b5134",curve:"m_b1ca1fbf",label:"m_b23f9dc4"};function T_(e,t){return Math.min(e||12,(t||120)/4)}const k_={size:120,thickness:12},$_=(e,{size:t,thickness:n,transitionDuration:o})=>({root:{"--rp-size":K(t),"--rp-label-offset":K(n*2),"--rp-transition-duration":o?`${o}ms`:void 0}}),gh=U((e,t)=>{const n=H("RingProgress",k_,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,label:c,sections:u,size:d,thickness:f,roundCaps:m,rootColor:h,transitionDuration:g,attributes:y,...x}=n,b=ne({name:"RingProgress",classes:vh,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:y,vars:l,varsResolver:$_}),w=T_(f,d),C=E_({size:d,thickness:w,sections:u,renderRoundedLineCaps:m,rootColor:h}).map(({data:S,sum:N,root:D,lineRoundCaps:k,offset:I},A)=>v.createElement(hh,{...S,key:A,size:d,thickness:w,sum:N,offset:I,color:S?.color,root:D,lineRoundCaps:k,getStyles:b}));return p.jsxs(W,{...b("root"),size:d,ref:t,...x,children:[p.jsx("svg",{...b("svg"),children:C}),c&&p.jsx("div",{...b("label"),children:c})]})});gh.classes=vh;gh.displayName="@mantine/core/RingProgress";var yh={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const j_={withItemsBorders:!0},M_=(e,{radius:t,color:n,transitionDuration:o,size:r,transitionTimingFunction:s})=>({root:{"--sc-radius":t===void 0?void 0:Ee(t),"--sc-color":n?Ae(n,e):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":s,"--sc-padding":he(r,"sc-padding"),"--sc-font-size":Ge(r)}}),bh=U((e,t)=>{const n=H("SegmentedControl",j_,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,data:c,value:u,defaultValue:d,onChange:f,size:m,name:h,disabled:g,readOnly:y,fullWidth:x,orientation:b,radius:w,color:C,transitionDuration:S,transitionTimingFunction:N,variant:D,autoContrast:k,withItemsBorders:I,mod:A,attributes:F,...z}=n,V=ne({name:"SegmentedControl",props:n,classes:yh,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:F,vars:l,varsResolver:M_}),$=Ke(),O=c.map(J=>typeof J=="string"?{label:J,value:J}:J),R=iy(),[E,P]=v.useState(Ut()),[j,M]=v.useState(null),[_,T]=v.useState({}),L=(J,ee)=>{_[ee]=J,T(_)},[B,G]=He({value:u,defaultValue:d,finalValue:Array.isArray(c)?O.find(J=>!J.disabled)?.value??c[0]?.value??null:null,onChange:f}),q=Qe(h),X=O.map(J=>v.createElement(W,{...V("control"),mod:{active:B===J.value,orientation:b},key:J.value},v.createElement("input",{...V("input"),disabled:g||J.disabled,type:"radio",name:q,value:J.value,id:`${q}-${J.value}`,checked:B===J.value,onChange:()=>!y&&G(J.value),"data-focus-ring":$.focusRing,key:`${J.value}-input`}),v.createElement(W,{component:"label",...V("label"),mod:{active:B===J.value&&!(g||J.disabled),disabled:g||J.disabled,"read-only":y},htmlFor:`${q}-${J.value}`,ref:ee=>L(ee,J.value),__vars:{"--sc-label-color":C!==void 0?Qt({color:C,theme:$,autoContrast:k}):void 0},key:`${J.value}-label`},p.jsx("span",{...V("innerLabel"),children:J.label})))),le=$e(t,J=>M(J));return qg(()=>{P(Ut())},[c.length]),c.length===0?null:p.jsxs(W,{...V("root"),variant:D,size:m,ref:le,mod:[{"full-width":x,orientation:b,initialized:R,"with-items-borders":I},A],...z,role:"radiogroup","data-disabled":g,children:[typeof B=="string"&&p.jsx(Dl,{target:_[B],parent:j,component:"span",transitionDuration:"var(--sc-transition-duration)",...V("indicator")},E),X]})});bh.classes=yh;bh.displayName="@mantine/core/SegmentedControl";const I_={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},xh=U((e,t)=>{const n=H("Select",I_,e),{classNames:o,styles:r,unstyled:s,vars:a,dropdownOpened:i,defaultDropdownOpened:l,onDropdownClose:c,onDropdownOpen:u,onFocus:d,onBlur:f,onClick:m,onChange:h,data:g,value:y,defaultValue:x,selectFirstOptionOnChange:b,selectFirstOptionOnDropdownOpen:w,onOptionSubmit:C,comboboxProps:S,readOnly:N,disabled:D,filter:k,limit:I,withScrollArea:A,maxDropdownHeight:F,size:z,searchable:V,rightSection:$,checkIconPosition:O,withCheckIcon:R,withAlignedLabels:E,nothingFoundMessage:P,name:j,form:M,searchValue:_,defaultSearchValue:T,onSearchChange:L,allowDeselect:B,error:G,rightSectionPointerEvents:q,id:X,clearable:le,clearButtonProps:J,hiddenInputProps:ee,renderOption:ce,onClear:re,autoComplete:ae,scrollAreaProps:pe,__defaultRightSection:ge,__clearSection:ie,__clearable:te,chevronColor:Z,autoSelectOnBlur:oe,openOnFocus:be,attributes:_e,...me}=n,we=v.useMemo(()=>Hs(g),[g]),ke=v.useRef({}),Pe=v.useMemo(()=>xr(we),[we]),De=Qe(X),[Y,ue,Te]=He({value:y,defaultValue:x,finalValue:null,onChange:h}),Me=typeof Y=="string"?Y in Pe?Pe[Y]:ke.current[Y]:void 0,de=ry(Me),[se,Ne,ve]=He({value:_,defaultValue:T,finalValue:Me?Me.label:"",onChange:L}),xe=wr({opened:i,defaultOpened:l,onDropdownOpen:()=>{u?.(),w?xe.selectFirstOption():xe.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(xe.resetSelectedOption,0)}}),Ie=Fe=>{Ne(Fe),xe.resetSelectedOption()},{resolvedClassNames:ot,resolvedStyles:fe}=pt({props:n,styles:r,classNames:o});v.useEffect(()=>{b&&xe.selectFirstOption()},[b,se]),v.useEffect(()=>{y===null&&Ie(""),typeof y=="string"&&Me&&(de?.value!==Me.value||de?.label!==Me.label)&&Ie(Me.label)},[y,Me]),v.useEffect(()=>{!Te&&!ve&&Ie(typeof Y=="string"?Y in Pe?Pe[Y]?.label:ke.current[Y]?.label||"":"")},[Pe,Y]),v.useEffect(()=>{Y&&Y in Pe&&(ke.current[Y]=Pe[Y])},[Pe,Y]);const lt=p.jsx(Ce.ClearButton,{...J,onClear:()=>{ue(null,null),Ie(""),re?.()}}),tt=le&&!!Y&&!D&&!N;return p.jsxs(p.Fragment,{children:[p.jsxs(Ce,{store:xe,__staticSelector:"Select",classNames:ot,styles:fe,unstyled:s,readOnly:N,size:z,attributes:_e,keepMounted:oe,onOptionSubmit:Fe=>{C?.(Fe);const mt=B&&Pe[Fe].value===Y?null:Pe[Fe],at=mt?mt.value:null;at!==Y&&ue(at,mt),!Te&&Ie(typeof at=="string"&&mt?.label||""),xe.closeDropdown()},...S,children:[p.jsx(Ce.Target,{targetType:V?"input":"button",autoComplete:ae,children:p.jsx(it,{id:De,ref:t,__defaultRightSection:p.jsx(Ce.Chevron,{size:z,error:G,unstyled:s,color:Z}),__clearSection:lt,__clearable:tt,rightSection:$,rightSectionPointerEvents:q||"none",...me,size:z,__staticSelector:"Select",disabled:D,readOnly:N||!V,value:se,onChange:Fe=>{Ie(Fe.currentTarget.value),xe.openDropdown(),b&&xe.selectFirstOption()},onFocus:Fe=>{be&&V&&xe.openDropdown(),d?.(Fe)},onBlur:Fe=>{oe&&xe.clickSelectedOption(),V&&xe.closeDropdown();const mt=typeof Y=="string"&&(Y in Pe?Pe[Y]:ke.current[Y]);Ie(mt&&mt.label||""),f?.(Fe)},onClick:Fe=>{V?xe.openDropdown():xe.toggleDropdown(),m?.(Fe)},classNames:ot,styles:fe,unstyled:s,pointer:!V,error:G,attributes:_e})}),p.jsx(Gs,{data:we,hidden:N||D,filter:k,search:se,limit:I,hiddenWhenEmpty:!P,withScrollArea:A,maxDropdownHeight:F,filterOptions:!!V&&Me?.label!==se,value:Y,checkIconPosition:O,withCheckIcon:R,withAlignedLabels:E,nothingFoundMessage:P,unstyled:s,labelId:me.label?`${De}-label`:void 0,"aria-label":me.label?void 0:me["aria-label"],renderOption:ce,scrollAreaProps:pe})]}),p.jsx(Ce.HiddenInput,{value:Y,name:j,form:M,disabled:D,...ee})]})});xh.classes={...it.classes,...Ce.classes};xh.displayName="@mantine/core/Select";var wh={container:"m_925c2d2c",root:"m_2415a157"};function O_({spacing:e,verticalSpacing:t,cols:n,selector:o}){const r=Ke(),s=t===void 0?e:t,a=Dn({"--sg-spacing-x":ze($t(e)),"--sg-spacing-y":ze($t(s)),"--sg-cols":$t(n)?.toString()}),i=Ve(r.breakpoints).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--sg-spacing-x"]=ze(e[d])),typeof s=="object"&&s[d]!==void 0&&(u[d]["--sg-spacing-y"]=ze(s[d])),typeof n=="object"&&n[d]!==void 0&&(u[d]["--sg-cols"]=n[d]),u),{}),c=sr(Ve(i),r.breakpoints).filter(u=>Ve(i[u.value]).length>0).map(u=>({query:`(min-width: ${r.breakpoints[u.value]})`,styles:i[u.value]}));return p.jsx(Qn,{styles:a,media:c,selector:o})}function di(e){return typeof e=="object"&&e!==null?Ve(e):[]}function A_(e){return e.sort((t,n)=>rr(t)-rr(n))}function L_({spacing:e,verticalSpacing:t,cols:n}){const o=Array.from(new Set([...di(e),...di(t),...di(n)]));return A_(o)}function F_({spacing:e,verticalSpacing:t,cols:n,selector:o}){const r=t===void 0?e:t,s=Dn({"--sg-spacing-x":ze($t(e)),"--sg-spacing-y":ze($t(r)),"--sg-cols":$t(n)?.toString()}),a=L_({spacing:e,verticalSpacing:t,cols:n}),i=a.reduce((c,u)=>(c[u]||(c[u]={}),typeof e=="object"&&e[u]!==void 0&&(c[u]["--sg-spacing-x"]=ze(e[u])),typeof r=="object"&&r[u]!==void 0&&(c[u]["--sg-spacing-y"]=ze(r[u])),typeof n=="object"&&n[u]!==void 0&&(c[u]["--sg-cols"]=n[u]),c),{}),l=a.map(c=>({query:`simple-grid (min-width: ${c})`,styles:i[c]}));return p.jsx(Qn,{styles:s,container:l,selector:o})}const z_={cols:1,spacing:"md",type:"media"},xa=U((e,t)=>{const n=H("SimpleGrid",z_,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,cols:c,verticalSpacing:u,spacing:d,type:f,attributes:m,...h}=n,g=ne({name:"SimpleGrid",classes:wh,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:m,vars:l}),y=fr();return f==="container"?p.jsxs(p.Fragment,{children:[p.jsx(F_,{...n,selector:`.${y}`}),p.jsx("div",{...g("container"),children:p.jsx(W,{ref:t,...g("root",{className:y}),...h})})]}):p.jsxs(p.Fragment,{children:[p.jsx(O_,{...n,selector:`.${y}`}),p.jsx(W,{ref:t,...g("root",{className:y}),...h})]})});xa.classes=wh;xa.displayName="@mantine/core/SimpleGrid";var Ch={root:"m_18320242","skeleton-fade":"m_299c329c"};const B_={visible:!0,animate:!0},V_=(e,{width:t,height:n,radius:o,circle:r})=>({root:{"--skeleton-height":K(n),"--skeleton-width":K(r?n:t),"--skeleton-radius":r?"1000px":o===void 0?void 0:Ee(o)}}),Sh=U((e,t)=>{const n=H("Skeleton",B_,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,width:c,height:u,circle:d,visible:f,radius:m,animate:h,mod:g,attributes:y,...x}=n,b=ne({name:"Skeleton",classes:Ch,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:y,vars:l,varsResolver:V_});return p.jsx(W,{ref:t,...b("root"),mod:[{visible:f,animate:h},g],...x})});Sh.classes=Ch;Sh.displayName="@mantine/core/Skeleton";const[H_,wa]=nt("SliderProvider was not found in tree");var _h={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const Ph=v.forwardRef(({size:e,disabled:t,variant:n,color:o,thumbSize:r,radius:s,...a},i)=>{const{getStyles:l}=wa();return p.jsx(W,{tabIndex:-1,variant:n,size:e,ref:i,...l("root"),...a})});Ph.displayName="@mantine/core/SliderRoot";const Li=v.forwardRef(({max:e,min:t,value:n,position:o,label:r,dragging:s,onMouseDown:a,onKeyDownCapture:i,labelTransitionProps:l,labelAlwaysOn:c,thumbLabel:u,onFocus:d,onBlur:f,showLabelOnHover:m,isHovered:h,children:g=null,disabled:y},x)=>{const{getStyles:b}=wa(),[w,C]=v.useState(!1),S=c||s||w||m&&h;return p.jsxs(W,{tabIndex:0,role:"slider","aria-label":u,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":n,ref:x,__vars:{"--slider-thumb-offset":`${o}%`},...b("thumb",{focusable:!0}),mod:{dragging:s,disabled:y},onFocus:N=>{C(!0),typeof d=="function"&&d(N)},onBlur:N=>{C(!1),typeof f=="function"&&f(N)},onTouchStart:a,onMouseDown:a,onKeyDownCapture:i,onClick:N=>N.stopPropagation(),children:[g,p.jsx(Ft,{mounted:r!=null&&!!S,transition:"fade",duration:0,...l,children:N=>p.jsx("div",{...b("label",{style:N}),children:r})})]})});Li.displayName="@mantine/core/SliderThumb";function Fi({value:e,min:t,max:n}){const o=(e-t)/(n-t)*100;return Math.min(Math.max(o,0),100)}function Y_({mark:e,offset:t,value:n,inverted:o=!1}){return o?typeof t=="number"&&e.value<=t||e.value>=n:typeof t=="number"?e.value>=t&&e.value<=n:e.value<=n}function Rh({marks:e,min:t,max:n,disabled:o,value:r,offset:s,inverted:a}){const{getStyles:i}=wa();if(!e)return null;const l=e.map((c,u)=>v.createElement(W,{...i("markWrapper"),__vars:{"--mark-offset":`${Fi({value:c.value,min:t,max:n})}%`},key:u},p.jsx(W,{...i("mark"),mod:{filled:Y_({mark:c,value:r,offset:s,inverted:a}),disabled:o}}),c.label&&p.jsx("div",{...i("markLabel"),children:c.label})));return p.jsx("div",{children:l})}Rh.displayName="@mantine/core/SliderMarks";function Dh({filled:e,children:t,offset:n,disabled:o,marksOffset:r,inverted:s,containerProps:a,...i}){const{getStyles:l}=wa();return p.jsx(W,{...l("trackContainer"),mod:{disabled:o},...a,children:p.jsxs(W,{...l("track"),mod:{inverted:s,disabled:o},children:[p.jsx(W,{mod:{inverted:s,disabled:o},__vars:{"--slider-bar-width":`calc(${e}% + 2 * var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...l("bar")}),t,p.jsx(Rh,{...i,offset:r,disabled:o,inverted:s})]})})}Dh.displayName="@mantine/core/SliderTrack";function Pd({value:e,containerWidth:t,min:n,max:o,step:r,precision:s}){const i=(t?Math.min(Math.max(e,0),t)/t:e)*(o-n),l=(i!==0?Math.round(i/r)*r:0)+n,c=Math.max(l,n);return s!==void 0?Number(c.toFixed(s)):c}function wn(e,t){return parseFloat(e.toFixed(t))}function W_(e){if(!e)return 0;const t=e.toString().split(".");return t.length>1?t[1].length:0}function Wr(e,t){const o=[...t].sort((r,s)=>r.value-s.value).find(r=>r.value>e);return o?o.value:e}function Gr(e,t){const o=[...t].sort((r,s)=>s.value-r.value).find(r=>r.valuen.value-o.value);return t.length>0?t[0].value:0}function K_(e){const t=[...e].sort((n,o)=>n.value-o.value);return t.length>0?t[t.length-1].value:100}function U_(e){return"TouchEvent"in window&&e instanceof window.TouchEvent?e.touches[0].clientX:e.clientX}const q_=(e,{size:t,color:n,thumbSize:o,radius:r})=>({root:{"--slider-size":he(t,"slider-size"),"--slider-color":n?Ae(n,e):void 0,"--slider-radius":r===void 0?void 0:Ee(r),"--slider-thumb-size":o!==void 0?K(o):"calc(var(--slider-size) * 2)"}}),X_={min:0,max:100,minRange:10,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},labelAlwaysOn:!1,showLabelOnHover:!0,disabled:!1,pushOnOverlap:!0,scale:e=>e,size:"md",maxRange:1/0},Nh=U((e,t)=>{const n=H("RangeSlider",X_,e),{classNames:o,styles:r,value:s,onChange:a,onChangeEnd:i,size:l,min:c,max:u,domain:d,minRange:f,maxRange:m,step:h,precision:g,defaultValue:y,name:x,marks:b,label:w,labelTransitionProps:C,labelAlwaysOn:S,thumbFromLabel:N,thumbToLabel:D,showLabelOnHover:k,thumbChildren:I,disabled:A,unstyled:F,scale:z,inverted:V,className:$,style:O,vars:R,hiddenInputProps:E,restrictToMarks:P,thumbProps:j,pushOnOverlap:M,attributes:_,...T}=n,L=ne({name:"RangeSlider",props:n,classes:_h,classNames:o,className:$,styles:r,style:O,attributes:_,vars:R,varsResolver:q_,unstyled:F}),B=v.useRef(null),{dir:G}=en(),[q,X]=v.useState(-1),[le,J]=v.useState(!1),[ee,ce]=He({value:s,defaultValue:y,finalValue:[c,u],onChange:a}),re=v.useRef(ee),ae=v.useRef([]),pe=v.useRef(null),ge=v.useRef(void 0),[ie,te]=d||[c,u],Z=[Fi({value:ee[0],min:ie,max:te}),Fi({value:ee[1],min:ie,max:te})],oe=g??W_(h),be=de=>{ce(de),re.current=de};v.useEffect(()=>{Array.isArray(s)&&(re.current=s)},Array.isArray(s)?[s[0],s[1]]:[null,null]);const _e=(de,se,Ne)=>{if(se===-1)return;const ve=[...re.current];if(P&&b){const xe=dy(de,b.map(tt=>tt.value)),Ie=ve[se];ve[se]=xe;const ot=se===0?1:0,fe=K_(b),lt=G_(b);xe===fe&&ve[ot]===fe||xe===lt&&ve[ot]===lt?ve[se]=Ie:xe===ve[ot]&&(Ie>ve[ot]?ve[ot]=Gr(xe,b):ve[ot]=Wr(xe,b))}else{const xe=gt(de,c,u);ve[se]=xe,se===0&&(xe>ve[1]-(f-1e-9)&&(M?ve[1]=Math.min(de+f,u):ve[se]=re.current[se]),xe>(u-(f-1e-9)||c)&&(ve[se]=re.current[se]),ve[1]-de>m&&(M?ve[1]=de+m:ve[se]=re.current[se])),se===1&&(xem&&(M?ve[0]=de-m:ve[se]=re.current[se]))}if(ve[0]=wn(ve[0],oe),ve[1]=wn(ve[1],oe),ve[0]>ve[1]){const xe=ve[0];ve[0]=ve[1],ve[1]=xe}be(ve),Ne&&i?.(re.current)},me=de=>{if(!A&&ge.current!==void 0){const se=Pd({value:de,min:ie,max:te,step:h,precision:oe});_e(se,ge.current,!1)}},{ref:we,active:ke}=Gi(({x:de})=>me(de),{onScrubEnd:()=>!A&&i?.(re.current)},G);function Pe(de){ge.current=de}const De=de=>{if(B.current){B.current.focus();const se=B.current.getBoundingClientRect(),Ne=U_(de.nativeEvent),ve=Pd({value:Ne-se.left,max:u,min:c,step:h,containerWidth:se.width}),xe=Math.abs(ee[0]-ve)>Math.abs(ee[1]-ve)?1:0,Ie=G==="ltr"?xe:xe===1?0:1;ge.current=Ie}},Y=()=>q!==1&&q!==0?(X(0),0):q,ue=de=>{if(!A)switch(de.key){case"ArrowUp":{de.preventDefault();const se=Y();ae.current[se].focus();const Ne=P&&b?Wr(re.current[se],b):Math.min(Math.max(re.current[se]+h,c),u);_e(wn(Ne,oe),se,!0);break}case"ArrowRight":{de.preventDefault();const se=Y();ae.current[se].focus();const Ne=P&&b?(G==="rtl"?Gr:Wr)(re.current[se],b):Math.min(Math.max(G==="rtl"?re.current[se]-h:re.current[se]+h,c),u);_e(wn(Ne,oe),se,!0);break}case"ArrowDown":{de.preventDefault();const se=Y();ae.current[se].focus();const Ne=P&&b?Gr(re.current[se],b):Math.min(Math.max(re.current[se]-h,c),u);_e(wn(Ne,oe),se,!0);break}case"ArrowLeft":{de.preventDefault();const se=Y();ae.current[se].focus();const Ne=P&&b?(G==="rtl"?Wr:Gr)(re.current[se],b):Math.min(Math.max(G==="rtl"?re.current[se]+h:re.current[se]-h,c),u);_e(wn(Ne,oe),se,!0);break}}},Te={max:u,min:c,size:l,labelTransitionProps:C,labelAlwaysOn:S,onBlur:()=>X(-1)},Me=Array.isArray(I);return p.jsx(H_,{value:{getStyles:L},children:p.jsxs(Ph,{...T,size:l,ref:$e(t,pe),disabled:A,onMouseDownCapture:()=>pe.current?.focus(),onKeyDownCapture:()=>{ae.current[0]?.parentElement?.contains(document.activeElement)||ae.current[0]?.focus()},children:[p.jsxs(Dh,{offset:Z[0],marksOffset:ee[0],filled:Z[1]-Z[0],marks:b,inverted:V,min:ie,max:te,value:ee[1],disabled:A,containerProps:{ref:$e(B,we),onMouseEnter:k?()=>J(!0):void 0,onMouseLeave:k?()=>J(!1):void 0,onTouchStartCapture:De,onTouchEndCapture:()=>{ge.current=-1},onMouseDownCapture:De,onMouseUpCapture:()=>{ge.current=-1},onKeyDownCapture:ue},children:[p.jsx(Li,{...Te,value:z(ee[0]),position:Z[0],dragging:ke,label:typeof w=="function"?w(wn(z(ee[0]),oe)):w,ref:de=>{de&&(ae.current[0]=de)},thumbLabel:N,onMouseDown:()=>Pe(0),onFocus:()=>X(0),showLabelOnHover:k,isHovered:le,disabled:A,...j?.(0),children:Me?I[0]:I}),p.jsx(Li,{...Te,thumbLabel:D,value:z(ee[1]),position:Z[1],dragging:ke,label:typeof w=="function"?w(wn(z(ee[1]),oe)):w,ref:de=>{de&&(ae.current[1]=de)},onMouseDown:()=>Pe(1),onFocus:()=>X(1),showLabelOnHover:k,isHovered:le,disabled:A,...j?.(1),children:Me?I[1]:I})]}),p.jsx("input",{type:"hidden",name:`${x}_from`,value:ee[0],...E}),p.jsx("input",{type:"hidden",name:`${x}_to`,value:ee[1],...E})]})})});Nh.classes=_h;Nh.displayName="@mantine/core/RangeSlider";var Eh={root:"m_6d731127"};const Z_={gap:"md",align:"stretch",justify:"flex-start"},J_=(e,{gap:t,align:n,justify:o})=>({root:{"--stack-gap":ze(t),"--stack-align":n,"--stack-justify":o}}),Th=U((e,t)=>{const n=H("Stack",Z_,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,align:c,justify:u,gap:d,variant:f,attributes:m,...h}=n,g=ne({name:"Stack",props:n,classes:Eh,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:m,vars:l,varsResolver:J_});return p.jsx(W,{ref:t,...g("root"),variant:f,...h})});Th.classes=Eh;Th.displayName="@mantine/core/Stack";var kh={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const $h=v.createContext(null),Q_=$h.Provider,eP=()=>v.useContext($h),Lc=U((e,t)=>{const{value:n,defaultValue:o,onChange:r,size:s,wrapperProps:a,children:i,readOnly:l,disabled:c,...u}=H("SwitchGroup",null,e),[d,f]=He({value:n,defaultValue:o,finalValue:[],onChange:r}),m=h=>{const g=h.currentTarget.value;!l&&f(d.includes(g)?d.filter(y=>y!==g):[...d,g])};return p.jsx(Q_,{value:{value:d,onChange:m,size:s,disabled:c},children:p.jsx(je.Wrapper,{size:s,ref:t,...a,...u,labelElement:"div",__staticSelector:"SwitchGroup",children:p.jsx(ql,{role:"group",children:i})})})});Lc.classes=je.Wrapper.classes;Lc.displayName="@mantine/core/SwitchGroup";const tP={labelPosition:"right",withThumbIndicator:!0},nP=(e,{radius:t,color:n,size:o})=>({root:{"--switch-radius":t===void 0?void 0:Ee(t),"--switch-height":he(o,"switch-height"),"--switch-width":he(o,"switch-width"),"--switch-thumb-size":he(o,"switch-thumb-size"),"--switch-label-font-size":he(o,"switch-label-font-size"),"--switch-track-label-padding":he(o,"switch-track-label-padding"),"--switch-color":n?Ae(n,e):void 0}}),Fc=U((e,t)=>{const n=H("Switch",tP,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,color:c,label:u,offLabel:d,onLabel:f,id:m,size:h,radius:g,wrapperProps:y,thumbIcon:x,checked:b,defaultChecked:w,onChange:C,labelPosition:S,description:N,error:D,disabled:k,variant:I,rootRef:A,mod:F,withThumbIndicator:z,attributes:V,...$}=n,O=eP(),R=h||O?.size,E=ne({name:"Switch",props:n,classes:kh,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:V,vars:l,varsResolver:nP}),{styleProps:P,rest:j}=fn($),M=Qe(m),_={checked:O?.value.includes(j.value)??b,onChange:B=>{O?.onChange(B),C?.(B)},disabled:O?.disabled??k},[T,L]=He({value:_.checked??b,defaultValue:w,finalValue:!1});return p.jsxs(Ys,{...E("root"),__staticSelector:"Switch",__stylesApiProps:n,id:M,size:R,labelPosition:S,label:u,description:N,error:D,disabled:_.disabled,bodyElement:"label",labelElement:"span",classNames:o,styles:a,unstyled:i,"data-checked":_.checked,variant:I,ref:A,mod:F,inert:j.inert,...P,...y,children:[p.jsx("input",{...j,..._,checked:T,"data-checked":_.checked,onChange:B=>{_.onChange?.(B),L(B.currentTarget.checked)},id:M,ref:t,type:"checkbox",role:"switch",inert:j.inert,...E("input")}),p.jsxs(W,{"aria-hidden":"true",component:"span",mod:{error:D,"label-position":S,"without-labels":!f&&!d},...E("track"),children:[p.jsx(W,{component:"span",mod:{"reduce-motion":!0,"with-thumb-indicator":z&&!x},...E("thumb"),children:x}),p.jsx("span",{...E("trackLabel"),children:T?f:d})]})]})});Fc.classes={...kh,...Vp};Fc.displayName="@mantine/core/Switch";Fc.Group=Lc;const[oP,rP]=nt("Table component was not found in the tree");var Tr={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function sP(e,t){if(!t)return;const n={};return t.columnBorder&&e.withColumnBorders&&(n["data-with-column-border"]=!0),t.rowBorder&&e.withRowBorders&&(n["data-with-row-border"]=!0),t.striped&&e.striped&&(n["data-striped"]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n["data-hover"]=!0),t.captionSide&&e.captionSide&&(n["data-side"]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n["data-sticky"]=!0),n}function to(e,t){const n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,o=U((r,s)=>{const a=H(n,{},r),{classNames:i,className:l,style:c,styles:u,...d}=a,f=rP();return p.jsx(W,{component:e,ref:s,...sP(f,t),...f.getStyles(e,{className:l,classNames:i,style:c,styles:u,props:a}),...d})});return o.displayName=`@mantine/core/${n}`,o.classes=Tr,o}const zi=to("th",{columnBorder:!0}),jh=to("td",{columnBorder:!0}),ts=to("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),Mh=to("thead",{stickyHeader:!0}),Ih=to("tbody"),Oh=to("tfoot"),Ah=to("caption",{captionSide:!0});function zc({data:e}){return p.jsxs(p.Fragment,{children:[e.caption&&p.jsx(Ah,{children:e.caption}),e.head&&p.jsx(Mh,{children:p.jsx(ts,{children:e.head.map((t,n)=>p.jsx(zi,{children:t},n))})}),e.body&&p.jsx(Ih,{children:e.body.map((t,n)=>p.jsx(ts,{children:t.map((o,r)=>p.jsx(jh,{children:o},r))},n))}),e.foot&&p.jsx(Oh,{children:p.jsx(ts,{children:e.foot.map((t,n)=>p.jsx(zi,{children:t},n))})})]})}zc.displayName="@mantine/core/TableDataRenderer";const aP={type:"scrollarea"},iP=(e,{minWidth:t,maxHeight:n,type:o})=>({scrollContainer:{"--table-min-width":K(t),"--table-max-height":K(n),"--table-overflow":o==="native"?"auto":void 0}}),Bc=U((e,t)=>{const n=H("TableScrollContainer",aP,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,children:c,minWidth:u,maxHeight:d,type:f,scrollAreaProps:m,attributes:h,...g}=n,y=ne({name:"TableScrollContainer",classes:Tr,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:h,vars:l,varsResolver:iP,rootSelector:"scrollContainer"});return p.jsx(W,{component:f==="scrollarea"?Lt:"div",...f==="scrollarea"?d?{offsetScrollbars:"xy",...m}:{offsetScrollbars:"x",...m}:{},ref:t,...y("scrollContainer"),...g,children:p.jsx("div",{...y("scrollContainerInner"),children:c})})});Bc.classes=Tr;Bc.displayName="@mantine/core/TableScrollContainer";const lP={withRowBorders:!0,verticalSpacing:7},cP=(e,{layout:t,captionSide:n,horizontalSpacing:o,verticalSpacing:r,borderColor:s,stripedColor:a,highlightOnHoverColor:i,striped:l,highlightOnHover:c,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":ze(o),"--table-vertical-spacing":ze(r),"--table-border-color":s?Ae(s,e):void 0,"--table-striped-color":l&&a?Ae(a,e):void 0,"--table-highlight-on-hover-color":c&&i?Ae(i,e):void 0,"--table-sticky-header-offset":d?K(u):void 0}}),Vt=U((e,t)=>{const n=H("Table",lP,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,horizontalSpacing:c,verticalSpacing:u,captionSide:d,stripedColor:f,highlightOnHoverColor:m,striped:h,highlightOnHover:g,withColumnBorders:y,withRowBorders:x,withTableBorder:b,borderColor:w,layout:C,variant:S,data:N,children:D,stickyHeader:k,stickyHeaderOffset:I,mod:A,tabularNums:F,attributes:z,...V}=n,$=ne({name:"Table",props:n,className:r,style:s,classes:Tr,classNames:o,styles:a,unstyled:i,attributes:z,rootSelector:"table",vars:l,varsResolver:cP});return p.jsx(oP,{value:{getStyles:$,stickyHeader:k,striped:h===!0?"odd":h||void 0,highlightOnHover:g,withColumnBorders:y,withRowBorders:x,captionSide:d||"bottom"},children:p.jsx(W,{component:"table",variant:S,ref:t,mod:[{"data-with-table-border":b,"data-tabular-nums":F},A],...$("table"),...V,children:D||!!N&&p.jsx(zc,{data:N})})})});Vt.classes=Tr;Vt.displayName="@mantine/core/Table";Vt.Td=jh;Vt.Th=zi;Vt.Tr=ts;Vt.Thead=Mh;Vt.Tbody=Ih;Vt.Tfoot=Oh;Vt.Caption=Ah;Vt.ScrollContainer=Bc;Vt.DataRenderer=zc;const[uP,Vc]=nt("Tabs component was not found in the tree");var kr={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 Hc=U((e,t)=>{const n=H("TabsList",null,e),{children:o,className:r,grow:s,justify:a,classNames:i,styles:l,style:c,mod:u,...d}=n,f=Vc();return p.jsx(W,{...d,...f.getStyles("list",{className:r,style:c,classNames:i,styles:l,props:n,variant:f.variant}),ref:t,role:"tablist",variant:f.variant,mod:[{grow:s,orientation:f.orientation,placement:f.orientation==="vertical"&&f.placement,inverted:f.inverted},u],"aria-orientation":f.orientation,__vars:{"--tabs-justify":a},children:o})});Hc.classes=kr;Hc.displayName="@mantine/core/TabsList";const Yc=U((e,t)=>{const n=H("TabsPanel",null,e),{children:o,className:r,value:s,classNames:a,styles:i,style:l,mod:c,keepMounted:u,...d}=n,f=Vc(),m=f.value===s,h=f.keepMounted||u||m?o:null;return p.jsx(W,{...f.getStyles("panel",{className:r,classNames:a,styles:i,style:[l,m?void 0:{display:"none"}],props:n}),ref:t,mod:[{orientation:f.orientation},c],role:"tabpanel",id:f.getPanelId(s),"aria-labelledby":f.getTabId(s),...d,children:h})});Yc.classes=kr;Yc.displayName="@mantine/core/TabsPanel";const Wc=U((e,t)=>{const n=H("TabsTab",null,e),{className:o,children:r,rightSection:s,leftSection:a,value:i,onClick:l,onKeyDown:c,disabled:u,color:d,style:f,classNames:m,styles:h,vars:g,mod:y,tabIndex:x,...b}=n,w=Ke(),{dir:C}=en(),S=Vc(),N=i===S.value,D=I=>{S.onChange(S.allowTabDeactivation&&i===S.value?null:i),l?.(I)},k={classNames:m,styles:h,props:n};return p.jsxs(Xe,{...S.getStyles("tab",{className:o,style:f,variant:S.variant,...k}),disabled:u,unstyled:S.unstyled,variant:S.variant,mod:[{active:N,disabled:u,orientation:S.orientation,inverted:S.inverted,placement:S.orientation==="vertical"&&S.placement},y],ref:t,role:"tab",id:S.getTabId(i),"aria-selected":N,tabIndex:x!==void 0?x:N||S.value===null?0:-1,"aria-controls":S.getPanelId(i),onClick:D,__vars:{"--tabs-color":d?Ae(d,w):void 0},onKeyDown:ws({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:S.activateTabWithKeyboard,loop:S.loop,orientation:S.orientation||"horizontal",dir:C,onKeyDown:c}),...b,children:[a&&p.jsx("span",{...S.getStyles("tabSection",k),"data-position":"left",children:a}),r&&p.jsx("span",{...S.getStyles("tabLabel",k),children:r}),s&&p.jsx("span",{...S.getStyles("tabSection",k),"data-position":"right",children:s})]})});Wc.classes=kr;Wc.displayName="@mantine/core/TabsTab";const Rd="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",dP={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},fP=(e,{radius:t,color:n,autoContrast:o})=>({root:{"--tabs-radius":Ee(t),"--tabs-color":Ae(n,e),"--tabs-text-color":En(o,e)?Qt({color:n,theme:e,autoContrast:o}):void 0}}),$r=U((e,t)=>{const n=H("Tabs",dP,e),{defaultValue:o,value:r,onChange:s,orientation:a,children:i,loop:l,id:c,activateTabWithKeyboard:u,allowTabDeactivation:d,variant:f,color:m,radius:h,inverted:g,placement:y,keepMounted:x,classNames:b,styles:w,unstyled:C,className:S,style:N,vars:D,autoContrast:k,mod:I,attributes:A,...F}=n,z=Qe(c),[V,$]=He({value:r,defaultValue:o,finalValue:null,onChange:s}),O=ne({name:"Tabs",props:n,classes:kr,className:S,style:N,classNames:b,styles:w,unstyled:C,attributes:A,vars:D,varsResolver:fP});return p.jsx(uP,{value:{placement:y,value:V,orientation:a,id:z,loop:l,activateTabWithKeyboard:u,getTabId:is(`${z}-tab`,Rd),getPanelId:is(`${z}-panel`,Rd),onChange:$,allowTabDeactivation:d,variant:f,color:m,radius:h,inverted:g,keepMounted:x,unstyled:C,getStyles:O},children:p.jsx(W,{ref:t,id:z,variant:f,mod:[{orientation:a,inverted:a==="horizontal"&&g,placement:a==="vertical"&&y},I],...O("root"),...F,children:i})})});$r.classes=kr;$r.displayName="@mantine/core/Tabs";$r.Tab=Wc;$r.Panel=Yc;$r.List=Hc;function pP({data:e,value:t}){const n=t.map(r=>r.trim().toLowerCase());return e.reduce((r,s)=>(Zn(s)?r.push({group:s.group,items:s.items.filter(a=>n.indexOf(a.label.toLowerCase().trim())===-1)}):n.indexOf(s.label.toLowerCase().trim())===-1&&r.push(s),r),[])}function mP(e,t){return e?t.split(new RegExp(`[${e.join("")}]`)).map(n=>n.trim()).filter(n=>n!==""):[t]}function Dd({splitChars:e,allowDuplicates:t,maxTags:n,value:o,currentTags:r,isDuplicate:s,onDuplicate:a}){const i=mP(e,o),l=[];if(t)l.push(...r,...i);else{l.push(...r);for(const c of i)(s?d=>s(d,l):d=>l.some(f=>f.toLowerCase()===d.toLowerCase()))(c)?a?.(c):l.push(c)}return n?l.slice(0,n):l}const hP={maxTags:1/0,acceptValueOnBlur:!0,splitChars:[","],hiddenInputValuesDivider:",",openOnFocus:!0,size:"sm"},Lh=U((e,t)=>{const n=H("TagsInput",hP,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,size:c,value:u,defaultValue:d,onChange:f,onKeyDown:m,maxTags:h,allowDuplicates:g,onDuplicate:y,variant:x,data:b,dropdownOpened:w,defaultDropdownOpened:C,onDropdownOpen:S,onDropdownClose:N,selectFirstOptionOnChange:D,selectFirstOptionOnDropdownOpen:k,onOptionSubmit:I,comboboxProps:A,filter:F,limit:z,withScrollArea:V,maxDropdownHeight:$,searchValue:O,defaultSearchValue:R,onSearchChange:E,readOnly:P,disabled:j,splitChars:M,onFocus:_,onBlur:T,onPaste:L,radius:B,rightSection:G,rightSectionWidth:q,rightSectionPointerEvents:X,rightSectionProps:le,leftSection:J,leftSectionWidth:ee,leftSectionPointerEvents:ce,leftSectionProps:re,inputContainer:ae,inputWrapperOrder:pe,withAsterisk:ge,required:ie,labelProps:te,descriptionProps:Z,errorProps:oe,wrapperProps:be,description:_e,label:me,error:we,withErrorStyles:ke,name:Pe,form:De,id:Y,clearable:ue,clearButtonProps:Te,hiddenInputProps:Me,hiddenInputValuesDivider:de,mod:se,renderOption:Ne,onRemove:ve,onClear:xe,scrollAreaProps:Ie,acceptValueOnBlur:ot,isDuplicate:fe,openOnFocus:lt,attributes:tt,...Fe}=n,mt=Qe(Y),at=Hs(b),so=xr(at),gn=v.useRef(null),sn=$e(gn,t),Ue=wr({opened:w,defaultOpened:C,onDropdownOpen:()=>{S?.(),k&&Ue.selectFirstOption()},onDropdownClose:()=>{N?.(),Ue.resetSelectedOption()}}),{styleProps:yn,rest:{type:rt,autoComplete:ao,...jr}}=fn(Fe),[ye,Ye]=He({value:u,defaultValue:d,finalValue:[],onChange:f}),[Le,Ht]=He({value:O,defaultValue:R,finalValue:"",onChange:E}),xt=Re=>{Ht(Re),Ue.resetSelectedOption()},Uo=ne({name:"TagsInput",classes:{},props:n,classNames:o,styles:a,unstyled:i}),{resolvedClassNames:Ln,resolvedStyles:io}=pt({props:n,styles:a,classNames:o}),qo=Re=>{if((fe?fe(Re,ye):ye.some(Yt=>Yt.toLowerCase()===Re.toLowerCase()))&&(y?.(Re),!g)){xt("");return}ye.length0&&Ye([...ye,Re]))},Mr=Re=>{if(m?.(Re),Re.isPropagationStopped())return;const kt=Le.trim(),{length:Yt}=kt;if(M.includes(Re.key)&&Yt>0&&(Ye(Dd({splitChars:M,allowDuplicates:g,maxTags:h,value:Le,currentTags:ye,isDuplicate:fe,onDuplicate:y})),xt(""),Re.preventDefault()),Re.key==="Enter"&&Yt>0&&!Re.nativeEvent.isComposing){if(Re.preventDefault(),!!document.querySelector(`#${Ue.listId} [data-combobox-option][data-combobox-selected]`))return;qo(kt)}Re.key==="Backspace"&&Yt===0&&ye.length>0&&!Re.nativeEvent.isComposing&&!P&&(ve?.(ye[ye.length-1]),Ye(ye.slice(0,ye.length-1)))},Ma=Re=>{if(L?.(Re),Re.preventDefault(),Re.clipboardData){const kt=Re.clipboardData.getData("text/plain");Ye(Dd({splitChars:M,allowDuplicates:g,maxTags:h,value:`${Le}${kt}`,currentTags:ye,isDuplicate:fe,onDuplicate:y})),xt("")}},Ia=ye.map((Re,kt)=>p.jsx(Jn,{withRemoveButton:!P,onRemove:()=>{const Yt=ye.slice();Yt.splice(kt,1),Ye(Yt),ve?.(Re)},unstyled:i,disabled:j,attributes:tt,...Uo("pill"),children:Re},`${Re}-${kt}`));v.useEffect(()=>{D&&Ue.selectFirstOption()},[D,ye,Le]);const Oa=p.jsx(Ce.ClearButton,{...Te,onClear:()=>{Ye([]),xt(""),gn.current?.focus(),Ue.openDropdown(),xe?.()}});return p.jsxs(p.Fragment,{children:[p.jsxs(Ce,{store:Ue,classNames:Ln,styles:io,unstyled:i,size:c,readOnly:P,__staticSelector:"TagsInput",attributes:tt,onOptionSubmit:Re=>{I?.(Re),xt(""),ye.length0&&!j&&!P,rightSectionWidth:q,rightSectionPointerEvents:X,rightSectionProps:le,leftSection:J,leftSectionWidth:ee,leftSectionPointerEvents:ce,leftSectionProps:re,inputContainer:ae,inputWrapperOrder:pe,withAsterisk:ge,required:ie,labelProps:te,descriptionProps:Z,errorProps:oe,wrapperProps:be,description:_e,label:me,error:we,withErrorStyles:ke,__stylesApiProps:{...n,multiline:!0},id:mt,mod:se,attributes:tt,children:p.jsxs(Jn.Group,{disabled:j,unstyled:i,...Uo("pillsList"),children:[Ia,p.jsx(Ce.EventsTarget,{autoComplete:ao,children:p.jsx(To.Field,{...jr,ref:sn,...Uo("inputField"),unstyled:i,onKeyDown:Mr,onFocus:Re=>{_?.(Re),lt&&Ue.openDropdown()},onBlur:Re=>{T?.(Re),ot&&qo(Le),Ue.closeDropdown()},onPaste:Ma,value:Le,onChange:Re=>xt(Re.currentTarget.value),required:ie&&ye.length===0,disabled:j,readOnly:P,id:mt})})]})})}),p.jsx(Gs,{data:pP({data:at,value:ye}),hidden:P||j,filter:F,search:Le,limit:z,hiddenWhenEmpty:!0,withScrollArea:V,maxDropdownHeight:$,unstyled:i,labelId:me?`${mt}-label`:void 0,"aria-label":me?void 0:Fe["aria-label"],renderOption:Ne,scrollAreaProps:Ie})]}),p.jsx(Ce.HiddenInput,{name:Pe,form:De,value:ye,valuesDivider:de,disabled:j,...Me})]})});Lh.classes={...it.classes,...Ce.classes};Lh.displayName="@mantine/core/TagsInput";const Fh=U((e,t)=>{const n=H("TextInput",null,e);return p.jsx(it,{component:"input",ref:t,...n,__staticSelector:"TextInput"})});Fh.classes=it.classes;Fh.displayName="@mantine/core/TextInput";var zh={root:"m_7341320d"};const vP=(e,{size:t,radius:n,variant:o,gradient:r,color:s,autoContrast:a})=>{const i=e.variantColorResolver({color:s||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:a});return{root:{"--ti-size":he(t,"ti-size"),"--ti-radius":n===void 0?void 0:Ee(n),"--ti-bg":s||o?i.background:void 0,"--ti-color":s||o?i.color:void 0,"--ti-bd":s||o?i.border:void 0}}},Bh=U((e,t)=>{const n=H("ThemeIcon",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,autoContrast:c,attributes:u,...d}=n,f=ne({name:"ThemeIcon",classes:zh,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:u,vars:l,varsResolver:vP});return p.jsx(W,{ref:t,...f("root"),...d})});Bh.classes=zh;Bh.displayName="@mantine/core/ThemeIcon";const gP=["h1","h2","h3","h4","h5","h6"],yP=["xs","sm","md","lg","xl"];function bP(e,t){const n=t!==void 0?t:`h${e}`;return gP.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:yP.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:K(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var Vh={root:"m_8a5d1357"};const xP={order:1},wP=(e,{order:t,size:n,lineClamp:o,textWrap:r})=>{const s=bP(t||1,n);return{root:{"--title-fw":s.fontWeight,"--title-lh":s.lineHeight,"--title-fz":s.fontSize,"--title-line-clamp":typeof o=="number"?o.toString():void 0,"--title-text-wrap":r}}},Hh=U((e,t)=>{const n=H("Title",xP,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,order:l,vars:c,size:u,variant:d,lineClamp:f,textWrap:m,mod:h,attributes:g,...y}=n,x=ne({name:"Title",props:n,classes:Vh,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:g,vars:c,varsResolver:wP});return[1,2,3,4,5,6].includes(l)?p.jsx(W,{...x("root"),component:`h${l}`,variant:d,ref:t,mod:[{order:l,"data-line-clamp":typeof f=="number"},h],size:u,...y}):null});Hh.classes=Vh;Hh.displayName="@mantine/core/Title";var Yh={root:"m_d08caa0"};const Wh=U((e,t)=>{const n=H("Typography",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,attributes:l,...c}=n,u=ne({name:"Typography",classes:Yh,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:l});return p.jsx(W,{ref:t,...u("root"),...c})});Wh.classes=Yh;Wh.displayName="@mantine/core/Typography";var CP={root:"m_8f2832ae",section:"m_7a0fe999"};function Gh(e){let t=e,n=!1;const o=new Set;return{getState(){return t},updateState(r){t=typeof r=="function"?r(t):r},setState(r){this.updateState(r),o.forEach(s=>s(t))},initialize(r){n||(t=r,n=!0)},subscribe(r){return o.add(r),()=>o.delete(r)}}}function Kh(e){return v.useSyncExternalStore(e.subscribe,()=>e.getState(),()=>e.getState())}function Nd(e){let t=.5;return e>=0&&e<=20?t=10:e>=20&&e<=50?t=4:e>=50&&e<=80?t=2:e>=80&&e<=99?t=1:e>=99&&e<=100&&(t=0),e+t}const SP=()=>Gh({mounted:!1,progress:0,interval:0,step:1,stepInterval:100,timeouts:[]}),_P=e=>Kh(e);function St(e,t){const n=t.getState();t.setState({...n,...e(t.getState())})}function PP(e){St(t=>({progress:Math.max(t.progress-t.step,0)}),e)}function RP(e,t){St(()=>({progress:gt(e,0,100),mounted:!0}),t)}function Gc(e){St(t=>(window.clearInterval(t.interval),t.timeouts.forEach(n=>window.clearTimeout(n)),{timeouts:[]}),e)}function DP(e){Gc(e),St(t=>{const n=window.setTimeout(()=>{St(()=>({mounted:!1}),e)},50),o=window.setTimeout(()=>{St(()=>({progress:0}),e)},t.stepInterval+50);return{progress:100,timeouts:[n,o]}},e)}function NP(e){St(t=>({progress:Nd(t.progress),mounted:!0}),e),St(t=>(window.clearInterval(t.interval),{interval:window.setInterval(()=>{St(o=>({progress:Nd(o.progress),mounted:!0}),e)},t.stepInterval),mounted:!0}),e)}function Uh(e){St(t=>(window.clearInterval(t.interval),{interval:-1}),e)}function Kc(e){Gc(e),Uh(e),St(()=>({progress:0,mounted:!1}),e)}function EP(e){St(t=>{const n=Math.min(t.progress+t.step,100),o=n!==100&&n!==0;if(!o){const r=window.setTimeout(()=>Kc(e),t.stepInterval+50);return{progress:n,mounted:o,timeouts:[...t.timeouts,r]}}return{progress:n,mounted:o}},e)}function TP(){const e=SP();return[e,{start:()=>NP(e),stop:()=>Uh(e),reset:()=>Kc(e),set:n=>RP(n,e),increment:()=>EP(e),decrement:()=>PP(e),complete:()=>DP(e),cleanup:()=>Gc(e)}]}const[kP,$P]=TP(),{start:GD,stop:KD,reset:UD,set:qD,increment:XD,decrement:ZD,complete:JD,cleanup:QD}=$P;function jP({initialProgress:e=0,color:t,size:n=3,stepInterval:o=500,withinPortal:r=!0,portalProps:s,zIndex:a=st("max"),store:i=kP,...l}){i.initialize({mounted:!1,progress:e,interval:-1,step:1,stepInterval:o,timeouts:[]});const c=_P(i);return v.useEffect(()=>()=>Kc(i),[i]),p.jsx(Jt,{...s,withinPortal:r,children:p.jsx(Vo,{radius:0,value:c.progress,size:n,color:t,classNames:CP,"data-mounted":c.mounted||void 0,__vars:{"--nprogress-z-index":a?.toString()},...l})})}jP.displayName="@mantine/nprogress/NavigationProgress";function MP(e,t,n){const o=[],r=[],s={};for(const a of e){const i=a.position||t;s[i]=s[i]||0,s[i]+=1,s[i]<=n?r.push(a):o.push(a)}return{notifications:r,queue:o}}const IP=()=>Gh({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),no=IP(),OP=(e=no)=>Kh(e);function Ho(e,t){const n=e.getState(),o=t([...n.notifications,...n.queue]),r=MP(o,n.defaultPosition,n.limit);e.setState({notifications:r.notifications,queue:r.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function AP(e,t=no){const n=e.id||Ut();return Ho(t,o=>e.id&&o.some(r=>r.id===e.id)?o:[...o,{...e,id:n}]),n}function qh(e,t=no){return Ho(t,n=>n.filter(o=>o.id===e?(o.onClose?.(o),!1):!0)),e}function LP(e,t=no){return Ho(t,n=>n.map(o=>o.id===e.id?{...o,...e}:o)),e.id}function FP(e=no){Ho(e,()=>[])}function zP(e=no){Ho(e,t=>t.slice(0,e.getState().limit))}const Yo={show:AP,hide:qh,update:LP,clean:FP,cleanQueue:zP,updateState:Ho};function Bi(e,t){return Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Bi(e,t)}function Xh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bi(e,t)}var fi={exports:{}},pi,Ed;function BP(){if(Ed)return pi;Ed=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pi=e,pi}var mi,Td;function VP(){if(Td)return mi;Td=1;var e=BP();function t(){}function n(){}return n.resetWarningCache=t,mi=function(){function o(a,i,l,c,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function r(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},mi}var kd;function HP(){return kd||(kd=1,fi.exports=VP()()),fi.exports}var YP=HP();const eN=dr(YP),$d={disabled:!1},gs=Je.createContext(null);var WP=function(t){return t.scrollTop},tr="unmounted",zn="exited",Bn="entering",vo="entered",Vi="exiting",vn=(function(e){Xh(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var a=r,i=a&&!a.isMounting?o.enter:o.appear,l;return s.appearStatus=null,o.in?i?(l=zn,s.appearStatus=Bn):l=vo:o.unmountOnExit||o.mountOnEnter?l=tr:l=zn,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(r,s){var a=r.in;return a&&s.status===tr?{status:zn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var s=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Bn&&a!==vo&&(s=Bn):(a===Bn||a===vo)&&(s=Vi)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,s,a,i;return s=a=i=r,r!=null&&typeof r!="number"&&(s=r.exit,a=r.enter,i=r.appear!==void 0?r.appear:a),{exit:s,enter:a,appear:i}},n.updateStatus=function(r,s){if(r===void 0&&(r=!1),s!==null)if(this.cancelNextCallback(),s===Bn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:yo.findDOMNode(this);a&&WP(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zn&&this.setState({status:tr})},n.performEnter=function(r){var s=this,a=this.props.enter,i=this.context?this.context.isMounting:r,l=this.props.nodeRef?[i]:[yo.findDOMNode(this),i],c=l[0],u=l[1],d=this.getTimeouts(),f=i?d.appear:d.enter;if(!r&&!a||$d.disabled){this.safeSetState({status:vo},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Bn},function(){s.props.onEntering(c,u),s.onTransitionEnd(f,function(){s.safeSetState({status:vo},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var r=this,s=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:yo.findDOMNode(this);if(!s||$d.disabled){this.safeSetState({status:zn},function(){r.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Vi},function(){r.props.onExiting(i),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:zn},function(){r.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,s){s=this.setNextCallback(s),this.setState(r,s)},n.setNextCallback=function(r){var s=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,s.nextCallback=null,r(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:yo.findDOMNode(this),i=r==null&&!this.props.addEndListener;if(!a||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===tr)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var i=mc(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Je.createElement(gs.Provider,{value:null},typeof a=="function"?a(r,i):Je.cloneElement(Je.Children.only(a),i))},t})(Je.Component);vn.contextType=gs;vn.propTypes={};function mo(){}vn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mo,onEntering:mo,onEntered:mo,onExit:mo,onExiting:mo,onExited:mo};vn.UNMOUNTED=tr;vn.EXITED=zn;vn.ENTERING=Bn;vn.ENTERED=vo;vn.EXITING=Vi;function GP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uc(e,t){var n=function(s){return t&&v.isValidElement(s)?t(s):s},o=Object.create(null);return e&&v.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function KP(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var o=Object.create(null),r=[];for(var s in e)s in t?r.length&&(o[s]=r,r=[]):r.push(s);var a,i={};for(var l in t){if(o[l])for(a=0;a(n[o.position||t].push(o),n),Zh.reduce((n,o)=>(n[o]=[],n),{}))}const jd={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},QP={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function eR({state:e,maxHeight:t,position:n,transitionDuration:o}){const[r,s]=n.split("-"),a=s==="center"?`${r}-center`:s,i={opacity:0,maxHeight:t,transform:jd[a],transitionDuration:`${o}ms, ${o}ms, ${o}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},l={opacity:1,transform:QP[a]},c={opacity:0,maxHeight:0,transform:jd[a]};return{...i,...{entering:l,entered:l,exiting:c,exited:c}[e]}}function tR(e,t){return typeof t=="number"?t:t===!1||e===!1?!1:e}const Jh=v.forwardRef(({data:e,onHide:t,autoClose:n,...o},r)=>{const{autoClose:s,message:a,...i}=e,l=tR(n,e.autoClose),c=v.useRef(-1),u=()=>window.clearTimeout(c.current),d=()=>{t(e.id),u()},f=()=>{typeof l=="number"&&(c.current=window.setTimeout(d,l))};return v.useEffect(()=>{e.onOpen?.(e)},[]),v.useEffect(()=>(f(),u),[l]),p.jsx(Ec,{...o,...i,onClose:d,ref:r,onMouseEnter:u,onMouseLeave:f,children:a})});Jh.displayName="@mantine/notifications/NotificationContainer";var Qh={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const nR=vn,oR={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:st("overlay"),store:no,withinPortal:!0},rR=(e,{zIndex:t,containerWidth:n})=>({root:{"--notifications-z-index":t?.toString(),"--notifications-container-width":K(n)}}),In=U((e,t)=>{const n=H("Notifications",oR,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,position:c,autoClose:u,transitionDuration:d,containerWidth:f,notificationMaxHeight:m,limit:h,zIndex:g,store:y,portalProps:x,withinPortal:b,...w}=n,C=Ke(),S=OP(y),N=Lg(),D=Ss(),k=v.useRef({}),I=v.useRef(0),F=(C.respectReducedMotion?D:!1)?1:d,z=ne({name:"Notifications",classes:Qh,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,vars:l,varsResolver:rR});v.useEffect(()=>{y?.updateState(O=>({...O,limit:h||5,defaultPosition:c}))},[h,c]),bt(()=>{S.notifications.length>I.current&&setTimeout(()=>N(),0),I.current=S.notifications.length},[S.notifications]);const V=JP(S.notifications,c),$=Zh.reduce((O,R)=>(O[R]=V[R].map(({style:E,...P})=>p.jsx(nR,{timeout:F,onEnter:()=>k.current[P.id].offsetHeight,nodeRef:{current:k.current[P.id]},children:j=>p.jsx(Jh,{ref:M=>{M&&(k.current[P.id]=M)},data:P,onHide:M=>qh(M,y),autoClose:u,...z("notification",{style:{...eR({state:j,position:R,transitionDuration:F,maxHeight:m}),...E}})})},P.id)),O),{});return p.jsxs(Jt,{withinPortal:b,...x,children:[p.jsx(W,{...z("root"),"data-position":"top-center",ref:t,...w,children:p.jsx(_n,{children:$["top-center"]})}),p.jsx(W,{...z("root"),"data-position":"top-left",...w,children:p.jsx(_n,{children:$["top-left"]})}),p.jsx(W,{...z("root",{className:Un.classNames.fullWidth}),"data-position":"top-right",...w,children:p.jsx(_n,{children:$["top-right"]})}),p.jsx(W,{...z("root",{className:Un.classNames.fullWidth}),"data-position":"bottom-right",...w,children:p.jsx(_n,{children:$["bottom-right"]})}),p.jsx(W,{...z("root"),"data-position":"bottom-left",...w,children:p.jsx(_n,{children:$["bottom-left"]})}),p.jsx(W,{...z("root"),"data-position":"bottom-center",...w,children:p.jsx(_n,{children:$["bottom-center"]})})]})});In.classes=Qh;In.displayName="@mantine/notifications/Notifications";In.show=Yo.show;In.hide=Yo.hide;In.update=Yo.update;In.clean=Yo.clean;In.cleanQueue=Yo.cleanQueue;In.updateState=Yo.updateState;const qc=v.createContext(null);qc.displayName="@mantine/modals/ModalsContext";function sR(){const e=v.useContext(qc);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}function aR({id:e,cancelProps:t,confirmProps:n,labels:o={cancel:"",confirm:""},closeOnConfirm:r=!0,closeOnCancel:s=!0,groupProps:a,onCancel:i,onConfirm:l,children:c}){const{cancel:u,confirm:d}=o,f=sR(),m=g=>{typeof t?.onClick=="function"&&t?.onClick(g),typeof i=="function"&&i(),s&&f.closeModal(e)},h=g=>{typeof n?.onClick=="function"&&n?.onClick(g),typeof l=="function"&&l(),r&&f.closeModal(e)};return p.jsxs(p.Fragment,{children:[c&&p.jsx(W,{mb:"md",children:c}),p.jsxs(Fs,{mt:c?0:"md",justify:"flex-end",...a,children:[p.jsx(Eo,{variant:"default",...t,onClick:m,children:t?.children||u}),p.jsx(Eo,{...n,onClick:h,children:n?.children||d})]})]})}const[iR,oo]=cy("mantine-modals"),lR=e=>{const t=e.modalId||Ut();return oo("openModal")({...e,modalId:t}),t},cR=e=>{const t=e.modalId||Ut();return oo("openConfirmModal")({...e,modalId:t}),t},uR=e=>{const t=e.modalId||Ut();return oo("openContextModal")({...e,modalId:t}),t},dR=oo("closeModal"),fR=oo("closeAllModals"),pR=e=>oo("updateModal")(e),mR=e=>oo("updateContextModal")(e),tN={open:lR,close:dR,closeAll:fR,openConfirmModal:cR,openContextModal:uR,updateModal:pR,updateContextModal:mR};function Md(e,t){t&&e.type==="confirm"&&e.props.onCancel?.(),e.props.onClose?.()}function hR(e,t){switch(t.type){case"OPEN":return{current:t.modal,modals:[...e.modals,t.modal]};case"CLOSE":{if(!e.modals.find(r=>r.id===t.modalId))return e;const o=e.modals.filter(r=>r.id!==t.modalId);return{current:o[o.length-1]||e.current,modals:o}}case"CLOSE_ALL":return e.modals.length?{current:e.current,modals:[]}:e;case"UPDATE":{const{modalId:n,newProps:o}=t,r=e.modals.map(a=>a.id!==n?a:a.type==="content"||a.type==="confirm"?{...a,props:{...a.props,...o}}:a.type==="context"?{...a,props:{...a.props,...o,innerProps:{...a.props.innerProps,...o.innerProps}}}:a),s=e.current?.id===n&&r.find(a=>a.id===n)||e.current;return{...e,modals:r,current:s}}default:return e}}function vR(e){if(!e)return{confirmProps:{},modalProps:{}};const{id:t,children:n,onCancel:o,onConfirm:r,closeOnConfirm:s,closeOnCancel:a,cancelProps:i,confirmProps:l,groupProps:c,labels:u,...d}=e;return{confirmProps:{id:t,children:n,onCancel:o,onConfirm:r,closeOnConfirm:s,closeOnCancel:a,cancelProps:i,confirmProps:l,groupProps:c,labels:u},modalProps:{id:t,...d}}}function nN({children:e,modalProps:t,labels:n,modals:o}){const[r,s]=v.useReducer(hR,{modals:[],current:null}),a=v.useRef(r);a.current=r;const i=v.useCallback(b=>{a.current.modals.concat().reverse().forEach(w=>{Md(w,b)}),s({type:"CLOSE_ALL",canceled:b})},[a,s]),l=v.useCallback(({modalId:b,...w})=>{const C=b||Ut();return s({type:"OPEN",modal:{id:C,type:"content",props:w}}),C},[s]),c=v.useCallback(({modalId:b,...w})=>{const C=b||Ut();return s({type:"OPEN",modal:{id:C,type:"confirm",props:w}}),C},[s]),u=v.useCallback((b,{modalId:w,...C})=>{const S=w||Ut();return s({type:"OPEN",modal:{id:S,type:"context",props:C,ctx:b}}),S},[s]),d=v.useCallback((b,w)=>{const C=a.current.modals.find(S=>S.id===b);C&&Md(C,w),s({type:"CLOSE",modalId:b,canceled:w})},[a,s]),f=v.useCallback(({modalId:b,...w})=>{s({type:"UPDATE",modalId:b,newProps:w})},[s]),m=v.useCallback(({modalId:b,...w})=>{s({type:"UPDATE",modalId:b,newProps:w})},[s]);iR({openModal:l,openConfirmModal:c,openContextModal:({modal:b,...w})=>u(b,w),closeModal:d,closeContextModal:d,closeAllModals:i,updateModal:f,updateContextModal:m});const h={modalProps:t||{},modals:r.modals,openModal:l,openConfirmModal:c,openContextModal:u,closeModal:d,closeContextModal:d,closeAll:i,updateModal:f,updateContextModal:m},g=()=>{const b=a.current.current;switch(b?.type){case"context":{const{innerProps:w,...C}=b.props,S=o[b.ctx];return{modalProps:C,content:p.jsx(S,{innerProps:w,context:h,id:b.id})}}case"confirm":{const{modalProps:w,confirmProps:C}=vR(b.props);return{modalProps:w,content:p.jsx(aR,{...C,id:b.id,labels:b.props.labels||n})}}case"content":{const{children:w,...C}=b.props;return{modalProps:C,content:w}}default:return{modalProps:{},content:null}}},{modalProps:y,content:x}=g();return p.jsxs(qc.Provider,{value:h,children:[p.jsx(Tt,{zIndex:st("modal")+1,...t,...y,opened:r.modals.length>0,onClose:()=>d(r.current?.id),children:x}),e]})}var ns={exports:{}},gR=ns.exports,Id;function yR(){return Id||(Id=1,(function(e,t){(function(n,o){e.exports=o()})(gR,(function(){var n=1e3,o=6e4,r=36e5,s="millisecond",a="second",i="minute",l="hour",c="day",u="week",d="month",f="quarter",m="year",h="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var O=["th","st","nd","rd"],R=$%100;return"["+$+(O[(R-20)%10]||O[R]||O[0])+"]"}},w=function($,O,R){var E=String($);return!E||E.length>=O?$:""+Array(O+1-E.length).join(R)+$},C={s:w,z:function($){var O=-$.utcOffset(),R=Math.abs(O),E=Math.floor(R/60),P=R%60;return(O<=0?"+":"-")+w(E,2,"0")+":"+w(P,2,"0")},m:function $(O,R){if(O.date()1)return $(M[0])}else{var _=O.name;N[_]=O,P=_}return!E&&P&&(S=P),P||!E&&S},A=function($,O){if(k($))return $.clone();var R=typeof O=="object"?O:{};return R.date=$,R.args=arguments,new z(R)},F=C;F.l=I,F.i=k,F.w=function($,O){return A($,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var z=(function(){function $(R){this.$L=I(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[D]=!0}var O=$.prototype;return O.parse=function(R){this.$d=(function(E){var P=E.date,j=E.utc;if(P===null)return new Date(NaN);if(F.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var M=P.match(y);if(M){var _=M[2]-1||0,T=(M[7]||"0").substring(0,3);return j?new Date(Date.UTC(M[1],_,M[3]||1,M[4]||0,M[5]||0,M[6]||0,T)):new Date(M[1],_,M[3]||1,M[4]||0,M[5]||0,M[6]||0,T)}}return new Date(P)})(R),this.init()},O.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},O.$utils=function(){return F},O.isValid=function(){return this.$d.toString()!==g},O.isSame=function(R,E){var P=A(R);return this.startOf(E)<=P&&P<=this.endOf(E)},O.isAfter=function(R,E){return A(R)Q(a).locale(n).format(o);return e==="default"?t===null?"":s(t):e==="multiple"?t.map(s).join(", "):e==="range"&&Array.isArray(t)?t[0]&&t[1]?`${s(t[0])} ${r} ${s(t[1])}`:t[0]?`${s(t[0])} ${r} `:"":""}function wR({formatter:e,...t}){return(e||xR)(t)}function CR({direction:e,levelIndex:t,rowIndex:n,cellIndex:o,size:r}){switch(e){case"up":return t===0&&n===0?null:n===0?{levelIndex:t-1,rowIndex:o<=r[t-1][r[t-1].length-1]-1?r[t-1].length-1:r[t-1].length-2,cellIndex:o}:{levelIndex:t,rowIndex:n-1,cellIndex:o};case"down":return n===r[t].length-1?{levelIndex:t+1,rowIndex:0,cellIndex:o}:n===r[t].length-2&&o>=r[t][r[t].length-1]?{levelIndex:t+1,rowIndex:0,cellIndex:o}:{levelIndex:t,rowIndex:n+1,cellIndex:o};case"left":return t===0&&n===0&&o===0?null:n===0&&o===0?{levelIndex:t-1,rowIndex:r[t-1].length-1,cellIndex:r[t-1][r[t-1].length-1]-1}:o===0?{levelIndex:t,rowIndex:n-1,cellIndex:r[t][n-1]-1}:{levelIndex:t,rowIndex:n,cellIndex:o-1};case"right":return n===r[t].length-1&&o===r[t][n]-1?{levelIndex:t+1,rowIndex:0,cellIndex:0}:o===r[t][n]-1?{levelIndex:t,rowIndex:n+1,cellIndex:0}:{levelIndex:t,rowIndex:n,cellIndex:o+1};default:return{levelIndex:t,rowIndex:n,cellIndex:o}}}function ev({controlsRef:e,direction:t,levelIndex:n,rowIndex:o,cellIndex:r,size:s}){const a=CR({direction:t,size:s,rowIndex:o,cellIndex:r,levelIndex:n});if(!a)return;const i=e.current?.[a.levelIndex]?.[a.rowIndex]?.[a.cellIndex];i&&(i.disabled||i.getAttribute("data-hidden")||i.getAttribute("data-outside")?ev({controlsRef:e,direction:t,levelIndex:a.levelIndex,cellIndex:a.cellIndex,rowIndex:a.rowIndex,size:s}):i.focus())}function SR(e){switch(e){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function _R(e){return e.current?.map(t=>t.map(n=>n.length))}function Xc({controlsRef:e,levelIndex:t,rowIndex:n,cellIndex:o,event:r}){const s=SR(r.key);if(s){r.preventDefault();const a=_R(e);ev({controlsRef:e,direction:s,levelIndex:t,rowIndex:n,cellIndex:o,size:a})}}function Od(e,t){let n=e?Q(e):Q();if(t==="")return n.format("YYYY-MM-DD HH:mm:ss");const[o,r,s=0]=t.split(":").map(Number);return n=n.set("hour",o),n=n.set("minute",r),n=n.set("second",s),n=n.set("millisecond",0),n.format("YYYY-MM-DD HH:mm:ss")}function ft(e){return e==null||e===""?e:Q(e).format("YYYY-MM-DD")}function bo(e){return e==null||e===""?e:Q(e).format("YYYY-MM-DD HH:mm:ss")}function tv({minDate:e,maxDate:t}){const n=Q();return!e&&!t?ft(n):e&&Q(n).isBefore(e)?ft(e):t&&Q(n).isAfter(t)?ft(t):ft(n)}function hi(e,t,n){return!e&&!t?bo(n):e&&Q(n).isBefore(e)?bo(e):t&&Q(n).isAfter(t)?bo(t):bo(n)}const PR={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},RR=v.createContext(PR);function rn(){const e=v.useContext(RR),t=v.useCallback(s=>s||e.locale,[e.locale]),n=v.useCallback(s=>typeof s=="number"?s:e.firstDayOfWeek,[e.firstDayOfWeek]),o=v.useCallback(s=>Array.isArray(s)?s:e.weekendDays,[e.weekendDays]),r=v.useCallback(s=>typeof s=="string"?s:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:t,getFirstDayOfWeek:n,getWeekendDays:o,getLabelSeparator:r}}function DR({value:e,type:t,withTime:n}){const o=n?bo:ft;if(t==="range"&&Array.isArray(e)){const r=o(e[0]),s=o(e[1]);return r?s?`${r} – ${s}`:`${r} –`:""}return t==="multiple"&&Array.isArray(e)?e.filter(Boolean).join(", "):!Array.isArray(e)&&e?o(e):""}function Zc({value:e,type:t,name:n,form:o,withTime:r=!1}){return p.jsx("input",{type:"hidden",value:DR({value:e,type:t,withTime:r}),name:n,form:o})}Zc.displayName="@mantine/dates/HiddenDatesInput";function dt(e){return e<10?`0${e}`:`${e}`}const NR=e=>Number(e.toFixed(0)[0]),os=v.forwardRef(({value:e,min:t,max:n,onChange:o,focusable:r,step:s,onNextInput:a,onPreviousInput:i,onFocus:l,readOnly:c,allowTemporaryZero:u=!1,placeholder:d="--",...f},m)=>{const h=NR(n),g=n+1-s,y=b=>{if(c)return;const w=b.replace(/\D/g,"");if(w!==""){const C=parseInt(w,10),S=u&&C===0&&t>0?0:gt(C,t,n);o(S),(S>h||b.startsWith("00"))&&a?.()}},x=b=>{if(!c){if((b.key==="0"||b.key==="Num0")&&e===0&&(b.preventDefault(),a?.()),b.key==="Home"&&(b.preventDefault(),o(t)),b.key==="End"&&(b.preventDefault(),o(n)),(b.key==="Backspace"||b.key==="Delete")&&(b.preventDefault(),e!==null?o(null):i?.()),b.key==="ArrowRight"&&(b.preventDefault(),a?.()),b.key==="ArrowLeft"&&(b.preventDefault(),i?.()),b.key==="ArrowUp"){b.preventDefault();const w=e===null?t:gt(e+s,t,g);o(w)}if(b.key==="ArrowDown"){b.preventDefault();const w=e===null?g:gt(e-s,t,g);o(w)}}};return p.jsx("input",{ref:m,type:"text",role:"spinbutton","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":e===null?0:e,"data-empty":e===null||void 0,inputMode:"numeric",placeholder:d,value:e===null?"":dt(e),onChange:b=>y(b.currentTarget.value),onKeyDown:x,onFocus:b=>{b.currentTarget.select(),l?.(b)},onClick:b=>{b.stopPropagation(),b.currentTarget.select()},onMouseDown:b=>b.stopPropagation(),...f})});os.displayName="@mantine/dates/SpinInput";const[ER,ro]=nt("TimeInput component was not found in the component tree"),nv=v.forwardRef(({labels:e,value:t,onChange:n,className:o,style:r,onPreviousInput:s,readOnly:a,onMouseDown:i,onTouchStart:l,inputType:c,...u},d)=>{const f=ro(),m=h=>{a||(h.key==="Home"&&(h.preventDefault(),n(e.am)),h.key==="End"&&(h.preventDefault(),n(e.pm)),(h.key==="Backspace"||h.key==="Delete")&&(h.preventDefault(),t===null?s?.():n(null)),h.key==="ArrowLeft"&&(h.preventDefault(),s?.()),(h.key==="ArrowUp"||h.key==="ArrowDown")&&(h.preventDefault(),n(t===e.am?e.pm:e.am)),h.code==="KeyA"&&(h.preventDefault(),n(e.am)),h.code==="KeyP"&&(h.preventDefault(),n(e.pm)))};if(c==="input"){const h=t||"--",g=h.length+1;return p.jsx("input",{...f.getStyles("field",{className:o,style:r}),ref:d,value:h,size:g,readOnly:!0,onChange:()=>{},onClick:(y=>y.stopPropagation()),onKeyDown:m,onMouseDown:y=>{y.stopPropagation(),i?.(y)},"data-am-pm":!0,...u})}return p.jsxs("select",{...f.getStyles("field",{className:o,style:r}),ref:d,value:t||"",onChange:h=>!a&&n(h.target.value||null),onClick:h=>h.stopPropagation(),onKeyDown:m,onMouseDown:h=>{h.stopPropagation(),i?.(h)},"data-am-pm":!0,...u,children:[p.jsx("option",{value:"",children:"--"}),p.jsx("option",{value:e.am,children:e.am}),p.jsx("option",{value:e.pm,children:e.pm})]})});nv.displayName="@mantine/dates/AmPmInput";function Jc({value:e,active:t,onSelect:n}){const o=ro();return p.jsx(Xe,{mod:{active:t},onClick:()=>n(e),onMouseDown:r=>r.preventDefault(),"data-value":e,tabIndex:-1,...o.getStyles("control"),children:typeof e=="number"?dt(e):e})}Jc.displayName="@mantine/dates/TimeControl";function ov({labels:e,value:t,onSelect:n}){const o=ro(),r=[e.am,e.pm].map(s=>p.jsx(Jc,{value:s,active:t===s,onSelect:n},s));return p.jsx("div",{...o.getStyles("controlsList"),children:r})}ov.displayName="@mantine/dates/AmPmControlsList";function TR(e,t){if(!e||!t)return!1;const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top>=o.top&&n.bottom<=o.bottom&&n.left>=o.left&&n.right<=o.right}function kR(e,t,n){const o=[];for(let r=e;r<=t;r+=n)o.push(r);return o}function rs({min:e,max:t,step:n,value:o,onSelect:r,reversed:s}){const a=ro(),i=v.useRef(null),l=kR(e,t,n),c=(s?l.reverse():l).map(u=>p.jsx(Jc,{value:u,active:o===u,onSelect:r},u));return v.useEffect(()=>{o!==null&&requestAnimationFrame(()=>{const d=i.current?.querySelector(`[data-value="${o}"]`);TR(d,i.current)||d?.scrollIntoView({block:"nearest"})})},[o]),p.jsx(Lt,{h:a.maxDropdownContentHeight,type:"never",viewportRef:i,...a.getStyles("scrollarea"),...a.scrollAreaProps,children:p.jsx("div",{...a.getStyles("controlsList"),children:c})})}rs.displayName="@mantine/dates/TimeControlsList";var rv={fieldsRoot:"m_7a8f1e6d",fieldsGroup:"m_d6bb0a54",controlsList:"m_b97ecb26",controlsListGroup:"m_31fe42f9",dropdown:"m_9c4817c3",control:"m_154c536b",presetControl:"m_7be09d0c",presetsGroup:"m_7d00001d",presetsGroupLabel:"m_d8d918d7",field:"m_6b43ba88"};function ys(e){const[t=null,n=null,o=null]=e.split(":").map(Number);return{hours:t,minutes:n,seconds:o}}function sv({time:e,compare:t,withSeconds:n}){const o=ys(e),r=ys(t);return n?o.hours===r.hours&&o.minutes===r.minutes&&o.seconds===r.seconds:o.hours===r.hours&&o.minutes===r.minutes}function $R(e,t){return`${e.getHours()}:${e.getMinutes()}${t?`:${e.getSeconds()}`:""}`}function jR({value:e,format:t,amPmLabels:n,withSeconds:o}){const r=ys(typeof e=="string"?e:$R(e,o));if(r.hours===null||r.minutes===null)return null;if(t==="24h")return`${dt(r.hours)}:${dt(r.minutes)}${o?`:${dt(r.seconds||0)}`:""}`;const s=r.hours>=12;return`${r.hours%12===0?12:r.hours%12}:${dt(r.minutes)}${o?`:${dt(r.seconds||0)}`:""} ${s?n.pm:n.am}`}function av({value:e,format:t="24h",amPmLabels:n={am:"AM",pm:"PM"},withSeconds:o=!1}){return p.jsx(p.Fragment,{children:jR({value:e,format:t,amPmLabels:n,withSeconds:o})})}av.displayName="@mantine/dates/TimeValue";function Qc({value:e,active:t,onChange:n,format:o,amPmLabels:r,withSeconds:s}){const a=ro();return p.jsx(Xe,{mod:{active:t},onClick:()=>n(e),...a.getStyles("presetControl"),children:p.jsx(av,{withSeconds:s,value:e,format:o,amPmLabels:r})})}Qc.displayName="@mantine/dates/TimePresetControl";function iv({value:e,data:t,onChange:n,format:o,amPmLabels:r,withSeconds:s}){const a=ro(),i=t.values.map(l=>p.jsx(Qc,{value:l,format:o,amPmLabels:r,withSeconds:s,active:sv({time:l,compare:e,withSeconds:s}),onChange:n},l));return p.jsxs("div",{...a.getStyles("presetsGroup"),children:[p.jsx("div",{...a.getStyles("presetsGroupLabel"),children:t.label}),p.jsx(xa,{cols:s?2:3,spacing:4,children:i})]})}iv.displayName="@mantine/dates/TimePresetGroup";function lv({presets:e,format:t,amPmLabels:n,withSeconds:o,value:r,onChange:s}){const a=ro();if(e.length===0)return null;if(typeof e[0]=="string"){const l=e.map(c=>p.jsx(Qc,{value:c,format:t,amPmLabels:n,withSeconds:o,active:sv({time:c,compare:r,withSeconds:o}),onChange:s},c));return p.jsx(Lt.Autosize,{mah:a.maxDropdownContentHeight,type:"never",...a.getStyles("scrollarea"),...a.scrollAreaProps,children:p.jsx("div",{...a.getStyles("presetsRoot"),children:p.jsx(xa,{cols:o?2:3,spacing:4,children:l})})})}const i=e.map((l,c)=>p.jsx(iv,{data:l,value:r,format:t,amPmLabels:n,withSeconds:o,onChange:s},c));return p.jsx(Lt.Autosize,{mah:a.maxDropdownContentHeight,type:"never",...a.getStyles("scrollarea"),...a.scrollAreaProps,children:p.jsx("div",{...a.getStyles("presetsRoot"),children:i})})}lv.displayName="@mantine/dates/TimePresets";function So(e){const[t=0,n=0,o=0]=e.split(":").map(Number);return t*3600+n*60+o}function cv(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=e%60;return{timeString:`${dt(t)}:${dt(n)}:${dt(o)}`,hours:t,minutes:n,seconds:o}}function uv(e,t,n){const o=So(e),r=t?So(t):-1/0,s=n?So(n):1/0,a=Math.max(r,Math.min(o,s));return cv(a)}function MR({hours:e,minutes:t,seconds:n,amPmLabels:o}){if(e===null)return{hours:null,minutes:null,seconds:null,amPm:null};const r=e>=12?o.pm:o.am;return{hours:e%12===0?12:e%12,minutes:typeof t=="number"?t:null,seconds:typeof n=="number"?n:null,amPm:r}}function nr({time:e,format:t,amPmLabels:n}){if(e==="")return{hours:null,minutes:null,seconds:null,amPm:null};const{hours:o,minutes:r,seconds:s}=ys(e),a={hours:o,minutes:r,seconds:s};return t==="12h"?MR({...a,amPmLabels:n}):{...a,amPm:null}}function IR({hours:e,minutes:t,seconds:n,amPm:o,amPmLabels:r,withSeconds:s}){let a=e;return o===r.pm&&e!==12?a+=12:o===r.am&&e===12&&(a=0),`${dt(a)}:${dt(t)}${s?`:${dt(n||0)}`:""}`}function go({hours:e,minutes:t,seconds:n,format:o,withSeconds:r,amPm:s,amPmLabels:a}){return e===null||t===null?{valid:!1,value:""}:r&&n===null?{valid:!1,value:""}:o==="24h"?{valid:!0,value:`${dt(e)}:${dt(t)}${r?`:${dt(n)}`:""}`}:s===null?{valid:!1,value:""}:{valid:!0,value:IR({hours:e,minutes:t,seconds:n,amPm:s,amPmLabels:a,withSeconds:r})}}function OR({value:e,defaultValue:t,onChange:n,format:o,amPmLabels:r,withSeconds:s=!1,min:a,max:i,clearable:l,readOnly:c,disabled:u,pasteSplit:d}){const f=nr({time:e||t||"",amPmLabels:r,format:o}),m=go({hours:f.hours,minutes:f.minutes,seconds:f.seconds,format:o,withSeconds:s,amPm:f.amPm,amPmLabels:r}),h=v.useRef(!0),g=v.useRef(!m.valid),[y,x]=v.useState(f.hours),[b,w]=v.useState(f.minutes),[C,S]=v.useState(f.seconds),[N,D]=v.useState(f.amPm),k=l&&!c&&!u&&(y!==null||b!==null||C!==null||N!==null),I=v.useRef(null),A=v.useRef(null),F=v.useRef(null),z=v.useRef(null),V=L=>{L==="hours"&&I.current?.focus(),L==="minutes"&&A.current?.focus(),L==="seconds"&&F.current?.focus(),L==="amPm"&&z.current?.focus()},$=(L,B)=>{const G={hours:y,minutes:b,seconds:C,amPm:N,[L]:B},q=go({...G,format:o,withSeconds:s,amPmLabels:r});q.valid?(h.current=!1,g.current=!1,L==="hours"&&x(B),L==="minutes"&&w(B),L==="seconds"&&S(B),L==="amPm"&&D(B),n?.(q.value)):(h.current=!1,g.current||(n?.(""),g.current=!0))},O=L=>{h.current=!1;const B=nr({time:L,amPmLabels:r,format:o});x(B.hours),w(B.minutes),S(B.seconds),D(B.amPm);const G=go({...B,format:o,withSeconds:s,amPmLabels:r});g.current=!G.valid,n?.(L)},R=L=>{let B=L;o==="12h"&&typeof L=="number"&&L>12&&(B=(L-1)%12+1),x(B),$("hours",B),V("hours")},E=L=>{w(L),$("minutes",L),V("minutes")},P=L=>{S(L),$("seconds",L),V("seconds")},j=L=>{D(L),$("amPm",L),V("amPm")},M=()=>{h.current=!1,x(null),w(null),S(null),D(null),n?.(""),g.current=!0,V("hours")},_=L=>{L.preventDefault();const B=L.clipboardData.getData("text"),G=(d||nr)({time:B,format:o,amPmLabels:r}),q=go({...G,format:o,withSeconds:s,amPmLabels:r});if(q.valid){h.current=!1;const X=uv(q.value,a||"00:00:00",i||"23:59:59");n?.(X.timeString),x(G.hours),w(G.minutes),S(G.seconds),D(G.amPm)}},T=go({hours:y,minutes:b,seconds:C,format:o,withSeconds:s,amPm:N,amPmLabels:r});return bt(()=>{if(e===""){h.current=!1,x(null),w(null),S(null),D(null),h.current=!0;return}if(h.current&&typeof e=="string"){const L=nr({time:e||"",amPmLabels:r,format:o});x(L.hours),w(L.minutes),S(L.seconds),D(L.amPm)}h.current=!0},[e]),{refs:{hours:I,minutes:A,seconds:F,amPm:z},values:{hours:y,minutes:b,seconds:C,amPm:N},setHours:R,setMinutes:E,setSeconds:P,setAmPm:j,focus:V,clear:M,onPaste:_,setTimeString:O,isClearable:k,hiddenInputValue:T.value}}const AR={hoursStep:1,minutesStep:1,secondsStep:1,format:"24h",amPmLabels:{am:"AM",pm:"PM"},pasteSplit:nr,maxDropdownContentHeight:200,hoursPlaceholder:"--",minutesPlaceholder:"--",secondsPlaceholder:"--"},LR=(e,{size:t})=>({dropdown:{"--control-font-size":Ge(t)}}),eu=U((e,t)=>{const n=H("TimePicker",AR,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,onClick:c,format:u,value:d,defaultValue:f,onChange:m,hoursStep:h,minutesStep:g,secondsStep:y,withSeconds:x,hoursInputLabel:b,minutesInputLabel:w,secondsInputLabel:C,amPmInputLabel:S,amPmLabels:N,clearable:D,onMouseDown:k,onFocusCapture:I,onBlurCapture:A,min:F,max:z,popoverProps:V,withDropdown:$,rightSection:O,onFocus:R,onBlur:E,clearButtonProps:P,hoursInputProps:j,minutesInputProps:M,secondsInputProps:_,amPmSelectProps:T,readOnly:L,disabled:B,size:G,name:q,form:X,hiddenInputProps:le,labelProps:J,pasteSplit:ee,hoursRef:ce,minutesRef:re,secondsRef:ae,amPmRef:pe,presets:ge,maxDropdownContentHeight:ie,scrollAreaProps:te,attributes:Z,reverseTimeControlsList:oe,hoursPlaceholder:be,minutesPlaceholder:_e,secondsPlaceholder:me,...we}=n,{resolvedClassNames:ke,resolvedStyles:Pe}=pt({classNames:o,styles:a,props:n}),De=ne({name:"TimePicker",classes:rv,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:Z,vars:l,varsResolver:LR}),Y=OR({value:d,defaultValue:f,onChange:m,format:u,amPmLabels:N,withSeconds:x,min:F,max:z,clearable:D,disabled:B,readOnly:L,pasteSplit:ee}),ue=$e(Y.refs.hours,ce),Te=$e(Y.refs.minutes,re),Me=$e(Y.refs.seconds,ae),de=$e(Y.refs.amPm,pe),se=Qe(),Ne=v.useRef(!1),[ve,xe]=v.useState(!1),Ie=fe=>{Ne.current||(Ne.current=!0,R?.(fe))},ot=fe=>{if(!fe.currentTarget.contains(fe.relatedTarget)){const lt=Y.values,tt=go({...lt,format:u,amPmLabels:N,withSeconds:!!x});if(tt.valid&&(F||z)){const Fe=uv(tt.value,F,z);Fe.timeString!==tt.value&&Y.setTimeString(Fe.timeString)}Ne.current=!1,E?.(fe)}};return p.jsx(ER,{value:{getStyles:De,scrollAreaProps:te,maxDropdownContentHeight:ie},children:p.jsxs(Be,{opened:ve,transitionProps:{duration:0},position:"bottom-start",withRoles:!1,disabled:B||L||!$,...V,children:[p.jsx(Be.Target,{children:p.jsxs(it,{component:"div",size:G,disabled:B,ref:t,onClick:fe=>{c?.(fe),Y.focus("hours")},onMouseDown:fe=>{fe.preventDefault(),k?.(fe)},onFocusCapture:fe=>{xe(!0),I?.(fe)},onBlurCapture:fe=>{xe(!1),A?.(fe)},rightSection:O||Y.isClearable&&p.jsx(Tn,{...P,size:G,onClick:fe=>{Y.clear(),P?.onClick?.(fe)},onMouseDown:fe=>{fe.preventDefault(),P?.onMouseDown?.(fe)}}),labelProps:{htmlFor:se,...J},style:s,className:r,classNames:ke,styles:Pe,__staticSelector:"TimePicker",...we,children:[p.jsx("div",{...De("fieldsRoot"),dir:"ltr",children:p.jsxs("div",{...De("fieldsGroup"),onBlur:ot,children:[p.jsx(os,{id:se,...j,...De("field",{className:j?.className,style:j?.style}),value:Y.values.hours,onChange:Y.setHours,onNextInput:()=>Y.focus("minutes"),min:u==="12h"?1:0,max:u==="12h"?12:23,allowTemporaryZero:u==="12h",focusable:!0,step:h,ref:ue,"aria-label":b,readOnly:L,disabled:B,onPaste:Y.onPaste,onFocus:fe=>{Ie(fe),j?.onFocus?.(fe)},onBlur:fe=>{const lt=fe.currentTarget.value,tt=lt?parseInt(lt,10):null;u==="12h"&&tt===0&&Y.setHours(12),j?.onBlur?.(fe)},placeholder:be}),p.jsx("span",{children:":"}),p.jsx(os,{...M,...De("field",{className:M?.className,style:M?.style}),value:Y.values.minutes,onChange:Y.setMinutes,min:0,max:59,focusable:!0,step:g,ref:Te,onPreviousInput:()=>Y.focus("hours"),onNextInput:()=>x?Y.focus("seconds"):Y.focus("amPm"),"aria-label":w,tabIndex:-1,readOnly:L,disabled:B,onPaste:Y.onPaste,onFocus:fe=>{Ie(fe),M?.onFocus?.(fe)},placeholder:_e}),x&&p.jsxs(p.Fragment,{children:[p.jsx("span",{children:":"}),p.jsx(os,{..._,...De("field",{className:_?.className,style:_?.style}),value:Y.values.seconds,onChange:Y.setSeconds,min:0,max:59,focusable:!0,step:y,ref:Me,onPreviousInput:()=>Y.focus("minutes"),onNextInput:()=>Y.focus("amPm"),"aria-label":C,tabIndex:-1,readOnly:L,disabled:B,onPaste:Y.onPaste,onFocus:fe=>{Ie(fe),_?.onFocus?.(fe)},placeholder:me})]}),u==="12h"&&p.jsx(nv,{...T,inputType:$?"input":"select",labels:N,value:Y.values.amPm,onChange:Y.setAmPm,ref:de,"aria-label":S,onPreviousInput:()=>x?Y.focus("seconds"):Y.focus("minutes"),readOnly:L,disabled:B,tabIndex:-1,onPaste:Y.onPaste,onFocus:fe=>{Ie(fe),T?.onFocus?.(fe)}})]})}),p.jsx("input",{type:"hidden",name:q,form:X,value:Y.hiddenInputValue,...le})]})}),p.jsx(Be.Dropdown,{...De("dropdown"),onMouseDown:fe=>fe.preventDefault(),children:ge?p.jsx(lv,{value:Y.hiddenInputValue,onChange:Y.setTimeString,format:u,presets:ge,amPmLabels:N,withSeconds:x||!1}):p.jsxs("div",{...De("controlsListGroup"),children:[p.jsx(rs,{min:u==="12h"?1:0,max:u==="12h"?12:23,step:h,value:Y.values.hours,onSelect:Y.setHours,reversed:oe}),p.jsx(rs,{min:0,max:59,step:g,value:Y.values.minutes,onSelect:Y.setMinutes,reversed:oe}),x&&p.jsx(rs,{min:0,max:59,step:y,value:Y.values.seconds,onSelect:Y.setSeconds,reversed:oe}),u==="12h"&&p.jsx(ov,{labels:N,value:Y.values.amPm,onSelect:Y.setAmPm})]})})]})})});eu.displayName="@mantine/dates/TimePicker";eu.classes=rv;function oN({startTime:e,endTime:t,interval:n}){const o=[],r=So(e),s=So(t),a=So(n);for(let i=r;i<=s;i+=a)o.push(cv(i).timeString);return o}var dv={day:"m_396ce5cb"};const FR=(e,{size:t})=>({day:{"--day-size":he(t,"day-size")}}),tu=U((e,t)=>{const n=H("Day",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,date:c,disabled:u,__staticSelector:d,weekend:f,outside:m,selected:h,renderDay:g,inRange:y,firstInRange:x,lastInRange:b,hidden:w,static:C,highlightToday:S,attributes:N,...D}=n,k=ne({name:d||"Day",classes:dv,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:N,vars:l,varsResolver:FR,rootSelector:"day"});return p.jsx(Xe,{...k("day",{style:w?{display:"none"}:void 0}),component:C?"div":"button",ref:t,disabled:u,"data-today":Q(c).isSame(new Date,"day")||void 0,"data-hidden":w||void 0,"data-highlight-today":S||void 0,"data-disabled":u||void 0,"data-weekend":!u&&!m&&f||void 0,"data-outside":!u&&m||void 0,"data-selected":!u&&h||void 0,"data-in-range":y&&!u||void 0,"data-first-in-range":x&&!u||void 0,"data-last-in-range":b&&!u||void 0,"data-static":C||void 0,unstyled:i,...D,children:g?.(c)||Q(c).date()})});tu.classes=dv;tu.displayName="@mantine/dates/Day";function zR({locale:e,format:t="dd",firstDayOfWeek:n=1}){const o=Q().day(n),r=[];for(let s=0;s<7;s+=1)typeof t=="string"?r.push(Q(o).add(s,"days").locale(e).format(t)):r.push(t(Q(o).add(s,"days").format("YYYY-MM-DD")));return r}var fv={weekday:"m_18a3eca"};const BR=(e,{size:t})=>({weekdaysRow:{"--wr-fz":Ge(t),"--wr-spacing":ze(t)}}),nu=U((e,t)=>{const n=H("WeekdaysRow",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,locale:c,firstDayOfWeek:u,weekdayFormat:d,cellComponent:f="th",__staticSelector:m,withWeekNumbers:h,attributes:g,...y}=n,x=ne({name:m||"WeekdaysRow",classes:fv,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:g,vars:l,varsResolver:BR,rootSelector:"weekdaysRow"}),b=rn(),w=zR({locale:b.getLocale(c),format:d,firstDayOfWeek:b.getFirstDayOfWeek(u)}).map((C,S)=>p.jsx(f,{...x("weekday"),children:C},S));return p.jsxs(W,{component:"tr",ref:t,...x("weekdaysRow"),...y,children:[h&&p.jsx(f,{...x("weekday"),children:"#"}),w]})});nu.classes=fv;nu.displayName="@mantine/dates/WeekdaysRow";function VR(e,t=1){let n=Q(e);if(!n.isValid())return n;const o=t===0?6:t-1;for(;n.day()!==o;)n=n.add(1,"day");return n.format("YYYY-MM-DD")}function HR(e,t=1){let n=Q(e);for(;n.day()!==t;)n=n.subtract(1,"day");return n.format("YYYY-MM-DD")}function YR({month:e,firstDayOfWeek:t=1,consistentWeeks:n}){const o=Q(e).subtract(Q(e).date()-1,"day"),r=Q(o.format("YYYY-M-D")),s=r.format("YYYY-MM-DD"),a=r.add(+r.daysInMonth()-1,"day").format("YYYY-MM-DD"),i=VR(a,t),l=[];let c=Q(HR(s,t));for(;Q(c).isBefore(i,"day");){const u=[];for(let d=0;d<7;d+=1)u.push(c.format("YYYY-MM-DD")),c=c.add(1,"day");l.push(u)}if(n&&l.length<6){const u=l[l.length-1],d=u[u.length-1];let f=Q(d).add(1,"day");for(;l.length<6;){const m=[];for(let h=0;h<7;h+=1)m.push(f.format("YYYY-MM-DD")),f=f.add(1,"day");l.push(m)}}return l}function Ca(e,t){return Q(e).format("YYYY-MM")===Q(t).format("YYYY-MM")}function pv(e,t){return t?Q(e).isAfter(Q(t).subtract(1,"day"),"day"):!0}function mv(e,t){return t?Q(e).isBefore(Q(t).add(1,"day"),"day"):!0}function WR({dates:e,minDate:t,maxDate:n,getDayProps:o,excludeDate:r,hideOutsideDates:s,month:a}){const i=e.flat().filter(u=>mv(u,n)&&pv(u,t)&&!r?.(u)&&!o?.(u)?.disabled&&(!s||Ca(u,a))),l=i.find(u=>o?.(u)?.selected);if(l)return l;const c=i.find(u=>Q().isSame(u,"date"));return c||i[0]}var ss={exports:{}},GR=ss.exports,Ad;function KR(){return Ad||(Ad=1,(function(e,t){(function(n,o){e.exports=o()})(GR,(function(){var n="day";return function(o,r,s){var a=function(c){return c.add(4-c.isoWeekday(),n)},i=r.prototype;i.isoWeekYear=function(){return a(this).year()},i.isoWeek=function(c){if(!this.$utils().u(c))return this.add(7*(c-this.isoWeek()),n);var u,d,f,m,h=a(this),g=(u=this.isoWeekYear(),d=this.$u,f=(d?s.utc:s)().year(u).startOf("year"),m=4-f.isoWeekday(),f.isoWeekday()>4&&(m+=7),f.add(m,n));return h.diff(g,"week")+1},i.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var l=i.startOf;i.startOf=function(c,u){var d=this.$utils(),f=!!d.u(u)||u;return d.p(c)==="isoweek"?f?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(c,u)}}}))})(ss)),ss.exports}var UR=KR();const qR=dr(UR);Q.extend(qR);function XR(e){const t=e.find(n=>Q(n).day()===1);return Q(t).isoWeek()}var hv={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const ZR={withCellSpacing:!0},JR=(e,{size:t})=>({weekNumber:{"--wn-fz":Ge(t),"--wn-size":he(t,"wn-size")}}),Sa=U((e,t)=>{const n=H("Month",ZR,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,__staticSelector:c,locale:u,firstDayOfWeek:d,weekdayFormat:f,month:m,weekendDays:h,getDayProps:g,excludeDate:y,minDate:x,maxDate:b,renderDay:w,hideOutsideDates:C,hideWeekdays:S,getDayAriaLabel:N,static:D,__getDayRef:k,__onDayKeyDown:I,__onDayClick:A,__onDayMouseEnter:F,__preventFocus:z,__stopPropagation:V,withCellSpacing:$,size:O,highlightToday:R,withWeekNumbers:E,attributes:P,...j}=n,M=ne({name:c||"Month",classes:hv,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:P,vars:l,varsResolver:JR,rootSelector:"month"}),_=rn(),T=YR({month:m,firstDayOfWeek:_.getFirstDayOfWeek(d),consistentWeeks:_.consistentWeeks}),L=WR({dates:T,minDate:ft(x),maxDate:ft(b),getDayProps:g,excludeDate:y,hideOutsideDates:C,month:m}),{resolvedClassNames:B,resolvedStyles:G}=pt({classNames:o,styles:a,props:n}),q=T.map((X,le)=>{const J=X.map((ee,ce)=>{const re=!Ca(ee,m),ae=N?.(ee)||Q(ee).locale(u||_.locale).format("D MMMM YYYY"),pe=g?.(ee),ge=Q(ee).isSame(L,"date");return p.jsx("td",{...M("monthCell"),"data-with-spacing":$||void 0,children:p.jsx(tu,{__staticSelector:c||"Month",classNames:B,styles:G,unstyled:i,"data-mantine-stop-propagation":V||void 0,highlightToday:R,renderDay:w,date:ee,size:O,weekend:_.getWeekendDays(h).includes(Q(ee).get("day")),outside:re,hidden:C?re:!1,"aria-label":ae,static:D,disabled:y?.(ee)||!mv(ee,ft(b))||!pv(ee,ft(x)),ref:ie=>{ie&&k?.(le,ce,ie)},...pe,onKeyDown:ie=>{pe?.onKeyDown?.(ie),I?.(ie,{rowIndex:le,cellIndex:ce,date:ee})},onMouseEnter:ie=>{pe?.onMouseEnter?.(ie),F?.(ie,ee)},onClick:ie=>{pe?.onClick?.(ie),A?.(ie,ee)},onMouseDown:ie=>{pe?.onMouseDown?.(ie),z&&ie.preventDefault()},tabIndex:z||!ge?-1:0})},ee.toString())});return p.jsxs("tr",{...M("monthRow"),children:[E&&p.jsx("td",{...M("weekNumber"),children:XR(X)}),J]},le)});return p.jsxs(W,{component:"table",...M("month"),size:O,ref:t,...j,children:[!S&&p.jsx("thead",{...M("monthThead"),children:p.jsx(nu,{__staticSelector:c||"Month",locale:u,firstDayOfWeek:d,weekdayFormat:f,size:O,classNames:B,styles:G,unstyled:i,withWeekNumbers:E})}),p.jsx("tbody",{...M("monthTbody"),children:q})]})});Sa.classes=hv;Sa.displayName="@mantine/dates/Month";var vv={pickerControl:"m_dc6a3c71"};const QR=(e,{size:t})=>({pickerControl:{"--dpc-fz":Ge(t),"--dpc-size":he(t,"dpc-size")}}),_a=U((e,t)=>{const n=H("PickerControl",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,firstInRange:c,lastInRange:u,inRange:d,__staticSelector:f,selected:m,disabled:h,attributes:g,...y}=n,x=ne({name:f||"PickerControl",classes:vv,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:g,vars:l,varsResolver:QR,rootSelector:"pickerControl"});return p.jsx(Xe,{...x("pickerControl"),ref:t,unstyled:i,"data-picker-control":!0,"data-selected":m&&!h||void 0,"data-disabled":h||void 0,"data-in-range":d&&!h&&!m||void 0,"data-first-in-range":c&&!h||void 0,"data-last-in-range":u&&!h||void 0,disabled:h,...y})});_a.classes=vv;_a.displayName="@mantine/dates/PickerControl";function gv({year:e,minDate:t,maxDate:n}){return!t&&!n?!1:!!(t&&Q(e).isBefore(t,"year")||n&&Q(e).isAfter(n,"year"))}function eD({years:e,minDate:t,maxDate:n,getYearControlProps:o}){const r=e.flat().filter(i=>!gv({year:i,minDate:t,maxDate:n})&&!o?.(i)?.disabled),s=r.find(i=>o?.(i)?.selected);if(s)return s;const a=r.find(i=>Q().isSame(i,"year"));return a||r[0]}function yv(e){const t=Q(e).year(),n=t-t%10;let o=0;const r=[[],[],[],[]];for(let s=0;s<4;s+=1){const a=s===3?1:3;for(let i=0;i{const n=H("YearsList",tD,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,decade:c,yearsListFormat:u,locale:d,minDate:f,maxDate:m,getYearControlProps:h,__staticSelector:g,__getControlRef:y,__onControlKeyDown:x,__onControlClick:b,__onControlMouseEnter:w,__preventFocus:C,__stopPropagation:S,withCellSpacing:N,size:D,attributes:k,...I}=n,A=ne({name:g||"YearsList",classes:bv,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:k,vars:l,rootSelector:"yearsList"}),F=rn(),z=yv(c),V=eD({years:z,minDate:f,maxDate:m,getYearControlProps:h}),$=z.map((O,R)=>{const E=O.map((P,j)=>{const M=h?.(P),_=Q(P).isSame(V,"year");return p.jsx("td",{...A("yearsListCell"),"data-with-spacing":N||void 0,children:p.jsx(_a,{...A("yearsListControl"),size:D,unstyled:i,"data-mantine-stop-propagation":S||void 0,disabled:gv({year:P,minDate:f,maxDate:m}),ref:T=>{T&&y?.(R,j,T)},...M,onKeyDown:T=>{M?.onKeyDown?.(T),x?.(T,{rowIndex:R,cellIndex:j,date:P})},onClick:T=>{M?.onClick?.(T),b?.(T,P)},onMouseEnter:T=>{M?.onMouseEnter?.(T),w?.(T,P)},onMouseDown:T=>{M?.onMouseDown?.(T),C&&T.preventDefault()},tabIndex:C||!_?-1:0,children:M?.children??Q(P).locale(F.getLocale(d)).format(u)})},j)});return p.jsx("tr",{...A("yearsListRow"),children:E},R)});return p.jsx(W,{component:"table",ref:t,size:D,...A("yearsList"),...I,children:p.jsx("tbody",{children:$})})});Pa.classes=bv;Pa.displayName="@mantine/dates/YearsList";function xv({month:e,minDate:t,maxDate:n}){return!t&&!n?!1:!!(t&&Q(e).isBefore(t,"month")||n&&Q(e).isAfter(n,"month"))}function nD({months:e,minDate:t,maxDate:n,getMonthControlProps:o}){const r=e.flat().filter(i=>!xv({month:i,minDate:t,maxDate:n})&&!o?.(i)?.disabled),s=r.find(i=>o?.(i)?.selected);if(s)return s;const a=r.find(i=>Q().isSame(i,"month"));return a||r[0]}function oD(e){const t=Q(e).startOf("year").toDate(),n=[[],[],[],[]];let o=0;for(let r=0;r<4;r+=1)for(let s=0;s<3;s+=1)n[r].push(Q(t).add(o,"months").format("YYYY-MM-DD")),o+=1;return n}var wv={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const rD={monthsListFormat:"MMM",withCellSpacing:!0},Ra=U((e,t)=>{const n=H("MonthsList",rD,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,__staticSelector:c,year:u,monthsListFormat:d,locale:f,minDate:m,maxDate:h,getMonthControlProps:g,__getControlRef:y,__onControlKeyDown:x,__onControlClick:b,__onControlMouseEnter:w,__preventFocus:C,__stopPropagation:S,withCellSpacing:N,size:D,attributes:k,...I}=n,A=ne({name:c||"MonthsList",classes:wv,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:k,vars:l,rootSelector:"monthsList"}),F=rn(),z=oD(u),V=nD({months:z,minDate:ft(m),maxDate:ft(h),getMonthControlProps:g}),$=z.map((O,R)=>{const E=O.map((P,j)=>{const M=g?.(P),_=Q(P).isSame(V,"month");return p.jsx("td",{...A("monthsListCell"),"data-with-spacing":N||void 0,children:p.jsx(_a,{...A("monthsListControl"),size:D,unstyled:i,__staticSelector:c||"MonthsList","data-mantine-stop-propagation":S||void 0,disabled:xv({month:P,minDate:ft(m),maxDate:ft(h)}),ref:T=>{T&&y?.(R,j,T)},...M,onKeyDown:T=>{M?.onKeyDown?.(T),x?.(T,{rowIndex:R,cellIndex:j,date:P})},onClick:T=>{M?.onClick?.(T),b?.(T,P)},onMouseEnter:T=>{M?.onMouseEnter?.(T),w?.(T,P)},onMouseDown:T=>{M?.onMouseDown?.(T),C&&T.preventDefault()},tabIndex:C||!_?-1:0,children:M?.children??Q(P).locale(F.getLocale(f)).format(d)})},j)});return p.jsx("tr",{...A("monthsListRow"),children:E},R)});return p.jsx(W,{component:"table",ref:t,size:D,...A("monthsList"),...I,children:p.jsx("tbody",{children:$})})});Ra.classes=wv;Ra.displayName="@mantine/dates/MonthsList";var Cv={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const sD={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},aD=(e,{size:t})=>({calendarHeader:{"--dch-control-size":he(t,"dch-control-size"),"--dch-fz":Ge(t)}}),On=U((e,t)=>{const n=H("CalendarHeader",sD,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,nextIcon:c,previousIcon:u,nextLabel:d,previousLabel:f,onNext:m,onPrevious:h,onLevelClick:g,label:y,nextDisabled:x,previousDisabled:b,hasNextLevel:w,levelControlAriaLabel:C,withNext:S,withPrevious:N,headerControlsOrder:D,__staticSelector:k,__preventFocus:I,__stopPropagation:A,attributes:F,...z}=n,V=ne({name:k||"CalendarHeader",classes:Cv,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:F,vars:l,varsResolver:aD,rootSelector:"calendarHeader"}),$=I?j=>j.preventDefault():void 0,O=N&&v.createElement(Xe,{...V("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":f,onClick:h,unstyled:i,onMouseDown:$,disabled:b,"data-disabled":b||void 0,tabIndex:I||b?-1:0,"data-mantine-stop-propagation":A||void 0},u||p.jsx(Xn,{...V("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),R=v.createElement(Xe,{component:w?"button":"div",...V("calendarHeaderLevel"),key:"level",onClick:w?g:void 0,unstyled:i,onMouseDown:w?$:void 0,disabled:!w,"data-static":!w||void 0,"aria-label":C,tabIndex:I||!w?-1:0,"data-mantine-stop-propagation":A||void 0},y),E=S&&v.createElement(Xe,{...V("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":d,onClick:m,unstyled:i,onMouseDown:$,disabled:x,"data-disabled":x||void 0,tabIndex:I||x?-1:0,"data-mantine-stop-propagation":A||void 0},c||p.jsx(Xn,{...V("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),P=D.map(j=>j==="previous"?O:j==="level"?R:j==="next"?E:null);return p.jsx(W,{...V("calendarHeader"),ref:t,...z,children:P})});On.classes=Cv;On.displayName="@mantine/dates/CalendarHeader";function iD(e){const t=yv(e);return[t[0][0],t[3][0]]}const lD={decadeLabelFormat:"YYYY"},Da=U((e,t)=>{const n=H("DecadeLevel",lD,e),{decade:o,locale:r,minDate:s,maxDate:a,yearsListFormat:i,getYearControlProps:l,__getControlRef:c,__onControlKeyDown:u,__onControlClick:d,__onControlMouseEnter:f,withCellSpacing:m,__preventFocus:h,nextIcon:g,previousIcon:y,nextLabel:x,previousLabel:b,onNext:w,onPrevious:C,nextDisabled:S,previousDisabled:N,levelControlAriaLabel:D,withNext:k,withPrevious:I,headerControlsOrder:A,decadeLabelFormat:F,classNames:z,styles:V,unstyled:$,__staticSelector:O,__stopPropagation:R,size:E,attributes:P,...j}=n,M=rn(),[_,T]=iD(o),L={__staticSelector:O||"DecadeLevel",classNames:z,styles:V,unstyled:$,size:E,attributes:P},B=typeof S=="boolean"?S:a?!Q(T).endOf("year").isBefore(a):!1,G=typeof N=="boolean"?N:s?!Q(_).startOf("year").isAfter(s):!1,q=(X,le)=>Q(X).locale(r||M.locale).format(le);return p.jsxs(W,{"data-decade-level":!0,size:E,ref:t,...j,children:[p.jsx(On,{label:typeof F=="function"?F(_,T):`${q(_,F)} – ${q(T,F)}`,__preventFocus:h,__stopPropagation:R,nextIcon:g,previousIcon:y,nextLabel:x,previousLabel:b,onNext:w,onPrevious:C,nextDisabled:B,previousDisabled:G,hasNextLevel:!1,levelControlAriaLabel:D,withNext:k,withPrevious:I,headerControlsOrder:A,...L}),p.jsx(Pa,{decade:o,locale:r,minDate:s,maxDate:a,yearsListFormat:i,getYearControlProps:l,__getControlRef:c,__onControlKeyDown:u,__onControlClick:d,__onControlMouseEnter:f,__preventFocus:h,__stopPropagation:R,withCellSpacing:m,...L})]})});Da.classes={...Pa.classes,...On.classes};Da.displayName="@mantine/dates/DecadeLevel";const cD={yearLabelFormat:"YYYY"},Na=U((e,t)=>{const n=H("YearLevel",cD,e),{year:o,locale:r,minDate:s,maxDate:a,monthsListFormat:i,getMonthControlProps:l,__getControlRef:c,__onControlKeyDown:u,__onControlClick:d,__onControlMouseEnter:f,withCellSpacing:m,__preventFocus:h,nextIcon:g,previousIcon:y,nextLabel:x,previousLabel:b,onNext:w,onPrevious:C,onLevelClick:S,nextDisabled:N,previousDisabled:D,hasNextLevel:k,levelControlAriaLabel:I,withNext:A,withPrevious:F,headerControlsOrder:z,yearLabelFormat:V,__staticSelector:$,__stopPropagation:O,size:R,classNames:E,styles:P,unstyled:j,attributes:M,..._}=n,T=rn(),L={__staticSelector:$||"YearLevel",classNames:E,styles:P,unstyled:j,size:R,attributes:M},B=typeof N=="boolean"?N:a?!Q(o).endOf("year").isBefore(a):!1,G=typeof D=="boolean"?D:s?!Q(o).startOf("year").isAfter(s):!1;return p.jsxs(W,{"data-year-level":!0,size:R,ref:t,..._,children:[p.jsx(On,{label:typeof V=="function"?V(o):Q(o).locale(r||T.locale).format(V),__preventFocus:h,__stopPropagation:O,nextIcon:g,previousIcon:y,nextLabel:x,previousLabel:b,onNext:w,onPrevious:C,onLevelClick:S,nextDisabled:B,previousDisabled:G,hasNextLevel:k,levelControlAriaLabel:I,withNext:A,withPrevious:F,headerControlsOrder:z,...L}),p.jsx(Ra,{year:o,locale:r,minDate:s,maxDate:a,monthsListFormat:i,getMonthControlProps:l,__getControlRef:c,__onControlKeyDown:u,__onControlClick:d,__onControlMouseEnter:f,__preventFocus:h,__stopPropagation:O,withCellSpacing:m,...L})]})});Na.classes={...On.classes,...Ra.classes};Na.displayName="@mantine/dates/YearLevel";const uD={monthLabelFormat:"MMMM YYYY"},Ea=U((e,t)=>{const n=H("MonthLevel",uD,e),{month:o,locale:r,firstDayOfWeek:s,weekdayFormat:a,weekendDays:i,getDayProps:l,excludeDate:c,minDate:u,maxDate:d,renderDay:f,hideOutsideDates:m,hideWeekdays:h,getDayAriaLabel:g,__getDayRef:y,__onDayKeyDown:x,__onDayClick:b,__onDayMouseEnter:w,withCellSpacing:C,highlightToday:S,withWeekNumbers:N,__preventFocus:D,__stopPropagation:k,nextIcon:I,previousIcon:A,nextLabel:F,previousLabel:z,onNext:V,onPrevious:$,onLevelClick:O,nextDisabled:R,previousDisabled:E,hasNextLevel:P,levelControlAriaLabel:j,withNext:M,withPrevious:_,headerControlsOrder:T,monthLabelFormat:L,classNames:B,styles:G,unstyled:q,__staticSelector:X,size:le,static:J,attributes:ee,...ce}=n,re=rn(),ae={__staticSelector:X||"MonthLevel",classNames:B,styles:G,unstyled:q,size:le,attributes:ee},pe=typeof R=="boolean"?R:d?!Q(o).endOf("month").isBefore(d):!1,ge=typeof E=="boolean"?E:u?!Q(o).startOf("month").isAfter(u):!1;return p.jsxs(W,{"data-month-level":!0,size:le,ref:t,...ce,children:[p.jsx(On,{label:typeof L=="function"?L(o):Q(o).locale(r||re.locale).format(L),__preventFocus:D,__stopPropagation:k,nextIcon:I,previousIcon:A,nextLabel:F,previousLabel:z,onNext:V,onPrevious:$,onLevelClick:O,nextDisabled:pe,previousDisabled:ge,hasNextLevel:P,levelControlAriaLabel:j,withNext:M,withPrevious:_,headerControlsOrder:T,...ae}),p.jsx(Sa,{month:o,locale:r,firstDayOfWeek:s,weekdayFormat:a,weekendDays:i,getDayProps:l,excludeDate:c,minDate:u,maxDate:d,renderDay:f,hideOutsideDates:m,hideWeekdays:h,getDayAriaLabel:g,__getDayRef:y,__onDayKeyDown:x,__onDayClick:b,__onDayMouseEnter:w,__preventFocus:D,__stopPropagation:k,static:J,withCellSpacing:C,highlightToday:S,withWeekNumbers:N,...ae})]})});Ea.classes={...Sa.classes,...On.classes};Ea.displayName="@mantine/dates/MonthLevel";var Sv={levelsGroup:"m_30b26e33"};const An=U((e,t)=>{const n=H("LevelsGroup",null,e),{classNames:o,className:r,style:s,styles:a,unstyled:i,vars:l,__staticSelector:c,attributes:u,...d}=n,f=ne({name:c||"LevelsGroup",classes:Sv,props:n,className:r,style:s,classNames:o,styles:a,unstyled:i,attributes:u,vars:l,rootSelector:"levelsGroup"});return p.jsx(W,{ref:t,...f("levelsGroup"),...d})});An.classes=Sv;An.displayName="@mantine/dates/LevelsGroup";const dD={numberOfColumns:1},Ta=U((e,t)=>{const n=H("DecadeLevelGroup",dD,e),{decade:o,locale:r,minDate:s,maxDate:a,yearsListFormat:i,getYearControlProps:l,__onControlClick:c,__onControlMouseEnter:u,withCellSpacing:d,__preventFocus:f,nextIcon:m,previousIcon:h,nextLabel:g,previousLabel:y,onNext:x,onPrevious:b,nextDisabled:w,previousDisabled:C,headerControlsOrder:S,classNames:N,styles:D,unstyled:k,__staticSelector:I,__stopPropagation:A,numberOfColumns:F,levelControlAriaLabel:z,decadeLabelFormat:V,size:$,vars:O,attributes:R,...E}=n,P=v.useRef([]),j=Array(F).fill(0).map((M,_)=>{const T=Q(o).add(_*10,"years").format("YYYY-MM-DD");return p.jsx(Da,{size:$,yearsListFormat:i,decade:T,withNext:_===F-1,withPrevious:_===0,decadeLabelFormat:V,__onControlClick:c,__onControlMouseEnter:u,__onControlKeyDown:(L,B)=>Xc({levelIndex:_,rowIndex:B.rowIndex,cellIndex:B.cellIndex,event:L,controlsRef:P}),__getControlRef:(L,B,G)=>{Array.isArray(P.current[_])||(P.current[_]=[]),Array.isArray(P.current[_][L])||(P.current[_][L]=[]),P.current[_][L][B]=G},levelControlAriaLabel:typeof z=="function"?z(T):z,locale:r,minDate:s,maxDate:a,__preventFocus:f,__stopPropagation:A,nextIcon:m,previousIcon:h,nextLabel:g,previousLabel:y,onNext:x,onPrevious:b,nextDisabled:w,previousDisabled:C,getYearControlProps:l,__staticSelector:I||"DecadeLevelGroup",classNames:N,styles:D,unstyled:k,withCellSpacing:d,headerControlsOrder:S,attributes:R},_)});return p.jsx(An,{classNames:N,styles:D,__staticSelector:I||"DecadeLevelGroup",ref:t,size:$,unstyled:k,attributes:R,...E,children:j})});Ta.classes={...An.classes,...Da.classes};Ta.displayName="@mantine/dates/DecadeLevelGroup";const fD={numberOfColumns:1},ka=U((e,t)=>{const n=H("YearLevelGroup",fD,e),{year:o,locale:r,minDate:s,maxDate:a,monthsListFormat:i,getMonthControlProps:l,__onControlClick:c,__onControlMouseEnter:u,withCellSpacing:d,__preventFocus:f,nextIcon:m,previousIcon:h,nextLabel:g,previousLabel:y,onNext:x,onPrevious:b,onLevelClick:w,nextDisabled:C,previousDisabled:S,hasNextLevel:N,headerControlsOrder:D,classNames:k,styles:I,unstyled:A,__staticSelector:F,__stopPropagation:z,numberOfColumns:V,levelControlAriaLabel:$,yearLabelFormat:O,size:R,vars:E,attributes:P,...j}=n,M=v.useRef([]),_=Array(V).fill(0).map((T,L)=>{const B=Q(o).add(L,"years").format("YYYY-MM-DD");return p.jsx(Na,{size:R,monthsListFormat:i,year:B,withNext:L===V-1,withPrevious:L===0,yearLabelFormat:O,__stopPropagation:z,__onControlClick:c,__onControlMouseEnter:u,__onControlKeyDown:(G,q)=>Xc({levelIndex:L,rowIndex:q.rowIndex,cellIndex:q.cellIndex,event:G,controlsRef:M}),__getControlRef:(G,q,X)=>{Array.isArray(M.current[L])||(M.current[L]=[]),Array.isArray(M.current[L][G])||(M.current[L][G]=[]),M.current[L][G][q]=X},levelControlAriaLabel:typeof $=="function"?$(B):$,locale:r,minDate:s,maxDate:a,__preventFocus:f,nextIcon:m,previousIcon:h,nextLabel:g,previousLabel:y,onNext:x,onPrevious:b,onLevelClick:w,nextDisabled:C,previousDisabled:S,hasNextLevel:N,getMonthControlProps:l,classNames:k,styles:I,unstyled:A,__staticSelector:F||"YearLevelGroup",withCellSpacing:d,headerControlsOrder:D,attributes:P},L)});return p.jsx(An,{classNames:k,styles:I,__staticSelector:F||"YearLevelGroup",ref:t,size:R,unstyled:A,attributes:P,...j,children:_})});ka.classes={...Na.classes,...An.classes};ka.displayName="@mantine/dates/YearLevelGroup";const pD={numberOfColumns:1},$a=U((e,t)=>{const n=H("MonthLevelGroup",pD,e),{month:o,locale:r,firstDayOfWeek:s,weekdayFormat:a,weekendDays:i,getDayProps:l,excludeDate:c,minDate:u,maxDate:d,renderDay:f,hideOutsideDates:m,hideWeekdays:h,getDayAriaLabel:g,__onDayClick:y,__onDayMouseEnter:x,withCellSpacing:b,highlightToday:w,withWeekNumbers:C,__preventFocus:S,nextIcon:N,previousIcon:D,nextLabel:k,previousLabel:I,onNext:A,onPrevious:F,onLevelClick:z,nextDisabled:V,previousDisabled:$,hasNextLevel:O,headerControlsOrder:R,classNames:E,styles:P,unstyled:j,numberOfColumns:M,levelControlAriaLabel:_,monthLabelFormat:T,__staticSelector:L,__stopPropagation:B,size:G,static:q,vars:X,attributes:le,...J}=n,ee=v.useRef([]),ce=Array(M).fill(0).map((re,ae)=>{const pe=Q(o).add(ae,"months").format("YYYY-MM-DD");return p.jsx(Ea,{month:pe,withNext:ae===M-1,withPrevious:ae===0,monthLabelFormat:T,__stopPropagation:B,__onDayClick:y,__onDayMouseEnter:x,__onDayKeyDown:(ge,ie)=>Xc({levelIndex:ae,rowIndex:ie.rowIndex,cellIndex:ie.cellIndex,event:ge,controlsRef:ee}),__getDayRef:(ge,ie,te)=>{Array.isArray(ee.current[ae])||(ee.current[ae]=[]),Array.isArray(ee.current[ae][ge])||(ee.current[ae][ge]=[]),ee.current[ae][ge][ie]=te},levelControlAriaLabel:typeof _=="function"?_(pe):_,locale:r,firstDayOfWeek:s,weekdayFormat:a,weekendDays:i,getDayProps:l,excludeDate:c,minDate:u,maxDate:d,renderDay:f,hideOutsideDates:m,hideWeekdays:h,getDayAriaLabel:g,__preventFocus:S,nextIcon:N,previousIcon:D,nextLabel:k,previousLabel:I,onNext:A,onPrevious:F,onLevelClick:z,nextDisabled:V,previousDisabled:$,hasNextLevel:O,classNames:E,styles:P,unstyled:j,__staticSelector:L||"MonthLevelGroup",size:G,static:q,withCellSpacing:b,highlightToday:w,withWeekNumbers:C,headerControlsOrder:R,attributes:le},ae)});return p.jsx(An,{classNames:E,styles:P,__staticSelector:L||"MonthLevelGroup",ref:t,size:G,attributes:le,...J,children:ce})});$a.classes={...An.classes,...Ea.classes};$a.displayName="@mantine/dates/MonthLevelGroup";var _v={input:"m_6fa5e2aa"};const Wo=U((e,t)=>{const{inputProps:n,wrapperProps:o,placeholder:r,classNames:s,styles:a,unstyled:i,popoverProps:l,modalProps:c,dropdownType:u,children:d,formattedValue:f,dropdownHandlers:m,dropdownOpened:h,onClick:g,clearable:y,onClear:x,clearButtonProps:b,rightSection:w,shouldClear:C,readOnly:S,disabled:N,value:D,name:k,form:I,type:A,onDropdownClose:F,withTime:z,...V}=Rl("PickerInputBase",{size:"sm"},e),$=p.jsx(je.ClearButton,{onClick:x,unstyled:i,...b}),O=()=>{A==="range"&&Array.isArray(D)&&D[0]&&!D[1]&&x(),m.close()};return p.jsxs(p.Fragment,{children:[u==="modal"&&!S&&p.jsx(Tt,{opened:h,onClose:O,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:i,...c,children:d}),p.jsx(je.Wrapper,{...o,children:p.jsxs(Be,{position:"bottom-start",opened:h,trapFocus:!0,returnFocus:!1,unstyled:i,onClose:F,...l,disabled:l?.disabled||u==="modal"||S,onChange:R=>{R||(l?.onClose?.(),O())},children:[p.jsx(Be.Target,{children:p.jsx(je,{"data-dates-input":!0,"data-read-only":S||void 0,disabled:N,component:"button",type:"button",multiline:!0,onClick:R=>{g?.(R),m.toggle()},__clearSection:$,__clearable:y&&C&&!S&&!N,rightSection:w,...n,ref:t,classNames:{...s,input:Ze(_v.input,s?.input)},...V,children:f||p.jsx(je.Placeholder,{error:n.error,unstyled:i,classNames:s,styles:a,__staticSelector:n.__staticSelector,children:r})})}),p.jsx(Be.Dropdown,{"data-dates-dropdown":!0,children:d})]})}),p.jsx(Zc,{value:D,name:k,form:I,type:A,withTime:z})]})});Wo.classes=_v;Wo.displayName="@mantine/dates/PickerInputBase";const Ld=e=>e==="range"?[null,null]:e==="multiple"?[]:null,Fd=(e,t)=>{const n=t?bo:ft;return Array.isArray(e)?e.map(n):n(e)};function ko({type:e,value:t,defaultValue:n,onChange:o,withTime:r=!1}){const s=v.useRef(e),[a,i,l]=He({value:Fd(t,r),defaultValue:Fd(n,r),finalValue:Ld(e),onChange:o});let c=a;return s.current!==e&&(s.current=e,t===void 0&&(c=n!==void 0?n:Ld(e),i(c))),[c,i,l]}function vi(e,t){return e?e==="month"?0:e==="year"?1:2:t||0}function mD(e){return e===0?"month":e===1?"year":"decade"}function er(e,t,n){return mD(gt(vi(e,0),vi(t,0),vi(n,2)))}const hD={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},Go=U((e,t)=>{const n=H("Calendar",hD,e),{vars:o,maxLevel:r,minLevel:s,defaultLevel:a,level:i,onLevelChange:l,date:c,defaultDate:u,onDateChange:d,numberOfColumns:f,columnsToScroll:m,ariaLabels:h,nextLabel:g,previousLabel:y,onYearSelect:x,onMonthSelect:b,onYearMouseEnter:w,onMonthMouseEnter:C,headerControlsOrder:S,__updateDateOnYearSelect:N,__updateDateOnMonthSelect:D,__setDateRef:k,__setLevelRef:I,firstDayOfWeek:A,weekdayFormat:F,weekendDays:z,getDayProps:V,excludeDate:$,renderDay:O,hideOutsideDates:R,hideWeekdays:E,getDayAriaLabel:P,monthLabelFormat:j,nextIcon:M,previousIcon:_,__onDayClick:T,__onDayMouseEnter:L,withCellSpacing:B,highlightToday:G,withWeekNumbers:q,monthsListFormat:X,getMonthControlProps:le,yearLabelFormat:J,yearsListFormat:ee,getYearControlProps:ce,decadeLabelFormat:re,classNames:ae,styles:pe,unstyled:ge,minDate:ie,maxDate:te,locale:Z,__staticSelector:oe,size:be,__preventFocus:_e,__stopPropagation:me,onNextDecade:we,onPreviousDecade:ke,onNextYear:Pe,onPreviousYear:De,onNextMonth:Y,onPreviousMonth:ue,static:Te,enableKeyboardNavigation:Me,attributes:de,...se}=n,{resolvedClassNames:Ne,resolvedStyles:ve}=pt({classNames:ae,styles:pe,props:n}),[xe,Ie]=He({value:i?er(i,s,r):void 0,defaultValue:a?er(a,s,r):void 0,finalValue:er(void 0,s,r),onChange:l}),[ot,fe]=ko({type:"default",value:ft(c),defaultValue:ft(u),onChange:d});v.useImperativeHandle(k,()=>ye=>{fe(ye)}),v.useImperativeHandle(I,()=>ye=>{Ie(ye)});const lt={__staticSelector:oe||"Calendar",styles:ve,classNames:Ne,unstyled:ge,size:be,attributes:de},tt=m||f||1,Fe=new Date,mt=ie&&Q(Fe).isAfter(ie)?ie:Q(Fe).format("YYYY-MM-DD"),at=ot||mt,so=()=>{const ye=Q(at).add(tt,"month").format("YYYY-MM-DD");Y?.(ye),fe(ye)},gn=()=>{const ye=Q(at).subtract(tt,"month").format("YYYY-MM-DD");ue?.(ye),fe(ye)},sn=()=>{const ye=Q(at).add(tt,"year").format("YYYY-MM-DD");Pe?.(ye),fe(ye)},Ue=()=>{const ye=Q(at).subtract(tt,"year").format("YYYY-MM-DD");De?.(ye),fe(ye)},yn=()=>{const ye=Q(at).add(10*tt,"year").format("YYYY-MM-DD");we?.(ye),fe(ye)},rt=()=>{const ye=Q(at).subtract(10*tt,"year").format("YYYY-MM-DD");ke?.(ye),fe(ye)},ao=v.useRef(null);v.useEffect(()=>{if(!Me||Te)return;const ye=Ye=>{if(!ao.current?.contains(document.activeElement))return;const Le=Ye.ctrlKey||Ye.metaKey,Ht=Ye.shiftKey;switch(Ye.key){case"ArrowUp":Le&&Ht?(Ye.preventDefault(),rt()):Le&&(Ye.preventDefault(),Ue());break;case"ArrowDown":Le&&Ht?(Ye.preventDefault(),yn()):Le&&(Ye.preventDefault(),sn());break;case"y":case"Y":xe==="month"&&(Ye.preventDefault(),Ie("year"));break}};return document.addEventListener("keydown",ye),()=>{document.removeEventListener("keydown",ye)}},[Me,Te,xe,sn,Ue,yn,rt]);const jr=ye=>{ao.current=ye,typeof t=="function"?t(ye):t&&(t.current=ye)};return p.jsxs(W,{ref:jr,size:be,"data-calendar":!0,...se,children:[xe==="month"&&p.jsx($a,{month:at,minDate:ie,maxDate:te,firstDayOfWeek:A,weekdayFormat:F,weekendDays:z,getDayProps:V,excludeDate:$,renderDay:O,hideOutsideDates:R,hideWeekdays:E,getDayAriaLabel:P,onNext:so,onPrevious:gn,hasNextLevel:r!=="month",onLevelClick:()=>Ie("year"),numberOfColumns:f,locale:Z,levelControlAriaLabel:h?.monthLevelControl,nextLabel:h?.nextMonth??g,nextIcon:M,previousLabel:h?.previousMonth??y,previousIcon:_,monthLabelFormat:j,__onDayClick:T,__onDayMouseEnter:L,__preventFocus:_e,__stopPropagation:me,static:Te,withCellSpacing:B,highlightToday:G,withWeekNumbers:q,headerControlsOrder:S,...lt}),xe==="year"&&p.jsx(ka,{year:at,numberOfColumns:f,minDate:ie,maxDate:te,monthsListFormat:X,getMonthControlProps:le,locale:Z,onNext:sn,onPrevious:Ue,hasNextLevel:r!=="month"&&r!=="year",onLevelClick:()=>Ie("decade"),levelControlAriaLabel:h?.yearLevelControl,nextLabel:h?.nextYear??g,nextIcon:M,previousLabel:h?.previousYear??y,previousIcon:_,yearLabelFormat:J,__onControlMouseEnter:C,__onControlClick:(ye,Ye)=>{D&&fe(Ye),Ie(er("month",s,r)),b?.(Ye)},__preventFocus:_e,__stopPropagation:me,withCellSpacing:B,headerControlsOrder:S,...lt}),xe==="decade"&&p.jsx(Ta,{decade:at,minDate:ie,maxDate:te,yearsListFormat:ee,getYearControlProps:ce,locale:Z,onNext:yn,onPrevious:rt,numberOfColumns:f,nextLabel:h?.nextDecade??g,nextIcon:M,previousLabel:h?.previousDecade??y,previousIcon:_,decadeLabelFormat:re,__onControlMouseEnter:w,__onControlClick:(ye,Ye)=>{N&&fe(Ye),Ie(er("year",s,r)),x?.(Ye)},__preventFocus:_e,__stopPropagation:me,withCellSpacing:B,headerControlsOrder:S,...lt})]})});Go.classes={...Ta.classes,...ka.classes,...$a.classes};Go.displayName="@mantine/dates/Calendar";function ja(e){const{maxLevel:t,minLevel:n,defaultLevel:o,level:r,onLevelChange:s,nextIcon:a,previousIcon:i,date:l,defaultDate:c,onDateChange:u,numberOfColumns:d,columnsToScroll:f,ariaLabels:m,nextLabel:h,previousLabel:g,onYearSelect:y,onMonthSelect:x,onYearMouseEnter:b,onMonthMouseEnter:w,onNextMonth:C,onPreviousMonth:S,onNextYear:N,onPreviousYear:D,onNextDecade:k,onPreviousDecade:I,withCellSpacing:A,highlightToday:F,__updateDateOnYearSelect:z,__updateDateOnMonthSelect:V,__setDateRef:$,__setLevelRef:O,withWeekNumbers:R,headerControlsOrder:E,firstDayOfWeek:P,weekdayFormat:j,weekendDays:M,getDayProps:_,excludeDate:T,renderDay:L,hideOutsideDates:B,hideWeekdays:G,getDayAriaLabel:q,monthLabelFormat:X,monthsListFormat:le,getMonthControlProps:J,yearLabelFormat:ee,yearsListFormat:ce,getYearControlProps:re,decadeLabelFormat:ae,allowSingleDateInRange:pe,allowDeselect:ge,minDate:ie,maxDate:te,locale:Z,...oe}=e;return{calendarProps:{maxLevel:t,minLevel:n,defaultLevel:o,level:r,onLevelChange:s,nextIcon:a,previousIcon:i,date:l,defaultDate:c,onDateChange:u,numberOfColumns:d,columnsToScroll:f,ariaLabels:m,nextLabel:h,previousLabel:g,onYearSelect:y,onMonthSelect:x,onYearMouseEnter:b,onMonthMouseEnter:w,onNextMonth:C,onPreviousMonth:S,onNextYear:N,onPreviousYear:D,onNextDecade:k,onPreviousDecade:I,withCellSpacing:A,highlightToday:F,__updateDateOnYearSelect:z,__updateDateOnMonthSelect:V,__setDateRef:$,withWeekNumbers:R,headerControlsOrder:E,firstDayOfWeek:P,weekdayFormat:j,weekendDays:M,getDayProps:_,excludeDate:T,renderDay:L,hideOutsideDates:B,hideWeekdays:G,getDayAriaLabel:q,monthLabelFormat:X,monthsListFormat:le,getMonthControlProps:J,yearLabelFormat:ee,yearsListFormat:ce,getYearControlProps:re,decadeLabelFormat:ae,allowSingleDateInRange:pe,allowDeselect:ge,minDate:ie,maxDate:te,locale:Z},others:oe}}function zd(e,t){const n=[...t].sort((o,r)=>Q(o).isAfter(Q(r))?1:-1);return Q(n[0]).startOf("day").subtract(1,"ms").isBefore(e)&&Q(n[1]).endOf("day").add(1,"ms").isAfter(e)}function vD({type:e,level:t,value:n,defaultValue:o,onChange:r,allowSingleDateInRange:s,allowDeselect:a,onMouseLeave:i}){const[l,c]=ko({type:e,value:n,defaultValue:o,onChange:r}),[u,d]=v.useState(e==="range"&&l[0]&&!l[1]?l[0]:null),[f,m]=v.useState(null),h=S=>{if(e==="range"){if(u&&!l[1]){if(Q(S).isSame(u,t)&&!s){d(null),m(null),c([null,null]);return}const N=[S,u];N.sort((D,k)=>Q(D).isAfter(Q(k))?1:-1),c(N),m(null),d(null);return}if(l[0]&&!l[1]&&Q(S).isSame(l[0],t)&&!s){d(null),m(null),c([null,null]);return}c([S,null]),m(null),d(S);return}if(e==="multiple"){l.some(N=>Q(N).isSame(S,t))?c(l.filter(N=>!Q(N).isSame(S,t))):c([...l,S]);return}l&&a&&Q(S).isSame(l,t)?c(null):c(S)},g=S=>u&&f?zd(S,[f,u]):l[0]&&l[1]?zd(S,l):!1,y=e==="range"?S=>{i?.(S),m(null)}:i,x=S=>l[0]&&Q(S).isSame(l[0],t)?!(f&&Q(f).isBefore(l[0])):!1,b=S=>l[1]?Q(S).isSame(l[1],t):!l[0]||!f?!1:Q(f).isBefore(l[0])&&Q(S).isSame(l[0],t),w=S=>{if(e==="range")return{selected:l.some(D=>D&&Q(D).isSame(S,t)),inRange:g(S),firstInRange:x(S),lastInRange:b(S),"data-autofocus":!!l[0]&&Q(l[0]).isSame(S,t)||void 0};if(e==="multiple")return{selected:l.some(D=>D&&Q(D).isSame(S,t)),"data-autofocus":!!l[0]&&Q(l[0]).isSame(S,t)||void 0};const N=Q(l).isSame(S,t);return{selected:N,"data-autofocus":N||void 0}},C=e==="range"&&u?m:()=>{};return v.useEffect(()=>{if(e==="range")if(l[0]&&!l[1])d(l[0]);else{const S=l[0]==null&&l[1]==null,N=l[0]!=null&&l[1]!=null;(S||N)&&(d(null),m(null))}},[l]),{onDateChange:h,onRootMouseLeave:y,onHoveredDateChange:C,getControlProps:w,_value:l,setValue:c}}var gD={datePickerRoot:"m_765a40cf",presetsList:"m_d6a681e1",presetButton:"m_acd30b22"};const yD=(e,{size:t})=>({datePickerRoot:{"--preset-font-size":Ge(t)}}),bD={type:"default",defaultLevel:"month",numberOfColumns:1,size:"sm"},Ko=U((e,t)=>{const n=H("DatePicker",bD,e),{allowDeselect:o,allowSingleDateInRange:r,value:s,defaultValue:a,onChange:i,onMouseLeave:l,classNames:c,styles:u,__staticSelector:d,__onDayClick:f,__onDayMouseEnter:m,__onPresetSelect:h,__stopPropagation:g,presets:y,className:x,style:b,unstyled:w,size:C,vars:S,attributes:N,...D}=n,{calendarProps:k,others:I}=ja(D),A=v.useRef(null),F=v.useRef(null),z=ne({name:d||"DatePicker",classes:gD,props:n,className:x,style:b,classNames:c,styles:u,unstyled:w,attributes:N,rootSelector:y?"datePickerRoot":void 0,varsResolver:yD,vars:S}),{onDateChange:V,onRootMouseLeave:$,onHoveredDateChange:O,getControlProps:R,_value:E,setValue:P}=vD({type:I.type,level:"day",allowDeselect:o,allowSingleDateInRange:r,value:s,defaultValue:a,onChange:i,onMouseLeave:l}),{resolvedClassNames:j,resolvedStyles:M}=pt({classNames:c,styles:u,props:n}),_=p.jsx(Go,{ref:t,classNames:j,styles:M,__staticSelector:d||"DatePicker",onMouseLeave:$,size:C,...k,...y?{}:I,__stopPropagation:g,__setDateRef:A,__setLevelRef:F,minLevel:k.minLevel||"month",__onDayMouseEnter:(B,G)=>{O(G),m?.(B,G)},__onDayClick:(B,G)=>{V(G),f?.(B,G)},getDayProps:B=>({...R(B),...k.getDayProps?.(B)}),getMonthControlProps:B=>({selected:typeof E=="string"?Ca(B,E):!1,...k.getMonthControlProps?.(B)}),getYearControlProps:B=>({selected:typeof E=="string"?Q(B).isSame(E,"year"):!1,...k.getYearControlProps?.(B)}),hideOutsideDates:k.hideOutsideDates??k.numberOfColumns!==1,...y?{}:{className:x,style:b,attributes:N}});if(!y)return _;const T=B=>{const G=Array.isArray(B)?B[0]:B;G!==void 0&&(A.current?.(G),F.current?.("month"),h?h(G):P(B))},L=y.map((B,G)=>p.jsx(Xe,{...z("presetButton"),onClick:()=>T(B.value),onMouseDown:q=>q.preventDefault(),"data-mantine-stop-propagation":g||void 0,children:B.label},G));return p.jsxs(W,{...z("datePickerRoot"),size:C,...I,children:[p.jsx("div",{...z("presetsList"),children:L}),_]})});Ko.classes=Go.classes;Ko.displayName="@mantine/dates/DatePicker";function xD(e){if(e===null)return null;const t=new Date(e);return Number.isNaN(t.getTime())||!e?null:Q(t).format("YYYY-MM-DD")}function wD({date:e,maxDate:t,minDate:n}){return!(e==null||Number.isNaN(new Date(e).getTime())||t&&Q(e).isAfter(t,"date")||n&&Q(e).isBefore(n,"date"))}const CD={valueFormat:"MMMM D, YYYY",fixOnBlur:!0,size:"sm"},Pv=U((e,t)=>{const n=Rl("DateInput",CD,e),{inputProps:o,wrapperProps:r,value:s,defaultValue:a,onChange:i,clearable:l,clearButtonProps:c,popoverProps:u,getDayProps:d,locale:f,valueFormat:m,dateParser:h,minDate:g,maxDate:y,fixOnBlur:x,onFocus:b,onBlur:w,onClick:C,onKeyDown:S,readOnly:N,name:D,form:k,rightSection:I,unstyled:A,classNames:F,styles:z,allowDeselect:V,date:$,defaultDate:O,onDateChange:R,getMonthControlProps:E,getYearControlProps:P,disabled:j,...M}=n,_=v.useRef(null),T=v.useRef(null),[L,B]=v.useState(!1),{calendarProps:G,others:q}=ja(M),X=rn(),J=h||(Y=>{const ue=Q(Y,m,X.getLocale(f)).toDate();return Number.isNaN(ue.getTime())?xD(Y):Q(ue).format("YYYY-MM-DD")}),ee=V!==void 0?V:l,ce=Y=>Y?Q(Y).locale(X.getLocale(f)).format(m):"",[re,ae,pe]=ko({type:"default",value:s,defaultValue:a,onChange:i}),[ge,ie]=ko({type:"default",value:$,defaultValue:a||O,onChange:R});v.useEffect(()=>{pe&&s!==null&&ie(s)},[pe,s]);const[te,Z]=v.useState(ce(re));v.useEffect(()=>{Z(ce(re))},[X.getLocale(f)]);const oe=Y=>{const ue=Y.currentTarget.value;if(Z(ue),B(!0),ue.trim()===""&&(V||l))ae(null);else{const Te=J(ue);Te&&wD({date:Te,minDate:g,maxDate:y})&&(ae(Te),ie(Te))}},be=Y=>{w?.(Y),B(!1),x&&Z(ce(re))},_e=Y=>{b?.(Y),B(!0)},me=Y=>{C?.(Y),B(!0)},we=Y=>{Y.key==="Escape"&&B(!1),S?.(Y)},ke=Y=>({...d?.(Y),selected:Q(re).isSame(Y,"day"),onClick:ue=>{d?.(Y).onClick?.(ue);const Te=ee&&Q(re).isSame(Y,"day")?null:Y;ae(Te),!pe&&Te&&Z(ce(Te)),B(!1)}}),Pe=p.jsx(je.ClearButton,{onClick:()=>{ae(null),!pe&&Z(""),B(!1)},unstyled:A,...c}),De=l&&!!re&&!N&&!j;return bt(()=>{re!==void 0&&!L&&Z(ce(re))},[re]),ef(()=>B(!1),void 0,[_.current,T.current]),p.jsxs(p.Fragment,{children:[p.jsx(je.Wrapper,{...r,__staticSelector:"DateInput",ref:_,children:p.jsxs(Be,{opened:L,trapFocus:!1,position:"bottom-start",disabled:N||j,withRoles:!1,unstyled:A,...u,children:[p.jsx(Be.Target,{children:p.jsx(je,{"data-dates-input":!0,"data-read-only":N||void 0,autoComplete:"off",ref:t,value:te,onChange:oe,onBlur:be,onFocus:_e,onClick:me,onKeyDown:we,readOnly:N,rightSection:I,__clearSection:Pe,__clearable:De,...o,...q,disabled:j,__staticSelector:"DateInput"})}),p.jsx(Be.Dropdown,{onMouseDown:Y=>Y.preventDefault(),"data-dates-dropdown":!0,ref:T,children:p.jsx(Go,{__staticSelector:"DateInput",...G,classNames:F,styles:z,unstyled:A,__preventFocus:!0,minDate:g,maxDate:y,locale:f,getDayProps:ke,size:o.size,date:ge,onDateChange:ie,getMonthControlProps:Y=>({selected:typeof re=="string"?Ca(Y,re):!1,...E?.(Y)}),getYearControlProps:Y=>({selected:typeof re=="string"?Q(Y).isSame(re,"year"):!1,...P?.(Y)}),attributes:r.attributes})})]})}),p.jsx(Zc,{name:D,form:k,value:re,type:"default"})]})});Pv.classes={...je.classes,...Go.classes};Pv.displayName="@mantine/dates/DateInput";var Rv={timeWrapper:"m_208d2562",timeInput:"m_62ee059"};function SD({minDate:e,value:t}){const n=e?Q(e).format("HH:mm:ss"):null;return t&&e&&t===e?n??void 0:void 0}function _D({maxDate:e,value:t}){const n=e?Q(e).format("HH:mm:ss"):null;return t&&e&&t===e?n??void 0:void 0}const PD={dropdownType:"popover",size:"sm"},Dv=U((e,t)=>{const n=H("DateTimePicker",PD,e),{value:o,defaultValue:r,onChange:s,valueFormat:a,locale:i,classNames:l,styles:c,unstyled:u,timePickerProps:d,submitButtonProps:f,withSeconds:m,level:h,defaultLevel:g,size:y,variant:x,dropdownType:b,vars:w,minDate:C,maxDate:S,defaultDate:N,defaultTimeValue:D,presets:k,attributes:I,onDropdownClose:A,...F}=n,z=ne({name:"DateTimePicker",classes:Rv,props:n,classNames:l,styles:c,unstyled:u,attributes:I,vars:w}),{resolvedClassNames:V,resolvedStyles:$}=pt({classNames:l,styles:c,props:n}),O=a||(m?"DD/MM/YYYY HH:mm:ss":"DD/MM/YYYY HH:mm"),R=v.useRef(null),E=$e(R,d?.hoursRef),{calendarProps:{allowSingleDateInRange:P,...j},others:M}=ja(F),_=rn(),[T,L]=ko({type:"default",value:o,defaultValue:r,onChange:s,withTime:!0}),B=N||T,G=Z=>Z?Q(Z).format(m?"HH:mm:ss":"HH:mm"):"",[q,X]=v.useState(D||G(T)),[le,J]=v.useState(h||g||"month"),[ee,ce]=Ki(!1),re=T?Q(T).locale(_.getLocale(i)).format(O):"",ae=Z=>{d?.onChange?.(Z),X(Z),Z&&L(Od(T,Z))},pe=Z=>{Z&&L(Od(hi(C,S,Z),q||D||"")),R.current?.focus()},ge=Z=>{Z.key==="Enter"&&(Z.preventDefault(),ce.close())};bt(()=>{ee||X(G(T))},[T,ee]),bt(()=>{ee&&J("month")},[ee]);const ie=b==="popover",te=()=>{const Z=hi(C,S,T);T&&T!==Z&&L(hi(C,S,T)),A?.()};return p.jsxs(Wo,{formattedValue:re,dropdownOpened:F.disabled?!1:ee,dropdownHandlers:ce,classNames:V,styles:$,unstyled:u,ref:t,onClear:()=>L(null),shouldClear:!!T,value:T,size:y,variant:x,dropdownType:b,...M,type:"default",__staticSelector:"DateTimePicker",onDropdownClose:te,withTime:!0,attributes:I,children:[p.jsx(Ko,{...j,maxDate:S,minDate:C,size:y,variant:x,type:"default",value:T,defaultDate:B||tv({maxDate:S,minDate:C}),onChange:pe,locale:i,classNames:V,styles:$,unstyled:u,__staticSelector:"DateTimePicker",__stopPropagation:ie,level:h,defaultLevel:g,onLevelChange:Z=>{J(Z),j.onLevelChange?.(Z)},presets:k,__onPresetSelect:Z=>{L(Z),Z&&X(G(Z))},attributes:I}),le==="month"&&p.jsxs("div",{...z("timeWrapper"),children:[p.jsx(eu,{value:q,withSeconds:m,unstyled:u,min:SD({minDate:C,value:T}),max:_D({maxDate:S,value:T}),...d,...z("timeInput",{className:d?.className,style:d?.style}),onChange:ae,onKeyDown:ge,size:y,"data-mantine-stop-propagation":ie||void 0,hoursRef:E,attributes:I}),p.jsx(Io,{variant:"default",size:`input-${y||"sm"}`,...z("submitButton",{className:f?.className,style:f?.style}),unstyled:u,"data-mantine-stop-propagation":ie||void 0,children:p.jsx(Ws,{size:"30%"}),...f,onClick:Z=>{f?.onClick?.(Z),ce.close(),te()}})]})]})});Dv.classes={...Rv,...Wo.classes,...Ko.classes};Dv.displayName="@mantine/dates/DateTimePicker";function RD({type:e,value:t,defaultValue:n,onChange:o,locale:r,format:s,closeOnChange:a,sortDates:i,labelSeparator:l,valueFormatter:c}){const u=rn(),[d,f]=Ki(!1),[m,h]=ko({type:e,value:t,defaultValue:n,onChange:o}),g=wR({type:e,date:m,locale:u.getLocale(r),format:s,labelSeparator:u.getLabelSeparator(l),formatter:c}),y=w=>{a&&(e==="default"&&f.close(),e==="range"&&w[0]&&w[1]&&f.close()),h(i&&e==="multiple"?[...w].sort((C,S)=>Q(C).isAfter(Q(S))?1:-1):w)},x=()=>y(e==="range"?[null,null]:e==="multiple"?[]:null),b=e==="range"?!!m[0]:e==="multiple"?m.length>0:m!==null;return{_value:m,setValue:y,onClear:x,shouldClear:b,formattedValue:g,dropdownOpened:d,dropdownHandlers:f}}const DD={type:"default",valueFormat:"MMMM D, YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},Nv=U((e,t)=>{const n=H("DatePickerInput",DD,e),{type:o,value:r,defaultValue:s,onChange:a,valueFormat:i,labelSeparator:l,locale:c,classNames:u,styles:d,unstyled:f,closeOnChange:m,size:h,variant:g,dropdownType:y,sortDates:x,minDate:b,maxDate:w,vars:C,defaultDate:S,valueFormatter:N,presets:D,attributes:k,...I}=n,{resolvedClassNames:A,resolvedStyles:F}=pt({classNames:u,styles:d,props:n}),{calendarProps:z,others:V}=ja(I),{_value:$,setValue:O,formattedValue:R,dropdownHandlers:E,dropdownOpened:P,onClear:j,shouldClear:M}=RD({type:o,value:r,defaultValue:s,onChange:a,locale:c,format:i,labelSeparator:l,closeOnChange:m,sortDates:x,valueFormatter:N}),_=Array.isArray($)?$[0]||S:$||S;return p.jsx(Wo,{formattedValue:R,dropdownOpened:P,dropdownHandlers:E,classNames:A,styles:F,unstyled:f,ref:t,onClear:j,shouldClear:M,value:$,size:h,variant:g,dropdownType:y,...V,type:o,__staticSelector:"DatePickerInput",attributes:k,children:p.jsx(Ko,{...z,size:h,variant:g,type:o,value:$,defaultDate:_||tv({maxDate:w,minDate:b}),onChange:O,locale:c,classNames:A,styles:F,unstyled:f,__staticSelector:"DatePickerInput",__stopPropagation:y==="popover",minDate:b,maxDate:w,presets:D,attributes:k})})});Nv.classes={...Wo.classes,...Ko.classes};Nv.displayName="@mantine/dates/DatePickerInput";export{Fc as $,Io as A,W as B,Cr as C,Qi as D,Ke as E,_p as F,Fs as G,Hn as H,on as I,Pt as J,Ki as K,eo as L,ef as M,en as N,oy as O,eN as P,zt as Q,Je as R,Lt as S,Vt as T,Bm as U,Eo as V,wc as W,Cc as X,As as Y,Er as Z,Fm as _,pr as a,Mp as a$,Nr as a0,tm as a1,kp as a2,Ft as a3,TD as a4,Fh as a5,xh as a6,Vo as a7,Qy as a8,FD as a9,gh as aA,Ec as aB,om as aC,rr as aD,Pm as aE,Tn as aF,U as aG,H as aH,ne as aI,Ae as aJ,qs as aK,pt as aL,LD as aM,ea as aN,nn as aO,Dv as aP,ih as aQ,it as aR,oc as aS,Ce as aT,BD as aU,uo as aV,ym as aW,$P as aX,vc as aY,Sr as aZ,un as a_,Fr as aa,Tt as ab,Ym as ac,Ih as ad,ID as ae,Om as af,Sh as ag,Nh as ah,Pv as ai,Jp as aj,z1 as ak,Xe as al,Nm as am,yR as an,Q as ao,Bh as ap,HD as aq,Yo as ar,Ng as as,Hh as at,je as au,Cm as av,xa as aw,tN as ax,Py as ay,Wt as az,dr as b,AD as b0,bR as b1,nC as b2,$r as b3,cm as b4,Wh as b5,yo as b6,Qe as b7,Gh as b8,gt as b9,Ko as bA,uc as bB,bc as bC,xm as bD,Lh as bE,Am as bF,kD as bG,Mm as bH,Gm as bI,OD as bJ,$n as bK,sm as bL,YD as bM,Ly as bN,nN as bO,In as bP,jP as bQ,Kh as ba,MD as bb,bt as bc,us as bd,Ps as be,st as bf,He as bg,hl as bh,bh as bi,Bt as bj,et as bk,zD as bl,Ee as bm,Zg as bn,Ep as bo,oN as bp,nh as bq,wr as br,Nv as bs,as as bt,VD as bu,he as bv,xi as bw,jD as bx,Ql as by,Us as bz,Vd as c,Iv as d,WD as e,ND as f,ED as g,Ze as h,nt as i,p as j,K as k,$D as l,Mh as m,ts as n,Be as o,Yd as p,pp as q,v as r,ml as s,Th as t,$e as u,Oh as v,im as w,vr as x,zi as y,jh as z};