From ef760c36b4e78098493d844d9b1711212afe20e1 Mon Sep 17 00:00:00 2001 From: buildingu Date: Mon, 8 Jul 2024 05:41:44 +0000 Subject: [PATCH] Updates --- assets/{index-2e73daa3.js => index-f31a2eac.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-2e73daa3.js => index-f31a2eac.js} (96%) diff --git a/assets/index-2e73daa3.js b/assets/index-f31a2eac.js similarity index 96% rename from assets/index-2e73daa3.js rename to assets/index-f31a2eac.js index 2119885..ddbbf52 100644 --- a/assets/index-2e73daa3.js +++ b/assets/index-f31a2eac.js @@ -143,7 +143,7 @@ Error generating stack: `+s.message+` `)},wD=0,Xs=[];function SD(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),o=b.useState(wD++)[0],s=b.useState(HE)[0],i=b.useRef(e);b.useEffect(function(){i.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=VL([e.lockRef.current],(e.shards||[]).map(Yx),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=b.useCallback(function(g,x){if("touches"in g&&g.touches.length===2)return!i.current.allowPinchZoom;var y=Sc(g),v=n.current,w="deltaX"in g?g.deltaX:v[0]-y[0],S="deltaY"in g?g.deltaY:v[1]-y[1],k,C=g.target,T=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in g&&T==="h"&&C.type==="range")return!1;var E=Jx(T,C);if(!E)return!0;if(E?k=T:(k=T==="v"?"h":"v",E=Jx(T,C)),!E)return!1;if(!r.current&&"changedTouches"in g&&(w||S)&&(r.current=k),!k)return!0;var N=r.current||k;return vD(N,x,g,N==="h"?w:S,!0)},[]),a=b.useCallback(function(g){var x=g;if(!(!Xs.length||Xs[Xs.length-1]!==s)){var y="deltaY"in x?Gx(x):Sc(x),v=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&xD(k.delta,y)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var w=(i.current.shards||[]).map(Yx).filter(Boolean).filter(function(k){return k.contains(x.target)}),S=w.length>0?l(x,w[0]):!i.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),c=b.useCallback(function(g,x,y,v){var w={name:g,delta:x,target:y,should:v,shadowParent:kD(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),u=b.useCallback(function(g){n.current=Sc(g),r.current=void 0},[]),d=b.useCallback(function(g){c(g.type,Gx(g),g.target,l(g,e.lockRef.current))},[]),f=b.useCallback(function(g){c(g.type,Sc(g),g.target,l(g,e.lockRef.current))},[]);b.useEffect(function(){return Xs.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",a,Ys),document.addEventListener("touchmove",a,Ys),document.addEventListener("touchstart",u,Ys),function(){Xs=Xs.filter(function(g){return g!==s}),document.removeEventListener("wheel",a,Ys),document.removeEventListener("touchmove",a,Ys),document.removeEventListener("touchstart",u,Ys)}},[]);var p=e.removeScrollBar,h=e.inert;return b.createElement(b.Fragment,null,h?b.createElement(s,{styles:bD(o)}):null,p?b.createElement(dD,{gapMode:e.gapMode}):null)}function kD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const CD=QL(BE,SD);var KE=b.forwardRef(function(e,t){return b.createElement(_f,nr({},e,{ref:t,sideCar:CD}))});KE.classNames=_f.classNames;const ED=KE;function Jt(e){return Object.keys(e)}function ph(e){return e&&typeof e=="object"&&!Array.isArray(e)}function g0(e,t){const n={...e},r=t;return ph(e)&&ph(t)&&Object.keys(t).forEach(o=>{ph(r[o])&&o in e?n[o]=g0(n[o],r[o]):n[o]=r[o]}),n}function TD(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function MD(e){var t;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function fg(e){const t=MD(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 hh(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function qE(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r==="0")return`0${e}`;if(typeof r=="number"){const o=`${r/16}${e}`;return t?hh(o):o}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(s=>n(s)).join(",");if(r.includes(" "))return r.split(" ").map(s=>n(s)).join(" ");if(r.includes(e))return t?hh(r):r;const o=r.replace("px","");if(!Number.isNaN(Number(o))){const s=`${Number(o)/16}${e}`;return t?hh(s):s}}return r}return n}const O=qE("rem",{shouldScale:!0}),Xx=qE("em");function Ff(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function JE(e){return typeof e=="number"?!0:typeof e=="string"?e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!==""?!0:/[0-9]/.test(e.trim().replace("-","")[0]):!1}function Ds(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==b.Fragment:!1}function Bo(e){const t=b.createContext(null);return[({children:o,value:s})=>m.jsx(t.Provider,{value:s,children:o}),()=>{const o=b.useContext(t);if(o===null)throw new Error(e);return o}]}function GE(e=null){const t=b.createContext(e);return[({children:o,value:s})=>m.jsx(t.Provider,{value:s,children:o}),()=>b.useContext(t)]}const RD={app:100,modal:200,popover:300,overlay:400,max:9999};function $s(e){return RD[e]}const ND=()=>{};function OD(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||ND:n=>{var r;n.key==="Escape"&&(e(n),(r=t.onTrigger)==null||r.call(t))}}function Ee(e,t="size",n=!0){if(e!==void 0)return JE(e)?n?O(e):e:`var(--${t}-${e})`}function sr(e){return Ee(e,"mantine-spacing")}function kn(e){return e===void 0?"var(--mantine-radius-default)":Ee(e,"mantine-radius")}function gn(e){return Ee(e,"mantine-font-size")}function PD(e){return Ee(e,"mantine-line-height",!1)}function y0(e){if(e)return Ee(e,"mantine-shadow",!1)}function AD(e,t){return e in t.breakpoints?fg(t.breakpoints[e]):fg(e)}function jD(e,t){const n=e.map(r=>({value:r,px:AD(r,t)}));return n.sort((r,o)=>r.px-o.px),n}function mh(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function Uu(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 YE(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function Qo(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function zf(e,t){const n=Qo(e),r=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),b.useCallback((...o)=>{window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(...o),t)},[n,t])}const Qx=["mousedown","touchstart"];function ID(e,t,n){const r=b.useRef();return b.useEffect(()=>{const o=s=>{const{target:i}=s??{};if(Array.isArray(n)){const l=(i==null?void 0:i.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(i)&&i.tagName!=="HTML";n.every(c=>!!c&&!s.composedPath().includes(c))&&!l&&e()}else r.current&&!r.current.contains(i)&&e()};return(t||Qx).forEach(s=>document.addEventListener(s,o)),()=>{(t||Qx).forEach(s=>document.removeEventListener(s,o))}},[r,e,n]),r}function LD(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function DD(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function $D(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=b.useState(n?t:DD(e)),s=b.useRef();return b.useEffect(()=>{if("matchMedia"in window)return s.current=window.matchMedia(e),o(s.current.matches),LD(s.current,i=>o(i.matches))},[e]),r}const Ua=typeof document<"u"?b.useLayoutEffect:b.useEffect;function dr(e,t){const n=b.useRef(!1);b.useEffect(()=>()=>{n.current=!1},[]),b.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function XE({opened:e,shouldReturnFocus:t=!0}){const n=b.useRef(),r=()=>{var o;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((o=n.current)==null||o.focus({preventScroll:!0}))};return dr(()=>{let o=-1;const s=i=>{i.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",s),e?n.current=document.activeElement:t&&(o=window.setTimeout(r,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",s)}},[e,t]),r}function _D(e,t="body > :not(script)"){const n=YE(),r=Array.from(document.querySelectorAll(t)).map(o=>{var a;if((a=o==null?void 0:o.shadowRoot)!=null&&a.contains(e)||o.contains(e))return;const s=o.getAttribute("aria-hidden"),i=o.getAttribute("data-hidden"),l=o.getAttribute("data-focus-id");return o.setAttribute("data-focus-id",n),s===null||s==="false"?o.setAttribute("aria-hidden","true"):!i&&!l&&o.setAttribute("data-hidden",s),{node:o,ariaHidden:i||null}});return()=>{r.forEach(o=>{!o||n!==o.node.getAttribute("data-focus-id")||(o.ariaHidden===null?o.node.removeAttribute("aria-hidden"):o.node.setAttribute("aria-hidden",o.ariaHidden),o.node.removeAttribute("data-focus-id"),o.node.removeAttribute("data-hidden"))})}}const FD=/input|select|textarea|button|object/,QE="a, input, select, textarea, button, object, [tabindex]";function zD(e){return e.style.display==="none"}function BD(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(zD(n))return!1;n=n.parentNode}return!0}function ZE(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function pg(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(ZE(e));return(FD.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&BD(e)}function eT(e){const t=ZE(e);return(Number.isNaN(t)||t>=0)&&pg(e)}function HD(e){return Array.from(e.querySelectorAll(QE)).filter(eT)}function VD(e,t){const n=HD(e);if(!n.length){t.preventDefault();return}const r=n[t.shiftKey?0:n.length-1],o=e.getRootNode();let s=r===o.activeElement||e===o.activeElement;const i=o.activeElement;if(i.tagName==="INPUT"&&i.getAttribute("type")==="radio"&&(s=n.filter(u=>u.getAttribute("type")==="radio"&&u.getAttribute("name")===i.getAttribute("name")).includes(r)),!s)return;t.preventDefault();const a=n[t.shiftKey?n.length-1:0];a&&a.focus()}function UD(e=!0){const t=b.useRef(),n=b.useRef(null),r=s=>{let i=s.querySelector("[data-autofocus]");if(!i){const l=Array.from(s.querySelectorAll(QE));i=l.find(eT)||l.find(pg)||null,!i&&pg(s)&&(i=s)}i&&i.focus({preventScroll:!0})},o=b.useCallback(s=>{if(e){if(s===null){n.current&&(n.current(),n.current=null);return}n.current=_D(s),t.current!==s&&(s?(setTimeout(()=>{s.getRootNode()&&r(s)}),t.current=s):t.current=null)}},[e]);return b.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>r(t.current));const s=i=>{i.key==="Tab"&&t.current&&VD(t.current,i)};return document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s),n.current&&n.current()}},[e]),o}const WD=rt["useId".toString()]||(()=>{});function KD(){const e=WD();return e?`mantine-${e.replace(/:/g,"")}`:""}function al(e){const t=KD(),[n,r]=b.useState(t);return Ua(()=>{r(YE())},[]),typeof e=="string"?e:typeof window>"u"?t:n}function tT(e,t,n){b.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function nT(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function qD(...e){return t=>{e.forEach(n=>nT(n,t))}}function Mt(...e){return b.useCallback(qD(...e),e)}function rT(e){return{x:Uu(e.x,0,1),y:Uu(e.y,0,1)}}function oT(e,t,n="ltr"){const r=b.useRef(null),o=b.useRef(!1),s=b.useRef(!1),i=b.useRef(0),[l,a]=b.useState(!1);return b.useEffect(()=>{o.current=!0},[]),b.useEffect(()=>{var v,w;const c=({x:S,y:k})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(o.current&&r.current){r.current.style.userSelect="none";const C=r.current.getBoundingClientRect();if(C.width&&C.height){const T=Uu((S-C.left)/C.width,0,1);e({x:n==="ltr"?T:1-T,y:Uu((k-C.top)/C.height,0,1)})}}})},u=()=>{document.addEventListener("mousemove",g),document.addEventListener("mouseup",p),document.addEventListener("touchmove",y),document.addEventListener("touchend",p)},d=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",p),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",p)},f=()=>{!s.current&&o.current&&(s.current=!0,typeof(t==null?void 0:t.onScrubStart)=="function"&&t.onScrubStart(),a(!0),u())},p=()=>{s.current&&o.current&&(s.current=!1,a(!1),d(),setTimeout(()=>{typeof(t==null?void 0:t.onScrubEnd)=="function"&&t.onScrubEnd()},0))},h=S=>{f(),S.preventDefault(),g(S)},g=S=>c({x:S.clientX,y:S.clientY}),x=S=>{S.cancelable&&S.preventDefault(),f(),y(S)},y=S=>{S.cancelable&&S.preventDefault(),c({x:S.changedTouches[0].clientX,y:S.changedTouches[0].clientY})};return(v=r.current)==null||v.addEventListener("mousedown",h),(w=r.current)==null||w.addEventListener("touchstart",x,{passive:!1}),()=>{r.current&&(r.current.removeEventListener("mousedown",h),r.current.removeEventListener("touchstart",x))}},[n,e]),{ref:r,active:l}}function wa({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[o,s]=b.useState(t!==void 0?t:n),i=(l,...a)=>{s(l),r==null||r(l,...a)};return e!==void 0?[e,r,!0]:[o,i,!1]}function sT(e,t){return $D("(prefers-reduced-motion: reduce)",e,t)}function JD(e){return t=>{if(!t)e(t);else if(typeof t=="function")e(t);else if(typeof t=="object"&&"nativeEvent"in t){const{currentTarget:n}=t;n.type==="checkbox"?e(n.checked):e(n.value)}else e(t)}}function GD(e){const[t,n]=b.useState(e);return[t,JD(n)]}function Co(e=!1,t){const{onOpen:n,onClose:r}=t||{},[o,s]=b.useState(e),i=b.useCallback(()=>{s(c=>c||(n==null||n(),!0))},[n]),l=b.useCallback(()=>{s(c=>c&&(r==null||r(),!1))},[r]),a=b.useCallback(()=>{o?l():i()},[l,i,o]);return[o,{open:i,close:l,toggle:a}]}function iT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{Object.entries(n).forEach(([r,o])=>{t[r]?t[r]=at(t[r],o):t[r]=o})}),t}function Bf({theme:e,classNames:t,props:n,stylesCtx:r}){const s=(Array.isArray(t)?t:[t]).map(i=>typeof i=="function"?i(e,n,r):i||YD);return XD(s)}function Wu({theme:e,styles:t,props:n,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce((s,i)=>typeof i=="function"?{...s,...i(e,n,r)}:{...s,...i},{})}const lT=b.createContext(null);function _s(){const e=b.useContext(lT);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function QD(){return _s().cssVariablesResolver}function ZD(){return _s().classNamesPrefix}function v0(){return _s().getStyleNonce}function e$(){return _s().withStaticClasses}function t$(){return _s().headless}function n$(){var e;return(e=_s().stylesTransform)==null?void 0:e.sx}function r$(){var e;return(e=_s().stylesTransform)==null?void 0:e.styles}function o$(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function s$(e){let t=e.replace("#","");if(t.length===3){const i=t.split("");t=[i[0],i[0],i[1],i[1],i[2],i[2]].join("")}if(t.length===8){const i=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:i}}const n=parseInt(t,16),r=n>>16&255,o=n>>8&255,s=n&255;return{r,g:o,b:s,a:1}}function i$(e){const[t,n,r,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:o||1}}function l$(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 r=parseInt(n[1],10),o=parseInt(n[2],10)/100,s=parseInt(n[3],10)/100,i=n[5]?parseFloat(n[5]):void 0,l=(1-Math.abs(2*s-1))*o,a=r/60,c=l*(1-Math.abs(a%2-1)),u=s-l/2;let d,f,p;return a>=0&&a<1?(d=l,f=c,p=0):a>=1&&a<2?(d=c,f=l,p=0):a>=2&&a<3?(d=0,f=l,p=c):a>=3&&a<4?(d=0,f=c,p=l):a>=4&&a<5?(d=c,f=0,p=l):(d=l,f=0,p=c),{r:Math.round((d+u)*255),g:Math.round((f+u)*255),b:Math.round((p+u)*255),a:i||1}}function x0(e){return o$(e)?s$(e):e.startsWith("rgb")?i$(e):e.startsWith("hsl")?l$(e):{r:0,g:0,b:0,a:1}}function kc(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:r,b:o,a:s}=x0(e),i=1-t,l=a=>Math.round(a*i);return`rgba(${l(n)}, ${l(r)}, ${l(o)}, ${s})`}function Sa(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function gh(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function a$(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function c$(e){if(e.startsWith("oklch("))return(a$(e)||0)/100;const{r:t,g:n,b:r}=x0(e),o=t/255,s=n/255,i=r/255,l=gh(o),a=gh(s),c=gh(i);return .2126*l+.7152*a+.0722*c}function El(e,t=.179){return e.startsWith("var(")?!1:c$(e)>t}function Wa({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:El(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:El(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:El(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,o]=e.split("."),s=o?Number(o):void 0,i=r in t.colors;if(i){const l=s!==void 0?t.colors[r][s]:t.colors[r][Sa(t,n||"light")];return{color:r,value:l,shade:s,isThemeColor:i,isLight:El(l,t.luminanceThreshold),variable:o?`--mantine-color-${r}-${s}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:i,isLight:El(e,t.luminanceThreshold),shade:s,variable:void 0}}function Es(e,t){const n=Wa({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function hg(e,t){const n={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(e==null?void 0:e.deg)||t.defaultGradient.deg||0},r=Es(n.from,t),o=Es(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${o} 100%)`}function Yn(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:r,b:o}=x0(e);return`rgba(${n}, ${r}, ${o}, ${t})`}const Qs=Yn,u$=({color:e,theme:t,variant:n,gradient:r,autoContrast:o})=>{const s=Wa({color:e,theme:t}),i=typeof o=="boolean"?o:t.autoContrast;if(n==="filled"){const l=i&&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:l,border:`${O(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:l,border:`${O(1)} solid transparent`}:{background:e,hover:kc(e,.1),color:l,border:`${O(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:`${O(1)} solid transparent`};const l=t.colors[s.color][s.shade];return{background:Yn(l,.1),hover:Yn(l,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${O(1)} solid transparent`}}return{background:Yn(e,.1),hover:Yn(e,.12),color:e,border:`${O(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:`${O(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:Yn(t.colors[s.color][s.shade],.05),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${O(1)} solid var(--mantine-color-${s.color}-${s.shade})`}:{background:"transparent",hover:Yn(e,.05),color:e,border:`${O(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:`${O(1)} solid transparent`};const l=t.colors[s.color][s.shade];return{background:"transparent",hover:Yn(l,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${O(1)} solid transparent`}}return{background:"transparent",hover:Yn(e,.12),color:e,border:`${O(1)} solid transparent`}}return n==="transparent"?s.isThemeColor?s.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${O(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${O(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${O(1)} solid transparent`}:n==="white"?s.isThemeColor?s.shade===void 0?{background:"var(--mantine-color-white)",hover:kc(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${O(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:kc(t.white,.01),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${O(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:kc(t.white,.01),color:e,border:`${O(1)} solid transparent`}:n==="gradient"?{background:hg(r,t),hover:hg(r,t),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${O(1)} solid var(--mantine-color-default-border)`}:{}},d$={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"]},Zx="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",b0={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:d$,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:u$,autoContrast:!1,luminanceThreshold:.3,fontFamily:Zx,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:Zx,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:O(34),lineHeight:"1.3"},h2:{fontSize:O(26),lineHeight:"1.35"},h3:{fontSize:O(22),lineHeight:"1.4"},h4:{fontSize:O(18),lineHeight:"1.45"},h5:{fontSize:O(16),lineHeight:"1.5"},h6:{fontSize:O(14),lineHeight:"1.5"}}},fontSizes:{xs:O(12),sm:O(14),md:O(16),lg:O(18),xl:O(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:O(2),sm:O(4),md:O(8),lg:O(16),xl:O(32)},spacing:{xs:O(10),sm:O(12),md:O(16),lg:O(20),xl:O(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${O(1)} ${O(3)} rgba(0, 0, 0, 0.05), 0 ${O(1)} ${O(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${O(1)} ${O(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${O(10)} ${O(15)} ${O(-5)}, rgba(0, 0, 0, 0.04) 0 ${O(7)} ${O(7)} ${O(-5)}`,md:`0 ${O(1)} ${O(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${O(20)} ${O(25)} ${O(-5)}, rgba(0, 0, 0, 0.04) 0 ${O(10)} ${O(10)} ${O(-5)}`,lg:`0 ${O(1)} ${O(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${O(28)} ${O(23)} ${O(-7)}, rgba(0, 0, 0, 0.04) 0 ${O(12)} ${O(12)} ${O(-7)}`,xl:`0 ${O(1)} ${O(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${O(36)} ${O(28)} ${O(-7)}, rgba(0, 0, 0, 0.04) 0 ${O(17)} ${O(17)} ${O(-7)}`},other:{},components:{}};function eb(e){return e==="auto"||e==="dark"||e==="light"}function f$({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(e);return eb(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{t=r=>{r.storageArea===window.localStorage&&r.key===e&&eb(r.newValue)&&n(r.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const p$="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",tb="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function yh(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function nb(e){if(!(e.primaryColor in e.colors))throw new Error(p$);if(typeof e.primaryShade=="object"&&(!yh(e.primaryShade.dark)||!yh(e.primaryShade.light)))throw new Error(tb);if(typeof e.primaryShade=="number"&&!yh(e.primaryShade))throw new Error(tb)}function h$(e,t){var r;if(!t)return nb(e),e;const n=g0(e,t);return t.fontFamily&&!((r=t.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=t.fontFamily),nb(n),n}const w0=b.createContext(null),m$=()=>b.useContext(w0)||b0;function Wn(){const e=b.useContext(w0);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 aT({theme:e,children:t,inherit:n=!0}){const r=m$(),o=b.useMemo(()=>h$(n?r:b0,e),[e,r,n]);return m.jsx(w0.Provider,{value:o,children:t})}aT.displayName="@mantine/core/MantineThemeProvider";function g$(){const e=Wn(),t=v0(),n=Jt(e.breakpoints).reduce((r,o)=>{const s=e.breakpoints[o].includes("px"),i=fg(e.breakpoints[o]),l=s?`${i-.1}px`:Xx(i-.1),a=s?`${i}px`:Xx(i);return`${r}@media (max-width: ${l}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${a}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");return m.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:n}})}function vh(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function xh(e,t){return(Array.isArray(e)?e:[e]).reduce((r,o)=>`${o}{${r}}`,t)}function y$(e,t){const n=vh(e.variables),r=n?xh(t,n):"",o=vh(e.dark),s=o?xh(`${t}[data-mantine-color-scheme="dark"]`,o):"",i=vh(e.light),l=i?xh(`${t}[data-mantine-color-scheme="light"]`,i):"";return`${r}${s}${l}`}function v$({color:e,theme:t,autoContrast:n}){return(typeof n=="boolean"?n:t.autoContrast)&&Wa({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function rb(e,t){return v$({color:e.colors[e.primaryColor][Sa(e,t)],theme:e,autoContrast:null})}function Cc({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:o=!0}){if(!e.colors[t])return{};if(n==="light"){const l=Sa(e,"light"),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${l})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${l===9?8:l+1})`,[`--mantine-color-${r}-light`]:Qs(e.colors[t][l],.1),[`--mantine-color-${r}-light-hover`]:Qs(e.colors[t][l],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${l})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${l})`,[`--mantine-color-${r}-outline-hover`]:Qs(e.colors[t][l],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}const s=Sa(e,"dark"),i={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${s===9?8:s+1})`,[`--mantine-color-${r}-light`]:Qs(e.colors[t][Math.max(0,s-2)],.15),[`--mantine-color-${r}-light-hover`]:Qs(e.colors[t][Math.max(0,s-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(s-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(s-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Qs(e.colors[t][Math.max(s-4,0)],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...i}:i}function x$(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function Zs(e,t,n){Jt(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}const cT=e=>{const t=Sa(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:O(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--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-primary-color-contrast":rb(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)"},dark:{"--mantine-primary-color-contrast":rb(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)"}};Zs(r.variables,e.breakpoints,"breakpoint"),Zs(r.variables,e.spacing,"spacing"),Zs(r.variables,e.fontSizes,"font-size"),Zs(r.variables,e.lineHeights,"line-height"),Zs(r.variables,e.shadows,"shadow"),Zs(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((s,i)=>{r.variables[`--mantine-primary-color-${i}`]=`var(--mantine-color-${e.primaryColor}-${i})`}),Jt(e.colors).forEach(s=>{const i=e.colors[s];if(x$(i)){Object.assign(r.light,Cc({theme:e,name:i.name,color:i.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,Cc({theme:e,name:i.name,color:i.dark,colorScheme:"dark",withColorValues:!0}));return}i.forEach((l,a)=>{r.variables[`--mantine-color-${s}-${a}`]=l}),Object.assign(r.light,Cc({theme:e,color:s,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,Cc({theme:e,color:s,colorScheme:"dark",withColorValues:!1}))});const o=e.headings.sizes;return Jt(o).forEach(s=>{r.variables[`--mantine-${s}-font-size`]=o[s].fontSize,r.variables[`--mantine-${s}-line-height`]=o[s].lineHeight,r.variables[`--mantine-${s}-font-weight`]=o[s].fontWeight||e.headings.fontWeight}),r};function b$({theme:e,generator:t}){const n=cT(e),r=t==null?void 0:t(e);return r?g0(n,r):n}const bh=cT(b0);function w$(e){const t={variables:{},light:{},dark:{}};return Jt(e.variables).forEach(n=>{bh.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),Jt(e.light).forEach(n=>{bh.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),Jt(e.dark).forEach(n=>{bh.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function S$(e){return` ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; } ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; } -`}function uT({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=Wn(),r=v0(),o=QD(),s=b$({theme:n,generator:o}),i=e===":root"&&t,l=i?w$(s):s,a=y$(l,e);return a?m.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${a}${i?"":S$(e)}`}}):null}uT.displayName="@mantine/CssVariables";function k$(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function ei(e,t){var r;const n=e!=="auto"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";(r=t())==null||r.setAttribute("data-mantine-color-scheme",n)}function C$({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const o=b.useRef(),[s,i]=b.useState(()=>e.get(t)),l=r||s,a=b.useCallback(u=>{r||(ei(u,n),i(u),e.set(u))},[e.set,l,r]),c=b.useCallback(()=>{i(t),ei(t,n),e.clear()},[e.clear,t]);return b.useEffect(()=>(e.subscribe(a),e.unsubscribe),[e.subscribe,e.unsubscribe]),Ua(()=>{ei(e.get(t),n)},[]),b.useEffect(()=>{var d;if(r)return ei(r,n),()=>{};r===void 0&&ei(s,n),o.current=window.matchMedia("(prefers-color-scheme: dark)");const u=f=>{s==="auto"&&ei(f.matches?"dark":"light",n)};return(d=o.current)==null||d.addEventListener("change",u),()=>{var f;return(f=o.current)==null?void 0:f.removeEventListener("change",u)}},[s,r]),{colorScheme:l,setColorScheme:a,clearColorScheme:c}}function E$({respectReducedMotion:e,getRootElement:t}){Ua(()=>{var n;e&&((n=t())==null||n.setAttribute("data-respect-reduced-motion","true"))},[e])}k$();function dT({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:o=!0,deduplicateCssVariables:s=!0,withCssVariables:i=!0,cssVariablesSelector:l=":root",classNamesPrefix:a="mantine",colorSchemeManager:c=f$(),defaultColorScheme:u="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:h}){const{colorScheme:g,setColorScheme:x,clearColorScheme:y}=C$({defaultColorScheme:u,forceColorScheme:p,manager:c,getRootElement:d});return E$({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:d}),m.jsx(lT.Provider,{value:{colorScheme:g,setColorScheme:x,clearColorScheme:y,getRootElement:d,classNamesPrefix:a,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:l,withStaticClasses:r,stylesTransform:h},children:m.jsxs(aT,{theme:e,children:[i&&m.jsx(uT,{cssVariablesSelector:l,deduplicateCssVariables:s}),o&&m.jsx(g$,{}),t]})})}dT.displayName="@mantine/core/MantineProvider";function fT({classNames:e,styles:t,props:n,stylesCtx:r}){const o=Wn();return{resolvedClassNames:Bf({theme:o,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:Wu({theme:o,styles:t,props:n,stylesCtx:r||void 0})}}const T$={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function M$({theme:e,options:t,unstyled:n}){return at((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||T$[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function R$({selector:e,stylesCtx:t,options:n,props:r,theme:o}){return Bf({theme:o,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:t})[e]}function ob({selector:e,stylesCtx:t,theme:n,classNames:r,props:o}){return Bf({theme:n,classNames:r,props:o,stylesCtx:t})[e]}function N$({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function O$({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function P$({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(o=>`${t}-${o}-${n}`)}function A$({themeName:e,theme:t,selector:n,props:r,stylesCtx:o}){return e.map(s=>{var i,l;return(l=Bf({theme:t,classNames:(i=t.components[s])==null?void 0:i.classNames,props:r,stylesCtx:o}))==null?void 0:l[n]})}function j$({options:e,classes:t,selector:n,unstyled:r}){return e!=null&&e.variant&&!r?t[`${n}--${e.variant}`]:void 0}function I$({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:o,classNames:s,classes:i,unstyled:l,className:a,rootSelector:c,props:u,stylesCtx:d,withStaticClasses:f,headless:p,transformedStyles:h}){return at(M$({theme:e,options:t,unstyled:l||p}),A$({theme:e,themeName:n,selector:r,props:u,stylesCtx:d}),j$({options:t,classes:i,selector:r,unstyled:l}),ob({selector:r,stylesCtx:d,theme:e,classNames:s,props:u}),ob({selector:r,stylesCtx:d,theme:e,classNames:h,props:u}),R$({selector:r,stylesCtx:d,options:t,props:u,theme:e}),N$({rootSelector:c,selector:r,className:a}),O$({selector:r,classes:i,unstyled:l||p}),f&&!p&&P$({themeName:n,classNamesPrefix:o,selector:r,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function L$({theme:e,themeName:t,props:n,stylesCtx:r,selector:o}){return t.map(s=>{var i;return Wu({theme:e,styles:(i=e.components[s])==null?void 0:i.styles,props:n,stylesCtx:r})[o]}).reduce((s,i)=>({...s,...i}),{})}function mg({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...mg({style:r,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function D$(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{t[r]={...t[r],...Ff(n[r])}}),t),{})}function $$({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:o,selector:s,themeName:i,headless:l}){var a;return(a=D$([l?{}:t==null?void 0:t(n,r,o),...i.map(c=>{var u,d,f;return(f=(d=(u=n.components)==null?void 0:u[c])==null?void 0:d.vars)==null?void 0:f.call(d,n,r,o)}),e==null?void 0:e(n,r,o)]))==null?void 0:a[s]}function _$({theme:e,themeName:t,selector:n,options:r,props:o,stylesCtx:s,rootSelector:i,styles:l,style:a,vars:c,varsResolver:u,headless:d,withStylesTransform:f}){return{...!f&&L$({theme:e,themeName:t,props:o,stylesCtx:s,selector:n}),...!f&&Wu({theme:e,styles:l,props:o,stylesCtx:s})[n],...!f&&Wu({theme:e,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||o,stylesCtx:s})[n],...$$({theme:e,props:o,stylesCtx:s,vars:c,varsResolver:u,selector:n,themeName:t,headless:d}),...i===n?mg({style:a,theme:e}):null,...mg({style:r==null?void 0:r.style,theme:e})}}function F$({props:e,stylesCtx:t,themeName:n}){var i;const r=Wn(),o=(i=r$())==null?void 0:i();return{getTransformedStyles:l=>o?[...l.map(c=>o(c,{props:e,theme:r,ctx:t})),...n.map(c=>{var u;return o((u=r.components[c])==null?void 0:u.styles,{props:e,theme:r,ctx:t})})].filter(Boolean):[],withStylesTransform:!!o}}function le({name:e,classes:t,props:n,stylesCtx:r,className:o,style:s,rootSelector:i="root",unstyled:l,classNames:a,styles:c,vars:u,varsResolver:d}){const f=Wn(),p=ZD(),h=e$(),g=t$(),x=(Array.isArray(e)?e:[e]).filter(w=>w),{withStylesTransform:y,getTransformedStyles:v}=F$({props:n,stylesCtx:r,themeName:x});return(w,S)=>({className:I$({theme:f,options:S,themeName:x,selector:w,classNamesPrefix:p,classNames:a,classes:t,unstyled:l,className:o,rootSelector:i,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:v([S==null?void 0:S.styles,c])}),style:_$({theme:f,themeName:x,selector:w,options:S,props:n,stylesCtx:r,rootSelector:i,styles:c,style:s,vars:u,varsResolver:d,headless:g,withStylesTransform:y})})}function V(e,t,n){var i;const r=Wn(),o=(i=r.components[e])==null?void 0:i.defaultProps,s=typeof o=="function"?o(r):o;return{...t,...s,...Ff(n)}}function sb(e){return Jt(e).reduce((t,n)=>e[n]!==void 0?`${t}${TD(n)}:${e[n]};`:t,"").trim()}function z$({selector:e,styles:t,media:n}){const r=t?sb(t):"",o=Array.isArray(n)?n.map(s=>`@media${s.query}{${e}{${sb(s.styles)}}}`):[];return`${r?`${e}{${r}}`:""}${o.join("")}`.trim()}function pT({selector:e,styles:t,media:n}){const r=v0();return m.jsx("style",{"data-mantine-styles":"inline",nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:z$({selector:e,styles:t,media:n})}})}function S0(e){const{m:t,mx:n,my:r,mt:o,mb:s,ml:i,mr:l,me:a,ms:c,p:u,px:d,py:f,pt:p,pb:h,pl:g,pr:x,pe:y,ps:v,bg:w,c:S,opacity:k,ff:C,fz:T,fw:E,lts:N,ta:A,lh:z,fs:H,tt:B,td:F,w:j,miw:P,maw:I,h:M,mih:R,mah:D,bgsz:W,bgp:Z,bgr:fe,bga:ne,pos:ee,top:ce,left:Ie,bottom:ze,right:Mn,inset:gr,display:Kr,flex:Ko,hiddenFrom:yr,visibleFrom:Le,lightHidden:vr,darkHidden:qs,sx:Ot,...qo}=e;return{styleProps:Ff({m:t,mx:n,my:r,mt:o,mb:s,ml:i,mr:l,me:a,ms:c,p:u,px:d,py:f,pt:p,pb:h,pl:g,pr:x,pe:y,ps:v,bg:w,c:S,opacity:k,ff:C,fz:T,fw:E,lts:N,ta:A,lh:z,fs:H,tt:B,td:F,w:j,miw:P,maw:I,h:M,mih:R,mah:D,bgsz:W,bgp:Z,bgr:fe,bga:ne,pos:ee,top:ce,left:Ie,bottom:ze,right:Mn,inset:gr,display:Kr,flex:Ko,hiddenFrom:yr,visibleFrom:Le,lightHidden:vr,darkHidden:qs,sx:Ot}),rest:qo}}const B$={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"},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:"identity",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 hT(e,t){const n=Wa({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 H$(e,t){const n=Wa({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:hT(e,t)}const ib={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 V$(e){return typeof e=="string"&&e in ib?ib[e]:e}const U$=["h1","h2","h3","h4","h5","h6"];function W$(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&U$.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?O(e):e}function K$(e){return e}const q$=["h1","h2","h3","h4","h5","h6"];function J$(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&q$.includes(e)?`var(--mantine-${e}-line-height)`:e}function G$(e){return typeof e=="number"?O(e):e}function Y$(e,t){if(typeof e=="number")return O(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return O(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e}const wh={color:hT,textColor:H$,fontSize:W$,spacing:Y$,identity:K$,size:G$,lineHeight:J$,fontFamily:V$};function lb(e){return e.replace("(min-width: ","").replace("em)","")}function X$({media:e,...t}){const r=Object.keys(e).sort((o,s)=>Number(lb(o))-Number(lb(s))).map(o=>({query:o,styles:e[o]}));return{...t,media:r}}function Q$(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function Z$(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function e4(e){return typeof e=="object"&&e!==null?Jt(e).filter(t=>t!=="base"):[]}function t4(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function n4({styleProps:e,data:t,theme:n}){return X$(Jt(e).reduce((r,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return r;const s=t[o],i=Array.isArray(s.property)?s.property:[s.property],l=Z$(e[o]);if(!Q$(e[o]))return i.forEach(c=>{r.inlineStyles[c]=wh[s.type](l,n)}),r;r.hasResponsiveStyles=!0;const a=e4(e[o]);return i.forEach(c=>{l&&(r.styles[c]=wh[s.type](l,n)),a.forEach(u=>{const d=`(min-width: ${n.breakpoints[u]})`;r.media[d]={...r.media[d],[c]:wh[s.type](t4(e[o],u),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function mT(){return`__m__-${b.useId().replace(/:/g,"")}`}function gT(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...gT(r,t)}),{}):typeof e=="function"?e(t):e??{}}function yT(e){return e.startsWith("data-")?e:`data-${e}`}function r4(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r===void 0||r===""||r===!1||r===null||(t[yT(n)]=e[n]),t},{})}function vT(e){return e?typeof e=="string"?{[yT(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...vT(n)}),{}):r4(e):null}function gg(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...gg(r,t)}),{}):typeof e=="function"?e(t):e??{}}function o4({theme:e,style:t,vars:n,styleProps:r}){const o=gg(t,e),s=gg(n,e);return{...o,...s,...r}}const xT=b.forwardRef(({component:e,style:t,__vars:n,className:r,variant:o,mod:s,size:i,hiddenFrom:l,visibleFrom:a,lightHidden:c,darkHidden:u,renderRoot:d,...f},p)=>{var T;const h=Wn(),g=e||"div",{styleProps:x,rest:y}=S0(f),v=n$(),w=(T=v==null?void 0:v())==null?void 0:T(x.sx),S=mT(),k=n4({styleProps:x,theme:h,data:B$}),C={ref:p,style:o4({theme:h,style:t,vars:n,styleProps:k.inlineStyles}),className:at(r,w,{[S]:k.hasResponsiveStyles,"mantine-light-hidden":c,"mantine-dark-hidden":u,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${a}`]:a}),"data-variant":o,"data-size":JE(i)?void 0:i||void 0,...vT(s),...y};return m.jsxs(m.Fragment,{children:[k.hasResponsiveStyles&&m.jsx(pT,{selector:`.${S}`,styles:k.styles,media:k.media}),typeof d=="function"?d(C):m.jsx(g,{...C})]})});xT.displayName="@mantine/core/Box";const Y=xT;function bT(e){return e}function Q(e){const t=b.forwardRef(e);return t.extend=bT,t}function Rt(e){const t=b.forwardRef(e);return t.extend=bT,t}const s4=b.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Hf(){return b.useContext(s4)}const[i4,Cn]=Bo("ScrollArea.Root component was not found in tree");function Ki(e,t){const n=Qo(t);Ua(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}const l4=b.forwardRef((e,t)=>{const{style:n,...r}=e,o=Cn(),[s,i]=b.useState(0),[l,a]=b.useState(0),c=!!(s&&l);return Ki(o.scrollbarX,()=>{var d;const u=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(u),a(u)}),Ki(o.scrollbarY,()=>{var d;const u=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(u),i(u)}),c?m.jsx("div",{...r,ref:t,style:{...n,width:s,height:l}}):null}),a4=b.forwardRef((e,t)=>{const n=Cn(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?m.jsx(l4,{...e,ref:t}):null}),c4={scrollHideDelay:1e3,type:"hover"},wT=b.forwardRef((e,t)=>{const n=V("ScrollAreaRoot",c4,e),{type:r,scrollHideDelay:o,scrollbars:s,...i}=n,[l,a]=b.useState(null),[c,u]=b.useState(null),[d,f]=b.useState(null),[p,h]=b.useState(null),[g,x]=b.useState(null),[y,v]=b.useState(0),[w,S]=b.useState(0),[k,C]=b.useState(!1),[T,E]=b.useState(!1),N=Mt(t,A=>a(A));return m.jsx(i4,{value:{type:r,scrollHideDelay:o,scrollArea:l,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:k,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:x,scrollbarYEnabled:T,onScrollbarYEnabledChange:E,onCornerWidthChange:v,onCornerHeightChange:S},children:m.jsx(Y,{...i,ref:N,__vars:{"--sa-corner-width":s!=="xy"?"0px":`${y}px`,"--sa-corner-height":s!=="xy"?"0px":`${w}px`}})})});wT.displayName="@mantine/core/ScrollAreaRoot";function ST(e,t){const n=e/t;return Number.isNaN(n)?0:n}function Vf(e){const t=ST(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function kT(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function u4(e,[t,n]){return Math.min(n,Math.max(t,e))}function ab(e,t,n="ltr"){const r=Vf(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,i=t.content-t.viewport,l=s-r,a=n==="ltr"?[0,i]:[i*-1,0],c=u4(e,a);return kT([0,i],[0,l])(c)}function d4(e,t,n,r="ltr"){const o=Vf(n),s=o/2,i=t||s,l=o-i,a=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-l,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return kT([a,c],d)(e)}function CT(e,t){return e>0&&e{e==null||e(r),(n===!1||!r.defaultPrevented)&&(t==null||t(r))}}const[f4,ET]=Bo("ScrollAreaScrollbar was not found in tree"),TT=b.forwardRef((e,t)=>{const{sizes:n,hasThumb:r,onThumbChange:o,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:a,onWheelScroll:c,onResize:u,...d}=e,f=Cn(),[p,h]=b.useState(null),g=Mt(t,E=>h(E)),x=b.useRef(null),y=b.useRef(""),{viewport:v}=f,w=n.content-n.viewport,S=Qo(c),k=Qo(l),C=zf(u,10),T=E=>{if(x.current){const N=E.clientX-x.current.left,A=E.clientY-x.current.top;a({x:N,y:A})}};return b.useEffect(()=>{const E=N=>{const A=N.target;(p==null?void 0:p.contains(A))&&S(N,w)};return document.addEventListener("wheel",E,{passive:!1}),()=>document.removeEventListener("wheel",E,{passive:!1})},[v,p,w,S]),b.useEffect(k,[n,k]),Ki(p,C),Ki(f.content,C),m.jsx(f4,{value:{scrollbar:p,hasThumb:r,onThumbChange:Qo(o),onThumbPointerUp:Qo(s),onThumbPositionChange:k,onThumbPointerDown:Qo(i)},children:m.jsx("div",{...d,ref:g,style:{position:"absolute",...d.style},onPointerDown:fs(e.onPointerDown,E=>{E.button===0&&(E.target.setPointerCapture(E.pointerId),x.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",T(E))}),onPointerMove:fs(e.onPointerMove,T),onPointerUp:fs(e.onPointerUp,E=>{const N=E.target;N.hasPointerCapture(E.pointerId)&&N.releasePointerCapture(E.pointerId),document.body.style.webkitUserSelect=y.current,x.current=null})})})}),p4=b.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...s}=e,i=Cn(),[l,a]=b.useState(),c=b.useRef(null),u=Mt(t,c,i.onScrollbarXChange);return b.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),m.jsx(TT,{"data-orientation":"horizontal",...s,ref:u,sizes:n,style:{...o,"--sa-thumb-width":`${Vf(n)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(i.viewport){const p=i.viewport.scrollLeft+d.deltaX;e.onWheelScroll(p),CT(p,f)&&d.preventDefault()}},onResize:()=>{c.current&&i.viewport&&l&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Ku(l.paddingLeft),paddingEnd:Ku(l.paddingRight)}})}})}),h4=b.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...s}=e,i=Cn(),[l,a]=b.useState(),c=b.useRef(null),u=Mt(t,c,i.onScrollbarYChange);return b.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),m.jsx(TT,{...s,"data-orientation":"vertical",ref:u,sizes:n,style:{"--sa-thumb-height":`${Vf(n)}px`,...o},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(i.viewport){const p=i.viewport.scrollTop+d.deltaY;e.onWheelScroll(p),CT(p,f)&&d.preventDefault()}},onResize:()=>{c.current&&i.viewport&&l&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Ku(l.paddingTop),paddingEnd:Ku(l.paddingBottom)}})}})}),k0=b.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,{dir:o}=Hf(),s=Cn(),i=b.useRef(null),l=b.useRef(0),[a,c]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ST(a.viewport,a.content),d={...r,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:p=>{i.current=p},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:p=>{l.current=p}},f=(p,h)=>d4(p,l.current,a,h);return n==="horizontal"?m.jsx(p4,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const p=s.viewport.scrollLeft,h=ab(p,a,o);i.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:p=>{s.viewport&&(s.viewport.scrollLeft=p)},onDragScroll:p=>{s.viewport&&(s.viewport.scrollLeft=f(p,o))}}):n==="vertical"?m.jsx(h4,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const p=s.viewport.scrollTop,h=ab(p,a);i.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:p=>{s.viewport&&(s.viewport.scrollTop=p)},onDragScroll:p=>{s.viewport&&(s.viewport.scrollTop=f(p))}}):null}),MT=b.forwardRef((e,t)=>{const n=Cn(),{forceMount:r,...o}=e,[s,i]=b.useState(!1),l=e.orientation==="horizontal",a=zf(()=>{if(n.viewport){const c=n.viewport.offsetWidth{const{forceMount:n,...r}=e,o=Cn(),[s,i]=b.useState(!1);return b.useEffect(()=>{const{scrollArea:l}=o;let a=0;if(l){const c=()=>{window.clearTimeout(a),i(!0)},u=()=>{a=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",c),l.addEventListener("pointerleave",u),()=>{window.clearTimeout(a),l.removeEventListener("pointerenter",c),l.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),n||s?m.jsx(MT,{"data-state":s?"visible":"hidden",...r,ref:t}):null}),g4=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Cn(),s=e.orientation==="horizontal",[i,l]=b.useState("hidden"),a=zf(()=>l("idle"),100);return b.useEffect(()=>{if(i==="idle"){const c=window.setTimeout(()=>l("hidden"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[i,o.scrollHideDelay]),b.useEffect(()=>{const{viewport:c}=o,u=s?"scrollLeft":"scrollTop";if(c){let d=c[u];const f=()=>{const p=c[u];d!==p&&(l("scrolling"),a()),d=p};return c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[o.viewport,s,a]),n||i!=="hidden"?m.jsx(k0,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:fs(e.onPointerEnter,()=>l("interacting")),onPointerLeave:fs(e.onPointerLeave,()=>l("idle"))}):null}),cb=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Cn(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=o,l=e.orientation==="horizontal";return b.useEffect(()=>(l?s(!0):i(!0),()=>{l?s(!1):i(!1)}),[l,s,i]),o.type==="hover"?m.jsx(m4,{...r,ref:t,forceMount:n}):o.type==="scroll"?m.jsx(g4,{...r,ref:t,forceMount:n}):o.type==="auto"?m.jsx(MT,{...r,ref:t,forceMount:n}):o.type==="always"?m.jsx(k0,{...r,ref:t}):null});function y4(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,l=n.top!==s.top;(i||l)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)}const v4=b.forwardRef((e,t)=>{const{style:n,...r}=e,o=Cn(),s=ET(),{onThumbPositionChange:i}=s,l=Mt(t,u=>s.onThumbChange(u)),a=b.useRef(),c=zf(()=>{a.current&&(a.current(),a.current=void 0)},100);return b.useEffect(()=>{const{viewport:u}=o;if(u){const d=()=>{if(c(),!a.current){const f=y4(u,i);a.current=f,i()}};return i(),u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[o.viewport,c,i]),m.jsx("div",{"data-state":s.hasThumb?"visible":"hidden",...r,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:fs(e.onPointerDownCapture,u=>{const f=u.target.getBoundingClientRect(),p=u.clientX-f.left,h=u.clientY-f.top;s.onThumbPointerDown({x:p,y:h})}),onPointerUp:fs(e.onPointerUp,s.onThumbPointerUp)})}),ub=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ET();return n||o.hasThumb?m.jsx(v4,{ref:t,...r}):null}),RT=b.forwardRef(({children:e,style:t,...n},r)=>{const o=Cn(),s=Mt(r,o.onViewportChange);return m.jsx(Y,{...n,ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t},children:m.jsx("div",{style:{minWidth:"100%",display:"table"},ref:o.onContentChange,children:e})})});RT.displayName="@mantine/core/ScrollAreaViewport";var C0={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const NT={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},x4=(e,{scrollbarSize:t})=>({root:{"--scrollarea-scrollbar-size":O(t)}}),Ka=Q((e,t)=>{const n=V("ScrollArea",NT,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,scrollbarSize:a,vars:c,type:u,scrollHideDelay:d,viewportProps:f,viewportRef:p,onScrollPositionChange:h,children:g,offsetScrollbars:x,scrollbars:y,...v}=n,[w,S]=b.useState(!1),k=le({name:"ScrollArea",props:n,classes:C0,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:c,varsResolver:x4});return m.jsxs(wT,{type:u==="never"?"always":u,scrollHideDelay:d,ref:t,scrollbars:y,...k("root"),...v,children:[m.jsx(RT,{...f,...k("viewport",{style:f==null?void 0:f.style}),ref:p,"data-offset-scrollbars":x===!0?"xy":x||void 0,"data-scrollbars":y||void 0,onScroll:C=>{var T;(T=f==null?void 0:f.onScroll)==null||T.call(f,C),h==null||h({x:C.currentTarget.scrollLeft,y:C.currentTarget.scrollTop})},children:g}),(y==="xy"||y==="x")&&m.jsx(cb,{...k("scrollbar"),orientation:"horizontal","data-hidden":u==="never"||void 0,forceMount:!0,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:m.jsx(ub,{...k("thumb")})}),(y==="xy"||y==="y")&&m.jsx(cb,{...k("scrollbar"),orientation:"vertical","data-hidden":u==="never"||void 0,forceMount:!0,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:m.jsx(ub,{...k("thumb")})}),m.jsx(a4,{...k("corner"),"data-hovered":w||void 0,"data-hidden":u==="never"||void 0})]})});Ka.displayName="@mantine/core/ScrollArea";const E0=Q((e,t)=>{const{children:n,classNames:r,styles:o,scrollbarSize:s,scrollHideDelay:i,type:l,dir:a,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,scrollbars:g,style:x,vars:y,...v}=V("ScrollAreaAutosize",NT,e);return m.jsx(Y,{...v,ref:t,style:[{display:"flex",overflow:"auto"},x],children:m.jsx(Y,{style:{display:"flex",flexDirection:"column",flex:1},children:m.jsx(Ka,{classNames:r,styles:o,scrollHideDelay:i,scrollbarSize:s,type:l,dir:a,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,vars:y,scrollbars:g,children:n})})})});Ka.classes=C0;E0.displayName="@mantine/core/ScrollAreaAutosize";E0.classes=C0;Ka.Autosize=E0;var OT={root:"m_87cf2631"};const b4={__staticSelector:"UnstyledButton"},Fs=Rt((e,t)=>{const n=V("UnstyledButton",b4,e),{className:r,component:o="button",__staticSelector:s,unstyled:i,classNames:l,styles:a,style:c,...u}=n,d=le({name:s,props:n,classes:OT,className:r,style:c,classNames:l,styles:a,unstyled:i});return m.jsx(Y,{...d("root",{focusable:!0}),component:o,ref:t,type:o==="button"?"button":void 0,...u})});Fs.classes=OT;Fs.displayName="@mantine/core/UnstyledButton";var PT={root:"m_515a97f8"};const w4={},T0=Q((e,t)=>{const n=V("VisuallyHidden",w4,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,...c}=n,u=le({name:"VisuallyHidden",classes:PT,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l});return m.jsx(Y,{component:"span",ref:t,...u("root"),...c})});T0.classes=PT;T0.displayName="@mantine/core/VisuallyHidden";var AT={root:"m_1b7284a3"};const S4={},k4=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:kn(t),"--paper-shadow":y0(n)}}),mr=Rt((e,t)=>{const n=V("Paper",S4,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,withBorder:a,vars:c,radius:u,shadow:d,variant:f,mod:p,...h}=n,g=le({name:"Paper",props:n,classes:AT,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:c,varsResolver:k4});return m.jsx(Y,{ref:t,mod:[{"data-with-border":a},p],...g("root"),variant:f,...h})});mr.classes=AT;mr.displayName="@mantine/core/Paper";function cl(e){return jT(e)?(e.nodeName||"").toLowerCase():"#document"}function Ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vr(e){var t;return(t=(jT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function jT(e){return e instanceof Node||e instanceof Ft(e).Node}function Ce(e){return e instanceof Element||e instanceof Ft(e).Element}function Qt(e){return e instanceof HTMLElement||e instanceof Ft(e).HTMLElement}function yg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ft(e).ShadowRoot}function qa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function C4(e){return["table","td","th"].includes(cl(e))}function M0(e){const t=R0(),n=bn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function E4(e){let t=_r(e);for(;Qt(t)&&!jo(t);){if(M0(t))return t;t=_r(t)}return null}function R0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jo(e){return["html","body","#document"].includes(cl(e))}function bn(e){return Ft(e).getComputedStyle(e)}function Uf(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _r(e){if(cl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yg(e)&&e.host||Vr(e);return yg(t)?t.host:t}function IT(e){const t=_r(e);return jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qt(t)&&qa(t)?t:IT(t)}function Pr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=IT(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ft(o);return s?t.concat(i,i.visualViewport||[],qa(o)?o:[],i.frameElement&&n?Pr(i.frameElement):[]):t.concat(o,Pr(o,[],n))}function db(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 ka(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&yg(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function LT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function DT(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function T4(e){return N4()?!1:!fb()&&e.width===0&&e.height===0||fb()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function M4(){return/apple/i.test(navigator.vendor)}function fb(){const e=/android/i;return e.test(LT())||e.test(DT())}function R4(){return LT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function N4(){return DT().includes("jsdom/")}function vg(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function O4(e){return"nativeEvent"in e}function P4(e){return e.matches("html,body")}function ss(e){return(e==null?void 0:e.ownerDocument)||document}function Sh(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 oi(e){return"composedPath"in e?e.composedPath()[0]:e.target}const A4="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function j4(e){return Qt(e)&&e.matches(A4)}const Bn=Math.min,pt=Math.max,qu=Math.round,Ec=Math.floor,Io=e=>({x:e,y:e}),I4={left:"right",right:"left",bottom:"top",top:"bottom"},L4={start:"end",end:"start"};function xg(e,t,n){return pt(e,Bn(t,n))}function Fr(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function ul(e){return e.split("-")[1]}function N0(e){return e==="x"?"y":"x"}function O0(e){return e==="y"?"height":"width"}function zs(e){return["top","bottom"].includes(Hn(e))?"y":"x"}function P0(e){return N0(zs(e))}function D4(e,t,n){n===void 0&&(n=!1);const r=ul(e),o=P0(e),s=O0(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ju(i)),[i,Ju(i)]}function $4(e){const t=Ju(e);return[bg(e),t,bg(t)]}function bg(e){return e.replace(/start|end/g,t=>L4[t])}function _4(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function F4(e,t,n,r){const o=ul(e);let s=_4(Hn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(bg)))),s}function Ju(e){return e.replace(/left|right|bottom|top/g,t=>I4[t])}function z4(e){return{top:0,right:0,bottom:0,left:0,...e}}function A0(e){return typeof e!="number"?z4(e):{top:e,right:e,bottom:e,left:e}}function qi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function pb(e,t,n){let{reference:r,floating:o}=e;const s=zs(t),i=P0(t),l=O0(i),a=Hn(t),c=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(a){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ul(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1);break}return p}const B4=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=pb(c,r,a),f=r,p={},h=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:c,padding:u=0}=Fr(e,t)||{};if(c==null)return{};const d=A0(u),f={x:n,y:r},p=P0(o),h=O0(p),g=await i.getDimensions(c),x=p==="y",y=x?"top":"left",v=x?"bottom":"right",w=x?"clientHeight":"clientWidth",S=s.reference[h]+s.reference[p]-f[p]-s.floating[h],k=f[p]-s.reference[p],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let T=C?C[w]:0;(!T||!await(i.isElement==null?void 0:i.isElement(C)))&&(T=l.floating[w]||s.floating[h]);const E=S/2-k/2,N=T/2-g[h]/2-1,A=Bn(d[y],N),z=Bn(d[v],N),H=A,B=T-g[h]-z,F=T/2-g[h]/2+E,j=xg(H,F,B),P=!a.arrow&&ul(o)!=null&&F!==j&&s.reference[h]/2-(FH<=0)){var N,A;const H=(((N=s.flip)==null?void 0:N.index)||0)+1,B=k[H];if(B)return{data:{index:H,overflows:E},reset:{placement:B}};let F=(A=E.filter(j=>j.overflows[0]<=0).sort((j,P)=>j.overflows[1]-P.overflows[1])[0])==null?void 0:A.placement;if(!F)switch(p){case"bestFit":{var z;const j=(z=E.map(P=>[P.placement,P.overflows.filter(I=>I>0).reduce((I,M)=>I+M,0)]).sort((P,I)=>P[1]-I[1])[0])==null?void 0:z[0];j&&(F=j);break}case"initialPlacement":F=l;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function $T(e){const t=Bn(...e.map(s=>s.left)),n=Bn(...e.map(s=>s.top)),r=pt(...e.map(s=>s.right)),o=pt(...e.map(s=>s.bottom));return{x:t,y:n,width:r-t,height:o-n}}function U4(e){const t=e.slice().sort((o,s)=>o.y-s.y),n=[];let r=null;for(let o=0;or.height/2?n.push([s]):n[n.length-1].push(s),r=s}return n.map(o=>qi($T(o)))}const W4=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:s,strategy:i}=t,{padding:l=2,x:a,y:c}=Fr(e,t),u=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(r.reference))||[]),d=U4(u),f=qi($T(u)),p=A0(l);function h(){if(d.length===2&&d[0].left>d[1].right&&a!=null&&c!=null)return d.find(x=>a>x.left-p.left&&ax.top-p.top&&c=2){if(zs(n)==="y"){const A=d[0],z=d[d.length-1],H=Hn(n)==="top",B=A.top,F=z.bottom,j=H?A.left:z.left,P=H?A.right:z.right,I=P-j,M=F-B;return{top:B,bottom:F,left:j,right:P,width:I,height:M,x:j,y:B}}const x=Hn(n)==="left",y=pt(...d.map(A=>A.right)),v=Bn(...d.map(A=>A.left)),w=d.filter(A=>x?A.left===v:A.right===y),S=w[0].top,k=w[w.length-1].bottom,C=v,T=y,E=T-C,N=k-S;return{top:S,bottom:k,left:C,right:T,width:E,height:N,x:C,y:S}}return f}const g=await s.getElementRects({reference:{getBoundingClientRect:h},floating:r.floating,strategy:i});return o.reference.x!==g.reference.x||o.reference.y!==g.reference.y||o.reference.width!==g.reference.width||o.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};async function K4(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Hn(n),l=ul(n),a=zs(n)==="y",c=["left","top"].includes(i)?-1:1,u=s&&a?-1:1,d=Fr(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),a?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const q4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,a=await K4(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:i}}}}},J4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:x=>{let{x:y,y:v}=x;return{x:y,y:v}}},...a}=Fr(e,t),c={x:n,y:r},u=await j0(t,a),d=zs(Hn(o)),f=N0(d);let p=c[f],h=c[d];if(s){const x=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=p+u[x],w=p-u[y];p=xg(v,p,w)}if(i){const x=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=h+u[x],w=h-u[y];h=xg(v,h,w)}const g=l.fn({...t,[f]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},G4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:c=!0}=Fr(e,t),u={x:n,y:r},d=zs(o),f=N0(d);let p=u[f],h=u[d];const g=Fr(l,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const w=f==="y"?"height":"width",S=s.reference[f]-s.floating[w]+x.mainAxis,k=s.reference[f]+s.reference[w]-x.mainAxis;pk&&(p=k)}if(c){var y,v;const w=f==="y"?"width":"height",S=["top","left"].includes(Hn(o)),k=s.reference[d]-s.floating[w]+(S&&((y=i.offset)==null?void 0:y[d])||0)+(S?0:x.crossAxis),C=s.reference[d]+s.reference[w]+(S?0:((v=i.offset)==null?void 0:v[d])||0)-(S?x.crossAxis:0);hC&&(h=C)}return{[f]:p,[d]:h}}}},Y4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:s}=t,{apply:i=()=>{},...l}=Fr(e,t),a=await j0(t,l),c=Hn(n),u=ul(n),d=zs(n)==="y",{width:f,height:p}=r.floating;let h,g;c==="top"||c==="bottom"?(h=c,g=u===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(g=c,h=u==="end"?"top":"bottom");const x=p-a[h],y=f-a[g],v=!t.middlewareData.shift;let w=x,S=y;if(d){const C=f-a.left-a.right;S=u||v?Bn(y,C):C}else{const C=p-a.top-a.bottom;w=u||v?Bn(x,C):C}if(v&&!u){const C=pt(a.left,0),T=pt(a.right,0),E=pt(a.top,0),N=pt(a.bottom,0);d?S=f-2*(C!==0||T!==0?C+T:pt(a.left,a.right)):w=p-2*(E!==0||N!==0?E+N:pt(a.top,a.bottom))}await i({...t,availableWidth:S,availableHeight:w});const k=await o.getDimensions(s.floating);return f!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function _T(e){const t=bn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=qu(n)!==s||qu(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function I0(e){return Ce(e)?e:e.contextElement}function Pi(e){const t=I0(e);if(!Qt(t))return Io(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=_T(t);let i=(s?qu(n.width):n.width)/r,l=(s?qu(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const X4=Io(0);function FT(e){const t=Ft(e);return!R0()||!t.visualViewport?X4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Q4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ft(e)?!1:t}function Ts(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=I0(e);let i=Io(1);t&&(r?Ce(r)&&(i=Pi(r)):i=Pi(e));const l=Q4(s,n,r)?FT(s):Io(0);let a=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s){const f=Ft(s),p=r&&Ce(r)?Ft(r):r;let h=f,g=h.frameElement;for(;g&&r&&p!==h;){const x=Pi(g),y=g.getBoundingClientRect(),v=bn(g),w=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*x.x,S=y.top+(g.clientTop+parseFloat(v.paddingTop))*x.y;a*=x.x,c*=x.y,u*=x.x,d*=x.y,a+=w,c+=S,h=Ft(g),g=h.frameElement}}return qi({width:u,height:d,x:a,y:c})}const Z4=[":popover-open",":modal"];function L0(e){return Z4.some(t=>{try{return e.matches(t)}catch{return!1}})}function e3(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Vr(r),l=t?L0(t.floating):!1;if(r===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},c=Io(1);const u=Io(0),d=Qt(r);if((d||!d&&!s)&&((cl(r)!=="body"||qa(i))&&(a=Uf(r)),Qt(r))){const f=Ts(r);c=Pi(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x,y:n.y*c.y-a.scrollTop*c.y+u.y}}function t3(e){return Array.from(e.getClientRects())}function zT(e){return Ts(Vr(e)).left+Uf(e).scrollLeft}function n3(e){const t=Vr(e),n=Uf(e),r=e.ownerDocument.body,o=pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+zT(e);const l=-n.scrollTop;return bn(r).direction==="rtl"&&(i+=pt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}function r3(e,t){const n=Ft(e),r=Vr(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;const c=R0();(!c||c&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l,y:a}}function o3(e,t){const n=Ts(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Qt(e)?Pi(e):Io(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=o*s.x,c=r*s.y;return{width:i,height:l,x:a,y:c}}function hb(e,t,n){let r;if(t==="viewport")r=r3(e,n);else if(t==="document")r=n3(Vr(e));else if(Ce(t))r=o3(t,n);else{const o=FT(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return qi(r)}function BT(e,t){const n=_r(e);return n===t||!Ce(n)||jo(n)?!1:bn(n).position==="fixed"||BT(n,t)}function s3(e,t){const n=t.get(e);if(n)return n;let r=Pr(e,[],!1).filter(l=>Ce(l)&&cl(l)!=="body"),o=null;const s=bn(e).position==="fixed";let i=s?_r(e):e;for(;Ce(i)&&!jo(i);){const l=bn(i),a=M0(i);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||qa(i)&&!a&&BT(e,i))?r=r.filter(u=>u!==i):o=l,i=_r(i)}return t.set(e,r),r}function i3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?L0(t)?[]:s3(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((c,u)=>{const d=hb(t,u,o);return c.top=pt(d.top,c.top),c.right=Bn(d.right,c.right),c.bottom=Bn(d.bottom,c.bottom),c.left=pt(d.left,c.left),c},hb(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function l3(e){const{width:t,height:n}=_T(e);return{width:t,height:n}}function a3(e,t,n){const r=Qt(t),o=Vr(t),s=n==="fixed",i=Ts(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=Io(0);if(r||!r&&!s)if((cl(t)!=="body"||qa(o))&&(l=Uf(t)),r){const d=Ts(t,!0,s,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else o&&(a.x=zT(o));const c=i.left+l.scrollLeft-a.x,u=i.top+l.scrollTop-a.y;return{x:c,y:u,width:i.width,height:i.height}}function kh(e){return bn(e).position==="static"}function mb(e,t){return!Qt(e)||bn(e).position==="fixed"?null:t?t(e):e.offsetParent}function HT(e,t){const n=Ft(e);if(L0(e))return n;if(!Qt(e)){let o=_r(e);for(;o&&!jo(o);){if(Ce(o)&&!kh(o))return o;o=_r(o)}return n}let r=mb(e,t);for(;r&&C4(r)&&kh(r);)r=mb(r,t);return r&&jo(r)&&kh(r)&&!M0(r)?n:r||E4(e)||n}const c3=async function(e){const t=this.getOffsetParent||HT,n=this.getDimensions,r=await n(e.floating);return{reference:a3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function u3(e){return bn(e).direction==="rtl"}const d3={convertOffsetParentRelativeRectToViewportRelativeRect:e3,getDocumentElement:Vr,getClippingRect:i3,getOffsetParent:HT,getElementRects:c3,getClientRects:t3,getDimensions:l3,getScale:Pi,isElement:Ce,isRTL:u3};function f3(e,t){let n=null,r;const o=Vr(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p=Ec(u),h=Ec(o.clientWidth-(c+d)),g=Ec(o.clientHeight-(u+f)),x=Ec(c),v={rootMargin:-p+"px "+-h+"px "+-g+"px "+-x+"px",threshold:pt(0,Bn(1,a))||1};let w=!0;function S(k){const C=k[0].intersectionRatio;if(C!==a){if(!w)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return i(!0),s}function p3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=I0(e),u=o||s?[...c?Pr(c):[],...Pr(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=c&&l?f3(c,n):null;let f=-1,p=null;i&&(p=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),c&&!a&&p.observe(c),p.observe(t));let h,g=a?Ts(e):null;a&&x();function x(){const y=Ts(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,h=requestAnimationFrame(x)}return n(),()=>{var y;u.forEach(v=>{o&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,a&&cancelAnimationFrame(h)}}const VT=q4,D0=J4,wg=V4,h3=Y4,gb=H4,Sg=W4,yb=G4,m3=(e,t,n)=>{const r=new Map,o={platform:d3,...n},s={...o.platform,_c:r};return B4(e,t,{...o,platform:s})},UT=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?gb({element:r.current,padding:o}).fn(n):{}:r?gb({element:r,padding:o}).fn(n):{}}}};var nu=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Gu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Gu(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Gu(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function WT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vb(e,t){const n=WT(e);return Math.round(t*n)/n}function xb(e){const t=b.useRef(e);return nu(()=>{t.current=e}),t}function g3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:a,open:c}=e,[u,d]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=b.useState(r);Gu(f,r)||p(r);const[h,g]=b.useState(null),[x,y]=b.useState(null),v=b.useCallback(I=>{I!==C.current&&(C.current=I,g(I))},[]),w=b.useCallback(I=>{I!==T.current&&(T.current=I,y(I))},[]),S=s||h,k=i||x,C=b.useRef(null),T=b.useRef(null),E=b.useRef(u),N=a!=null,A=xb(a),z=xb(o),H=b.useCallback(()=>{if(!C.current||!T.current)return;const I={placement:t,strategy:n,middleware:f};z.current&&(I.platform=z.current),m3(C.current,T.current,I).then(M=>{const R={...M,isPositioned:!0};B.current&&!Gu(E.current,R)&&(E.current=R,sl.flushSync(()=>{d(R)}))})},[f,t,n,z]);nu(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(I=>({...I,isPositioned:!1})))},[c]);const B=b.useRef(!1);nu(()=>(B.current=!0,()=>{B.current=!1}),[]),nu(()=>{if(S&&(C.current=S),k&&(T.current=k),S&&k){if(A.current)return A.current(S,k,H);H()}},[S,k,H,A,N]);const F=b.useMemo(()=>({reference:C,floating:T,setReference:v,setFloating:w}),[v,w]),j=b.useMemo(()=>({reference:S,floating:k}),[S,k]),P=b.useMemo(()=>{const I={position:n,left:0,top:0};if(!j.floating)return I;const M=vb(j.floating,u.x),R=vb(j.floating,u.y);return l?{...I,transform:"translate("+M+"px, "+R+"px)",...WT(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:R}},[n,l,j.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:H,refs:F,elements:j,floatingStyles:P}),[u,H,F,j,P])}const KT={...kS},y3=KT.useInsertionEffect,v3=y3||(e=>e());function si(e){const t=b.useRef(()=>{});return v3(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+x3++;function b3(){const[e,t]=b.useState(()=>bb?wb():void 0);return ur(()=>{e==null&&t(wb())},[]),b.useEffect(()=>{bb=!0},[]),e}const w3=KT.useId,qT=w3||b3;function S3(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const k3=b.createContext(null),C3=b.createContext(null),$0=()=>{var e;return((e=b.useContext(k3))==null?void 0:e.id)||null},_0=()=>b.useContext(C3);function F0(e){return"data-floating-ui-"+e}function Sb(e){const t=b.useRef(e);return ur(()=>{t.current=e}),t}const kb=F0("safe-polygon");function ru(e,t,n){return n&&!vg(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function E3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:s,elements:{domReference:i,floating:l},refs:a}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:f=!1,restMs:p=0,move:h=!0}=t,g=_0(),x=$0(),y=Sb(d),v=Sb(u),w=b.useRef(),S=b.useRef(-1),k=b.useRef(),C=b.useRef(-1),T=b.useRef(!0),E=b.useRef(!1),N=b.useRef(()=>{}),A=b.useCallback(()=>{var F;const j=(F=o.current.openEvent)==null?void 0:F.type;return(j==null?void 0:j.includes("mouse"))&&j!=="mousedown"},[o]);b.useEffect(()=>{if(!c)return;function F(j){let{open:P}=j;P||(clearTimeout(S.current),clearTimeout(C.current),T.current=!0)}return s.on("openchange",F),()=>{s.off("openchange",F)}},[c,s]),b.useEffect(()=>{if(!c||!y.current||!n)return;function F(P){A()&&r(!1,P,"hover")}const j=ss(l).documentElement;return j.addEventListener("mouseleave",F),()=>{j.removeEventListener("mouseleave",F)}},[l,n,r,c,y,A]);const z=b.useCallback(function(F,j,P){j===void 0&&(j=!0),P===void 0&&(P="hover");const I=ru(v.current,"close",w.current);I&&!k.current?(clearTimeout(S.current),S.current=window.setTimeout(()=>r(!1,F,P),I)):j&&(clearTimeout(S.current),r(!1,F,P))},[v,r]),H=b.useCallback(()=>{N.current(),k.current=void 0},[]),B=b.useCallback(()=>{if(E.current){const F=ss(a.floating.current).body;F.style.pointerEvents="",F.removeAttribute(kb),E.current=!1}},[a]);return b.useEffect(()=>{if(!c)return;function F(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function j(M){if(clearTimeout(S.current),T.current=!1,f&&!vg(w.current)||p>0&&!ru(v.current,"open"))return;const R=ru(v.current,"open",w.current);R?S.current=window.setTimeout(()=>{r(!0,M,"hover")},R):r(!0,M,"hover")}function P(M){if(F())return;N.current();const R=ss(l);if(clearTimeout(C.current),y.current){n||clearTimeout(S.current),k.current=y.current({...e,tree:g,x:M.clientX,y:M.clientY,onClose(){B(),H(),z(M,!0,"safe-polygon")}});const W=k.current;R.addEventListener("mousemove",W),N.current=()=>{R.removeEventListener("mousemove",W)};return}(w.current==="touch"?!ka(l,M.relatedTarget):!0)&&z(M)}function I(M){F()||y.current==null||y.current({...e,tree:g,x:M.clientX,y:M.clientY,onClose(){B(),H(),z(M)}})(M)}if(Ce(i)){const M=i;return n&&M.addEventListener("mouseleave",I),l==null||l.addEventListener("mouseleave",I),h&&M.addEventListener("mousemove",j,{once:!0}),M.addEventListener("mouseenter",j),M.addEventListener("mouseleave",P),()=>{n&&M.removeEventListener("mouseleave",I),l==null||l.removeEventListener("mouseleave",I),h&&M.removeEventListener("mousemove",j),M.removeEventListener("mouseenter",j),M.removeEventListener("mouseleave",P)}}},[i,l,c,e,f,p,h,z,H,B,r,n,g,v,y,o]),ur(()=>{var F;if(c&&n&&(F=y.current)!=null&&F.__options.blockPointerEvents&&A()){const P=ss(l).body;if(P.setAttribute(kb,""),P.style.pointerEvents="none",E.current=!0,Ce(i)&&l){var j;const I=i,M=g==null||(j=g.nodesRef.current.find(R=>R.id===x))==null||(j=j.context)==null?void 0:j.elements.floating;return M&&(M.style.pointerEvents=""),I.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{I.style.pointerEvents="",l.style.pointerEvents=""}}}},[c,n,x,l,i,g,y,A]),ur(()=>{n||(w.current=void 0,H(),B())},[n,H,B]),b.useEffect(()=>()=>{H(),clearTimeout(S.current),clearTimeout(C.current),B()},[c,i,H,B]),b.useMemo(()=>{if(!c)return{};function F(j){w.current=j.pointerType}return{reference:{onPointerDown:F,onPointerEnter:F,onMouseMove(j){function P(){T.current||r(!0,j.nativeEvent,"hover")}f&&!vg(w.current)||n||p===0||(clearTimeout(C.current),w.current==="touch"?P():C.current=window.setTimeout(P,p))}},floating:{onMouseEnter(){clearTimeout(S.current)},onMouseLeave(j){z(j.nativeEvent,!1)}}}},[c,f,n,p,r,z])}const kg=()=>{},JT=b.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:kg,setState:kg,isInstantPhase:!1}),GT=()=>b.useContext(JT);function T3(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,s]=b.useReducer((a,c)=>({...a,...c}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),i=b.useRef(null),l=b.useCallback(a=>{s({currentId:a})},[]);return ur(()=>{o.currentId?i.current===null?i.current=o.currentId:s({isInstantPhase:!0}):(s({isInstantPhase:!1}),i.current=null)},[o.currentId]),b.createElement(JT.Provider,{value:b.useMemo(()=>({...o,setState:s,setCurrentId:l}),[o,l])},t)}function M3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:s}=t,i=s??o,l=GT(),{currentId:a,setCurrentId:c,initialDelay:u,setState:d,timeoutMs:f}=l;return ur(()=>{a&&(d({delay:{open:1,close:ru(u,"close")}}),a!==i&&r(!1))},[i,r,d,a,u]),ur(()=>{function p(){r(!1),d({delay:u,currentId:null})}if(a&&!n&&a===i){if(f){const h=window.setTimeout(p,f);return()=>{clearTimeout(h)}}p()}},[n,d,a,i,r,u,f]),ur(()=>{c===kg||!n||c(i)},[n,c,i]),l}function Ch(e,t){let n=e.filter(o=>{var s;return o.parentId===t&&((s=o.context)==null?void 0:s.open)}),r=n;for(;r.length;)r=e.filter(o=>{var s;return(s=r)==null?void 0:s.some(i=>{var l;return o.parentId===i.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}const R3={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},N3={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Cb=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function O3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,nodeId:o,elements:{reference:s,domReference:i,floating:l},dataRef:a}=e,{enabled:c=!0,escapeKey:u=!0,outsidePress:d=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:h="pointerdown",ancestorScroll:g=!1,bubbles:x,capture:y}=t,v=_0(),w=si(typeof d=="function"?d:()=>!1),S=typeof d=="function"?w:d,k=b.useRef(!1),C=b.useRef(!1),{escapeKey:T,outsidePress:E}=Cb(x),{escapeKey:N,outsidePress:A}=Cb(y),z=si(j=>{if(!n||!c||!u||j.key!=="Escape")return;const P=v?Ch(v.nodesRef.current,o):[];if(!T&&(j.stopPropagation(),P.length>0)){let I=!0;if(P.forEach(M=>{var R;if((R=M.context)!=null&&R.open&&!M.context.dataRef.current.__escapeKeyBubbles){I=!1;return}}),!I)return}r(!1,O4(j)?j.nativeEvent:j,"escape-key")}),H=si(j=>{var P;const I=()=>{var M;z(j),(M=oi(j))==null||M.removeEventListener("keydown",I)};(P=oi(j))==null||P.addEventListener("keydown",I)}),B=si(j=>{const P=k.current;k.current=!1;const I=C.current;if(C.current=!1,f==="click"&&I||P||typeof S=="function"&&!S(j))return;const M=oi(j),R="["+F0("inert")+"]",D=ss(l).querySelectorAll(R);let W=Ce(M)?M:null;for(;W&&!jo(W);){const ne=_r(W);if(jo(ne)||!Ce(ne))break;W=ne}if(D.length&&Ce(M)&&!P4(M)&&!ka(M,l)&&Array.from(D).every(ne=>!ka(W,ne)))return;if(Qt(M)&&l){const ne=M.clientWidth>0&&M.scrollWidth>M.clientWidth,ee=M.clientHeight>0&&M.scrollHeight>M.clientHeight;let ce=ee&&j.offsetX>M.clientWidth;if(ee&&bn(M).direction==="rtl"&&(ce=j.offsetX<=M.offsetWidth-M.clientWidth),ce||ne&&j.offsetY>M.clientHeight)return}const Z=v&&Ch(v.nodesRef.current,o).some(ne=>{var ee;return Sh(j,(ee=ne.context)==null?void 0:ee.elements.floating)});if(Sh(j,l)||Sh(j,i)||Z)return;const fe=v?Ch(v.nodesRef.current,o):[];if(fe.length>0){let ne=!0;if(fe.forEach(ee=>{var ce;if((ce=ee.context)!=null&&ce.open&&!ee.context.dataRef.current.__outsidePressBubbles){ne=!1;return}}),!ne)return}r(!1,j,"outside-press")}),F=si(j=>{var P;const I=()=>{var M;B(j),(M=oi(j))==null||M.removeEventListener(f,I)};(P=oi(j))==null||P.addEventListener(f,I)});return b.useEffect(()=>{if(!n||!c)return;a.current.__escapeKeyBubbles=T,a.current.__outsidePressBubbles=E;function j(M){r(!1,M,"ancestor-scroll")}const P=ss(l);u&&P.addEventListener("keydown",N?H:z,N),S&&P.addEventListener(f,A?F:B,A);let I=[];return g&&(Ce(i)&&(I=Pr(i)),Ce(l)&&(I=I.concat(Pr(l))),!Ce(s)&&s&&s.contextElement&&(I=I.concat(Pr(s.contextElement)))),I=I.filter(M=>{var R;return M!==((R=P.defaultView)==null?void 0:R.visualViewport)}),I.forEach(M=>{M.addEventListener("scroll",j,{passive:!0})}),()=>{u&&P.removeEventListener("keydown",N?H:z,N),S&&P.removeEventListener(f,A?F:B,A),I.forEach(M=>{M.removeEventListener("scroll",j)})}},[a,l,i,s,u,S,f,n,r,g,c,T,E,z,N,H,B,A,F]),b.useEffect(()=>{k.current=!1},[S,f]),b.useMemo(()=>c?{reference:{onKeyDown:z,[R3[h]]:j=>{p&&r(!1,j.nativeEvent,"reference-press")}},floating:{onKeyDown:z,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[N3[f]]:()=>{k.current=!0}}}:{},[c,p,f,h,r,z])}function z0(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[s,i]=b.useState(null),[l,a]=b.useState(null),u=((t=e.elements)==null?void 0:t.reference)||s;ur(()=>{u&&(g.current=u)},[u]);const d=g3({...e,elements:{...e.elements,...l&&{reference:l}}}),f=_0(),p=$0()!=null,h=si((E,N,A)=>{x.current.openEvent=E?N:void 0,y.emit("openchange",{open:E,event:N,reason:A,nested:p}),r==null||r(E,N,A)}),g=b.useRef(null),x=b.useRef({}),y=b.useState(()=>S3())[0],v=qT(),w=b.useCallback(E=>{const N=Ce(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;a(N),d.refs.setReference(N)},[d.refs]),S=b.useCallback(E=>{(Ce(E)||E===null)&&(g.current=E,i(E)),(Ce(d.refs.reference.current)||d.refs.reference.current===null||E!==null&&!Ce(E))&&d.refs.setReference(E)},[d.refs]),k=b.useMemo(()=>({...d.refs,setReference:S,setPositionReference:w,domReference:g}),[d.refs,S,w]),C=b.useMemo(()=>({...d.elements,domReference:u}),[d.elements,u]),T=b.useMemo(()=>({...d,refs:k,elements:C,dataRef:x,nodeId:o,floatingId:v,events:y,open:n,onOpenChange:h}),[d,o,v,y,n,h,k,C]);return ur(()=>{const E=f==null?void 0:f.nodesRef.current.find(N=>N.id===o);E&&(E.context=T)}),b.useMemo(()=>({...d,context:T,refs:k,elements:C}),[d,k,C,T])}function P3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,refs:s,elements:{domReference:i}}=e,{enabled:l=!0,visibleOnly:a=!0}=t,c=b.useRef(!1),u=b.useRef(),d=b.useRef(!0);return b.useEffect(()=>{if(!l)return;const f=Ft(i);function p(){!n&&Qt(i)&&i===db(ss(i))&&(c.current=!0)}function h(){d.current=!0}return f.addEventListener("blur",p),f.addEventListener("keydown",h,!0),()=>{f.removeEventListener("blur",p),f.removeEventListener("keydown",h,!0)}},[i,n,l]),b.useEffect(()=>{if(!l)return;function f(p){let{reason:h}=p;(h==="reference-press"||h==="escape-key")&&(c.current=!0)}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,l]),b.useEffect(()=>()=>{clearTimeout(u.current)},[]),b.useMemo(()=>l?{reference:{onPointerDown(f){T4(f.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const p=oi(f.nativeEvent);if(a&&Ce(p))try{if(M4()&&R4())throw Error();if(!p.matches(":focus-visible"))return}catch{if(!d.current&&!j4(p))return}r(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const p=f.relatedTarget,h=Ce(p)&&p.hasAttribute(F0("focus-guard"))&&p.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{const g=db(i?i.ownerDocument:document);!p&&g===i||ka(s.floating.current,g)||ka(i,g)||h||r(!1,f.nativeEvent,"focus")})}}}:{},[l,a,i,s,r])}const Eb="active",Tb="selected";function Eh(e,t,n){const r=new Map,o=n==="item";let s=e;if(o&&e){const{[Eb]:i,[Tb]:l,...a}=e;s=a}return{...n==="floating"&&{tabIndex:-1},...s,...t.map(i=>{const l=i?i[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((i,l)=>(l&&Object.entries(l).forEach(a=>{let[c,u]=a;if(!(o&&[Eb,Tb].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof u=="function"){var d;(d=r.get(c))==null||d.push(u),i[c]=function(){for(var f,p=arguments.length,h=new Array(p),g=0;gx(...h)).find(x=>x!==void 0)}}}else i[c]=u}),i),{})}}function A3(e){e===void 0&&(e=[]);const t=e,n=b.useCallback(s=>Eh(s,e,"reference"),t),r=b.useCallback(s=>Eh(s,e,"floating"),t),o=b.useCallback(s=>Eh(s,e,"item"),e.map(s=>s==null?void 0:s.item));return b.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}const j3=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function I3(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:s=!0,role:i="dialog"}=t,l=(n=j3.get(i))!=null?n:i,a=qT(),u=$0()!=null;return b.useMemo(()=>{if(!s)return{};const d={id:o,...l&&{role:l}};return l==="tooltip"||i==="label"?{reference:{["aria-"+(i==="label"?"labelledby":"describedby")]:r?o:void 0},floating:d}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":l==="alertdialog"?"dialog":l,"aria-controls":r?o:void 0,...l==="listbox"&&{role:"combobox"},...l==="menu"&&{id:a},...l==="menu"&&u&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},floating:{...d,...l==="menu"&&{"aria-labelledby":a}},item(f){let{active:p,selected:h}=f;const g={role:"option",...p&&{id:o+"-option"}};switch(i){case"select":return{...g,"aria-selected":p&&h};case"combobox":return{...g,...p&&{"aria-selected":!0}}}return{}}}},[s,i,l,r,o,a,u])}function YT(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,r]=t.split("-"),o=n==="right"?"left":"right";return r===void 0?o:`${o}-${r}`}return t}function Mb(e,t,n,r){return e==="center"||r==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function Rb(e,t,n,r,o){return e==="center"||r==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:n}:e==="start"?{[o==="ltr"?"left":"right"]:n}:{}}const L3={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function D3({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:s,arrowY:i,dir:l}){const[a,c="center"]=e.split("-"),u={width:O(t),height:O(t),transform:"rotate(45deg)",position:"absolute",[L3[a]]:O(r)},d=O(-t/2);return a==="left"?{...u,...Mb(c,i,n,o),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent"}:a==="right"?{...u,...Mb(c,i,n,o),left:d,borderRightColor:"transparent",borderTopColor:"transparent"}:a==="top"?{...u,...Rb(c,s,n,o,l),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent"}:a==="bottom"?{...u,...Rb(c,s,n,o,l),top:d,borderBottomColor:"transparent",borderRightColor:"transparent"}:{}}const B0=b.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,visible:s,arrowX:i,arrowY:l,style:a,...c},u)=>{const{dir:d}=Hf();return s?m.jsx("div",{...c,ref:u,style:{...a,...D3({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,dir:d,arrowX:i,arrowY:l})}}):null});B0.displayName="@mantine/core/FloatingArrow";const[$3,XT]=Bo("Popover component was not found in the tree");function Wf({children:e,active:t=!0,refProp:n="ref"}){const r=UD(t),o=Mt(r,e==null?void 0:e.ref);return Ds(e)?b.cloneElement(e,{[n]:o}):e}function QT(e){return m.jsx(T0,{tabIndex:-1,"data-autofocus":!0,...e})}Wf.displayName="@mantine/core/FocusTrap";QT.displayName="@mantine/core/FocusTrapInitialFocus";Wf.InitialFocus=QT;function _3(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}const F3={},ZT=b.forwardRef((e,t)=>{const{children:n,target:r,...o}=V("Portal",F3,e),[s,i]=b.useState(!1),l=b.useRef(null);return Ua(()=>(i(!0),l.current=r?typeof r=="string"?document.querySelector(r):r:_3(o),nT(t,l.current),!r&&l.current&&document.body.appendChild(l.current),()=>{!r&&l.current&&document.body.removeChild(l.current)}),[r]),!s||!l.current?null:sl.createPortal(m.jsx(m.Fragment,{children:n}),l.current)});ZT.displayName="@mantine/core/Portal";function Ja({withinPortal:e=!0,children:t,...n}){return e?m.jsx(ZT,{...n,children:t}):m.jsx(m.Fragment,{children:t})}Ja.displayName="@mantine/core/OptionalPortal";const Tl=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${O(e==="bottom"?10:-10)})`},transitionProperty:"transform, opacity"}),Tc={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${O(30)}`},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${O(-30)}`},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${O(30)}`},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${O(-30)}`},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(${O(-20)}) 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(${O(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${O(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${O(20)}) 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:{...Tl("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Tl("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Tl("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Tl("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Tl("top"),common:{transformOrigin:"top right"}}},Nb={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function z3({transition:e,state:t,duration:n,timingFunction:r}){const o={transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e=="string"?e in Tc?{transitionProperty:Tc[e].transitionProperty,...o,...Tc[e].common,...Tc[e][Nb[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[Nb[t]]}}function B3({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:s,onEntered:i,onExited:l}){const a=Wn(),c=sT(),u=a.respectReducedMotion?c:!1,[d,f]=b.useState(u?0:e),[p,h]=b.useState(r?"entered":"exited"),g=b.useRef(-1),x=b.useRef(-1),y=v=>{const w=v?o:s,S=v?i:l;window.clearTimeout(g.current);const k=u?0:v?e:t;f(k),k===0?(typeof w=="function"&&w(),typeof S=="function"&&S(),h(v?"entered":"exited")):x.current=requestAnimationFrame(()=>{TC.flushSync(()=>{h(v?"pre-entering":"pre-exiting")}),x.current=requestAnimationFrame(()=>{typeof w=="function"&&w(),h(v?"entering":"exiting"),g.current=window.setTimeout(()=>{typeof S=="function"&&S(),h(v?"entered":"exited")},k)})})};return dr(()=>{y(r)},[r]),b.useEffect(()=>()=>{window.clearTimeout(g.current),cancelAnimationFrame(x.current)},[]),{transitionDuration:d,transitionStatus:p,transitionTimingFunction:n||"ease"}}function Bs({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:o,children:s,timingFunction:i="ease",onExit:l,onEntered:a,onEnter:c,onExited:u}){const{transitionDuration:d,transitionStatus:f,transitionTimingFunction:p}=B3({mounted:o,exitDuration:r,duration:n,timingFunction:i,onExit:l,onEntered:a,onEnter:c,onExited:u});return d===0?o?m.jsx(m.Fragment,{children:s({})}):e?s({display:"none"}):null:f==="exited"?e?s({display:"none"}):null:m.jsx(m.Fragment,{children:s(z3({transition:t,duration:d,state:f,timingFunction:p}))})}Bs.displayName="@mantine/core/Transition";var eM={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const H3={},H0=Q((e,t)=>{var x,y,v,w;const n=V("PopoverDropdown",H3,e),{className:r,style:o,vars:s,children:i,onKeyDownCapture:l,variant:a,classNames:c,styles:u,...d}=n,f=XT(),p=XE({opened:f.opened,shouldReturnFocus:f.returnFocus}),h=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},g=Mt(t,f.floating);return f.disabled?null:m.jsx(Ja,{...f.portalProps,withinPortal:f.withinPortal,children:m.jsx(Bs,{mounted:f.opened,...f.transitionProps,transition:((x=f.transitionProps)==null?void 0:x.transition)||"fade",duration:((y=f.transitionProps)==null?void 0:y.duration)??150,keepMounted:f.keepMounted,exitDuration:typeof((v=f.transitionProps)==null?void 0:v.exitDuration)=="number"?f.transitionProps.exitDuration:(w=f.transitionProps)==null?void 0:w.duration,children:S=>m.jsx(Wf,{active:f.trapFocus,children:m.jsxs(Y,{...h,...d,variant:a,ref:g,onKeyDownCapture:OD(f.onClose,{active:f.closeOnEscape,onTrigger:p,onKeyDown:l}),"data-position":f.placement,...f.getStyles("dropdown",{className:r,props:n,classNames:c,styles:u,style:[{...S,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:O(f.width)},o]}),children:[i,m.jsx(B0,{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})})]})})})})});H0.classes=eM;H0.displayName="@mantine/core/PopoverDropdown";const V3={refProp:"ref",popupType:"dialog"},tM=Q((e,t)=>{const{children:n,refProp:r,popupType:o,...s}=V("PopoverTarget",V3,e);if(!Ds(n))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=XT(),a=Mt(l.reference,n.ref,t),c=l.withRoles?{"aria-haspopup":o,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return b.cloneElement(n,{...i,...c,...l.targetProps,className:at(l.targetProps.className,i.className,n.props.className),[r]:a,...l.controlled?null:{onClick:l.onToggle}})});tM.displayName="@mantine/core/PopoverTarget";function nM({opened:e,floating:t,position:n,positionDependencies:r}){const[o,s]=b.useState(0);b.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return p3(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,o,n]),dr(()=>{t.update()},r),dr(()=>{s(i=>i+1)},[e])}function U3(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 W3(e,t){const n=U3(e.middlewares),r=[VT(e.offset)];return n.shift&&r.push(D0(typeof n.shift=="boolean"?{limiter:yb(),padding:5}:{limiter:yb(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?wg():wg(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?Sg():Sg(n.inline)),r.push(UT({element:e.arrowRef,padding:e.arrowOffset})),(n.size||e.width==="target")&&r.push(h3({...typeof n.size=="boolean"?{}:n.size,apply({rects:o,availableWidth:s,availableHeight:i}){var c;const a=((c=t().refs.floating.current)==null?void 0:c.style)??{};n.size&&Object.assign(a,{maxWidth:`${s}px`,maxHeight:`${i}px`}),e.width==="target"&&Object.assign(a,{width:`${o.reference.width}px`})}})),r}function K3(e){const[t,n]=wa({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=()=>{var i;t&&((i=e.onClose)==null||i.call(e),n(!1))},o=()=>{var i,l;t?((i=e.onClose)==null||i.call(e),n(!1)):((l=e.onOpen)==null||l.call(e),n(!0))},s=z0({strategy:e.strategy,placement:e.position,middleware:W3(e,()=>s)});return nM({opened:e.opened,position:e.position,positionDependencies:e.positionDependencies||[],floating:s}),dr(()=>{var i;(i=e.onPositionChange)==null||i.call(e,s.placement)},[s.placement]),dr(()=>{var i,l;e.opened?(l=e.onOpen)==null||l.call(e):(i=e.onClose)==null||i.call(e)},[e.opened]),{floating:s,controlled:typeof e.opened=="boolean",opened:t,onClose:r,onToggle:o}}const q3={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,clickOutsideEvents:["mousedown","touchstart"],zIndex:$s("popover"),__staticSelector:"Popover",width:"max-content"},J3=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:kn(t),"--popover-shadow":y0(n)}});function zt(e){var Ot,qo,ml,Rn,Js,xr;const t=V("Popover",q3,e),{children:n,position:r,offset:o,onPositionChange:s,positionDependencies:i,opened:l,transitionProps:a,width:c,middlewares:u,withArrow:d,arrowSize:f,arrowOffset:p,arrowRadius:h,arrowPosition:g,unstyled:x,classNames:y,styles:v,closeOnClickOutside:w,withinPortal:S,portalProps:k,closeOnEscape:C,clickOutsideEvents:T,trapFocus:E,onClose:N,onOpen:A,onChange:z,zIndex:H,radius:B,shadow:F,id:j,defaultOpened:P,__staticSelector:I,withRoles:M,disabled:R,returnFocus:D,variant:W,keepMounted:Z,vars:fe,floatingStrategy:ne,...ee}=t,ce=le({name:I,props:t,classes:eM,classNames:y,styles:v,unstyled:x,rootSelector:"dropdown",vars:fe,varsResolver:J3}),Ie=b.useRef(null),[ze,Mn]=b.useState(null),[gr,Kr]=b.useState(null),{dir:Ko}=Hf(),yr=al(j),Le=K3({middlewares:u,width:c,position:YT(Ko,r),offset:typeof o=="number"?o+(d?f/2:0):o,arrowRef:Ie,arrowOffset:p,onPositionChange:s,positionDependencies:i,opened:l,defaultOpened:P,onChange:z,onOpen:A,onClose:N,strategy:ne});ID(()=>w&&Le.onClose(),T,[ze,gr]);const vr=b.useCallback(Qe=>{Mn(Qe),Le.floating.refs.setReference(Qe)},[Le.floating.refs.setReference]),qs=b.useCallback(Qe=>{Kr(Qe),Le.floating.refs.setFloating(Qe)},[Le.floating.refs.setFloating]);return m.jsx($3,{value:{returnFocus:D,disabled:R,controlled:Le.controlled,reference:vr,floating:qs,x:Le.floating.x,y:Le.floating.y,arrowX:(ml=(qo=(Ot=Le.floating)==null?void 0:Ot.middlewareData)==null?void 0:qo.arrow)==null?void 0:ml.x,arrowY:(xr=(Js=(Rn=Le.floating)==null?void 0:Rn.middlewareData)==null?void 0:Js.arrow)==null?void 0:xr.y,opened:Le.opened,arrowRef:Ie,transitionProps:a,width:c,withArrow:d,arrowSize:f,arrowOffset:p,arrowRadius:h,arrowPosition:g,placement:Le.floating.placement,trapFocus:E,withinPortal:S,portalProps:k,zIndex:H,radius:B,shadow:F,closeOnEscape:C,onClose:Le.onClose,onToggle:Le.onToggle,getTargetId:()=>`${yr}-target`,getDropdownId:()=>`${yr}-dropdown`,withRoles:M,targetProps:ee,__staticSelector:I,classNames:y,styles:v,unstyled:x,variant:W,keepMounted:Z,getStyles:ce},children:n})}zt.Target=tM;zt.Dropdown=H0;zt.displayName="@mantine/core/Popover";zt.extend=e=>e;var Dn={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const G3=b.forwardRef(({className:e,...t},n)=>m.jsxs(Y,{component:"span",className:at(Dn.barsLoader,e),...t,ref:n,children:[m.jsx("span",{className:Dn.bar}),m.jsx("span",{className:Dn.bar}),m.jsx("span",{className:Dn.bar})]})),Y3=b.forwardRef(({className:e,...t},n)=>m.jsxs(Y,{component:"span",className:at(Dn.dotsLoader,e),...t,ref:n,children:[m.jsx("span",{className:Dn.dot}),m.jsx("span",{className:Dn.dot}),m.jsx("span",{className:Dn.dot})]})),X3=b.forwardRef(({className:e,...t},n)=>m.jsx(Y,{component:"span",className:at(Dn.ovalLoader,e),...t,ref:n})),rM={bars:G3,oval:X3,dots:Y3},Q3={loaders:rM,type:"oval"},Z3=(e,{size:t,color:n})=>({root:{"--loader-size":Ee(t,"loader-size"),"--loader-color":n?Es(n,e):void 0}}),Ga=Q((e,t)=>{const n=V("Loader",Q3,e),{size:r,color:o,type:s,vars:i,className:l,style:a,classNames:c,styles:u,unstyled:d,loaders:f,variant:p,children:h,...g}=n,x=le({name:"Loader",props:n,classes:Dn,className:l,style:a,classNames:c,styles:u,unstyled:d,vars:i,varsResolver:Z3});return h?m.jsx(Y,{...x("root"),ref:t,...g,children:h}):m.jsx(Y,{...x("root"),ref:t,component:f[s],variant:p,size:r,...g})});Ga.defaultLoaders=rM;Ga.classes=Dn;Ga.displayName="@mantine/core/Loader";var Kf={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21"};const Ob={orientation:"horizontal"},e_=(e,{borderWidth:t})=>({group:{"--ai-border-width":O(t)}}),V0=Q((e,t)=>{const n=V("ActionIconGroup",Ob,e),{className:r,style:o,classNames:s,styles:i,unstyled:l,orientation:a,vars:c,borderWidth:u,variant:d,mod:f,...p}=V("ActionIconGroup",Ob,e),h=le({name:"ActionIconGroup",props:n,classes:Kf,className:r,style:o,classNames:s,styles:i,unstyled:l,vars:c,varsResolver:e_,rootSelector:"group"});return m.jsx(Y,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":a},f],role:"group",...p})});V0.classes=Kf;V0.displayName="@mantine/core/ActionIconGroup";const t_={},n_=(e,{size:t,radius:n,variant:r,gradient:o,color:s,autoContrast:i})=>{const l=e.variantColorResolver({color:s||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:i});return{root:{"--ai-size":Ee(t,"ai-size"),"--ai-radius":n===void 0?void 0:kn(n),"--ai-bg":s||r?l.background:void 0,"--ai-hover":s||r?l.hover:void 0,"--ai-hover-color":s||r?l.hoverColor:void 0,"--ai-color":l.color,"--ai-bd":s||r?l.border:void 0}}},so=Rt((e,t)=>{const n=V("ActionIcon",t_,e),{className:r,unstyled:o,variant:s,classNames:i,styles:l,style:a,loading:c,loaderProps:u,size:d,color:f,radius:p,__staticSelector:h,gradient:g,vars:x,children:y,disabled:v,"data-disabled":w,autoContrast:S,mod:k,...C}=n,T=le({name:["ActionIcon",h],props:n,className:r,style:a,classes:Kf,classNames:i,styles:l,unstyled:o,vars:x,varsResolver:n_});return m.jsxs(Fs,{...T("root",{active:!v&&!c&&!w}),...C,unstyled:o,variant:s,size:d,disabled:v||c,ref:t,mod:[{loading:c,disabled:v||w},k],children:[m.jsx(Bs,{mounted:!!c,transition:"slide-down",duration:150,children:E=>m.jsx(Y,{component:"span",...T("loader",{style:E}),"aria-hidden":!0,children:m.jsx(Ga,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...u})})}),m.jsx(Y,{component:"span",mod:{loading:c},...T("icon"),children:y})]})});so.classes=Kf;so.displayName="@mantine/core/ActionIcon";so.Group=V0;const oM=b.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...n},r)=>m.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:r,...n,children:m.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"})}));oM.displayName="@mantine/core/CloseIcon";var sM={root:"m_86a44da5","root--subtle":"m_220c80f2"};const r_={variant:"subtle"},o_=(e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":Ee(t,"cb-size"),"--cb-radius":n===void 0?void 0:kn(n),"--cb-icon-size":O(r)}}),qf=Rt((e,t)=>{const n=V("CloseButton",r_,e),{iconSize:r,children:o,vars:s,radius:i,className:l,classNames:a,style:c,styles:u,unstyled:d,"data-disabled":f,disabled:p,variant:h,icon:g,mod:x,...y}=n,v=le({name:"CloseButton",props:n,className:l,style:c,classes:sM,classNames:a,styles:u,unstyled:d,vars:s,varsResolver:o_});return m.jsxs(Fs,{ref:t,...y,unstyled:d,variant:h,disabled:p,mod:[{disabled:p||f},x],...v("root",{variant:h,active:!p&&!f}),children:[g||m.jsx(oM,{}),o]})});qf.classes=sM;qf.displayName="@mantine/core/CloseButton";function s_(e){return b.Children.toArray(e).filter(Boolean)}var iM={root:"m_4081bf90"};const i_={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},l_=(e,{grow:t,preventGrowOverflow:n,gap:r,align:o,justify:s,wrap:i},{childWidth:l})=>({root:{"--group-child-width":t&&n?l:void 0,"--group-gap":sr(r),"--group-align":o,"--group-justify":s,"--group-wrap":i}}),Hs=Q((e,t)=>{const n=V("Group",i_,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,children:a,gap:c,align:u,justify:d,wrap:f,grow:p,preventGrowOverflow:h,vars:g,variant:x,__size:y,mod:v,...w}=n,S=s_(a),k=S.length,C=sr(c??"md"),E={childWidth:`calc(${100/k}% - (${C} - ${C} / ${k}))`},N=le({name:"Group",props:n,stylesCtx:E,className:o,style:s,classes:iM,classNames:r,styles:i,unstyled:l,vars:g,varsResolver:l_});return m.jsx(Y,{...N("root"),ref:t,variant:x,mod:[{grow:p},v],size:y,...w,children:S})});Hs.classes=iM;Hs.displayName="@mantine/core/Group";var lM={root:"m_9814e45f"};const a_={zIndex:$s("modal")},c_=(e,{gradient:t,color:n,backgroundOpacity:r,blur:o,radius:s,zIndex:i})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Yn(n||"#000",r??.6)||void 0,"--overlay-filter":o?`blur(${O(o)})`:void 0,"--overlay-radius":s===void 0?void 0:kn(s),"--overlay-z-index":i==null?void 0:i.toString()}}),U0=Rt((e,t)=>{const n=V("Overlay",a_,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,fixed:c,center:u,children:d,radius:f,zIndex:p,gradient:h,blur:g,color:x,backgroundOpacity:y,mod:v,...w}=n,S=le({name:"Overlay",props:n,classes:lM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:c_});return m.jsx(Y,{ref:t,...S("root"),mod:[{center:u,fixed:c},v],...w,children:d})});U0.classes=lM;U0.displayName="@mantine/core/Overlay";const[u_,Ur]=Bo("ModalBase component was not found in tree");function d_({opened:e,transitionDuration:t}){const[n,r]=b.useState(e),o=b.useRef(),i=sT()?0:t;return b.useEffect(()=>(e?(r(!0),window.clearTimeout(o.current)):i===0?r(!1):o.current=window.setTimeout(()=>r(!1),i),()=>window.clearTimeout(o.current)),[e,i]),n}function f_({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:o,onClose:s,returnFocus:i}){const l=al(e),[a,c]=b.useState(!1),[u,d]=b.useState(!1),f=typeof(t==null?void 0:t.duration)=="number"?t==null?void 0:t.duration:200,p=d_({opened:n,transitionDuration:f});return tT("keydown",h=>{var g;h.key==="Escape"&&o&&n&&((g=h.target)==null?void 0:g.getAttribute("data-mantine-stop-propagation"))!=="true"&&s()},{capture:!0}),XE({opened:n,shouldReturnFocus:r&&i}),{_id:l,titleMounted:a,bodyMounted:u,shouldLockScroll:p,setTitleMounted:c,setBodyMounted:d}}const p_=b.forwardRef(({keepMounted:e,opened:t,onClose:n,id:r,transitionProps:o,trapFocus:s,closeOnEscape:i,returnFocus:l,closeOnClickOutside:a,withinPortal:c,portalProps:u,lockScroll:d,children:f,zIndex:p,shadow:h,padding:g,__vars:x,unstyled:y,removeScrollProps:v,...w},S)=>{const{_id:k,titleMounted:C,bodyMounted:T,shouldLockScroll:E,setTitleMounted:N,setBodyMounted:A}=f_({id:r,transitionProps:o,opened:t,trapFocus:s,closeOnEscape:i,onClose:n,returnFocus:l});return m.jsx(Ja,{...u,withinPortal:c,children:m.jsx(u_,{value:{opened:t,onClose:n,closeOnClickOutside:a,transitionProps:{...o,keepMounted:e},getTitleId:()=>`${k}-title`,getBodyId:()=>`${k}-body`,titleMounted:C,bodyMounted:T,setTitleMounted:N,setBodyMounted:A,trapFocus:s,closeOnEscape:i,zIndex:p,unstyled:y},children:m.jsx(ED,{enabled:E&&d,...v,children:m.jsx(Y,{ref:S,...w,__vars:{...x,"--mb-z-index":(p||$s("modal")).toString(),"--mb-shadow":y0(h),"--mb-padding":sr(g)},children:f})})})})});function h_(){const e=Ur();return b.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Ji={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const aM=b.forwardRef(({className:e,...t},n)=>{const r=h_(),o=Ur();return m.jsx(Y,{ref:n,...t,id:r,className:at({[Ji.body]:!o.unstyled},e)})});aM.displayName="@mantine/core/ModalBaseBody";const cM=b.forwardRef(({className:e,onClick:t,...n},r)=>{const o=Ur();return m.jsx(qf,{ref:r,...n,onClick:s=>{o.onClose(),t==null||t(s)},className:at({[Ji.close]:!o.unstyled},e),unstyled:o.unstyled})});cM.displayName="@mantine/core/ModalBaseCloseButton";const m_=b.forwardRef(({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:o,...s},i)=>{const l=Ur();return m.jsx(Bs,{mounted:l.opened,transition:"pop",...l.transitionProps,...e,children:a=>m.jsx("div",{...n,className:at({[Ji.inner]:!l.unstyled},n.className),children:m.jsx(Wf,{active:l.opened&&l.trapFocus,children:m.jsx(mr,{...s,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":l.bodyMounted?l.getBodyId():void 0,"aria-labelledby":l.titleMounted?l.getTitleId():void 0,ref:i,style:[o,a],className:at({[Ji.content]:!l.unstyled},t),unstyled:l.unstyled,children:s.children})})})})}),uM=b.forwardRef(({className:e,...t},n)=>{const r=Ur();return m.jsx(Y,{component:"header",ref:n,className:at({[Ji.header]:!r.unstyled},e),...t})});uM.displayName="@mantine/core/ModalBaseHeader";const g_={duration:200,timingFunction:"ease",transition:"fade"};function y_(e){const t=Ur();return{...g_,...t.transitionProps,...e}}const dM=b.forwardRef(({onClick:e,transitionProps:t,style:n,...r},o)=>{const s=Ur(),i=y_(t);return m.jsx(Bs,{mounted:s.opened,...i,transition:"fade",children:l=>m.jsx(U0,{ref:o,fixed:!0,style:[n,l],zIndex:s.zIndex,unstyled:s.unstyled,onClick:a=>{e==null||e(a),s.closeOnClickOutside&&s.onClose()},...r})})});dM.displayName="@mantine/core/ModalBaseOverlay";function v_(){const e=Ur();return b.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const fM=b.forwardRef(({className:e,...t},n)=>{const r=v_(),o=Ur();return m.jsx(Y,{component:"h2",ref:n,className:at({[Ji.title]:!o.unstyled},e),...t,id:r})});fM.displayName="@mantine/core/ModalBaseTitle";function x_({children:e}){return m.jsx(m.Fragment,{children:e})}const[b_,Jf]=GE({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var En={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 Pb={},w_=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${gn(t)} - ${O(2)})`}}),Gf=Q((e,t)=>{const n=V("InputDescription",Pb,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:f,...p}=V("InputDescription",Pb,n),h=Jf(),g=le({name:["InputWrapper",u],props:n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,rootSelector:"description",vars:a,varsResolver:w_}),x=d&&(h==null?void 0:h.getStyles)||g;return m.jsx(Y,{component:"p",ref:t,variant:f,size:c,...x("description",h!=null&&h.getStyles?{className:o,style:s}:void 0),...p})});Gf.classes=En;Gf.displayName="@mantine/core/InputDescription";const S_={},k_=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${gn(t)} - ${O(2)})`}}),Yf=Q((e,t)=>{const n=V("InputError",S_,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:f,...p}=n,h=le({name:["InputWrapper",u],props:n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,rootSelector:"error",vars:a,varsResolver:k_}),g=Jf(),x=d&&(g==null?void 0:g.getStyles)||h;return m.jsx(Y,{component:"p",ref:t,variant:f,size:c,...x("error",g!=null&&g.getStyles?{className:o,style:s}:void 0),...p})});Yf.classes=En;Yf.displayName="@mantine/core/InputError";const Ab={labelElement:"label"},C_=(e,{size:t})=>({label:{"--input-label-size":gn(t),"--input-asterisk-color":void 0}}),Xf=Q((e,t)=>{const n=V("InputLabel",Ab,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,labelElement:c,size:u,required:d,htmlFor:f,onMouseDown:p,children:h,__staticSelector:g,variant:x,mod:y,...v}=V("InputLabel",Ab,n),w=le({name:["InputWrapper",g],props:n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,rootSelector:"label",vars:a,varsResolver:C_}),S=Jf(),k=(S==null?void 0:S.getStyles)||w;return m.jsxs(Y,{...k("label",S!=null&&S.getStyles?{className:o,style:s}:void 0),component:c,variant:x,size:u,ref:t,htmlFor:c==="label"?f:void 0,mod:[{required:d},y],onMouseDown:C=>{p==null||p(C),!C.defaultPrevented&&C.detail>1&&C.preventDefault()},...v,children:[h,d&&m.jsx("span",{...k("required"),"aria-hidden":!0,children:" *"})]})});Xf.classes=En;Xf.displayName="@mantine/core/InputLabel";const jb={},W0=Q((e,t)=>{const n=V("InputPlaceholder",jb,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,__staticSelector:c,variant:u,error:d,mod:f,...p}=V("InputPlaceholder",jb,n),h=le({name:["InputPlaceholder",c],props:n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,rootSelector:"placeholder"});return m.jsx(Y,{...h("placeholder"),mod:[{error:!!d},f],component:"span",variant:u,ref:t,...p})});W0.classes=En;W0.displayName="@mantine/core/InputPlaceholder";function E_(e,{hasDescription:t,hasError:n}){const r=e.findIndex(a=>a==="input"),o=e[r-1],s=e[r+1];return{offsetBottom:t&&s==="description"||n&&s==="error",offsetTop:t&&o==="description"||n&&o==="error"}}const T_={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},M_=(e,{size:t})=>({label:{"--input-label-size":gn(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${gn(t)} - ${O(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${gn(t)} - ${O(2)})`}}),K0=Q((e,t)=>{const n=V("InputWrapper",T_,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,size:c,variant:u,__staticSelector:d,inputContainer:f,inputWrapperOrder:p,label:h,error:g,description:x,labelProps:y,descriptionProps:v,errorProps:w,labelElement:S,children:k,withAsterisk:C,id:T,required:E,__stylesApiProps:N,mod:A,...z}=n,H=le({name:["InputWrapper",d],props:N||n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:M_}),B={size:c,variant:u,__staticSelector:d},F=al(T),j=typeof C=="boolean"?C:E,P=(w==null?void 0:w.id)||`${F}-error`,I=(v==null?void 0:v.id)||`${F}-description`,M=F,R=!!g&&typeof g!="boolean",D=!!x,W=`${R?P:""} ${D?I:""}`,Z=W.trim().length>0?W.trim():void 0,fe=(y==null?void 0:y.id)||`${F}-label`,ne=h&&m.jsx(Xf,{labelElement:S,id:fe,htmlFor:M,required:j,...B,...y,children:h},"label"),ee=D&&m.jsx(Gf,{...v,...B,size:(v==null?void 0:v.size)||B.size,id:(v==null?void 0:v.id)||I,children:x},"description"),ce=m.jsx(b.Fragment,{children:f(k)},"input"),Ie=R&&b.createElement(Yf,{...w,...B,size:(w==null?void 0:w.size)||B.size,key:"error",id:(w==null?void 0:w.id)||P},g),ze=p.map(Mn=>{switch(Mn){case"label":return ne;case"input":return ce;case"description":return ee;case"error":return Ie;default:return null}});return m.jsx(b_,{value:{getStyles:H,describedBy:Z,inputId:M,labelId:fe,...E_(p,{hasDescription:D,hasError:R})},children:m.jsx(Y,{ref:t,variant:u,size:c,mod:[{error:!!g},A],...H("root"),...z,children:ze})})});K0.classes=En;K0.displayName="@mantine/core/InputWrapper";const R_={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},N_=(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":Ee(t.size,"input-height"),"--input-fz":gn(t.size),"--input-radius":t.radius===void 0?void 0:kn(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?O(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?O(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?Ee(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),wn=Rt((e,t)=>{const n=V("Input",R_,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,required:a,__staticSelector:c,__stylesApiProps:u,size:d,wrapperProps:f,error:p,disabled:h,leftSection:g,leftSectionProps:x,leftSectionWidth:y,rightSection:v,rightSectionProps:w,rightSectionWidth:S,rightSectionPointerEvents:k,leftSectionPointerEvents:C,variant:T,vars:E,pointer:N,multiline:A,radius:z,id:H,withAria:B,withErrorStyles:F,mod:j,...P}=n,{styleProps:I,rest:M}=S0(P),R=Jf(),D={offsetBottom:R==null?void 0:R.offsetBottom,offsetTop:R==null?void 0:R.offsetTop},W=le({name:["Input",c],props:u||n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,stylesCtx:D,rootSelector:"wrapper",vars:E,varsResolver:N_}),Z=B?{required:a,disabled:h,"aria-invalid":!!p,"aria-describedby":R==null?void 0:R.describedBy,id:(R==null?void 0:R.inputId)||H}:{};return m.jsxs(Y,{...W("wrapper"),...I,...f,mod:[{error:!!p&&F,pointer:N,disabled:h,multiline:A,"data-with-right-section":!!v,"data-with-left-section":!!g},j],variant:T,size:d,children:[g&&m.jsx("div",{...x,"data-position":"left",...W("section",{className:x==null?void 0:x.className,style:x==null?void 0:x.style}),children:g}),m.jsx(Y,{component:"input",...M,...Z,ref:t,required:a,mod:{disabled:h,error:!!p&&F},variant:T,...W("input")}),v&&m.jsx("div",{...w,"data-position":"right",...W("section",{className:w==null?void 0:w.className,style:w==null?void 0:w.style}),children:v})]})});wn.classes=En;wn.Wrapper=K0;wn.Label=Xf;wn.Error=Yf;wn.Description=Gf;wn.Placeholder=W0;wn.displayName="@mantine/core/Input";function O_(e,t,n){const r=V(e,t,n),{label:o,description:s,error:i,required:l,classNames:a,styles:c,className:u,unstyled:d,__staticSelector:f,__stylesApiProps:p,errorProps:h,labelProps:g,descriptionProps:x,wrapperProps:y,id:v,size:w,style:S,inputContainer:k,inputWrapperOrder:C,withAsterisk:T,variant:E,vars:N,mod:A,...z}=r,{styleProps:H,rest:B}=S0(z),F={label:o,description:s,error:i,required:l,classNames:a,className:u,__staticSelector:f,__stylesApiProps:p||r,errorProps:h,labelProps:g,descriptionProps:x,unstyled:d,styles:c,size:w,style:S,inputContainer:k,inputWrapperOrder:C,withAsterisk:T,variant:E,id:v,mod:A,...y};return{...B,classNames:a,styles:c,unstyled:d,wrapperProps:{...F,...H},inputProps:{required:l,classNames:a,styles:c,unstyled:d,size:w,__staticSelector:f,__stylesApiProps:p||r,error:i,variant:E,id:v}}}const P_={__staticSelector:"InputBase",withAria:!0},dl=Rt((e,t)=>{const{inputProps:n,wrapperProps:r,...o}=O_("InputBase",P_,e);return m.jsx(wn.Wrapper,{...r,children:m.jsx(wn,{...n,...o,ref:t})})});dl.classes={...wn.classes,...wn.Wrapper.classes};dl.displayName="@mantine/core/InputBase";var pM={root:"m_b6d8b162"};function A_(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const j_={inherit:!1},I_=(e,{variant:t,lineClamp:n,gradient:r,size:o,color:s})=>({root:{"--text-fz":gn(o),"--text-lh":PD(o),"--text-gradient":t==="gradient"?hg(r,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":s?Es(s,e):void 0}}),ge=Rt((e,t)=>{const n=V("Text",j_,e),{lineClamp:r,truncate:o,inline:s,inherit:i,gradient:l,span:a,__staticSelector:c,vars:u,className:d,style:f,classNames:p,styles:h,unstyled:g,variant:x,mod:y,size:v,...w}=n,S=le({name:["Text",c],props:n,classes:pM,className:d,style:f,classNames:p,styles:h,unstyled:g,vars:u,varsResolver:I_});return m.jsx(Y,{...S("root",{focusable:!0}),ref:t,component:a?"span":"p",variant:x,mod:[{"data-truncate":A_(o),"data-line-clamp":typeof r=="number","data-inline":s,"data-inherit":i},y],size:v,...w})});ge.classes=pM;ge.displayName="@mantine/core/Text";var hM={root:"m_849cf0da"};const L_={underline:"hover"},Qf=Rt((e,t)=>{const{underline:n,className:r,unstyled:o,mod:s,...i}=V("Anchor",L_,e);return m.jsx(ge,{component:"a",ref:t,className:at({[hM.root]:!o},r),...i,mod:[{underline:n},s],__staticSelector:"Anchor",unstyled:o})});Qf.classes=hM;Qf.displayName="@mantine/core/Anchor";function mM(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=>mM(t))}:e}function D_(e){return e?e.map(t=>mM(t)):[]}function gM(e){return e.reduce((t,n)=>"group"in n?{...t,...gM(n.items)}:(t[n.value]=n,t),{})}var Ht={dropdown:"m_88b62a41",options:"m_b2821a6e",option:"m_92253aa5",search:"m_985517d8",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const $_={error:null},__=(e,{size:t})=>({chevron:{"--combobox-chevron-size":Ee(t,"combobox-chevron-size")}}),q0=Q((e,t)=>{const n=V("ComboboxChevron",$_,e),{size:r,error:o,style:s,className:i,classNames:l,styles:a,unstyled:c,vars:u,mod:d,...f}=n,p=le({name:"ComboboxChevron",classes:Ht,props:n,style:s,className:i,classNames:l,styles:a,unstyled:c,vars:u,varsResolver:__,rootSelector:"chevron"});return m.jsx(Y,{component:"svg",...f,...p("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},d],ref:t,children:m.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"})})});q0.classes=Ht;q0.displayName="@mantine/core/ComboboxChevron";const[F_,Tn]=Bo("Combobox component was not found in tree"),yM=b.forwardRef(({size:e,onMouseDown:t,onClick:n,onClear:r,...o},s)=>m.jsx(qf,{ref:s,size:e||"sm",variant:"transparent",tabIndex:-1,"aria-hidden":!0,...o,onMouseDown:i=>{i.preventDefault(),t==null||t(i)},onClick:i=>{r(),n==null||n(i)}}));yM.displayName="@mantine/core/ComboboxClearButton";const z_={},J0=Q((e,t)=>{const{classNames:n,styles:r,className:o,style:s,hidden:i,...l}=V("ComboboxDropdown",z_,e),a=Tn();return m.jsx(zt.Dropdown,{...l,ref:t,role:"presentation","data-hidden":i||void 0,...a.getStyles("dropdown",{className:o,style:s,classNames:n,styles:r})})});J0.classes=Ht;J0.displayName="@mantine/core/ComboboxDropdown";const B_={refProp:"ref"},vM=Q((e,t)=>{const{children:n,refProp:r}=V("ComboboxDropdownTarget",B_,e);if(Tn(),!Ds(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 m.jsx(zt.Target,{ref:t,refProp:r,children:n})});vM.displayName="@mantine/core/ComboboxDropdownTarget";const H_={},G0=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=V("ComboboxEmpty",H_,e),a=Tn();return m.jsx(Y,{ref:t,...a.getStyles("empty",{className:r,classNames:n,styles:s,style:o}),...l})});G0.classes=Ht;G0.displayName="@mantine/core/ComboboxEmpty";function Y0({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:o,autoComplete:s}){const i=Tn(),[l,a]=b.useState(null),c=d=>{if(e==null||e(d),!i.readOnly&&t){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),i.store.dropdownOpened?a(i.store.selectNextOption()):(i.store.openDropdown("keyboard"),a(i.store.selectActiveOption()))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),i.store.dropdownOpened?a(i.store.selectPreviousOption()):(i.store.openDropdown("keyboard"),a(i.store.selectActiveOption()))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const f=i.store.getSelectedOptionIndex();i.store.dropdownOpened&&f!==-1?(d.preventDefault(),i.store.clickSelectedOption()):o==="button"&&(d.preventDefault(),i.store.openDropdown("keyboard"))}d.nativeEvent.code==="Escape"&&i.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&o==="button"&&(d.preventDefault(),i.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":r&&!!(i.store.listId&&i.store.dropdownOpened)||void 0,"aria-controls":i.store.listId,"aria-activedescendant":i.store.dropdownOpened&&l||void 0,autoComplete:s,"data-expanded":i.store.dropdownOpened||void 0,"data-mantine-stop-propagation":i.store.dropdownOpened||void 0}:{},onKeyDown:c}}const V_={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},xM=Q((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:i,targetType:l,autoComplete:a,...c}=V("ComboboxEventsTarget",V_,e);if(!Ds(n))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 u=Tn(),d=Y0({targetType:l,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:i,onKeyDown:n.props.onKeyDown,autoComplete:a});return b.cloneElement(n,{...d,...c,[r]:Mt(t,u.store.targetRef,n==null?void 0:n.ref)})});xM.displayName="@mantine/core/ComboboxEventsTarget";const U_={},X0=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=V("ComboboxFooter",U_,e),a=Tn();return m.jsx(Y,{ref:t,...a.getStyles("footer",{className:r,classNames:n,style:o,styles:s}),...l})});X0.classes=Ht;X0.displayName="@mantine/core/ComboboxFooter";const W_={},Q0=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,children:l,label:a,...c}=V("ComboboxGroup",W_,e),u=Tn();return m.jsxs(Y,{ref:t,...u.getStyles("group",{className:r,classNames:n,style:o,styles:s}),...c,children:[a&&m.jsx("div",{...u.getStyles("groupLabel",{classNames:n,styles:s}),children:a}),l]})});Q0.classes=Ht;Q0.displayName="@mantine/core/ComboboxGroup";const K_={},Z0=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=V("ComboboxHeader",K_,e),a=Tn();return m.jsx(Y,{ref:t,...a.getStyles("header",{className:r,classNames:n,style:o,styles:s}),...l})});Z0.classes=Ht;Z0.displayName="@mantine/core/ComboboxHeader";function bM({value:e,valuesDivider:t=",",...n}){return m.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...n})}bM.displayName="@mantine/core/ComboboxHiddenInput";const q_={},ev=Q((e,t)=>{const n=V("ComboboxOption",q_,e),{classNames:r,className:o,style:s,styles:i,vars:l,onClick:a,id:c,active:u,onMouseDown:d,onMouseOver:f,disabled:p,selected:h,mod:g,...x}=n,y=Tn(),v=b.useId(),w=c||v;return m.jsx(Y,{...y.getStyles("option",{className:o,classNames:r,styles:i,style:s}),...x,ref:t,id:w,mod:["combobox-option",{"combobox-active":u,"combobox-disabled":p,"combobox-selected":h},g],role:"option",onClick:S=>{var k;p?S.preventDefault():((k=y.onOptionSubmit)==null||k.call(y,n.value,n),a==null||a(S))},onMouseDown:S=>{S.preventDefault(),d==null||d(S)},onMouseOver:S=>{y.resetSelectionOnOptionHover&&y.store.resetSelectedOption(),f==null||f(S)}})});ev.classes=Ht;ev.displayName="@mantine/core/ComboboxOption";const J_={},tv=Q((e,t)=>{const n=V("ComboboxOptions",J_,e),{classNames:r,className:o,style:s,styles:i,id:l,onMouseDown:a,labelledBy:c,...u}=n,d=Tn(),f=al(l);return b.useEffect(()=>{d.store.setListId(f)},[f]),m.jsx(Y,{ref:t,...d.getStyles("options",{className:o,style:s,classNames:r,styles:i}),...u,id:f,role:"listbox","aria-labelledby":c,onMouseDown:p=>{p.preventDefault(),a==null||a(p)}})});tv.classes=Ht;tv.displayName="@mantine/core/ComboboxOptions";const G_={withAriaAttributes:!0,withKeyboardNavigation:!0},nv=Q((e,t)=>{const n=V("ComboboxSearch",G_,e),{classNames:r,styles:o,unstyled:s,vars:i,withAriaAttributes:l,onKeyDown:a,withKeyboardNavigation:c,size:u,...d}=n,f=Tn(),p=f.getStyles("search"),h=Y0({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:a,autoComplete:"off"});return m.jsx(wn,{ref:Mt(t,f.store.searchRef),classNames:[{input:p.className},r],styles:[{input:p.style},o],size:u||f.size,...h,...d,__staticSelector:"Combobox"})});nv.classes=Ht;nv.displayName="@mantine/core/ComboboxSearch";const Y_={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},wM=Q((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:i,targetType:l,autoComplete:a,...c}=V("ComboboxTarget",Y_,e);if(!Ds(n))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 u=Tn(),d=Y0({targetType:l,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:i,onKeyDown:n.props.onKeyDown,autoComplete:a}),f=b.cloneElement(n,{...d,...c});return m.jsx(zt.Target,{ref:Mt(t,u.store.targetRef),children:f})});wM.displayName="@mantine/core/ComboboxTarget";function X_(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=t.length-1;r>-1;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r}return e}function Q_(e,t,n){for(let r=e+1;r{l||(a(!0),o==null||o(P))},[a,o,l]),y=b.useCallback((P="unknown")=>{l&&(a(!1),r==null||r(P))},[a,r,l]),v=b.useCallback((P="unknown")=>{l?y(P):x(P)},[y,x,l]),w=b.useCallback(()=>{const P=document.querySelector(`#${c.current} [data-combobox-selected]`);P==null||P.removeAttribute("data-combobox-selected"),P==null||P.removeAttribute("aria-selected")},[]),S=b.useCallback(P=>{const I=document.getElementById(c.current),M=I==null?void 0:I.querySelectorAll("[data-combobox-option]");if(!M)return null;const R=P>=M.length?0:P<0?M.length-1:P;return u.current=R,M!=null&&M[R]&&!M[R].hasAttribute("data-combobox-disabled")?(w(),M[R].setAttribute("data-combobox-selected","true"),M[R].setAttribute("aria-selected","true"),M[R].scrollIntoView({block:"nearest",behavior:i}),M[R].id):null},[i,w]),k=b.useCallback(()=>{const P=document.querySelector(`#${c.current} [data-combobox-active]`);if(P){const I=document.querySelectorAll(`#${c.current} [data-combobox-option]`),M=Array.from(I).findIndex(R=>R===P);return S(M)}return S(0)},[S]),C=b.useCallback(()=>S(Q_(u.current,document.querySelectorAll(`#${c.current} [data-combobox-option]`),s)),[S,s]),T=b.useCallback(()=>S(X_(u.current,document.querySelectorAll(`#${c.current} [data-combobox-option]`),s)),[S,s]),E=b.useCallback(()=>S(Z_(document.querySelectorAll(`#${c.current} [data-combobox-option]`))),[S]),N=b.useCallback((P="selected",I)=>{g.current=window.setTimeout(()=>{var D;const M=document.querySelectorAll(`#${c.current} [data-combobox-option]`),R=Array.from(M).findIndex(W=>W.hasAttribute(`data-combobox-${P}`));u.current=R,I!=null&&I.scrollIntoView&&((D=M[R])==null||D.scrollIntoView({block:"nearest",behavior:i}))},0)},[]),A=b.useCallback(()=>{u.current=-1,w()},[w]),z=b.useCallback(()=>{const P=document.querySelectorAll(`#${c.current} [data-combobox-option]`),I=P==null?void 0:P[u.current];I==null||I.click()},[]),H=b.useCallback(P=>{c.current=P},[]),B=b.useCallback(()=>{p.current=window.setTimeout(()=>d.current.focus(),0)},[]),F=b.useCallback(()=>{h.current=window.setTimeout(()=>f.current.focus(),0)},[]),j=b.useCallback(()=>u.current,[]);return b.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(h.current),window.clearTimeout(g.current)},[]),{dropdownOpened:l,openDropdown:x,closeDropdown:y,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:j,selectOption:S,selectFirstOption:E,selectActiveOption:k,selectNextOption:C,selectPreviousOption:T,resetSelectedOption:A,updateSelectedOptionIndex:N,listId:c.current,setListId:H,clickSelectedOption:z,searchRef:d,focusSearchInput:B,targetRef:f,focusTarget:F}}const eF={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},tF=(e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":gn(t),"--combobox-option-padding":Ee(t,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:O(n),"--combobox-option-fz":gn(t),"--combobox-option-padding":Ee(t,"combobox-option-padding")}});function ve(e){const t=V("Combobox",eF,e),{classNames:n,styles:r,unstyled:o,children:s,store:i,vars:l,onOptionSubmit:a,onClose:c,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:h,...g}=t,x=SM(),y=i||x,v=le({name:p||"Combobox",classes:Ht,props:t,classNames:n,styles:r,unstyled:o,vars:l,varsResolver:tF}),w=()=>{c==null||c(),y.closeDropdown()};return m.jsx(F_,{value:{getStyles:v,store:y,onOptionSubmit:a,size:u,resetSelectionOnOptionHover:f,readOnly:h},children:m.jsx(zt,{opened:y.dropdownOpened,...g,onClose:w,withRoles:!1,unstyled:o,children:s})})}const nF=e=>e;ve.extend=nF;ve.classes=Ht;ve.displayName="@mantine/core/Combobox";ve.Target=wM;ve.Dropdown=J0;ve.Options=tv;ve.Option=ev;ve.Search=nv;ve.Empty=G0;ve.Chevron=q0;ve.Footer=X0;ve.Header=Z0;ve.EventsTarget=xM;ve.DropdownTarget=vM;ve.Group=Q0;ve.ClearButton=yM;ve.HiddenInput=bM;function rF({size:e,style:t,...n}){const r=e!==void 0?{width:O(e),height:O(e),...t}:t;return m.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:m.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 Ca(e){return"group"in e}function kM({options:e,search:t,limit:n}){const r=t.trim().toLowerCase(),o=[];for(let s=0;s0)return!1;return!0}function CM(e,t=new Set){if(Array.isArray(e))for(const n of e)if(Ca(n))CM(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 sF(e,t){return Array.isArray(e)?e.includes(t):e===t}function EM({data:e,withCheckIcon:t,value:n,checkIconPosition:r,unstyled:o,renderOption:s}){if(!Ca(e)){const l=sF(n,e.value),a=t&&l&&m.jsx(rF,{className:Ht.optionsDropdownCheckIcon}),c=m.jsxs(m.Fragment,{children:[r==="left"&&a,m.jsx("span",{children:e.label}),r==="right"&&a]});return m.jsx(ve.Option,{value:e.value,disabled:e.disabled,className:at({[Ht.optionsDropdownOption]:!o}),"data-reverse":r==="right"||void 0,"data-checked":l||void 0,"aria-selected":l,active:l,children:typeof s=="function"?s({option:e,checked:l}):c})}const i=e.items.map(l=>m.jsx(EM,{data:l,value:n,unstyled:o,withCheckIcon:t,checkIconPosition:r,renderOption:s},l.value));return m.jsx(ve.Group,{label:e.group,children:i})}function iF({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:o,limit:s,maxDropdownHeight:i,withScrollArea:l=!0,filterOptions:a=!0,withCheckIcon:c=!1,value:u,checkIconPosition:d,nothingFoundMessage:f,unstyled:p,labelId:h,renderOption:g,scrollAreaProps:x,"aria-label":y}){CM(e);const w=typeof o=="string"?(r||kM)({options:e,search:a?o:"",limit:s??1/0}):e,S=oF(w),k=w.map(C=>m.jsx(EM,{data:C,withCheckIcon:c,value:u,checkIconPosition:d,unstyled:p,renderOption:g},Ca(C)?C.group:C.value));return m.jsx(ve.Dropdown,{hidden:t||n&&S,children:m.jsxs(ve.Options,{labelledBy:h,"aria-label":y,children:[l?m.jsx(Ka.Autosize,{mah:i??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...x,children:k}):k,S&&f&&m.jsx(ve.Empty,{children:f})]})})}var TM={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const lF={},aF=(e,{radius:t,color:n,gradient:r,variant:o,size:s,autoContrast:i})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:i});return{root:{"--badge-height":Ee(s,"badge-height"),"--badge-padding-x":Ee(s,"badge-padding-x"),"--badge-fz":Ee(s,"badge-fz"),"--badge-radius":t===void 0?void 0:kn(t),"--badge-bg":n||o?l.background:void 0,"--badge-color":n||o?l.color:void 0,"--badge-bd":n||o?l.border:void 0,"--badge-dot-color":o==="dot"?Es(n,e):void 0}}},rv=Rt((e,t)=>{const n=V("Badge",lF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,radius:c,color:u,gradient:d,leftSection:f,rightSection:p,children:h,variant:g,fullWidth:x,autoContrast:y,circle:v,mod:w,...S}=n,k=le({name:"Badge",props:n,classes:TM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:aF});return m.jsxs(Y,{variant:g,mod:[{block:x,circle:v},w],...k("root",{variant:g}),ref:t,...S,children:[f&&m.jsx("span",{...k("section"),"data-position":"left",children:f}),m.jsx("span",{...k("label"),children:h}),p&&m.jsx("span",{...k("section"),"data-position":"right",children:p})]})});rv.classes=TM;rv.displayName="@mantine/core/Badge";var Zf={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844"};const Ib={orientation:"horizontal"},cF=(e,{borderWidth:t})=>({group:{"--button-border-width":O(t)}}),ov=Q((e,t)=>{const n=V("ButtonGroup",Ib,e),{className:r,style:o,classNames:s,styles:i,unstyled:l,orientation:a,vars:c,borderWidth:u,variant:d,mod:f,...p}=V("ButtonGroup",Ib,e),h=le({name:"ButtonGroup",props:n,classes:Zf,className:r,style:o,classNames:s,styles:i,unstyled:l,vars:c,varsResolver:cF,rootSelector:"group"});return m.jsx(Y,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":a},f],role:"group",...p})});ov.classes=Zf;ov.displayName="@mantine/core/ButtonGroup";const uF={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${O(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},dF={},fF=(e,{radius:t,color:n,gradient:r,variant:o,size:s,justify:i,autoContrast:l})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:l});return{root:{"--button-justify":i,"--button-height":Ee(s,"button-height"),"--button-padding-x":Ee(s,"button-padding-x"),"--button-fz":s!=null&&s.includes("compact")?gn(s.replace("compact-","")):gn(s),"--button-radius":t===void 0?void 0:kn(t),"--button-bg":n||o?a.background:void 0,"--button-hover":n||o?a.hover:void 0,"--button-color":a.color,"--button-bd":n||o?a.border:void 0,"--button-hover-color":n||o?a.hoverColor:void 0}}},Ve=Rt((e,t)=>{const n=V("Button",dF,e),{style:r,vars:o,className:s,color:i,disabled:l,children:a,leftSection:c,rightSection:u,fullWidth:d,variant:f,radius:p,loading:h,loaderProps:g,gradient:x,classNames:y,styles:v,unstyled:w,"data-disabled":S,autoContrast:k,mod:C,...T}=n,E=le({name:"Button",props:n,classes:Zf,className:s,style:r,classNames:y,styles:v,unstyled:w,vars:o,varsResolver:fF}),N=!!c,A=!!u;return m.jsxs(Fs,{ref:t,...E("root",{active:!l&&!h&&!S}),unstyled:w,variant:f,disabled:l||h,mod:[{disabled:l||S,loading:h,block:d,"with-left-section":N,"with-right-section":A},C],...T,children:[m.jsx(Bs,{mounted:!!h,transition:uF,duration:150,children:z=>m.jsx(Y,{component:"span",...E("loader",{style:z}),"aria-hidden":!0,children:m.jsx(Ga,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...g})})}),m.jsxs("span",{...E("inner"),children:[c&&m.jsx(Y,{component:"span",...E("section"),mod:{position:"left"},children:c}),m.jsx(Y,{component:"span",mod:{loading:h},...E("label"),children:a}),u&&m.jsx(Y,{component:"span",...E("section"),mod:{position:"right"},children:u})]})]})});Ve.classes=Zf;Ve.displayName="@mantine/core/Button";Ve.Group=ov;const[pF,hF]=Bo("Card component was not found in tree");var sv={root:"m_e615b15f",section:"m_599a2148"};const mF={},ep=Rt((e,t)=>{const n=V("CardSection",mF,e),{classNames:r,className:o,style:s,styles:i,vars:l,withBorder:a,inheritPadding:c,mod:u,...d}=n,f=hF();return m.jsx(Y,{ref:t,mod:[{"with-border":a,"inherit-padding":c},u],...f.getStyles("section",{className:o,style:s,styles:i,classNames:r}),...d})});ep.classes=sv;ep.displayName="@mantine/core/CardSection";const gF={},yF=(e,{padding:t})=>({root:{"--card-padding":sr(t)}}),tp=Rt((e,t)=>{const n=V("Card",gF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,children:c,padding:u,...d}=n,f=le({name:"Card",props:n,classes:sv,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:yF}),p=b.Children.toArray(c),h=p.map((g,x)=>typeof g=="object"&&g&&"type"in g&&g.type===ep?b.cloneElement(g,{"data-first-section":x===0||void 0,"data-last-section":x===p.length-1||void 0}):g);return m.jsx(pF,{value:{getStyles:f},children:m.jsx(mr,{ref:t,unstyled:l,...f("root"),...d,children:h})})});tp.classes=sv;tp.displayName="@mantine/core/Card";tp.Section=ep;var MM={root:"m_4451eb3a"};const vF={},np=Rt((e,t)=>{const n=V("Center",vF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,inline:c,mod:u,...d}=n,f=le({name:"Center",props:n,classes:MM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a});return m.jsx(Y,{ref:t,mod:[{inline:c},u],...f("root"),...d})});np.classes=MM;np.displayName="@mantine/core/Center";var RM={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const Lb={withShadow:!0},xF=(e,{radius:t,size:n})=>({root:{"--cs-radius":t===void 0?void 0:kn(t),"--cs-size":O(n)}}),Ms=Rt((e,t)=>{const n=V("ColorSwatch",Lb,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,color:c,size:u,radius:d,withShadow:f,children:p,variant:h,...g}=V("ColorSwatch",Lb,n),x=le({name:"ColorSwatch",props:n,classes:RM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:xF});return m.jsxs(Y,{ref:t,variant:h,size:u,...x("root",{focusable:!0}),...g,children:[m.jsx("span",{...x("alphaOverlay")}),f&&m.jsx("span",{...x("shadowOverlay")}),m.jsx("span",{...x("colorOverlay",{style:{backgroundColor:c}})}),m.jsx("span",{...x("childrenOverlay"),children:p})]})});Ms.classes=RM;Ms.displayName="@mantine/core/ColorSwatch";const[bF,iv]=GE(null),lv=b.forwardRef(({position:e,...t},n)=>m.jsx(Y,{ref:n,__vars:{"--thumb-y-offset":`${e.y*100}%`,"--thumb-x-offset":`${e.x*100}%`},...t}));lv.displayName="@mantine/core/ColorPickerThumb";var av={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 wF={},cv=Q((e,t)=>{var M;const n=V("ColorSlider",wF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,onChange:c,onChangeEnd:u,maxValue:d,round:f,size:p="md",focusable:h=!0,value:g,overlays:x,thumbColor:y="transparent",onScrubStart:v,onScrubEnd:w,__staticSelector:S="ColorPicker",...k}=n,C=le({name:S,classes:av,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l}),E=((M=iv())==null?void 0:M.getStyles)||C,N=Wn(),[A,z]=b.useState({y:0,x:g/d}),H=b.useRef(A),B=R=>f?Math.round(R*d):R*d,{ref:F}=oT(({x:R,y:D})=>{H.current={x:R,y:D},c==null||c(B(R))},{onScrubEnd:()=>{const{x:R}=H.current;u==null||u(B(R)),w==null||w()},onScrubStart:v});dr(()=>{z({y:0,x:g/d})},[g]);const j=(R,D)=>{R.preventDefault();const W=rT(D);c==null||c(B(W.x)),u==null||u(B(W.x))},P=R=>{switch(R.key){case"ArrowRight":{j(R,{x:A.x+.05,y:A.y});break}case"ArrowLeft":{j(R,{x:A.x-.05,y:A.y});break}}},I=x.map((R,D)=>b.createElement("div",{...E("sliderOverlay"),style:R,key:D}));return m.jsxs(Y,{...k,ref:Mt(F,t),...E("slider"),role:"slider","aria-valuenow":g,"aria-valuemax":d,"aria-valuemin":0,tabIndex:h?0:-1,onKeyDown:P,"data-focus-ring":N.focusRing,__vars:{"--cp-thumb-size":`var(--cp-thumb-size-${p})`},children:[I,m.jsx(lv,{position:A,...E("thumb",{style:{top:O(1),background:y}})})]})});cv.displayName="@mantine/core/ColorSlider";function fn(e,t=0,n=10**t){return Math.round(n*e)/n}function SF({h:e,s:t,l:n,a:r}){const o=t*((n<50?n:100-n)/100);return{h:e,s:o>0?2*o/(n+o)*100:0,v:n+o,a:r}}const kF={grad:360/400,turn:360,rad:360/(Math.PI*2)};function CF(e,t="deg"){return Number(e)*(kF[t]||1)}const EF=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function Db(e){const t=EF.exec(e);return t?SF({h:CF(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 Cg({r:e,g:t,b:n,a:r}){const o=Math.max(e,t,n),s=o-Math.min(e,t,n),i=s?o===e?(t-n)/s:o===t?2+(n-e)/s:4+(e-t)/s:0;return{h:fn(60*(i<0?i+6:i),3),s:fn(o?s/o*100:0,3),v:fn(o/255*100,3),a:r}}function Eg(e){const t=e[0]==="#"?e.slice(1):e;return t.length===3?Cg({r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:1}):Cg({r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:1})}function TF(e){const t=e[0]==="#"?e.slice(1):e,n=i=>fn(parseInt(i,16)/255,3);if(t.length===4){const i=t.slice(0,3),l=n(t[3]+t[3]);return{...Eg(i),a:l}}const r=t.slice(0,6),o=n(t.slice(6,8));return{...Eg(r),a:o}}const MF=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function $b(e){const t=MF.exec(e);return t?Cg({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 NM={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},RF={hex:Eg,hexa:TF,rgb:$b,rgba:$b,hsl:Db,hsla:Db};function NF(e){for(const[,t]of Object.entries(NM))if(t.test(e))return!0;return!1}function Mc(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,r]of Object.entries(NM))if(r.test(t))return RF[n](t);return{h:0,s:0,v:0,a:1}}const OF={},OM=b.forwardRef((e,t)=>{const{value:n,onChange:r,onChangeEnd:o,color:s,...i}=V("AlphaSlider",OF,e);return m.jsx(cv,{...i,ref:t,value:n,onChange:l=>r==null?void 0:r(fn(l,2)),onChangeEnd:l=>o==null?void 0:o(fn(l,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:`${O(8)} ${O(8)}`,backgroundPosition:`0 0, 0 ${O(4)}, ${O(4)} ${O(-4)}, ${O(-4)} 0`},{backgroundImage:`linear-gradient(90deg, transparent, ${s})`},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${O(1)} inset, rgb(0, 0, 0, .15) 0 0 ${O(4)} inset`}]})});OM.displayName="@mantine/core/AlphaSlider";function PM({h:e,s:t,v:n,a:r}){const o=e/360*6,s=t/100,i=n/100,l=Math.floor(o),a=i*(1-s),c=i*(1-(o-l)*s),u=i*(1-(1-o+l)*s),d=l%6;return{r:fn([i,c,a,a,u,i][d]*255),g:fn([u,i,i,c,a,a][d]*255),b:fn([a,a,u,i,i,c][d]*255),a:fn(r,2)}}function _b(e,t){const{r:n,g:r,b:o,a:s}=PM(e);return t?`rgba(${n}, ${r}, ${o}, ${fn(s,2)})`:`rgb(${n}, ${r}, ${o})`}function Fb({h:e,s:t,v:n,a:r},o){const s=(200-t)*n/100,i={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 o?`hsla(${i.h}, ${i.s}%, ${i.l}%, ${fn(r,2)})`:`hsl(${i.h}, ${i.s}%, ${i.l}%)`}function ou(e){const t=e.toString(16);return t.length<2?`0${t}`:t}function AM(e){const{r:t,g:n,b:r}=PM(e);return`#${ou(t)}${ou(n)}${ou(r)}`}function PF(e){const t=Math.round(e.a*255);return`${AM(e)}${ou(t)}`}const Th={hex:AM,hexa:e=>PF(e),rgb:e=>_b(e,!1),rgba:e=>_b(e,!0),hsl:e=>Fb(e,!1),hsla:e=>Fb(e,!0)};function Yr(e,t){return t?e in Th?Th[e](t):Th.hex(t):"#000000"}const jM=b.forwardRef((e,t)=>{const{value:n,onChange:r,onChangeEnd:o,color:s,...i}=V("HueSlider",{},e);return m.jsx(cv,{...i,ref:t,value:n,onChange:r,onChangeEnd:o,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 ${O(1)} inset, rgb(0, 0, 0, .15) 0 0 ${O(4)} inset`}]})});jM.displayName="@mantine/core/HueSlider";function IM({className:e,onChange:t,onChangeEnd:n,value:r,saturationLabel:o,focusable:s=!0,size:i,color:l,onScrubStart:a,onScrubEnd:c,...u}){const{getStyles:d}=iv(),[f,p]=b.useState({x:r.s/100,y:1-r.v/100}),h=b.useRef(f),{ref:g}=oT(({x:v,y:w})=>{h.current={x:v,y:w},t({s:Math.round(v*100),v:Math.round((1-w)*100)})},{onScrubEnd:()=>{const{x:v,y:w}=h.current;n({s:Math.round(v*100),v:Math.round((1-w)*100)}),c==null||c()},onScrubStart:a});b.useEffect(()=>{p({x:r.s/100,y:1-r.v/100})},[r.s,r.v]);const x=(v,w)=>{v.preventDefault();const S=rT(w);t({s:Math.round(S.x*100),v:Math.round((1-S.y)*100)}),n({s:Math.round(S.x*100),v:Math.round((1-S.y)*100)})},y=v=>{switch(v.key){case"ArrowUp":{x(v,{y:f.y-.05,x:f.x});break}case"ArrowDown":{x(v,{y:f.y+.05,x:f.x});break}case"ArrowRight":{x(v,{x:f.x+.05,y:f.y});break}case"ArrowLeft":{x(v,{x:f.x-.05,y:f.y});break}}};return m.jsxs(Y,{...d("saturation"),ref:g,...u,role:"slider","aria-label":o,"aria-valuenow":f.x,"aria-valuetext":Yr("rgba",r),tabIndex:s?0:-1,onKeyDown:y,children:[m.jsx("div",{...d("saturationOverlay",{style:{backgroundColor:`hsl(${r.h}, 100%, 50%)`}})}),m.jsx("div",{...d("saturationOverlay",{style:{backgroundImage:"linear-gradient(90deg, #fff, transparent)"}})}),m.jsx("div",{...d("saturationOverlay",{style:{backgroundImage:"linear-gradient(0deg, #000, transparent)"}})}),m.jsx(lv,{position:f,...d("thumb",{style:{backgroundColor:l}})})]})}IM.displayName="@mantine/core/Saturation";const LM=b.forwardRef(({className:e,datatype:t,setValue:n,onChangeEnd:r,size:o,focusable:s,data:i,swatchesPerRow:l,...a},c)=>{const u=iv(),d=i.map((f,p)=>b.createElement(Ms,{...u.getStyles("swatch"),unstyled:u.unstyled,component:"button",type:"button",color:f,key:p,radius:"sm",onClick:()=>{n(f),r==null||r(f)},"aria-label":f,tabIndex:s?0:-1,"data-swatch":!0}));return m.jsx(Y,{...u.getStyles("swatches"),ref:c,...a,children:d})});LM.displayName="@mantine/core/Swatches";const AF={swatchesPerRow:7,withPicker:!0,focusable:!0,size:"md",__staticSelector:"ColorPicker"},jF=(e,{size:t,swatchesPerRow:n})=>({wrapper:{"--cp-preview-size":Ee(t,"cp-preview-size"),"--cp-width":Ee(t,"cp-width"),"--cp-body-spacing":sr(t),"--cp-swatch-size":`${100/n}%`,"--cp-thumb-size":Ee(t,"cp-thumb-size"),"--cp-saturation-height":Ee(t,"cp-saturation-height")}}),uv=Q((e,t)=>{const n=V("ColorPicker",AF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,format:c,value:u,defaultValue:d,onChange:f,onChangeEnd:p,withPicker:h,size:g,saturationLabel:x,hueLabel:y,alphaLabel:v,focusable:w,swatches:S,swatchesPerRow:k,fullWidth:C,onColorSwatchClick:T,__staticSelector:E,mod:N,...A}=n,z=le({name:E,props:n,classes:av,className:o,style:s,classNames:r,styles:i,unstyled:l,rootSelector:"wrapper",vars:a,varsResolver:jF}),H=b.useRef(c),B=b.useRef(),F=b.useRef(-1),j=b.useRef(!1),P=c==="hexa"||c==="rgba"||c==="hsla",[I,M,R]=wa({value:u,defaultValue:d,finalValue:"#FFFFFF",onChange:f}),[D,W]=b.useState(Mc(I)),Z=()=>{window.clearTimeout(F.current),j.current=!0},fe=()=>{window.clearTimeout(F.current),F.current=window.setTimeout(()=>{j.current=!1},200)},ne=ee=>{W(ce=>{const Ie={...ce,...ee};return B.current=Yr(H.current,Ie),Ie}),M(B.current)};return dr(()=>{NF(u)&&!j.current&&W(Mc(u))},[u]),dr(()=>{H.current=c,M(Yr(c,D))},[c]),m.jsx(bF,{value:{getStyles:z,unstyled:l},children:m.jsxs(Y,{ref:t,...z("wrapper"),size:g,mod:[{"full-width":C},N],...A,children:[h&&m.jsxs(m.Fragment,{children:[m.jsx(IM,{value:D,onChange:ne,onChangeEnd:({s:ee,v:ce})=>p==null?void 0:p(Yr(H.current,{...D,s:ee,v:ce})),color:I,size:g,focusable:w,saturationLabel:x,onScrubStart:Z,onScrubEnd:fe}),m.jsxs("div",{...z("body"),children:[m.jsxs("div",{...z("sliders"),children:[m.jsx(jM,{value:D.h,onChange:ee=>ne({h:ee}),onChangeEnd:ee=>p==null?void 0:p(Yr(H.current,{...D,h:ee})),size:g,focusable:w,"aria-label":y,onScrubStart:Z,onScrubEnd:fe}),P&&m.jsx(OM,{value:D.a,onChange:ee=>ne({a:ee}),onChangeEnd:ee=>{p==null||p(Yr(H.current,{...D,a:ee}))},size:g,color:Yr("hex",D),focusable:w,"aria-label":v,onScrubStart:Z,onScrubEnd:fe})]}),P&&m.jsx(Ms,{color:I,radius:"sm",size:"var(--cp-preview-size)",...z("preview")})]})]}),Array.isArray(S)&&m.jsx(LM,{data:S,swatchesPerRow:k,focusable:w,setValue:M,onChangeEnd:ee=>{const ce=Yr(c,Mc(ee));T==null||T(ce),p==null||p(ce),R||W(Mc(ee))}})]})})});uv.classes=av;uv.displayName="@mantine/core/ColorPicker";var DM={root:"m_7485cace"};const IF={},LF=(e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:Ee(t,"container-size")}}),Kn=Q((e,t)=>{const n=V("Container",IF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,fluid:c,mod:u,...d}=n,f=le({name:"Container",classes:DM,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:LF});return m.jsx(Y,{ref:t,mod:[{fluid:c},u],...f("root"),...d})});Kn.classes=DM;Kn.displayName="@mantine/core/Container";const[DF,fl]=Bo("Modal component was not found in tree");var Wr={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const $F={},rp=Q((e,t)=>{const n=V("ModalBody",$F,e),{classNames:r,className:o,style:s,styles:i,vars:l,...a}=n,c=fl();return m.jsx(aM,{ref:t,...c.getStyles("body",{classNames:r,style:s,styles:i,className:o}),...a})});rp.classes=Wr;rp.displayName="@mantine/core/ModalBody";const _F={},op=Q((e,t)=>{const n=V("ModalCloseButton",_F,e),{classNames:r,className:o,style:s,styles:i,vars:l,...a}=n,c=fl();return m.jsx(cM,{ref:t,...c.getStyles("close",{classNames:r,style:s,styles:i,className:o}),...a})});op.classes=Wr;op.displayName="@mantine/core/ModalCloseButton";const FF={},sp=Q((e,t)=>{const n=V("ModalContent",FF,e),{classNames:r,className:o,style:s,styles:i,vars:l,children:a,...c}=n,u=fl(),d=u.scrollAreaComponent||x_;return m.jsx(m_,{...u.getStyles("content",{className:o,style:s,styles:i,classNames:r}),innerProps:u.getStyles("inner",{className:o,style:s,styles:i,classNames:r}),"data-full-screen":u.fullScreen||void 0,"data-modal-content":!0,ref:t,...c,children:m.jsx(d,{style:{maxHeight:u.fullScreen?"100dvh":`calc(100dvh - (${O(u.yOffset)} * 2))`},children:a})})});sp.classes=Wr;sp.displayName="@mantine/core/ModalContent";const zF={},ip=Q((e,t)=>{const n=V("ModalHeader",zF,e),{classNames:r,className:o,style:s,styles:i,vars:l,...a}=n,c=fl();return m.jsx(uM,{ref:t,...c.getStyles("header",{classNames:r,style:s,styles:i,className:o}),...a})});ip.classes=Wr;ip.displayName="@mantine/core/ModalHeader";const BF={},lp=Q((e,t)=>{const n=V("ModalOverlay",BF,e),{classNames:r,className:o,style:s,styles:i,vars:l,...a}=n,c=fl();return m.jsx(dM,{ref:t,...c.getStyles("overlay",{classNames:r,style:s,styles:i,className:o}),...a})});lp.classes=Wr;lp.displayName="@mantine/core/ModalOverlay";const HF={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:$s("modal"),transitionProps:{duration:200,transition:"pop"},yOffset:"5dvh"},VF=(e,{radius:t,size:n,yOffset:r,xOffset:o})=>({root:{"--modal-radius":t===void 0?void 0:kn(t),"--modal-size":Ee(n,"modal-size"),"--modal-y-offset":O(r),"--modal-x-offset":O(o)}}),ap=Q((e,t)=>{const n=V("ModalRoot",HF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,yOffset:c,scrollAreaComponent:u,radius:d,fullScreen:f,centered:p,xOffset:h,__staticSelector:g,...x}=n,y=le({name:g,classes:Wr,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:VF});return m.jsx(DF,{value:{yOffset:c,scrollAreaComponent:u,getStyles:y,fullScreen:f},children:m.jsx(p_,{ref:t,...y("root"),"data-full-screen":f||void 0,"data-centered":p||void 0,unstyled:l,...x})})});ap.classes=Wr;ap.displayName="@mantine/core/ModalRoot";const UF={},cp=Q((e,t)=>{const n=V("ModalTitle",UF,e),{classNames:r,className:o,style:s,styles:i,vars:l,...a}=n,c=fl();return m.jsx(fM,{ref:t,...c.getStyles("title",{classNames:r,style:s,styles:i,className:o}),...a})});cp.classes=Wr;cp.displayName="@mantine/core/ModalTitle";const WF={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:$s("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},bt=Q((e,t)=>{const{title:n,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:i,children:l,radius:a,...c}=V("Modal",WF,e),u=!!n||s;return m.jsxs(ap,{ref:t,radius:a,...c,children:[r&&m.jsx(lp,{...o}),m.jsxs(sp,{radius:a,children:[u&&m.jsxs(ip,{children:[n&&m.jsx(cp,{children:n}),s&&m.jsx(op,{...i})]}),m.jsx(rp,{children:l})]})]})});bt.classes=Wr;bt.displayName="@mantine/core/Modal";bt.Root=ap;bt.Overlay=lp;bt.Content=sp;bt.Body=rp;bt.Header=ip;bt.Title=cp;bt.CloseButton=op;const KF={duration:100,transition:"fade"};function qF(e,t){return{...KF,...t,...e}}function JF({offset:e,position:t}){const[n,r]=b.useState(!1),o=b.useRef(),{x:s,y:i,elements:l,refs:a,update:c,placement:u}=z0({placement:t,middleware:[D0({crossAxis:!0,padding:5,rootBoundary:"document"})]}),d=u.includes("right")?e:t.includes("left")?e*-1:0,f=u.includes("bottom")?e:t.includes("top")?e*-1:0,p=b.useCallback(({clientX:h,clientY:g})=>{a.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:h,y:g,left:h+d,top:g+f,right:h,bottom:g}}})},[l.reference]);return b.useEffect(()=>{if(a.floating.current){const h=o.current;h.addEventListener("mousemove",p);const g=Pr(a.floating.current);return g.forEach(x=>{x.addEventListener("scroll",c)}),()=>{h.removeEventListener("mousemove",p),g.forEach(x=>{x.removeEventListener("scroll",c)})}}},[l.reference,a.floating.current,c,p,n]),{handleMouseMove:p,x:s,y:i,opened:n,setOpened:r,boundaryRef:o,floating:a.setFloating}}var up={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const GF={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:$s("popover")},YF=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:kn(t),"--tooltip-bg":n?Es(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),dv=Q((e,t)=>{const n=V("TooltipFloating",GF,e),{children:r,refProp:o,withinPortal:s,style:i,className:l,classNames:a,styles:c,unstyled:u,radius:d,color:f,label:p,offset:h,position:g,multiline:x,zIndex:y,disabled:v,variant:w,vars:S,portalProps:k,...C}=n,T=Wn(),E=le({name:"TooltipFloating",props:n,classes:up,className:l,style:i,classNames:a,styles:c,unstyled:u,rootSelector:"tooltip",vars:S,varsResolver:YF}),{handleMouseMove:N,x:A,y:z,opened:H,boundaryRef:B,floating:F,setOpened:j}=JF({offset:h,position:g});if(!Ds(r))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 P=Mt(B,r.ref,t),I=R=>{var D,W;(W=(D=r.props).onMouseEnter)==null||W.call(D,R),N(R),j(!0)},M=R=>{var D,W;(W=(D=r.props).onMouseLeave)==null||W.call(D,R),j(!1)};return m.jsxs(m.Fragment,{children:[m.jsx(Ja,{...k,withinPortal:s,children:m.jsx(Y,{...C,...E("tooltip",{style:{...gT(i,T),zIndex:y,display:!v&&H?"block":"none",top:(z&&Math.round(z))??"",left:(A&&Math.round(A))??""}}),variant:w,ref:F,mod:{multiline:x},children:p})}),b.cloneElement(r,{...r.props,[o]:P,onMouseEnter:I,onMouseLeave:M})]})});dv.classes=up;dv.displayName="@mantine/core/TooltipFloating";const $M=b.createContext(!1),XF=$M.Provider,QF=()=>b.useContext($M),ZF={openDelay:0,closeDelay:0};function _M(e){const{openDelay:t,closeDelay:n,children:r}=V("TooltipGroup",ZF,e);return m.jsx(XF,{value:!0,children:m.jsx(T3,{delay:{open:t,close:n},children:r})})}_M.displayName="@mantine/core/TooltipGroup";function ez(e){var C,T,E;const[t,n]=b.useState(!1),o=typeof e.opened=="boolean"?e.opened:t,s=QF(),i=al(),{delay:l,currentId:a,setCurrentId:c}=GT(),u=b.useCallback(N=>{n(N),N&&c(i)},[c,i]),{x:d,y:f,context:p,refs:h,update:g,placement:x,middlewareData:{arrow:{x:y,y:v}={}}}=z0({strategy:e.strategy,placement:e.position,open:o,onOpenChange:u,middleware:[VT(e.offset),D0({padding:8}),wg(),UT({element:e.arrowRef,padding:e.arrowOffset}),...e.inline?[Sg()]:[]]}),{getReferenceProps:w,getFloatingProps:S}=A3([E3(p,{enabled:(C=e.events)==null?void 0:C.hover,delay:s?l:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((T=e.events)!=null&&T.touch)}),P3(p,{enabled:(E=e.events)==null?void 0:E.focus,visibleOnly:!0}),I3(p,{role:"tooltip"}),O3(p,{enabled:typeof e.opened>"u"}),M3(p,{id:i})]);nM({opened:o,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:h,update:g}}),dr(()=>{var N;(N=e.onPositionChange)==null||N.call(e,x)},[x]);const k=o&&a&&a!==i;return{x:d,y:f,arrowX:y,arrowY:v,reference:h.setReference,floating:h.setFloating,getFloatingProps:S,getReferenceProps:w,isGroupPhase:k,opened:o,placement:x}}const zb={position:"top",refProp:"ref",withinPortal:!0,inline:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:$s("popover"),positionDependencies:[]},tz=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:kn(t),"--tooltip-bg":n?Es(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),Vs=Q((e,t)=>{const n=V("Tooltip",zb,e),{children:r,position:o,refProp:s,label:i,openDelay:l,closeDelay:a,onPositionChange:c,opened:u,withinPortal:d,radius:f,color:p,classNames:h,styles:g,unstyled:x,style:y,className:v,withArrow:w,arrowSize:S,arrowOffset:k,arrowRadius:C,arrowPosition:T,offset:E,transitionProps:N,multiline:A,events:z,zIndex:H,disabled:B,positionDependencies:F,onClick:j,onMouseEnter:P,onMouseLeave:I,inline:M,variant:R,keepMounted:D,vars:W,portalProps:Z,mod:fe,floatingStrategy:ne,...ee}=V("Tooltip",zb,n),{dir:ce}=Hf(),Ie=b.useRef(null),ze=ez({position:YT(ce,o),closeDelay:a,openDelay:l,onPositionChange:c,opened:u,events:z,arrowRef:Ie,arrowOffset:k,offset:typeof E=="number"?E+(w?S/2:0):E,positionDependencies:[...F,r],inline:M,strategy:ne}),Mn=le({name:"Tooltip",props:n,classes:up,className:v,style:y,classNames:h,styles:g,unstyled:x,rootSelector:"tooltip",vars:W,varsResolver:tz});if(!Ds(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const gr=Mt(ze.reference,r.ref,t),Kr=qF(N,{duration:100,transition:"fade"});return m.jsxs(m.Fragment,{children:[m.jsx(Ja,{...Z,withinPortal:d,children:m.jsx(Bs,{...Kr,keepMounted:D,mounted:!B&&!!ze.opened,duration:ze.isGroupPhase?10:Kr.duration,children:Ko=>m.jsxs(Y,{...ee,variant:R,mod:[{multiline:A},fe],...ze.getFloatingProps({ref:ze.floating,className:Mn("tooltip").className,style:{...Mn("tooltip").style,...Ko,zIndex:H,top:ze.y??0,left:ze.x??0}}),children:[i,m.jsx(B0,{ref:Ie,arrowX:ze.arrowX,arrowY:ze.arrowY,visible:w,position:ze.placement,arrowSize:S,arrowOffset:k,arrowRadius:C,arrowPosition:T,...Mn("arrow")})]})})}),b.cloneElement(r,ze.getReferenceProps({onClick:j,onMouseEnter:P,onMouseLeave:I,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,[s]:gr,className:at(v,r.props.className),...r.props}))]})});Vs.classes=up;Vs.displayName="@mantine/core/Tooltip";Vs.Floating=dv;Vs.Group=_M;const nz={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},fv=Q((e,t)=>{const n=V("Select",nz,e),{classNames:r,styles:o,unstyled:s,vars:i,dropdownOpened:l,defaultDropdownOpened:a,onDropdownClose:c,onDropdownOpen:u,onFocus:d,onBlur:f,onClick:p,onChange:h,data:g,value:x,defaultValue:y,selectFirstOptionOnChange:v,onOptionSubmit:w,comboboxProps:S,readOnly:k,disabled:C,filter:T,limit:E,withScrollArea:N,maxDropdownHeight:A,size:z,searchable:H,rightSection:B,checkIconPosition:F,withCheckIcon:j,nothingFoundMessage:P,name:I,form:M,searchValue:R,defaultSearchValue:D,onSearchChange:W,allowDeselect:Z,error:fe,rightSectionPointerEvents:ne,id:ee,clearable:ce,clearButtonProps:Ie,hiddenInputProps:ze,renderOption:Mn,onClear:gr,autoComplete:Kr,scrollAreaProps:Ko,...yr}=n,Le=b.useMemo(()=>D_(g),[g]),vr=b.useMemo(()=>gM(Le),[Le]),qs=al(ee),[Ot,qo,ml]=wa({value:x,defaultValue:y,finalValue:null,onChange:h}),Rn=typeof Ot=="string"?vr[Ot]:void 0,[Js,xr]=wa({value:R,defaultValue:D,finalValue:Rn?Rn.label:"",onChange:W}),Qe=SM({opened:l,defaultOpened:a,onDropdownOpen:()=>{u==null||u(),Qe.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{c==null||c(),Qe.resetSelectedOption()}}),{resolvedClassNames:Jv,resolvedStyles:Gv}=fT({props:n,styles:o,classNames:r});b.useEffect(()=>{v&&Qe.selectFirstOption()},[v,Ot]),b.useEffect(()=>{x===null&&xr(""),typeof x=="string"&&Rn&&xr(Rn.label)},[x,Rn]);const Yv=ce&&!!Ot&&!C&&!k&&m.jsx(ve.ClearButton,{size:z,...Ie,onClear:()=>{qo(null,null),xr(""),gr==null||gr()}});return m.jsxs(m.Fragment,{children:[m.jsxs(ve,{store:Qe,__staticSelector:"Select",classNames:Jv,styles:Gv,unstyled:s,readOnly:k,onOptionSubmit:on=>{w==null||w(on);const br=Z&&vr[on].value===Ot?null:vr[on],Xv=br?br.value:null;qo(Xv,br),!ml&&xr(typeof Xv=="string"&&(br==null?void 0:br.label)||""),Qe.closeDropdown()},size:z,...S,children:[m.jsx(ve.Target,{targetType:H?"input":"button",autoComplete:Kr,children:m.jsx(dl,{id:qs,ref:t,rightSection:B||Yv||m.jsx(ve.Chevron,{size:z,error:fe,unstyled:s}),rightSectionPointerEvents:ne||(Yv?"all":"none"),...yr,size:z,__staticSelector:"Select",disabled:C,readOnly:k||!H,value:Js,onChange:on=>{xr(on.currentTarget.value),Qe.openDropdown(),v&&Qe.selectFirstOption()},onFocus:on=>{H&&Qe.openDropdown(),d==null||d(on)},onBlur:on=>{var br;H&&Qe.closeDropdown(),xr(Ot!=null&&((br=vr[Ot])==null?void 0:br.label)||""),f==null||f(on)},onClick:on=>{H?Qe.openDropdown():Qe.toggleDropdown(),p==null||p(on)},classNames:Jv,styles:Gv,unstyled:s,pointer:!H,error:fe})}),m.jsx(iF,{data:Le,hidden:k||C,filter:T,search:Js,limit:E,hiddenWhenEmpty:!H||!P,withScrollArea:N,maxDropdownHeight:A,filterOptions:H&&(Rn==null?void 0:Rn.label)!==Js,value:Ot,checkIconPosition:F,withCheckIcon:j,nothingFoundMessage:P,unstyled:s,labelId:yr.label?`${qs}-label`:void 0,"aria-label":yr.label?void 0:yr["aria-label"],renderOption:Mn,scrollAreaProps:Ko})]}),m.jsx(ve.HiddenInput,{value:Ot,name:I,form:M,disabled:C,...ze})]})});fv.classes={...dl.classes,...ve.classes};fv.displayName="@mantine/core/Select";function rz({spacing:e,verticalSpacing:t,cols:n,selector:r}){var u;const o=Wn(),s=t===void 0?e:t,i=Ff({"--sg-spacing-x":sr(mh(e)),"--sg-spacing-y":sr(mh(s)),"--sg-cols":(u=mh(n))==null?void 0:u.toString()}),l=Jt(o.breakpoints).reduce((d,f)=>(d[f]||(d[f]={}),typeof e=="object"&&e[f]!==void 0&&(d[f]["--sg-spacing-x"]=sr(e[f])),typeof s=="object"&&s[f]!==void 0&&(d[f]["--sg-spacing-y"]=sr(s[f])),typeof n=="object"&&n[f]!==void 0&&(d[f]["--sg-cols"]=n[f]),d),{}),c=jD(Jt(l),o).filter(d=>Jt(l[d.value]).length>0).map(d=>({query:`(min-width: ${o.breakpoints[d.value]})`,styles:l[d.value]}));return m.jsx(pT,{styles:i,media:c,selector:r})}var FM={root:"m_2415a157"};const oz={cols:1,spacing:"md"},pv=Q((e,t)=>{const n=V("SimpleGrid",oz,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,cols:c,verticalSpacing:u,spacing:d,...f}=n,p=le({name:"SimpleGrid",classes:FM,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a}),h=mT();return m.jsxs(m.Fragment,{children:[m.jsx(rz,{...n,selector:`.${h}`}),m.jsx(Y,{ref:t,...p("root",{className:h}),...f})]})});pv.classes=FM;pv.displayName="@mantine/core/SimpleGrid";var zM={root:"m_6d731127"};const sz={gap:"md",align:"stretch",justify:"flex-start"},iz=(e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":sr(t),"--stack-align":n,"--stack-justify":r}}),Rs=Q((e,t)=>{const n=V("Stack",sz,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,align:c,justify:u,gap:d,variant:f,...p}=n,h=le({name:"Stack",props:n,classes:zM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:iz});return m.jsx(Y,{ref:t,...h("root"),variant:f,...p})});Rs.classes=zM;Rs.displayName="@mantine/core/Stack";const lz={},Kt=Q((e,t)=>{const n=V("TextInput",lz,e);return m.jsx(dl,{component:"input",ref:t,...n,__staticSelector:"TextInput"})});Kt.classes=dl.classes;Kt.displayName="@mantine/core/TextInput";const az=["h1","h2","h3","h4","h5","h6"];function cz(e,t){const n=t!==void 0?t:`h${e}`;return az.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:{fontSize:O(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var BM={root:"m_8a5d1357"};const uz={order:1},dz=(e,{order:t,size:n,lineClamp:r,textWrap:o})=>{const s=cz(t,n);return{root:{"--title-fw":s.fontWeight,"--title-lh":s.lineHeight,"--title-fz":s.fontSize,"--title-line-clamp":typeof r=="number"?r.toString():void 0,"--title-text-wrap":o}}},Ya=Q((e,t)=>{const n=V("Title",uz,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,order:a,vars:c,size:u,variant:d,lineClamp:f,textWrap:p,mod:h,...g}=n,x=le({name:"Title",props:n,classes:BM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:c,varsResolver:dz});return[1,2,3,4,5,6].includes(a)?m.jsx(Y,{...x("root"),component:`h${a}`,variant:d,ref:t,mod:[{order:a,"data-line-clamp":typeof f=="number"},h],size:u,...g}):null});Ya.classes=BM;Ya.displayName="@mantine/core/Title";var HM={root:"m_d6493fad"};const fz={},hv=Q((e,t)=>{const n=V("TypographyStylesProvider",fz,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,...a}=n,c=le({name:"TypographyStylesProvider",classes:HM,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l});return m.jsx(Y,{ref:t,...c("root"),...a})});hv.classes=HM;hv.displayName="@mantine/core/TypographyStylesProvider";const pz={display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh"},hz={borderRadius:"20px",background:"#F9EB02",color:"black"};function mz(){const e=Br(),t=Hr(),n=()=>{e("/signup")},r=lf({initialValues:{userName:"",password:""},validate:{userName:s=>/^\S+@\S+$/.test(s)?null:"Invalid email",password:s=>s.length<8?"Your password must be at least 8 characters":null}}),o=async()=>{if(r.validate(),r.isValid){const s={userName:r.values.userName,password:r.values.password};try{const i=await Ao.post(`${wt}/api/users/login`,s,{withCredentials:!0});i.status===200?(t(_E(i.data.user)),i.data.user.mentor?e("/mentor/feedbackqueue"):e("/intern/myrequests")):(console.log("API request failed"),console.log(i),alert("Something went wrong, try again"))}catch(i){console.error("Error submitting the form data:",i),console.log(i.response),alert("Something went wrong, try again")}}else return};return m.jsx(Kn,{style:pz,children:m.jsx(np,{children:m.jsxs(mr,{shadow:"xs",p:"xl",children:[m.jsx(ge,{size:"xxl",weight:700,align:"center",mb:"xl",children:"Login to Account"}),m.jsxs("form",{onSubmit:r.onSubmit(o),children:[m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsx(Kt,{withAsterisk:!0,required:!0,label:"Email",placeholder:"user@mail.com",...r.getInputProps("userName")})}),m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsx(Kt,{withAsterisk:!0,required:!0,label:"Password",type:"password",placeholder:"Enter Password",...r.getInputProps("password")})}),m.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"1.5rem"},children:m.jsx(Ve,{type:"submit",size:"sm",style:hz,children:"Login"})})]}),m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsxs(Hs,{position:"center",align:"center",spacing:"xs",children:[m.jsx(ge,{size:"lg",c:"dimmed",children:"Don't Have An Account?"}),m.jsx(Qf,{onClick:n,size:"lg",component:"button",children:"Sign Up"})]})})]})})})}const gz={display:"flex",alignItems:"center",justifyContent:"center",height:"100vh"},yz={borderRadius:"20px",background:"#F9EB02",color:"black"};function vz(){const e=Br(),t=Hr(),n=()=>{e("/login")},r=lf({initialValues:{fName:"",userName:"",password:""},validate:{fName:s=>s.length<2?"Name must have at least 2 letters":null,userName:s=>/^\S+@\S+$/.test(s)?null:"Invalid email",password:s=>s.length<8?"Your password must be at least 8 characters":null}}),o=async()=>{if(r.validate(),r.isValid()){const s={fName:r.values.fName,userName:r.values.userName,password:r.values.password};try{const i=await Ao.post(`${wt}/api/users/register`,s,{withCredentials:!0});i.status===201?(t(_E(i.data.user)),i.data.user.mentor?e("/mentor/feedbackqueue"):e("/intern/myrequests")):(console.log("API request failed"),alert("Something went wrong, try again"))}catch(i){console.error("Error submitting the form data:",i)}}};return m.jsx(Kn,{style:gz,children:m.jsx(np,{children:m.jsxs(mr,{shadow:"xs",p:"xl",children:[m.jsx(ge,{size:"xxl",weight:700,align:"center",mb:"xl",children:"Create an Account"}),m.jsxs("form",{onSubmit:r.onSubmit(o),children:[m.jsx(Kt,{withAsterisk:!0,required:!0,name:"fName",label:"Full Name",placeholder:"John Smith",...r.getInputProps("fName")}),m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsx(Kt,{withAsterisk:!0,required:!0,name:"userName",label:"Email",placeholder:"user@mail.com",...r.getInputProps("userName")})}),m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsx(Kt,{withAsterisk:!0,required:!0,name:"password",label:"Password",type:"password",placeholder:"Enter Password",...r.getInputProps("password")})}),m.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"1.5rem"},children:m.jsx(Ve,{type:"submit",size:"sm",style:yz,children:"Sign Up"})})]}),m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsxs(Hs,{position:"center",align:"center",spacing:"xs",children:[m.jsx(ge,{size:"lg",c:"dimmed",children:"Already Have An Account?"}),m.jsx(Qf,{onClick:n,size:"lg",component:"button",children:"Log In"})]})})]})})})}var VM={exports:{}},xz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bz=xz,wz=bz;function UM(){}function WM(){}WM.resetWarningCache=UM;var Sz=function(){function e(r,o,s,i,l,a){if(a!==wz){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:WM,resetWarningCache:UM};return n.PropTypes=n,n};VM.exports=Sz();var kz=VM.exports;const Jo=Bd(kz);var Cz={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},Ez=Object.defineProperty,Tz=Object.defineProperties,Mz=Object.getOwnPropertyDescriptors,Yu=Object.getOwnPropertySymbols,KM=Object.prototype.hasOwnProperty,qM=Object.prototype.propertyIsEnumerable,Bb=(e,t,n)=>t in e?Ez(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hb=(e,t)=>{for(var n in t||(t={}))KM.call(t,n)&&Bb(e,n,t[n]);if(Yu)for(var n of Yu(t))qM.call(t,n)&&Bb(e,n,t[n]);return e},Rz=(e,t)=>Tz(e,Mz(t)),Nz=(e,t)=>{var n={};for(var r in e)KM.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yu)for(var r of Yu(e))t.indexOf(r)<0&&qM.call(e,r)&&(n[r]=e[r]);return n},Us=(e,t,n)=>{const r=b.forwardRef((o,s)=>{var i=o,{color:l="currentColor",size:a=24,stroke:c=2,children:u}=i,d=Nz(i,["color","size","stroke","children"]);return b.createElement("svg",Hb(Rz(Hb({ref:s},Cz),{width:a,height:a,stroke:l,strokeWidth:c,className:`tabler-icon tabler-icon-${e}`}),d),[...n.map(([f,p])=>b.createElement(f,p)),...u||[]])});return r.propTypes={color:Jo.string,size:Jo.oneOfType([Jo.string,Jo.number]),stroke:Jo.oneOfType([Jo.string,Jo.number])},r.displayName=`${t}`,r},Oz=Us("bell","IconBell",[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]]),Pz=Us("checkup-list","IconCheckupList",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 14h.01",key:"svg-2"}],["path",{d:"M9 17h.01",key:"svg-3"}],["path",{d:"M12 16l1 1l3 -3",key:"svg-4"}]]),Az=Us("clipboard-text","IconClipboardText",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 12h6",key:"svg-2"}],["path",{d:"M9 16h6",key:"svg-3"}]]),jz=Us("file-plus","IconFilePlus",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}],["path",{d:"M12 11l0 6",key:"svg-2"}],["path",{d:"M9 14l6 0",key:"svg-3"}]]),Iz=Us("list-details","IconListDetails",[["path",{d:"M13 5h8",key:"svg-0"}],["path",{d:"M13 9h5",key:"svg-1"}],["path",{d:"M13 15h8",key:"svg-2"}],["path",{d:"M13 19h5",key:"svg-3"}],["path",{d:"M3 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-4"}],["path",{d:"M3 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-5"}]]),Lz=Us("logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]),JM=Us("user","IconUser",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]]);function Vb({to:e,icon:t,label:n,active:r,onClick:o}){const s={width:O(50),height:O(50),borderRadius:"var(--mantine-radius-md)",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--mantine-color-black)"};return r&&(s.boxShadow="var(--mantine-shadow-sm)",s.backgroundColor="var(--mantine-color-white)",s.color="var(--mantine-color-black)"),m.jsx(Vs,{label:n,position:"bottom-start",offset:5,children:m.jsx(Ym,{to:e,children:m.jsx("div",{onClick:o,style:s,"data-active":r||void 0,children:rt.createElement(t,{style:{width:O(20),height:O(20),stroke:1.5}})})})})}function GM({navItems:e}){const[t,n]=b.useState(0),r=zo(),o=Hr();b.useEffect(()=>{r.pathname==="/intern/requestform"||r.pathname==="/mentor/feedbackqueue"?n(0):r.pathname==="/intern/myrequests"||r.pathname==="/mentor/assigned"?n(1):n(2)},[r.pathname]);const s=e.map((c,u)=>m.jsx(Vb,{to:c.to,icon:c.icon,label:c.label,active:u===t,onClick:()=>n(u)},c.label)),i=()=>{o(Zc())},l={width:O(80),height:"100vh",padding:"var(--mantine-spacing-md)",display:"flex",flexDirection:"column",backgroundColor:"#F9EB02",position:"fixed",top:"0",bottom:"0"},a={flex:1,marginTop:O(50)};return m.jsxs("nav",{style:l,children:[m.jsx("div",{style:a,children:m.jsx(Rs,{justify:"center",gap:160,children:s})}),m.jsx(Rs,{justify:"center",gap:0,children:m.jsx(Vb,{to:"/",icon:Lz,label:"Logout",onClick:i})})]})}const Dz={feedbackRequests:[],assignedFeedbackRequests:[],feedbacks:[],selectedFeedback:null,loading:"idle",error:null},Ws=(e,t,n="get")=>a0(e,async(r,o)=>{try{let s=t;return typeof r=="number"&&(s=`${t}${r}`),typeof r=="object"&&r.id&&(s=`${t}${r.id}`),(await Ao({method:n,url:s,data:typeof r=="object"?r:void 0,withCredentials:!0})).data}catch(s){return o.rejectWithValue(s.response.data)}}),su=Ws("feedback/create",`${wt}/api/feedback/submitfeedback`,"post"),YM=Ws("feedback/add",`${wt}/api/feedback/addFeedBack/`,"post"),$z=Ws("feedback/assign",`${wt}/api/feedback/assignFeedBackToMentor/`,"post"),iu=Ws("feedback/getAssign",`${wt}/api/feedback/getAssignedFeedBacks`),Wl=Ws("feedback/fetchAll",`${wt}/api/feedback/getfeedbackrequestForms`),_z=Ws("feedback/fetchAll",`${wt}/api/feedback/getUserFeedBackRequestForms`),Ub=a0("feedback/getSelectedRequest",`${wt}/api/feedback/getfeedbackid/`),Fz=Ws("feedback/markComplete",`${wt}/api/feedback/markFeedBackRequestComplete/`,"get"),zz=mE({name:"feedback",initialState:Dz,reducers:{},extraReducers:e=>{e.addCase(Wl.fulfilled,(t,n)=>{const{data:r}=n.payload;r?(t.feedbackRequests=r.sort((o,s)=>o.createdAt.localeCompare(s.createdAt)),t.loading="succeeded"):(t.loading="failed",t.error=n.payload?n.payload:"Error fetching feedback requests // data structure")}).addCase(Wl.pending,t=>{t.loading="loading"}).addCase(Wl.rejected,(t,n)=>{t.loading="failed",t.error=n.payload?n.payload:"Error fetching feedback requests"}).addCase(su.fulfilled,(t,n)=>{const{data:r}=n.payload;r?(t.feedbackRequests=r,t.loading="succeeded"):(t.loading="failed",t.error=n.payload?n.payload:"Error creating feedback request // data structure")}).addCase(su.pending,t=>{t.loading="loading"}).addCase(su.rejected,(t,n)=>{t.loading="failed",t.error=n.payload?n.payload:"Error creating feedback request"}).addCase(iu.fulfilled,(t,n)=>{const{data:r}=n.payload;r?(t.assignedFeedbackRequests=r.sort((o,s)=>o.updatedAt.localeCompare(s.updatedAt)),t.loading="succeeded"):(t.loading="failed",t.error=n.payload?n.payload:"Error fetching assigned feedback requests // data structure")}).addCase(iu.pending,t=>{t.loading="loading"}).addCase(iu.rejected,(t,n)=>{t.loading="failed",t.error=n.payload?n.payload:"Error fetching assigned feedback requests"}).addCase(YM.fulfilled,(t,n)=>{const{data:r}=n.payload;r?(t.feedbacks=r,t.loading="succeeded"):(t.loading="failed",t.error=n.payload?n.payload:"Error posting feedbacks")}).addCase(Ub.fulfilled,(t,n)=>{t.selectedFeedback=n.payload,t.loading="succeeded"}).addCase(Ub.rejected,(t,n)=>{t.loading="failed",t.error=n.payload?n.payload:"Error fetching selected feedback."})}}),Bz=zz.reducer,Hz={padding:40,display:"flex",flexDirection:"column",alignItems:"center",width:500},Vz={width:"100%",display:"flex",flexDirection:"column",flex:1},Wb={marginBottom:20},Uz={marginBottom:20,fontSize:24},Kb=["HTML","CSS","Media Queries/Responsive Design","Bootstrap","JavaScript and the DOM","jQuery","React","Structured/Unstructured Data (MySQL)","MVC Architecture (Express JS)","API Integration","React/jQuery"];function Wz(){const e=Hr(),t=Ba(l=>l.feedbackSlice.loading),[n,{open:r,close:o}]=Co(!1),s=lf({initialValues:{topicOfLearningSession:null,codeLink:""},validate:{topicOfLearningSession:l=>Kb.some(a=>l==null?void 0:l.includes(a))?null:"Please select a topic",codeLink:l=>l<1?"You must enter a valid link":null}}),i=()=>{e(su(s.values)),e(Wl()),t==="succeeded"&&r(),s.setValues({topicOfLearningSession:null,codeLink:""})};return m.jsx(Kn,{fluid:!0,h:0,size:"lg",children:m.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:[m.jsx(bt,{opened:n,onClose:o,withCloseButton:!1,children:"Feedback Request submitted!"}),m.jsx("form",{onSubmit:s.onSubmit(i),children:m.jsxs(mr,{shadow:"xs",style:Hz,children:[m.jsx(ge,{size:"xl",weight:700,style:Uz,children:"Request Feedback"}),m.jsxs("div",{style:Vz,children:[m.jsx(fv,{label:"Topic of Learning Session",placeholder:"Select the topic of the learning session",style:Wb,data:Kb,...s.getInputProps("topicOfLearningSession")}),m.jsx(Kt,{variant:"filled",style:Wb,id:"codeLink",label:"Code Link",placeholder:"Enter code link",...s.getInputProps("codeLink")}),m.jsx(Ve,{variant:"filled",size:"lg",color:"#F9EB02",style:{color:"black"},type:"submit",children:"Submit Request"})]})]})})]})})}function Tg(e){try{const t=new Date(e),n=new Date,r=t.getTimezoneOffset();t.setMinutes(t.getMinutes()-r);const o=n-t,s=Math.floor(o/(1e3*60*60*24)),i=new Intl.RelativeTimeFormat("en",{numeric:"auto"});return s===0?"Created today":s===1?"Created yesterday":`Created: ${i.format(-s,"day")}`}catch(t){return console.error("Error formatting date:",t),"Error formatting date"}}function Kz(e){try{const t=new Date(e),r=new Date-t;return Math.floor(r/(1e3*60*60))>=48}catch(t){return console.error("Error formatting date:",t),"Error formatting date"}}const qz={zIndex:"1",marginLeft:"90px"};function mv({showAddFeedback:e,showComplete:t,isAssign:n,pageTitle:r,showViewFeedback:o,data:s,isMentor:i,gotoDashboard:l,isLoading:a,user:c}){const[u,d]=b.useState([]),[f,p]=b.useState({}),[h,g]=b.useState(s),[x,{open:y,close:v}]=Co(!1),[w,{open:S,close:k}]=Co(!1),[C,{open:T,close:E}]=Co(!1),N=Ba(P=>P.feedbackSlice.loading),A=Br(),z=Hr();b.useEffect(()=>{g(s)},[s]);const H=P=>{const M=h.map(R=>R.id===P?{...R,completed:!R.completed}:R).filter(R=>!R.completed);g(M),z(Fz(P)),N==="succeeded"&&S()},B=P=>{const I=h.find(M=>M.id===P);I&&(d([...u,I]),z($z(P)),N==="succeeded"&&y())},F=()=>{c!=null&&c.mentor?A("/mentor/feedbackqueue"):A("/intern/myrequests")},j=(P,I)=>{f[P]||p(M=>({...M,[P]:!0})),N==="succeeded"&&T()};return m.jsxs(Kn,{fluid:!0,h:0,style:qz,children:[m.jsx(ge,{align:"center",size:"xl",style:{marginBottom:"20px",marginTop:"10px"},children:r}),m.jsx(bt,{opened:x,onClose:v,withCloseButton:!1,children:"Feedback request has been assigned to you !!!"}),m.jsx(bt,{opened:w,onClose:k,withCloseButton:!1,children:"Exercise has been marked completed !!!"}),m.jsx(bt,{opened:C,onClose:E,withCloseButton:!1,children:"Mentor Has Been Notified"}),a?m.jsx("div",{children:"Loading..."}):h&&h.length>0?m.jsx(Rs,{gap:10,children:h.map((P,I)=>m.jsxs(mr,{shadow:"xs",p:"sm",withBorder:!0,style:{display:"flex",justifyContent:"space-between"},children:[m.jsxs("div",{children:[c!=null&&c.mentor?m.jsxs(ge,{children:["Intern Name: ",P.studentName]}):m.jsxs(ge,{children:[P.whoisAssigned?"Reviewer Name:":"Reviewer Name: Not Assigned"," ",P.whoisAssigned]}),m.jsxs(ge,{children:["Topic Of Learning Session: ",P.topicOfLearningSession]}),m.jsxs(ge,{children:["Completed: ",P.status?"Yes":"No"]}),m.jsxs(ge,{children:["Link to exercise: ",m.jsx("a",{href:P.codeLink,children:P.codeLink})]}),m.jsx(ge,{children:Tg(P.createdAt)}),P.whoisAssigned?m.jsxs(ge,{children:["Assigned to: ",P.whoisAssigned]}):null]}),m.jsxs(Rs,{direction:"horizontal",spacing:"sm",style:{justifyContent:"space-between",width:"160px"},children:[e&&m.jsx(Ym,{to:`/feedback/${P.id}`,children:m.jsx(Ve,{style:{color:"black",width:"100%"},color:"#F9EB02",children:"Add Feedback"})}),o&&m.jsx(Ym,{to:`/feedback/${P.id}`,children:m.jsx(Ve,{style:{color:"black",width:"100%"},color:"#F9EB02",children:"View Feedback"})}),location.pathname==="/intern/myrequests"&&Kz(P.createdAt)&&m.jsx(Ve,{onClick:()=>j(P.id),disabled:f[P.id],leftSection:m.jsx(Oz,{size:14}),style:{color:"black"},color:"#F9EB02",children:f[P.id]?"Mentor Notified":"Notify Mentor"}),t&&!P.completed&&m.jsx(Ve,{style:{color:"black"},color:"#F9EB02",onClick:()=>H(P.id),children:"Complete"}),l&&m.jsx(Ve,{style:{color:"black"},color:"#F9EB02",onClick:F,children:"Go to Dashboard"}),n&&m.jsx(Ve,{style:{color:"black"},color:"#F9EB02",onClick:()=>B(P.id),children:"Assign"})]})]},P.id))}):m.jsx("div",{children:"No items to display."})]})}function Jz(e){const t=Hr(),n=Ba(r=>r.feedbackSlice.feedbackRequests);return b.useEffect(()=>{t(_z())},[t]),m.jsx("div",{children:m.jsx(mv,{showViewFeedback:!0,data:n,pageTitle:"MY FEEDBACK REQUESTS",user:e.user})})}const Gz={padding:40,display:"flex",flexDirection:"column",alignItems:"center",width:500},Yz={width:"100%",display:"flex",flexDirection:"column",flex:1},Rc={marginBottom:20},Xz={marginBottom:20,fontSize:24};function XM({user:e}){const[t,{open:n,close:r}]=Co(!1),o=lf({initialValues:{fName:e.fName,email:e.username,newPassword:"",confirmPassword:""},validate:{email:i=>/^\S+@\S+$/.test(i)?null:"Invalid email"}}),s=async()=>{try{const i={fName:o.values.fName,username:o.values.email,newPassword:o.values.newPassword,oldPassword:o.values.oldPassword};(await Ao.patch(`${wt}/api/users/updateaccount`,i,{withCredentials:!0})).status===200&&n()}catch(i){console.log(i)}};return m.jsx(Kn,{fluid:!0,h:0,size:"lg",children:m.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:[m.jsx(bt,{opened:t,onClose:r,withCloseButton:!1,children:"Account details have successfully been updated"}),m.jsx("form",{onSubmit:o.onSubmit(s),children:m.jsxs(mr,{shadow:"xs",style:Gz,children:[m.jsx(ge,{size:"xl",weight:700,style:Xz,children:"My Account"}),m.jsxs("div",{style:Yz,children:[m.jsx(Kt,{variant:"filled",style:Rc,id:"fName",label:"Full Name",placeholder:e.fName,...o.getInputProps("fName")}),m.jsx(Kt,{variant:"filled",style:Rc,id:"email",label:"Email",placeholder:e.username,...o.getInputProps("email")}),m.jsx(Kt,{variant:"filled",style:Rc,id:"password",label:"New Password",placeholder:"Enter New Password",...o.getInputProps("newPassword")}),m.jsx(Kt,{variant:"filled",style:Rc,id:"oldPassword",label:"Old Password",placeholder:"Enter Old Password",...o.getInputProps("oldPassword")}),m.jsx(Ve,{variant:"filled",size:"lg",color:"#F9EB02",style:{color:"black"},type:"submit",children:"Save"})]})]})})]})})}function QM({user:e}){return m.jsx("div",{style:{position:"absolute",right:"20px",top:"0"},children:m.jsxs("p",{children:["Welcome, ",m.jsxs("span",{children:[e.fName?e.fName:"","!!"]})]})})}function Qz(e){const t=[{icon:jz,label:"Create Feedback request",to:"requestform"},{icon:Az,label:"Feedback Requests",to:"myrequests"},{icon:JM,label:"Account",to:"account"}],n=zo();return m.jsxs("div",{style:{display:"flex",flexDirection:"column-reverse"},children:[m.jsx(QM,{user:e.user}),m.jsx(GM,{navItems:t}),m.jsxs(Xy,{location:n,children:[m.jsx(yt,{path:"/requestform",element:m.jsx(Wz,{active:0,user:e.user})}),m.jsx(yt,{path:"/myrequests",element:m.jsx(Jz,{active:1,user:e.user})}),m.jsx(yt,{path:"/account",element:m.jsx(XM,{active:2,user:e.user})})]})]})}function Zz(e){const t=Hr(),n=Ba(r=>r.feedbackSlice.feedbackRequests);return b.useEffect(()=>{t(Wl())},[t]),m.jsx("div",{children:m.jsx(mv,{isAssign:!0,data:n,pageTitle:"FEEDBACK QUEUE",user:e.user})})}function e5(e){const t=Hr(),n=Ba(r=>r.feedbackSlice.assignedFeedbackRequests);return b.useEffect(()=>{t(iu())},[t]),m.jsx("div",{children:m.jsx(mv,{data:n,showAddFeedback:!0,showComplete:!0,pageTitle:"MY ASSIGNED FEEDBACKS",user:e.user})})}function t5(e){const t=[{icon:Iz,label:"Feedback Queue",to:"feedbackqueue"},{icon:Pz,label:"Assigned Feedback",to:"assigned"},{icon:JM,label:"Account",to:"account"}],n=zo();return m.jsxs("div",{style:{display:"flex",flexDirection:"column-reverse",position:"relative"},children:[m.jsx(QM,{user:e.user}),m.jsx(GM,{navItems:t}),m.jsxs(Xy,{location:n,children:[m.jsx(yt,{path:"/feedbackqueue",element:m.jsx(Zz,{active:0,user:e.user})}),m.jsx(yt,{path:"assigned",element:m.jsx(e5,{active:1,user:e.user})}),m.jsx(yt,{path:"account",element:m.jsx(XM,{active:2,user:e.user})})]})]})}function nt(e){this.content=e}nt.prototype={constructor:nt,find:function(e){for(var t=0;t>1}};nt.from=function(e){if(e instanceof nt)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new nt(t)};function ZM(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(r),s=t.child(r);if(o==s){n+=o.nodeSize;continue}if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){for(let i=0;o.text[i]==s.text[i];i++)n++;return n}if(o.content.size||s.content.size){let i=ZM(o.content,s.content,n+1);if(i!=null)return i}n+=o.nodeSize}}function e2(e,t,n,r){for(let o=e.childCount,s=t.childCount;;){if(o==0||s==0)return o==s?null:{a:n,b:r};let i=e.child(--o),l=t.child(--s),a=i.nodeSize;if(i==l){n-=a,r-=a;continue}if(!i.sameMarkup(l))return{a:n,b:r};if(i.isText&&i.text!=l.text){let c=0,u=Math.min(i.text.length,l.text.length);for(;ct&&r(a,o+l,s||null,i)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,t-u),Math.min(a.content.size,n-u),r,o+u)}l=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,o){let s="",i=!0;return this.nodesBetween(t,n,(l,a)=>{let c=l.isText?l.text.slice(Math.max(t,a)-a,n-a):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(i?i=!1:s+=r),s+=c},0),s}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,o=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),s=1);st)for(let s=0,i=0;it&&((in)&&(l.isText?l=l.cut(Math.max(0,t-i),Math.min(l.text.length,n-i)):l=l.cut(Math.max(0,t-i-1),Math.min(l.content.size,n-i-1))),r.push(l),o+=l.nodeSize),i=a}return new $(r,o)}cutByIndex(t,n){return t==n?$.empty:t==0&&n==this.content.length?this:new $(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let o=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return o[t]=n,new $(o,s)}addToStart(t){return new $([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new $(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,o=0;;r++){let s=this.child(r),i=o+s.nodeSize;if(i>=t)return i==t||n>0?Nc(r+1,i):Nc(r,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return $.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new $(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return $.empty;let n,r=0;for(let o=0;othis.type.rank&&(n||(n=t.slice(0,o)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;nr.type.rank-o.type.rank),n}};ye.none=[];class Qu extends Error{}class q{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=n2(this.content,t+this.openStart,n);return r&&new q(r,this.openStart,this.openEnd)}removeBetween(t,n){return new q(t2(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return q.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new q($.fromJSON(t,n.content),r,o)}static maxOpen(t,n=!0){let r=0,o=0;for(let s=t.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=t.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)o++;return new q(t,r,o)}}q.empty=new q($.empty,0,0);function t2(e,t,n){let{index:r,offset:o}=e.findIndex(t),s=e.maybeChild(r),{index:i,offset:l}=e.findIndex(n);if(o==t||s.isText){if(l!=n&&!e.child(i).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=i)throw new RangeError("Removing non-flat range");return e.replaceChild(r,s.copy(t2(s.content,t-o-1,n-o-1)))}function n2(e,t,n,r){let{index:o,offset:s}=e.findIndex(t),i=e.maybeChild(o);if(s==t||i.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=n2(i.content,t-s-1,n);return l&&e.replaceChild(o,i.copy(l))}function n5(e,t,n){if(n.openStart>e.depth)throw new Qu("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Qu("Inconsistent open depths");return r2(e,t,n,0)}function r2(e,t,n,r){let o=e.index(r),s=e.node(r);if(o==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Kl(e,t,n,r){let o=(t||e).node(n),s=0,i=t?t.index(n):o.childCount;e&&(s=e.index(n),e.depth>n?s++:e.textOffset&&(ps(e.nodeAfter,r),s++));for(let l=s;lo&&Rg(e,t,o+1),i=r.depth>o&&Rg(n,r,o+1),l=[];return Kl(null,e,o,l),s&&i&&t.index(o)==n.index(o)?(o2(s,i),ps(hs(s,s2(e,t,n,r,o+1)),l)):(s&&ps(hs(s,Zu(e,t,o+1)),l),Kl(t,n,o,l),i&&ps(hs(i,Zu(n,r,o+1)),l)),Kl(r,null,o,l),new $(l)}function Zu(e,t,n){let r=[];if(Kl(null,e,n,r),e.depth>n){let o=Rg(e,t,n+1);ps(hs(o,Zu(e,t,n+1)),r)}return Kl(t,null,n,r),new $(r)}function r5(e,t){let n=t.depth-e.openStart,o=t.node(n).copy(e.content);for(let s=n-1;s>=0;s--)o=t.node(s).copy($.from(o));return{start:o.resolveNoCache(e.openStart+n),end:o.resolveNoCache(o.content.size-e.openEnd-n)}}class Ea{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=t.child(n);return r?t.child(n).cut(r):o}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let s=0;s0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new ed(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,s=n;for(let i=t;;){let{index:l,offset:a}=i.content.findIndex(s),c=s-a;if(r.push(i,l,o+a),!c||(i=i.child(l),i.isText))break;s=c-1,o+=a+1}return new Ea(n,r,s)}static resolveCached(t,n){for(let o=0;ot&&this.nodesBetween(t,n,s=>(r.isInSet(s.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),i2(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=$.empty,o=0,s=r.childCount){let i=this.contentMatchAt(t).matchFragment(r,o,s),l=i&&i.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=o;an.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let o=$.fromJSON(t,n.content);return t.nodeType(n.type).create(n.attrs,o,r)}};ms.prototype.text=void 0;class td extends ms{constructor(t,n,r,o){if(super(t,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):i2(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new td(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new td(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function i2(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Ns{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new i5(t,n);if(r.next==null)return Ns.empty;let o=l2(r);r.next&&r.err("Unexpected trailing text");let s=p5(f5(o));return h5(s,r),s}matchType(t){for(let n=0;nc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let o=0;o{let s=o+(r.validEnd?"*":" ")+" ";for(let i=0;i"+t.indexOf(r.next[i].next);return s}).join(` +`}function uT({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=Wn(),r=v0(),o=QD(),s=b$({theme:n,generator:o}),i=e===":root"&&t,l=i?w$(s):s,a=y$(l,e);return a?m.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${a}${i?"":S$(e)}`}}):null}uT.displayName="@mantine/CssVariables";function k$(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function ei(e,t){var r;const n=e!=="auto"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";(r=t())==null||r.setAttribute("data-mantine-color-scheme",n)}function C$({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const o=b.useRef(),[s,i]=b.useState(()=>e.get(t)),l=r||s,a=b.useCallback(u=>{r||(ei(u,n),i(u),e.set(u))},[e.set,l,r]),c=b.useCallback(()=>{i(t),ei(t,n),e.clear()},[e.clear,t]);return b.useEffect(()=>(e.subscribe(a),e.unsubscribe),[e.subscribe,e.unsubscribe]),Ua(()=>{ei(e.get(t),n)},[]),b.useEffect(()=>{var d;if(r)return ei(r,n),()=>{};r===void 0&&ei(s,n),o.current=window.matchMedia("(prefers-color-scheme: dark)");const u=f=>{s==="auto"&&ei(f.matches?"dark":"light",n)};return(d=o.current)==null||d.addEventListener("change",u),()=>{var f;return(f=o.current)==null?void 0:f.removeEventListener("change",u)}},[s,r]),{colorScheme:l,setColorScheme:a,clearColorScheme:c}}function E$({respectReducedMotion:e,getRootElement:t}){Ua(()=>{var n;e&&((n=t())==null||n.setAttribute("data-respect-reduced-motion","true"))},[e])}k$();function dT({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:o=!0,deduplicateCssVariables:s=!0,withCssVariables:i=!0,cssVariablesSelector:l=":root",classNamesPrefix:a="mantine",colorSchemeManager:c=f$(),defaultColorScheme:u="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:h}){const{colorScheme:g,setColorScheme:x,clearColorScheme:y}=C$({defaultColorScheme:u,forceColorScheme:p,manager:c,getRootElement:d});return E$({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:d}),m.jsx(lT.Provider,{value:{colorScheme:g,setColorScheme:x,clearColorScheme:y,getRootElement:d,classNamesPrefix:a,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:l,withStaticClasses:r,stylesTransform:h},children:m.jsxs(aT,{theme:e,children:[i&&m.jsx(uT,{cssVariablesSelector:l,deduplicateCssVariables:s}),o&&m.jsx(g$,{}),t]})})}dT.displayName="@mantine/core/MantineProvider";function fT({classNames:e,styles:t,props:n,stylesCtx:r}){const o=Wn();return{resolvedClassNames:Bf({theme:o,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:Wu({theme:o,styles:t,props:n,stylesCtx:r||void 0})}}const T$={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function M$({theme:e,options:t,unstyled:n}){return at((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||T$[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function R$({selector:e,stylesCtx:t,options:n,props:r,theme:o}){return Bf({theme:o,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:t})[e]}function ob({selector:e,stylesCtx:t,theme:n,classNames:r,props:o}){return Bf({theme:n,classNames:r,props:o,stylesCtx:t})[e]}function N$({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function O$({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function P$({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(o=>`${t}-${o}-${n}`)}function A$({themeName:e,theme:t,selector:n,props:r,stylesCtx:o}){return e.map(s=>{var i,l;return(l=Bf({theme:t,classNames:(i=t.components[s])==null?void 0:i.classNames,props:r,stylesCtx:o}))==null?void 0:l[n]})}function j$({options:e,classes:t,selector:n,unstyled:r}){return e!=null&&e.variant&&!r?t[`${n}--${e.variant}`]:void 0}function I$({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:o,classNames:s,classes:i,unstyled:l,className:a,rootSelector:c,props:u,stylesCtx:d,withStaticClasses:f,headless:p,transformedStyles:h}){return at(M$({theme:e,options:t,unstyled:l||p}),A$({theme:e,themeName:n,selector:r,props:u,stylesCtx:d}),j$({options:t,classes:i,selector:r,unstyled:l}),ob({selector:r,stylesCtx:d,theme:e,classNames:s,props:u}),ob({selector:r,stylesCtx:d,theme:e,classNames:h,props:u}),R$({selector:r,stylesCtx:d,options:t,props:u,theme:e}),N$({rootSelector:c,selector:r,className:a}),O$({selector:r,classes:i,unstyled:l||p}),f&&!p&&P$({themeName:n,classNamesPrefix:o,selector:r,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function L$({theme:e,themeName:t,props:n,stylesCtx:r,selector:o}){return t.map(s=>{var i;return Wu({theme:e,styles:(i=e.components[s])==null?void 0:i.styles,props:n,stylesCtx:r})[o]}).reduce((s,i)=>({...s,...i}),{})}function mg({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...mg({style:r,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function D$(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{t[r]={...t[r],...Ff(n[r])}}),t),{})}function $$({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:o,selector:s,themeName:i,headless:l}){var a;return(a=D$([l?{}:t==null?void 0:t(n,r,o),...i.map(c=>{var u,d,f;return(f=(d=(u=n.components)==null?void 0:u[c])==null?void 0:d.vars)==null?void 0:f.call(d,n,r,o)}),e==null?void 0:e(n,r,o)]))==null?void 0:a[s]}function _$({theme:e,themeName:t,selector:n,options:r,props:o,stylesCtx:s,rootSelector:i,styles:l,style:a,vars:c,varsResolver:u,headless:d,withStylesTransform:f}){return{...!f&&L$({theme:e,themeName:t,props:o,stylesCtx:s,selector:n}),...!f&&Wu({theme:e,styles:l,props:o,stylesCtx:s})[n],...!f&&Wu({theme:e,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||o,stylesCtx:s})[n],...$$({theme:e,props:o,stylesCtx:s,vars:c,varsResolver:u,selector:n,themeName:t,headless:d}),...i===n?mg({style:a,theme:e}):null,...mg({style:r==null?void 0:r.style,theme:e})}}function F$({props:e,stylesCtx:t,themeName:n}){var i;const r=Wn(),o=(i=r$())==null?void 0:i();return{getTransformedStyles:l=>o?[...l.map(c=>o(c,{props:e,theme:r,ctx:t})),...n.map(c=>{var u;return o((u=r.components[c])==null?void 0:u.styles,{props:e,theme:r,ctx:t})})].filter(Boolean):[],withStylesTransform:!!o}}function le({name:e,classes:t,props:n,stylesCtx:r,className:o,style:s,rootSelector:i="root",unstyled:l,classNames:a,styles:c,vars:u,varsResolver:d}){const f=Wn(),p=ZD(),h=e$(),g=t$(),x=(Array.isArray(e)?e:[e]).filter(w=>w),{withStylesTransform:y,getTransformedStyles:v}=F$({props:n,stylesCtx:r,themeName:x});return(w,S)=>({className:I$({theme:f,options:S,themeName:x,selector:w,classNamesPrefix:p,classNames:a,classes:t,unstyled:l,className:o,rootSelector:i,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:v([S==null?void 0:S.styles,c])}),style:_$({theme:f,themeName:x,selector:w,options:S,props:n,stylesCtx:r,rootSelector:i,styles:c,style:s,vars:u,varsResolver:d,headless:g,withStylesTransform:y})})}function V(e,t,n){var i;const r=Wn(),o=(i=r.components[e])==null?void 0:i.defaultProps,s=typeof o=="function"?o(r):o;return{...t,...s,...Ff(n)}}function sb(e){return Jt(e).reduce((t,n)=>e[n]!==void 0?`${t}${TD(n)}:${e[n]};`:t,"").trim()}function z$({selector:e,styles:t,media:n}){const r=t?sb(t):"",o=Array.isArray(n)?n.map(s=>`@media${s.query}{${e}{${sb(s.styles)}}}`):[];return`${r?`${e}{${r}}`:""}${o.join("")}`.trim()}function pT({selector:e,styles:t,media:n}){const r=v0();return m.jsx("style",{"data-mantine-styles":"inline",nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:z$({selector:e,styles:t,media:n})}})}function S0(e){const{m:t,mx:n,my:r,mt:o,mb:s,ml:i,mr:l,me:a,ms:c,p:u,px:d,py:f,pt:p,pb:h,pl:g,pr:x,pe:y,ps:v,bg:w,c:S,opacity:k,ff:C,fz:T,fw:E,lts:N,ta:A,lh:z,fs:H,tt:B,td:F,w:j,miw:P,maw:I,h:M,mih:R,mah:D,bgsz:W,bgp:Z,bgr:fe,bga:ne,pos:ee,top:ce,left:Ie,bottom:ze,right:Mn,inset:gr,display:Kr,flex:Ko,hiddenFrom:yr,visibleFrom:Le,lightHidden:vr,darkHidden:qs,sx:Ot,...qo}=e;return{styleProps:Ff({m:t,mx:n,my:r,mt:o,mb:s,ml:i,mr:l,me:a,ms:c,p:u,px:d,py:f,pt:p,pb:h,pl:g,pr:x,pe:y,ps:v,bg:w,c:S,opacity:k,ff:C,fz:T,fw:E,lts:N,ta:A,lh:z,fs:H,tt:B,td:F,w:j,miw:P,maw:I,h:M,mih:R,mah:D,bgsz:W,bgp:Z,bgr:fe,bga:ne,pos:ee,top:ce,left:Ie,bottom:ze,right:Mn,inset:gr,display:Kr,flex:Ko,hiddenFrom:yr,visibleFrom:Le,lightHidden:vr,darkHidden:qs,sx:Ot}),rest:qo}}const B$={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"},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:"identity",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 hT(e,t){const n=Wa({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 H$(e,t){const n=Wa({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:hT(e,t)}const ib={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 V$(e){return typeof e=="string"&&e in ib?ib[e]:e}const U$=["h1","h2","h3","h4","h5","h6"];function W$(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&U$.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?O(e):e}function K$(e){return e}const q$=["h1","h2","h3","h4","h5","h6"];function J$(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&q$.includes(e)?`var(--mantine-${e}-line-height)`:e}function G$(e){return typeof e=="number"?O(e):e}function Y$(e,t){if(typeof e=="number")return O(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return O(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e}const wh={color:hT,textColor:H$,fontSize:W$,spacing:Y$,identity:K$,size:G$,lineHeight:J$,fontFamily:V$};function lb(e){return e.replace("(min-width: ","").replace("em)","")}function X$({media:e,...t}){const r=Object.keys(e).sort((o,s)=>Number(lb(o))-Number(lb(s))).map(o=>({query:o,styles:e[o]}));return{...t,media:r}}function Q$(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function Z$(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function e4(e){return typeof e=="object"&&e!==null?Jt(e).filter(t=>t!=="base"):[]}function t4(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function n4({styleProps:e,data:t,theme:n}){return X$(Jt(e).reduce((r,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return r;const s=t[o],i=Array.isArray(s.property)?s.property:[s.property],l=Z$(e[o]);if(!Q$(e[o]))return i.forEach(c=>{r.inlineStyles[c]=wh[s.type](l,n)}),r;r.hasResponsiveStyles=!0;const a=e4(e[o]);return i.forEach(c=>{l&&(r.styles[c]=wh[s.type](l,n)),a.forEach(u=>{const d=`(min-width: ${n.breakpoints[u]})`;r.media[d]={...r.media[d],[c]:wh[s.type](t4(e[o],u),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function mT(){return`__m__-${b.useId().replace(/:/g,"")}`}function gT(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...gT(r,t)}),{}):typeof e=="function"?e(t):e??{}}function yT(e){return e.startsWith("data-")?e:`data-${e}`}function r4(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r===void 0||r===""||r===!1||r===null||(t[yT(n)]=e[n]),t},{})}function vT(e){return e?typeof e=="string"?{[yT(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...vT(n)}),{}):r4(e):null}function gg(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...gg(r,t)}),{}):typeof e=="function"?e(t):e??{}}function o4({theme:e,style:t,vars:n,styleProps:r}){const o=gg(t,e),s=gg(n,e);return{...o,...s,...r}}const xT=b.forwardRef(({component:e,style:t,__vars:n,className:r,variant:o,mod:s,size:i,hiddenFrom:l,visibleFrom:a,lightHidden:c,darkHidden:u,renderRoot:d,...f},p)=>{var T;const h=Wn(),g=e||"div",{styleProps:x,rest:y}=S0(f),v=n$(),w=(T=v==null?void 0:v())==null?void 0:T(x.sx),S=mT(),k=n4({styleProps:x,theme:h,data:B$}),C={ref:p,style:o4({theme:h,style:t,vars:n,styleProps:k.inlineStyles}),className:at(r,w,{[S]:k.hasResponsiveStyles,"mantine-light-hidden":c,"mantine-dark-hidden":u,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${a}`]:a}),"data-variant":o,"data-size":JE(i)?void 0:i||void 0,...vT(s),...y};return m.jsxs(m.Fragment,{children:[k.hasResponsiveStyles&&m.jsx(pT,{selector:`.${S}`,styles:k.styles,media:k.media}),typeof d=="function"?d(C):m.jsx(g,{...C})]})});xT.displayName="@mantine/core/Box";const Y=xT;function bT(e){return e}function Q(e){const t=b.forwardRef(e);return t.extend=bT,t}function Rt(e){const t=b.forwardRef(e);return t.extend=bT,t}const s4=b.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Hf(){return b.useContext(s4)}const[i4,Cn]=Bo("ScrollArea.Root component was not found in tree");function Ki(e,t){const n=Qo(t);Ua(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}const l4=b.forwardRef((e,t)=>{const{style:n,...r}=e,o=Cn(),[s,i]=b.useState(0),[l,a]=b.useState(0),c=!!(s&&l);return Ki(o.scrollbarX,()=>{var d;const u=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(u),a(u)}),Ki(o.scrollbarY,()=>{var d;const u=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(u),i(u)}),c?m.jsx("div",{...r,ref:t,style:{...n,width:s,height:l}}):null}),a4=b.forwardRef((e,t)=>{const n=Cn(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?m.jsx(l4,{...e,ref:t}):null}),c4={scrollHideDelay:1e3,type:"hover"},wT=b.forwardRef((e,t)=>{const n=V("ScrollAreaRoot",c4,e),{type:r,scrollHideDelay:o,scrollbars:s,...i}=n,[l,a]=b.useState(null),[c,u]=b.useState(null),[d,f]=b.useState(null),[p,h]=b.useState(null),[g,x]=b.useState(null),[y,v]=b.useState(0),[w,S]=b.useState(0),[k,C]=b.useState(!1),[T,E]=b.useState(!1),N=Mt(t,A=>a(A));return m.jsx(i4,{value:{type:r,scrollHideDelay:o,scrollArea:l,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:k,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:x,scrollbarYEnabled:T,onScrollbarYEnabledChange:E,onCornerWidthChange:v,onCornerHeightChange:S},children:m.jsx(Y,{...i,ref:N,__vars:{"--sa-corner-width":s!=="xy"?"0px":`${y}px`,"--sa-corner-height":s!=="xy"?"0px":`${w}px`}})})});wT.displayName="@mantine/core/ScrollAreaRoot";function ST(e,t){const n=e/t;return Number.isNaN(n)?0:n}function Vf(e){const t=ST(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function kT(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function u4(e,[t,n]){return Math.min(n,Math.max(t,e))}function ab(e,t,n="ltr"){const r=Vf(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,i=t.content-t.viewport,l=s-r,a=n==="ltr"?[0,i]:[i*-1,0],c=u4(e,a);return kT([0,i],[0,l])(c)}function d4(e,t,n,r="ltr"){const o=Vf(n),s=o/2,i=t||s,l=o-i,a=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-l,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return kT([a,c],d)(e)}function CT(e,t){return e>0&&e{e==null||e(r),(n===!1||!r.defaultPrevented)&&(t==null||t(r))}}const[f4,ET]=Bo("ScrollAreaScrollbar was not found in tree"),TT=b.forwardRef((e,t)=>{const{sizes:n,hasThumb:r,onThumbChange:o,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:a,onWheelScroll:c,onResize:u,...d}=e,f=Cn(),[p,h]=b.useState(null),g=Mt(t,E=>h(E)),x=b.useRef(null),y=b.useRef(""),{viewport:v}=f,w=n.content-n.viewport,S=Qo(c),k=Qo(l),C=zf(u,10),T=E=>{if(x.current){const N=E.clientX-x.current.left,A=E.clientY-x.current.top;a({x:N,y:A})}};return b.useEffect(()=>{const E=N=>{const A=N.target;(p==null?void 0:p.contains(A))&&S(N,w)};return document.addEventListener("wheel",E,{passive:!1}),()=>document.removeEventListener("wheel",E,{passive:!1})},[v,p,w,S]),b.useEffect(k,[n,k]),Ki(p,C),Ki(f.content,C),m.jsx(f4,{value:{scrollbar:p,hasThumb:r,onThumbChange:Qo(o),onThumbPointerUp:Qo(s),onThumbPositionChange:k,onThumbPointerDown:Qo(i)},children:m.jsx("div",{...d,ref:g,style:{position:"absolute",...d.style},onPointerDown:fs(e.onPointerDown,E=>{E.button===0&&(E.target.setPointerCapture(E.pointerId),x.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",T(E))}),onPointerMove:fs(e.onPointerMove,T),onPointerUp:fs(e.onPointerUp,E=>{const N=E.target;N.hasPointerCapture(E.pointerId)&&N.releasePointerCapture(E.pointerId),document.body.style.webkitUserSelect=y.current,x.current=null})})})}),p4=b.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...s}=e,i=Cn(),[l,a]=b.useState(),c=b.useRef(null),u=Mt(t,c,i.onScrollbarXChange);return b.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),m.jsx(TT,{"data-orientation":"horizontal",...s,ref:u,sizes:n,style:{...o,"--sa-thumb-width":`${Vf(n)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(i.viewport){const p=i.viewport.scrollLeft+d.deltaX;e.onWheelScroll(p),CT(p,f)&&d.preventDefault()}},onResize:()=>{c.current&&i.viewport&&l&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Ku(l.paddingLeft),paddingEnd:Ku(l.paddingRight)}})}})}),h4=b.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...s}=e,i=Cn(),[l,a]=b.useState(),c=b.useRef(null),u=Mt(t,c,i.onScrollbarYChange);return b.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),m.jsx(TT,{...s,"data-orientation":"vertical",ref:u,sizes:n,style:{"--sa-thumb-height":`${Vf(n)}px`,...o},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(i.viewport){const p=i.viewport.scrollTop+d.deltaY;e.onWheelScroll(p),CT(p,f)&&d.preventDefault()}},onResize:()=>{c.current&&i.viewport&&l&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Ku(l.paddingTop),paddingEnd:Ku(l.paddingBottom)}})}})}),k0=b.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,{dir:o}=Hf(),s=Cn(),i=b.useRef(null),l=b.useRef(0),[a,c]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ST(a.viewport,a.content),d={...r,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:p=>{i.current=p},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:p=>{l.current=p}},f=(p,h)=>d4(p,l.current,a,h);return n==="horizontal"?m.jsx(p4,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const p=s.viewport.scrollLeft,h=ab(p,a,o);i.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:p=>{s.viewport&&(s.viewport.scrollLeft=p)},onDragScroll:p=>{s.viewport&&(s.viewport.scrollLeft=f(p,o))}}):n==="vertical"?m.jsx(h4,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const p=s.viewport.scrollTop,h=ab(p,a);i.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:p=>{s.viewport&&(s.viewport.scrollTop=p)},onDragScroll:p=>{s.viewport&&(s.viewport.scrollTop=f(p))}}):null}),MT=b.forwardRef((e,t)=>{const n=Cn(),{forceMount:r,...o}=e,[s,i]=b.useState(!1),l=e.orientation==="horizontal",a=zf(()=>{if(n.viewport){const c=n.viewport.offsetWidth{const{forceMount:n,...r}=e,o=Cn(),[s,i]=b.useState(!1);return b.useEffect(()=>{const{scrollArea:l}=o;let a=0;if(l){const c=()=>{window.clearTimeout(a),i(!0)},u=()=>{a=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",c),l.addEventListener("pointerleave",u),()=>{window.clearTimeout(a),l.removeEventListener("pointerenter",c),l.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),n||s?m.jsx(MT,{"data-state":s?"visible":"hidden",...r,ref:t}):null}),g4=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Cn(),s=e.orientation==="horizontal",[i,l]=b.useState("hidden"),a=zf(()=>l("idle"),100);return b.useEffect(()=>{if(i==="idle"){const c=window.setTimeout(()=>l("hidden"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[i,o.scrollHideDelay]),b.useEffect(()=>{const{viewport:c}=o,u=s?"scrollLeft":"scrollTop";if(c){let d=c[u];const f=()=>{const p=c[u];d!==p&&(l("scrolling"),a()),d=p};return c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[o.viewport,s,a]),n||i!=="hidden"?m.jsx(k0,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:fs(e.onPointerEnter,()=>l("interacting")),onPointerLeave:fs(e.onPointerLeave,()=>l("idle"))}):null}),cb=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Cn(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=o,l=e.orientation==="horizontal";return b.useEffect(()=>(l?s(!0):i(!0),()=>{l?s(!1):i(!1)}),[l,s,i]),o.type==="hover"?m.jsx(m4,{...r,ref:t,forceMount:n}):o.type==="scroll"?m.jsx(g4,{...r,ref:t,forceMount:n}):o.type==="auto"?m.jsx(MT,{...r,ref:t,forceMount:n}):o.type==="always"?m.jsx(k0,{...r,ref:t}):null});function y4(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,l=n.top!==s.top;(i||l)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)}const v4=b.forwardRef((e,t)=>{const{style:n,...r}=e,o=Cn(),s=ET(),{onThumbPositionChange:i}=s,l=Mt(t,u=>s.onThumbChange(u)),a=b.useRef(),c=zf(()=>{a.current&&(a.current(),a.current=void 0)},100);return b.useEffect(()=>{const{viewport:u}=o;if(u){const d=()=>{if(c(),!a.current){const f=y4(u,i);a.current=f,i()}};return i(),u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[o.viewport,c,i]),m.jsx("div",{"data-state":s.hasThumb?"visible":"hidden",...r,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:fs(e.onPointerDownCapture,u=>{const f=u.target.getBoundingClientRect(),p=u.clientX-f.left,h=u.clientY-f.top;s.onThumbPointerDown({x:p,y:h})}),onPointerUp:fs(e.onPointerUp,s.onThumbPointerUp)})}),ub=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ET();return n||o.hasThumb?m.jsx(v4,{ref:t,...r}):null}),RT=b.forwardRef(({children:e,style:t,...n},r)=>{const o=Cn(),s=Mt(r,o.onViewportChange);return m.jsx(Y,{...n,ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t},children:m.jsx("div",{style:{minWidth:"100%",display:"table"},ref:o.onContentChange,children:e})})});RT.displayName="@mantine/core/ScrollAreaViewport";var C0={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const NT={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},x4=(e,{scrollbarSize:t})=>({root:{"--scrollarea-scrollbar-size":O(t)}}),Ka=Q((e,t)=>{const n=V("ScrollArea",NT,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,scrollbarSize:a,vars:c,type:u,scrollHideDelay:d,viewportProps:f,viewportRef:p,onScrollPositionChange:h,children:g,offsetScrollbars:x,scrollbars:y,...v}=n,[w,S]=b.useState(!1),k=le({name:"ScrollArea",props:n,classes:C0,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:c,varsResolver:x4});return m.jsxs(wT,{type:u==="never"?"always":u,scrollHideDelay:d,ref:t,scrollbars:y,...k("root"),...v,children:[m.jsx(RT,{...f,...k("viewport",{style:f==null?void 0:f.style}),ref:p,"data-offset-scrollbars":x===!0?"xy":x||void 0,"data-scrollbars":y||void 0,onScroll:C=>{var T;(T=f==null?void 0:f.onScroll)==null||T.call(f,C),h==null||h({x:C.currentTarget.scrollLeft,y:C.currentTarget.scrollTop})},children:g}),(y==="xy"||y==="x")&&m.jsx(cb,{...k("scrollbar"),orientation:"horizontal","data-hidden":u==="never"||void 0,forceMount:!0,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:m.jsx(ub,{...k("thumb")})}),(y==="xy"||y==="y")&&m.jsx(cb,{...k("scrollbar"),orientation:"vertical","data-hidden":u==="never"||void 0,forceMount:!0,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:m.jsx(ub,{...k("thumb")})}),m.jsx(a4,{...k("corner"),"data-hovered":w||void 0,"data-hidden":u==="never"||void 0})]})});Ka.displayName="@mantine/core/ScrollArea";const E0=Q((e,t)=>{const{children:n,classNames:r,styles:o,scrollbarSize:s,scrollHideDelay:i,type:l,dir:a,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,scrollbars:g,style:x,vars:y,...v}=V("ScrollAreaAutosize",NT,e);return m.jsx(Y,{...v,ref:t,style:[{display:"flex",overflow:"auto"},x],children:m.jsx(Y,{style:{display:"flex",flexDirection:"column",flex:1},children:m.jsx(Ka,{classNames:r,styles:o,scrollHideDelay:i,scrollbarSize:s,type:l,dir:a,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,vars:y,scrollbars:g,children:n})})})});Ka.classes=C0;E0.displayName="@mantine/core/ScrollAreaAutosize";E0.classes=C0;Ka.Autosize=E0;var OT={root:"m_87cf2631"};const b4={__staticSelector:"UnstyledButton"},Fs=Rt((e,t)=>{const n=V("UnstyledButton",b4,e),{className:r,component:o="button",__staticSelector:s,unstyled:i,classNames:l,styles:a,style:c,...u}=n,d=le({name:s,props:n,classes:OT,className:r,style:c,classNames:l,styles:a,unstyled:i});return m.jsx(Y,{...d("root",{focusable:!0}),component:o,ref:t,type:o==="button"?"button":void 0,...u})});Fs.classes=OT;Fs.displayName="@mantine/core/UnstyledButton";var PT={root:"m_515a97f8"};const w4={},T0=Q((e,t)=>{const n=V("VisuallyHidden",w4,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,...c}=n,u=le({name:"VisuallyHidden",classes:PT,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l});return m.jsx(Y,{component:"span",ref:t,...u("root"),...c})});T0.classes=PT;T0.displayName="@mantine/core/VisuallyHidden";var AT={root:"m_1b7284a3"};const S4={},k4=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:kn(t),"--paper-shadow":y0(n)}}),mr=Rt((e,t)=>{const n=V("Paper",S4,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,withBorder:a,vars:c,radius:u,shadow:d,variant:f,mod:p,...h}=n,g=le({name:"Paper",props:n,classes:AT,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:c,varsResolver:k4});return m.jsx(Y,{ref:t,mod:[{"data-with-border":a},p],...g("root"),variant:f,...h})});mr.classes=AT;mr.displayName="@mantine/core/Paper";function cl(e){return jT(e)?(e.nodeName||"").toLowerCase():"#document"}function Ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vr(e){var t;return(t=(jT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function jT(e){return e instanceof Node||e instanceof Ft(e).Node}function Ce(e){return e instanceof Element||e instanceof Ft(e).Element}function Qt(e){return e instanceof HTMLElement||e instanceof Ft(e).HTMLElement}function yg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ft(e).ShadowRoot}function qa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function C4(e){return["table","td","th"].includes(cl(e))}function M0(e){const t=R0(),n=bn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function E4(e){let t=_r(e);for(;Qt(t)&&!jo(t);){if(M0(t))return t;t=_r(t)}return null}function R0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jo(e){return["html","body","#document"].includes(cl(e))}function bn(e){return Ft(e).getComputedStyle(e)}function Uf(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _r(e){if(cl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yg(e)&&e.host||Vr(e);return yg(t)?t.host:t}function IT(e){const t=_r(e);return jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qt(t)&&qa(t)?t:IT(t)}function Pr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=IT(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ft(o);return s?t.concat(i,i.visualViewport||[],qa(o)?o:[],i.frameElement&&n?Pr(i.frameElement):[]):t.concat(o,Pr(o,[],n))}function db(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 ka(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&yg(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function LT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function DT(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function T4(e){return N4()?!1:!fb()&&e.width===0&&e.height===0||fb()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function M4(){return/apple/i.test(navigator.vendor)}function fb(){const e=/android/i;return e.test(LT())||e.test(DT())}function R4(){return LT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function N4(){return DT().includes("jsdom/")}function vg(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function O4(e){return"nativeEvent"in e}function P4(e){return e.matches("html,body")}function ss(e){return(e==null?void 0:e.ownerDocument)||document}function Sh(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 oi(e){return"composedPath"in e?e.composedPath()[0]:e.target}const A4="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function j4(e){return Qt(e)&&e.matches(A4)}const Bn=Math.min,pt=Math.max,qu=Math.round,Ec=Math.floor,Io=e=>({x:e,y:e}),I4={left:"right",right:"left",bottom:"top",top:"bottom"},L4={start:"end",end:"start"};function xg(e,t,n){return pt(e,Bn(t,n))}function Fr(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function ul(e){return e.split("-")[1]}function N0(e){return e==="x"?"y":"x"}function O0(e){return e==="y"?"height":"width"}function zs(e){return["top","bottom"].includes(Hn(e))?"y":"x"}function P0(e){return N0(zs(e))}function D4(e,t,n){n===void 0&&(n=!1);const r=ul(e),o=P0(e),s=O0(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ju(i)),[i,Ju(i)]}function $4(e){const t=Ju(e);return[bg(e),t,bg(t)]}function bg(e){return e.replace(/start|end/g,t=>L4[t])}function _4(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function F4(e,t,n,r){const o=ul(e);let s=_4(Hn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(bg)))),s}function Ju(e){return e.replace(/left|right|bottom|top/g,t=>I4[t])}function z4(e){return{top:0,right:0,bottom:0,left:0,...e}}function A0(e){return typeof e!="number"?z4(e):{top:e,right:e,bottom:e,left:e}}function qi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function pb(e,t,n){let{reference:r,floating:o}=e;const s=zs(t),i=P0(t),l=O0(i),a=Hn(t),c=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(a){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ul(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1);break}return p}const B4=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=pb(c,r,a),f=r,p={},h=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:c,padding:u=0}=Fr(e,t)||{};if(c==null)return{};const d=A0(u),f={x:n,y:r},p=P0(o),h=O0(p),g=await i.getDimensions(c),x=p==="y",y=x?"top":"left",v=x?"bottom":"right",w=x?"clientHeight":"clientWidth",S=s.reference[h]+s.reference[p]-f[p]-s.floating[h],k=f[p]-s.reference[p],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let T=C?C[w]:0;(!T||!await(i.isElement==null?void 0:i.isElement(C)))&&(T=l.floating[w]||s.floating[h]);const E=S/2-k/2,N=T/2-g[h]/2-1,A=Bn(d[y],N),z=Bn(d[v],N),H=A,B=T-g[h]-z,F=T/2-g[h]/2+E,j=xg(H,F,B),P=!a.arrow&&ul(o)!=null&&F!==j&&s.reference[h]/2-(FH<=0)){var N,A;const H=(((N=s.flip)==null?void 0:N.index)||0)+1,B=k[H];if(B)return{data:{index:H,overflows:E},reset:{placement:B}};let F=(A=E.filter(j=>j.overflows[0]<=0).sort((j,P)=>j.overflows[1]-P.overflows[1])[0])==null?void 0:A.placement;if(!F)switch(p){case"bestFit":{var z;const j=(z=E.map(P=>[P.placement,P.overflows.filter(I=>I>0).reduce((I,M)=>I+M,0)]).sort((P,I)=>P[1]-I[1])[0])==null?void 0:z[0];j&&(F=j);break}case"initialPlacement":F=l;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function $T(e){const t=Bn(...e.map(s=>s.left)),n=Bn(...e.map(s=>s.top)),r=pt(...e.map(s=>s.right)),o=pt(...e.map(s=>s.bottom));return{x:t,y:n,width:r-t,height:o-n}}function U4(e){const t=e.slice().sort((o,s)=>o.y-s.y),n=[];let r=null;for(let o=0;or.height/2?n.push([s]):n[n.length-1].push(s),r=s}return n.map(o=>qi($T(o)))}const W4=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:s,strategy:i}=t,{padding:l=2,x:a,y:c}=Fr(e,t),u=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(r.reference))||[]),d=U4(u),f=qi($T(u)),p=A0(l);function h(){if(d.length===2&&d[0].left>d[1].right&&a!=null&&c!=null)return d.find(x=>a>x.left-p.left&&ax.top-p.top&&c=2){if(zs(n)==="y"){const A=d[0],z=d[d.length-1],H=Hn(n)==="top",B=A.top,F=z.bottom,j=H?A.left:z.left,P=H?A.right:z.right,I=P-j,M=F-B;return{top:B,bottom:F,left:j,right:P,width:I,height:M,x:j,y:B}}const x=Hn(n)==="left",y=pt(...d.map(A=>A.right)),v=Bn(...d.map(A=>A.left)),w=d.filter(A=>x?A.left===v:A.right===y),S=w[0].top,k=w[w.length-1].bottom,C=v,T=y,E=T-C,N=k-S;return{top:S,bottom:k,left:C,right:T,width:E,height:N,x:C,y:S}}return f}const g=await s.getElementRects({reference:{getBoundingClientRect:h},floating:r.floating,strategy:i});return o.reference.x!==g.reference.x||o.reference.y!==g.reference.y||o.reference.width!==g.reference.width||o.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};async function K4(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Hn(n),l=ul(n),a=zs(n)==="y",c=["left","top"].includes(i)?-1:1,u=s&&a?-1:1,d=Fr(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),a?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const q4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,a=await K4(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:i}}}}},J4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:x=>{let{x:y,y:v}=x;return{x:y,y:v}}},...a}=Fr(e,t),c={x:n,y:r},u=await j0(t,a),d=zs(Hn(o)),f=N0(d);let p=c[f],h=c[d];if(s){const x=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=p+u[x],w=p-u[y];p=xg(v,p,w)}if(i){const x=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=h+u[x],w=h-u[y];h=xg(v,h,w)}const g=l.fn({...t,[f]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},G4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:c=!0}=Fr(e,t),u={x:n,y:r},d=zs(o),f=N0(d);let p=u[f],h=u[d];const g=Fr(l,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const w=f==="y"?"height":"width",S=s.reference[f]-s.floating[w]+x.mainAxis,k=s.reference[f]+s.reference[w]-x.mainAxis;pk&&(p=k)}if(c){var y,v;const w=f==="y"?"width":"height",S=["top","left"].includes(Hn(o)),k=s.reference[d]-s.floating[w]+(S&&((y=i.offset)==null?void 0:y[d])||0)+(S?0:x.crossAxis),C=s.reference[d]+s.reference[w]+(S?0:((v=i.offset)==null?void 0:v[d])||0)-(S?x.crossAxis:0);hC&&(h=C)}return{[f]:p,[d]:h}}}},Y4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:s}=t,{apply:i=()=>{},...l}=Fr(e,t),a=await j0(t,l),c=Hn(n),u=ul(n),d=zs(n)==="y",{width:f,height:p}=r.floating;let h,g;c==="top"||c==="bottom"?(h=c,g=u===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(g=c,h=u==="end"?"top":"bottom");const x=p-a[h],y=f-a[g],v=!t.middlewareData.shift;let w=x,S=y;if(d){const C=f-a.left-a.right;S=u||v?Bn(y,C):C}else{const C=p-a.top-a.bottom;w=u||v?Bn(x,C):C}if(v&&!u){const C=pt(a.left,0),T=pt(a.right,0),E=pt(a.top,0),N=pt(a.bottom,0);d?S=f-2*(C!==0||T!==0?C+T:pt(a.left,a.right)):w=p-2*(E!==0||N!==0?E+N:pt(a.top,a.bottom))}await i({...t,availableWidth:S,availableHeight:w});const k=await o.getDimensions(s.floating);return f!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function _T(e){const t=bn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=qu(n)!==s||qu(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function I0(e){return Ce(e)?e:e.contextElement}function Pi(e){const t=I0(e);if(!Qt(t))return Io(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=_T(t);let i=(s?qu(n.width):n.width)/r,l=(s?qu(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const X4=Io(0);function FT(e){const t=Ft(e);return!R0()||!t.visualViewport?X4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Q4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ft(e)?!1:t}function Ts(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=I0(e);let i=Io(1);t&&(r?Ce(r)&&(i=Pi(r)):i=Pi(e));const l=Q4(s,n,r)?FT(s):Io(0);let a=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s){const f=Ft(s),p=r&&Ce(r)?Ft(r):r;let h=f,g=h.frameElement;for(;g&&r&&p!==h;){const x=Pi(g),y=g.getBoundingClientRect(),v=bn(g),w=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*x.x,S=y.top+(g.clientTop+parseFloat(v.paddingTop))*x.y;a*=x.x,c*=x.y,u*=x.x,d*=x.y,a+=w,c+=S,h=Ft(g),g=h.frameElement}}return qi({width:u,height:d,x:a,y:c})}const Z4=[":popover-open",":modal"];function L0(e){return Z4.some(t=>{try{return e.matches(t)}catch{return!1}})}function e3(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Vr(r),l=t?L0(t.floating):!1;if(r===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},c=Io(1);const u=Io(0),d=Qt(r);if((d||!d&&!s)&&((cl(r)!=="body"||qa(i))&&(a=Uf(r)),Qt(r))){const f=Ts(r);c=Pi(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x,y:n.y*c.y-a.scrollTop*c.y+u.y}}function t3(e){return Array.from(e.getClientRects())}function zT(e){return Ts(Vr(e)).left+Uf(e).scrollLeft}function n3(e){const t=Vr(e),n=Uf(e),r=e.ownerDocument.body,o=pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+zT(e);const l=-n.scrollTop;return bn(r).direction==="rtl"&&(i+=pt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}function r3(e,t){const n=Ft(e),r=Vr(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;const c=R0();(!c||c&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l,y:a}}function o3(e,t){const n=Ts(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Qt(e)?Pi(e):Io(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=o*s.x,c=r*s.y;return{width:i,height:l,x:a,y:c}}function hb(e,t,n){let r;if(t==="viewport")r=r3(e,n);else if(t==="document")r=n3(Vr(e));else if(Ce(t))r=o3(t,n);else{const o=FT(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return qi(r)}function BT(e,t){const n=_r(e);return n===t||!Ce(n)||jo(n)?!1:bn(n).position==="fixed"||BT(n,t)}function s3(e,t){const n=t.get(e);if(n)return n;let r=Pr(e,[],!1).filter(l=>Ce(l)&&cl(l)!=="body"),o=null;const s=bn(e).position==="fixed";let i=s?_r(e):e;for(;Ce(i)&&!jo(i);){const l=bn(i),a=M0(i);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||qa(i)&&!a&&BT(e,i))?r=r.filter(u=>u!==i):o=l,i=_r(i)}return t.set(e,r),r}function i3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?L0(t)?[]:s3(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((c,u)=>{const d=hb(t,u,o);return c.top=pt(d.top,c.top),c.right=Bn(d.right,c.right),c.bottom=Bn(d.bottom,c.bottom),c.left=pt(d.left,c.left),c},hb(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function l3(e){const{width:t,height:n}=_T(e);return{width:t,height:n}}function a3(e,t,n){const r=Qt(t),o=Vr(t),s=n==="fixed",i=Ts(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=Io(0);if(r||!r&&!s)if((cl(t)!=="body"||qa(o))&&(l=Uf(t)),r){const d=Ts(t,!0,s,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else o&&(a.x=zT(o));const c=i.left+l.scrollLeft-a.x,u=i.top+l.scrollTop-a.y;return{x:c,y:u,width:i.width,height:i.height}}function kh(e){return bn(e).position==="static"}function mb(e,t){return!Qt(e)||bn(e).position==="fixed"?null:t?t(e):e.offsetParent}function HT(e,t){const n=Ft(e);if(L0(e))return n;if(!Qt(e)){let o=_r(e);for(;o&&!jo(o);){if(Ce(o)&&!kh(o))return o;o=_r(o)}return n}let r=mb(e,t);for(;r&&C4(r)&&kh(r);)r=mb(r,t);return r&&jo(r)&&kh(r)&&!M0(r)?n:r||E4(e)||n}const c3=async function(e){const t=this.getOffsetParent||HT,n=this.getDimensions,r=await n(e.floating);return{reference:a3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function u3(e){return bn(e).direction==="rtl"}const d3={convertOffsetParentRelativeRectToViewportRelativeRect:e3,getDocumentElement:Vr,getClippingRect:i3,getOffsetParent:HT,getElementRects:c3,getClientRects:t3,getDimensions:l3,getScale:Pi,isElement:Ce,isRTL:u3};function f3(e,t){let n=null,r;const o=Vr(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p=Ec(u),h=Ec(o.clientWidth-(c+d)),g=Ec(o.clientHeight-(u+f)),x=Ec(c),v={rootMargin:-p+"px "+-h+"px "+-g+"px "+-x+"px",threshold:pt(0,Bn(1,a))||1};let w=!0;function S(k){const C=k[0].intersectionRatio;if(C!==a){if(!w)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return i(!0),s}function p3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=I0(e),u=o||s?[...c?Pr(c):[],...Pr(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=c&&l?f3(c,n):null;let f=-1,p=null;i&&(p=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),c&&!a&&p.observe(c),p.observe(t));let h,g=a?Ts(e):null;a&&x();function x(){const y=Ts(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,h=requestAnimationFrame(x)}return n(),()=>{var y;u.forEach(v=>{o&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,a&&cancelAnimationFrame(h)}}const VT=q4,D0=J4,wg=V4,h3=Y4,gb=H4,Sg=W4,yb=G4,m3=(e,t,n)=>{const r=new Map,o={platform:d3,...n},s={...o.platform,_c:r};return B4(e,t,{...o,platform:s})},UT=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?gb({element:r.current,padding:o}).fn(n):{}:r?gb({element:r,padding:o}).fn(n):{}}}};var nu=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Gu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Gu(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Gu(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function WT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vb(e,t){const n=WT(e);return Math.round(t*n)/n}function xb(e){const t=b.useRef(e);return nu(()=>{t.current=e}),t}function g3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:a,open:c}=e,[u,d]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=b.useState(r);Gu(f,r)||p(r);const[h,g]=b.useState(null),[x,y]=b.useState(null),v=b.useCallback(I=>{I!==C.current&&(C.current=I,g(I))},[]),w=b.useCallback(I=>{I!==T.current&&(T.current=I,y(I))},[]),S=s||h,k=i||x,C=b.useRef(null),T=b.useRef(null),E=b.useRef(u),N=a!=null,A=xb(a),z=xb(o),H=b.useCallback(()=>{if(!C.current||!T.current)return;const I={placement:t,strategy:n,middleware:f};z.current&&(I.platform=z.current),m3(C.current,T.current,I).then(M=>{const R={...M,isPositioned:!0};B.current&&!Gu(E.current,R)&&(E.current=R,sl.flushSync(()=>{d(R)}))})},[f,t,n,z]);nu(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(I=>({...I,isPositioned:!1})))},[c]);const B=b.useRef(!1);nu(()=>(B.current=!0,()=>{B.current=!1}),[]),nu(()=>{if(S&&(C.current=S),k&&(T.current=k),S&&k){if(A.current)return A.current(S,k,H);H()}},[S,k,H,A,N]);const F=b.useMemo(()=>({reference:C,floating:T,setReference:v,setFloating:w}),[v,w]),j=b.useMemo(()=>({reference:S,floating:k}),[S,k]),P=b.useMemo(()=>{const I={position:n,left:0,top:0};if(!j.floating)return I;const M=vb(j.floating,u.x),R=vb(j.floating,u.y);return l?{...I,transform:"translate("+M+"px, "+R+"px)",...WT(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:R}},[n,l,j.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:H,refs:F,elements:j,floatingStyles:P}),[u,H,F,j,P])}const KT={...kS},y3=KT.useInsertionEffect,v3=y3||(e=>e());function si(e){const t=b.useRef(()=>{});return v3(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+x3++;function b3(){const[e,t]=b.useState(()=>bb?wb():void 0);return ur(()=>{e==null&&t(wb())},[]),b.useEffect(()=>{bb=!0},[]),e}const w3=KT.useId,qT=w3||b3;function S3(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const k3=b.createContext(null),C3=b.createContext(null),$0=()=>{var e;return((e=b.useContext(k3))==null?void 0:e.id)||null},_0=()=>b.useContext(C3);function F0(e){return"data-floating-ui-"+e}function Sb(e){const t=b.useRef(e);return ur(()=>{t.current=e}),t}const kb=F0("safe-polygon");function ru(e,t,n){return n&&!vg(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function E3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:s,elements:{domReference:i,floating:l},refs:a}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:f=!1,restMs:p=0,move:h=!0}=t,g=_0(),x=$0(),y=Sb(d),v=Sb(u),w=b.useRef(),S=b.useRef(-1),k=b.useRef(),C=b.useRef(-1),T=b.useRef(!0),E=b.useRef(!1),N=b.useRef(()=>{}),A=b.useCallback(()=>{var F;const j=(F=o.current.openEvent)==null?void 0:F.type;return(j==null?void 0:j.includes("mouse"))&&j!=="mousedown"},[o]);b.useEffect(()=>{if(!c)return;function F(j){let{open:P}=j;P||(clearTimeout(S.current),clearTimeout(C.current),T.current=!0)}return s.on("openchange",F),()=>{s.off("openchange",F)}},[c,s]),b.useEffect(()=>{if(!c||!y.current||!n)return;function F(P){A()&&r(!1,P,"hover")}const j=ss(l).documentElement;return j.addEventListener("mouseleave",F),()=>{j.removeEventListener("mouseleave",F)}},[l,n,r,c,y,A]);const z=b.useCallback(function(F,j,P){j===void 0&&(j=!0),P===void 0&&(P="hover");const I=ru(v.current,"close",w.current);I&&!k.current?(clearTimeout(S.current),S.current=window.setTimeout(()=>r(!1,F,P),I)):j&&(clearTimeout(S.current),r(!1,F,P))},[v,r]),H=b.useCallback(()=>{N.current(),k.current=void 0},[]),B=b.useCallback(()=>{if(E.current){const F=ss(a.floating.current).body;F.style.pointerEvents="",F.removeAttribute(kb),E.current=!1}},[a]);return b.useEffect(()=>{if(!c)return;function F(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function j(M){if(clearTimeout(S.current),T.current=!1,f&&!vg(w.current)||p>0&&!ru(v.current,"open"))return;const R=ru(v.current,"open",w.current);R?S.current=window.setTimeout(()=>{r(!0,M,"hover")},R):r(!0,M,"hover")}function P(M){if(F())return;N.current();const R=ss(l);if(clearTimeout(C.current),y.current){n||clearTimeout(S.current),k.current=y.current({...e,tree:g,x:M.clientX,y:M.clientY,onClose(){B(),H(),z(M,!0,"safe-polygon")}});const W=k.current;R.addEventListener("mousemove",W),N.current=()=>{R.removeEventListener("mousemove",W)};return}(w.current==="touch"?!ka(l,M.relatedTarget):!0)&&z(M)}function I(M){F()||y.current==null||y.current({...e,tree:g,x:M.clientX,y:M.clientY,onClose(){B(),H(),z(M)}})(M)}if(Ce(i)){const M=i;return n&&M.addEventListener("mouseleave",I),l==null||l.addEventListener("mouseleave",I),h&&M.addEventListener("mousemove",j,{once:!0}),M.addEventListener("mouseenter",j),M.addEventListener("mouseleave",P),()=>{n&&M.removeEventListener("mouseleave",I),l==null||l.removeEventListener("mouseleave",I),h&&M.removeEventListener("mousemove",j),M.removeEventListener("mouseenter",j),M.removeEventListener("mouseleave",P)}}},[i,l,c,e,f,p,h,z,H,B,r,n,g,v,y,o]),ur(()=>{var F;if(c&&n&&(F=y.current)!=null&&F.__options.blockPointerEvents&&A()){const P=ss(l).body;if(P.setAttribute(kb,""),P.style.pointerEvents="none",E.current=!0,Ce(i)&&l){var j;const I=i,M=g==null||(j=g.nodesRef.current.find(R=>R.id===x))==null||(j=j.context)==null?void 0:j.elements.floating;return M&&(M.style.pointerEvents=""),I.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{I.style.pointerEvents="",l.style.pointerEvents=""}}}},[c,n,x,l,i,g,y,A]),ur(()=>{n||(w.current=void 0,H(),B())},[n,H,B]),b.useEffect(()=>()=>{H(),clearTimeout(S.current),clearTimeout(C.current),B()},[c,i,H,B]),b.useMemo(()=>{if(!c)return{};function F(j){w.current=j.pointerType}return{reference:{onPointerDown:F,onPointerEnter:F,onMouseMove(j){function P(){T.current||r(!0,j.nativeEvent,"hover")}f&&!vg(w.current)||n||p===0||(clearTimeout(C.current),w.current==="touch"?P():C.current=window.setTimeout(P,p))}},floating:{onMouseEnter(){clearTimeout(S.current)},onMouseLeave(j){z(j.nativeEvent,!1)}}}},[c,f,n,p,r,z])}const kg=()=>{},JT=b.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:kg,setState:kg,isInstantPhase:!1}),GT=()=>b.useContext(JT);function T3(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,s]=b.useReducer((a,c)=>({...a,...c}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),i=b.useRef(null),l=b.useCallback(a=>{s({currentId:a})},[]);return ur(()=>{o.currentId?i.current===null?i.current=o.currentId:s({isInstantPhase:!0}):(s({isInstantPhase:!1}),i.current=null)},[o.currentId]),b.createElement(JT.Provider,{value:b.useMemo(()=>({...o,setState:s,setCurrentId:l}),[o,l])},t)}function M3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:s}=t,i=s??o,l=GT(),{currentId:a,setCurrentId:c,initialDelay:u,setState:d,timeoutMs:f}=l;return ur(()=>{a&&(d({delay:{open:1,close:ru(u,"close")}}),a!==i&&r(!1))},[i,r,d,a,u]),ur(()=>{function p(){r(!1),d({delay:u,currentId:null})}if(a&&!n&&a===i){if(f){const h=window.setTimeout(p,f);return()=>{clearTimeout(h)}}p()}},[n,d,a,i,r,u,f]),ur(()=>{c===kg||!n||c(i)},[n,c,i]),l}function Ch(e,t){let n=e.filter(o=>{var s;return o.parentId===t&&((s=o.context)==null?void 0:s.open)}),r=n;for(;r.length;)r=e.filter(o=>{var s;return(s=r)==null?void 0:s.some(i=>{var l;return o.parentId===i.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}const R3={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},N3={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Cb=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function O3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,nodeId:o,elements:{reference:s,domReference:i,floating:l},dataRef:a}=e,{enabled:c=!0,escapeKey:u=!0,outsidePress:d=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:h="pointerdown",ancestorScroll:g=!1,bubbles:x,capture:y}=t,v=_0(),w=si(typeof d=="function"?d:()=>!1),S=typeof d=="function"?w:d,k=b.useRef(!1),C=b.useRef(!1),{escapeKey:T,outsidePress:E}=Cb(x),{escapeKey:N,outsidePress:A}=Cb(y),z=si(j=>{if(!n||!c||!u||j.key!=="Escape")return;const P=v?Ch(v.nodesRef.current,o):[];if(!T&&(j.stopPropagation(),P.length>0)){let I=!0;if(P.forEach(M=>{var R;if((R=M.context)!=null&&R.open&&!M.context.dataRef.current.__escapeKeyBubbles){I=!1;return}}),!I)return}r(!1,O4(j)?j.nativeEvent:j,"escape-key")}),H=si(j=>{var P;const I=()=>{var M;z(j),(M=oi(j))==null||M.removeEventListener("keydown",I)};(P=oi(j))==null||P.addEventListener("keydown",I)}),B=si(j=>{const P=k.current;k.current=!1;const I=C.current;if(C.current=!1,f==="click"&&I||P||typeof S=="function"&&!S(j))return;const M=oi(j),R="["+F0("inert")+"]",D=ss(l).querySelectorAll(R);let W=Ce(M)?M:null;for(;W&&!jo(W);){const ne=_r(W);if(jo(ne)||!Ce(ne))break;W=ne}if(D.length&&Ce(M)&&!P4(M)&&!ka(M,l)&&Array.from(D).every(ne=>!ka(W,ne)))return;if(Qt(M)&&l){const ne=M.clientWidth>0&&M.scrollWidth>M.clientWidth,ee=M.clientHeight>0&&M.scrollHeight>M.clientHeight;let ce=ee&&j.offsetX>M.clientWidth;if(ee&&bn(M).direction==="rtl"&&(ce=j.offsetX<=M.offsetWidth-M.clientWidth),ce||ne&&j.offsetY>M.clientHeight)return}const Z=v&&Ch(v.nodesRef.current,o).some(ne=>{var ee;return Sh(j,(ee=ne.context)==null?void 0:ee.elements.floating)});if(Sh(j,l)||Sh(j,i)||Z)return;const fe=v?Ch(v.nodesRef.current,o):[];if(fe.length>0){let ne=!0;if(fe.forEach(ee=>{var ce;if((ce=ee.context)!=null&&ce.open&&!ee.context.dataRef.current.__outsidePressBubbles){ne=!1;return}}),!ne)return}r(!1,j,"outside-press")}),F=si(j=>{var P;const I=()=>{var M;B(j),(M=oi(j))==null||M.removeEventListener(f,I)};(P=oi(j))==null||P.addEventListener(f,I)});return b.useEffect(()=>{if(!n||!c)return;a.current.__escapeKeyBubbles=T,a.current.__outsidePressBubbles=E;function j(M){r(!1,M,"ancestor-scroll")}const P=ss(l);u&&P.addEventListener("keydown",N?H:z,N),S&&P.addEventListener(f,A?F:B,A);let I=[];return g&&(Ce(i)&&(I=Pr(i)),Ce(l)&&(I=I.concat(Pr(l))),!Ce(s)&&s&&s.contextElement&&(I=I.concat(Pr(s.contextElement)))),I=I.filter(M=>{var R;return M!==((R=P.defaultView)==null?void 0:R.visualViewport)}),I.forEach(M=>{M.addEventListener("scroll",j,{passive:!0})}),()=>{u&&P.removeEventListener("keydown",N?H:z,N),S&&P.removeEventListener(f,A?F:B,A),I.forEach(M=>{M.removeEventListener("scroll",j)})}},[a,l,i,s,u,S,f,n,r,g,c,T,E,z,N,H,B,A,F]),b.useEffect(()=>{k.current=!1},[S,f]),b.useMemo(()=>c?{reference:{onKeyDown:z,[R3[h]]:j=>{p&&r(!1,j.nativeEvent,"reference-press")}},floating:{onKeyDown:z,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[N3[f]]:()=>{k.current=!0}}}:{},[c,p,f,h,r,z])}function z0(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[s,i]=b.useState(null),[l,a]=b.useState(null),u=((t=e.elements)==null?void 0:t.reference)||s;ur(()=>{u&&(g.current=u)},[u]);const d=g3({...e,elements:{...e.elements,...l&&{reference:l}}}),f=_0(),p=$0()!=null,h=si((E,N,A)=>{x.current.openEvent=E?N:void 0,y.emit("openchange",{open:E,event:N,reason:A,nested:p}),r==null||r(E,N,A)}),g=b.useRef(null),x=b.useRef({}),y=b.useState(()=>S3())[0],v=qT(),w=b.useCallback(E=>{const N=Ce(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;a(N),d.refs.setReference(N)},[d.refs]),S=b.useCallback(E=>{(Ce(E)||E===null)&&(g.current=E,i(E)),(Ce(d.refs.reference.current)||d.refs.reference.current===null||E!==null&&!Ce(E))&&d.refs.setReference(E)},[d.refs]),k=b.useMemo(()=>({...d.refs,setReference:S,setPositionReference:w,domReference:g}),[d.refs,S,w]),C=b.useMemo(()=>({...d.elements,domReference:u}),[d.elements,u]),T=b.useMemo(()=>({...d,refs:k,elements:C,dataRef:x,nodeId:o,floatingId:v,events:y,open:n,onOpenChange:h}),[d,o,v,y,n,h,k,C]);return ur(()=>{const E=f==null?void 0:f.nodesRef.current.find(N=>N.id===o);E&&(E.context=T)}),b.useMemo(()=>({...d,context:T,refs:k,elements:C}),[d,k,C,T])}function P3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,refs:s,elements:{domReference:i}}=e,{enabled:l=!0,visibleOnly:a=!0}=t,c=b.useRef(!1),u=b.useRef(),d=b.useRef(!0);return b.useEffect(()=>{if(!l)return;const f=Ft(i);function p(){!n&&Qt(i)&&i===db(ss(i))&&(c.current=!0)}function h(){d.current=!0}return f.addEventListener("blur",p),f.addEventListener("keydown",h,!0),()=>{f.removeEventListener("blur",p),f.removeEventListener("keydown",h,!0)}},[i,n,l]),b.useEffect(()=>{if(!l)return;function f(p){let{reason:h}=p;(h==="reference-press"||h==="escape-key")&&(c.current=!0)}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,l]),b.useEffect(()=>()=>{clearTimeout(u.current)},[]),b.useMemo(()=>l?{reference:{onPointerDown(f){T4(f.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const p=oi(f.nativeEvent);if(a&&Ce(p))try{if(M4()&&R4())throw Error();if(!p.matches(":focus-visible"))return}catch{if(!d.current&&!j4(p))return}r(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const p=f.relatedTarget,h=Ce(p)&&p.hasAttribute(F0("focus-guard"))&&p.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{const g=db(i?i.ownerDocument:document);!p&&g===i||ka(s.floating.current,g)||ka(i,g)||h||r(!1,f.nativeEvent,"focus")})}}}:{},[l,a,i,s,r])}const Eb="active",Tb="selected";function Eh(e,t,n){const r=new Map,o=n==="item";let s=e;if(o&&e){const{[Eb]:i,[Tb]:l,...a}=e;s=a}return{...n==="floating"&&{tabIndex:-1},...s,...t.map(i=>{const l=i?i[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((i,l)=>(l&&Object.entries(l).forEach(a=>{let[c,u]=a;if(!(o&&[Eb,Tb].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof u=="function"){var d;(d=r.get(c))==null||d.push(u),i[c]=function(){for(var f,p=arguments.length,h=new Array(p),g=0;gx(...h)).find(x=>x!==void 0)}}}else i[c]=u}),i),{})}}function A3(e){e===void 0&&(e=[]);const t=e,n=b.useCallback(s=>Eh(s,e,"reference"),t),r=b.useCallback(s=>Eh(s,e,"floating"),t),o=b.useCallback(s=>Eh(s,e,"item"),e.map(s=>s==null?void 0:s.item));return b.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}const j3=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function I3(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:s=!0,role:i="dialog"}=t,l=(n=j3.get(i))!=null?n:i,a=qT(),u=$0()!=null;return b.useMemo(()=>{if(!s)return{};const d={id:o,...l&&{role:l}};return l==="tooltip"||i==="label"?{reference:{["aria-"+(i==="label"?"labelledby":"describedby")]:r?o:void 0},floating:d}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":l==="alertdialog"?"dialog":l,"aria-controls":r?o:void 0,...l==="listbox"&&{role:"combobox"},...l==="menu"&&{id:a},...l==="menu"&&u&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},floating:{...d,...l==="menu"&&{"aria-labelledby":a}},item(f){let{active:p,selected:h}=f;const g={role:"option",...p&&{id:o+"-option"}};switch(i){case"select":return{...g,"aria-selected":p&&h};case"combobox":return{...g,...p&&{"aria-selected":!0}}}return{}}}},[s,i,l,r,o,a,u])}function YT(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,r]=t.split("-"),o=n==="right"?"left":"right";return r===void 0?o:`${o}-${r}`}return t}function Mb(e,t,n,r){return e==="center"||r==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function Rb(e,t,n,r,o){return e==="center"||r==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:n}:e==="start"?{[o==="ltr"?"left":"right"]:n}:{}}const L3={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function D3({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:s,arrowY:i,dir:l}){const[a,c="center"]=e.split("-"),u={width:O(t),height:O(t),transform:"rotate(45deg)",position:"absolute",[L3[a]]:O(r)},d=O(-t/2);return a==="left"?{...u,...Mb(c,i,n,o),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent"}:a==="right"?{...u,...Mb(c,i,n,o),left:d,borderRightColor:"transparent",borderTopColor:"transparent"}:a==="top"?{...u,...Rb(c,s,n,o,l),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent"}:a==="bottom"?{...u,...Rb(c,s,n,o,l),top:d,borderBottomColor:"transparent",borderRightColor:"transparent"}:{}}const B0=b.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,visible:s,arrowX:i,arrowY:l,style:a,...c},u)=>{const{dir:d}=Hf();return s?m.jsx("div",{...c,ref:u,style:{...a,...D3({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,dir:d,arrowX:i,arrowY:l})}}):null});B0.displayName="@mantine/core/FloatingArrow";const[$3,XT]=Bo("Popover component was not found in the tree");function Wf({children:e,active:t=!0,refProp:n="ref"}){const r=UD(t),o=Mt(r,e==null?void 0:e.ref);return Ds(e)?b.cloneElement(e,{[n]:o}):e}function QT(e){return m.jsx(T0,{tabIndex:-1,"data-autofocus":!0,...e})}Wf.displayName="@mantine/core/FocusTrap";QT.displayName="@mantine/core/FocusTrapInitialFocus";Wf.InitialFocus=QT;function _3(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}const F3={},ZT=b.forwardRef((e,t)=>{const{children:n,target:r,...o}=V("Portal",F3,e),[s,i]=b.useState(!1),l=b.useRef(null);return Ua(()=>(i(!0),l.current=r?typeof r=="string"?document.querySelector(r):r:_3(o),nT(t,l.current),!r&&l.current&&document.body.appendChild(l.current),()=>{!r&&l.current&&document.body.removeChild(l.current)}),[r]),!s||!l.current?null:sl.createPortal(m.jsx(m.Fragment,{children:n}),l.current)});ZT.displayName="@mantine/core/Portal";function Ja({withinPortal:e=!0,children:t,...n}){return e?m.jsx(ZT,{...n,children:t}):m.jsx(m.Fragment,{children:t})}Ja.displayName="@mantine/core/OptionalPortal";const Tl=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${O(e==="bottom"?10:-10)})`},transitionProperty:"transform, opacity"}),Tc={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${O(30)}`},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${O(-30)}`},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${O(30)}`},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${O(-30)}`},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(${O(-20)}) 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(${O(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${O(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${O(20)}) 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:{...Tl("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Tl("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Tl("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Tl("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Tl("top"),common:{transformOrigin:"top right"}}},Nb={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function z3({transition:e,state:t,duration:n,timingFunction:r}){const o={transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e=="string"?e in Tc?{transitionProperty:Tc[e].transitionProperty,...o,...Tc[e].common,...Tc[e][Nb[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[Nb[t]]}}function B3({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:s,onEntered:i,onExited:l}){const a=Wn(),c=sT(),u=a.respectReducedMotion?c:!1,[d,f]=b.useState(u?0:e),[p,h]=b.useState(r?"entered":"exited"),g=b.useRef(-1),x=b.useRef(-1),y=v=>{const w=v?o:s,S=v?i:l;window.clearTimeout(g.current);const k=u?0:v?e:t;f(k),k===0?(typeof w=="function"&&w(),typeof S=="function"&&S(),h(v?"entered":"exited")):x.current=requestAnimationFrame(()=>{TC.flushSync(()=>{h(v?"pre-entering":"pre-exiting")}),x.current=requestAnimationFrame(()=>{typeof w=="function"&&w(),h(v?"entering":"exiting"),g.current=window.setTimeout(()=>{typeof S=="function"&&S(),h(v?"entered":"exited")},k)})})};return dr(()=>{y(r)},[r]),b.useEffect(()=>()=>{window.clearTimeout(g.current),cancelAnimationFrame(x.current)},[]),{transitionDuration:d,transitionStatus:p,transitionTimingFunction:n||"ease"}}function Bs({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:o,children:s,timingFunction:i="ease",onExit:l,onEntered:a,onEnter:c,onExited:u}){const{transitionDuration:d,transitionStatus:f,transitionTimingFunction:p}=B3({mounted:o,exitDuration:r,duration:n,timingFunction:i,onExit:l,onEntered:a,onEnter:c,onExited:u});return d===0?o?m.jsx(m.Fragment,{children:s({})}):e?s({display:"none"}):null:f==="exited"?e?s({display:"none"}):null:m.jsx(m.Fragment,{children:s(z3({transition:t,duration:d,state:f,timingFunction:p}))})}Bs.displayName="@mantine/core/Transition";var eM={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const H3={},H0=Q((e,t)=>{var x,y,v,w;const n=V("PopoverDropdown",H3,e),{className:r,style:o,vars:s,children:i,onKeyDownCapture:l,variant:a,classNames:c,styles:u,...d}=n,f=XT(),p=XE({opened:f.opened,shouldReturnFocus:f.returnFocus}),h=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},g=Mt(t,f.floating);return f.disabled?null:m.jsx(Ja,{...f.portalProps,withinPortal:f.withinPortal,children:m.jsx(Bs,{mounted:f.opened,...f.transitionProps,transition:((x=f.transitionProps)==null?void 0:x.transition)||"fade",duration:((y=f.transitionProps)==null?void 0:y.duration)??150,keepMounted:f.keepMounted,exitDuration:typeof((v=f.transitionProps)==null?void 0:v.exitDuration)=="number"?f.transitionProps.exitDuration:(w=f.transitionProps)==null?void 0:w.duration,children:S=>m.jsx(Wf,{active:f.trapFocus,children:m.jsxs(Y,{...h,...d,variant:a,ref:g,onKeyDownCapture:OD(f.onClose,{active:f.closeOnEscape,onTrigger:p,onKeyDown:l}),"data-position":f.placement,...f.getStyles("dropdown",{className:r,props:n,classNames:c,styles:u,style:[{...S,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:O(f.width)},o]}),children:[i,m.jsx(B0,{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})})]})})})})});H0.classes=eM;H0.displayName="@mantine/core/PopoverDropdown";const V3={refProp:"ref",popupType:"dialog"},tM=Q((e,t)=>{const{children:n,refProp:r,popupType:o,...s}=V("PopoverTarget",V3,e);if(!Ds(n))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=XT(),a=Mt(l.reference,n.ref,t),c=l.withRoles?{"aria-haspopup":o,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return b.cloneElement(n,{...i,...c,...l.targetProps,className:at(l.targetProps.className,i.className,n.props.className),[r]:a,...l.controlled?null:{onClick:l.onToggle}})});tM.displayName="@mantine/core/PopoverTarget";function nM({opened:e,floating:t,position:n,positionDependencies:r}){const[o,s]=b.useState(0);b.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return p3(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,o,n]),dr(()=>{t.update()},r),dr(()=>{s(i=>i+1)},[e])}function U3(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 W3(e,t){const n=U3(e.middlewares),r=[VT(e.offset)];return n.shift&&r.push(D0(typeof n.shift=="boolean"?{limiter:yb(),padding:5}:{limiter:yb(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?wg():wg(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?Sg():Sg(n.inline)),r.push(UT({element:e.arrowRef,padding:e.arrowOffset})),(n.size||e.width==="target")&&r.push(h3({...typeof n.size=="boolean"?{}:n.size,apply({rects:o,availableWidth:s,availableHeight:i}){var c;const a=((c=t().refs.floating.current)==null?void 0:c.style)??{};n.size&&Object.assign(a,{maxWidth:`${s}px`,maxHeight:`${i}px`}),e.width==="target"&&Object.assign(a,{width:`${o.reference.width}px`})}})),r}function K3(e){const[t,n]=wa({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=()=>{var i;t&&((i=e.onClose)==null||i.call(e),n(!1))},o=()=>{var i,l;t?((i=e.onClose)==null||i.call(e),n(!1)):((l=e.onOpen)==null||l.call(e),n(!0))},s=z0({strategy:e.strategy,placement:e.position,middleware:W3(e,()=>s)});return nM({opened:e.opened,position:e.position,positionDependencies:e.positionDependencies||[],floating:s}),dr(()=>{var i;(i=e.onPositionChange)==null||i.call(e,s.placement)},[s.placement]),dr(()=>{var i,l;e.opened?(l=e.onOpen)==null||l.call(e):(i=e.onClose)==null||i.call(e)},[e.opened]),{floating:s,controlled:typeof e.opened=="boolean",opened:t,onClose:r,onToggle:o}}const q3={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,clickOutsideEvents:["mousedown","touchstart"],zIndex:$s("popover"),__staticSelector:"Popover",width:"max-content"},J3=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:kn(t),"--popover-shadow":y0(n)}});function zt(e){var Ot,qo,ml,Rn,Js,xr;const t=V("Popover",q3,e),{children:n,position:r,offset:o,onPositionChange:s,positionDependencies:i,opened:l,transitionProps:a,width:c,middlewares:u,withArrow:d,arrowSize:f,arrowOffset:p,arrowRadius:h,arrowPosition:g,unstyled:x,classNames:y,styles:v,closeOnClickOutside:w,withinPortal:S,portalProps:k,closeOnEscape:C,clickOutsideEvents:T,trapFocus:E,onClose:N,onOpen:A,onChange:z,zIndex:H,radius:B,shadow:F,id:j,defaultOpened:P,__staticSelector:I,withRoles:M,disabled:R,returnFocus:D,variant:W,keepMounted:Z,vars:fe,floatingStrategy:ne,...ee}=t,ce=le({name:I,props:t,classes:eM,classNames:y,styles:v,unstyled:x,rootSelector:"dropdown",vars:fe,varsResolver:J3}),Ie=b.useRef(null),[ze,Mn]=b.useState(null),[gr,Kr]=b.useState(null),{dir:Ko}=Hf(),yr=al(j),Le=K3({middlewares:u,width:c,position:YT(Ko,r),offset:typeof o=="number"?o+(d?f/2:0):o,arrowRef:Ie,arrowOffset:p,onPositionChange:s,positionDependencies:i,opened:l,defaultOpened:P,onChange:z,onOpen:A,onClose:N,strategy:ne});ID(()=>w&&Le.onClose(),T,[ze,gr]);const vr=b.useCallback(Qe=>{Mn(Qe),Le.floating.refs.setReference(Qe)},[Le.floating.refs.setReference]),qs=b.useCallback(Qe=>{Kr(Qe),Le.floating.refs.setFloating(Qe)},[Le.floating.refs.setFloating]);return m.jsx($3,{value:{returnFocus:D,disabled:R,controlled:Le.controlled,reference:vr,floating:qs,x:Le.floating.x,y:Le.floating.y,arrowX:(ml=(qo=(Ot=Le.floating)==null?void 0:Ot.middlewareData)==null?void 0:qo.arrow)==null?void 0:ml.x,arrowY:(xr=(Js=(Rn=Le.floating)==null?void 0:Rn.middlewareData)==null?void 0:Js.arrow)==null?void 0:xr.y,opened:Le.opened,arrowRef:Ie,transitionProps:a,width:c,withArrow:d,arrowSize:f,arrowOffset:p,arrowRadius:h,arrowPosition:g,placement:Le.floating.placement,trapFocus:E,withinPortal:S,portalProps:k,zIndex:H,radius:B,shadow:F,closeOnEscape:C,onClose:Le.onClose,onToggle:Le.onToggle,getTargetId:()=>`${yr}-target`,getDropdownId:()=>`${yr}-dropdown`,withRoles:M,targetProps:ee,__staticSelector:I,classNames:y,styles:v,unstyled:x,variant:W,keepMounted:Z,getStyles:ce},children:n})}zt.Target=tM;zt.Dropdown=H0;zt.displayName="@mantine/core/Popover";zt.extend=e=>e;var Dn={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const G3=b.forwardRef(({className:e,...t},n)=>m.jsxs(Y,{component:"span",className:at(Dn.barsLoader,e),...t,ref:n,children:[m.jsx("span",{className:Dn.bar}),m.jsx("span",{className:Dn.bar}),m.jsx("span",{className:Dn.bar})]})),Y3=b.forwardRef(({className:e,...t},n)=>m.jsxs(Y,{component:"span",className:at(Dn.dotsLoader,e),...t,ref:n,children:[m.jsx("span",{className:Dn.dot}),m.jsx("span",{className:Dn.dot}),m.jsx("span",{className:Dn.dot})]})),X3=b.forwardRef(({className:e,...t},n)=>m.jsx(Y,{component:"span",className:at(Dn.ovalLoader,e),...t,ref:n})),rM={bars:G3,oval:X3,dots:Y3},Q3={loaders:rM,type:"oval"},Z3=(e,{size:t,color:n})=>({root:{"--loader-size":Ee(t,"loader-size"),"--loader-color":n?Es(n,e):void 0}}),Ga=Q((e,t)=>{const n=V("Loader",Q3,e),{size:r,color:o,type:s,vars:i,className:l,style:a,classNames:c,styles:u,unstyled:d,loaders:f,variant:p,children:h,...g}=n,x=le({name:"Loader",props:n,classes:Dn,className:l,style:a,classNames:c,styles:u,unstyled:d,vars:i,varsResolver:Z3});return h?m.jsx(Y,{...x("root"),ref:t,...g,children:h}):m.jsx(Y,{...x("root"),ref:t,component:f[s],variant:p,size:r,...g})});Ga.defaultLoaders=rM;Ga.classes=Dn;Ga.displayName="@mantine/core/Loader";var Kf={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21"};const Ob={orientation:"horizontal"},e_=(e,{borderWidth:t})=>({group:{"--ai-border-width":O(t)}}),V0=Q((e,t)=>{const n=V("ActionIconGroup",Ob,e),{className:r,style:o,classNames:s,styles:i,unstyled:l,orientation:a,vars:c,borderWidth:u,variant:d,mod:f,...p}=V("ActionIconGroup",Ob,e),h=le({name:"ActionIconGroup",props:n,classes:Kf,className:r,style:o,classNames:s,styles:i,unstyled:l,vars:c,varsResolver:e_,rootSelector:"group"});return m.jsx(Y,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":a},f],role:"group",...p})});V0.classes=Kf;V0.displayName="@mantine/core/ActionIconGroup";const t_={},n_=(e,{size:t,radius:n,variant:r,gradient:o,color:s,autoContrast:i})=>{const l=e.variantColorResolver({color:s||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:i});return{root:{"--ai-size":Ee(t,"ai-size"),"--ai-radius":n===void 0?void 0:kn(n),"--ai-bg":s||r?l.background:void 0,"--ai-hover":s||r?l.hover:void 0,"--ai-hover-color":s||r?l.hoverColor:void 0,"--ai-color":l.color,"--ai-bd":s||r?l.border:void 0}}},so=Rt((e,t)=>{const n=V("ActionIcon",t_,e),{className:r,unstyled:o,variant:s,classNames:i,styles:l,style:a,loading:c,loaderProps:u,size:d,color:f,radius:p,__staticSelector:h,gradient:g,vars:x,children:y,disabled:v,"data-disabled":w,autoContrast:S,mod:k,...C}=n,T=le({name:["ActionIcon",h],props:n,className:r,style:a,classes:Kf,classNames:i,styles:l,unstyled:o,vars:x,varsResolver:n_});return m.jsxs(Fs,{...T("root",{active:!v&&!c&&!w}),...C,unstyled:o,variant:s,size:d,disabled:v||c,ref:t,mod:[{loading:c,disabled:v||w},k],children:[m.jsx(Bs,{mounted:!!c,transition:"slide-down",duration:150,children:E=>m.jsx(Y,{component:"span",...T("loader",{style:E}),"aria-hidden":!0,children:m.jsx(Ga,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...u})})}),m.jsx(Y,{component:"span",mod:{loading:c},...T("icon"),children:y})]})});so.classes=Kf;so.displayName="@mantine/core/ActionIcon";so.Group=V0;const oM=b.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...n},r)=>m.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:r,...n,children:m.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"})}));oM.displayName="@mantine/core/CloseIcon";var sM={root:"m_86a44da5","root--subtle":"m_220c80f2"};const r_={variant:"subtle"},o_=(e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":Ee(t,"cb-size"),"--cb-radius":n===void 0?void 0:kn(n),"--cb-icon-size":O(r)}}),qf=Rt((e,t)=>{const n=V("CloseButton",r_,e),{iconSize:r,children:o,vars:s,radius:i,className:l,classNames:a,style:c,styles:u,unstyled:d,"data-disabled":f,disabled:p,variant:h,icon:g,mod:x,...y}=n,v=le({name:"CloseButton",props:n,className:l,style:c,classes:sM,classNames:a,styles:u,unstyled:d,vars:s,varsResolver:o_});return m.jsxs(Fs,{ref:t,...y,unstyled:d,variant:h,disabled:p,mod:[{disabled:p||f},x],...v("root",{variant:h,active:!p&&!f}),children:[g||m.jsx(oM,{}),o]})});qf.classes=sM;qf.displayName="@mantine/core/CloseButton";function s_(e){return b.Children.toArray(e).filter(Boolean)}var iM={root:"m_4081bf90"};const i_={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},l_=(e,{grow:t,preventGrowOverflow:n,gap:r,align:o,justify:s,wrap:i},{childWidth:l})=>({root:{"--group-child-width":t&&n?l:void 0,"--group-gap":sr(r),"--group-align":o,"--group-justify":s,"--group-wrap":i}}),Hs=Q((e,t)=>{const n=V("Group",i_,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,children:a,gap:c,align:u,justify:d,wrap:f,grow:p,preventGrowOverflow:h,vars:g,variant:x,__size:y,mod:v,...w}=n,S=s_(a),k=S.length,C=sr(c??"md"),E={childWidth:`calc(${100/k}% - (${C} - ${C} / ${k}))`},N=le({name:"Group",props:n,stylesCtx:E,className:o,style:s,classes:iM,classNames:r,styles:i,unstyled:l,vars:g,varsResolver:l_});return m.jsx(Y,{...N("root"),ref:t,variant:x,mod:[{grow:p},v],size:y,...w,children:S})});Hs.classes=iM;Hs.displayName="@mantine/core/Group";var lM={root:"m_9814e45f"};const a_={zIndex:$s("modal")},c_=(e,{gradient:t,color:n,backgroundOpacity:r,blur:o,radius:s,zIndex:i})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Yn(n||"#000",r??.6)||void 0,"--overlay-filter":o?`blur(${O(o)})`:void 0,"--overlay-radius":s===void 0?void 0:kn(s),"--overlay-z-index":i==null?void 0:i.toString()}}),U0=Rt((e,t)=>{const n=V("Overlay",a_,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,fixed:c,center:u,children:d,radius:f,zIndex:p,gradient:h,blur:g,color:x,backgroundOpacity:y,mod:v,...w}=n,S=le({name:"Overlay",props:n,classes:lM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:c_});return m.jsx(Y,{ref:t,...S("root"),mod:[{center:u,fixed:c},v],...w,children:d})});U0.classes=lM;U0.displayName="@mantine/core/Overlay";const[u_,Ur]=Bo("ModalBase component was not found in tree");function d_({opened:e,transitionDuration:t}){const[n,r]=b.useState(e),o=b.useRef(),i=sT()?0:t;return b.useEffect(()=>(e?(r(!0),window.clearTimeout(o.current)):i===0?r(!1):o.current=window.setTimeout(()=>r(!1),i),()=>window.clearTimeout(o.current)),[e,i]),n}function f_({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:o,onClose:s,returnFocus:i}){const l=al(e),[a,c]=b.useState(!1),[u,d]=b.useState(!1),f=typeof(t==null?void 0:t.duration)=="number"?t==null?void 0:t.duration:200,p=d_({opened:n,transitionDuration:f});return tT("keydown",h=>{var g;h.key==="Escape"&&o&&n&&((g=h.target)==null?void 0:g.getAttribute("data-mantine-stop-propagation"))!=="true"&&s()},{capture:!0}),XE({opened:n,shouldReturnFocus:r&&i}),{_id:l,titleMounted:a,bodyMounted:u,shouldLockScroll:p,setTitleMounted:c,setBodyMounted:d}}const p_=b.forwardRef(({keepMounted:e,opened:t,onClose:n,id:r,transitionProps:o,trapFocus:s,closeOnEscape:i,returnFocus:l,closeOnClickOutside:a,withinPortal:c,portalProps:u,lockScroll:d,children:f,zIndex:p,shadow:h,padding:g,__vars:x,unstyled:y,removeScrollProps:v,...w},S)=>{const{_id:k,titleMounted:C,bodyMounted:T,shouldLockScroll:E,setTitleMounted:N,setBodyMounted:A}=f_({id:r,transitionProps:o,opened:t,trapFocus:s,closeOnEscape:i,onClose:n,returnFocus:l});return m.jsx(Ja,{...u,withinPortal:c,children:m.jsx(u_,{value:{opened:t,onClose:n,closeOnClickOutside:a,transitionProps:{...o,keepMounted:e},getTitleId:()=>`${k}-title`,getBodyId:()=>`${k}-body`,titleMounted:C,bodyMounted:T,setTitleMounted:N,setBodyMounted:A,trapFocus:s,closeOnEscape:i,zIndex:p,unstyled:y},children:m.jsx(ED,{enabled:E&&d,...v,children:m.jsx(Y,{ref:S,...w,__vars:{...x,"--mb-z-index":(p||$s("modal")).toString(),"--mb-shadow":y0(h),"--mb-padding":sr(g)},children:f})})})})});function h_(){const e=Ur();return b.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Ji={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const aM=b.forwardRef(({className:e,...t},n)=>{const r=h_(),o=Ur();return m.jsx(Y,{ref:n,...t,id:r,className:at({[Ji.body]:!o.unstyled},e)})});aM.displayName="@mantine/core/ModalBaseBody";const cM=b.forwardRef(({className:e,onClick:t,...n},r)=>{const o=Ur();return m.jsx(qf,{ref:r,...n,onClick:s=>{o.onClose(),t==null||t(s)},className:at({[Ji.close]:!o.unstyled},e),unstyled:o.unstyled})});cM.displayName="@mantine/core/ModalBaseCloseButton";const m_=b.forwardRef(({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:o,...s},i)=>{const l=Ur();return m.jsx(Bs,{mounted:l.opened,transition:"pop",...l.transitionProps,...e,children:a=>m.jsx("div",{...n,className:at({[Ji.inner]:!l.unstyled},n.className),children:m.jsx(Wf,{active:l.opened&&l.trapFocus,children:m.jsx(mr,{...s,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":l.bodyMounted?l.getBodyId():void 0,"aria-labelledby":l.titleMounted?l.getTitleId():void 0,ref:i,style:[o,a],className:at({[Ji.content]:!l.unstyled},t),unstyled:l.unstyled,children:s.children})})})})}),uM=b.forwardRef(({className:e,...t},n)=>{const r=Ur();return m.jsx(Y,{component:"header",ref:n,className:at({[Ji.header]:!r.unstyled},e),...t})});uM.displayName="@mantine/core/ModalBaseHeader";const g_={duration:200,timingFunction:"ease",transition:"fade"};function y_(e){const t=Ur();return{...g_,...t.transitionProps,...e}}const dM=b.forwardRef(({onClick:e,transitionProps:t,style:n,...r},o)=>{const s=Ur(),i=y_(t);return m.jsx(Bs,{mounted:s.opened,...i,transition:"fade",children:l=>m.jsx(U0,{ref:o,fixed:!0,style:[n,l],zIndex:s.zIndex,unstyled:s.unstyled,onClick:a=>{e==null||e(a),s.closeOnClickOutside&&s.onClose()},...r})})});dM.displayName="@mantine/core/ModalBaseOverlay";function v_(){const e=Ur();return b.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const fM=b.forwardRef(({className:e,...t},n)=>{const r=v_(),o=Ur();return m.jsx(Y,{component:"h2",ref:n,className:at({[Ji.title]:!o.unstyled},e),...t,id:r})});fM.displayName="@mantine/core/ModalBaseTitle";function x_({children:e}){return m.jsx(m.Fragment,{children:e})}const[b_,Jf]=GE({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var En={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 Pb={},w_=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${gn(t)} - ${O(2)})`}}),Gf=Q((e,t)=>{const n=V("InputDescription",Pb,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:f,...p}=V("InputDescription",Pb,n),h=Jf(),g=le({name:["InputWrapper",u],props:n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,rootSelector:"description",vars:a,varsResolver:w_}),x=d&&(h==null?void 0:h.getStyles)||g;return m.jsx(Y,{component:"p",ref:t,variant:f,size:c,...x("description",h!=null&&h.getStyles?{className:o,style:s}:void 0),...p})});Gf.classes=En;Gf.displayName="@mantine/core/InputDescription";const S_={},k_=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${gn(t)} - ${O(2)})`}}),Yf=Q((e,t)=>{const n=V("InputError",S_,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:f,...p}=n,h=le({name:["InputWrapper",u],props:n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,rootSelector:"error",vars:a,varsResolver:k_}),g=Jf(),x=d&&(g==null?void 0:g.getStyles)||h;return m.jsx(Y,{component:"p",ref:t,variant:f,size:c,...x("error",g!=null&&g.getStyles?{className:o,style:s}:void 0),...p})});Yf.classes=En;Yf.displayName="@mantine/core/InputError";const Ab={labelElement:"label"},C_=(e,{size:t})=>({label:{"--input-label-size":gn(t),"--input-asterisk-color":void 0}}),Xf=Q((e,t)=>{const n=V("InputLabel",Ab,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,labelElement:c,size:u,required:d,htmlFor:f,onMouseDown:p,children:h,__staticSelector:g,variant:x,mod:y,...v}=V("InputLabel",Ab,n),w=le({name:["InputWrapper",g],props:n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,rootSelector:"label",vars:a,varsResolver:C_}),S=Jf(),k=(S==null?void 0:S.getStyles)||w;return m.jsxs(Y,{...k("label",S!=null&&S.getStyles?{className:o,style:s}:void 0),component:c,variant:x,size:u,ref:t,htmlFor:c==="label"?f:void 0,mod:[{required:d},y],onMouseDown:C=>{p==null||p(C),!C.defaultPrevented&&C.detail>1&&C.preventDefault()},...v,children:[h,d&&m.jsx("span",{...k("required"),"aria-hidden":!0,children:" *"})]})});Xf.classes=En;Xf.displayName="@mantine/core/InputLabel";const jb={},W0=Q((e,t)=>{const n=V("InputPlaceholder",jb,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,__staticSelector:c,variant:u,error:d,mod:f,...p}=V("InputPlaceholder",jb,n),h=le({name:["InputPlaceholder",c],props:n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,rootSelector:"placeholder"});return m.jsx(Y,{...h("placeholder"),mod:[{error:!!d},f],component:"span",variant:u,ref:t,...p})});W0.classes=En;W0.displayName="@mantine/core/InputPlaceholder";function E_(e,{hasDescription:t,hasError:n}){const r=e.findIndex(a=>a==="input"),o=e[r-1],s=e[r+1];return{offsetBottom:t&&s==="description"||n&&s==="error",offsetTop:t&&o==="description"||n&&o==="error"}}const T_={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},M_=(e,{size:t})=>({label:{"--input-label-size":gn(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${gn(t)} - ${O(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${gn(t)} - ${O(2)})`}}),K0=Q((e,t)=>{const n=V("InputWrapper",T_,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,size:c,variant:u,__staticSelector:d,inputContainer:f,inputWrapperOrder:p,label:h,error:g,description:x,labelProps:y,descriptionProps:v,errorProps:w,labelElement:S,children:k,withAsterisk:C,id:T,required:E,__stylesApiProps:N,mod:A,...z}=n,H=le({name:["InputWrapper",d],props:N||n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:M_}),B={size:c,variant:u,__staticSelector:d},F=al(T),j=typeof C=="boolean"?C:E,P=(w==null?void 0:w.id)||`${F}-error`,I=(v==null?void 0:v.id)||`${F}-description`,M=F,R=!!g&&typeof g!="boolean",D=!!x,W=`${R?P:""} ${D?I:""}`,Z=W.trim().length>0?W.trim():void 0,fe=(y==null?void 0:y.id)||`${F}-label`,ne=h&&m.jsx(Xf,{labelElement:S,id:fe,htmlFor:M,required:j,...B,...y,children:h},"label"),ee=D&&m.jsx(Gf,{...v,...B,size:(v==null?void 0:v.size)||B.size,id:(v==null?void 0:v.id)||I,children:x},"description"),ce=m.jsx(b.Fragment,{children:f(k)},"input"),Ie=R&&b.createElement(Yf,{...w,...B,size:(w==null?void 0:w.size)||B.size,key:"error",id:(w==null?void 0:w.id)||P},g),ze=p.map(Mn=>{switch(Mn){case"label":return ne;case"input":return ce;case"description":return ee;case"error":return Ie;default:return null}});return m.jsx(b_,{value:{getStyles:H,describedBy:Z,inputId:M,labelId:fe,...E_(p,{hasDescription:D,hasError:R})},children:m.jsx(Y,{ref:t,variant:u,size:c,mod:[{error:!!g},A],...H("root"),...z,children:ze})})});K0.classes=En;K0.displayName="@mantine/core/InputWrapper";const R_={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},N_=(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":Ee(t.size,"input-height"),"--input-fz":gn(t.size),"--input-radius":t.radius===void 0?void 0:kn(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?O(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?O(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?Ee(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),wn=Rt((e,t)=>{const n=V("Input",R_,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,required:a,__staticSelector:c,__stylesApiProps:u,size:d,wrapperProps:f,error:p,disabled:h,leftSection:g,leftSectionProps:x,leftSectionWidth:y,rightSection:v,rightSectionProps:w,rightSectionWidth:S,rightSectionPointerEvents:k,leftSectionPointerEvents:C,variant:T,vars:E,pointer:N,multiline:A,radius:z,id:H,withAria:B,withErrorStyles:F,mod:j,...P}=n,{styleProps:I,rest:M}=S0(P),R=Jf(),D={offsetBottom:R==null?void 0:R.offsetBottom,offsetTop:R==null?void 0:R.offsetTop},W=le({name:["Input",c],props:u||n,classes:En,className:o,style:s,classNames:r,styles:i,unstyled:l,stylesCtx:D,rootSelector:"wrapper",vars:E,varsResolver:N_}),Z=B?{required:a,disabled:h,"aria-invalid":!!p,"aria-describedby":R==null?void 0:R.describedBy,id:(R==null?void 0:R.inputId)||H}:{};return m.jsxs(Y,{...W("wrapper"),...I,...f,mod:[{error:!!p&&F,pointer:N,disabled:h,multiline:A,"data-with-right-section":!!v,"data-with-left-section":!!g},j],variant:T,size:d,children:[g&&m.jsx("div",{...x,"data-position":"left",...W("section",{className:x==null?void 0:x.className,style:x==null?void 0:x.style}),children:g}),m.jsx(Y,{component:"input",...M,...Z,ref:t,required:a,mod:{disabled:h,error:!!p&&F},variant:T,...W("input")}),v&&m.jsx("div",{...w,"data-position":"right",...W("section",{className:w==null?void 0:w.className,style:w==null?void 0:w.style}),children:v})]})});wn.classes=En;wn.Wrapper=K0;wn.Label=Xf;wn.Error=Yf;wn.Description=Gf;wn.Placeholder=W0;wn.displayName="@mantine/core/Input";function O_(e,t,n){const r=V(e,t,n),{label:o,description:s,error:i,required:l,classNames:a,styles:c,className:u,unstyled:d,__staticSelector:f,__stylesApiProps:p,errorProps:h,labelProps:g,descriptionProps:x,wrapperProps:y,id:v,size:w,style:S,inputContainer:k,inputWrapperOrder:C,withAsterisk:T,variant:E,vars:N,mod:A,...z}=r,{styleProps:H,rest:B}=S0(z),F={label:o,description:s,error:i,required:l,classNames:a,className:u,__staticSelector:f,__stylesApiProps:p||r,errorProps:h,labelProps:g,descriptionProps:x,unstyled:d,styles:c,size:w,style:S,inputContainer:k,inputWrapperOrder:C,withAsterisk:T,variant:E,id:v,mod:A,...y};return{...B,classNames:a,styles:c,unstyled:d,wrapperProps:{...F,...H},inputProps:{required:l,classNames:a,styles:c,unstyled:d,size:w,__staticSelector:f,__stylesApiProps:p||r,error:i,variant:E,id:v}}}const P_={__staticSelector:"InputBase",withAria:!0},dl=Rt((e,t)=>{const{inputProps:n,wrapperProps:r,...o}=O_("InputBase",P_,e);return m.jsx(wn.Wrapper,{...r,children:m.jsx(wn,{...n,...o,ref:t})})});dl.classes={...wn.classes,...wn.Wrapper.classes};dl.displayName="@mantine/core/InputBase";var pM={root:"m_b6d8b162"};function A_(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const j_={inherit:!1},I_=(e,{variant:t,lineClamp:n,gradient:r,size:o,color:s})=>({root:{"--text-fz":gn(o),"--text-lh":PD(o),"--text-gradient":t==="gradient"?hg(r,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":s?Es(s,e):void 0}}),ge=Rt((e,t)=>{const n=V("Text",j_,e),{lineClamp:r,truncate:o,inline:s,inherit:i,gradient:l,span:a,__staticSelector:c,vars:u,className:d,style:f,classNames:p,styles:h,unstyled:g,variant:x,mod:y,size:v,...w}=n,S=le({name:["Text",c],props:n,classes:pM,className:d,style:f,classNames:p,styles:h,unstyled:g,vars:u,varsResolver:I_});return m.jsx(Y,{...S("root",{focusable:!0}),ref:t,component:a?"span":"p",variant:x,mod:[{"data-truncate":A_(o),"data-line-clamp":typeof r=="number","data-inline":s,"data-inherit":i},y],size:v,...w})});ge.classes=pM;ge.displayName="@mantine/core/Text";var hM={root:"m_849cf0da"};const L_={underline:"hover"},Qf=Rt((e,t)=>{const{underline:n,className:r,unstyled:o,mod:s,...i}=V("Anchor",L_,e);return m.jsx(ge,{component:"a",ref:t,className:at({[hM.root]:!o},r),...i,mod:[{underline:n},s],__staticSelector:"Anchor",unstyled:o})});Qf.classes=hM;Qf.displayName="@mantine/core/Anchor";function mM(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=>mM(t))}:e}function D_(e){return e?e.map(t=>mM(t)):[]}function gM(e){return e.reduce((t,n)=>"group"in n?{...t,...gM(n.items)}:(t[n.value]=n,t),{})}var Ht={dropdown:"m_88b62a41",options:"m_b2821a6e",option:"m_92253aa5",search:"m_985517d8",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const $_={error:null},__=(e,{size:t})=>({chevron:{"--combobox-chevron-size":Ee(t,"combobox-chevron-size")}}),q0=Q((e,t)=>{const n=V("ComboboxChevron",$_,e),{size:r,error:o,style:s,className:i,classNames:l,styles:a,unstyled:c,vars:u,mod:d,...f}=n,p=le({name:"ComboboxChevron",classes:Ht,props:n,style:s,className:i,classNames:l,styles:a,unstyled:c,vars:u,varsResolver:__,rootSelector:"chevron"});return m.jsx(Y,{component:"svg",...f,...p("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},d],ref:t,children:m.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"})})});q0.classes=Ht;q0.displayName="@mantine/core/ComboboxChevron";const[F_,Tn]=Bo("Combobox component was not found in tree"),yM=b.forwardRef(({size:e,onMouseDown:t,onClick:n,onClear:r,...o},s)=>m.jsx(qf,{ref:s,size:e||"sm",variant:"transparent",tabIndex:-1,"aria-hidden":!0,...o,onMouseDown:i=>{i.preventDefault(),t==null||t(i)},onClick:i=>{r(),n==null||n(i)}}));yM.displayName="@mantine/core/ComboboxClearButton";const z_={},J0=Q((e,t)=>{const{classNames:n,styles:r,className:o,style:s,hidden:i,...l}=V("ComboboxDropdown",z_,e),a=Tn();return m.jsx(zt.Dropdown,{...l,ref:t,role:"presentation","data-hidden":i||void 0,...a.getStyles("dropdown",{className:o,style:s,classNames:n,styles:r})})});J0.classes=Ht;J0.displayName="@mantine/core/ComboboxDropdown";const B_={refProp:"ref"},vM=Q((e,t)=>{const{children:n,refProp:r}=V("ComboboxDropdownTarget",B_,e);if(Tn(),!Ds(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 m.jsx(zt.Target,{ref:t,refProp:r,children:n})});vM.displayName="@mantine/core/ComboboxDropdownTarget";const H_={},G0=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=V("ComboboxEmpty",H_,e),a=Tn();return m.jsx(Y,{ref:t,...a.getStyles("empty",{className:r,classNames:n,styles:s,style:o}),...l})});G0.classes=Ht;G0.displayName="@mantine/core/ComboboxEmpty";function Y0({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:o,autoComplete:s}){const i=Tn(),[l,a]=b.useState(null),c=d=>{if(e==null||e(d),!i.readOnly&&t){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),i.store.dropdownOpened?a(i.store.selectNextOption()):(i.store.openDropdown("keyboard"),a(i.store.selectActiveOption()))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),i.store.dropdownOpened?a(i.store.selectPreviousOption()):(i.store.openDropdown("keyboard"),a(i.store.selectActiveOption()))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const f=i.store.getSelectedOptionIndex();i.store.dropdownOpened&&f!==-1?(d.preventDefault(),i.store.clickSelectedOption()):o==="button"&&(d.preventDefault(),i.store.openDropdown("keyboard"))}d.nativeEvent.code==="Escape"&&i.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&o==="button"&&(d.preventDefault(),i.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":r&&!!(i.store.listId&&i.store.dropdownOpened)||void 0,"aria-controls":i.store.listId,"aria-activedescendant":i.store.dropdownOpened&&l||void 0,autoComplete:s,"data-expanded":i.store.dropdownOpened||void 0,"data-mantine-stop-propagation":i.store.dropdownOpened||void 0}:{},onKeyDown:c}}const V_={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},xM=Q((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:i,targetType:l,autoComplete:a,...c}=V("ComboboxEventsTarget",V_,e);if(!Ds(n))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 u=Tn(),d=Y0({targetType:l,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:i,onKeyDown:n.props.onKeyDown,autoComplete:a});return b.cloneElement(n,{...d,...c,[r]:Mt(t,u.store.targetRef,n==null?void 0:n.ref)})});xM.displayName="@mantine/core/ComboboxEventsTarget";const U_={},X0=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=V("ComboboxFooter",U_,e),a=Tn();return m.jsx(Y,{ref:t,...a.getStyles("footer",{className:r,classNames:n,style:o,styles:s}),...l})});X0.classes=Ht;X0.displayName="@mantine/core/ComboboxFooter";const W_={},Q0=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,children:l,label:a,...c}=V("ComboboxGroup",W_,e),u=Tn();return m.jsxs(Y,{ref:t,...u.getStyles("group",{className:r,classNames:n,style:o,styles:s}),...c,children:[a&&m.jsx("div",{...u.getStyles("groupLabel",{classNames:n,styles:s}),children:a}),l]})});Q0.classes=Ht;Q0.displayName="@mantine/core/ComboboxGroup";const K_={},Z0=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=V("ComboboxHeader",K_,e),a=Tn();return m.jsx(Y,{ref:t,...a.getStyles("header",{className:r,classNames:n,style:o,styles:s}),...l})});Z0.classes=Ht;Z0.displayName="@mantine/core/ComboboxHeader";function bM({value:e,valuesDivider:t=",",...n}){return m.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...n})}bM.displayName="@mantine/core/ComboboxHiddenInput";const q_={},ev=Q((e,t)=>{const n=V("ComboboxOption",q_,e),{classNames:r,className:o,style:s,styles:i,vars:l,onClick:a,id:c,active:u,onMouseDown:d,onMouseOver:f,disabled:p,selected:h,mod:g,...x}=n,y=Tn(),v=b.useId(),w=c||v;return m.jsx(Y,{...y.getStyles("option",{className:o,classNames:r,styles:i,style:s}),...x,ref:t,id:w,mod:["combobox-option",{"combobox-active":u,"combobox-disabled":p,"combobox-selected":h},g],role:"option",onClick:S=>{var k;p?S.preventDefault():((k=y.onOptionSubmit)==null||k.call(y,n.value,n),a==null||a(S))},onMouseDown:S=>{S.preventDefault(),d==null||d(S)},onMouseOver:S=>{y.resetSelectionOnOptionHover&&y.store.resetSelectedOption(),f==null||f(S)}})});ev.classes=Ht;ev.displayName="@mantine/core/ComboboxOption";const J_={},tv=Q((e,t)=>{const n=V("ComboboxOptions",J_,e),{classNames:r,className:o,style:s,styles:i,id:l,onMouseDown:a,labelledBy:c,...u}=n,d=Tn(),f=al(l);return b.useEffect(()=>{d.store.setListId(f)},[f]),m.jsx(Y,{ref:t,...d.getStyles("options",{className:o,style:s,classNames:r,styles:i}),...u,id:f,role:"listbox","aria-labelledby":c,onMouseDown:p=>{p.preventDefault(),a==null||a(p)}})});tv.classes=Ht;tv.displayName="@mantine/core/ComboboxOptions";const G_={withAriaAttributes:!0,withKeyboardNavigation:!0},nv=Q((e,t)=>{const n=V("ComboboxSearch",G_,e),{classNames:r,styles:o,unstyled:s,vars:i,withAriaAttributes:l,onKeyDown:a,withKeyboardNavigation:c,size:u,...d}=n,f=Tn(),p=f.getStyles("search"),h=Y0({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:a,autoComplete:"off"});return m.jsx(wn,{ref:Mt(t,f.store.searchRef),classNames:[{input:p.className},r],styles:[{input:p.style},o],size:u||f.size,...h,...d,__staticSelector:"Combobox"})});nv.classes=Ht;nv.displayName="@mantine/core/ComboboxSearch";const Y_={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},wM=Q((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:i,targetType:l,autoComplete:a,...c}=V("ComboboxTarget",Y_,e);if(!Ds(n))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 u=Tn(),d=Y0({targetType:l,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:i,onKeyDown:n.props.onKeyDown,autoComplete:a}),f=b.cloneElement(n,{...d,...c});return m.jsx(zt.Target,{ref:Mt(t,u.store.targetRef),children:f})});wM.displayName="@mantine/core/ComboboxTarget";function X_(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=t.length-1;r>-1;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r}return e}function Q_(e,t,n){for(let r=e+1;r{l||(a(!0),o==null||o(P))},[a,o,l]),y=b.useCallback((P="unknown")=>{l&&(a(!1),r==null||r(P))},[a,r,l]),v=b.useCallback((P="unknown")=>{l?y(P):x(P)},[y,x,l]),w=b.useCallback(()=>{const P=document.querySelector(`#${c.current} [data-combobox-selected]`);P==null||P.removeAttribute("data-combobox-selected"),P==null||P.removeAttribute("aria-selected")},[]),S=b.useCallback(P=>{const I=document.getElementById(c.current),M=I==null?void 0:I.querySelectorAll("[data-combobox-option]");if(!M)return null;const R=P>=M.length?0:P<0?M.length-1:P;return u.current=R,M!=null&&M[R]&&!M[R].hasAttribute("data-combobox-disabled")?(w(),M[R].setAttribute("data-combobox-selected","true"),M[R].setAttribute("aria-selected","true"),M[R].scrollIntoView({block:"nearest",behavior:i}),M[R].id):null},[i,w]),k=b.useCallback(()=>{const P=document.querySelector(`#${c.current} [data-combobox-active]`);if(P){const I=document.querySelectorAll(`#${c.current} [data-combobox-option]`),M=Array.from(I).findIndex(R=>R===P);return S(M)}return S(0)},[S]),C=b.useCallback(()=>S(Q_(u.current,document.querySelectorAll(`#${c.current} [data-combobox-option]`),s)),[S,s]),T=b.useCallback(()=>S(X_(u.current,document.querySelectorAll(`#${c.current} [data-combobox-option]`),s)),[S,s]),E=b.useCallback(()=>S(Z_(document.querySelectorAll(`#${c.current} [data-combobox-option]`))),[S]),N=b.useCallback((P="selected",I)=>{g.current=window.setTimeout(()=>{var D;const M=document.querySelectorAll(`#${c.current} [data-combobox-option]`),R=Array.from(M).findIndex(W=>W.hasAttribute(`data-combobox-${P}`));u.current=R,I!=null&&I.scrollIntoView&&((D=M[R])==null||D.scrollIntoView({block:"nearest",behavior:i}))},0)},[]),A=b.useCallback(()=>{u.current=-1,w()},[w]),z=b.useCallback(()=>{const P=document.querySelectorAll(`#${c.current} [data-combobox-option]`),I=P==null?void 0:P[u.current];I==null||I.click()},[]),H=b.useCallback(P=>{c.current=P},[]),B=b.useCallback(()=>{p.current=window.setTimeout(()=>d.current.focus(),0)},[]),F=b.useCallback(()=>{h.current=window.setTimeout(()=>f.current.focus(),0)},[]),j=b.useCallback(()=>u.current,[]);return b.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(h.current),window.clearTimeout(g.current)},[]),{dropdownOpened:l,openDropdown:x,closeDropdown:y,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:j,selectOption:S,selectFirstOption:E,selectActiveOption:k,selectNextOption:C,selectPreviousOption:T,resetSelectedOption:A,updateSelectedOptionIndex:N,listId:c.current,setListId:H,clickSelectedOption:z,searchRef:d,focusSearchInput:B,targetRef:f,focusTarget:F}}const eF={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},tF=(e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":gn(t),"--combobox-option-padding":Ee(t,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:O(n),"--combobox-option-fz":gn(t),"--combobox-option-padding":Ee(t,"combobox-option-padding")}});function ve(e){const t=V("Combobox",eF,e),{classNames:n,styles:r,unstyled:o,children:s,store:i,vars:l,onOptionSubmit:a,onClose:c,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:h,...g}=t,x=SM(),y=i||x,v=le({name:p||"Combobox",classes:Ht,props:t,classNames:n,styles:r,unstyled:o,vars:l,varsResolver:tF}),w=()=>{c==null||c(),y.closeDropdown()};return m.jsx(F_,{value:{getStyles:v,store:y,onOptionSubmit:a,size:u,resetSelectionOnOptionHover:f,readOnly:h},children:m.jsx(zt,{opened:y.dropdownOpened,...g,onClose:w,withRoles:!1,unstyled:o,children:s})})}const nF=e=>e;ve.extend=nF;ve.classes=Ht;ve.displayName="@mantine/core/Combobox";ve.Target=wM;ve.Dropdown=J0;ve.Options=tv;ve.Option=ev;ve.Search=nv;ve.Empty=G0;ve.Chevron=q0;ve.Footer=X0;ve.Header=Z0;ve.EventsTarget=xM;ve.DropdownTarget=vM;ve.Group=Q0;ve.ClearButton=yM;ve.HiddenInput=bM;function rF({size:e,style:t,...n}){const r=e!==void 0?{width:O(e),height:O(e),...t}:t;return m.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:m.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 Ca(e){return"group"in e}function kM({options:e,search:t,limit:n}){const r=t.trim().toLowerCase(),o=[];for(let s=0;s0)return!1;return!0}function CM(e,t=new Set){if(Array.isArray(e))for(const n of e)if(Ca(n))CM(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 sF(e,t){return Array.isArray(e)?e.includes(t):e===t}function EM({data:e,withCheckIcon:t,value:n,checkIconPosition:r,unstyled:o,renderOption:s}){if(!Ca(e)){const l=sF(n,e.value),a=t&&l&&m.jsx(rF,{className:Ht.optionsDropdownCheckIcon}),c=m.jsxs(m.Fragment,{children:[r==="left"&&a,m.jsx("span",{children:e.label}),r==="right"&&a]});return m.jsx(ve.Option,{value:e.value,disabled:e.disabled,className:at({[Ht.optionsDropdownOption]:!o}),"data-reverse":r==="right"||void 0,"data-checked":l||void 0,"aria-selected":l,active:l,children:typeof s=="function"?s({option:e,checked:l}):c})}const i=e.items.map(l=>m.jsx(EM,{data:l,value:n,unstyled:o,withCheckIcon:t,checkIconPosition:r,renderOption:s},l.value));return m.jsx(ve.Group,{label:e.group,children:i})}function iF({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:o,limit:s,maxDropdownHeight:i,withScrollArea:l=!0,filterOptions:a=!0,withCheckIcon:c=!1,value:u,checkIconPosition:d,nothingFoundMessage:f,unstyled:p,labelId:h,renderOption:g,scrollAreaProps:x,"aria-label":y}){CM(e);const w=typeof o=="string"?(r||kM)({options:e,search:a?o:"",limit:s??1/0}):e,S=oF(w),k=w.map(C=>m.jsx(EM,{data:C,withCheckIcon:c,value:u,checkIconPosition:d,unstyled:p,renderOption:g},Ca(C)?C.group:C.value));return m.jsx(ve.Dropdown,{hidden:t||n&&S,children:m.jsxs(ve.Options,{labelledBy:h,"aria-label":y,children:[l?m.jsx(Ka.Autosize,{mah:i??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...x,children:k}):k,S&&f&&m.jsx(ve.Empty,{children:f})]})})}var TM={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const lF={},aF=(e,{radius:t,color:n,gradient:r,variant:o,size:s,autoContrast:i})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:i});return{root:{"--badge-height":Ee(s,"badge-height"),"--badge-padding-x":Ee(s,"badge-padding-x"),"--badge-fz":Ee(s,"badge-fz"),"--badge-radius":t===void 0?void 0:kn(t),"--badge-bg":n||o?l.background:void 0,"--badge-color":n||o?l.color:void 0,"--badge-bd":n||o?l.border:void 0,"--badge-dot-color":o==="dot"?Es(n,e):void 0}}},rv=Rt((e,t)=>{const n=V("Badge",lF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,radius:c,color:u,gradient:d,leftSection:f,rightSection:p,children:h,variant:g,fullWidth:x,autoContrast:y,circle:v,mod:w,...S}=n,k=le({name:"Badge",props:n,classes:TM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:aF});return m.jsxs(Y,{variant:g,mod:[{block:x,circle:v},w],...k("root",{variant:g}),ref:t,...S,children:[f&&m.jsx("span",{...k("section"),"data-position":"left",children:f}),m.jsx("span",{...k("label"),children:h}),p&&m.jsx("span",{...k("section"),"data-position":"right",children:p})]})});rv.classes=TM;rv.displayName="@mantine/core/Badge";var Zf={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844"};const Ib={orientation:"horizontal"},cF=(e,{borderWidth:t})=>({group:{"--button-border-width":O(t)}}),ov=Q((e,t)=>{const n=V("ButtonGroup",Ib,e),{className:r,style:o,classNames:s,styles:i,unstyled:l,orientation:a,vars:c,borderWidth:u,variant:d,mod:f,...p}=V("ButtonGroup",Ib,e),h=le({name:"ButtonGroup",props:n,classes:Zf,className:r,style:o,classNames:s,styles:i,unstyled:l,vars:c,varsResolver:cF,rootSelector:"group"});return m.jsx(Y,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":a},f],role:"group",...p})});ov.classes=Zf;ov.displayName="@mantine/core/ButtonGroup";const uF={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${O(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},dF={},fF=(e,{radius:t,color:n,gradient:r,variant:o,size:s,justify:i,autoContrast:l})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:l});return{root:{"--button-justify":i,"--button-height":Ee(s,"button-height"),"--button-padding-x":Ee(s,"button-padding-x"),"--button-fz":s!=null&&s.includes("compact")?gn(s.replace("compact-","")):gn(s),"--button-radius":t===void 0?void 0:kn(t),"--button-bg":n||o?a.background:void 0,"--button-hover":n||o?a.hover:void 0,"--button-color":a.color,"--button-bd":n||o?a.border:void 0,"--button-hover-color":n||o?a.hoverColor:void 0}}},Ve=Rt((e,t)=>{const n=V("Button",dF,e),{style:r,vars:o,className:s,color:i,disabled:l,children:a,leftSection:c,rightSection:u,fullWidth:d,variant:f,radius:p,loading:h,loaderProps:g,gradient:x,classNames:y,styles:v,unstyled:w,"data-disabled":S,autoContrast:k,mod:C,...T}=n,E=le({name:"Button",props:n,classes:Zf,className:s,style:r,classNames:y,styles:v,unstyled:w,vars:o,varsResolver:fF}),N=!!c,A=!!u;return m.jsxs(Fs,{ref:t,...E("root",{active:!l&&!h&&!S}),unstyled:w,variant:f,disabled:l||h,mod:[{disabled:l||S,loading:h,block:d,"with-left-section":N,"with-right-section":A},C],...T,children:[m.jsx(Bs,{mounted:!!h,transition:uF,duration:150,children:z=>m.jsx(Y,{component:"span",...E("loader",{style:z}),"aria-hidden":!0,children:m.jsx(Ga,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...g})})}),m.jsxs("span",{...E("inner"),children:[c&&m.jsx(Y,{component:"span",...E("section"),mod:{position:"left"},children:c}),m.jsx(Y,{component:"span",mod:{loading:h},...E("label"),children:a}),u&&m.jsx(Y,{component:"span",...E("section"),mod:{position:"right"},children:u})]})]})});Ve.classes=Zf;Ve.displayName="@mantine/core/Button";Ve.Group=ov;const[pF,hF]=Bo("Card component was not found in tree");var sv={root:"m_e615b15f",section:"m_599a2148"};const mF={},ep=Rt((e,t)=>{const n=V("CardSection",mF,e),{classNames:r,className:o,style:s,styles:i,vars:l,withBorder:a,inheritPadding:c,mod:u,...d}=n,f=hF();return m.jsx(Y,{ref:t,mod:[{"with-border":a,"inherit-padding":c},u],...f.getStyles("section",{className:o,style:s,styles:i,classNames:r}),...d})});ep.classes=sv;ep.displayName="@mantine/core/CardSection";const gF={},yF=(e,{padding:t})=>({root:{"--card-padding":sr(t)}}),tp=Rt((e,t)=>{const n=V("Card",gF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,children:c,padding:u,...d}=n,f=le({name:"Card",props:n,classes:sv,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:yF}),p=b.Children.toArray(c),h=p.map((g,x)=>typeof g=="object"&&g&&"type"in g&&g.type===ep?b.cloneElement(g,{"data-first-section":x===0||void 0,"data-last-section":x===p.length-1||void 0}):g);return m.jsx(pF,{value:{getStyles:f},children:m.jsx(mr,{ref:t,unstyled:l,...f("root"),...d,children:h})})});tp.classes=sv;tp.displayName="@mantine/core/Card";tp.Section=ep;var MM={root:"m_4451eb3a"};const vF={},np=Rt((e,t)=>{const n=V("Center",vF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,inline:c,mod:u,...d}=n,f=le({name:"Center",props:n,classes:MM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a});return m.jsx(Y,{ref:t,mod:[{inline:c},u],...f("root"),...d})});np.classes=MM;np.displayName="@mantine/core/Center";var RM={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const Lb={withShadow:!0},xF=(e,{radius:t,size:n})=>({root:{"--cs-radius":t===void 0?void 0:kn(t),"--cs-size":O(n)}}),Ms=Rt((e,t)=>{const n=V("ColorSwatch",Lb,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,color:c,size:u,radius:d,withShadow:f,children:p,variant:h,...g}=V("ColorSwatch",Lb,n),x=le({name:"ColorSwatch",props:n,classes:RM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:xF});return m.jsxs(Y,{ref:t,variant:h,size:u,...x("root",{focusable:!0}),...g,children:[m.jsx("span",{...x("alphaOverlay")}),f&&m.jsx("span",{...x("shadowOverlay")}),m.jsx("span",{...x("colorOverlay",{style:{backgroundColor:c}})}),m.jsx("span",{...x("childrenOverlay"),children:p})]})});Ms.classes=RM;Ms.displayName="@mantine/core/ColorSwatch";const[bF,iv]=GE(null),lv=b.forwardRef(({position:e,...t},n)=>m.jsx(Y,{ref:n,__vars:{"--thumb-y-offset":`${e.y*100}%`,"--thumb-x-offset":`${e.x*100}%`},...t}));lv.displayName="@mantine/core/ColorPickerThumb";var av={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 wF={},cv=Q((e,t)=>{var M;const n=V("ColorSlider",wF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,onChange:c,onChangeEnd:u,maxValue:d,round:f,size:p="md",focusable:h=!0,value:g,overlays:x,thumbColor:y="transparent",onScrubStart:v,onScrubEnd:w,__staticSelector:S="ColorPicker",...k}=n,C=le({name:S,classes:av,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l}),E=((M=iv())==null?void 0:M.getStyles)||C,N=Wn(),[A,z]=b.useState({y:0,x:g/d}),H=b.useRef(A),B=R=>f?Math.round(R*d):R*d,{ref:F}=oT(({x:R,y:D})=>{H.current={x:R,y:D},c==null||c(B(R))},{onScrubEnd:()=>{const{x:R}=H.current;u==null||u(B(R)),w==null||w()},onScrubStart:v});dr(()=>{z({y:0,x:g/d})},[g]);const j=(R,D)=>{R.preventDefault();const W=rT(D);c==null||c(B(W.x)),u==null||u(B(W.x))},P=R=>{switch(R.key){case"ArrowRight":{j(R,{x:A.x+.05,y:A.y});break}case"ArrowLeft":{j(R,{x:A.x-.05,y:A.y});break}}},I=x.map((R,D)=>b.createElement("div",{...E("sliderOverlay"),style:R,key:D}));return m.jsxs(Y,{...k,ref:Mt(F,t),...E("slider"),role:"slider","aria-valuenow":g,"aria-valuemax":d,"aria-valuemin":0,tabIndex:h?0:-1,onKeyDown:P,"data-focus-ring":N.focusRing,__vars:{"--cp-thumb-size":`var(--cp-thumb-size-${p})`},children:[I,m.jsx(lv,{position:A,...E("thumb",{style:{top:O(1),background:y}})})]})});cv.displayName="@mantine/core/ColorSlider";function fn(e,t=0,n=10**t){return Math.round(n*e)/n}function SF({h:e,s:t,l:n,a:r}){const o=t*((n<50?n:100-n)/100);return{h:e,s:o>0?2*o/(n+o)*100:0,v:n+o,a:r}}const kF={grad:360/400,turn:360,rad:360/(Math.PI*2)};function CF(e,t="deg"){return Number(e)*(kF[t]||1)}const EF=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function Db(e){const t=EF.exec(e);return t?SF({h:CF(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 Cg({r:e,g:t,b:n,a:r}){const o=Math.max(e,t,n),s=o-Math.min(e,t,n),i=s?o===e?(t-n)/s:o===t?2+(n-e)/s:4+(e-t)/s:0;return{h:fn(60*(i<0?i+6:i),3),s:fn(o?s/o*100:0,3),v:fn(o/255*100,3),a:r}}function Eg(e){const t=e[0]==="#"?e.slice(1):e;return t.length===3?Cg({r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:1}):Cg({r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:1})}function TF(e){const t=e[0]==="#"?e.slice(1):e,n=i=>fn(parseInt(i,16)/255,3);if(t.length===4){const i=t.slice(0,3),l=n(t[3]+t[3]);return{...Eg(i),a:l}}const r=t.slice(0,6),o=n(t.slice(6,8));return{...Eg(r),a:o}}const MF=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function $b(e){const t=MF.exec(e);return t?Cg({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 NM={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},RF={hex:Eg,hexa:TF,rgb:$b,rgba:$b,hsl:Db,hsla:Db};function NF(e){for(const[,t]of Object.entries(NM))if(t.test(e))return!0;return!1}function Mc(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,r]of Object.entries(NM))if(r.test(t))return RF[n](t);return{h:0,s:0,v:0,a:1}}const OF={},OM=b.forwardRef((e,t)=>{const{value:n,onChange:r,onChangeEnd:o,color:s,...i}=V("AlphaSlider",OF,e);return m.jsx(cv,{...i,ref:t,value:n,onChange:l=>r==null?void 0:r(fn(l,2)),onChangeEnd:l=>o==null?void 0:o(fn(l,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:`${O(8)} ${O(8)}`,backgroundPosition:`0 0, 0 ${O(4)}, ${O(4)} ${O(-4)}, ${O(-4)} 0`},{backgroundImage:`linear-gradient(90deg, transparent, ${s})`},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${O(1)} inset, rgb(0, 0, 0, .15) 0 0 ${O(4)} inset`}]})});OM.displayName="@mantine/core/AlphaSlider";function PM({h:e,s:t,v:n,a:r}){const o=e/360*6,s=t/100,i=n/100,l=Math.floor(o),a=i*(1-s),c=i*(1-(o-l)*s),u=i*(1-(1-o+l)*s),d=l%6;return{r:fn([i,c,a,a,u,i][d]*255),g:fn([u,i,i,c,a,a][d]*255),b:fn([a,a,u,i,i,c][d]*255),a:fn(r,2)}}function _b(e,t){const{r:n,g:r,b:o,a:s}=PM(e);return t?`rgba(${n}, ${r}, ${o}, ${fn(s,2)})`:`rgb(${n}, ${r}, ${o})`}function Fb({h:e,s:t,v:n,a:r},o){const s=(200-t)*n/100,i={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 o?`hsla(${i.h}, ${i.s}%, ${i.l}%, ${fn(r,2)})`:`hsl(${i.h}, ${i.s}%, ${i.l}%)`}function ou(e){const t=e.toString(16);return t.length<2?`0${t}`:t}function AM(e){const{r:t,g:n,b:r}=PM(e);return`#${ou(t)}${ou(n)}${ou(r)}`}function PF(e){const t=Math.round(e.a*255);return`${AM(e)}${ou(t)}`}const Th={hex:AM,hexa:e=>PF(e),rgb:e=>_b(e,!1),rgba:e=>_b(e,!0),hsl:e=>Fb(e,!1),hsla:e=>Fb(e,!0)};function Yr(e,t){return t?e in Th?Th[e](t):Th.hex(t):"#000000"}const jM=b.forwardRef((e,t)=>{const{value:n,onChange:r,onChangeEnd:o,color:s,...i}=V("HueSlider",{},e);return m.jsx(cv,{...i,ref:t,value:n,onChange:r,onChangeEnd:o,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 ${O(1)} inset, rgb(0, 0, 0, .15) 0 0 ${O(4)} inset`}]})});jM.displayName="@mantine/core/HueSlider";function IM({className:e,onChange:t,onChangeEnd:n,value:r,saturationLabel:o,focusable:s=!0,size:i,color:l,onScrubStart:a,onScrubEnd:c,...u}){const{getStyles:d}=iv(),[f,p]=b.useState({x:r.s/100,y:1-r.v/100}),h=b.useRef(f),{ref:g}=oT(({x:v,y:w})=>{h.current={x:v,y:w},t({s:Math.round(v*100),v:Math.round((1-w)*100)})},{onScrubEnd:()=>{const{x:v,y:w}=h.current;n({s:Math.round(v*100),v:Math.round((1-w)*100)}),c==null||c()},onScrubStart:a});b.useEffect(()=>{p({x:r.s/100,y:1-r.v/100})},[r.s,r.v]);const x=(v,w)=>{v.preventDefault();const S=rT(w);t({s:Math.round(S.x*100),v:Math.round((1-S.y)*100)}),n({s:Math.round(S.x*100),v:Math.round((1-S.y)*100)})},y=v=>{switch(v.key){case"ArrowUp":{x(v,{y:f.y-.05,x:f.x});break}case"ArrowDown":{x(v,{y:f.y+.05,x:f.x});break}case"ArrowRight":{x(v,{x:f.x+.05,y:f.y});break}case"ArrowLeft":{x(v,{x:f.x-.05,y:f.y});break}}};return m.jsxs(Y,{...d("saturation"),ref:g,...u,role:"slider","aria-label":o,"aria-valuenow":f.x,"aria-valuetext":Yr("rgba",r),tabIndex:s?0:-1,onKeyDown:y,children:[m.jsx("div",{...d("saturationOverlay",{style:{backgroundColor:`hsl(${r.h}, 100%, 50%)`}})}),m.jsx("div",{...d("saturationOverlay",{style:{backgroundImage:"linear-gradient(90deg, #fff, transparent)"}})}),m.jsx("div",{...d("saturationOverlay",{style:{backgroundImage:"linear-gradient(0deg, #000, transparent)"}})}),m.jsx(lv,{position:f,...d("thumb",{style:{backgroundColor:l}})})]})}IM.displayName="@mantine/core/Saturation";const LM=b.forwardRef(({className:e,datatype:t,setValue:n,onChangeEnd:r,size:o,focusable:s,data:i,swatchesPerRow:l,...a},c)=>{const u=iv(),d=i.map((f,p)=>b.createElement(Ms,{...u.getStyles("swatch"),unstyled:u.unstyled,component:"button",type:"button",color:f,key:p,radius:"sm",onClick:()=>{n(f),r==null||r(f)},"aria-label":f,tabIndex:s?0:-1,"data-swatch":!0}));return m.jsx(Y,{...u.getStyles("swatches"),ref:c,...a,children:d})});LM.displayName="@mantine/core/Swatches";const AF={swatchesPerRow:7,withPicker:!0,focusable:!0,size:"md",__staticSelector:"ColorPicker"},jF=(e,{size:t,swatchesPerRow:n})=>({wrapper:{"--cp-preview-size":Ee(t,"cp-preview-size"),"--cp-width":Ee(t,"cp-width"),"--cp-body-spacing":sr(t),"--cp-swatch-size":`${100/n}%`,"--cp-thumb-size":Ee(t,"cp-thumb-size"),"--cp-saturation-height":Ee(t,"cp-saturation-height")}}),uv=Q((e,t)=>{const n=V("ColorPicker",AF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,format:c,value:u,defaultValue:d,onChange:f,onChangeEnd:p,withPicker:h,size:g,saturationLabel:x,hueLabel:y,alphaLabel:v,focusable:w,swatches:S,swatchesPerRow:k,fullWidth:C,onColorSwatchClick:T,__staticSelector:E,mod:N,...A}=n,z=le({name:E,props:n,classes:av,className:o,style:s,classNames:r,styles:i,unstyled:l,rootSelector:"wrapper",vars:a,varsResolver:jF}),H=b.useRef(c),B=b.useRef(),F=b.useRef(-1),j=b.useRef(!1),P=c==="hexa"||c==="rgba"||c==="hsla",[I,M,R]=wa({value:u,defaultValue:d,finalValue:"#FFFFFF",onChange:f}),[D,W]=b.useState(Mc(I)),Z=()=>{window.clearTimeout(F.current),j.current=!0},fe=()=>{window.clearTimeout(F.current),F.current=window.setTimeout(()=>{j.current=!1},200)},ne=ee=>{W(ce=>{const Ie={...ce,...ee};return B.current=Yr(H.current,Ie),Ie}),M(B.current)};return dr(()=>{NF(u)&&!j.current&&W(Mc(u))},[u]),dr(()=>{H.current=c,M(Yr(c,D))},[c]),m.jsx(bF,{value:{getStyles:z,unstyled:l},children:m.jsxs(Y,{ref:t,...z("wrapper"),size:g,mod:[{"full-width":C},N],...A,children:[h&&m.jsxs(m.Fragment,{children:[m.jsx(IM,{value:D,onChange:ne,onChangeEnd:({s:ee,v:ce})=>p==null?void 0:p(Yr(H.current,{...D,s:ee,v:ce})),color:I,size:g,focusable:w,saturationLabel:x,onScrubStart:Z,onScrubEnd:fe}),m.jsxs("div",{...z("body"),children:[m.jsxs("div",{...z("sliders"),children:[m.jsx(jM,{value:D.h,onChange:ee=>ne({h:ee}),onChangeEnd:ee=>p==null?void 0:p(Yr(H.current,{...D,h:ee})),size:g,focusable:w,"aria-label":y,onScrubStart:Z,onScrubEnd:fe}),P&&m.jsx(OM,{value:D.a,onChange:ee=>ne({a:ee}),onChangeEnd:ee=>{p==null||p(Yr(H.current,{...D,a:ee}))},size:g,color:Yr("hex",D),focusable:w,"aria-label":v,onScrubStart:Z,onScrubEnd:fe})]}),P&&m.jsx(Ms,{color:I,radius:"sm",size:"var(--cp-preview-size)",...z("preview")})]})]}),Array.isArray(S)&&m.jsx(LM,{data:S,swatchesPerRow:k,focusable:w,setValue:M,onChangeEnd:ee=>{const ce=Yr(c,Mc(ee));T==null||T(ce),p==null||p(ce),R||W(Mc(ee))}})]})})});uv.classes=av;uv.displayName="@mantine/core/ColorPicker";var DM={root:"m_7485cace"};const IF={},LF=(e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:Ee(t,"container-size")}}),Kn=Q((e,t)=>{const n=V("Container",IF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,fluid:c,mod:u,...d}=n,f=le({name:"Container",classes:DM,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:LF});return m.jsx(Y,{ref:t,mod:[{fluid:c},u],...f("root"),...d})});Kn.classes=DM;Kn.displayName="@mantine/core/Container";const[DF,fl]=Bo("Modal component was not found in tree");var Wr={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const $F={},rp=Q((e,t)=>{const n=V("ModalBody",$F,e),{classNames:r,className:o,style:s,styles:i,vars:l,...a}=n,c=fl();return m.jsx(aM,{ref:t,...c.getStyles("body",{classNames:r,style:s,styles:i,className:o}),...a})});rp.classes=Wr;rp.displayName="@mantine/core/ModalBody";const _F={},op=Q((e,t)=>{const n=V("ModalCloseButton",_F,e),{classNames:r,className:o,style:s,styles:i,vars:l,...a}=n,c=fl();return m.jsx(cM,{ref:t,...c.getStyles("close",{classNames:r,style:s,styles:i,className:o}),...a})});op.classes=Wr;op.displayName="@mantine/core/ModalCloseButton";const FF={},sp=Q((e,t)=>{const n=V("ModalContent",FF,e),{classNames:r,className:o,style:s,styles:i,vars:l,children:a,...c}=n,u=fl(),d=u.scrollAreaComponent||x_;return m.jsx(m_,{...u.getStyles("content",{className:o,style:s,styles:i,classNames:r}),innerProps:u.getStyles("inner",{className:o,style:s,styles:i,classNames:r}),"data-full-screen":u.fullScreen||void 0,"data-modal-content":!0,ref:t,...c,children:m.jsx(d,{style:{maxHeight:u.fullScreen?"100dvh":`calc(100dvh - (${O(u.yOffset)} * 2))`},children:a})})});sp.classes=Wr;sp.displayName="@mantine/core/ModalContent";const zF={},ip=Q((e,t)=>{const n=V("ModalHeader",zF,e),{classNames:r,className:o,style:s,styles:i,vars:l,...a}=n,c=fl();return m.jsx(uM,{ref:t,...c.getStyles("header",{classNames:r,style:s,styles:i,className:o}),...a})});ip.classes=Wr;ip.displayName="@mantine/core/ModalHeader";const BF={},lp=Q((e,t)=>{const n=V("ModalOverlay",BF,e),{classNames:r,className:o,style:s,styles:i,vars:l,...a}=n,c=fl();return m.jsx(dM,{ref:t,...c.getStyles("overlay",{classNames:r,style:s,styles:i,className:o}),...a})});lp.classes=Wr;lp.displayName="@mantine/core/ModalOverlay";const HF={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:$s("modal"),transitionProps:{duration:200,transition:"pop"},yOffset:"5dvh"},VF=(e,{radius:t,size:n,yOffset:r,xOffset:o})=>({root:{"--modal-radius":t===void 0?void 0:kn(t),"--modal-size":Ee(n,"modal-size"),"--modal-y-offset":O(r),"--modal-x-offset":O(o)}}),ap=Q((e,t)=>{const n=V("ModalRoot",HF,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,yOffset:c,scrollAreaComponent:u,radius:d,fullScreen:f,centered:p,xOffset:h,__staticSelector:g,...x}=n,y=le({name:g,classes:Wr,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:VF});return m.jsx(DF,{value:{yOffset:c,scrollAreaComponent:u,getStyles:y,fullScreen:f},children:m.jsx(p_,{ref:t,...y("root"),"data-full-screen":f||void 0,"data-centered":p||void 0,unstyled:l,...x})})});ap.classes=Wr;ap.displayName="@mantine/core/ModalRoot";const UF={},cp=Q((e,t)=>{const n=V("ModalTitle",UF,e),{classNames:r,className:o,style:s,styles:i,vars:l,...a}=n,c=fl();return m.jsx(fM,{ref:t,...c.getStyles("title",{classNames:r,style:s,styles:i,className:o}),...a})});cp.classes=Wr;cp.displayName="@mantine/core/ModalTitle";const WF={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:$s("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},bt=Q((e,t)=>{const{title:n,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:i,children:l,radius:a,...c}=V("Modal",WF,e),u=!!n||s;return m.jsxs(ap,{ref:t,radius:a,...c,children:[r&&m.jsx(lp,{...o}),m.jsxs(sp,{radius:a,children:[u&&m.jsxs(ip,{children:[n&&m.jsx(cp,{children:n}),s&&m.jsx(op,{...i})]}),m.jsx(rp,{children:l})]})]})});bt.classes=Wr;bt.displayName="@mantine/core/Modal";bt.Root=ap;bt.Overlay=lp;bt.Content=sp;bt.Body=rp;bt.Header=ip;bt.Title=cp;bt.CloseButton=op;const KF={duration:100,transition:"fade"};function qF(e,t){return{...KF,...t,...e}}function JF({offset:e,position:t}){const[n,r]=b.useState(!1),o=b.useRef(),{x:s,y:i,elements:l,refs:a,update:c,placement:u}=z0({placement:t,middleware:[D0({crossAxis:!0,padding:5,rootBoundary:"document"})]}),d=u.includes("right")?e:t.includes("left")?e*-1:0,f=u.includes("bottom")?e:t.includes("top")?e*-1:0,p=b.useCallback(({clientX:h,clientY:g})=>{a.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:h,y:g,left:h+d,top:g+f,right:h,bottom:g}}})},[l.reference]);return b.useEffect(()=>{if(a.floating.current){const h=o.current;h.addEventListener("mousemove",p);const g=Pr(a.floating.current);return g.forEach(x=>{x.addEventListener("scroll",c)}),()=>{h.removeEventListener("mousemove",p),g.forEach(x=>{x.removeEventListener("scroll",c)})}}},[l.reference,a.floating.current,c,p,n]),{handleMouseMove:p,x:s,y:i,opened:n,setOpened:r,boundaryRef:o,floating:a.setFloating}}var up={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const GF={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:$s("popover")},YF=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:kn(t),"--tooltip-bg":n?Es(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),dv=Q((e,t)=>{const n=V("TooltipFloating",GF,e),{children:r,refProp:o,withinPortal:s,style:i,className:l,classNames:a,styles:c,unstyled:u,radius:d,color:f,label:p,offset:h,position:g,multiline:x,zIndex:y,disabled:v,variant:w,vars:S,portalProps:k,...C}=n,T=Wn(),E=le({name:"TooltipFloating",props:n,classes:up,className:l,style:i,classNames:a,styles:c,unstyled:u,rootSelector:"tooltip",vars:S,varsResolver:YF}),{handleMouseMove:N,x:A,y:z,opened:H,boundaryRef:B,floating:F,setOpened:j}=JF({offset:h,position:g});if(!Ds(r))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 P=Mt(B,r.ref,t),I=R=>{var D,W;(W=(D=r.props).onMouseEnter)==null||W.call(D,R),N(R),j(!0)},M=R=>{var D,W;(W=(D=r.props).onMouseLeave)==null||W.call(D,R),j(!1)};return m.jsxs(m.Fragment,{children:[m.jsx(Ja,{...k,withinPortal:s,children:m.jsx(Y,{...C,...E("tooltip",{style:{...gT(i,T),zIndex:y,display:!v&&H?"block":"none",top:(z&&Math.round(z))??"",left:(A&&Math.round(A))??""}}),variant:w,ref:F,mod:{multiline:x},children:p})}),b.cloneElement(r,{...r.props,[o]:P,onMouseEnter:I,onMouseLeave:M})]})});dv.classes=up;dv.displayName="@mantine/core/TooltipFloating";const $M=b.createContext(!1),XF=$M.Provider,QF=()=>b.useContext($M),ZF={openDelay:0,closeDelay:0};function _M(e){const{openDelay:t,closeDelay:n,children:r}=V("TooltipGroup",ZF,e);return m.jsx(XF,{value:!0,children:m.jsx(T3,{delay:{open:t,close:n},children:r})})}_M.displayName="@mantine/core/TooltipGroup";function ez(e){var C,T,E;const[t,n]=b.useState(!1),o=typeof e.opened=="boolean"?e.opened:t,s=QF(),i=al(),{delay:l,currentId:a,setCurrentId:c}=GT(),u=b.useCallback(N=>{n(N),N&&c(i)},[c,i]),{x:d,y:f,context:p,refs:h,update:g,placement:x,middlewareData:{arrow:{x:y,y:v}={}}}=z0({strategy:e.strategy,placement:e.position,open:o,onOpenChange:u,middleware:[VT(e.offset),D0({padding:8}),wg(),UT({element:e.arrowRef,padding:e.arrowOffset}),...e.inline?[Sg()]:[]]}),{getReferenceProps:w,getFloatingProps:S}=A3([E3(p,{enabled:(C=e.events)==null?void 0:C.hover,delay:s?l:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((T=e.events)!=null&&T.touch)}),P3(p,{enabled:(E=e.events)==null?void 0:E.focus,visibleOnly:!0}),I3(p,{role:"tooltip"}),O3(p,{enabled:typeof e.opened>"u"}),M3(p,{id:i})]);nM({opened:o,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:h,update:g}}),dr(()=>{var N;(N=e.onPositionChange)==null||N.call(e,x)},[x]);const k=o&&a&&a!==i;return{x:d,y:f,arrowX:y,arrowY:v,reference:h.setReference,floating:h.setFloating,getFloatingProps:S,getReferenceProps:w,isGroupPhase:k,opened:o,placement:x}}const zb={position:"top",refProp:"ref",withinPortal:!0,inline:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:$s("popover"),positionDependencies:[]},tz=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:kn(t),"--tooltip-bg":n?Es(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),Vs=Q((e,t)=>{const n=V("Tooltip",zb,e),{children:r,position:o,refProp:s,label:i,openDelay:l,closeDelay:a,onPositionChange:c,opened:u,withinPortal:d,radius:f,color:p,classNames:h,styles:g,unstyled:x,style:y,className:v,withArrow:w,arrowSize:S,arrowOffset:k,arrowRadius:C,arrowPosition:T,offset:E,transitionProps:N,multiline:A,events:z,zIndex:H,disabled:B,positionDependencies:F,onClick:j,onMouseEnter:P,onMouseLeave:I,inline:M,variant:R,keepMounted:D,vars:W,portalProps:Z,mod:fe,floatingStrategy:ne,...ee}=V("Tooltip",zb,n),{dir:ce}=Hf(),Ie=b.useRef(null),ze=ez({position:YT(ce,o),closeDelay:a,openDelay:l,onPositionChange:c,opened:u,events:z,arrowRef:Ie,arrowOffset:k,offset:typeof E=="number"?E+(w?S/2:0):E,positionDependencies:[...F,r],inline:M,strategy:ne}),Mn=le({name:"Tooltip",props:n,classes:up,className:v,style:y,classNames:h,styles:g,unstyled:x,rootSelector:"tooltip",vars:W,varsResolver:tz});if(!Ds(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const gr=Mt(ze.reference,r.ref,t),Kr=qF(N,{duration:100,transition:"fade"});return m.jsxs(m.Fragment,{children:[m.jsx(Ja,{...Z,withinPortal:d,children:m.jsx(Bs,{...Kr,keepMounted:D,mounted:!B&&!!ze.opened,duration:ze.isGroupPhase?10:Kr.duration,children:Ko=>m.jsxs(Y,{...ee,variant:R,mod:[{multiline:A},fe],...ze.getFloatingProps({ref:ze.floating,className:Mn("tooltip").className,style:{...Mn("tooltip").style,...Ko,zIndex:H,top:ze.y??0,left:ze.x??0}}),children:[i,m.jsx(B0,{ref:Ie,arrowX:ze.arrowX,arrowY:ze.arrowY,visible:w,position:ze.placement,arrowSize:S,arrowOffset:k,arrowRadius:C,arrowPosition:T,...Mn("arrow")})]})})}),b.cloneElement(r,ze.getReferenceProps({onClick:j,onMouseEnter:P,onMouseLeave:I,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,[s]:gr,className:at(v,r.props.className),...r.props}))]})});Vs.classes=up;Vs.displayName="@mantine/core/Tooltip";Vs.Floating=dv;Vs.Group=_M;const nz={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},fv=Q((e,t)=>{const n=V("Select",nz,e),{classNames:r,styles:o,unstyled:s,vars:i,dropdownOpened:l,defaultDropdownOpened:a,onDropdownClose:c,onDropdownOpen:u,onFocus:d,onBlur:f,onClick:p,onChange:h,data:g,value:x,defaultValue:y,selectFirstOptionOnChange:v,onOptionSubmit:w,comboboxProps:S,readOnly:k,disabled:C,filter:T,limit:E,withScrollArea:N,maxDropdownHeight:A,size:z,searchable:H,rightSection:B,checkIconPosition:F,withCheckIcon:j,nothingFoundMessage:P,name:I,form:M,searchValue:R,defaultSearchValue:D,onSearchChange:W,allowDeselect:Z,error:fe,rightSectionPointerEvents:ne,id:ee,clearable:ce,clearButtonProps:Ie,hiddenInputProps:ze,renderOption:Mn,onClear:gr,autoComplete:Kr,scrollAreaProps:Ko,...yr}=n,Le=b.useMemo(()=>D_(g),[g]),vr=b.useMemo(()=>gM(Le),[Le]),qs=al(ee),[Ot,qo,ml]=wa({value:x,defaultValue:y,finalValue:null,onChange:h}),Rn=typeof Ot=="string"?vr[Ot]:void 0,[Js,xr]=wa({value:R,defaultValue:D,finalValue:Rn?Rn.label:"",onChange:W}),Qe=SM({opened:l,defaultOpened:a,onDropdownOpen:()=>{u==null||u(),Qe.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{c==null||c(),Qe.resetSelectedOption()}}),{resolvedClassNames:Jv,resolvedStyles:Gv}=fT({props:n,styles:o,classNames:r});b.useEffect(()=>{v&&Qe.selectFirstOption()},[v,Ot]),b.useEffect(()=>{x===null&&xr(""),typeof x=="string"&&Rn&&xr(Rn.label)},[x,Rn]);const Yv=ce&&!!Ot&&!C&&!k&&m.jsx(ve.ClearButton,{size:z,...Ie,onClear:()=>{qo(null,null),xr(""),gr==null||gr()}});return m.jsxs(m.Fragment,{children:[m.jsxs(ve,{store:Qe,__staticSelector:"Select",classNames:Jv,styles:Gv,unstyled:s,readOnly:k,onOptionSubmit:on=>{w==null||w(on);const br=Z&&vr[on].value===Ot?null:vr[on],Xv=br?br.value:null;qo(Xv,br),!ml&&xr(typeof Xv=="string"&&(br==null?void 0:br.label)||""),Qe.closeDropdown()},size:z,...S,children:[m.jsx(ve.Target,{targetType:H?"input":"button",autoComplete:Kr,children:m.jsx(dl,{id:qs,ref:t,rightSection:B||Yv||m.jsx(ve.Chevron,{size:z,error:fe,unstyled:s}),rightSectionPointerEvents:ne||(Yv?"all":"none"),...yr,size:z,__staticSelector:"Select",disabled:C,readOnly:k||!H,value:Js,onChange:on=>{xr(on.currentTarget.value),Qe.openDropdown(),v&&Qe.selectFirstOption()},onFocus:on=>{H&&Qe.openDropdown(),d==null||d(on)},onBlur:on=>{var br;H&&Qe.closeDropdown(),xr(Ot!=null&&((br=vr[Ot])==null?void 0:br.label)||""),f==null||f(on)},onClick:on=>{H?Qe.openDropdown():Qe.toggleDropdown(),p==null||p(on)},classNames:Jv,styles:Gv,unstyled:s,pointer:!H,error:fe})}),m.jsx(iF,{data:Le,hidden:k||C,filter:T,search:Js,limit:E,hiddenWhenEmpty:!H||!P,withScrollArea:N,maxDropdownHeight:A,filterOptions:H&&(Rn==null?void 0:Rn.label)!==Js,value:Ot,checkIconPosition:F,withCheckIcon:j,nothingFoundMessage:P,unstyled:s,labelId:yr.label?`${qs}-label`:void 0,"aria-label":yr.label?void 0:yr["aria-label"],renderOption:Mn,scrollAreaProps:Ko})]}),m.jsx(ve.HiddenInput,{value:Ot,name:I,form:M,disabled:C,...ze})]})});fv.classes={...dl.classes,...ve.classes};fv.displayName="@mantine/core/Select";function rz({spacing:e,verticalSpacing:t,cols:n,selector:r}){var u;const o=Wn(),s=t===void 0?e:t,i=Ff({"--sg-spacing-x":sr(mh(e)),"--sg-spacing-y":sr(mh(s)),"--sg-cols":(u=mh(n))==null?void 0:u.toString()}),l=Jt(o.breakpoints).reduce((d,f)=>(d[f]||(d[f]={}),typeof e=="object"&&e[f]!==void 0&&(d[f]["--sg-spacing-x"]=sr(e[f])),typeof s=="object"&&s[f]!==void 0&&(d[f]["--sg-spacing-y"]=sr(s[f])),typeof n=="object"&&n[f]!==void 0&&(d[f]["--sg-cols"]=n[f]),d),{}),c=jD(Jt(l),o).filter(d=>Jt(l[d.value]).length>0).map(d=>({query:`(min-width: ${o.breakpoints[d.value]})`,styles:l[d.value]}));return m.jsx(pT,{styles:i,media:c,selector:r})}var FM={root:"m_2415a157"};const oz={cols:1,spacing:"md"},pv=Q((e,t)=>{const n=V("SimpleGrid",oz,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,cols:c,verticalSpacing:u,spacing:d,...f}=n,p=le({name:"SimpleGrid",classes:FM,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a}),h=mT();return m.jsxs(m.Fragment,{children:[m.jsx(rz,{...n,selector:`.${h}`}),m.jsx(Y,{ref:t,...p("root",{className:h}),...f})]})});pv.classes=FM;pv.displayName="@mantine/core/SimpleGrid";var zM={root:"m_6d731127"};const sz={gap:"md",align:"stretch",justify:"flex-start"},iz=(e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":sr(t),"--stack-align":n,"--stack-justify":r}}),Rs=Q((e,t)=>{const n=V("Stack",sz,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:a,align:c,justify:u,gap:d,variant:f,...p}=n,h=le({name:"Stack",props:n,classes:zM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:a,varsResolver:iz});return m.jsx(Y,{ref:t,...h("root"),variant:f,...p})});Rs.classes=zM;Rs.displayName="@mantine/core/Stack";const lz={},Kt=Q((e,t)=>{const n=V("TextInput",lz,e);return m.jsx(dl,{component:"input",ref:t,...n,__staticSelector:"TextInput"})});Kt.classes=dl.classes;Kt.displayName="@mantine/core/TextInput";const az=["h1","h2","h3","h4","h5","h6"];function cz(e,t){const n=t!==void 0?t:`h${e}`;return az.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:{fontSize:O(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var BM={root:"m_8a5d1357"};const uz={order:1},dz=(e,{order:t,size:n,lineClamp:r,textWrap:o})=>{const s=cz(t,n);return{root:{"--title-fw":s.fontWeight,"--title-lh":s.lineHeight,"--title-fz":s.fontSize,"--title-line-clamp":typeof r=="number"?r.toString():void 0,"--title-text-wrap":o}}},Ya=Q((e,t)=>{const n=V("Title",uz,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,order:a,vars:c,size:u,variant:d,lineClamp:f,textWrap:p,mod:h,...g}=n,x=le({name:"Title",props:n,classes:BM,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:c,varsResolver:dz});return[1,2,3,4,5,6].includes(a)?m.jsx(Y,{...x("root"),component:`h${a}`,variant:d,ref:t,mod:[{order:a,"data-line-clamp":typeof f=="number"},h],size:u,...g}):null});Ya.classes=BM;Ya.displayName="@mantine/core/Title";var HM={root:"m_d6493fad"};const fz={},hv=Q((e,t)=>{const n=V("TypographyStylesProvider",fz,e),{classNames:r,className:o,style:s,styles:i,unstyled:l,...a}=n,c=le({name:"TypographyStylesProvider",classes:HM,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l});return m.jsx(Y,{ref:t,...c("root"),...a})});hv.classes=HM;hv.displayName="@mantine/core/TypographyStylesProvider";const pz={display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh"},hz={borderRadius:"20px",background:"#F9EB02",color:"black"};function mz(){const e=Br(),t=Hr(),n=()=>{e("/signup")},r=lf({initialValues:{userName:"",password:""},validate:{userName:s=>/^\S+@\S+$/.test(s)?null:"Invalid email",password:s=>s.length<8?"Your password must be at least 8 characters":null}}),o=async()=>{if(r.validate(),r.isValid){const s={userName:r.values.userName,password:r.values.password};try{const i=await Ao.post(`${wt}/api/users/login`,s,{withCredentials:!0});i.status===200?(t(_E(i.data.user)),i.data.user.mentor?e("/mentor/feedbackqueue"):e("/intern/myrequests")):(console.log("API request failed"),console.log(i),alert("Something went wrong, try again"))}catch(i){console.error("Error submitting the form data:",i),console.log(i.response),alert("Something went wrong, try again")}}else return};return m.jsx(Kn,{style:pz,children:m.jsx(np,{children:m.jsxs(mr,{shadow:"xs",p:"xl",children:[m.jsx(ge,{size:"xxl",weight:700,align:"center",mb:"xl",children:"Login to Account"}),m.jsxs("form",{onSubmit:r.onSubmit(o),children:[m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsx(Kt,{withAsterisk:!0,required:!0,label:"Email",placeholder:"user@mail.com",...r.getInputProps("userName")})}),m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsx(Kt,{withAsterisk:!0,required:!0,label:"Password",type:"password",placeholder:"Enter Password",...r.getInputProps("password")})}),m.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"1.5rem"},children:m.jsx(Ve,{type:"submit",size:"sm",style:hz,children:"Login"})})]}),m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsxs(Hs,{position:"center",align:"center",spacing:"xs",children:[m.jsx(ge,{size:"lg",c:"dimmed",children:"Don't Have An Account?"}),m.jsx(Qf,{onClick:n,size:"lg",component:"button",children:"Sign Up"})]})})]})})})}const gz={display:"flex",alignItems:"center",justifyContent:"center",height:"100vh"},yz={borderRadius:"20px",background:"#F9EB02",color:"black"};function vz(){const e=Br(),t=Hr(),n=()=>{e("/login")},r=lf({initialValues:{fName:"",userName:"",password:""},validate:{fName:s=>s.length<2?"Name must have at least 2 letters":null,userName:s=>/^\S+@\S+$/.test(s)?null:"Invalid email",password:s=>s.length<8?"Your password must be at least 8 characters":null}}),o=async()=>{if(r.validate(),r.isValid()){const s={fName:r.values.fName,userName:r.values.userName,password:r.values.password};try{const i=await Ao.post(`${wt}/api/users/register`,s,{withCredentials:!0});i.status===201?(t(_E(i.data.user)),i.data.user.mentor?e("/mentor/feedbackqueue"):e("/intern/myrequests")):(console.log("API request failed"),alert("Something went wrong, try again"))}catch(i){console.error("Error submitting the form data:",i)}}};return m.jsx(Kn,{style:gz,children:m.jsx(np,{children:m.jsxs(mr,{shadow:"xs",p:"xl",children:[m.jsx(ge,{size:"xxl",weight:700,align:"center",mb:"xl",children:"Create an Account"}),m.jsxs("form",{onSubmit:r.onSubmit(o),children:[m.jsx(Kt,{withAsterisk:!0,required:!0,name:"fName",label:"Full Name",placeholder:"John Smith",...r.getInputProps("fName")}),m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsx(Kt,{withAsterisk:!0,required:!0,name:"userName",label:"Email",placeholder:"user@mail.com",...r.getInputProps("userName")})}),m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsx(Kt,{withAsterisk:!0,required:!0,name:"password",label:"Password",type:"password",placeholder:"Enter Password",...r.getInputProps("password")})}),m.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"1.5rem"},children:m.jsx(Ve,{type:"submit",size:"sm",style:yz,children:"Sign Up"})})]}),m.jsx("div",{style:{marginTop:"1.5rem"},children:m.jsxs(Hs,{position:"center",align:"center",spacing:"xs",children:[m.jsx(ge,{size:"lg",c:"dimmed",children:"Already Have An Account?"}),m.jsx(Qf,{onClick:n,size:"lg",component:"button",children:"Log In"})]})})]})})})}var VM={exports:{}},xz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bz=xz,wz=bz;function UM(){}function WM(){}WM.resetWarningCache=UM;var Sz=function(){function e(r,o,s,i,l,a){if(a!==wz){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:WM,resetWarningCache:UM};return n.PropTypes=n,n};VM.exports=Sz();var kz=VM.exports;const Jo=Bd(kz);var Cz={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},Ez=Object.defineProperty,Tz=Object.defineProperties,Mz=Object.getOwnPropertyDescriptors,Yu=Object.getOwnPropertySymbols,KM=Object.prototype.hasOwnProperty,qM=Object.prototype.propertyIsEnumerable,Bb=(e,t,n)=>t in e?Ez(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hb=(e,t)=>{for(var n in t||(t={}))KM.call(t,n)&&Bb(e,n,t[n]);if(Yu)for(var n of Yu(t))qM.call(t,n)&&Bb(e,n,t[n]);return e},Rz=(e,t)=>Tz(e,Mz(t)),Nz=(e,t)=>{var n={};for(var r in e)KM.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yu)for(var r of Yu(e))t.indexOf(r)<0&&qM.call(e,r)&&(n[r]=e[r]);return n},Us=(e,t,n)=>{const r=b.forwardRef((o,s)=>{var i=o,{color:l="currentColor",size:a=24,stroke:c=2,children:u}=i,d=Nz(i,["color","size","stroke","children"]);return b.createElement("svg",Hb(Rz(Hb({ref:s},Cz),{width:a,height:a,stroke:l,strokeWidth:c,className:`tabler-icon tabler-icon-${e}`}),d),[...n.map(([f,p])=>b.createElement(f,p)),...u||[]])});return r.propTypes={color:Jo.string,size:Jo.oneOfType([Jo.string,Jo.number]),stroke:Jo.oneOfType([Jo.string,Jo.number])},r.displayName=`${t}`,r},Oz=Us("bell","IconBell",[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]]),Pz=Us("checkup-list","IconCheckupList",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 14h.01",key:"svg-2"}],["path",{d:"M9 17h.01",key:"svg-3"}],["path",{d:"M12 16l1 1l3 -3",key:"svg-4"}]]),Az=Us("clipboard-text","IconClipboardText",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 12h6",key:"svg-2"}],["path",{d:"M9 16h6",key:"svg-3"}]]),jz=Us("file-plus","IconFilePlus",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}],["path",{d:"M12 11l0 6",key:"svg-2"}],["path",{d:"M9 14l6 0",key:"svg-3"}]]),Iz=Us("list-details","IconListDetails",[["path",{d:"M13 5h8",key:"svg-0"}],["path",{d:"M13 9h5",key:"svg-1"}],["path",{d:"M13 15h8",key:"svg-2"}],["path",{d:"M13 19h5",key:"svg-3"}],["path",{d:"M3 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-4"}],["path",{d:"M3 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-5"}]]),Lz=Us("logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]),JM=Us("user","IconUser",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]]);function Vb({to:e,icon:t,label:n,active:r,onClick:o}){const s={width:O(50),height:O(50),borderRadius:"var(--mantine-radius-md)",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--mantine-color-black)"};return r&&(s.boxShadow="var(--mantine-shadow-sm)",s.backgroundColor="var(--mantine-color-white)",s.color="var(--mantine-color-black)"),m.jsx(Vs,{label:n,position:"bottom-start",offset:5,children:m.jsx(Ym,{to:e,children:m.jsx("div",{onClick:o,style:s,"data-active":r||void 0,children:rt.createElement(t,{style:{width:O(20),height:O(20),stroke:1.5}})})})})}function GM({navItems:e}){const[t,n]=b.useState(0),r=zo(),o=Hr();b.useEffect(()=>{r.pathname==="/intern/requestform"||r.pathname==="/mentor/feedbackqueue"?n(0):r.pathname==="/intern/myrequests"||r.pathname==="/mentor/assigned"?n(1):n(2)},[r.pathname]);const s=e.map((c,u)=>m.jsx(Vb,{to:c.to,icon:c.icon,label:c.label,active:u===t,onClick:()=>n(u)},c.label)),i=()=>{o(Zc())},l={width:O(80),height:"100vh",padding:"var(--mantine-spacing-md)",display:"flex",flexDirection:"column",backgroundColor:"#F9EB02",position:"fixed",top:"0",bottom:"0"},a={flex:1,marginTop:O(50)};return m.jsxs("nav",{style:l,children:[m.jsx("div",{style:a,children:m.jsx(Rs,{justify:"center",gap:160,children:s})}),m.jsx(Rs,{justify:"center",gap:0,children:m.jsx(Vb,{to:"/",icon:Lz,label:"Logout",onClick:i})})]})}const Dz={feedbackRequests:[],assignedFeedbackRequests:[],feedbacks:[],selectedFeedback:null,loading:"idle",error:null},Ws=(e,t,n="get")=>a0(e,async(r,o)=>{try{let s=t;return typeof r=="number"&&(s=`${t}${r}`),typeof r=="object"&&r.id&&(s=`${t}${r.id}`),(await Ao({method:n,url:s,data:typeof r=="object"?r:void 0,withCredentials:!0})).data}catch(s){return o.rejectWithValue(s.response.data)}}),su=Ws("feedback/create",`${wt}/api/feedback/submitfeedback`,"post"),YM=Ws("feedback/add",`${wt}/api/feedback/addFeedBack/`,"post"),$z=Ws("feedback/assign",`${wt}/api/feedback/assignFeedBackToMentor/`,"post"),iu=Ws("feedback/getAssign",`${wt}/api/feedback/getAssignedFeedBacks`),Wl=Ws("feedback/fetchAll",`${wt}/api/feedback/getfeedbackrequestForms`),_z=Ws("feedback/fetchAll",`${wt}/api/feedback/getUserFeedBackRequestForms`),Ub=a0("feedback/getSelectedRequest",`${wt}/api/feedback/getfeedbackid/`),Fz=Ws("feedback/markComplete",`${wt}/api/feedback/markFeedBackRequestComplete/`,"get"),zz=mE({name:"feedback",initialState:Dz,reducers:{},extraReducers:e=>{e.addCase(Wl.fulfilled,(t,n)=>{const{data:r}=n.payload;r?(t.feedbackRequests=r.sort((o,s)=>o.createdAt.localeCompare(s.createdAt)),t.loading="succeeded"):(t.loading="failed",t.error=n.payload?n.payload:"Error fetching feedback requests // data structure")}).addCase(Wl.pending,t=>{t.loading="loading"}).addCase(Wl.rejected,(t,n)=>{t.loading="failed",t.error=n.payload?n.payload:"Error fetching feedback requests"}).addCase(su.fulfilled,(t,n)=>{const{data:r}=n.payload;r?(t.feedbackRequests=r,t.loading="succeeded"):(t.loading="failed",t.error=n.payload?n.payload:"Error creating feedback request // data structure")}).addCase(su.pending,t=>{t.loading="loading"}).addCase(su.rejected,(t,n)=>{t.loading="failed",t.error=n.payload?n.payload:"Error creating feedback request"}).addCase(iu.fulfilled,(t,n)=>{const{data:r}=n.payload;r?(t.assignedFeedbackRequests=r.sort((o,s)=>o.updatedAt.localeCompare(s.updatedAt)),t.loading="succeeded"):(t.loading="failed",t.error=n.payload?n.payload:"Error fetching assigned feedback requests // data structure")}).addCase(iu.pending,t=>{t.loading="loading"}).addCase(iu.rejected,(t,n)=>{t.loading="failed",t.error=n.payload?n.payload:"Error fetching assigned feedback requests"}).addCase(YM.fulfilled,(t,n)=>{const{data:r}=n.payload;r?(t.feedbacks=r,t.loading="succeeded"):(t.loading="failed",t.error=n.payload?n.payload:"Error posting feedbacks")}).addCase(Ub.fulfilled,(t,n)=>{t.selectedFeedback=n.payload,t.loading="succeeded"}).addCase(Ub.rejected,(t,n)=>{t.loading="failed",t.error=n.payload?n.payload:"Error fetching selected feedback."})}}),Bz=zz.reducer,Hz={padding:40,display:"flex",flexDirection:"column",alignItems:"center",width:500},Vz={width:"100%",display:"flex",flexDirection:"column",flex:1},Wb={marginBottom:20},Uz={marginBottom:20,fontSize:24},Kb=["HTML","CSS","Media Queries/Responsive Design","Bootstrap","JavaScript","JavaScript and the DOM","jQuery","React","Structured/Unstructured Data (MySQL)","MVC Architecture (Express JS)","API Integration"];function Wz(){const e=Hr(),t=Ba(l=>l.feedbackSlice.loading),[n,{open:r,close:o}]=Co(!1),s=lf({initialValues:{topicOfLearningSession:null,codeLink:""},validate:{topicOfLearningSession:l=>Kb.some(a=>l==null?void 0:l.includes(a))?null:"Please select a topic",codeLink:l=>l<1?"You must enter a valid link":null}}),i=()=>{e(su(s.values)),e(Wl()),t==="succeeded"&&r(),s.setValues({topicOfLearningSession:null,codeLink:""})};return m.jsx(Kn,{fluid:!0,h:0,size:"lg",children:m.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:[m.jsx(bt,{opened:n,onClose:o,withCloseButton:!1,children:"Feedback Request submitted!"}),m.jsx("form",{onSubmit:s.onSubmit(i),children:m.jsxs(mr,{shadow:"xs",style:Hz,children:[m.jsx(ge,{size:"xl",weight:700,style:Uz,children:"Request Feedback"}),m.jsxs("div",{style:Vz,children:[m.jsx(fv,{label:"Topic of Learning Session",placeholder:"Select the topic of the learning session",style:Wb,data:Kb,...s.getInputProps("topicOfLearningSession")}),m.jsx(Kt,{variant:"filled",style:Wb,id:"codeLink",label:"Code Link",placeholder:"Enter code link",...s.getInputProps("codeLink")}),m.jsx(Ve,{variant:"filled",size:"lg",color:"#F9EB02",style:{color:"black"},type:"submit",children:"Submit Request"})]})]})})]})})}function Tg(e){try{const t=new Date(e),n=new Date,r=t.getTimezoneOffset();t.setMinutes(t.getMinutes()-r);const o=n-t,s=Math.floor(o/(1e3*60*60*24)),i=new Intl.RelativeTimeFormat("en",{numeric:"auto"});return s===0?"Created today":s===1?"Created yesterday":`Created: ${i.format(-s,"day")}`}catch(t){return console.error("Error formatting date:",t),"Error formatting date"}}function Kz(e){try{const t=new Date(e),r=new Date-t;return Math.floor(r/(1e3*60*60))>=48}catch(t){return console.error("Error formatting date:",t),"Error formatting date"}}const qz={zIndex:"1",marginLeft:"90px"};function mv({showAddFeedback:e,showComplete:t,isAssign:n,pageTitle:r,showViewFeedback:o,data:s,isMentor:i,gotoDashboard:l,isLoading:a,user:c}){const[u,d]=b.useState([]),[f,p]=b.useState({}),[h,g]=b.useState(s),[x,{open:y,close:v}]=Co(!1),[w,{open:S,close:k}]=Co(!1),[C,{open:T,close:E}]=Co(!1),N=Ba(P=>P.feedbackSlice.loading),A=Br(),z=Hr();b.useEffect(()=>{g(s)},[s]);const H=P=>{const M=h.map(R=>R.id===P?{...R,completed:!R.completed}:R).filter(R=>!R.completed);g(M),z(Fz(P)),N==="succeeded"&&S()},B=P=>{const I=h.find(M=>M.id===P);I&&(d([...u,I]),z($z(P)),N==="succeeded"&&y())},F=()=>{c!=null&&c.mentor?A("/mentor/feedbackqueue"):A("/intern/myrequests")},j=(P,I)=>{f[P]||p(M=>({...M,[P]:!0})),N==="succeeded"&&T()};return m.jsxs(Kn,{fluid:!0,h:0,style:qz,children:[m.jsx(ge,{align:"center",size:"xl",style:{marginBottom:"20px",marginTop:"10px"},children:r}),m.jsx(bt,{opened:x,onClose:v,withCloseButton:!1,children:"Feedback request has been assigned to you !!!"}),m.jsx(bt,{opened:w,onClose:k,withCloseButton:!1,children:"Exercise has been marked completed !!!"}),m.jsx(bt,{opened:C,onClose:E,withCloseButton:!1,children:"Mentor Has Been Notified"}),a?m.jsx("div",{children:"Loading..."}):h&&h.length>0?m.jsx(Rs,{gap:10,children:h.map((P,I)=>m.jsxs(mr,{shadow:"xs",p:"sm",withBorder:!0,style:{display:"flex",justifyContent:"space-between"},children:[m.jsxs("div",{children:[c!=null&&c.mentor?m.jsxs(ge,{children:["Intern Name: ",P.studentName]}):m.jsxs(ge,{children:[P.whoisAssigned?"Reviewer Name:":"Reviewer Name: Not Assigned"," ",P.whoisAssigned]}),m.jsxs(ge,{children:["Topic Of Learning Session: ",P.topicOfLearningSession]}),m.jsxs(ge,{children:["Completed: ",P.status?"Yes":"No"]}),m.jsxs(ge,{children:["Link to exercise: ",m.jsx("a",{href:P.codeLink,children:P.codeLink})]}),m.jsx(ge,{children:Tg(P.createdAt)}),P.whoisAssigned?m.jsxs(ge,{children:["Assigned to: ",P.whoisAssigned]}):null]}),m.jsxs(Rs,{direction:"horizontal",spacing:"sm",style:{justifyContent:"space-between",width:"160px"},children:[e&&m.jsx(Ym,{to:`/feedback/${P.id}`,children:m.jsx(Ve,{style:{color:"black",width:"100%"},color:"#F9EB02",children:"Add Feedback"})}),o&&m.jsx(Ym,{to:`/feedback/${P.id}`,children:m.jsx(Ve,{style:{color:"black",width:"100%"},color:"#F9EB02",children:"View Feedback"})}),location.pathname==="/intern/myrequests"&&Kz(P.createdAt)&&m.jsx(Ve,{onClick:()=>j(P.id),disabled:f[P.id],leftSection:m.jsx(Oz,{size:14}),style:{color:"black"},color:"#F9EB02",children:f[P.id]?"Mentor Notified":"Notify Mentor"}),t&&!P.completed&&m.jsx(Ve,{style:{color:"black"},color:"#F9EB02",onClick:()=>H(P.id),children:"Complete"}),l&&m.jsx(Ve,{style:{color:"black"},color:"#F9EB02",onClick:F,children:"Go to Dashboard"}),n&&m.jsx(Ve,{style:{color:"black"},color:"#F9EB02",onClick:()=>B(P.id),children:"Assign"})]})]},P.id))}):m.jsx("div",{children:"No items to display."})]})}function Jz(e){const t=Hr(),n=Ba(r=>r.feedbackSlice.feedbackRequests);return b.useEffect(()=>{t(_z())},[t]),m.jsx("div",{children:m.jsx(mv,{showViewFeedback:!0,data:n,pageTitle:"MY FEEDBACK REQUESTS",user:e.user})})}const Gz={padding:40,display:"flex",flexDirection:"column",alignItems:"center",width:500},Yz={width:"100%",display:"flex",flexDirection:"column",flex:1},Rc={marginBottom:20},Xz={marginBottom:20,fontSize:24};function XM({user:e}){const[t,{open:n,close:r}]=Co(!1),o=lf({initialValues:{fName:e.fName,email:e.username,newPassword:"",confirmPassword:""},validate:{email:i=>/^\S+@\S+$/.test(i)?null:"Invalid email"}}),s=async()=>{try{const i={fName:o.values.fName,username:o.values.email,newPassword:o.values.newPassword,oldPassword:o.values.oldPassword};(await Ao.patch(`${wt}/api/users/updateaccount`,i,{withCredentials:!0})).status===200&&n()}catch(i){console.log(i)}};return m.jsx(Kn,{fluid:!0,h:0,size:"lg",children:m.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:[m.jsx(bt,{opened:t,onClose:r,withCloseButton:!1,children:"Account details have successfully been updated"}),m.jsx("form",{onSubmit:o.onSubmit(s),children:m.jsxs(mr,{shadow:"xs",style:Gz,children:[m.jsx(ge,{size:"xl",weight:700,style:Xz,children:"My Account"}),m.jsxs("div",{style:Yz,children:[m.jsx(Kt,{variant:"filled",style:Rc,id:"fName",label:"Full Name",placeholder:e.fName,...o.getInputProps("fName")}),m.jsx(Kt,{variant:"filled",style:Rc,id:"email",label:"Email",placeholder:e.username,...o.getInputProps("email")}),m.jsx(Kt,{variant:"filled",style:Rc,id:"password",label:"New Password",placeholder:"Enter New Password",...o.getInputProps("newPassword")}),m.jsx(Kt,{variant:"filled",style:Rc,id:"oldPassword",label:"Old Password",placeholder:"Enter Old Password",...o.getInputProps("oldPassword")}),m.jsx(Ve,{variant:"filled",size:"lg",color:"#F9EB02",style:{color:"black"},type:"submit",children:"Save"})]})]})})]})})}function QM({user:e}){return m.jsx("div",{style:{position:"absolute",right:"20px",top:"0"},children:m.jsxs("p",{children:["Welcome, ",m.jsxs("span",{children:[e.fName?e.fName:"","!!"]})]})})}function Qz(e){const t=[{icon:jz,label:"Create Feedback request",to:"requestform"},{icon:Az,label:"Feedback Requests",to:"myrequests"},{icon:JM,label:"Account",to:"account"}],n=zo();return m.jsxs("div",{style:{display:"flex",flexDirection:"column-reverse"},children:[m.jsx(QM,{user:e.user}),m.jsx(GM,{navItems:t}),m.jsxs(Xy,{location:n,children:[m.jsx(yt,{path:"/requestform",element:m.jsx(Wz,{active:0,user:e.user})}),m.jsx(yt,{path:"/myrequests",element:m.jsx(Jz,{active:1,user:e.user})}),m.jsx(yt,{path:"/account",element:m.jsx(XM,{active:2,user:e.user})})]})]})}function Zz(e){const t=Hr(),n=Ba(r=>r.feedbackSlice.feedbackRequests);return b.useEffect(()=>{t(Wl())},[t]),m.jsx("div",{children:m.jsx(mv,{isAssign:!0,data:n,pageTitle:"FEEDBACK QUEUE",user:e.user})})}function e5(e){const t=Hr(),n=Ba(r=>r.feedbackSlice.assignedFeedbackRequests);return b.useEffect(()=>{t(iu())},[t]),m.jsx("div",{children:m.jsx(mv,{data:n,showAddFeedback:!0,showComplete:!0,pageTitle:"MY ASSIGNED FEEDBACKS",user:e.user})})}function t5(e){const t=[{icon:Iz,label:"Feedback Queue",to:"feedbackqueue"},{icon:Pz,label:"Assigned Feedback",to:"assigned"},{icon:JM,label:"Account",to:"account"}],n=zo();return m.jsxs("div",{style:{display:"flex",flexDirection:"column-reverse",position:"relative"},children:[m.jsx(QM,{user:e.user}),m.jsx(GM,{navItems:t}),m.jsxs(Xy,{location:n,children:[m.jsx(yt,{path:"/feedbackqueue",element:m.jsx(Zz,{active:0,user:e.user})}),m.jsx(yt,{path:"assigned",element:m.jsx(e5,{active:1,user:e.user})}),m.jsx(yt,{path:"account",element:m.jsx(XM,{active:2,user:e.user})})]})]})}function nt(e){this.content=e}nt.prototype={constructor:nt,find:function(e){for(var t=0;t>1}};nt.from=function(e){if(e instanceof nt)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new nt(t)};function ZM(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(r),s=t.child(r);if(o==s){n+=o.nodeSize;continue}if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){for(let i=0;o.text[i]==s.text[i];i++)n++;return n}if(o.content.size||s.content.size){let i=ZM(o.content,s.content,n+1);if(i!=null)return i}n+=o.nodeSize}}function e2(e,t,n,r){for(let o=e.childCount,s=t.childCount;;){if(o==0||s==0)return o==s?null:{a:n,b:r};let i=e.child(--o),l=t.child(--s),a=i.nodeSize;if(i==l){n-=a,r-=a;continue}if(!i.sameMarkup(l))return{a:n,b:r};if(i.isText&&i.text!=l.text){let c=0,u=Math.min(i.text.length,l.text.length);for(;ct&&r(a,o+l,s||null,i)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,t-u),Math.min(a.content.size,n-u),r,o+u)}l=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,o){let s="",i=!0;return this.nodesBetween(t,n,(l,a)=>{let c=l.isText?l.text.slice(Math.max(t,a)-a,n-a):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(i?i=!1:s+=r),s+=c},0),s}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,o=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),s=1);st)for(let s=0,i=0;it&&((in)&&(l.isText?l=l.cut(Math.max(0,t-i),Math.min(l.text.length,n-i)):l=l.cut(Math.max(0,t-i-1),Math.min(l.content.size,n-i-1))),r.push(l),o+=l.nodeSize),i=a}return new $(r,o)}cutByIndex(t,n){return t==n?$.empty:t==0&&n==this.content.length?this:new $(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let o=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return o[t]=n,new $(o,s)}addToStart(t){return new $([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new $(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,o=0;;r++){let s=this.child(r),i=o+s.nodeSize;if(i>=t)return i==t||n>0?Nc(r+1,i):Nc(r,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return $.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new $(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return $.empty;let n,r=0;for(let o=0;othis.type.rank&&(n||(n=t.slice(0,o)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;nr.type.rank-o.type.rank),n}};ye.none=[];class Qu extends Error{}class q{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=n2(this.content,t+this.openStart,n);return r&&new q(r,this.openStart,this.openEnd)}removeBetween(t,n){return new q(t2(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return q.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new q($.fromJSON(t,n.content),r,o)}static maxOpen(t,n=!0){let r=0,o=0;for(let s=t.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=t.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)o++;return new q(t,r,o)}}q.empty=new q($.empty,0,0);function t2(e,t,n){let{index:r,offset:o}=e.findIndex(t),s=e.maybeChild(r),{index:i,offset:l}=e.findIndex(n);if(o==t||s.isText){if(l!=n&&!e.child(i).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=i)throw new RangeError("Removing non-flat range");return e.replaceChild(r,s.copy(t2(s.content,t-o-1,n-o-1)))}function n2(e,t,n,r){let{index:o,offset:s}=e.findIndex(t),i=e.maybeChild(o);if(s==t||i.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=n2(i.content,t-s-1,n);return l&&e.replaceChild(o,i.copy(l))}function n5(e,t,n){if(n.openStart>e.depth)throw new Qu("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Qu("Inconsistent open depths");return r2(e,t,n,0)}function r2(e,t,n,r){let o=e.index(r),s=e.node(r);if(o==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Kl(e,t,n,r){let o=(t||e).node(n),s=0,i=t?t.index(n):o.childCount;e&&(s=e.index(n),e.depth>n?s++:e.textOffset&&(ps(e.nodeAfter,r),s++));for(let l=s;lo&&Rg(e,t,o+1),i=r.depth>o&&Rg(n,r,o+1),l=[];return Kl(null,e,o,l),s&&i&&t.index(o)==n.index(o)?(o2(s,i),ps(hs(s,s2(e,t,n,r,o+1)),l)):(s&&ps(hs(s,Zu(e,t,o+1)),l),Kl(t,n,o,l),i&&ps(hs(i,Zu(n,r,o+1)),l)),Kl(r,null,o,l),new $(l)}function Zu(e,t,n){let r=[];if(Kl(null,e,n,r),e.depth>n){let o=Rg(e,t,n+1);ps(hs(o,Zu(e,t,n+1)),r)}return Kl(t,null,n,r),new $(r)}function r5(e,t){let n=t.depth-e.openStart,o=t.node(n).copy(e.content);for(let s=n-1;s>=0;s--)o=t.node(s).copy($.from(o));return{start:o.resolveNoCache(e.openStart+n),end:o.resolveNoCache(o.content.size-e.openEnd-n)}}class Ea{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=t.child(n);return r?t.child(n).cut(r):o}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let s=0;s0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new ed(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,s=n;for(let i=t;;){let{index:l,offset:a}=i.content.findIndex(s),c=s-a;if(r.push(i,l,o+a),!c||(i=i.child(l),i.isText))break;s=c-1,o+=a+1}return new Ea(n,r,s)}static resolveCached(t,n){for(let o=0;ot&&this.nodesBetween(t,n,s=>(r.isInSet(s.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),i2(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=$.empty,o=0,s=r.childCount){let i=this.contentMatchAt(t).matchFragment(r,o,s),l=i&&i.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=o;an.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let o=$.fromJSON(t,n.content);return t.nodeType(n.type).create(n.attrs,o,r)}};ms.prototype.text=void 0;class td extends ms{constructor(t,n,r,o){if(super(t,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):i2(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new td(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new td(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function i2(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Ns{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new i5(t,n);if(r.next==null)return Ns.empty;let o=l2(r);r.next&&r.err("Unexpected trailing text");let s=p5(f5(o));return h5(s,r),s}matchType(t){for(let n=0;nc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let o=0;o{let s=o+(r.validEnd?"*":" ")+" ";for(let i=0;i"+t.indexOf(r.next[i].next);return s}).join(` `)}}Ns.empty=new Ns(!0);class i5{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function l2(e){let t=[];do t.push(l5(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function l5(e){let t=[];do t.push(a5(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function a5(e){let t=d5(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=c5(e,t);else break;return t}function qb(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function c5(e,t){let n=qb(e),r=n;return e.eat(",")&&(e.next!="}"?r=qb(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function u5(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let s in n){let i=n[s];i.groups.indexOf(t)>-1&&o.push(i)}return o.length==0&&e.err("No node type or group '"+t+"' found"),o}function d5(e){if(e.eat("(")){let t=l2(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=u5(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function f5(e){let t=[[]];return o(s(e,0),n()),t;function n(){return t.push([])-1}function r(i,l,a){let c={term:a,to:l};return t[i].push(c),c}function o(i,l){i.forEach(a=>a.to=l)}function s(i,l){if(i.type=="choice")return i.exprs.reduce((a,c)=>a.concat(s(c,l)),[]);if(i.type=="seq")for(let a=0;;a++){let c=s(i.exprs[a],l);if(a==i.exprs.length-1)return c;o(c,l=n())}else if(i.type=="star"){let a=n();return r(l,a),o(s(i.expr,a),a),[r(a)]}else if(i.type=="plus"){let a=n();return o(s(i.expr,l),a),o(s(i.expr,a),a),[r(a)]}else{if(i.type=="opt")return[r(l)].concat(s(i.expr,l));if(i.type=="range"){let a=l;for(let c=0;c{e[i].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u{c||o.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=t[r.join(",")]=new Ns(r.indexOf(e.length-1)>-1);for(let i=0;i-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;nr[s]=new f2(s,n,i));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class m5{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class dp{constructor(t,n,r,o){this.name=t,this.rank=n,this.schema=r,this.spec=o,this.attrs=d2(o.attrs),this.excluded=null;let s=c2(this.attrs);this.instance=s?new ye(this,s):null}create(t=null){return!t&&this.instance?this.instance:new ye(this,u2(this.attrs,t))}static compile(t,n){let r=Object.create(null),o=0;return t.forEach((s,i)=>r[s]=new dp(s,o++,n,i)),r}removeFromSet(t){for(var n=0;n-1}}class g5{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in t)n[o]=t[o];n.nodes=nt.from(t.nodes),n.marks=nt.from(t.marks||{}),this.nodes=Gb.compile(this.spec.nodes,this),this.marks=dp.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let s=this.nodes[o],i=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=r[i]||(r[i]=Ns.parse(i,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?Yb(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let o in this.marks){let s=this.marks[o],i=s.spec.excludes;s.excluded=i==null?[s]:i==""?[]:Yb(this,i.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,o){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof Gb){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,o)}text(t,n){let r=this.nodes.text;return new td(r,r.defaultAttrs,t,ye.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return ms.fromJSON(this,t)}markFromJSON(t){return ye.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function Yb(e,t){let n=[];for(let r=0;r-1)&&n.push(i=a)}if(!i)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function y5(e){return e.tag!=null}function v5(e){return e.style!=null}class Gi{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{y5(r)?this.tags.push(r):v5(r)&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=t.nodes[r.node];return o.contentMatch.matchType(o)})}parse(t,n={}){let r=new Qb(this,n,!1);return r.addAll(t,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new Qb(this,n,!0);return r.addAll(t,n.from,n.to),q.maxOpen(r.finish())}matchTag(t,n,r){for(let o=r?this.tags.indexOf(r)+1:0;ot.length&&(l.charCodeAt(t.length)!=61||l.slice(t.length+1)!=n))){if(i.getAttrs){let a=i.getAttrs(n);if(a===!1)continue;i.attrs=a||void 0}return i}}}static schemaRules(t){let n=[];function r(o){let s=o.priority==null?50:o.priority,i=0;for(;i{r(i=Zb(i)),i.mark||i.ignore||i.clearMark||(i.mark=o)})}for(let o in t.nodes){let s=t.nodes[o].spec.parseDOM;s&&s.forEach(i=>{r(i=Zb(i)),i.node||i.ignore||i.mark||(i.node=o)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Gi(t,Gi.schemaRules(t)))}}const p2={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},x5={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},h2={ol:!0,ul:!0},nd=1,rd=2,ql=4;function Xb(e,t,n){return t!=null?(t?nd:0)|(t==="full"?rd:0):e&&e.whitespace=="pre"?nd|rd:n&~ql}class Oc{constructor(t,n,r,o,s,i,l){this.type=t,this.attrs=n,this.marks=r,this.pendingMarks=o,this.solid=s,this.options=l,this.content=[],this.activeMarks=ye.none,this.stashMarks=[],this.match=i||(l&ql?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore($.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(t.type))?(this.match=r,o):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&nd)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-o[0].length))}}let n=$.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore($.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(t){for(let n=this.stashMarks.length-1;n>=0;n--)if(t.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(t){for(let n=0,r=this.pendingMarks;nthis.addAll(t)),i&&this.sync(l),this.needsBlock=a}else this.withStyleRules(t,()=>{this.addElementByRule(t,s,s.consuming===!1?o:void 0)})}leafFallback(t){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` `))}ignoreFallback(t){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(t){let n=ye.none,r=ye.none;for(let o=0;o{i.clearMark(l)&&(r=l.addToSet(r))}):n=this.parser.schema.marks[i.mark].create(i.attrs).addToSet(n),i.consuming===!1)s=i;else break}return[n,r]}addElementByRule(t,n,r){let o,s,i;n.node?(s=this.parser.schema.nodes[n.node],s.isLeaf?this.insertNode(s.create(n.attrs))||this.leafFallback(t):o=this.enter(s,n.attrs||null,n.preserveWhitespace)):(i=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(i));let l=this.top;if(s&&s.isLeaf)this.findInside(t);else if(r)this.addElement(t,r);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(a=>this.insertNode(a));else{let a=t;typeof n.contentElement=="string"?a=t.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(t):n.contentElement&&(a=n.contentElement),this.findAround(t,a,!0),this.addAll(a)}o&&this.sync(l)&&this.open--,i&&this.removePendingMark(i,l)}addAll(t,n,r){let o=n||0;for(let s=n?t.childNodes[n]:t.firstChild,i=r==null?null:t.childNodes[r];s!=i;s=s.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(s);this.findAtPoint(t,o)}findPlace(t){let n,r;for(let o=this.open;o>=0;o--){let s=this.nodes[o],i=s.findWrapping(t);if(i&&(!n||n.length>i.length)&&(n=i,r=s,!i.length)||s.solid)break}if(!n)return!1;this.sync(r);for(let o=0;othis.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let n=this.open;n>=0;n--)if(this.nodes[n]==t)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)t+=r[o].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(o?0:1),i=(l,a)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;a>=s;a--)if(i(l-1,a))return!0;return!1}else{let u=a>0||a==0&&o?this.nodes[a].type:r&&a>=s?r.node(a-s).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;a--}}return!0};return i(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(t){let n=C5(t,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=t.addToSet(this.top.pendingMarks)}removePendingMark(t,n){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(t)>-1)o.pendingMarks=t.removeFromSet(o.pendingMarks);else{o.activeMarks=t.removeFromSet(o.activeMarks);let i=o.popFromStashMark(t);i&&o.type&&o.type.allowsMarkType(i.type)&&(o.activeMarks=i.addToSet(o.activeMarks))}if(o==n)break}}}function b5(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&h2.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function w5(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function S5(e){let t=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=t.exec(e);)r.push(n[1],n[2].trim());return r}function Zb(e){let t={};for(let n in e)t[n]=e[n];return t}function k5(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let s=[],i=l=>{s.push(l);for(let a=0;a{if(s.length||i.marks.length){let l=0,a=0;for(;l=0;o--){let s=this.serializeMark(t.marks[o],t.isInline,n);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(t,n,r={}){let o=this.marks[t.type.name];return o&&ir.renderSpec(Oh(r),o(t,n))}static renderSpec(t,n,r=null){if(typeof n=="string")return{dom:t.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],s=o.indexOf(" ");s>0&&(r=o.slice(0,s),o=o.slice(s+1));let i,l=r?t.createElementNS(r,o):t.createElement(o),a=n[1],c=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){c=2;for(let u in a)if(a[u]!=null){let d=u.indexOf(" ");d>0?l.setAttributeNS(u.slice(0,d),u.slice(d+1),a[u]):l.setAttribute(u,a[u])}}for(let u=c;uc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:f,contentDOM:p}=ir.renderSpec(t,d,r);if(l.appendChild(f),p){if(i)throw new RangeError("Multiple content holes");i=p}}}return{dom:l,contentDOM:i}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new ir(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=ew(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return ew(t.marks)}}function ew(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Oh(e){return e.document||window.document}const m2=65535,g2=Math.pow(2,16);function E5(e,t){return e+t*g2}function tw(e){return e&m2}function T5(e){return(e-(e&m2))/g2}const y2=1,v2=2,lu=4,x2=8;class Og{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&x2)>0}get deletedBefore(){return(this.delInfo&(y2|lu))>0}get deletedAfter(){return(this.delInfo&(v2|lu))>0}get deletedAcross(){return(this.delInfo&lu)>0}}class Ut{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Ut.empty)return Ut.empty}recover(t){let n=0,r=tw(t);if(!this.inverted)for(let o=0;ot)break;let c=this.ranges[l+s],u=this.ranges[l+i],d=a+c;if(t<=d){let f=c?t==a?-1:t==d?1:n:n,p=a+o+(f<0?0:u);if(r)return p;let h=t==(n<0?a:d)?null:E5(l/3,t-a),g=t==a?v2:t==d?y2:lu;return(n<0?t!=a:t!=d)&&(g|=x2),new Og(p,g,h)}o+=u-c}return r?t+o:new Og(t+o,0,null)}touches(t,n){let r=0,o=tw(n),s=this.inverted?2:1,i=this.inverted?1:2;for(let l=0;lt)break;let c=this.ranges[l+s],u=a+c;if(t<=u&&l==o*3)return!0;r+=this.ranges[l+i]-c}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,s=0;o=0;n--){let o=t.getMirror(n);this.appendMap(t.maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let t=new Ai;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;rs&&a!i.isAtom||!l.type.allowsMarkType(this.mark.type)?i:i.mark(this.mark.addToSet(i.marks)),o),n.openStart,n.openEnd);return $e.fromReplace(t,this.from,this.to,s)}invert(){return new lr(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new fo(n.pos,r.pos,this.mark)}merge(t){return t instanceof fo&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new fo(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new fo(n.from,n.to,t.markFromJSON(n.mark))}}mt.jsonID("addMark",fo);class lr extends mt{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new q(gv(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),t),n.openStart,n.openEnd);return $e.fromReplace(t,this.from,this.to,r)}invert(){return new fo(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new lr(n.pos,r.pos,this.mark)}merge(t){return t instanceof lr&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new lr(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new lr(n.from,n.to,t.markFromJSON(n.mark))}}mt.jsonID("removeMark",lr);class po extends mt{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return $e.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return $e.fromReplace(t,this.pos,this.pos+1,new q($.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;or.pos?null:new Je(n.pos,r.pos,o,s,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Je(n.from,n.to,n.gapFrom,n.gapTo,q.fromJSON(t,n.slice),n.insert,!!n.structure)}}mt.jsonID("replaceAround",Je);function Pg(e,t,n){let r=e.resolve(t),o=n-t,s=r.depth;for(;o>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,o--;if(o>0){let i=r.node(s).maybeChild(r.indexAfter(s));for(;o>0;){if(!i||i.isLeaf)return!0;i=i.firstChild,o--}}return!1}function M5(e,t,n,r){let o=[],s=[],i,l;e.doc.nodesBetween(t,n,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,t),p=Math.min(c+a.nodeSize,n),h=r.addToSet(d);for(let g=0;ge.step(a)),s.forEach(a=>e.step(a))}function R5(e,t,n,r){let o=[],s=0;e.doc.nodesBetween(t,n,(i,l)=>{if(!i.isInline)return;s++;let a=null;if(r instanceof dp){let c=i.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(i.marks)&&(a=[r]):a=i.marks;if(a&&a.length){let c=Math.min(l+i.nodeSize,n);for(let u=0;ue.step(new lr(i.from,i.to,i.style)))}function b2(e,t,n,r=n.contentMatch,o=!0){let s=e.doc.nodeAt(t),i=[],l=t+1;for(let a=0;a=0;a--)e.step(i[a])}function N5(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function pl(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let o=e.$from.node(r),s=e.$from.index(r),i=e.$to.indexAfter(r);if(rn;h--)g||r.index(h)>0?(g=!0,u=$.from(r.node(h).copy(u)),d++):a--;let f=$.empty,p=0;for(let h=s,g=!1;h>n;h--)g||o.after(h+1)=0;i--){if(r.size){let l=n[i].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=$.from(n[i].type.create(n[i].attrs,r))}let o=t.start,s=t.end;e.step(new Je(o,s,o,s,new q(r,0,0),n.length,!0))}function I5(e,t,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=e.steps.length;e.doc.nodesBetween(t,n,(i,l)=>{if(i.isTextblock&&!i.hasMarkup(r,o)&&$5(e.doc,e.mapping.slice(s).map(l),r)){let a=null;if(r.schema.linebreakReplacement){let f=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);f&&!p?a=!1:!f&&p&&(a=!0)}a===!1&&D5(e,i,l,s),b2(e,e.mapping.slice(s).map(l,1),r,void 0,a===null);let c=e.mapping.slice(s),u=c.map(l,1),d=c.map(l+i.nodeSize,1);return e.step(new Je(u,d,u+1,d-1,new q($.from(r.create(o,null,i.marks)),0,0),1,!0)),a===!0&&L5(e,i,l,s),!1}})}function L5(e,t,n,r){t.forEach((o,s)=>{if(o.isText){let i,l=/\r?\n|\r/g;for(;i=l.exec(o.text);){let a=e.mapping.slice(r).map(n+1+s+i.index);e.replaceWith(a,a+1,t.type.schema.linebreakReplacement.create())}}})}function D5(e,t,n,r){t.forEach((o,s)=>{if(o.type==o.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+s);e.replaceWith(i,i+1,t.type.schema.text(` diff --git a/index.html b/index.html index fbf8980..cdb6766 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Building-u-Feedback - +