From e444cd9aa28abc6d324776c5370ab8b544348e41 Mon Sep 17 00:00:00 2001 From: brofar Date: Sat, 8 Jun 2024 18:34:38 +0000 Subject: [PATCH] deploy: 62e6222c3831851905944d8cd44e8bdee9d216ee --- assets/index-BYgMZIQq.js | 96 --------------------------------------- assets/index-DsDwypCV.js | 97 ++++++++++++++++++++++++++++++++++++++++ index.html | 4 +- 3 files changed, 99 insertions(+), 98 deletions(-) delete mode 100644 assets/index-BYgMZIQq.js create mode 100644 assets/index-DsDwypCV.js diff --git a/assets/index-BYgMZIQq.js b/assets/index-BYgMZIQq.js deleted file mode 100644 index 2d40fb0..0000000 --- a/assets/index-BYgMZIQq.js +++ /dev/null @@ -1,96 +0,0 @@ -function VS(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function Sy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var by={exports:{}},_s={},Py={exports:{}},U={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var xi=Symbol.for("react.element"),HS=Symbol.for("react.portal"),BS=Symbol.for("react.fragment"),WS=Symbol.for("react.strict_mode"),US=Symbol.for("react.profiler"),KS=Symbol.for("react.provider"),YS=Symbol.for("react.context"),GS=Symbol.for("react.forward_ref"),QS=Symbol.for("react.suspense"),XS=Symbol.for("react.memo"),ZS=Symbol.for("react.lazy"),Md=Symbol.iterator;function JS(e){return e===null||typeof e!="object"?null:(e=Md&&e[Md]||e["@@iterator"],typeof e=="function"?e:null)}var Oy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$y=Object.assign,xy={};function mo(e,t,r){this.props=e,this.context=t,this.refs=xy,this.updater=r||Oy}mo.prototype.isReactComponent={};mo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};mo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ey(){}Ey.prototype=mo.prototype;function lf(e,t,r){this.props=e,this.context=t,this.refs=xy,this.updater=r||Oy}var af=lf.prototype=new Ey;af.constructor=lf;$y(af,mo.prototype);af.isPureReactComponent=!0;var Vd=Array.isArray,Cy=Object.prototype.hasOwnProperty,sf={current:null},ky={key:!0,ref:!0,__self:!0,__source:!0};function Ny(e,t,r){var n,o={},i=null,l=null;if(t!=null)for(n in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Cy.call(t,n)&&!ky.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1>>1,Q=R[Y];if(0>>1;Yo(Le,V))meo(Fe,Le)?(R[Y]=Fe,R[me]=V,Y=me):(R[Y]=Le,R[ce]=V,Y=ce);else if(meo(Fe,V))R[Y]=Fe,R[me]=V,Y=me;else break e}}return j}function o(R,j){var V=R.sortIndex-j.sortIndex;return V!==0?V:R.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],c=[],f=1,u=null,d=3,v=!1,y=!1,w=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(R){for(var j=r(c);j!==null;){if(j.callback===null)n(c);else if(j.startTime<=R)n(c),j.sortIndex=j.expirationTime,t(s,j);else break;j=r(c)}}function _(R){if(w=!1,h(R),!y)if(r(s)!==null)y=!0,G(P);else{var j=r(c);j!==null&&ne(_,j.startTime-R)}}function P(R,j){y=!1,w&&(w=!1,m(E),E=-1),v=!0;var V=d;try{for(h(j),u=r(s);u!==null&&(!(u.expirationTime>j)||R&&!F());){var Y=u.callback;if(typeof Y=="function"){u.callback=null,d=u.priorityLevel;var Q=Y(u.expirationTime<=j);j=e.unstable_now(),typeof Q=="function"?u.callback=Q:u===r(s)&&n(s),h(j)}else n(s);u=r(s)}if(u!==null)var Ye=!0;else{var ce=r(c);ce!==null&&ne(_,ce.startTime-j),Ye=!1}return Ye}finally{u=null,d=V,v=!1}}var $=!1,O=null,E=-1,k=5,C=-1;function F(){return!(e.unstable_now()-CR||125Y?(R.sortIndex=V,t(c,R),r(s)===null&&R===r(c)&&(w?(m(E),E=-1):w=!0,ne(_,V-Y))):(R.sortIndex=Q,t(s,R),y||v||(y=!0,G(P))),R},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(R){var j=d;return function(){var V=d;d=j;try{return R.apply(this,arguments)}finally{d=V}}}})(Ty);jy.exports=Ty;var cb=jy.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ub=g,dt=cb;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kc=Object.prototype.hasOwnProperty,fb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Bd={},Wd={};function db(e){return Kc.call(Wd,e)?!0:Kc.call(Bd,e)?!1:fb.test(e)?Wd[e]=!0:(Bd[e]=!0,!1)}function pb(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function mb(e,t,r,n){if(t===null||typeof t>"u"||pb(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Je(e,t,r,n,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ae[e]=new Je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ae[t]=new Je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ae[e]=new Je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ae[e]=new Je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ae[e]=new Je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ae[e]=new Je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ae[e]=new Je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ae[e]=new Je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ae[e]=new Je(e,5,!1,e.toLowerCase(),null,!1,!1)});var uf=/[\-:]([a-z])/g;function ff(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(uf,ff);Ae[t]=new Je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(uf,ff);Ae[t]=new Je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(uf,ff);Ae[t]=new Je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ae[e]=new Je(e,1,!1,e.toLowerCase(),null,!1,!1)});Ae.xlinkHref=new Je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ae[e]=new Je(e,1,!1,e.toLowerCase(),null,!0,!0)});function df(e,t,r,n){var o=Ae.hasOwnProperty(t)?Ae[t]:null;(o!==null?o.type!==0:n||!(2a||o[l]!==i[a]){var s=` -`+o[l].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{oc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Bo(e):""}function vb(e){switch(e.tag){case 5:return Bo(e.type);case 16:return Bo("Lazy");case 13:return Bo("Suspense");case 19:return Bo("SuspenseList");case 0:case 2:case 15:return e=ic(e.type,!1),e;case 11:return e=ic(e.type.render,!1),e;case 1:return e=ic(e.type,!0),e;default:return""}}function Xc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case In:return"Fragment";case Dn:return"Portal";case Yc:return"Profiler";case pf:return"StrictMode";case Gc:return"Suspense";case Qc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ly:return(e.displayName||"Context")+".Consumer";case Ay:return(e._context.displayName||"Context")+".Provider";case mf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vf:return t=e.displayName||null,t!==null?t:Xc(e.type)||"Memo";case Cr:t=e._payload,e=e._init;try{return Xc(e(t))}catch{}}return null}function gb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Xc(t);case 8:return t===pf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Wr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function My(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yb(e){var t=My(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){n=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bi(e){e._valueTracker||(e._valueTracker=yb(e))}function Vy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=My(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Vl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zc(e,t){var r=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Kd(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Wr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hy(e,t){t=t.checked,t!=null&&df(e,"checked",t,!1)}function Jc(e,t){Hy(e,t);var r=Wr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qc(e,t.type,r):t.hasOwnProperty("defaultValue")&&qc(e,t.type,Wr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yd(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function qc(e,t,r){(t!=="number"||Vl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Wo=Array.isArray;function Un(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Wi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ii(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Yo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hb=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(e){hb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yo[t]=Yo[e]})});function Ky(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Yo.hasOwnProperty(e)&&Yo[e]?(""+t).trim():t+"px"}function Yy(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Ky(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var wb=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ru(e,t){if(t){if(wb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function nu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ou=null;function gf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var iu=null,Kn=null,Yn=null;function Xd(e){if(e=ki(e)){if(typeof iu!="function")throw Error(N(280));var t=e.stateNode;t&&(t=$s(t),iu(e.stateNode,e.type,t))}}function Gy(e){Kn?Yn?Yn.push(e):Yn=[e]:Kn=e}function Qy(){if(Kn){var e=Kn,t=Yn;if(Yn=Kn=null,Xd(e),t)for(e=0;e>>=0,e===0?32:31-(Nb(e)/Rb|0)|0}var Ui=64,Ki=4194304;function Uo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ul(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,l=r&268435455;if(l!==0){var a=l&~o;a!==0?n=Uo(a):(i&=l,i!==0&&(n=Uo(i)))}else l=r&~o,l!==0?n=Uo(l):i!==0&&(n=Uo(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ei(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=r}function Tb(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Qo),ip=" ",lp=!1;function vh(e,t){switch(e){case"keyup":return cP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function fP(e,t){switch(e){case"compositionend":return gh(t);case"keypress":return t.which!==32?null:(lp=!0,ip);case"textInput":return e=t.data,e===ip&&lp?null:e;default:return null}}function dP(e,t){if(jn)return e==="compositionend"||!Of&&vh(e,t)?(e=ph(),Cl=Sf=Dr=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=up(r)}}function _h(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_h(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sh(){for(var e=window,t=Vl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Vl(e.document)}return t}function $f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function SP(e){var t=Sh(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&_h(r.ownerDocument.documentElement,r)){if(n!==null&&$f(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=fp(r,i);var l=fp(r,n);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Tn=null,fu=null,Zo=null,du=!1;function dp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;du||Tn==null||Tn!==Vl(n)||(n=Tn,"selectionStart"in n&&$f(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Zo&&fi(Zo,n)||(Zo=n,n=Gl(fu,"onSelect"),0Ln||(e.current=hu[Ln],hu[Ln]=null,Ln--)}function oe(e,t){Ln++,hu[Ln]=e.current,e.current=t}var Ur={},Ke=Xr(Ur),tt=Xr(!1),dn=Ur;function to(e,t){var r=e.type.contextTypes;if(!r)return Ur;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rt(e){return e=e.childContextTypes,e!=null}function Xl(){se(tt),se(Ke)}function wp(e,t,r){if(Ke.current!==Ur)throw Error(N(168));oe(Ke,t),oe(tt,r)}function Nh(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(N(108,gb(e)||"Unknown",o));return we({},r,n)}function Zl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ur,dn=Ke.current,oe(Ke,e),oe(tt,tt.current),!0}function _p(e,t,r){var n=e.stateNode;if(!n)throw Error(N(169));r?(e=Nh(e,t,dn),n.__reactInternalMemoizedMergedChildContext=e,se(tt),se(Ke),oe(Ke,e)):se(tt),oe(tt,r)}var ir=null,xs=!1,wc=!1;function Rh(e){ir===null?ir=[e]:ir.push(e)}function IP(e){xs=!0,Rh(e)}function Zr(){if(!wc&&ir!==null){wc=!0;var e=0,t=te;try{var r=ir;for(te=1;e>=l,o-=l,lr=1<<32-jt(t)+o|r<E?(k=O,O=null):k=O.sibling;var C=d(m,O,h[E],_);if(C===null){O===null&&(O=k);break}e&&O&&C.alternate===null&&t(m,O),p=i(C,p,E),$===null?P=C:$.sibling=C,$=C,O=k}if(E===h.length)return r(m,O),de&&tn(m,E),P;if(O===null){for(;EE?(k=O,O=null):k=O.sibling;var F=d(m,O,C.value,_);if(F===null){O===null&&(O=k);break}e&&O&&F.alternate===null&&t(m,O),p=i(F,p,E),$===null?P=F:$.sibling=F,$=F,O=k}if(C.done)return r(m,O),de&&tn(m,E),P;if(O===null){for(;!C.done;E++,C=h.next())C=u(m,C.value,_),C!==null&&(p=i(C,p,E),$===null?P=C:$.sibling=C,$=C);return de&&tn(m,E),P}for(O=n(m,O);!C.done;E++,C=h.next())C=v(O,m,E,C.value,_),C!==null&&(e&&C.alternate!==null&&O.delete(C.key===null?E:C.key),p=i(C,p,E),$===null?P=C:$.sibling=C,$=C);return e&&O.forEach(function(A){return t(m,A)}),de&&tn(m,E),P}function b(m,p,h,_){if(typeof h=="object"&&h!==null&&h.type===In&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Hi:e:{for(var P=h.key,$=p;$!==null;){if($.key===P){if(P=h.type,P===In){if($.tag===7){r(m,$.sibling),p=o($,h.props.children),p.return=m,m=p;break e}}else if($.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Cr&&Pp(P)===$.type){r(m,$.sibling),p=o($,h.props),p.ref=Io(m,$,h),p.return=m,m=p;break e}r(m,$);break}else t(m,$);$=$.sibling}h.type===In?(p=un(h.props.children,m.mode,_,h.key),p.return=m,m=p):(_=zl(h.type,h.key,h.props,null,m.mode,_),_.ref=Io(m,p,h),_.return=m,m=_)}return l(m);case Dn:e:{for($=h.key;p!==null;){if(p.key===$)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){r(m,p.sibling),p=o(p,h.children||[]),p.return=m,m=p;break e}else{r(m,p);break}else t(m,p);p=p.sibling}p=Ec(h,m.mode,_),p.return=m,m=p}return l(m);case Cr:return $=h._init,b(m,p,$(h._payload),_)}if(Wo(h))return y(m,p,h,_);if(Co(h))return w(m,p,h,_);qi(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(r(m,p.sibling),p=o(p,h),p.return=m,m=p):(r(m,p),p=xc(h,m.mode,_),p.return=m,m=p),l(m)):r(m,p)}return b}var no=Th(!0),zh=Th(!1),ea=Xr(null),ta=null,Vn=null,kf=null;function Nf(){kf=Vn=ta=null}function Rf(e){var t=ea.current;se(ea),e._currentValue=t}function Su(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Qn(e,t){ta=e,kf=Vn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(et=!0),e.firstContext=null)}function bt(e){var t=e._currentValue;if(kf!==e)if(e={context:e,memoizedValue:t,next:null},Vn===null){if(ta===null)throw Error(N(308));Vn=e,ta.dependencies={lanes:0,firstContext:e}}else Vn=Vn.next=e;return t}var an=null;function Df(e){an===null?an=[e]:an.push(e)}function Ah(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,Df(t)):(r.next=o.next,o.next=r),t.interleaved=r,dr(e,n)}function dr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var kr=!1;function If(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fr(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,X&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,dr(e,r)}return o=n.interleaved,o===null?(t.next=t,Df(n)):(t.next=o.next,o.next=t),n.interleaved=t,dr(e,r)}function Nl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,hf(e,r)}}function Op(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var l={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=l:i=i.next=l,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ra(e,t,r,n){var o=e.updateQueue;kr=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var s=a,c=s.next;s.next=null,l===null?i=c:l.next=c,l=s;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==l&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=s))}if(i!==null){var u=o.baseState;l=0,f=c=s=null,a=i;do{var d=a.lane,v=a.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,w=a;switch(d=t,v=r,w.tag){case 1:if(y=w.payload,typeof y=="function"){u=y.call(v,u,d);break e}u=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,d=typeof y=="function"?y.call(v,u,d):y,d==null)break e;u=we({},u,d);break e;case 2:kr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else v={eventTime:v,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=v,s=u):f=f.next=v,l|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(s=u),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);vn|=l,e.lanes=l,e.memoizedState=u}}function $p(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Sc.transition;Sc.transition={};try{e(!1),t()}finally{te=r,Sc.transition=n}}function t0(){return Pt().memoizedState}function AP(e,t,r){var n=Vr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},r0(e))n0(t,r);else if(r=Ah(e,t,r,n),r!==null){var o=Xe();Tt(r,e,n,o),o0(r,t,n)}}function LP(e,t,r){var n=Vr(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(r0(e))n0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,r);if(o.hasEagerState=!0,o.eagerState=a,zt(a,l)){var s=t.interleaved;s===null?(o.next=o,Df(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=Ah(e,t,o,n),r!==null&&(o=Xe(),Tt(r,e,n,o),o0(r,t,n))}}function r0(e){var t=e.alternate;return e===he||t!==null&&t===he}function n0(e,t){Jo=oa=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function o0(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,hf(e,r)}}var ia={readContext:bt,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},FP={readContext:bt,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:bt,useEffect:Ep,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Dl(4194308,4,Xh.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dl(4,2,e,t)},useMemo:function(e,t){var r=Kt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Kt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=AP.bind(null,he,e),[n.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:xp,useDebugValue:Vf,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=xp(!1),t=e[0];return e=zP.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=he,o=Kt();if(de){if(r===void 0)throw Error(N(407));r=r()}else{if(r=t(),Re===null)throw Error(N(349));mn&30||Hh(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Ep(Wh.bind(null,n,i,e),[e]),n.flags|=2048,wi(9,Bh.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Kt(),t=Re.identifierPrefix;if(de){var r=ar,n=lr;r=(n&~(1<<32-jt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=yi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[Qt]=t,e[mi]=n,m0(e,t,!1,!1),t.stateNode=e;e:{switch(l=nu(r,n),r){case"dialog":ae("cancel",e),ae("close",e),o=n;break;case"iframe":case"object":case"embed":ae("load",e),o=n;break;case"video":case"audio":for(o=0;olo&&(t.flags|=128,n=!0,jo(i,!1),t.lanes=4194304)}else{if(!n)if(e=na(l),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),jo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!de)return He(t),null}else 2*be()-i.renderingStartTime>lo&&r!==1073741824&&(t.flags|=128,n=!0,jo(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(r=i.last,r!==null?r.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=be(),t.sibling=null,r=ye.current,oe(ye,n?r&1|2:r&1),t):(He(t),null);case 22:case 23:return Yf(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?at&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function YP(e,t){switch(Ef(t),t.tag){case 1:return rt(t.type)&&Xl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oo(),se(tt),se(Ke),zf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tf(t),null;case 13:if(se(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ye),null;case 4:return oo(),null;case 10:return Rf(t.type._context),null;case 22:case 23:return Yf(),null;case 24:return null;default:return null}}var tl=!1,We=!1,GP=typeof WeakSet=="function"?WeakSet:Set,I=null;function Hn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){_e(e,t,n)}else r.current=null}function Nu(e,t,r){try{r()}catch(n){_e(e,t,n)}}var Lp=!1;function QP(e,t){if(pu=Kl,e=Sh(),$f(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var l=0,a=-1,s=-1,c=0,f=0,u=e,d=null;t:for(;;){for(var v;u!==r||o!==0&&u.nodeType!==3||(a=l+o),u!==i||n!==0&&u.nodeType!==3||(s=l+n),u.nodeType===3&&(l+=u.nodeValue.length),(v=u.firstChild)!==null;)d=u,u=v;for(;;){if(u===e)break t;if(d===r&&++c===o&&(a=l),d===i&&++f===n&&(s=l),(v=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=v}r=a===-1||s===-1?null:{start:a,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(mu={focusedElem:e,selectionRange:r},Kl=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,b=y.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:Rt(t.type,w),b);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(_){_e(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return y=Lp,Lp=!1,y}function qo(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Nu(t,r,i)}o=o.next}while(o!==n)}}function ks(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Ru(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function y0(e){var t=e.alternate;t!==null&&(e.alternate=null,y0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[mi],delete t[yu],delete t[RP],delete t[DP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function h0(e){return e.tag===5||e.tag===3||e.tag===4}function Fp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||h0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Du(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ql));else if(n!==4&&(e=e.child,e!==null))for(Du(e,t,r),e=e.sibling;e!==null;)Du(e,t,r),e=e.sibling}function Iu(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Iu(e,t,r),e=e.sibling;e!==null;)Iu(e,t,r),e=e.sibling}var je=null,Dt=!1;function $r(e,t,r){for(r=r.child;r!==null;)w0(e,t,r),r=r.sibling}function w0(e,t,r){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Ss,r)}catch{}switch(r.tag){case 5:We||Hn(r,t);case 6:var n=je,o=Dt;je=null,$r(e,t,r),je=n,Dt=o,je!==null&&(Dt?(e=je,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):je.removeChild(r.stateNode));break;case 18:je!==null&&(Dt?(e=je,r=r.stateNode,e.nodeType===8?hc(e.parentNode,r):e.nodeType===1&&hc(e,r),ci(e)):hc(je,r.stateNode));break;case 4:n=je,o=Dt,je=r.stateNode.containerInfo,Dt=!0,$r(e,t,r),je=n,Dt=o;break;case 0:case 11:case 14:case 15:if(!We&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Nu(r,t,l),o=o.next}while(o!==n)}$r(e,t,r);break;case 1:if(!We&&(Hn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){_e(r,t,a)}$r(e,t,r);break;case 21:$r(e,t,r);break;case 22:r.mode&1?(We=(n=We)||r.memoizedState!==null,$r(e,t,r),We=n):$r(e,t,r);break;default:$r(e,t,r)}}function Mp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new GP),t.forEach(function(n){var o=oO.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Nt(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=l),n&=~i}if(n=o,n=be()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*ZP(n/1960))-n,10e?16:e,Ir===null)var n=!1;else{if(e=Ir,Ir=null,sa=0,X&6)throw Error(N(331));var o=X;for(X|=4,I=e.current;I!==null;){var i=I,l=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var s=0;sbe()-Uf?cn(e,0):Wf|=r),nt(e,t)}function E0(e,t){t===0&&(e.mode&1?(t=Ki,Ki<<=1,!(Ki&130023424)&&(Ki=4194304)):t=1);var r=Xe();e=dr(e,t),e!==null&&(Ei(e,t,r),nt(e,r))}function nO(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),E0(e,r)}function oO(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(N(314))}n!==null&&n.delete(t),E0(e,r)}var C0;C0=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)et=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return et=!1,UP(e,t,r);et=!!(e.flags&131072)}else et=!1,de&&t.flags&1048576&&Dh(t,ql,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Il(e,t),e=t.pendingProps;var o=to(t,Ke.current);Qn(t,r),o=Lf(null,t,n,e,o,r);var i=Ff();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(n)?(i=!0,Zl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,If(t),o.updater=Cs,t.stateNode=o,o._reactInternals=t,Pu(t,n,e,r),t=xu(null,t,n,!0,i,r)):(t.tag=0,de&&i&&xf(t),Qe(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Il(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=lO(n),e=Rt(n,e),o){case 0:t=$u(null,t,n,e,r);break e;case 1:t=Tp(null,t,n,e,r);break e;case 11:t=Ip(null,t,n,e,r);break e;case 14:t=jp(null,t,n,Rt(n.type,e),r);break e}throw Error(N(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Rt(n,o),$u(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Rt(n,o),Tp(e,t,n,o,r);case 3:e:{if(f0(t),e===null)throw Error(N(387));n=t.pendingProps,i=t.memoizedState,o=i.element,Lh(e,t),ra(t,n,null,r);var l=t.memoizedState;if(n=l.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=io(Error(N(423)),t),t=zp(e,t,n,r,o);break e}else if(n!==o){o=io(Error(N(424)),t),t=zp(e,t,n,r,o);break e}else for(st=Lr(t.stateNode.containerInfo.firstChild),ct=t,de=!0,It=null,r=zh(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ro(),n===o){t=pr(e,t,r);break e}Qe(e,t,n,r)}t=t.child}return t;case 5:return Fh(t),e===null&&_u(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,vu(n,o)?l=null:i!==null&&vu(n,i)&&(t.flags|=32),u0(e,t),Qe(e,t,l,r),t.child;case 6:return e===null&&_u(t),null;case 13:return d0(e,t,r);case 4:return jf(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=no(t,null,n,r):Qe(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Rt(n,o),Ip(e,t,n,o,r);case 7:return Qe(e,t,t.pendingProps,r),t.child;case 8:return Qe(e,t,t.pendingProps.children,r),t.child;case 12:return Qe(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,oe(ea,n._currentValue),n._currentValue=l,i!==null)if(zt(i.value,l)){if(i.children===o.children&&!tt.current){t=pr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var s=a.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=sr(-1,r&-r),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Su(i.return,r,t),a.lanes|=r;break}s=s.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(N(341));l.lanes|=r,a=l.alternate,a!==null&&(a.lanes|=r),Su(l,r,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Qe(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Qn(t,r),o=bt(o),n=n(o),t.flags|=1,Qe(e,t,n,r),t.child;case 14:return n=t.type,o=Rt(n,t.pendingProps),o=Rt(n.type,o),jp(e,t,n,o,r);case 15:return s0(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Rt(n,o),Il(e,t),t.tag=1,rt(n)?(e=!0,Zl(t)):e=!1,Qn(t,r),i0(t,n,o),Pu(t,n,o,r),xu(null,t,n,!0,e,r);case 19:return p0(e,t,r);case 22:return c0(e,t,r)}throw Error(N(156,t.tag))};function k0(e,t){return rh(e,t)}function iO(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,r,n){return new iO(e,t,r,n)}function Qf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lO(e){if(typeof e=="function")return Qf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mf)return 11;if(e===vf)return 14}return 2}function Hr(e,t){var r=e.alternate;return r===null?(r=_t(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function zl(e,t,r,n,o,i){var l=2;if(n=e,typeof e=="function")Qf(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case In:return un(r.children,o,i,t);case pf:l=8,o|=8;break;case Yc:return e=_t(12,r,t,o|2),e.elementType=Yc,e.lanes=i,e;case Gc:return e=_t(13,r,t,o),e.elementType=Gc,e.lanes=i,e;case Qc:return e=_t(19,r,t,o),e.elementType=Qc,e.lanes=i,e;case Fy:return Rs(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ay:l=10;break e;case Ly:l=9;break e;case mf:l=11;break e;case vf:l=14;break e;case Cr:l=16,n=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=_t(l,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function un(e,t,r,n){return e=_t(7,e,n,t),e.lanes=r,e}function Rs(e,t,r,n){return e=_t(22,e,n,t),e.elementType=Fy,e.lanes=r,e.stateNode={isHidden:!1},e}function xc(e,t,r){return e=_t(6,e,null,t),e.lanes=r,e}function Ec(e,t,r){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aO(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ac(0),this.expirationTimes=ac(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Xf(e,t,r,n,o,i,l,a,s){return e=new aO(e,t,r,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=_t(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},If(i),e}function sO(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(I0)}catch(e){console.error(e)}}I0(),Iy.exports=pt;var zs=Iy.exports,Gp=zs;Uc.createRoot=Gp.createRoot,Uc.hydrateRoot=Gp.hydrateRoot;function yo(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function a(f){try{c(n.next(f))}catch(u){l(u)}}function s(f){try{c(n.throw(f))}catch(u){l(u)}}function c(f){f.done?i(f.value):o(f.value).then(a,s)}c((n=n.apply(e,t||[])).next())})}function ho(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(c){return function(f){return s([c,f])}}function s(c){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(r=0)),r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){l={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return i}function Xp(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n=0;n-=1)if(!t[n].disabled)return n;if(r){for(let n=t.length-1;n>-1;n-=1)if(!t[n].disabled)return n}return e}function mO(e,t,r){for(let n=e+1;n{var s;r==null||r(a);const c=Array.from(((s=Lu(a.currentTarget,e))==null?void 0:s.querySelectorAll(t))||[]).filter(w=>vO(a.currentTarget,w,e)),f=c.findIndex(w=>a.currentTarget===w),u=mO(f,c,n),d=pO(f,c,n),v=i==="rtl"?d:u,y=i==="rtl"?u:d;switch(a.key){case"ArrowRight":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),c[v].focus(),o&&c[v].click());break}case"ArrowLeft":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),c[y].focus(),o&&c[y].click());break}case"ArrowUp":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),c[d].focus(),o&&c[d].click());break}case"ArrowDown":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),c[u].focus(),o&&c[u].click());break}case"Home":{a.stopPropagation(),a.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{a.stopPropagation(),a.preventDefault();const w=c.length-1;!c[w].disabled&&c[w].focus();break}}}}function ed(e){const t=g.createContext(null);return[({children:o,value:i})=>S.createElement(t.Provider,{value:i},o),()=>{const o=g.useContext(t);if(o===null)throw new Error(e);return o}]}function td(e){return Array.isArray(e)?e:[e]}function Zp(e,t){return r=>{if(typeof r!="string"||r.trim().length===0)throw new Error(t);return`${e}-${r}`}}const yO=()=>{};function hO(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||yO:r=>{var n;r.key==="Escape"&&(e(r),(n=t.onTrigger)==null||n.call(t))}}function wO({data:e}){const t=[],r=[],n=e.reduce((o,i,l)=>(i.group?o[i.group]?o[i.group].push(l):o[i.group]=[l]:r.push(l),o),{});return Object.keys(n).forEach(o=>{t.push(...n[o].map(i=>e[i]))}),t.push(...r.map(o=>e[o])),t}function rd(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==S.Fragment:!1}function j0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t({fontFamily:e.fontFamily||"sans-serif"})}var bO=Object.defineProperty,Jp=Object.getOwnPropertySymbols,PO=Object.prototype.hasOwnProperty,OO=Object.prototype.propertyIsEnumerable,qp=(e,t,r)=>t in e?bO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,em=(e,t)=>{for(var r in t||(t={}))PO.call(t,r)&&qp(e,r,t[r]);if(Jp)for(var r of Jp(t))OO.call(t,r)&&qp(e,r,t[r]);return e};function $O(e){return t=>({WebkitTapHighlightColor:"transparent",[t||"&:focus"]:em({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[t?t.replace(":focus",":focus:not(:focus-visible)"):"&:focus:not(:focus-visible)"]:em({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)})}function Ri(e){return t=>typeof e.primaryShade=="number"?e.primaryShade:e.primaryShade[t||e.colorScheme]}function nd(e){const t=Ri(e);return(r,n,o=!0,i=!0)=>{if(typeof r=="string"&&r.includes(".")){const[a,s]=r.split("."),c=parseInt(s,10);if(a in e.colors&&c>=0&&c<10)return e.colors[a][typeof n=="number"&&!i?n:c]}const l=typeof n=="number"?n:t();return r in e.colors?e.colors[r][l]:o?e.colors[e.primaryColor][l]:r}}function z0(e){let t="";for(let r=1;r{const o={from:(n==null?void 0:n.from)||e.defaultGradient.from,to:(n==null?void 0:n.to)||e.defaultGradient.to,deg:(n==null?void 0:n.deg)||e.defaultGradient.deg};return`linear-gradient(${o.deg}deg, ${t(o.from,r(),!1)} 0%, ${t(o.to,r(),!1)} 100%)`}}function L0(e){return t=>{if(typeof t=="number")return`${t/16}${e}`;if(typeof t=="string"){const r=t.replace("px","");if(!Number.isNaN(Number(r)))return`${Number(r)/16}${e}`}return t}}const x=L0("rem"),cr=L0("em");function z({size:e,sizes:t,units:r}){return e in t?t[e]:typeof e=="number"?r==="em"?cr(e):x(e):e||t.md}function qt(e){return typeof e=="number"?e:typeof e=="string"&&e.includes("rem")?Number(e.replace("rem",""))*16:typeof e=="string"&&e.includes("em")?Number(e.replace("em",""))*16:Number(e)}function CO(e){return t=>`@media (min-width: ${cr(qt(z({size:t,sizes:e.breakpoints})))})`}function kO(e){return t=>`@media (max-width: ${cr(qt(z({size:t,sizes:e.breakpoints}))-1)})`}function NO(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)}function RO(e){let t=e.replace("#","");if(t.length===3){const l=t.split("");t=[l[0],l[0],l[1],l[1],l[2],l[2]].join("")}const r=parseInt(t,16),n=r>>16&255,o=r>>8&255,i=r&255;return{r:n,g:o,b:i,a:1}}function DO(e){const[t,r,n,o]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:r,b:n,a:o||1}}function od(e){return NO(e)?RO(e):e.startsWith("rgb")?DO(e):{r:0,g:0,b:0,a:1}}function Rn(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(--"))return e;const{r,g:n,b:o}=od(e);return`rgba(${r}, ${n}, ${o}, ${t})`}function IO(e=0){return{position:"absolute",top:x(e),right:x(e),left:x(e),bottom:x(e)}}function jO(e,t){if(typeof e=="string"&&e.startsWith("var(--"))return e;const{r,g:n,b:o,a:i}=od(e),l=1-t,a=s=>Math.round(s*l);return`rgba(${a(r)}, ${a(n)}, ${a(o)}, ${i})`}function TO(e,t){if(typeof e=="string"&&e.startsWith("var(--"))return e;const{r,g:n,b:o,a:i}=od(e),l=a=>Math.round(a+(255-a)*t);return`rgba(${l(r)}, ${l(n)}, ${l(o)}, ${i})`}function zO(e){return t=>{if(typeof t=="number")return x(t);const r=typeof e.defaultRadius=="number"?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||r}}function AO(e,t){if(typeof e=="string"&&e.includes(".")){const[r,n]=e.split("."),o=parseInt(n,10);if(r in t.colors&&o>=0&&o<10)return{isSplittedColor:!0,key:r,shade:o}}return{isSplittedColor:!1}}function LO(e){const t=nd(e),r=Ri(e),n=A0(e);return({variant:o,color:i,gradient:l,primaryFallback:a})=>{const s=AO(i,e);switch(o){case"light":return{border:"transparent",background:Rn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1),color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Rn(t(i,e.colorScheme==="dark"?7:1,a,!1),e.colorScheme==="dark"?.25:.65)};case"subtle":return{border:"transparent",background:"transparent",color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Rn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1)};case"outline":return{border:t(i,e.colorScheme==="dark"?5:r("light")),background:"transparent",color:t(i,e.colorScheme==="dark"?5:r("light")),hover:e.colorScheme==="dark"?Rn(t(i,5,a,!1),.05):Rn(t(i,0,a,!1),.35)};case"default":return{border:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4],background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,color:e.colorScheme==="dark"?e.white:e.black,hover:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]};case"white":return{border:"transparent",background:e.white,color:t(i,r()),hover:null};case"transparent":return{border:"transparent",color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),background:"transparent",hover:null};case"gradient":return{background:n(l),color:e.white,border:"transparent",hover:null};default:{const c=r(),f=s.isSplittedColor?s.shade:c,u=s.isSplittedColor?s.key:i;return{border:"transparent",background:t(u,f,a),color:e.white,hover:t(u,f===9?8:f+1)}}}}}function FO(e){return t=>{const r=Ri(e)(t);return e.colors[e.primaryColor][r]}}function MO(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}}function VO(e){return()=>({userSelect:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]})}function HO(e){return()=>e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]}const xe={fontStyles:SO,themeColor:nd,focusStyles:$O,linearGradient:xO,radialGradient:EO,smallerThan:kO,largerThan:CO,rgba:Rn,cover:IO,darken:jO,lighten:TO,radius:zO,variant:LO,primaryShade:Ri,hover:MO,gradient:A0,primaryColor:FO,placeholderStyles:VO,dimmed:HO};var BO=Object.defineProperty,WO=Object.defineProperties,UO=Object.getOwnPropertyDescriptors,tm=Object.getOwnPropertySymbols,KO=Object.prototype.hasOwnProperty,YO=Object.prototype.propertyIsEnumerable,rm=(e,t,r)=>t in e?BO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,GO=(e,t)=>{for(var r in t||(t={}))KO.call(t,r)&&rm(e,r,t[r]);if(tm)for(var r of tm(t))YO.call(t,r)&&rm(e,r,t[r]);return e},QO=(e,t)=>WO(e,UO(t));function F0(e){return QO(GO({},e),{fn:{fontStyles:xe.fontStyles(e),themeColor:xe.themeColor(e),focusStyles:xe.focusStyles(e),largerThan:xe.largerThan(e),smallerThan:xe.smallerThan(e),radialGradient:xe.radialGradient,linearGradient:xe.linearGradient,gradient:xe.gradient(e),rgba:xe.rgba,cover:xe.cover,lighten:xe.lighten,darken:xe.darken,primaryShade:xe.primaryShade(e),radius:xe.radius(e),variant:xe.variant(e),hover:xe.hover,primaryColor:xe.primaryColor(e),placeholderStyles:xe.placeholderStyles(e),dimmed:xe.dimmed(e)}})}const XO={dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:_O,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.1)",sm:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 0.625rem 0.9375rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.4375rem 0.4375rem -0.3125rem",md:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.25rem 1.5625rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.625rem 0.625rem -0.3125rem",lg:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.75rem 1.4375rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 0.75rem 0.75rem -0.4375rem",xl:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem"},radius:{xs:"0.125rem",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"2rem"},spacing:{xs:"0.625rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"1.5rem"},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:"2.125rem",lineHeight:1.3,fontWeight:void 0},h2:{fontSize:"1.625rem",lineHeight:1.35,fontWeight:void 0},h3:{fontSize:"1.375rem",lineHeight:1.4,fontWeight:void 0},h4:{fontSize:"1.125rem",lineHeight:1.45,fontWeight:void 0},h5:{fontSize:"1rem",lineHeight:1.5,fontWeight:void 0},h6:{fontSize:"0.875rem",lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(0.0625rem)"},datesLocale:"en",globalStyles:void 0,focusRingStyles:{styles:e=>({outlineOffset:"0.125rem",outline:`0.125rem solid ${e.colors[e.primaryColor][e.colorScheme==="dark"?7:5]}`}),resetStyles:()=>({outline:"none"}),inputStyles:e=>({outline:"none",borderColor:e.colors[e.primaryColor][typeof e.primaryShade=="object"?e.primaryShade[e.colorScheme]:e.primaryShade]})}},id=F0(XO);function ZO(e){if(e.sheet)return e.sheet;for(var t=0;t0?Te(wo,--ot):0,ao--,Pe===10&&(ao=1,Ls--),Pe}function ut(){return Pe=ot2||bi(Pe)>3?"":" "}function u$(e,t){for(;--t&&ut()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return Di(e,Al()+(t<6&&Jt()==32&&ut()==32))}function Mu(e){for(;ut();)switch(Pe){case e:return ot;case 34:case 39:e!==34&&e!==39&&Mu(Pe);break;case 40:e===41&&Mu(e);break;case 92:ut();break}return ot}function f$(e,t){for(;ut()&&e+Pe!==57;)if(e+Pe===84&&Jt()===47)break;return"/*"+Di(t,ot-1)+"*"+As(e===47?e:ut())}function d$(e){for(;!bi(Jt());)ut();return Di(e,ot)}function p$(e){return U0(Fl("",null,null,null,[""],e=W0(e),0,[0],e))}function Fl(e,t,r,n,o,i,l,a,s){for(var c=0,f=0,u=l,d=0,v=0,y=0,w=1,b=1,m=1,p=0,h="",_=o,P=i,$=n,O=h;b;)switch(y=p,p=ut()){case 40:if(y!=108&&Te(O,u-1)==58){Fu(O+=J(Ll(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:O+=Ll(p);break;case 9:case 10:case 13:case 32:O+=c$(y);break;case 92:O+=u$(Al()-1,7);continue;case 47:switch(Jt()){case 42:case 47:ol(m$(f$(ut(),Al()),t,r),s);break;default:O+="/"}break;case 123*w:a[c++]=Yt(O)*m;case 125*w:case 59:case 0:switch(p){case 0:case 125:b=0;case 59+f:m==-1&&(O=J(O,/\f/g,"")),v>0&&Yt(O)-u&&ol(v>32?om(O+";",n,r,u-1):om(J(O," ","")+";",n,r,u-2),s);break;case 59:O+=";";default:if(ol($=nm(O,t,r,c,f,o,a,h,_=[],P=[],u),i),p===123)if(f===0)Fl(O,t,$,$,_,i,u,a,P);else switch(d===99&&Te(O,3)===110?100:d){case 100:case 108:case 109:case 115:Fl(e,$,$,n&&ol(nm(e,$,$,0,0,o,a,h,o,_=[],u),P),o,P,u,a,n?_:P);break;default:Fl(O,$,$,$,[""],P,0,a,P)}}c=f=v=0,w=m=1,h=O="",u=l;break;case 58:u=1+Yt(O),v=y;default:if(w<1){if(p==123)--w;else if(p==125&&w++==0&&s$()==125)continue}switch(O+=As(p),p*w){case 38:m=f>0?1:(O+="\f",-1);break;case 44:a[c++]=(Yt(O)-1)*m,m=1;break;case 64:Jt()===45&&(O+=Ll(ut())),d=Jt(),f=u=Yt(h=O+=d$(Al())),p++;break;case 45:y===45&&Yt(O)==2&&(w=0)}}return i}function nm(e,t,r,n,o,i,l,a,s,c,f){for(var u=o-1,d=o===0?i:[""],v=sd(d),y=0,w=0,b=0;y0?d[m]+" "+p:J(p,/&\f/g,d[m])))&&(s[b++]=h);return Fs(e,t,r,o===0?ld:a,s,c,f)}function m$(e,t,r){return Fs(e,t,r,M0,As(a$()),Si(e,2,-2),0)}function om(e,t,r,n){return Fs(e,t,r,ad,Si(e,0,n),Si(e,n+1,-1),n)}function Zn(e,t){for(var r="",n=sd(e),o=0;o6)switch(Te(e,t+1)){case 109:if(Te(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+fa+(Te(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fu(e,"stretch")?K0(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Te(e,t+1)!==115)break;case 6444:switch(Te(e,Yt(e)-3-(~Fu(e,"!important")&&10))){case 107:return J(e,":",":"+Z)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(Te(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Te(e,t+11)){case 114:return Z+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+Be+e+e}return e}var O$=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ad:t.return=K0(t.value,t.length);break;case V0:return Zn([zo(t,{value:J(t.value,"@","@"+Z)})],o);case ld:if(t.length)return l$(t.props,function(i){switch(i$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zn([zo(t,{props:[J(i,/:(read-\w+)/,":"+fa+"$1")]})],o);case"::placeholder":return Zn([zo(t,{props:[J(i,/:(plac\w+)/,":"+Z+"input-$1")]}),zo(t,{props:[J(i,/:(plac\w+)/,":"+fa+"$1")]}),zo(t,{props:[J(i,/:(plac\w+)/,Be+"input-$1")]})],o)}return""})}},$$=[O$],Y0=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var b=w.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||$$,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var b=w.getAttribute("data-emotion").split(" "),m=1;m=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var L$={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},F$=/[A-Z]|^ms/g,M$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,q0=function(t){return t.charCodeAt(1)===45},am=function(t){return t!=null&&typeof t!="boolean"},Cc=h$(function(e){return q0(e)?e:e.replace(F$,"-$&").toLowerCase()}),sm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(M$,function(n,o,i){return Gt={name:o,styles:i,next:Gt},o})}return L$[t]!==1&&!q0(t)&&typeof r=="number"&&r!==0?r+"px":r};function Pi(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Gt={name:r.name,styles:r.styles,next:Gt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Gt={name:n.name,styles:n.styles,next:Gt},n=n.next;var o=r.styles+";";return o}return V$(e,t,r)}case"function":{if(e!==void 0){var i=Gt,l=r(e);return Gt=i,Pi(e,t,l)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function V$(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ot in e?G$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q$=(e,t)=>{for(var r in t||(t={}))Z$.call(t,r)&&dm(e,r,t[r]);if(fm)for(var r of fm(t))J$.call(t,r)&&dm(e,r,t[r]);return e},ex=(e,t)=>Q$(e,X$(t));function tx({theme:e}){return S.createElement(Ii,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:e.colorScheme==="dark"?"dark":"light"},body:ex(q$({},e.fn.fontStyles()),{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,fontSize:e.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}function Ao(e,t,r,n=x){Object.keys(t).forEach(o=>{e[`--mantine-${r}-${o}`]=n(t[o])})}function rx({theme:e}){const t={"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-transition-timing-function":e.transitionTimingFunction,"--mantine-line-height":`${e.lineHeight}`,"--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}`};Ao(t,e.shadows,"shadow"),Ao(t,e.fontSizes,"font-size"),Ao(t,e.radius,"radius"),Ao(t,e.spacing,"spacing"),Ao(t,e.breakpoints,"breakpoints",cr),Object.keys(e.colors).forEach(n=>{e.colors[n].forEach((o,i)=>{t[`--mantine-color-${n}-${i}`]=o})});const r=e.headings.sizes;return Object.keys(r).forEach(n=>{t[`--mantine-${n}-font-size`]=r[n].fontSize,t[`--mantine-${n}-line-height`]=`${r[n].lineHeight}`}),S.createElement(Ii,{styles:{":root":t}})}var nx=Object.defineProperty,ox=Object.defineProperties,ix=Object.getOwnPropertyDescriptors,pm=Object.getOwnPropertySymbols,lx=Object.prototype.hasOwnProperty,ax=Object.prototype.propertyIsEnumerable,mm=(e,t,r)=>t in e?nx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bt=(e,t)=>{for(var r in t||(t={}))lx.call(t,r)&&mm(e,r,t[r]);if(pm)for(var r of pm(t))ax.call(t,r)&&mm(e,r,t[r]);return e},kc=(e,t)=>ox(e,ix(t));function sx(e,t){var r;if(!t)return e;const n=Object.keys(e).reduce((o,i)=>{if(i==="headings"&&t.headings){const l=t.headings.sizes?Object.keys(e.headings.sizes).reduce((a,s)=>(a[s]=Bt(Bt({},e.headings.sizes[s]),t.headings.sizes[s]),a),{}):e.headings.sizes;return kc(Bt({},o),{headings:kc(Bt(Bt({},e.headings),t.headings),{sizes:l})})}if(i==="breakpoints"&&t.breakpoints){const l=Bt(Bt({},e.breakpoints),t.breakpoints);return kc(Bt({},o),{breakpoints:Object.fromEntries(Object.entries(l).sort((a,s)=>qt(a[1])-qt(s[1])))})}return o[i]=typeof t[i]=="object"?Bt(Bt({},e[i]),t[i]):typeof t[i]=="number"||typeof t[i]=="boolean"||typeof t[i]=="function"?t[i]:t[i]||e[i],o},{});if(t!=null&&t.fontFamily&&!((r=t==null?void 0:t.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=t.fontFamily),!(n.primaryColor in n.colors))throw new Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");return n}function cx(e,t){return F0(sx(e,t))}function t1(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}const ux={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:`${x(1)} dotted ButtonText`},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"}};function fx(){return S.createElement(Ii,{styles:ux})}var dx=Object.defineProperty,vm=Object.getOwnPropertySymbols,px=Object.prototype.hasOwnProperty,mx=Object.prototype.propertyIsEnumerable,gm=(e,t,r)=>t in e?dx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ri=(e,t)=>{for(var r in t||(t={}))px.call(t,r)&&gm(e,r,t[r]);if(vm)for(var r of vm(t))mx.call(t,r)&&gm(e,r,t[r]);return e};const da=g.createContext({theme:id});function gt(){var e;return((e=g.useContext(da))==null?void 0:e.theme)||id}function vx(e){const t=gt(),r=n=>{var o,i,l,a;return{styles:((o=t.components[n])==null?void 0:o.styles)||{},classNames:((i=t.components[n])==null?void 0:i.classNames)||{},variants:(l=t.components[n])==null?void 0:l.variants,sizes:(a=t.components[n])==null?void 0:a.sizes}};return Array.isArray(e)?e.map(r):[r(e)]}function r1(){var e;return(e=g.useContext(da))==null?void 0:e.emotionCache}function K(e,t,r){var n;const o=gt(),i=(n=o.components[e])==null?void 0:n.defaultProps,l=typeof i=="function"?i(o):i;return ri(ri(ri({},t),l),t1(r))}function n1({theme:e,emotionCache:t,withNormalizeCSS:r=!1,withGlobalStyles:n=!1,withCSSVariables:o=!1,inherit:i=!1,children:l}){const a=g.useContext(da),s=cx(id,i?ri(ri({},a.theme),e):e);return S.createElement(K$,{theme:s},S.createElement(da.Provider,{value:{theme:s,emotionCache:t}},r&&S.createElement(fx,null),n&&S.createElement(tx,{theme:s}),o&&S.createElement(rx,{theme:s}),typeof s.globalStyles=="function"&&S.createElement(Ii,{styles:s.globalStyles(s)}),l))}n1.displayName="@mantine/core/MantineProvider";const o1=g.createContext(null);function gx(){const e=g.useContext(o1);if(!e)throw new Error("useMantineColorScheme hook was called outside of context, make sure your app is wrapped with ColorSchemeProvider component");return e}function i1({colorScheme:e,toggleColorScheme:t,children:r}){return S.createElement(o1.Provider,{value:{colorScheme:e,toggleColorScheme:t}},r)}i1.displayName="@mantine/core/ColorSchemeProvider";const yx={app:100,modal:200,popover:300,overlay:400,max:9999};function _o(e){return yx[e]}function hx(e,t){const r=g.useRef();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map((n,o)=>n===t[o]).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}const wx=Y0({key:"mantine",prepend:!0});function _x(){return r1()||wx}var Sx=Object.defineProperty,ym=Object.getOwnPropertySymbols,bx=Object.prototype.hasOwnProperty,Px=Object.prototype.propertyIsEnumerable,hm=(e,t,r)=>t in e?Sx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ox=(e,t)=>{for(var r in t||(t={}))bx.call(t,r)&&hm(e,r,t[r]);if(ym)for(var r of ym(t))Px.call(t,r)&&hm(e,r,t[r]);return e};const Nc="ref";function $x(e){let t;if(e.length!==1)return{args:e,ref:t};const[r]=e;if(!(r instanceof Object))return{args:e,ref:t};if(!(Nc in r))return{args:e,ref:t};t=r[Nc];const n=Ox({},r);return delete n[Nc],{args:[n],ref:t}}const{cssFactory:xx}=(()=>{function e(r,n,o){const i=[],l=T$(r,i,o);return i.length<2?o:l+n(i)}function t(r){const{cache:n}=r,o=(...l)=>{const{ref:a,args:s}=$x(l),c=dd(s,n.registered);return J0(n,c,!1),`${n.key}-${c.name}${a===void 0?"":` ${a}`}`};return{css:o,cx:(...l)=>e(n.registered,o,T0(l))}}return{cssFactory:t}})();function l1(){const e=_x();return hx(()=>xx({cache:e}),[e])}function Ex({cx:e,classes:t,context:r,classNames:n,name:o,cache:i}){const l=r.reduce((a,s)=>(Object.keys(s.classNames).forEach(c=>{typeof a[c]!="string"?a[c]=`${s.classNames[c]}`:a[c]=`${a[c]} ${s.classNames[c]}`}),a),{});return Object.keys(t).reduce((a,s)=>(a[s]=e(t[s],l[s],n!=null&&n[s],Array.isArray(o)?o.filter(Boolean).map(c=>`${(i==null?void 0:i.key)||"mantine"}-${c}-${s}`).join(" "):o?`${(i==null?void 0:i.key)||"mantine"}-${o}-${s}`:null),a),{})}var Cx=Object.defineProperty,wm=Object.getOwnPropertySymbols,kx=Object.prototype.hasOwnProperty,Nx=Object.prototype.propertyIsEnumerable,_m=(e,t,r)=>t in e?Cx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rc=(e,t)=>{for(var r in t||(t={}))kx.call(t,r)&&_m(e,r,t[r]);if(wm)for(var r of wm(t))Nx.call(t,r)&&_m(e,r,t[r]);return e};function Hu(e,t){return t&&Object.keys(t).forEach(r=>{e[r]?e[r]=Rc(Rc({},e[r]),t[r]):e[r]=Rc({},t[r])}),e}function Sm(e,t,r,n){const o=i=>typeof i=="function"?i(t,r||{},n):i||{};return Array.isArray(e)?e.map(i=>o(i.styles)).reduce((i,l)=>Hu(i,l),{}):o(e)}function Rx({ctx:e,theme:t,params:r,variant:n,size:o}){return e.reduce((i,l)=>(l.variants&&n in l.variants&&Hu(i,l.variants[n](t,r,{variant:n,size:o})),l.sizes&&o in l.sizes&&Hu(i,l.sizes[o](t,r,{variant:n,size:o})),i),{})}function q(e){const t=typeof e=="function"?e:()=>e;function r(n,o){const i=gt(),l=vx(o==null?void 0:o.name),a=r1(),s={variant:o==null?void 0:o.variant,size:o==null?void 0:o.size},{css:c,cx:f}=l1(),u=t(i,n,s),d=Sm(o==null?void 0:o.styles,i,n,s),v=Sm(l,i,n,s),y=Rx({ctx:l,theme:i,params:n,variant:o==null?void 0:o.variant,size:o==null?void 0:o.size}),w=Object.fromEntries(Object.keys(u).map(b=>{const m=f({[c(u[b])]:!(o!=null&&o.unstyled)},c(y[b]),c(v[b]),c(d[b]));return[b,m]}));return{classes:Ex({cx:f,classes:w,context:l,classNames:o==null?void 0:o.classNames,name:o==null?void 0:o.name,cache:a}),cx:f,theme:i}}return r}function Br(e){return`___ref-${e||""}`}function Dx({styles:e}){const t=gt();return S.createElement(Ii,{styles:Y$(typeof e=="function"?e(t):e)})}var Ix=Object.defineProperty,jx=Object.defineProperties,Tx=Object.getOwnPropertyDescriptors,bm=Object.getOwnPropertySymbols,zx=Object.prototype.hasOwnProperty,Ax=Object.prototype.propertyIsEnumerable,Pm=(e,t,r)=>t in e?Ix(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lo=(e,t)=>{for(var r in t||(t={}))zx.call(t,r)&&Pm(e,r,t[r]);if(bm)for(var r of bm(t))Ax.call(t,r)&&Pm(e,r,t[r]);return e},Fo=(e,t)=>jx(e,Tx(t));const Mo={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${x(10)})`},transitionProperty:"transform, opacity"},il={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},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(-${x(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(${x(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(${x(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${x(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:Fo(Lo({},Mo),{common:{transformOrigin:"center center"}}),"pop-bottom-left":Fo(Lo({},Mo),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":Fo(Lo({},Mo),{common:{transformOrigin:"bottom right"}}),"pop-top-left":Fo(Lo({},Mo),{common:{transformOrigin:"top left"}}),"pop-top-right":Fo(Lo({},Mo),{common:{transformOrigin:"top right"}})},Om=["mousedown","touchstart"];function Lx(e,t,r){const n=g.useRef();return g.useEffect(()=>{const o=i=>{const{target:l}=i??{};if(Array.isArray(r)){const a=(l==null?void 0:l.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(l)&&l.tagName!=="HTML";r.every(c=>!!c&&!i.composedPath().includes(c))&&!a&&e()}else n.current&&!n.current.contains(l)&&e()};return(t||Om).forEach(i=>document.addEventListener(i,o)),()=>{(t||Om).forEach(i=>document.removeEventListener(i,o))}},[n,e,r]),n}function Fx(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function Mx(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Vx(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[n,o]=g.useState(r?t:Mx(e)),i=g.useRef();return g.useEffect(()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),Fx(i.current,l=>o(l.matches))},[e]),n}const a1=typeof document<"u"?g.useLayoutEffect:g.useEffect;function Kr(e,t){const r=g.useRef(!1);g.useEffect(()=>()=>{r.current=!1},[]),g.useEffect(()=>{if(r.current)return e();r.current=!0},t)}function Hx({opened:e,shouldReturnFocus:t=!0}){const r=g.useRef(),n=()=>{var o;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((o=r.current)==null||o.focus({preventScroll:!0}))};return Kr(()=>{let o=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",i),e?r.current=document.activeElement:t&&(o=window.setTimeout(n,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",i)}},[e,t]),n}const Bx=/input|select|textarea|button|object/,s1="a, input, select, textarea, button, object, [tabindex]";function Wx(e){return e.style.display==="none"}function Ux(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(Wx(r))return!1;r=r.parentNode}return!0}function c1(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function Bu(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(c1(e));return(Bx.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&Ux(e)}function u1(e){const t=c1(e);return(Number.isNaN(t)||t>=0)&&Bu(e)}function Kx(e){return Array.from(e.querySelectorAll(s1)).filter(u1)}function Yx(e,t){const r=Kx(e);if(!r.length){t.preventDefault();return}const n=r[t.shiftKey?0:r.length-1],o=e.getRootNode();if(!(n===o.activeElement||e===o.activeElement))return;t.preventDefault();const l=r[t.shiftKey?r.length-1:0];l&&l.focus()}function pd(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function Gx(e,t="body > :not(script)"){const r=pd(),n=Array.from(document.querySelectorAll(t)).map(o=>{var i;if((i=o==null?void 0:o.shadowRoot)!=null&&i.contains(e)||o.contains(e))return;const l=o.getAttribute("aria-hidden"),a=o.getAttribute("data-hidden"),s=o.getAttribute("data-focus-id");return o.setAttribute("data-focus-id",r),l===null||l==="false"?o.setAttribute("aria-hidden","true"):!a&&!s&&o.setAttribute("data-hidden",l),{node:o,ariaHidden:a||null}});return()=>{n.forEach(o=>{!o||r!==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"))})}}function Qx(e=!0){const t=g.useRef(),r=g.useRef(null),n=i=>{let l=i.querySelector("[data-autofocus]");if(!l){const a=Array.from(i.querySelectorAll(s1));l=a.find(u1)||a.find(Bu)||null,!l&&Bu(i)&&(l=i)}l&&l.focus({preventScroll:!0})},o=g.useCallback(i=>{if(e){if(i===null){r.current&&(r.current(),r.current=null);return}r.current=Gx(i),t.current!==i&&(i?(setTimeout(()=>{i.getRootNode()&&n(i)}),t.current=i):t.current=null)}},[e]);return g.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>n(t.current));const i=l=>{l.key==="Tab"&&t.current&&Yx(t.current,l)};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i),r.current&&r.current()}},[e]),o}const Xx=S.useId||(()=>{});function Zx(){const e=Xx();return e?`mantine-${e.replace(/:/g,"")}`:""}function Sn(e){const t=Zx(),[r,n]=g.useState(t);return a1(()=>{n(pd())},[]),typeof e=="string"?e:typeof window>"u"?t:r}function pa(e,t,r){g.useEffect(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[e,t])}function Jx(e,t){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${t}: Failed to serialize the value`)}}function qx(e){try{return JSON.parse(e)}catch{return e}}function eE(e,t){const r="mantine-local-storage";return function({key:o,defaultValue:i=void 0,getInitialValueInEffect:l=!0,deserialize:a=qx,serialize:s=c=>Jx(c,t)}){const c=g.useCallback(y=>{if(typeof window>"u"||!(e in window)||window[e]===null||y)return i;const w=window[e].getItem(o);return w!==null?a(w):i},[o,i]),[f,u]=g.useState(c(l)),d=g.useCallback(y=>{y instanceof Function?u(w=>{const b=y(w);return window[e].setItem(o,s(b)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:y(w)}})),b}):(window[e].setItem(o,s(y)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:y}})),u(y))},[o]),v=g.useCallback(()=>{window[e].removeItem(o),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:i}}))},[]);return pa("storage",y=>{var w;y.storageArea===window[e]&&y.key===o&&u(a((w=y.newValue)!=null?w:void 0))}),pa(r,y=>{y.detail.key===o&&u(y.detail.value)}),g.useEffect(()=>{i!==void 0&&f===void 0&&d(i)},[i,f,d]),g.useEffect(()=>{l&&u(c())},[o]),[f===void 0?i:f,d,v]}}function tE(e){return eE("localStorage","use-local-storage")(e)}function f1(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function rE(...e){return t=>{e.forEach(r=>f1(r,t))}}function md(...e){return g.useCallback(rE(...e),e)}function so({value:e,defaultValue:t,finalValue:r,onChange:n=()=>{}}){const[o,i]=g.useState(t!==void 0?t:r),l=a=>{i(a),n==null||n(a)};return e!==void 0?[e,n,!0]:[o,l,!1]}function d1(e,t){return Vx("(prefers-reduced-motion: reduce)",e,t)}const nE=e=>e<.5?2*e*e:-1+(4-2*e)*e,oE=({axis:e,target:t,parent:r,alignment:n,offset:o,isList:i})=>{if(!t||!r&&typeof document>"u")return 0;const l=!!r,s=(r||document.body).getBoundingClientRect(),c=t.getBoundingClientRect(),f=u=>c[u]-s[u];if(e==="y"){const u=f("top");if(u===0)return 0;if(n==="start"){const v=u-o;return v<=c.height*(i?0:1)||!i?v:0}const d=l?s.height:window.innerHeight;if(n==="end"){const v=u+o-d+c.height;return v>=-c.height*(i?0:1)||!i?v:0}return n==="center"?u-d/2+c.height/2:0}if(e==="x"){const u=f("left");if(u===0)return 0;if(n==="start"){const v=u-o;return v<=c.width||!i?v:0}const d=l?s.width:window.innerWidth;if(n==="end"){const v=u+o-d+c.width;return v>=-c.width||!i?v:0}return n==="center"?u-d/2+c.width/2:0}return 0},iE=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;const r=e==="y"?"scrollTop":"scrollLeft";if(t)return t[r];const{body:n,documentElement:o}=document;return n[r]+o[r]},lE=({axis:e,parent:t,distance:r})=>{if(!t&&typeof document>"u")return;const n=e==="y"?"scrollTop":"scrollLeft";if(t)t[n]=r;else{const{body:o,documentElement:i}=document;o[n]=r,i[n]=r}};function aE({duration:e=1250,axis:t="y",onScrollFinish:r,easing:n=nE,offset:o=0,cancelable:i=!0,isList:l=!1}={}){const a=g.useRef(0),s=g.useRef(0),c=g.useRef(!1),f=g.useRef(null),u=g.useRef(null),d=d1(),v=()=>{a.current&&cancelAnimationFrame(a.current)},y=g.useCallback(({alignment:b="start"}={})=>{var m;c.current=!1,a.current&&v();const p=(m=iE({parent:f.current,axis:t}))!=null?m:0,h=oE({parent:f.current,target:u.current,axis:t,alignment:b,offset:o,isList:l})-(f.current?0:p);function _(){s.current===0&&(s.current=performance.now());const $=performance.now()-s.current,O=d||e===0?1:$/e,E=p+h*n(O);lE({parent:f.current,axis:t,distance:E}),!c.current&&O<1?a.current=requestAnimationFrame(_):(typeof r=="function"&&r(),s.current=0,a.current=0,v())}_()},[t,e,n,l,o,r,d]),w=()=>{i&&(c.current=!0)};return pa("wheel",w,{passive:!0}),pa("touchmove",w,{passive:!0}),g.useEffect(()=>v,[]),{scrollableRef:f,targetRef:u,scrollIntoView:y,cancel:v}}var sE=Object.defineProperty,cE=Object.defineProperties,uE=Object.getOwnPropertyDescriptors,$m=Object.getOwnPropertySymbols,fE=Object.prototype.hasOwnProperty,dE=Object.prototype.propertyIsEnumerable,xm=(e,t,r)=>t in e?sE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pE=(e,t)=>{for(var r in t||(t={}))fE.call(t,r)&&xm(e,r,t[r]);if($m)for(var r of $m(t))dE.call(t,r)&&xm(e,r,t[r]);return e},mE=(e,t)=>cE(e,uE(t));function vE(e){const t=e.toLowerCase().split("+").map(i=>i.trim()),r={alt:t.includes("alt"),ctrl:t.includes("ctrl"),meta:t.includes("meta"),mod:t.includes("mod"),shift:t.includes("shift")},n=["alt","ctrl","meta","shift","mod"],o=t.find(i=>!n.includes(i));return mE(pE({},r),{key:o})}function gE(e,t){const{alt:r,ctrl:n,meta:o,mod:i,shift:l,key:a}=e,{altKey:s,ctrlKey:c,metaKey:f,shiftKey:u,key:d}=t;if(r!==s)return!1;if(i){if(!c&&!f)return!1}else if(n!==c||o!==f)return!1;return l!==u?!1:!!(a&&(d.toLowerCase()===a.toLowerCase()||t.code.replace("Key","").toLowerCase()===a.toLowerCase()))}function yE(e){return t=>gE(vE(e),t)}function hE(e,t,r=!1){return e.target instanceof HTMLElement?(r||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function wE(e,t=["INPUT","TEXTAREA","SELECT"],r=!1){g.useEffect(()=>{const n=o=>{e.forEach(([i,l,a={preventDefault:!0}])=>{yE(i)(o)&&hE(o,t,r)&&(a.preventDefault&&o.preventDefault(),l(o))})};return document.documentElement.addEventListener("keydown",n),()=>document.documentElement.removeEventListener("keydown",n)},[e])}function _E(e=!1,t){const{onOpen:r,onClose:n}={},[o,i]=g.useState(e),l=g.useCallback(()=>{i(c=>c||(r==null||r(),!0))},[r]),a=g.useCallback(()=>{i(c=>c&&(n==null||n(),!1))},[n]),s=g.useCallback(()=>{o?a():l()},[a,l,o]);return[o,{open:l,close:a,toggle:s}]}function Em(e){return typeof e!="string"?"":e.charAt(0).toUpperCase()+e.slice(1)}var Cm=Object.getOwnPropertySymbols,SE=Object.prototype.hasOwnProperty,bE=Object.prototype.propertyIsEnumerable,PE=(e,t)=>{var r={};for(var n in e)SE.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Cm)for(var n of Cm(e))t.indexOf(n)<0&&bE.call(e,n)&&(r[n]=e[n]);return r};function ji(e){const t=e,{m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:c,px:f,py:u,pt:d,pb:v,pl:y,pr:w,bg:b,c:m,opacity:p,ff:h,fz:_,fw:P,lts:$,ta:O,lh:E,fs:k,tt:C,td:F,w:A,miw:W,maw:L,h:H,mih:G,mah:ne,bgsz:R,bgp:j,bgr:V,bga:Y,pos:Q,top:Ye,left:ce,bottom:Le,right:me,inset:Fe,display:xt}=t,Ft=PE(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display"]);return{systemStyles:t1({m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:c,px:f,py:u,pt:d,pb:v,pl:y,pr:w,bg:b,c:m,opacity:p,ff:h,fz:_,fw:P,lts:$,ta:O,lh:E,fs:k,tt:C,td:F,w:A,miw:W,maw:L,h:H,mih:G,mah:ne,bgsz:R,bgp:j,bgr:V,bga:Y,pos:Q,top:Ye,left:ce,bottom:Le,right:me,inset:Fe,display:xt}),rest:Ft}}function OE(e,t){const r=Object.keys(e).filter(n=>n!=="base").sort((n,o)=>qt(z({size:n,sizes:t.breakpoints}))-qt(z({size:o,sizes:t.breakpoints})));return"base"in e?["base",...r]:r}function $E({value:e,theme:t,getValue:r,property:n}){if(e==null)return;if(typeof e=="object")return OE(e,t).reduce((l,a)=>{if(a==="base"&&e.base!==void 0){const c=r(e.base,t);return Array.isArray(n)?(n.forEach(f=>{l[f]=c}),l):(l[n]=c,l)}const s=r(e[a],t);return Array.isArray(n)?(l[t.fn.largerThan(a)]={},n.forEach(c=>{l[t.fn.largerThan(a)][c]=s}),l):(l[t.fn.largerThan(a)]={[n]:s},l)},{});const o=r(e,t);return Array.isArray(n)?n.reduce((i,l)=>(i[l]=o,i),{}):{[n]:o}}function xE(e,t){return e==="dimmed"?t.colorScheme==="dark"?t.colors.dark[2]:t.colors.gray[6]:t.fn.variant({variant:"filled",color:e,primaryFallback:!1}).background}function EE(e){return x(e)}function CE(e){return e}function kE(e,t){return z({size:e,sizes:t.fontSizes})}const NE=["-xs","-sm","-md","-lg","-xl"];function RE(e,t){return NE.includes(e)?`calc(${z({size:e.replace("-",""),sizes:t.spacing})} * -1)`:z({size:e,sizes:t.spacing})}const DE={identity:CE,color:xE,size:EE,fontSize:kE,spacing:RE},IE={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"},mx:{type:"spacing",property:["marginRight","marginLeft"]},my:{type:"spacing",property:["marginTop","marginBottom"]},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"},px:{type:"spacing",property:["paddingRight","paddingLeft"]},py:{type:"spacing",property:["paddingTop","paddingBottom"]},bg:{type:"color",property:"background"},c:{type:"color",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"identity",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"identity",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"}};var jE=Object.defineProperty,km=Object.getOwnPropertySymbols,TE=Object.prototype.hasOwnProperty,zE=Object.prototype.propertyIsEnumerable,Nm=(e,t,r)=>t in e?jE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rm=(e,t)=>{for(var r in t||(t={}))TE.call(t,r)&&Nm(e,r,t[r]);if(km)for(var r of km(t))zE.call(t,r)&&Nm(e,r,t[r]);return e};function Dm(e,t,r=IE){return Object.keys(r).reduce((o,i)=>(i in e&&e[i]!==void 0&&o.push($E({value:e[i],getValue:DE[r[i].type],property:r[i].property,theme:t})),o),[]).reduce((o,i)=>(Object.keys(i).forEach(l=>{typeof i[l]=="object"&&i[l]!==null&&l in o?o[l]=Rm(Rm({},o[l]),i[l]):o[l]=i[l]}),o),{})}function Im(e,t){return typeof e=="function"?e(t):e}function AE(e,t,r){const n=gt(),{css:o,cx:i}=l1();return Array.isArray(e)?i(r,o(Dm(t,n)),e.map(l=>o(Im(l,n)))):i(r,o(Im(e,n)),o(Dm(t,n)))}var LE=Object.defineProperty,ma=Object.getOwnPropertySymbols,p1=Object.prototype.hasOwnProperty,m1=Object.prototype.propertyIsEnumerable,jm=(e,t,r)=>t in e?LE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,FE=(e,t)=>{for(var r in t||(t={}))p1.call(t,r)&&jm(e,r,t[r]);if(ma)for(var r of ma(t))m1.call(t,r)&&jm(e,r,t[r]);return e},ME=(e,t)=>{var r={};for(var n in e)p1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ma)for(var n of ma(e))t.indexOf(n)<0&&m1.call(e,n)&&(r[n]=e[n]);return r};const v1=g.forwardRef((e,t)=>{var r=e,{className:n,component:o,style:i,sx:l}=r,a=ME(r,["className","component","style","sx"]);const{systemStyles:s,rest:c}=ji(a),f=o||"div";return S.createElement(f,FE({ref:t,className:AE(l,s,n),style:i},c))});v1.displayName="@mantine/core/Box";const ie=v1;var VE=Object.defineProperty,HE=Object.defineProperties,BE=Object.getOwnPropertyDescriptors,Tm=Object.getOwnPropertySymbols,WE=Object.prototype.hasOwnProperty,UE=Object.prototype.propertyIsEnumerable,zm=(e,t,r)=>t in e?VE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Am=(e,t)=>{for(var r in t||(t={}))WE.call(t,r)&&zm(e,r,t[r]);if(Tm)for(var r of Tm(t))UE.call(t,r)&&zm(e,r,t[r]);return e},KE=(e,t)=>HE(e,BE(t)),YE=q(e=>({root:KE(Am(Am({},e.fn.focusStyles()),e.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:e.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,textDecoration:"none",boxSizing:"border-box"})})),GE=Object.defineProperty,va=Object.getOwnPropertySymbols,g1=Object.prototype.hasOwnProperty,y1=Object.prototype.propertyIsEnumerable,Lm=(e,t,r)=>t in e?GE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QE=(e,t)=>{for(var r in t||(t={}))g1.call(t,r)&&Lm(e,r,t[r]);if(va)for(var r of va(t))y1.call(t,r)&&Lm(e,r,t[r]);return e},XE=(e,t)=>{var r={};for(var n in e)g1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&va)for(var n of va(e))t.indexOf(n)<0&&y1.call(e,n)&&(r[n]=e[n]);return r};const h1=g.forwardRef((e,t)=>{const r=K("UnstyledButton",{},e),{className:n,component:o="button",unstyled:i,variant:l}=r,a=XE(r,["className","component","unstyled","variant"]),{classes:s,cx:c}=YE(null,{name:"UnstyledButton",unstyled:i,variant:l});return S.createElement(ie,QE({component:o,ref:t,className:c(s.root,n),type:o==="button"?"button":void 0},a))});h1.displayName="@mantine/core/UnstyledButton";const w1=h1;var ZE=Object.defineProperty,JE=Object.defineProperties,qE=Object.getOwnPropertyDescriptors,Fm=Object.getOwnPropertySymbols,eC=Object.prototype.hasOwnProperty,tC=Object.prototype.propertyIsEnumerable,Mm=(e,t,r)=>t in e?ZE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wu=(e,t)=>{for(var r in t||(t={}))eC.call(t,r)&&Mm(e,r,t[r]);if(Fm)for(var r of Fm(t))tC.call(t,r)&&Mm(e,r,t[r]);return e},Vm=(e,t)=>JE(e,qE(t));const rC=["subtle","filled","outline","light","default","transparent","gradient"],ll={xs:x(18),sm:x(22),md:x(28),lg:x(34),xl:x(44)};function nC({variant:e,theme:t,color:r,gradient:n}){const o=t.fn.variant({color:r,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:o.background,color:o.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:rC.includes(e)?Wu({border:`${x(1)} solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover})):null}var oC=q((e,{radius:t,color:r,gradient:n},{variant:o,size:i})=>({root:Vm(Wu({position:"relative",borderRadius:e.fn.radius(t),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center",height:z({size:i,sizes:ll}),minHeight:z({size:i,sizes:ll}),width:z({size:i,sizes:ll}),minWidth:z({size:i,sizes:ll})},nC({variant:o,theme:e,color:r,gradient:n})),{"&:active":e.activeStyles,"& [data-action-icon-loader]":{maxWidth:"70%"},"&:disabled, &[data-disabled]":{color:e.colors.gray[e.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),borderColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":Vm(Wu({content:'""'},e.fn.cover(x(-1))),{backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(t),cursor:"not-allowed"})}})})),iC=Object.defineProperty,ga=Object.getOwnPropertySymbols,_1=Object.prototype.hasOwnProperty,S1=Object.prototype.propertyIsEnumerable,Hm=(e,t,r)=>t in e?iC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bm=(e,t)=>{for(var r in t||(t={}))_1.call(t,r)&&Hm(e,r,t[r]);if(ga)for(var r of ga(t))S1.call(t,r)&&Hm(e,r,t[r]);return e},Wm=(e,t)=>{var r={};for(var n in e)_1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ga)for(var n of ga(e))t.indexOf(n)<0&&S1.call(e,n)&&(r[n]=e[n]);return r};function lC(e){var t=e,{size:r,color:n}=t,o=Wm(t,["size","color"]);const i=o,{style:l}=i,a=Wm(i,["style"]);return S.createElement("svg",Bm({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,style:Bm({width:r},l)},a),S.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var aC=Object.defineProperty,ya=Object.getOwnPropertySymbols,b1=Object.prototype.hasOwnProperty,P1=Object.prototype.propertyIsEnumerable,Um=(e,t,r)=>t in e?aC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Km=(e,t)=>{for(var r in t||(t={}))b1.call(t,r)&&Um(e,r,t[r]);if(ya)for(var r of ya(t))P1.call(t,r)&&Um(e,r,t[r]);return e},Ym=(e,t)=>{var r={};for(var n in e)b1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ya)for(var n of ya(e))t.indexOf(n)<0&&P1.call(e,n)&&(r[n]=e[n]);return r};function sC(e){var t=e,{size:r,color:n}=t,o=Ym(t,["size","color"]);const i=o,{style:l}=i,a=Ym(i,["style"]);return S.createElement("svg",Km({viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n,style:Km({width:r,height:r},l)},a),S.createElement("g",{fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},S.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),S.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},S.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var cC=Object.defineProperty,ha=Object.getOwnPropertySymbols,O1=Object.prototype.hasOwnProperty,$1=Object.prototype.propertyIsEnumerable,Gm=(e,t,r)=>t in e?cC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qm=(e,t)=>{for(var r in t||(t={}))O1.call(t,r)&&Gm(e,r,t[r]);if(ha)for(var r of ha(t))$1.call(t,r)&&Gm(e,r,t[r]);return e},Xm=(e,t)=>{var r={};for(var n in e)O1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ha)for(var n of ha(e))t.indexOf(n)<0&&$1.call(e,n)&&(r[n]=e[n]);return r};function uC(e){var t=e,{size:r,color:n}=t,o=Xm(t,["size","color"]);const i=o,{style:l}=i,a=Xm(i,["style"]);return S.createElement("svg",Qm({viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n,style:Qm({width:r},l)},a),S.createElement("circle",{cx:"15",cy:"15",r:"15"},S.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},S.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("circle",{cx:"105",cy:"15",r:"15"},S.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var fC=Object.defineProperty,wa=Object.getOwnPropertySymbols,x1=Object.prototype.hasOwnProperty,E1=Object.prototype.propertyIsEnumerable,Zm=(e,t,r)=>t in e?fC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dC=(e,t)=>{for(var r in t||(t={}))x1.call(t,r)&&Zm(e,r,t[r]);if(wa)for(var r of wa(t))E1.call(t,r)&&Zm(e,r,t[r]);return e},pC=(e,t)=>{var r={};for(var n in e)x1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&wa)for(var n of wa(e))t.indexOf(n)<0&&E1.call(e,n)&&(r[n]=e[n]);return r};const Dc={bars:lC,oval:sC,dots:uC},mC={xs:x(18),sm:x(22),md:x(36),lg:x(44),xl:x(58)},vC={size:"md"};function vd(e){const t=K("Loader",vC,e),{size:r,color:n,variant:o}=t,i=pC(t,["size","color","variant"]),l=gt(),a=o in Dc?o:l.loader;return S.createElement(ie,dC({role:"presentation",component:Dc[a]||Dc.bars,size:z({size:r,sizes:mC}),color:l.fn.variant({variant:"filled",primaryFallback:!1,color:n||l.primaryColor}).background},i))}vd.displayName="@mantine/core/Loader";var gC=Object.defineProperty,_a=Object.getOwnPropertySymbols,C1=Object.prototype.hasOwnProperty,k1=Object.prototype.propertyIsEnumerable,Jm=(e,t,r)=>t in e?gC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qm=(e,t)=>{for(var r in t||(t={}))C1.call(t,r)&&Jm(e,r,t[r]);if(_a)for(var r of _a(t))k1.call(t,r)&&Jm(e,r,t[r]);return e},yC=(e,t)=>{var r={};for(var n in e)C1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_a)for(var n of _a(e))t.indexOf(n)<0&&k1.call(e,n)&&(r[n]=e[n]);return r};const hC={color:"gray",size:"md",variant:"subtle"},N1=g.forwardRef((e,t)=>{const r=K("ActionIcon",hC,e),{className:n,color:o,children:i,radius:l,size:a,variant:s,gradient:c,disabled:f,loaderProps:u,loading:d,unstyled:v,__staticSelector:y}=r,w=yC(r,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled","__staticSelector"]),{classes:b,cx:m,theme:p}=oC({radius:l,color:o,gradient:c},{name:["ActionIcon",y],unstyled:v,size:a,variant:s}),h=S.createElement(vd,qm({color:p.fn.variant({color:o,variant:s}).color,size:"100%","data-action-icon-loader":!0},u));return S.createElement(w1,qm({className:m(b.root,n),ref:t,disabled:f,"data-disabled":f||void 0,"data-loading":d||void 0,unstyled:v},w),d?h:i)});N1.displayName="@mantine/core/ActionIcon";const Uu=N1;var wC=Object.defineProperty,_C=Object.defineProperties,SC=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,R1=Object.prototype.hasOwnProperty,D1=Object.prototype.propertyIsEnumerable,ev=(e,t,r)=>t in e?wC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bC=(e,t)=>{for(var r in t||(t={}))R1.call(t,r)&&ev(e,r,t[r]);if(Sa)for(var r of Sa(t))D1.call(t,r)&&ev(e,r,t[r]);return e},PC=(e,t)=>_C(e,SC(t)),OC=(e,t)=>{var r={};for(var n in e)R1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sa)for(var n of Sa(e))t.indexOf(n)<0&&D1.call(e,n)&&(r[n]=e[n]);return r};function I1(e){const t=K("Portal",{},e),{children:r,target:n,className:o,innerRef:i}=t,l=OC(t,["children","target","className","innerRef"]),a=gt(),[s,c]=g.useState(!1),f=g.useRef();return a1(()=>(c(!0),f.current=n?typeof n=="string"?document.querySelector(n):n:document.createElement("div"),n||document.body.appendChild(f.current),()=>{!n&&document.body.removeChild(f.current)}),[n]),s?zs.createPortal(S.createElement("div",PC(bC({className:o,dir:a.dir},l),{ref:i}),r),f.current):null}I1.displayName="@mantine/core/Portal";var $C=Object.defineProperty,ba=Object.getOwnPropertySymbols,j1=Object.prototype.hasOwnProperty,T1=Object.prototype.propertyIsEnumerable,tv=(e,t,r)=>t in e?$C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xC=(e,t)=>{for(var r in t||(t={}))j1.call(t,r)&&tv(e,r,t[r]);if(ba)for(var r of ba(t))T1.call(t,r)&&tv(e,r,t[r]);return e},EC=(e,t)=>{var r={};for(var n in e)j1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ba)for(var n of ba(e))t.indexOf(n)<0&&T1.call(e,n)&&(r[n]=e[n]);return r};function gd(e){var t=e,{withinPortal:r=!0,children:n}=t,o=EC(t,["withinPortal","children"]);return r?S.createElement(I1,xC({},o),n):S.createElement(S.Fragment,null,n)}gd.displayName="@mantine/core/OptionalPortal";var CC=Object.defineProperty,kC=Object.defineProperties,NC=Object.getOwnPropertyDescriptors,rv=Object.getOwnPropertySymbols,RC=Object.prototype.hasOwnProperty,DC=Object.prototype.propertyIsEnumerable,nv=(e,t,r)=>t in e?CC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ic=(e,t)=>{for(var r in t||(t={}))RC.call(t,r)&&nv(e,r,t[r]);if(rv)for(var r of rv(t))DC.call(t,r)&&nv(e,r,t[r]);return e},ov=(e,t)=>kC(e,NC(t));function IC({variant:e,color:t,theme:r}){if(e==="filled")return{backgroundColor:r.fn.variant({variant:"filled",color:t}).background,color:r.white};if(e==="outline"){const n=r.fn.variant({variant:"outline",color:t});return{color:n.color,borderColor:n.border,backgroundColor:r.colorScheme==="dark"?r.colors.dark[6]:r.white}}if(e==="light"){const n=r.fn.variant({variant:"light",color:t});return{backgroundColor:n.background,color:n.color}}return null}var jC=q((e,{radius:t,color:r},{variant:n})=>({root:Ic(ov(Ic({},e.fn.fontStyles()),{position:"relative",overflow:"hidden",paddingTop:e.spacing.sm,paddingBottom:e.spacing.sm,paddingLeft:e.spacing.md,paddingRight:e.spacing.sm,borderRadius:e.fn.radius(t),border:`${x(1)} solid transparent`}),IC({variant:n,color:r,theme:e})),wrapper:{display:"flex"},body:{flex:1},title:{boxSizing:"border-box",margin:0,marginBottom:e.spacing.xs,display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,fontWeight:700,"&[data-with-close-button]":{paddingRight:e.spacing.md}},label:{display:"block",overflow:"hidden",textOverflow:"ellipsis"},icon:{lineHeight:1,width:x(20),height:x(20),display:"flex",alignItems:"center",justifyContent:"flex-start",marginRight:e.spacing.md,marginTop:1},message:ov(Ic({},e.fn.fontStyles()),{lineHeight:e.lineHeight,textOverflow:"ellipsis",overflow:"hidden",fontSize:e.fontSizes.sm,color:n==="filled"?e.white:e.colorScheme==="dark"?n==="light"?e.white:e.colors.dark[0]:e.black}),closeButton:{width:x(10),height:x(10),color:n==="filled"?e.white:e.colorScheme==="dark"?n==="light"?e.white:e.colors.dark[0]:e.black}})),TC=Object.defineProperty,Pa=Object.getOwnPropertySymbols,z1=Object.prototype.hasOwnProperty,A1=Object.prototype.propertyIsEnumerable,iv=(e,t,r)=>t in e?TC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lv=(e,t)=>{for(var r in t||(t={}))z1.call(t,r)&&iv(e,r,t[r]);if(Pa)for(var r of Pa(t))A1.call(t,r)&&iv(e,r,t[r]);return e},zC=(e,t)=>{var r={};for(var n in e)z1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Pa)for(var n of Pa(e))t.indexOf(n)<0&&A1.call(e,n)&&(r[n]=e[n]);return r};function L1(e){const t=e,{width:r,height:n,style:o}=t,i=zC(t,["width","height","style"]);return S.createElement("svg",lv({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:lv({width:r,height:n},o)},i),S.createElement("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"}))}L1.displayName="@mantine/core/CloseIcon";var AC=Object.defineProperty,Oa=Object.getOwnPropertySymbols,F1=Object.prototype.hasOwnProperty,M1=Object.prototype.propertyIsEnumerable,av=(e,t,r)=>t in e?AC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,LC=(e,t)=>{for(var r in t||(t={}))F1.call(t,r)&&av(e,r,t[r]);if(Oa)for(var r of Oa(t))M1.call(t,r)&&av(e,r,t[r]);return e},FC=(e,t)=>{var r={};for(var n in e)F1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Oa)for(var n of Oa(e))t.indexOf(n)<0&&M1.call(e,n)&&(r[n]=e[n]);return r};const MC={xs:x(12),sm:x(16),md:x(20),lg:x(28),xl:x(34)},VC={size:"sm"},V1=g.forwardRef((e,t)=>{const r=K("CloseButton",VC,e),{iconSize:n,size:o,children:i}=r,l=FC(r,["iconSize","size","children"]),a=x(n||MC[o]);return S.createElement(Uu,LC({ref:t,__staticSelector:"CloseButton",size:o},l),i||S.createElement(L1,{width:a,height:a}))});V1.displayName="@mantine/core/CloseButton";const H1=V1;var HC=Object.defineProperty,$a=Object.getOwnPropertySymbols,B1=Object.prototype.hasOwnProperty,W1=Object.prototype.propertyIsEnumerable,sv=(e,t,r)=>t in e?HC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BC=(e,t)=>{for(var r in t||(t={}))B1.call(t,r)&&sv(e,r,t[r]);if($a)for(var r of $a(t))W1.call(t,r)&&sv(e,r,t[r]);return e},WC=(e,t)=>{var r={};for(var n in e)B1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$a)for(var n of $a(e))t.indexOf(n)<0&&W1.call(e,n)&&(r[n]=e[n]);return r};const UC={variant:"light"},U1=g.forwardRef((e,t)=>{const r=K("Alert",UC,e),{id:n,className:o,title:i,variant:l,children:a,color:s,classNames:c,icon:f,styles:u,onClose:d,radius:v,withCloseButton:y,closeButtonLabel:w,unstyled:b}=r,m=WC(r,["id","className","title","variant","children","color","classNames","icon","styles","onClose","radius","withCloseButton","closeButtonLabel","unstyled"]),{classes:p,cx:h}=jC({color:s,radius:v},{classNames:c,styles:u,unstyled:b,variant:l,name:"Alert"}),_=Sn(n),P=i&&`${_}-title`,$=`${_}-body`;return S.createElement(ie,BC({id:_,role:"alert","aria-labelledby":P,"aria-describedby":$,className:h(p.root,p[l],o),ref:t},m),S.createElement("div",{className:p.wrapper},f&&S.createElement("div",{className:p.icon},f),S.createElement("div",{className:p.body},i&&S.createElement("div",{className:p.title,"data-with-close-button":y||void 0},S.createElement("span",{id:P,className:p.label},i)),S.createElement("div",{id:$,className:p.message},a)),y&&S.createElement(H1,{className:p.closeButton,onClick:d,variant:"transparent",size:16,iconSize:16,"aria-label":w})))});U1.displayName="@mantine/core/Alert";var KC=Object.defineProperty,YC=Object.defineProperties,GC=Object.getOwnPropertyDescriptors,cv=Object.getOwnPropertySymbols,QC=Object.prototype.hasOwnProperty,XC=Object.prototype.propertyIsEnumerable,uv=(e,t,r)=>t in e?KC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,al=(e,t)=>{for(var r in t||(t={}))QC.call(t,r)&&uv(e,r,t[r]);if(cv)for(var r of cv(t))XC.call(t,r)&&uv(e,r,t[r]);return e},ZC=(e,t)=>YC(e,GC(t));function JC({underline:e,strikethrough:t}){const r=[];return e&&r.push("underline"),t&&r.push("line-through"),r.length>0?r.join(" "):"none"}function qC({theme:e,color:t}){return t==="dimmed"?e.fn.dimmed():typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?e.fn.variant({variant:"filled",color:t}).background:t||"inherit"}function e2(e){return typeof e=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}function t2({theme:e,truncate:t}){return t==="start"?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",direction:e.dir==="ltr"?"rtl":"ltr",textAlign:e.dir==="ltr"?"right":"left"}:t?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:null}var r2=q((e,{color:t,lineClamp:r,truncate:n,inline:o,inherit:i,underline:l,gradient:a,weight:s,transform:c,align:f,strikethrough:u,italic:d},{size:v})=>{const y=e.fn.variant({variant:"gradient",gradient:a});return{root:ZC(al(al(al(al({},e.fn.fontStyles()),e.fn.focusStyles()),e2(r)),t2({theme:e,truncate:n})),{color:qC({color:t,theme:e}),fontFamily:i?"inherit":e.fontFamily,fontSize:i||v===void 0?"inherit":z({size:v,sizes:e.fontSizes}),lineHeight:i?"inherit":o?1:e.lineHeight,textDecoration:JC({underline:l,strikethrough:u}),WebkitTapHighlightColor:"transparent",fontWeight:i?"inherit":s,textTransform:c,textAlign:f,fontStyle:d?"italic":void 0}),gradient:{backgroundImage:y.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}}),n2=Object.defineProperty,xa=Object.getOwnPropertySymbols,K1=Object.prototype.hasOwnProperty,Y1=Object.prototype.propertyIsEnumerable,fv=(e,t,r)=>t in e?n2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o2=(e,t)=>{for(var r in t||(t={}))K1.call(t,r)&&fv(e,r,t[r]);if(xa)for(var r of xa(t))Y1.call(t,r)&&fv(e,r,t[r]);return e},i2=(e,t)=>{var r={};for(var n in e)K1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xa)for(var n of xa(e))t.indexOf(n)<0&&Y1.call(e,n)&&(r[n]=e[n]);return r};const l2={variant:"text"},G1=g.forwardRef((e,t)=>{const r=K("Text",l2,e),{className:n,size:o,weight:i,transform:l,color:a,align:s,variant:c,lineClamp:f,truncate:u,gradient:d,inline:v,inherit:y,underline:w,strikethrough:b,italic:m,classNames:p,styles:h,unstyled:_,span:P,__staticSelector:$}=r,O=i2(r,["className","size","weight","transform","color","align","variant","lineClamp","truncate","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span","__staticSelector"]),{classes:E,cx:k}=r2({color:a,lineClamp:f,truncate:u,inline:v,inherit:y,underline:w,strikethrough:b,italic:m,weight:i,transform:l,align:s,gradient:d},{unstyled:_,name:$||"Text",variant:c,size:o});return S.createElement(ie,o2({ref:t,className:k(E.root,{[E.gradient]:c==="gradient"},n),component:P?"span":"div"},O))});G1.displayName="@mantine/core/Text";const yn=G1,Q1=g.createContext({zIndex:1e3,fixed:!1,layout:"default"}),a2=Q1.Provider;function s2(){return g.useContext(Q1)}function X1(e,t){if(!e)return[];const r=Object.keys(e).filter(n=>n!=="base").map(n=>[z({size:n,sizes:t.breakpoints,units:"em"}),e[n]]);return r.sort((n,o)=>qt(n[0])-qt(o[0])),r}var c2=Object.defineProperty,u2=Object.defineProperties,f2=Object.getOwnPropertyDescriptors,dv=Object.getOwnPropertySymbols,d2=Object.prototype.hasOwnProperty,p2=Object.prototype.propertyIsEnumerable,pv=(e,t,r)=>t in e?c2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jc=(e,t)=>{for(var r in t||(t={}))d2.call(t,r)&&pv(e,r,t[r]);if(dv)for(var r of dv(t))p2.call(t,r)&&pv(e,r,t[r]);return e},mv=(e,t)=>u2(e,f2(t)),m2=q((e,{height:t,fixed:r,position:n,zIndex:o,borderPosition:i,layout:l})=>{const a=typeof t=="object"&&t!==null?X1(t,e).reduce((s,[c,f])=>(s[`@media (min-width: ${cr(c)})`]={height:x(f),minHeight:x(f)},s),{}):null;return{root:mv(jc(mv(jc(jc({},e.fn.fontStyles()),n),{zIndex:o,left:l==="alt"?"var(--mantine-navbar-width, 0)":0,right:l==="alt"?"var(--mantine-aside-width, 0)":0,height:typeof t=="object"?x(t==null?void 0:t.base)||"100%":x(t),maxHeight:typeof t=="object"?x(t==null?void 0:t.base)||"100%":x(t),position:r?"fixed":"static",boxSizing:"border-box",backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white}),a),{borderBottom:i==="bottom"?`${x(1)} solid ${e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[2]}`:void 0,borderTop:i==="top"?`${x(1)} solid ${e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[2]}`:void 0})}}),v2=Object.defineProperty,Ea=Object.getOwnPropertySymbols,Z1=Object.prototype.hasOwnProperty,J1=Object.prototype.propertyIsEnumerable,vv=(e,t,r)=>t in e?v2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gv=(e,t)=>{for(var r in t||(t={}))Z1.call(t,r)&&vv(e,r,t[r]);if(Ea)for(var r of Ea(t))J1.call(t,r)&&vv(e,r,t[r]);return e},g2=(e,t)=>{var r={};for(var n in e)Z1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ea)for(var n of Ea(e))t.indexOf(n)<0&&J1.call(e,n)&&(r[n]=e[n]);return r};const q1=g.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:i,styles:l,height:a,fixed:s=!1,withBorder:c=!0,position:f,zIndex:u,section:d,unstyled:v,__staticSelector:y,variant:w}=r,b=g2(r,["children","className","classNames","styles","height","fixed","withBorder","position","zIndex","section","unstyled","__staticSelector","variant"]);const m=s2(),p=u||m.zIndex||_o("app"),{classes:h,cx:_,theme:P}=m2({height:a,fixed:m.fixed||s,position:f,zIndex:typeof p=="number"&&m.layout==="default"?p+1:p,layout:m.layout,borderPosition:c?d==="header"?"bottom":"top":"none"},{name:y,classNames:i,styles:l,unstyled:v,variant:w}),$=typeof a=="object"&&a!==null?X1(a,P).reduce((O,[E,k])=>(O[`@media (min-width: ${cr(E)})`]={[`--mantine-${d}-height`]:x(k)},O),{}):null;return S.createElement(ie,gv({component:d==="header"?"header":"footer",className:_(h.root,o),ref:t},b),n,S.createElement(Dx,{styles:()=>({":root":gv({[`--mantine-${d}-height`]:typeof a=="object"?x(a==null?void 0:a.base)||"100%":x(a)},$)})}))});q1.displayName="@mantine/core/VerticalSection";var y2=Object.defineProperty,h2=Object.defineProperties,w2=Object.getOwnPropertyDescriptors,yv=Object.getOwnPropertySymbols,_2=Object.prototype.hasOwnProperty,S2=Object.prototype.propertyIsEnumerable,hv=(e,t,r)=>t in e?y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b2=(e,t)=>{for(var r in t||(t={}))_2.call(t,r)&&hv(e,r,t[r]);if(yv)for(var r of yv(t))S2.call(t,r)&&hv(e,r,t[r]);return e},P2=(e,t)=>h2(e,w2(t));const O2={fixed:!1,position:{top:0,left:0,right:0}},ew=g.forwardRef((e,t)=>{const r=K("Header",O2,e);return S.createElement(q1,P2(b2({section:"header",__staticSelector:"Header"},r),{ref:t}))});ew.displayName="@mantine/core/Header";var $2=Object.defineProperty,wv=Object.getOwnPropertySymbols,x2=Object.prototype.hasOwnProperty,E2=Object.prototype.propertyIsEnumerable,_v=(e,t,r)=>t in e?$2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tw=(e,t)=>{for(var r in t||(t={}))x2.call(t,r)&&_v(e,r,t[r]);if(wv)for(var r of wv(t))E2.call(t,r)&&_v(e,r,t[r]);return e};function C2(e,t){const r=z({size:e.padding,sizes:t.spacing}),n=e.navbarOffsetBreakpoint?z({size:e.navbarOffsetBreakpoint,sizes:t.breakpoints}):null,o=e.asideOffsetBreakpoint?z({size:e.asideOffsetBreakpoint,sizes:t.breakpoints}):null;if(!e.fixed)return{padding:r};const i=qt(n),l=qt(o);return tw({minHeight:"100vh",paddingTop:`calc(var(--mantine-header-height, 0px) + ${r})`,paddingBottom:`calc(var(--mantine-footer-height, 0px) + ${r})`,paddingLeft:`calc(var(--mantine-navbar-width, 0px) + ${r})`,paddingRight:`calc(var(--mantine-aside-width, 0px) + ${r})`},i===l?{[`@media (max-width: ${cr(i-1)})`]:{paddingLeft:r,paddingRight:r}}:{[`@media (max-width: ${cr(i-1)})`]:{paddingLeft:r},[`@media (max-width: ${cr(l-1)})`]:{paddingRight:r}})}var k2=q((e,t)=>({root:{boxSizing:"border-box"},body:{display:"flex",boxSizing:"border-box"},main:tw({flex:1,width:"100vw",boxSizing:"border-box"},C2(t,e))})),N2=Object.defineProperty,Ca=Object.getOwnPropertySymbols,rw=Object.prototype.hasOwnProperty,nw=Object.prototype.propertyIsEnumerable,Sv=(e,t,r)=>t in e?N2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R2=(e,t)=>{for(var r in t||(t={}))rw.call(t,r)&&Sv(e,r,t[r]);if(Ca)for(var r of Ca(t))nw.call(t,r)&&Sv(e,r,t[r]);return e},D2=(e,t)=>{var r={};for(var n in e)rw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ca)for(var n of Ca(e))t.indexOf(n)<0&&nw.call(e,n)&&(r[n]=e[n]);return r};const I2={fixed:!0,padding:"md"},ow=g.forwardRef((e,t)=>{const r=K("AppShell",I2,e),{children:n,navbar:o,header:i,footer:l,aside:a,fixed:s,zIndex:c,padding:f,navbarOffsetBreakpoint:u,asideOffsetBreakpoint:d,className:v,styles:y,classNames:w,unstyled:b,hidden:m,layout:p,variant:h}=r,_=D2(r,["children","navbar","header","footer","aside","fixed","zIndex","padding","navbarOffsetBreakpoint","asideOffsetBreakpoint","className","styles","classNames","unstyled","hidden","layout","variant"]),{classes:P,cx:$}=k2({padding:f,fixed:s,navbarOffsetBreakpoint:u,asideOffsetBreakpoint:d},{styles:y,classNames:w,unstyled:b,name:"AppShell",variant:h});return m?S.createElement(S.Fragment,null,n):S.createElement(a2,{value:{fixed:s,zIndex:c,layout:p}},S.createElement(ie,R2({className:$(P.root,v),ref:t},_),i,S.createElement("div",{className:P.body},o,S.createElement("main",{className:P.main},n),a),l))});ow.displayName="@mantine/core/AppShell";const sl={xs:x(1),sm:x(2),md:x(3),lg:x(4),xl:x(5)};function cl(e,t){const r=e.fn.variant({variant:"outline",color:t}).border;return typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?r:t===void 0?e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]:t}var j2=q((e,{color:t},{size:r,variant:n})=>({root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:x(1),borderTop:`${z({size:r,sizes:sl})} ${n} ${cl(e,t)}`,marginRight:e.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${z({size:r,sizes:sl})} ${n} ${cl(e,t)}`,marginLeft:e.spacing.xs}},labelDefaultStyles:{color:t==="dark"?e.colors.dark[1]:e.fn.themeColor(t,e.colorScheme==="dark"?5:e.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:x(z({size:r,sizes:sl})),borderTopColor:cl(e,t),borderTopStyle:n,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:x(z({size:r,sizes:sl})),borderLeftColor:cl(e,t),borderLeftStyle:n}})),T2=Object.defineProperty,z2=Object.defineProperties,A2=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,iw=Object.prototype.hasOwnProperty,lw=Object.prototype.propertyIsEnumerable,bv=(e,t,r)=>t in e?T2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pv=(e,t)=>{for(var r in t||(t={}))iw.call(t,r)&&bv(e,r,t[r]);if(ka)for(var r of ka(t))lw.call(t,r)&&bv(e,r,t[r]);return e},L2=(e,t)=>z2(e,A2(t)),F2=(e,t)=>{var r={};for(var n in e)iw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ka)for(var n of ka(e))t.indexOf(n)<0&&lw.call(e,n)&&(r[n]=e[n]);return r};const M2={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},Ku=g.forwardRef((e,t)=>{const r=K("Divider",M2,e),{className:n,color:o,orientation:i,size:l,label:a,labelPosition:s,labelProps:c,variant:f,styles:u,classNames:d,unstyled:v}=r,y=F2(r,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:w,cx:b}=j2({color:o},{classNames:d,styles:u,unstyled:v,name:"Divider",variant:f,size:l}),m=i==="vertical",p=i==="horizontal",h=!!a&&p,_=!(c!=null&&c.color);return S.createElement(ie,Pv({ref:t,className:b(w.root,{[w.vertical]:m,[w.horizontal]:p,[w.withLabel]:h},n),role:"separator"},y),h&&S.createElement(yn,L2(Pv({},c),{size:(c==null?void 0:c.size)||"xs",mt:x(2),className:b(w.label,w[s],{[w.labelDefaultStyles]:_})}),a))});Ku.displayName="@mantine/core/Divider";var V2=Object.defineProperty,H2=Object.defineProperties,B2=Object.getOwnPropertyDescriptors,Ov=Object.getOwnPropertySymbols,W2=Object.prototype.hasOwnProperty,U2=Object.prototype.propertyIsEnumerable,$v=(e,t,r)=>t in e?V2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xv=(e,t)=>{for(var r in t||(t={}))W2.call(t,r)&&$v(e,r,t[r]);if(Ov)for(var r of Ov(t))U2.call(t,r)&&$v(e,r,t[r]);return e},K2=(e,t)=>H2(e,B2(t)),Y2=q((e,t,{size:r})=>({item:K2(xv({},e.fn.fontStyles()),{boxSizing:"border-box",wordBreak:"break-all",textAlign:"left",width:"100%",padding:`calc(${z({size:r,sizes:e.spacing})} / 1.5) ${z({size:r,sizes:e.spacing})}`,cursor:"pointer",fontSize:z({size:r,sizes:e.fontSizes}),color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,borderRadius:e.fn.radius(),"&[data-hovered]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[1]},"&[data-selected]":xv({backgroundColor:e.fn.variant({variant:"filled"}).background,color:e.fn.variant({variant:"filled"}).color},e.fn.hover({backgroundColor:e.fn.variant({variant:"filled"}).hover})),"&[data-disabled]":{cursor:"default",color:e.colors.dark[2]}}),nothingFound:{boxSizing:"border-box",color:e.colors.gray[6],paddingTop:`calc(${z({size:r,sizes:e.spacing})} / 2)`,paddingBottom:`calc(${z({size:r,sizes:e.spacing})} / 2)`,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`calc(${z({size:r,sizes:e.spacing})} / 1.5) ${z({size:r,sizes:e.spacing})}`},separatorLabel:{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}})),G2=Object.defineProperty,Ev=Object.getOwnPropertySymbols,Q2=Object.prototype.hasOwnProperty,X2=Object.prototype.propertyIsEnumerable,Cv=(e,t,r)=>t in e?G2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z2=(e,t)=>{for(var r in t||(t={}))Q2.call(t,r)&&Cv(e,r,t[r]);if(Ev)for(var r of Ev(t))X2.call(t,r)&&Cv(e,r,t[r]);return e};function aw({data:e,hovered:t,classNames:r,styles:n,isItemSelected:o,uuid:i,__staticSelector:l,onItemHover:a,onItemSelect:s,itemsRefs:c,itemComponent:f,size:u,nothingFound:d,creatable:v,createLabel:y,unstyled:w,variant:b}){const{classes:m}=Y2(null,{classNames:r,styles:n,unstyled:w,name:l,variant:b,size:u}),p=[],h=[];let _=null;const P=(O,E)=>{const k=typeof o=="function"?o(O.value):!1;return S.createElement(f,Z2({key:O.value,className:m.item,"data-disabled":O.disabled||void 0,"data-hovered":!O.disabled&&t===E||void 0,"data-selected":!O.disabled&&k||void 0,selected:k,onMouseEnter:()=>a(E),id:`${i}-${E}`,role:"option",tabIndex:-1,"aria-selected":t===E,ref:C=>{c&&c.current&&(c.current[O.value]=C)},onMouseDown:O.disabled?null:C=>{C.preventDefault(),s(O)},disabled:O.disabled,variant:b},O))};let $=null;if(e.forEach((O,E)=>{O.creatable?_=E:O.group?($!==O.group&&($=O.group,h.push(S.createElement("div",{className:m.separator,key:`__mantine-divider-${E}`},S.createElement(Ku,{classNames:{label:m.separatorLabel},label:O.group})))),h.push(P(O,E))):p.push(P(O,E))}),v){const O=e[_];p.push(S.createElement("div",{key:pd(),className:m.item,"data-hovered":t===_||void 0,onMouseEnter:()=>a(_),onMouseDown:E=>{E.preventDefault(),s(O)},tabIndex:-1,ref:E=>{c&&c.current&&(c.current[O.value]=E)}},y))}return h.length>0&&p.length>0&&p.unshift(S.createElement("div",{className:m.separator,key:"empty-group-separator"},S.createElement(Ku,null))),h.length>0||p.length>0?S.createElement(S.Fragment,null,h,p):S.createElement(yn,{size:u,unstyled:w,className:m.nothingFound},d)}aw.displayName="@mantine/core/SelectItems";var J2=Object.defineProperty,Na=Object.getOwnPropertySymbols,sw=Object.prototype.hasOwnProperty,cw=Object.prototype.propertyIsEnumerable,kv=(e,t,r)=>t in e?J2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q2=(e,t)=>{for(var r in t||(t={}))sw.call(t,r)&&kv(e,r,t[r]);if(Na)for(var r of Na(t))cw.call(t,r)&&kv(e,r,t[r]);return e},ek=(e,t)=>{var r={};for(var n in e)sw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Na)for(var n of Na(e))t.indexOf(n)<0&&cw.call(e,n)&&(r[n]=e[n]);return r};const uw=g.forwardRef((e,t)=>{var r=e,{label:n,value:o}=r,i=ek(r,["label","value"]);return S.createElement("div",q2({ref:t},i),n||o)});uw.displayName="@mantine/core/DefaultItem";function tk(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function fw(...e){return t=>e.forEach(r=>tk(r,t))}function bn(...e){return g.useCallback(fw(...e),e)}const dw=g.forwardRef((e,t)=>{const{children:r,...n}=e,o=g.Children.toArray(r),i=o.find(nk);if(i){const l=i.props.children,a=o.map(s=>s===i?g.Children.count(l)>1?g.Children.only(null):g.isValidElement(l)?l.props.children:null:s);return g.createElement(Yu,pe({},n,{ref:t}),g.isValidElement(l)?g.cloneElement(l,void 0,a):null)}return g.createElement(Yu,pe({},n,{ref:t}),r)});dw.displayName="Slot";const Yu=g.forwardRef((e,t)=>{const{children:r,...n}=e;return g.isValidElement(r)?g.cloneElement(r,{...ok(n,r.props),ref:fw(t,r.ref)}):g.Children.count(r)>1?g.Children.only(null):null});Yu.displayName="SlotClone";const rk=({children:e})=>g.createElement(g.Fragment,null,e);function nk(e){return g.isValidElement(e)&&e.type===rk}function ok(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{i(...a),o(...a)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const ik=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],Ti=ik.reduce((e,t)=>{const r=g.forwardRef((n,o)=>{const{asChild:i,...l}=n,a=i?dw:t;return g.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.createElement(a,pe({},l,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Gu=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function lk(e,t){return g.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const zi=e=>{const{present:t,children:r}=e,n=ak(t),o=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=bn(n.ref,o.ref);return typeof r=="function"||n.isPresent?g.cloneElement(o,{ref:i}):null};zi.displayName="Presence";function ak(e){const[t,r]=g.useState(),n=g.useRef({}),o=g.useRef(e),i=g.useRef("none"),l=e?"mounted":"unmounted",[a,s]=lk(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=ul(n.current);i.current=a==="mounted"?c:"none"},[a]),Gu(()=>{const c=n.current,f=o.current;if(f!==e){const d=i.current,v=ul(c);e?s("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(f&&d!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Gu(()=>{if(t){const c=u=>{const v=ul(n.current).includes(u.animationName);u.target===t&&v&&zs.flushSync(()=>s("ANIMATION_END"))},f=u=>{u.target===t&&(i.current=ul(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function ul(e){return(e==null?void 0:e.animationName)||"none"}function sk(e,t=[]){let r=[];function n(i,l){const a=g.createContext(l),s=r.length;r=[...r,l];function c(u){const{scope:d,children:v,...y}=u,w=(d==null?void 0:d[e][s])||a,b=g.useMemo(()=>y,Object.values(y));return g.createElement(w.Provider,{value:b},v)}function f(u,d){const v=(d==null?void 0:d[e][s])||a,y=g.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${u}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,f]}const o=()=>{const i=r.map(l=>g.createContext(l));return function(a){const s=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return o.scopeName=e,[n,ck(o,...t)]}function ck(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=n.reduce((a,{useScope:s,scopeName:c})=>{const u=s(i)[`__scope${c}`];return{...a,...u}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}function nn(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}const uk=g.createContext(void 0);function fk(e){const t=g.useContext(uk);return e||t||"ltr"}function dk(e,[t,r]){return Math.min(r,Math.max(t,e))}function fn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function pk(e,t){return g.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const pw="ScrollArea",[mw,vj]=sk(pw),[mk,$t]=mw(pw),vk=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...l}=e,[a,s]=g.useState(null),[c,f]=g.useState(null),[u,d]=g.useState(null),[v,y]=g.useState(null),[w,b]=g.useState(null),[m,p]=g.useState(0),[h,_]=g.useState(0),[P,$]=g.useState(!1),[O,E]=g.useState(!1),k=bn(t,F=>s(F)),C=fk(o);return g.createElement(mk,{scope:r,type:n,dir:C,scrollHideDelay:i,scrollArea:a,viewport:c,onViewportChange:f,content:u,onContentChange:d,scrollbarX:v,onScrollbarXChange:y,scrollbarXEnabled:P,onScrollbarXEnabledChange:$,scrollbarY:w,onScrollbarYChange:b,scrollbarYEnabled:O,onScrollbarYEnabledChange:E,onCornerWidthChange:p,onCornerHeightChange:_},g.createElement(Ti.div,pe({dir:C},l,{ref:k,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":h+"px",...e.style}})))}),gk="ScrollAreaViewport",yk=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,...o}=e,i=$t(gk,r),l=g.useRef(null),a=bn(t,l,i.onViewportChange);return g.createElement(g.Fragment,null,g.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),g.createElement(Ti.div,pe({"data-radix-scroll-area-viewport":""},o,{ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style}}),g.createElement("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),yr="ScrollAreaScrollbar",hk=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=$t(yr,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=o,a=e.orientation==="horizontal";return g.useEffect(()=>(a?i(!0):l(!0),()=>{a?i(!1):l(!1)}),[a,i,l]),o.type==="hover"?g.createElement(wk,pe({},n,{ref:t,forceMount:r})):o.type==="scroll"?g.createElement(_k,pe({},n,{ref:t,forceMount:r})):o.type==="auto"?g.createElement(vw,pe({},n,{ref:t,forceMount:r})):o.type==="always"?g.createElement(yd,pe({},n,{ref:t})):null}),wk=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=$t(yr,e.__scopeScrollArea),[i,l]=g.useState(!1);return g.useEffect(()=>{const a=o.scrollArea;let s=0;if(a){const c=()=>{window.clearTimeout(s),l(!0)},f=()=>{s=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",f),()=>{window.clearTimeout(s),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),g.createElement(zi,{present:r||i},g.createElement(vw,pe({"data-state":i?"visible":"hidden"},n,{ref:t})))}),_k=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=$t(yr,e.__scopeScrollArea),i=e.orientation==="horizontal",l=Zs(()=>s("SCROLL_END"),100),[a,s]=pk("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return g.useEffect(()=>{if(a==="idle"){const c=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[a,o.scrollHideDelay,s]),g.useEffect(()=>{const c=o.viewport,f=i?"scrollLeft":"scrollTop";if(c){let u=c[f];const d=()=>{const v=c[f];u!==v&&(s("SCROLL"),l()),u=v};return c.addEventListener("scroll",d),()=>c.removeEventListener("scroll",d)}},[o.viewport,i,s,l]),g.createElement(zi,{present:r||a!=="hidden"},g.createElement(yd,pe({"data-state":a==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:fn(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:fn(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),vw=g.forwardRef((e,t)=>{const r=$t(yr,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,l]=g.useState(!1),a=e.orientation==="horizontal",s=Zs(()=>{if(r.viewport){const c=r.viewport.offsetWidth{const{orientation:r="vertical",...n}=e,o=$t(yr,e.__scopeScrollArea),i=g.useRef(null),l=g.useRef(0),[a,s]=g.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=ww(a.viewport,a.content),f={...n,sizes:a,onSizesChange:s,hasThumb:c>0&&c<1,onThumbChange:d=>i.current=d,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:d=>l.current=d};function u(d,v){return Ck(d,l.current,a,v)}return r==="horizontal"?g.createElement(Sk,pe({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollLeft,v=Nv(d,a,o.dir);i.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=u(d,o.dir))}})):r==="vertical"?g.createElement(bk,pe({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollTop,v=Nv(d,a);i.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=u(d))}})):null}),Sk=g.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=$t(yr,e.__scopeScrollArea),[l,a]=g.useState(),s=g.useRef(null),c=bn(t,s,i.onScrollbarXChange);return g.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),g.createElement(yw,pe({"data-orientation":"horizontal"},o,{ref:c,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Xs(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,u)=>{if(i.viewport){const d=i.viewport.scrollLeft+f.deltaX;e.onWheelScroll(d),Sw(d,u)&&f.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Ra(l.paddingLeft),paddingEnd:Ra(l.paddingRight)}})}}))}),bk=g.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=$t(yr,e.__scopeScrollArea),[l,a]=g.useState(),s=g.useRef(null),c=bn(t,s,i.onScrollbarYChange);return g.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),g.createElement(yw,pe({"data-orientation":"vertical"},o,{ref:c,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Xs(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,u)=>{if(i.viewport){const d=i.viewport.scrollTop+f.deltaY;e.onWheelScroll(d),Sw(d,u)&&f.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Ra(l.paddingTop),paddingEnd:Ra(l.paddingBottom)}})}}))}),[Pk,gw]=mw(yr),yw=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:c,onWheelScroll:f,onResize:u,...d}=e,v=$t(yr,r),[y,w]=g.useState(null),b=bn(t,k=>w(k)),m=g.useRef(null),p=g.useRef(""),h=v.viewport,_=n.content-n.viewport,P=nn(f),$=nn(s),O=Zs(u,10);function E(k){if(m.current){const C=k.clientX-m.current.left,F=k.clientY-m.current.top;c({x:C,y:F})}}return g.useEffect(()=>{const k=C=>{const F=C.target;(y==null?void 0:y.contains(F))&&P(C,_)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[h,y,_,P]),g.useEffect($,[n,$]),co(y,O),co(v.content,O),g.createElement(Pk,{scope:r,scrollbar:y,hasThumb:o,onThumbChange:nn(i),onThumbPointerUp:nn(l),onThumbPositionChange:$,onThumbPointerDown:nn(a)},g.createElement(Ti.div,pe({},d,{ref:b,style:{position:"absolute",...d.style},onPointerDown:fn(e.onPointerDown,k=>{k.button===0&&(k.target.setPointerCapture(k.pointerId),m.current=y.getBoundingClientRect(),p.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E(k))}),onPointerMove:fn(e.onPointerMove,E),onPointerUp:fn(e.onPointerUp,k=>{const C=k.target;C.hasPointerCapture(k.pointerId)&&C.releasePointerCapture(k.pointerId),document.body.style.webkitUserSelect=p.current,m.current=null})})))}),Qu="ScrollAreaThumb",Ok=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=gw(Qu,e.__scopeScrollArea);return g.createElement(zi,{present:r||o.hasThumb},g.createElement($k,pe({ref:t},n)))}),$k=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,i=$t(Qu,r),l=gw(Qu,r),{onThumbPositionChange:a}=l,s=bn(t,u=>l.onThumbChange(u)),c=g.useRef(),f=Zs(()=>{c.current&&(c.current(),c.current=void 0)},100);return g.useEffect(()=>{const u=i.viewport;if(u){const d=()=>{if(f(),!c.current){const v=kk(u,a);c.current=v,a()}};return a(),u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[i.viewport,f,a]),g.createElement(Ti.div,pe({"data-state":l.hasThumb?"visible":"hidden"},o,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:fn(e.onPointerDownCapture,u=>{const v=u.target.getBoundingClientRect(),y=u.clientX-v.left,w=u.clientY-v.top;l.onThumbPointerDown({x:y,y:w})}),onPointerUp:fn(e.onPointerUp,l.onThumbPointerUp)}))}),hw="ScrollAreaCorner",xk=g.forwardRef((e,t)=>{const r=$t(hw,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?g.createElement(Ek,pe({},e,{ref:t})):null}),Ek=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=$t(hw,r),[i,l]=g.useState(0),[a,s]=g.useState(0),c=!!(i&&a);return co(o.scrollbarX,()=>{var f;const u=((f=o.scrollbarX)===null||f===void 0?void 0:f.offsetHeight)||0;o.onCornerHeightChange(u),s(u)}),co(o.scrollbarY,()=>{var f;const u=((f=o.scrollbarY)===null||f===void 0?void 0:f.offsetWidth)||0;o.onCornerWidthChange(u),l(u)}),c?g.createElement(Ti.div,pe({},n,{ref:t,style:{width:i,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Ra(e){return e?parseInt(e,10):0}function ww(e,t){const r=e/t;return isNaN(r)?0:r}function Xs(e){const t=ww(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Ck(e,t,r,n="ltr"){const o=Xs(r),i=o/2,l=t||i,a=o-l,s=r.scrollbar.paddingStart+l,c=r.scrollbar.size-r.scrollbar.paddingEnd-a,f=r.content-r.viewport,u=n==="ltr"?[0,f]:[f*-1,0];return _w([s,c],u)(e)}function Nv(e,t,r="ltr"){const n=Xs(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,a=i-n,s=r==="ltr"?[0,l]:[l*-1,0],c=dk(e,s);return _w([0,l],[0,a])(c)}function _w(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Sw(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},l=r.left!==i.left,a=r.top!==i.top;(l||a)&&t(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Zs(e,t){const r=nn(e),n=g.useRef(0);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),g.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function co(e,t){const r=nn(t);Gu(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}const Nk=vk,Rk=yk,Rv=hk,Dv=Ok,Dk=xk;var Ik=q((e,{scrollbarSize:t,offsetScrollbars:r,scrollbarHovered:n,hidden:o})=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:r?x(t):void 0,paddingBottom:r?x(t):void 0},scrollbar:{display:o?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:`calc(${x(t)} / 5)`,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.colors.gray[0],[`& .${Br("thumb")}`]:{backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.5):e.fn.rgba(e.black,.5)}},'&[data-orientation="vertical"]':{width:x(t)},'&[data-orientation="horizontal"]':{flexDirection:"column",height:x(t)},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:Br("thumb"),flex:1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.4):e.fn.rgba(e.black,.4),borderRadius:x(t),position:"relative",transition:"background-color 150ms ease",display:o?"none":void 0,overflow:"hidden","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:x(44),minHeight:x(44)}},corner:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],transition:"opacity 150ms ease",opacity:n?1:0,display:o?"none":void 0}})),jk=Object.defineProperty,Tk=Object.defineProperties,zk=Object.getOwnPropertyDescriptors,Da=Object.getOwnPropertySymbols,bw=Object.prototype.hasOwnProperty,Pw=Object.prototype.propertyIsEnumerable,Iv=(e,t,r)=>t in e?jk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xu=(e,t)=>{for(var r in t||(t={}))bw.call(t,r)&&Iv(e,r,t[r]);if(Da)for(var r of Da(t))Pw.call(t,r)&&Iv(e,r,t[r]);return e},Ow=(e,t)=>Tk(e,zk(t)),$w=(e,t)=>{var r={};for(var n in e)bw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Da)for(var n of Da(e))t.indexOf(n)<0&&Pw.call(e,n)&&(r[n]=e[n]);return r};const xw={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},Js=g.forwardRef((e,t)=>{const r=K("ScrollArea",xw,e),{children:n,className:o,classNames:i,styles:l,scrollbarSize:a,scrollHideDelay:s,type:c,dir:f,offsetScrollbars:u,viewportRef:d,onScrollPositionChange:v,unstyled:y,variant:w,viewportProps:b}=r,m=$w(r,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","variant","viewportProps"]),[p,h]=g.useState(!1),_=gt(),{classes:P,cx:$}=Ik({scrollbarSize:a,offsetScrollbars:u,scrollbarHovered:p,hidden:c==="never"},{name:"ScrollArea",classNames:i,styles:l,unstyled:y,variant:w});return S.createElement(Nk,{type:c==="never"?"always":c,scrollHideDelay:s,dir:f||_.dir,ref:t,asChild:!0},S.createElement(ie,Xu({className:$(P.root,o)},m),S.createElement(Rk,Ow(Xu({},b),{className:P.viewport,ref:d,onScroll:typeof v=="function"?({currentTarget:O})=>v({x:O.scrollLeft,y:O.scrollTop}):void 0}),n),S.createElement(Rv,{orientation:"horizontal",className:P.scrollbar,forceMount:!0,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1)},S.createElement(Dv,{className:P.thumb})),S.createElement(Rv,{orientation:"vertical",className:P.scrollbar,forceMount:!0,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1)},S.createElement(Dv,{className:P.thumb})),S.createElement(Dk,{className:P.corner})))}),Ew=g.forwardRef((e,t)=>{const r=K("ScrollAreaAutosize",xw,e),{children:n,classNames:o,styles:i,scrollbarSize:l,scrollHideDelay:a,type:s,dir:c,offsetScrollbars:f,viewportRef:u,onScrollPositionChange:d,unstyled:v,sx:y,variant:w,viewportProps:b}=r,m=$w(r,["children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx","variant","viewportProps"]);return S.createElement(ie,Ow(Xu({},m),{ref:t,sx:[{display:"flex"},...td(y)]}),S.createElement(ie,{sx:{display:"flex",flexDirection:"column",flex:1}},S.createElement(Js,{classNames:o,styles:i,scrollHideDelay:a,scrollbarSize:l,type:s,dir:c,offsetScrollbars:f,viewportRef:u,onScrollPositionChange:d,unstyled:v,variant:w,viewportProps:b},n)))});Ew.displayName="@mantine/core/ScrollAreaAutosize";Js.displayName="@mantine/core/ScrollArea";Js.Autosize=Ew;const Ak=Js;var Lk=Object.defineProperty,Fk=Object.defineProperties,Mk=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,Cw=Object.prototype.hasOwnProperty,kw=Object.prototype.propertyIsEnumerable,jv=(e,t,r)=>t in e?Lk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tv=(e,t)=>{for(var r in t||(t={}))Cw.call(t,r)&&jv(e,r,t[r]);if(Ia)for(var r of Ia(t))kw.call(t,r)&&jv(e,r,t[r]);return e},Vk=(e,t)=>Fk(e,Mk(t)),Hk=(e,t)=>{var r={};for(var n in e)Cw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ia)for(var n of Ia(e))t.indexOf(n)<0&&kw.call(e,n)&&(r[n]=e[n]);return r};const hd=g.forwardRef((e,t)=>{var r=e,{style:n}=r,o=Hk(r,["style"]);return S.createElement(Ak,Vk(Tv({},o),{style:Tv({width:"100%"},n),viewportProps:{tabIndex:-1},viewportRef:t}),o.children)});hd.displayName="@mantine/core/SelectScrollArea";var Bk=q(()=>({dropdown:{},itemsWrapper:{padding:x(4),display:"flex",width:"100%",boxSizing:"border-box"}}));const At=Math.min,Ue=Math.max,ja=Math.round,fl=Math.floor,Yr=e=>({x:e,y:e}),Wk={left:"right",right:"left",bottom:"top",top:"bottom"},Uk={start:"end",end:"start"};function Zu(e,t,r){return Ue(e,At(t,r))}function mr(e,t){return typeof e=="function"?e(t):e}function Lt(e){return e.split("-")[0]}function So(e){return e.split("-")[1]}function wd(e){return e==="x"?"y":"x"}function _d(e){return e==="y"?"height":"width"}function Pn(e){return["top","bottom"].includes(Lt(e))?"y":"x"}function Sd(e){return wd(Pn(e))}function Kk(e,t,r){r===void 0&&(r=!1);const n=So(e),o=Sd(e),i=_d(o);let l=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ta(l)),[l,Ta(l)]}function Yk(e){const t=Ta(e);return[Ju(e),t,Ju(t)]}function Ju(e){return e.replace(/start|end/g,t=>Uk[t])}function Gk(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:l;default:return[]}}function Qk(e,t,r,n){const o=So(e);let i=Gk(Lt(e),r==="start",n);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Ju)))),i}function Ta(e){return e.replace(/left|right|bottom|top/g,t=>Wk[t])}function Xk(e){return{top:0,right:0,bottom:0,left:0,...e}}function bd(e){return typeof e!="number"?Xk(e):{top:e,right:e,bottom:e,left:e}}function uo(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zv(e,t,r){let{reference:n,floating:o}=e;const i=Pn(t),l=Sd(t),a=_d(l),s=Lt(t),c=i==="y",f=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let v;switch(s){case"top":v={x:f,y:n.y-o.height};break;case"bottom":v={x:f,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:u};break;case"left":v={x:n.x-o.width,y:u};break;default:v={x:n.x,y:n.y}}switch(So(t)){case"start":v[l]-=d*(r&&c?-1:1);break;case"end":v[l]+=d*(r&&c?-1:1);break}return v}const Zk=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=i.filter(Boolean),s=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=zv(c,n,s),d=n,v={},y=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:f=0}=mr(e,t)||{};if(c==null)return{};const u=bd(f),d={x:r,y:n},v=Sd(o),y=_d(v),w=await l.getDimensions(c),b=v==="y",m=b?"top":"left",p=b?"bottom":"right",h=b?"clientHeight":"clientWidth",_=i.reference[y]+i.reference[v]-d[v]-i.floating[y],P=d[v]-i.reference[v],$=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let O=$?$[h]:0;(!O||!await(l.isElement==null?void 0:l.isElement($)))&&(O=a.floating[h]||i.floating[y]);const E=_/2-P/2,k=O/2-w[y]/2-1,C=At(u[m],k),F=At(u[p],k),A=C,W=O-w[y]-F,L=O/2-w[y]/2+E,H=Zu(A,L,W),G=!s.arrow&&So(o)!=null&&L!=H&&i.reference[y]/2-(LA<=0)){var k,C;const A=(((k=i.flip)==null?void 0:k.index)||0)+1,W=P[A];if(W)return{data:{index:A,overflows:E},reset:{placement:W}};let L=(C=E.filter(H=>H.overflows[0]<=0).sort((H,G)=>H.overflows[1]-G.overflows[1])[0])==null?void 0:C.placement;if(!L)switch(v){case"bestFit":{var F;const H=(F=E.map(G=>[G.placement,G.overflows.filter(ne=>ne>0).reduce((ne,R)=>ne+R,0)]).sort((G,ne)=>G[1]-ne[1])[0])==null?void 0:F[0];H&&(L=H);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Nw(e){const t=At(...e.map(i=>i.left)),r=At(...e.map(i=>i.top)),n=Ue(...e.map(i=>i.right)),o=Ue(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function qk(e){const t=e.slice().sort((o,i)=>o.y-i.y),r=[];let n=null;for(let o=0;on.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>uo(Nw(o)))}const e5=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:i,strategy:l}=t,{padding:a=2,x:s,y:c}=mr(e,t),f=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]),u=qk(f),d=uo(Nw(f)),v=bd(a);function y(){if(u.length===2&&u[0].left>u[1].right&&s!=null&&c!=null)return u.find(b=>s>b.left-v.left&&sb.top-v.top&&c=2){if(Pn(r)==="y"){const C=u[0],F=u[u.length-1],A=Lt(r)==="top",W=C.top,L=F.bottom,H=A?C.left:F.left,G=A?C.right:F.right,ne=G-H,R=L-W;return{top:W,bottom:L,left:H,right:G,width:ne,height:R,x:H,y:W}}const b=Lt(r)==="left",m=Ue(...u.map(C=>C.right)),p=At(...u.map(C=>C.left)),h=u.filter(C=>b?C.left===p:C.right===m),_=h[0].top,P=h[h.length-1].bottom,$=p,O=m,E=O-$,k=P-_;return{top:_,bottom:P,left:$,right:O,width:E,height:k,x:$,y:_}}return d}const w=await i.getElementRects({reference:{getBoundingClientRect:y},floating:n.floating,strategy:l});return o.reference.x!==w.reference.x||o.reference.y!==w.reference.y||o.reference.width!==w.reference.width||o.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}};async function t5(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),l=Lt(r),a=So(r),s=Pn(r)==="y",c=["left","top"].includes(l)?-1:1,f=i&&s?-1:1,u=mr(t,e);let{mainAxis:d,crossAxis:v,alignmentAxis:y}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof y=="number"&&(v=a==="end"?y*-1:y),s?{x:v*f,y:d*c}:{x:d*c,y:v*f}}const r5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await t5(t,e);return{x:r+o.x,y:n+o.y,data:o}}}},n5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:b=>{let{x:m,y:p}=b;return{x:m,y:p}}},...s}=mr(e,t),c={x:r,y:n},f=await Pd(t,s),u=Pn(Lt(o)),d=wd(u);let v=c[d],y=c[u];if(i){const b=d==="y"?"top":"left",m=d==="y"?"bottom":"right",p=v+f[b],h=v-f[m];v=Zu(p,v,h)}if(l){const b=u==="y"?"top":"left",m=u==="y"?"bottom":"right",p=y+f[b],h=y-f[m];y=Zu(p,y,h)}const w=a.fn({...t,[d]:v,[u]:y});return{...w,data:{x:w.x-r,y:w.y-n}}}}},o5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=mr(e,t),f={x:r,y:n},u=Pn(o),d=wd(u);let v=f[d],y=f[u];const w=mr(a,t),b=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(s){const h=d==="y"?"height":"width",_=i.reference[d]-i.floating[h]+b.mainAxis,P=i.reference[d]+i.reference[h]-b.mainAxis;v<_?v=_:v>P&&(v=P)}if(c){var m,p;const h=d==="y"?"width":"height",_=["top","left"].includes(Lt(o)),P=i.reference[u]-i.floating[h]+(_&&((m=l.offset)==null?void 0:m[u])||0)+(_?0:b.crossAxis),$=i.reference[u]+i.reference[h]+(_?0:((p=l.offset)==null?void 0:p[u])||0)-(_?b.crossAxis:0);y$&&(y=$)}return{[d]:v,[u]:y}}}},i5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:l=()=>{},...a}=mr(e,t),s=await Pd(t,a),c=Lt(r),f=So(r),u=Pn(r)==="y",{width:d,height:v}=n.floating;let y,w;c==="top"||c==="bottom"?(y=c,w=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(w=c,y=f==="end"?"top":"bottom");const b=v-s[y],m=d-s[w],p=!t.middlewareData.shift;let h=b,_=m;if(u){const $=d-s.left-s.right;_=f||p?At(m,$):$}else{const $=v-s.top-s.bottom;h=f||p?At(b,$):$}if(p&&!f){const $=Ue(s.left,0),O=Ue(s.right,0),E=Ue(s.top,0),k=Ue(s.bottom,0);u?_=d-2*($!==0||O!==0?$+O:Ue(s.left,s.right)):h=v-2*(E!==0||k!==0?E+k:Ue(s.top,s.bottom))}await l({...t,availableWidth:_,availableHeight:h});const P=await o.getDimensions(i.floating);return d!==P.width||v!==P.height?{reset:{rects:!0}}:{}}}};function Gr(e){return Rw(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hr(e){var t;return(t=(Rw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rw(e){return e instanceof Node||e instanceof ft(e).Node}function vr(e){return e instanceof Element||e instanceof ft(e).Element}function er(e){return e instanceof HTMLElement||e instanceof ft(e).HTMLElement}function Lv(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function Ai(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ot(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function l5(e){return["table","td","th"].includes(Gr(e))}function Od(e){const t=$d(),r=Ot(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function a5(e){let t=fo(e);for(;er(t)&&!qs(t);){if(Od(t))return t;t=fo(t)}return null}function $d(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qs(e){return["html","body","#document"].includes(Gr(e))}function Ot(e){return ft(e).getComputedStyle(e)}function ec(e){return vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fo(e){if(Gr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lv(e)&&e.host||hr(e);return Lv(t)?t.host:t}function Dw(e){const t=fo(e);return qs(t)?e.ownerDocument?e.ownerDocument.body:e.body:er(t)&&Ai(t)?t:Dw(t)}function Oi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Dw(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),l=ft(o);return i?t.concat(l,l.visualViewport||[],Ai(o)?o:[],l.frameElement&&r?Oi(l.frameElement):[]):t.concat(o,Oi(o,[],r))}function Iw(e){const t=Ot(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=er(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,a=ja(r)!==i||ja(n)!==l;return a&&(r=i,n=l),{width:r,height:n,$:a}}function xd(e){return vr(e)?e:e.contextElement}function Jn(e){const t=xd(e);if(!er(t))return Yr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Iw(t);let l=(i?ja(r.width):r.width)/n,a=(i?ja(r.height):r.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const s5=Yr(0);function jw(e){const t=ft(e);return!$d()||!t.visualViewport?s5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function c5(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ft(e)?!1:t}function hn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=xd(e);let l=Yr(1);t&&(n?vr(n)&&(l=Jn(n)):l=Jn(e));const a=c5(i,r,n)?jw(i):Yr(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,f=o.width/l.x,u=o.height/l.y;if(i){const d=ft(i),v=n&&vr(n)?ft(n):n;let y=d.frameElement;for(;y&&n&&v!==d;){const w=Jn(y),b=y.getBoundingClientRect(),m=Ot(y),p=b.left+(y.clientLeft+parseFloat(m.paddingLeft))*w.x,h=b.top+(y.clientTop+parseFloat(m.paddingTop))*w.y;s*=w.x,c*=w.y,f*=w.x,u*=w.y,s+=p,c+=h,y=ft(y).frameElement}}return uo({width:f,height:u,x:s,y:c})}function u5(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=er(r),i=hr(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0},a=Yr(1);const s=Yr(0);if((o||!o&&n!=="fixed")&&((Gr(r)!=="body"||Ai(i))&&(l=ec(r)),er(r))){const c=hn(r);a=Jn(r),s.x=c.x+r.clientLeft,s.y=c.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+s.x,y:t.y*a.y-l.scrollTop*a.y+s.y}}function f5(e){return Array.from(e.getClientRects())}function Tw(e){return hn(hr(e)).left+ec(e).scrollLeft}function d5(e){const t=hr(e),r=ec(e),n=e.ownerDocument.body,o=Ue(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Ue(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+Tw(e);const a=-r.scrollTop;return Ot(n).direction==="rtl"&&(l+=Ue(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:l,y:a}}function p5(e,t){const r=ft(e),n=hr(e),o=r.visualViewport;let i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const c=$d();(!c||c&&t==="fixed")&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}function m5(e,t){const r=hn(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=er(e)?Jn(e):Yr(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,s=o*i.x,c=n*i.y;return{width:l,height:a,x:s,y:c}}function Fv(e,t,r){let n;if(t==="viewport")n=p5(e,r);else if(t==="document")n=d5(hr(e));else if(vr(t))n=m5(t,r);else{const o=jw(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return uo(n)}function zw(e,t){const r=fo(e);return r===t||!vr(r)||qs(r)?!1:Ot(r).position==="fixed"||zw(r,t)}function v5(e,t){const r=t.get(e);if(r)return r;let n=Oi(e,[],!1).filter(a=>vr(a)&&Gr(a)!=="body"),o=null;const i=Ot(e).position==="fixed";let l=i?fo(e):e;for(;vr(l)&&!qs(l);){const a=Ot(l),s=Od(l);!s&&a.position==="fixed"&&(o=null),(i?!s&&!o:!s&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ai(l)&&!s&&zw(e,l))?n=n.filter(f=>f!==l):o=a,l=fo(l)}return t.set(e,n),n}function g5(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const l=[...r==="clippingAncestors"?v5(t,this._c):[].concat(r),n],a=l[0],s=l.reduce((c,f)=>{const u=Fv(t,f,o);return c.top=Ue(u.top,c.top),c.right=At(u.right,c.right),c.bottom=At(u.bottom,c.bottom),c.left=Ue(u.left,c.left),c},Fv(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function y5(e){return Iw(e)}function h5(e,t,r){const n=er(t),o=hr(t),i=r==="fixed",l=hn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=Yr(0);if(n||!n&&!i)if((Gr(t)!=="body"||Ai(o))&&(a=ec(t)),n){const c=hn(t,!0,i,t);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=Tw(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function Mv(e,t){return!er(e)||Ot(e).position==="fixed"?null:t?t(e):e.offsetParent}function Aw(e,t){const r=ft(e);if(!er(e))return r;let n=Mv(e,t);for(;n&&l5(n)&&Ot(n).position==="static";)n=Mv(n,t);return n&&(Gr(n)==="html"||Gr(n)==="body"&&Ot(n).position==="static"&&!Od(n))?r:n||a5(e)||r}const w5=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||Aw,i=this.getDimensions;return{reference:h5(t,await o(r),n),floating:{x:0,y:0,...await i(r)}}};function _5(e){return Ot(e).direction==="rtl"}const S5={convertOffsetParentRelativeRectToViewportRelativeRect:u5,getDocumentElement:hr,getClippingRect:g5,getOffsetParent:Aw,getElementRects:w5,getClientRects:f5,getDimensions:y5,getScale:Jn,isElement:vr,isRTL:_5};function b5(e,t){let r=null,n;const o=hr(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}function l(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),i();const{left:c,top:f,width:u,height:d}=e.getBoundingClientRect();if(a||t(),!u||!d)return;const v=fl(f),y=fl(o.clientWidth-(c+u)),w=fl(o.clientHeight-(f+d)),b=fl(c),p={rootMargin:-v+"px "+-y+"px "+-w+"px "+-b+"px",threshold:Ue(0,At(1,s))||1};let h=!0;function _(P){const $=P[0].intersectionRatio;if($!==s){if(!h)return l();$?l(!1,$):n=setTimeout(()=>{l(!1,1e-7)},100)}h=!1}try{r=new IntersectionObserver(_,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(_,p)}r.observe(e)}return l(!0),i}function P5(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,c=xd(e),f=o||i?[...c?Oi(c):[],...Oi(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",r,{passive:!0}),i&&m.addEventListener("resize",r)});const u=c&&a?b5(c,r):null;let d=-1,v=null;l&&(v=new ResizeObserver(m=>{let[p]=m;p&&p.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{v&&v.observe(t)})),r()}),c&&!s&&v.observe(c),v.observe(t));let y,w=s?hn(e):null;s&&b();function b(){const m=hn(e);w&&(m.x!==w.x||m.y!==w.y||m.width!==w.width||m.height!==w.height)&&r(),w=m,y=requestAnimationFrame(b)}return r(),()=>{f.forEach(m=>{o&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),u&&u(),v&&v.disconnect(),v=null,s&&cancelAnimationFrame(y)}}const O5=(e,t,r)=>{const n=new Map,o={platform:S5,...r},i={...o.platform,_c:n};return Zk(e,t,{...o,platform:i})},$5=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?Av({element:t.current,padding:r}).fn(o):{}:t?Av({element:t,padding:r}).fn(o):{}}}};var Ml=typeof document<"u"?g.useLayoutEffect:g.useEffect;function za(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!za(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!za(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Vv(e){const t=g.useRef(e);return Ml(()=>{t.current=e}),t}function x5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:l}=e,[a,s]=g.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[c,f]=g.useState(n);za(c,n)||f(n);const u=g.useRef(null),d=g.useRef(null),v=g.useRef(a),y=Vv(i),w=Vv(o),[b,m]=g.useState(null),[p,h]=g.useState(null),_=g.useCallback(C=>{u.current!==C&&(u.current=C,m(C))},[]),P=g.useCallback(C=>{d.current!==C&&(d.current=C,h(C))},[]),$=g.useCallback(()=>{if(!u.current||!d.current)return;const C={placement:t,strategy:r,middleware:c};w.current&&(C.platform=w.current),O5(u.current,d.current,C).then(F=>{const A={...F,isPositioned:!0};O.current&&!za(v.current,A)&&(v.current=A,zs.flushSync(()=>{s(A)}))})},[c,t,r,w]);Ml(()=>{l===!1&&v.current.isPositioned&&(v.current.isPositioned=!1,s(C=>({...C,isPositioned:!1})))},[l]);const O=g.useRef(!1);Ml(()=>(O.current=!0,()=>{O.current=!1}),[]),Ml(()=>{if(b&&p){if(y.current)return y.current(b,p,$);$()}},[b,p,$,y]);const E=g.useMemo(()=>({reference:u,floating:d,setReference:_,setFloating:P}),[_,P]),k=g.useMemo(()=>({reference:b,floating:p}),[b,p]);return g.useMemo(()=>({...a,update:$,refs:E,elements:k,reference:_,floating:P}),[a,$,E,k,_,P])}var E5=typeof document<"u"?g.useLayoutEffect:g.useEffect;function C5(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const k5=g.createContext(null),N5=()=>g.useContext(k5);function R5(e){return(e==null?void 0:e.ownerDocument)||document}function D5(e){return R5(e).defaultView||window}function dl(e){return e?e instanceof D5(e).Element:!1}const I5=Wc.useInsertionEffect,j5=I5||(e=>e());function T5(e){const t=g.useRef(()=>{});return j5(()=>{t.current=e}),g.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;oC5())[0],[c,f]=g.useState(null),u=g.useCallback(m=>{const p=dl(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;o.refs.setReference(p)},[o.refs]),d=g.useCallback(m=>{(dl(m)||m===null)&&(l.current=m,f(m)),(dl(o.refs.reference.current)||o.refs.reference.current===null||m!==null&&!dl(m))&&o.refs.setReference(m)},[o.refs]),v=g.useMemo(()=>({...o.refs,setReference:d,setPositionReference:u,domReference:l}),[o.refs,d,u]),y=g.useMemo(()=>({...o.elements,domReference:c}),[o.elements,c]),w=T5(r),b=g.useMemo(()=>({...o,refs:v,elements:y,dataRef:a,nodeId:n,events:s,open:t,onOpenChange:w}),[o,n,s,t,w,v,y]);return E5(()=>{const m=i==null?void 0:i.nodesRef.current.find(p=>p.id===n);m&&(m.context=b)}),g.useMemo(()=>({...o,context:b,refs:v,reference:d,positionReference:u}),[o,v,b,d,u])}function A5({opened:e,floating:t,position:r,positionDependencies:n}){const[o,i]=g.useState(0);g.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return P5(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,o,r]),Kr(()=>{t.update()},n),Kr(()=>{i(l=>l+1)},[e])}function L5(e){const t=[r5(e.offset)];return e.middlewares.shift&&t.push(n5({limiter:o5()})),e.middlewares.flip&&t.push(Jk()),e.middlewares.inline&&t.push(e5()),t.push($5({element:e.arrowRef,padding:e.arrowOffset})),t}function F5(e){const[t,r]=so({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=()=>{var l;(l=e.onClose)==null||l.call(e),r(!1)},o=()=>{var l,a;t?((l=e.onClose)==null||l.call(e),r(!1)):((a=e.onOpen)==null||a.call(e),r(!0))},i=z5({placement:e.position,middleware:[...L5(e),...e.width==="target"?[i5({apply({rects:l}){var a,s;Object.assign((s=(a=i.refs.floating.current)==null?void 0:a.style)!=null?s:{},{width:`${l.reference.width}px`})}})]:[]]});return A5({opened:e.opened,position:e.position,positionDependencies:e.positionDependencies,floating:i}),Kr(()=>{var l;(l=e.onPositionChange)==null||l.call(e,i.placement)},[i.placement]),Kr(()=>{var l,a;e.opened?(a=e.onOpen)==null||a.call(e):(l=e.onClose)==null||l.call(e)},[e.opened]),{floating:i,controlled:typeof e.opened=="boolean",opened:t,onClose:n,onToggle:o}}const Lw={context:"Popover component was not found in the tree",children:"Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"},[M5,Fw]=ed(Lw.context);var V5=Object.defineProperty,H5=Object.defineProperties,B5=Object.getOwnPropertyDescriptors,Aa=Object.getOwnPropertySymbols,Mw=Object.prototype.hasOwnProperty,Vw=Object.prototype.propertyIsEnumerable,Hv=(e,t,r)=>t in e?V5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pl=(e,t)=>{for(var r in t||(t={}))Mw.call(t,r)&&Hv(e,r,t[r]);if(Aa)for(var r of Aa(t))Vw.call(t,r)&&Hv(e,r,t[r]);return e},W5=(e,t)=>H5(e,B5(t)),U5=(e,t)=>{var r={};for(var n in e)Mw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Aa)for(var n of Aa(e))t.indexOf(n)<0&&Vw.call(e,n)&&(r[n]=e[n]);return r};const K5={refProp:"ref",popupType:"dialog",shouldOverrideDefaultTargetId:!0},Hw=g.forwardRef((e,t)=>{const r=K("PopoverTarget",K5,e),{children:n,refProp:o,popupType:i,shouldOverrideDefaultTargetId:l}=r,a=U5(r,["children","refProp","popupType","shouldOverrideDefaultTargetId"]);if(!rd(n))throw new Error(Lw.children);const s=a,c=Fw(),f=md(c.reference,n.ref,t),u=c.withRoles?{"aria-haspopup":i,"aria-expanded":c.opened,"aria-controls":c.getDropdownId(),id:l?c.getTargetId():n.props.id}:{};return g.cloneElement(n,pl(W5(pl(pl(pl({},s),u),c.targetProps),{className:T0(c.targetProps.className,s.className,n.props.className),[o]:f}),c.controlled?null:{onClick:c.onToggle}))});Hw.displayName="@mantine/core/PopoverTarget";var Y5=q((e,{radius:t,shadow:r})=>({dropdown:{position:"absolute",backgroundColor:e.white,background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`${x(1)} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,padding:`${e.spacing.sm} ${e.spacing.md}`,boxShadow:e.shadows[r]||r||"none",borderRadius:e.fn.radius(t),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`${x(1)} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,zIndex:1}})),G5=Object.defineProperty,Bv=Object.getOwnPropertySymbols,Q5=Object.prototype.hasOwnProperty,X5=Object.prototype.propertyIsEnumerable,Wv=(e,t,r)=>t in e?G5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kn=(e,t)=>{for(var r in t||(t={}))Q5.call(t,r)&&Wv(e,r,t[r]);if(Bv)for(var r of Bv(t))X5.call(t,r)&&Wv(e,r,t[r]);return e};const Uv={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Z5({transition:e,state:t,duration:r,timingFunction:n}){const o={transitionDuration:`${r}ms`,transitionTimingFunction:n};return typeof e=="string"?e in il?kn(kn(kn({transitionProperty:il[e].transitionProperty},o),il[e].common),il[e][Uv[t]]):null:kn(kn(kn({transitionProperty:e.transitionProperty},o),e.common),e[Uv[t]])}function J5({duration:e,exitDuration:t,timingFunction:r,mounted:n,onEnter:o,onExit:i,onEntered:l,onExited:a}){const s=gt(),c=d1(),f=s.respectReducedMotion?c:!1,[u,d]=g.useState(f?0:e),[v,y]=g.useState(n?"entered":"exited"),w=g.useRef(-1),b=m=>{const p=m?o:i,h=m?l:a;y(m?"pre-entering":"pre-exiting"),window.clearTimeout(w.current);const _=f?0:m?e:t;if(d(_),_===0)typeof p=="function"&&p(),typeof h=="function"&&h(),y(m?"entered":"exited");else{const P=window.setTimeout(()=>{typeof p=="function"&&p(),y(m?"entering":"exiting")},10);w.current=window.setTimeout(()=>{window.clearTimeout(P),typeof h=="function"&&h(),y(m?"entered":"exited")},_)}};return Kr(()=>{b(n)},[n]),g.useEffect(()=>()=>window.clearTimeout(w.current),[]),{transitionDuration:u,transitionStatus:v,transitionTimingFunction:r||s.transitionTimingFunction}}function Ed({keepMounted:e,transition:t,duration:r=250,exitDuration:n=r,mounted:o,children:i,timingFunction:l,onExit:a,onEntered:s,onEnter:c,onExited:f}){const{transitionDuration:u,transitionStatus:d,transitionTimingFunction:v}=J5({mounted:o,exitDuration:n,duration:r,timingFunction:l,onExit:a,onEntered:s,onEnter:c,onExited:f});return u===0?o?S.createElement(S.Fragment,null,i({})):e?i({display:"none"}):null:d==="exited"?e?i({display:"none"}):null:S.createElement(S.Fragment,null,i(Z5({transition:t,duration:u,state:d,timingFunction:v})))}Ed.displayName="@mantine/core/Transition";function Bw({children:e,active:t=!0,refProp:r="ref"}){const n=Qx(t),o=md(n,e==null?void 0:e.ref);return rd(e)?g.cloneElement(e,{[r]:o}):e}Bw.displayName="@mantine/core/FocusTrap";var q5=Object.defineProperty,eN=Object.defineProperties,tN=Object.getOwnPropertyDescriptors,Kv=Object.getOwnPropertySymbols,rN=Object.prototype.hasOwnProperty,nN=Object.prototype.propertyIsEnumerable,Yv=(e,t,r)=>t in e?q5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xr=(e,t)=>{for(var r in t||(t={}))rN.call(t,r)&&Yv(e,r,t[r]);if(Kv)for(var r of Kv(t))nN.call(t,r)&&Yv(e,r,t[r]);return e},ml=(e,t)=>eN(e,tN(t));function Gv(e,t,r,n){return e==="center"||n==="center"?{top:t}:e==="end"?{bottom:r}:e==="start"?{top:r}:{}}function Qv(e,t,r,n,o){return e==="center"||n==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:r}:e==="start"?{[o==="ltr"?"left":"right"]:r}:{}}const oN={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function iN({position:e,arrowSize:t,arrowOffset:r,arrowRadius:n,arrowPosition:o,arrowX:i,arrowY:l,dir:a}){const[s,c="center"]=e.split("-"),f={width:x(t),height:x(t),transform:"rotate(45deg)",position:"absolute",[oN[s]]:x(n)},u=x(-t/2);return s==="left"?ml(xr(xr({},f),Gv(c,l,r,o)),{right:u,borderLeftColor:"transparent",borderBottomColor:"transparent"}):s==="right"?ml(xr(xr({},f),Gv(c,l,r,o)),{left:u,borderRightColor:"transparent",borderTopColor:"transparent"}):s==="top"?ml(xr(xr({},f),Qv(c,i,r,o,a)),{bottom:u,borderTopColor:"transparent",borderLeftColor:"transparent"}):s==="bottom"?ml(xr(xr({},f),Qv(c,i,r,o,a)),{top:u,borderBottomColor:"transparent",borderRightColor:"transparent"}):{}}var lN=Object.defineProperty,aN=Object.defineProperties,sN=Object.getOwnPropertyDescriptors,La=Object.getOwnPropertySymbols,Ww=Object.prototype.hasOwnProperty,Uw=Object.prototype.propertyIsEnumerable,Xv=(e,t,r)=>t in e?lN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cN=(e,t)=>{for(var r in t||(t={}))Ww.call(t,r)&&Xv(e,r,t[r]);if(La)for(var r of La(t))Uw.call(t,r)&&Xv(e,r,t[r]);return e},uN=(e,t)=>aN(e,sN(t)),fN=(e,t)=>{var r={};for(var n in e)Ww.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&La)for(var n of La(e))t.indexOf(n)<0&&Uw.call(e,n)&&(r[n]=e[n]);return r};const Kw=g.forwardRef((e,t)=>{var r=e,{position:n,arrowSize:o,arrowOffset:i,arrowRadius:l,arrowPosition:a,visible:s,arrowX:c,arrowY:f}=r,u=fN(r,["position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]);const d=gt();return s?S.createElement("div",uN(cN({},u),{ref:t,style:iN({position:n,arrowSize:o,arrowOffset:i,arrowRadius:l,arrowPosition:a,dir:d.dir,arrowX:c,arrowY:f})})):null});Kw.displayName="@mantine/core/FloatingArrow";var dN=Object.defineProperty,pN=Object.defineProperties,mN=Object.getOwnPropertyDescriptors,Fa=Object.getOwnPropertySymbols,Yw=Object.prototype.hasOwnProperty,Gw=Object.prototype.propertyIsEnumerable,Zv=(e,t,r)=>t in e?dN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nn=(e,t)=>{for(var r in t||(t={}))Yw.call(t,r)&&Zv(e,r,t[r]);if(Fa)for(var r of Fa(t))Gw.call(t,r)&&Zv(e,r,t[r]);return e},vl=(e,t)=>pN(e,mN(t)),vN=(e,t)=>{var r={};for(var n in e)Yw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fa)for(var n of Fa(e))t.indexOf(n)<0&&Gw.call(e,n)&&(r[n]=e[n]);return r};const gN={};function Qw(e){var t;const r=K("PopoverDropdown",gN,e),{style:n,className:o,children:i,onKeyDownCapture:l}=r,a=vN(r,["style","className","children","onKeyDownCapture"]),s=Fw(),{classes:c,cx:f}=Y5({radius:s.radius,shadow:s.shadow},{name:s.__staticSelector,classNames:s.classNames,styles:s.styles,unstyled:s.unstyled,variant:s.variant}),u=Hx({opened:s.opened,shouldReturnFocus:s.returnFocus}),d=s.withRoles?{"aria-labelledby":s.getTargetId(),id:s.getDropdownId(),role:"dialog"}:{};return s.disabled?null:S.createElement(gd,vl(Nn({},s.portalProps),{withinPortal:s.withinPortal}),S.createElement(Ed,vl(Nn({mounted:s.opened},s.transitionProps),{transition:s.transitionProps.transition||"fade",duration:(t=s.transitionProps.duration)!=null?t:150,keepMounted:s.keepMounted,exitDuration:typeof s.transitionProps.exitDuration=="number"?s.transitionProps.exitDuration:s.transitionProps.duration}),v=>{var y,w;return S.createElement(Bw,{active:s.trapFocus},S.createElement(ie,Nn(vl(Nn({},d),{tabIndex:-1,ref:s.floating,style:vl(Nn(Nn({},n),v),{zIndex:s.zIndex,top:(y=s.y)!=null?y:0,left:(w=s.x)!=null?w:0,width:s.width==="target"?void 0:x(s.width)}),className:f(c.dropdown,o),onKeyDownCapture:hO(s.onClose,{active:s.closeOnEscape,onTrigger:u,onKeyDown:l}),"data-position":s.placement}),a),i,S.createElement(Kw,{ref:s.arrowRef,arrowX:s.arrowX,arrowY:s.arrowY,visible:s.withArrow,position:s.placement,arrowSize:s.arrowSize,arrowRadius:s.arrowRadius,arrowOffset:s.arrowOffset,arrowPosition:s.arrowPosition,className:c.arrow})))}))}Qw.displayName="@mantine/core/PopoverDropdown";function yN(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[r,n]=t.split("-"),o=r==="right"?"left":"right";return n===void 0?o:`${o}-${n}`}return t}var Jv=Object.getOwnPropertySymbols,hN=Object.prototype.hasOwnProperty,wN=Object.prototype.propertyIsEnumerable,_N=(e,t)=>{var r={};for(var n in e)hN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Jv)for(var n of Jv(e))t.indexOf(n)<0&&wN.call(e,n)&&(r[n]=e[n]);return r};const SN={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:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:_o("popover"),__staticSelector:"Popover",width:"max-content"};function bo(e){var t,r,n,o,i,l;const a=g.useRef(null),s=K("Popover",SN,e),{children:c,position:f,offset:u,onPositionChange:d,positionDependencies:v,opened:y,transitionProps:w,width:b,middlewares:m,withArrow:p,arrowSize:h,arrowOffset:_,arrowRadius:P,arrowPosition:$,unstyled:O,classNames:E,styles:k,closeOnClickOutside:C,withinPortal:F,portalProps:A,closeOnEscape:W,clickOutsideEvents:L,trapFocus:H,onClose:G,onOpen:ne,onChange:R,zIndex:j,radius:V,shadow:Y,id:Q,defaultOpened:Ye,__staticSelector:ce,withRoles:Le,disabled:me,returnFocus:Fe,variant:xt,keepMounted:Ft}=s,tr=_N(s,["children","position","offset","onPositionChange","positionDependencies","opened","transitionProps","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","portalProps","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","__staticSelector","withRoles","disabled","returnFocus","variant","keepMounted"]),[wr,Mt]=g.useState(null),[yt,xn]=g.useState(null),_r=Sn(Q),En=gt(),ue=F5({middlewares:m,width:b,position:yN(En.dir,f),offset:typeof u=="number"?u+(p?h/2:0):u,arrowRef:a,arrowOffset:_,onPositionChange:d,positionDependencies:v,opened:y,defaultOpened:Ye,onChange:R,onOpen:ne,onClose:G});Lx(()=>ue.opened&&C&&ue.onClose(),L,[wr,yt]);const Jr=g.useCallback(fe=>{Mt(fe),ue.floating.reference(fe)},[ue.floating.reference]),Sr=g.useCallback(fe=>{xn(fe),ue.floating.floating(fe)},[ue.floating.floating]);return S.createElement(M5,{value:{returnFocus:Fe,disabled:me,controlled:ue.controlled,reference:Jr,floating:Sr,x:ue.floating.x,y:ue.floating.y,arrowX:(n=(r=(t=ue.floating)==null?void 0:t.middlewareData)==null?void 0:r.arrow)==null?void 0:n.x,arrowY:(l=(i=(o=ue.floating)==null?void 0:o.middlewareData)==null?void 0:i.arrow)==null?void 0:l.y,opened:ue.opened,arrowRef:a,transitionProps:w,width:b,withArrow:p,arrowSize:h,arrowOffset:_,arrowRadius:P,arrowPosition:$,placement:ue.floating.placement,trapFocus:H,withinPortal:F,portalProps:A,zIndex:j,radius:V,shadow:Y,closeOnEscape:W,onClose:ue.onClose,onToggle:ue.onToggle,getTargetId:()=>`${_r}-target`,getDropdownId:()=>`${_r}-dropdown`,withRoles:Le,targetProps:tr,__staticSelector:ce,classNames:E,styles:k,unstyled:O,variant:xt,keepMounted:Ft}},c)}bo.Target=Hw;bo.Dropdown=Qw;bo.displayName="@mantine/core/Popover";var bN=Object.defineProperty,Ma=Object.getOwnPropertySymbols,Xw=Object.prototype.hasOwnProperty,Zw=Object.prototype.propertyIsEnumerable,qv=(e,t,r)=>t in e?bN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,PN=(e,t)=>{for(var r in t||(t={}))Xw.call(t,r)&&qv(e,r,t[r]);if(Ma)for(var r of Ma(t))Zw.call(t,r)&&qv(e,r,t[r]);return e},ON=(e,t)=>{var r={};for(var n in e)Xw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ma)for(var n of Ma(e))t.indexOf(n)<0&&Zw.call(e,n)&&(r[n]=e[n]);return r};function $N(e){var t=e,{children:r,component:n="div",maxHeight:o=220,direction:i="column",id:l,innerRef:a,__staticSelector:s,styles:c,classNames:f,unstyled:u}=t,d=ON(t,["children","component","maxHeight","direction","id","innerRef","__staticSelector","styles","classNames","unstyled"]);const{classes:v}=Bk(null,{name:s,styles:c,classNames:f,unstyled:u});return S.createElement(bo.Dropdown,PN({p:0,onMouseDown:y=>y.preventDefault()},d),S.createElement("div",{style:{maxHeight:x(o),display:"flex"}},S.createElement(ie,{component:n||"div",id:`${l}-items`,"aria-labelledby":`${l}-label`,role:"listbox",onMouseDown:y=>y.preventDefault(),style:{flex:1,overflowY:n!==hd?"auto":void 0},"data-combobox-popover":!0,tabIndex:-1,ref:a},S.createElement("div",{className:v.itemsWrapper,style:{flexDirection:i}},r))))}function ni({opened:e,transitionProps:t={transition:"fade",duration:0},shadow:r,withinPortal:n,portalProps:o,children:i,__staticSelector:l,onDirectionChange:a,switchDirectionOnFlip:s,zIndex:c,dropdownPosition:f,positionDependencies:u=[],classNames:d,styles:v,unstyled:y,readOnly:w,variant:b}){return S.createElement(bo,{unstyled:y,classNames:d,styles:v,width:"target",withRoles:!1,opened:e,middlewares:{flip:f==="flip",shift:!1},position:f==="flip"?"bottom":f,positionDependencies:u,zIndex:c,__staticSelector:l,withinPortal:n,portalProps:o,transitionProps:t,shadow:r,disabled:w,onPositionChange:m=>s&&(a==null?void 0:a(m==="top"?"column-reverse":"column")),variant:b},i)}ni.Target=bo.Target;ni.Dropdown=$N;var xN=Object.defineProperty,EN=Object.defineProperties,CN=Object.getOwnPropertyDescriptors,Va=Object.getOwnPropertySymbols,Jw=Object.prototype.hasOwnProperty,qw=Object.prototype.propertyIsEnumerable,eg=(e,t,r)=>t in e?xN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gl=(e,t)=>{for(var r in t||(t={}))Jw.call(t,r)&&eg(e,r,t[r]);if(Va)for(var r of Va(t))qw.call(t,r)&&eg(e,r,t[r]);return e},kN=(e,t)=>EN(e,CN(t)),NN=(e,t)=>{var r={};for(var n in e)Jw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Va)for(var n of Va(e))t.indexOf(n)<0&&qw.call(e,n)&&(r[n]=e[n]);return r};function RN(e,t,r){const n=K(e,t,r),{label:o,description:i,error:l,required:a,classNames:s,styles:c,className:f,unstyled:u,__staticSelector:d,sx:v,errorProps:y,labelProps:w,descriptionProps:b,wrapperProps:m,id:p,size:h,style:_,inputContainer:P,inputWrapperOrder:$,withAsterisk:O,variant:E}=n,k=NN(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder","withAsterisk","variant"]),C=Sn(p),{systemStyles:F,rest:A}=ji(k),W=gl({label:o,description:i,error:l,required:a,classNames:s,className:f,__staticSelector:d,sx:v,errorProps:y,labelProps:w,descriptionProps:b,unstyled:u,styles:c,id:C,size:h,style:_,inputContainer:P,inputWrapperOrder:$,withAsterisk:O,variant:E},m);return kN(gl({},A),{classNames:s,styles:c,unstyled:u,wrapperProps:gl(gl({},W),F),inputProps:{required:a,classNames:s,styles:c,unstyled:u,id:C,size:h,__staticSelector:d,error:l,variant:E}})}var DN=q((e,t,{size:r})=>({label:{display:"inline-block",fontSize:z({size:r,sizes:e.fontSizes}),fontWeight:500,color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:e.fn.variant({variant:"filled",color:"red"}).background}})),IN=Object.defineProperty,Ha=Object.getOwnPropertySymbols,e_=Object.prototype.hasOwnProperty,t_=Object.prototype.propertyIsEnumerable,tg=(e,t,r)=>t in e?IN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jN=(e,t)=>{for(var r in t||(t={}))e_.call(t,r)&&tg(e,r,t[r]);if(Ha)for(var r of Ha(t))t_.call(t,r)&&tg(e,r,t[r]);return e},TN=(e,t)=>{var r={};for(var n in e)e_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ha)for(var n of Ha(e))t.indexOf(n)<0&&t_.call(e,n)&&(r[n]=e[n]);return r};const zN={labelElement:"label",size:"sm"},Cd=g.forwardRef((e,t)=>{const r=K("InputLabel",zN,e),{labelElement:n,children:o,required:i,size:l,classNames:a,styles:s,unstyled:c,className:f,htmlFor:u,__staticSelector:d,variant:v,onMouseDown:y}=r,w=TN(r,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector","variant","onMouseDown"]),{classes:b,cx:m}=DN(null,{name:["InputWrapper",d],classNames:a,styles:s,unstyled:c,variant:v,size:l});return S.createElement(ie,jN({component:n,ref:t,className:m(b.label,f),htmlFor:n==="label"?u:void 0,onMouseDown:p=>{y==null||y(p),!p.defaultPrevented&&p.detail>1&&p.preventDefault()}},w),o,i&&S.createElement("span",{className:b.required,"aria-hidden":!0}," *"))});Cd.displayName="@mantine/core/InputLabel";var AN=q((e,t,{size:r})=>({error:{wordBreak:"break-word",color:e.fn.variant({variant:"filled",color:"red"}).background,fontSize:`calc(${z({size:r,sizes:e.fontSizes})} - ${x(2)})`,lineHeight:1.2,display:"block"}})),LN=Object.defineProperty,Ba=Object.getOwnPropertySymbols,r_=Object.prototype.hasOwnProperty,n_=Object.prototype.propertyIsEnumerable,rg=(e,t,r)=>t in e?LN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,FN=(e,t)=>{for(var r in t||(t={}))r_.call(t,r)&&rg(e,r,t[r]);if(Ba)for(var r of Ba(t))n_.call(t,r)&&rg(e,r,t[r]);return e},MN=(e,t)=>{var r={};for(var n in e)r_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ba)for(var n of Ba(e))t.indexOf(n)<0&&n_.call(e,n)&&(r[n]=e[n]);return r};const VN={size:"sm"},kd=g.forwardRef((e,t)=>{const r=K("InputError",VN,e),{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s,__staticSelector:c,variant:f}=r,u=MN(r,["children","className","classNames","styles","unstyled","size","__staticSelector","variant"]),{classes:d,cx:v}=AN(null,{name:["InputWrapper",c],classNames:i,styles:l,unstyled:a,variant:f,size:s});return S.createElement(yn,FN({className:v(d.error,o),ref:t},u),n)});kd.displayName="@mantine/core/InputError";var HN=q((e,t,{size:r})=>({description:{wordBreak:"break-word",color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontSize:`calc(${z({size:r,sizes:e.fontSizes})} - ${x(2)})`,lineHeight:1.2,display:"block"}})),BN=Object.defineProperty,Wa=Object.getOwnPropertySymbols,o_=Object.prototype.hasOwnProperty,i_=Object.prototype.propertyIsEnumerable,ng=(e,t,r)=>t in e?BN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,WN=(e,t)=>{for(var r in t||(t={}))o_.call(t,r)&&ng(e,r,t[r]);if(Wa)for(var r of Wa(t))i_.call(t,r)&&ng(e,r,t[r]);return e},UN=(e,t)=>{var r={};for(var n in e)o_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wa)for(var n of Wa(e))t.indexOf(n)<0&&i_.call(e,n)&&(r[n]=e[n]);return r};const KN={size:"sm"},Nd=g.forwardRef((e,t)=>{const r=K("InputDescription",KN,e),{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s,__staticSelector:c,variant:f}=r,u=UN(r,["children","className","classNames","styles","unstyled","size","__staticSelector","variant"]),{classes:d,cx:v}=HN(null,{name:["InputWrapper",c],classNames:i,styles:l,unstyled:a,variant:f,size:s});return S.createElement(yn,WN({color:"dimmed",className:v(d.description,o),ref:t,unstyled:a},u),n)});Nd.displayName="@mantine/core/InputDescription";const l_=g.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0}),YN=l_.Provider,GN=()=>g.useContext(l_);function QN(e,{hasDescription:t,hasError:r}){const n=e.findIndex(s=>s==="input"),o=e[n-1],i=e[n+1];return{offsetBottom:t&&i==="description"||r&&i==="error",offsetTop:t&&o==="description"||r&&o==="error"}}var XN=Object.defineProperty,ZN=Object.defineProperties,JN=Object.getOwnPropertyDescriptors,og=Object.getOwnPropertySymbols,qN=Object.prototype.hasOwnProperty,e3=Object.prototype.propertyIsEnumerable,ig=(e,t,r)=>t in e?XN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,t3=(e,t)=>{for(var r in t||(t={}))qN.call(t,r)&&ig(e,r,t[r]);if(og)for(var r of og(t))e3.call(t,r)&&ig(e,r,t[r]);return e},r3=(e,t)=>ZN(e,JN(t)),n3=q(e=>({root:r3(t3({},e.fn.fontStyles()),{lineHeight:e.lineHeight})})),o3=Object.defineProperty,i3=Object.defineProperties,l3=Object.getOwnPropertyDescriptors,Ua=Object.getOwnPropertySymbols,a_=Object.prototype.hasOwnProperty,s_=Object.prototype.propertyIsEnumerable,lg=(e,t,r)=>t in e?o3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Er=(e,t)=>{for(var r in t||(t={}))a_.call(t,r)&&lg(e,r,t[r]);if(Ua)for(var r of Ua(t))s_.call(t,r)&&lg(e,r,t[r]);return e},ag=(e,t)=>i3(e,l3(t)),a3=(e,t)=>{var r={};for(var n in e)a_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ua)for(var n of Ua(e))t.indexOf(n)<0&&s_.call(e,n)&&(r[n]=e[n]);return r};const s3={labelElement:"label",size:"sm",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},c_=g.forwardRef((e,t)=>{const r=K("InputWrapper",s3,e),{className:n,label:o,children:i,required:l,id:a,error:s,description:c,labelElement:f,labelProps:u,descriptionProps:d,errorProps:v,classNames:y,styles:w,size:b,inputContainer:m,__staticSelector:p,unstyled:h,inputWrapperOrder:_,withAsterisk:P,variant:$}=r,O=a3(r,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder","withAsterisk","variant"]),{classes:E,cx:k}=n3(null,{classNames:y,styles:w,name:["InputWrapper",p],unstyled:h,variant:$,size:b}),C={classNames:y,styles:w,unstyled:h,size:b,variant:$,__staticSelector:p},F=typeof P=="boolean"?P:l,A=a?`${a}-error`:v==null?void 0:v.id,W=a?`${a}-description`:d==null?void 0:d.id,H=`${!!s&&typeof s!="boolean"?A:""} ${c?W:""}`,G=H.trim().length>0?H.trim():void 0,ne=o&&S.createElement(Cd,Er(Er({key:"label",labelElement:f,id:a?`${a}-label`:void 0,htmlFor:a,required:F},C),u),o),R=c&&S.createElement(Nd,ag(Er(Er({key:"description"},d),C),{size:(d==null?void 0:d.size)||C.size,id:(d==null?void 0:d.id)||W}),c),j=S.createElement(g.Fragment,{key:"input"},m(i)),V=typeof s!="boolean"&&s&&S.createElement(kd,ag(Er(Er({},v),C),{size:(v==null?void 0:v.size)||C.size,key:"error",id:(v==null?void 0:v.id)||A}),s),Y=_.map(Q=>{switch(Q){case"label":return ne;case"input":return j;case"description":return R;case"error":return V;default:return null}});return S.createElement(YN,{value:Er({describedBy:G},QN(_,{hasDescription:!!R,hasError:!!V}))},S.createElement(ie,Er({className:k(E.root,n),ref:t},O),Y))});c_.displayName="@mantine/core/InputWrapper";var c3=Object.defineProperty,Ka=Object.getOwnPropertySymbols,u_=Object.prototype.hasOwnProperty,f_=Object.prototype.propertyIsEnumerable,sg=(e,t,r)=>t in e?c3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u3=(e,t)=>{for(var r in t||(t={}))u_.call(t,r)&&sg(e,r,t[r]);if(Ka)for(var r of Ka(t))f_.call(t,r)&&sg(e,r,t[r]);return e},f3=(e,t)=>{var r={};for(var n in e)u_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ka)for(var n of Ka(e))t.indexOf(n)<0&&f_.call(e,n)&&(r[n]=e[n]);return r};const d3={},d_=g.forwardRef((e,t)=>{const r=K("InputPlaceholder",d3,e),{sx:n}=r,o=f3(r,["sx"]);return S.createElement(ie,u3({component:"span",sx:[i=>i.fn.placeholderStyles(),...td(n)],ref:t},o))});d_.displayName="@mantine/core/InputPlaceholder";var p3=Object.defineProperty,m3=Object.defineProperties,v3=Object.getOwnPropertyDescriptors,cg=Object.getOwnPropertySymbols,g3=Object.prototype.hasOwnProperty,y3=Object.prototype.propertyIsEnumerable,ug=(e,t,r)=>t in e?p3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yl=(e,t)=>{for(var r in t||(t={}))g3.call(t,r)&&ug(e,r,t[r]);if(cg)for(var r of cg(t))y3.call(t,r)&&ug(e,r,t[r]);return e},Tc=(e,t)=>m3(e,v3(t));const Wt={xs:x(30),sm:x(36),md:x(42),lg:x(50),xl:x(60)},h3=["default","filled","unstyled"];function w3({theme:e,variant:t}){return h3.includes(t)?t==="default"?{border:`${x(1)} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,transition:"border-color 100ms ease","&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:t==="filled"?{border:`${x(1)} solid transparent`,backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:{borderWidth:0,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:"transparent",minHeight:x(28),outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}:null}var _3=q((e,{multiline:t,radius:r,invalid:n,rightSectionWidth:o,withRightSection:i,iconWidth:l,offsetBottom:a,offsetTop:s,pointer:c},{variant:f,size:u})=>{const d=e.fn.variant({variant:"filled",color:"red"}).background,v=f==="default"||f==="filled"?{minHeight:z({size:u,sizes:Wt}),paddingLeft:`calc(${z({size:u,sizes:Wt})} / 3)`,paddingRight:i?o||z({size:u,sizes:Wt}):`calc(${z({size:u,sizes:Wt})} / 3)`,borderRadius:e.fn.radius(r)}:f==="unstyled"&&i?{paddingRight:o||z({size:u,sizes:Wt})}:null;return{wrapper:{position:"relative",marginTop:s?`calc(${e.spacing.xs} / 2)`:void 0,marginBottom:a?`calc(${e.spacing.xs} / 2)`:void 0,"&:has(input:disabled)":{"& .mantine-Input-rightSection":{display:"none"}}},input:Tc(yl(yl(Tc(yl({},e.fn.fontStyles()),{height:t?f==="unstyled"?void 0:"auto":z({size:u,sizes:Wt}),WebkitTapHighlightColor:"transparent",lineHeight:t?e.lineHeight:`calc(${z({size:u,sizes:Wt})} - ${x(2)})`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:z({size:u,sizes:e.fontSizes}),width:"100%",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:c?"pointer":void 0}),w3({theme:e,variant:f})),v),{"&:disabled, &[data-disabled]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed",pointerEvents:"none","&::placeholder":{color:e.colors.dark[2]}},"&[data-invalid]":{color:d,borderColor:d,"&::placeholder":{opacity:1,color:d}},"&[data-with-icon]":{paddingLeft:typeof l=="number"?x(l):z({size:u,sizes:Wt})},"&::placeholder":Tc(yl({},e.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:l?x(l):z({size:u,sizes:Wt}),color:n?e.colors.red[e.colorScheme==="dark"?6:7]:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:o||z({size:u,sizes:Wt})}}}),S3=Object.defineProperty,b3=Object.defineProperties,P3=Object.getOwnPropertyDescriptors,Ya=Object.getOwnPropertySymbols,p_=Object.prototype.hasOwnProperty,m_=Object.prototype.propertyIsEnumerable,fg=(e,t,r)=>t in e?S3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hl=(e,t)=>{for(var r in t||(t={}))p_.call(t,r)&&fg(e,r,t[r]);if(Ya)for(var r of Ya(t))m_.call(t,r)&&fg(e,r,t[r]);return e},dg=(e,t)=>b3(e,P3(t)),O3=(e,t)=>{var r={};for(var n in e)p_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ya)for(var n of Ya(e))t.indexOf(n)<0&&m_.call(e,n)&&(r[n]=e[n]);return r};const $3={size:"sm",variant:"default"},On=g.forwardRef((e,t)=>{const r=K("Input",$3,e),{className:n,error:o,required:i,disabled:l,variant:a,icon:s,style:c,rightSectionWidth:f,iconWidth:u,rightSection:d,rightSectionProps:v,radius:y,size:w,wrapperProps:b,classNames:m,styles:p,__staticSelector:h,multiline:_,sx:P,unstyled:$,pointer:O}=r,E=O3(r,["className","error","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:k,offsetTop:C,describedBy:F}=GN(),{classes:A,cx:W}=_3({radius:y,multiline:_,invalid:!!o,rightSectionWidth:f?x(f):void 0,iconWidth:u,withRightSection:!!d,offsetBottom:k,offsetTop:C,pointer:O},{classNames:m,styles:p,name:["Input",h],unstyled:$,variant:a,size:w}),{systemStyles:L,rest:H}=ji(E);return S.createElement(ie,hl(hl({className:W(A.wrapper,n),sx:P,style:c},L),b),s&&S.createElement("div",{className:A.icon},s),S.createElement(ie,dg(hl({component:"input"},H),{ref:t,required:i,"aria-invalid":!!o,"aria-describedby":F,disabled:l,"data-disabled":l||void 0,"data-with-icon":!!s||void 0,"data-invalid":!!o||void 0,className:A.input})),d&&S.createElement("div",dg(hl({},v),{className:A.rightSection}),d))});On.displayName="@mantine/core/Input";On.Wrapper=c_;On.Label=Cd;On.Description=Nd;On.Error=kd;On.Placeholder=d_;const po=On,v_=g.createContext(null),x3=v_.Provider,E3=()=>g.useContext(v_);var C3=Object.defineProperty,Ga=Object.getOwnPropertySymbols,g_=Object.prototype.hasOwnProperty,y_=Object.prototype.propertyIsEnumerable,pg=(e,t,r)=>t in e?C3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mg=(e,t)=>{for(var r in t||(t={}))g_.call(t,r)&&pg(e,r,t[r]);if(Ga)for(var r of Ga(t))y_.call(t,r)&&pg(e,r,t[r]);return e},k3=(e,t)=>{var r={};for(var n in e)g_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ga)for(var n of Ga(e))t.indexOf(n)<0&&y_.call(e,n)&&(r[n]=e[n]);return r};const N3={size:"sm"},h_=g.forwardRef((e,t)=>{const r=K("CheckboxGroup",N3,e),{children:n,value:o,defaultValue:i,onChange:l,size:a,wrapperProps:s}=r,c=k3(r,["children","value","defaultValue","onChange","size","wrapperProps"]),[f,u]=so({value:o,defaultValue:i,finalValue:[],onChange:l}),d=v=>{const y=v.currentTarget.value;u(f.includes(y)?f.filter(w=>w!==y):[...f,y])};return S.createElement(x3,{value:{value:f,onChange:d,size:a}},S.createElement(po.Wrapper,mg(mg({labelElement:"div",size:a,__staticSelector:"CheckboxGroup",ref:t},s),c),n))});h_.displayName="@mantine/core/CheckboxGroup";var R3=Object.defineProperty,Qa=Object.getOwnPropertySymbols,w_=Object.prototype.hasOwnProperty,__=Object.prototype.propertyIsEnumerable,vg=(e,t,r)=>t in e?R3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xa=(e,t)=>{for(var r in t||(t={}))w_.call(t,r)&&vg(e,r,t[r]);if(Qa)for(var r of Qa(t))__.call(t,r)&&vg(e,r,t[r]);return e},S_=(e,t)=>{var r={};for(var n in e)w_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qa)for(var n of Qa(e))t.indexOf(n)<0&&__.call(e,n)&&(r[n]=e[n]);return r};function D3(e){const t=e,{width:r,height:n,style:o}=t,i=S_(t,["width","height","style"]);return S.createElement("svg",Xa({viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Xa({width:r,height:n},o)},i),S.createElement("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 I3(e){var t=e,{indeterminate:r}=t,n=S_(t,["indeterminate"]);return r?S.createElement("svg",Xa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6"},n),S.createElement("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})):S.createElement(D3,Xa({},n))}var j3=Object.defineProperty,T3=Object.defineProperties,z3=Object.getOwnPropertyDescriptors,gg=Object.getOwnPropertySymbols,A3=Object.prototype.hasOwnProperty,L3=Object.prototype.propertyIsEnumerable,yg=(e,t,r)=>t in e?j3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hg=(e,t)=>{for(var r in t||(t={}))A3.call(t,r)&&yg(e,r,t[r]);if(gg)for(var r of gg(t))L3.call(t,r)&&yg(e,r,t[r]);return e},wg=(e,t)=>T3(e,z3(t));const F3={xs:x(16),sm:x(20),md:x(24),lg:x(30),xl:x(36)};var M3=q((e,{radius:t,color:r,transitionDuration:n,labelPosition:o,error:i,indeterminate:l},{size:a})=>{const s=z({size:a,sizes:F3}),c=e.fn.variant({variant:"filled",color:r});return{icon:wg(hg({},e.fn.cover()),{ref:Br("icon"),color:l?"inherit":e.white,transform:l?"none":`translateY(${x(5)}) scale(0.5)`,opacity:l?1:0,transitionProperty:"opacity, transform",transitionTimingFunction:"ease",transitionDuration:`${n}ms`,pointerEvents:"none",width:"60%",position:"absolute",zIndex:1,margin:"auto","@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":void 0}}),inner:{position:"relative",width:s,height:s,order:o==="left"?2:1},input:wg(hg({},e.fn.focusStyles()),{appearance:"none",backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`${x(1)} solid ${i?e.fn.variant({variant:"filled",color:"red"}).background:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,width:s,height:s,borderRadius:e.fn.radius(t),padding:0,display:"block",margin:0,transition:`border-color ${n}ms ease, background-color ${n}ms ease`,cursor:e.cursorType,"&:checked":{backgroundColor:c.background,borderColor:c.background,[`& + .${Br("icon")}`]:{opacity:1,color:e.white,transform:"translateY(0) scale(1)"}},"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],borderColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[3],cursor:"not-allowed",pointerEvents:"none",[`& + .${Br("icon")}`]:{color:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[5]}}})}}),V3=Object.defineProperty,H3=Object.defineProperties,B3=Object.getOwnPropertyDescriptors,_g=Object.getOwnPropertySymbols,W3=Object.prototype.hasOwnProperty,U3=Object.prototype.propertyIsEnumerable,Sg=(e,t,r)=>t in e?V3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K3=(e,t)=>{for(var r in t||(t={}))W3.call(t,r)&&Sg(e,r,t[r]);if(_g)for(var r of _g(t))U3.call(t,r)&&Sg(e,r,t[r]);return e},Y3=(e,t)=>H3(e,B3(t));const zc={xs:x(16),sm:x(20),md:x(24),lg:x(30),xl:x(36)};var G3=q((e,{labelPosition:t},{size:r})=>({root:{},body:{display:"flex","&:has(input:disabled) label":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}},labelWrapper:Y3(K3({},e.fn.fontStyles()),{display:"inline-flex",flexDirection:"column",WebkitTapHighlightColor:"transparent",fontSize:r in zc?z({size:r,sizes:e.fontSizes}):void 0,lineHeight:r in zc?z({size:r,sizes:zc}):void 0,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,cursor:e.cursorType,order:t==="left"?1:2}),description:{marginTop:`calc(${e.spacing.xs} / 2)`,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm},error:{marginTop:`calc(${e.spacing.xs} / 2)`,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm},label:{cursor:e.cursorType,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm,"&:disabled, &[data-disabled]":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}}})),Q3=Object.defineProperty,Za=Object.getOwnPropertySymbols,b_=Object.prototype.hasOwnProperty,P_=Object.prototype.propertyIsEnumerable,bg=(e,t,r)=>t in e?Q3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X3=(e,t)=>{for(var r in t||(t={}))b_.call(t,r)&&bg(e,r,t[r]);if(Za)for(var r of Za(t))P_.call(t,r)&&bg(e,r,t[r]);return e},Z3=(e,t)=>{var r={};for(var n in e)b_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Za)for(var n of Za(e))t.indexOf(n)<0&&P_.call(e,n)&&(r[n]=e[n]);return r};const Rd=g.forwardRef((e,t)=>{var r=e,{__staticSelector:n,className:o,classNames:i,styles:l,unstyled:a,children:s,label:c,description:f,id:u,disabled:d,error:v,size:y,labelPosition:w,variant:b}=r,m=Z3(r,["__staticSelector","className","classNames","styles","unstyled","children","label","description","id","disabled","error","size","labelPosition","variant"]);const{classes:p,cx:h}=G3({labelPosition:w},{name:n,styles:l,classNames:i,unstyled:a,variant:b,size:y});return S.createElement(ie,X3({className:h(p.root,o),ref:t},m),S.createElement("div",{className:h(p.body)},s,S.createElement("div",{className:p.labelWrapper},c!=null&&S.createElement("label",{className:p.label,"data-disabled":d||void 0,htmlFor:u},c),f&&S.createElement(po.Description,{className:p.description},f),v&&v!=="boolean"&&S.createElement(po.Error,{className:p.error},v))))});Rd.displayName="@mantine/core/InlineInput";var J3=Object.defineProperty,Ja=Object.getOwnPropertySymbols,O_=Object.prototype.hasOwnProperty,$_=Object.prototype.propertyIsEnumerable,Pg=(e,t,r)=>t in e?J3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t)=>{for(var r in t||(t={}))O_.call(t,r)&&Pg(e,r,t[r]);if(Ja)for(var r of Ja(t))$_.call(t,r)&&Pg(e,r,t[r]);return e},q3=(e,t)=>{var r={};for(var n in e)O_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ja)for(var n of Ja(e))t.indexOf(n)<0&&$_.call(e,n)&&(r[n]=e[n]);return r};const eR={size:"sm",transitionDuration:100,icon:I3,labelPosition:"right"},qa=g.forwardRef((e,t)=>{const r=K("Checkbox",eR,e),{className:n,style:o,sx:i,checked:l,disabled:a,color:s,label:c,indeterminate:f,id:u,size:d,radius:v,wrapperProps:y,children:w,classNames:b,styles:m,transitionDuration:p,icon:h,unstyled:_,labelPosition:P,description:$,error:O,variant:E}=r,k=q3(r,["className","style","sx","checked","disabled","color","label","indeterminate","id","size","radius","wrapperProps","children","classNames","styles","transitionDuration","icon","unstyled","labelPosition","description","error","variant"]),C=E3(),F=Sn(u),{systemStyles:A,rest:W}=ji(k),{classes:L}=M3({radius:v,color:s,transitionDuration:p,labelPosition:P,error:!!O,indeterminate:f},{name:"Checkbox",classNames:b,styles:m,unstyled:_,variant:E,size:(C==null?void 0:C.size)||d}),H=C?{checked:C.value.includes(W.value),onChange:C.onChange}:{};return S.createElement(Rd,wl(wl({className:n,sx:i,style:o,id:F,size:(C==null?void 0:C.size)||d,labelPosition:P,label:c,description:$,error:O,disabled:a,__staticSelector:"Checkbox",classNames:b,styles:m,unstyled:_,"data-checked":H.checked||void 0,variant:E},A),y),S.createElement("div",{className:L.inner},S.createElement("input",wl(wl({id:F,ref:t,type:"checkbox",className:L.input,checked:l,disabled:a},W),H)),S.createElement(h,{indeterminate:f,className:L.icon})))});qa.displayName="@mantine/core/Checkbox";qa.Group=h_;var tR=Object.defineProperty,rR=Object.defineProperties,nR=Object.getOwnPropertyDescriptors,Og=Object.getOwnPropertySymbols,oR=Object.prototype.hasOwnProperty,iR=Object.prototype.propertyIsEnumerable,$g=(e,t,r)=>t in e?tR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lR=(e,t)=>{for(var r in t||(t={}))oR.call(t,r)&&$g(e,r,t[r]);if(Og)for(var r of Og(t))iR.call(t,r)&&$g(e,r,t[r]);return e},aR=(e,t)=>rR(e,nR(t)),sR=q((e,{color:t,opacity:r,blur:n,radius:o,gradient:i,fixed:l,zIndex:a})=>({root:aR(lR({},e.fn.cover(0)),{position:l?"fixed":"absolute",backgroundColor:i?void 0:e.fn.rgba(t,r),backgroundImage:i,backdropFilter:n?`blur(${x(n)})`:void 0,borderRadius:e.fn.radius(o),zIndex:a,"&[data-center]":{display:"flex",alignItems:"center",justifyContent:"center"}})})),cR=Object.defineProperty,es=Object.getOwnPropertySymbols,x_=Object.prototype.hasOwnProperty,E_=Object.prototype.propertyIsEnumerable,xg=(e,t,r)=>t in e?cR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uR=(e,t)=>{for(var r in t||(t={}))x_.call(t,r)&&xg(e,r,t[r]);if(es)for(var r of es(t))E_.call(t,r)&&xg(e,r,t[r]);return e},fR=(e,t)=>{var r={};for(var n in e)x_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&es)for(var n of es(e))t.indexOf(n)<0&&E_.call(e,n)&&(r[n]=e[n]);return r};const dR={opacity:.6,color:"#000",zIndex:_o("modal"),radius:0},C_=g.forwardRef((e,t)=>{const r=K("Overlay",dR,e),{variant:n,opacity:o,color:i,blur:l,gradient:a,zIndex:s,radius:c,children:f,className:u,classNames:d,styles:v,unstyled:y,center:w,fixed:b}=r,m=fR(r,["variant","opacity","color","blur","gradient","zIndex","radius","children","className","classNames","styles","unstyled","center","fixed"]),{classes:p,cx:h}=sR({color:i,opacity:o,blur:l,radius:c,gradient:a,fixed:b,zIndex:s},{name:"Overlay",classNames:d,styles:v,unstyled:y,variant:n});return S.createElement(ie,uR({ref:t,className:h(p.root,u),"data-center":w||void 0},m),f)});C_.displayName="@mantine/core/Overlay";const pR=C_;function mR(e){return g.Children.toArray(e).filter(Boolean)}const k_={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var vR=q((e,{spacing:t,position:r,noWrap:n,grow:o,align:i,count:l})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:i||"center",flexWrap:n?"nowrap":"wrap",justifyContent:k_[r],gap:z({size:t,sizes:e.spacing}),"& > *":{boxSizing:"border-box",maxWidth:o?`calc(${100/l}% - (${x(z({size:t,sizes:e.spacing}))} - ${z({size:t,sizes:e.spacing})} / ${l}))`:void 0,flexGrow:o?1:0}}})),gR=Object.defineProperty,ts=Object.getOwnPropertySymbols,N_=Object.prototype.hasOwnProperty,R_=Object.prototype.propertyIsEnumerable,Eg=(e,t,r)=>t in e?gR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yR=(e,t)=>{for(var r in t||(t={}))N_.call(t,r)&&Eg(e,r,t[r]);if(ts)for(var r of ts(t))R_.call(t,r)&&Eg(e,r,t[r]);return e},hR=(e,t)=>{var r={};for(var n in e)N_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ts)for(var n of ts(e))t.indexOf(n)<0&&R_.call(e,n)&&(r[n]=e[n]);return r};const wR={position:"left",spacing:"md"},qn=g.forwardRef((e,t)=>{const r=K("Group",wR,e),{className:n,position:o,align:i,children:l,noWrap:a,grow:s,spacing:c,unstyled:f,variant:u}=r,d=hR(r,["className","position","align","children","noWrap","grow","spacing","unstyled","variant"]),v=mR(l),{classes:y,cx:w}=vR({align:i,grow:s,noWrap:a,spacing:c,position:o,count:v.length},{unstyled:f,name:"Group",variant:u});return S.createElement(ie,yR({className:w(y.root,n),ref:t},d),v)});qn.displayName="@mantine/core/Group";var _R=Object.defineProperty,SR=Object.defineProperties,bR=Object.getOwnPropertyDescriptors,Cg=Object.getOwnPropertySymbols,PR=Object.prototype.hasOwnProperty,OR=Object.prototype.propertyIsEnumerable,kg=(e,t,r)=>t in e?_R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$R=(e,t)=>{for(var r in t||(t={}))PR.call(t,r)&&kg(e,r,t[r]);if(Cg)for(var r of Cg(t))OR.call(t,r)&&kg(e,r,t[r]);return e},xR=(e,t)=>SR(e,bR(t)),ER=q(e=>({root:xR($R({},e.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})})),CR=Object.defineProperty,kR=Object.defineProperties,NR=Object.getOwnPropertyDescriptors,rs=Object.getOwnPropertySymbols,D_=Object.prototype.hasOwnProperty,I_=Object.prototype.propertyIsEnumerable,Ng=(e,t,r)=>t in e?CR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_l=(e,t)=>{for(var r in t||(t={}))D_.call(t,r)&&Ng(e,r,t[r]);if(rs)for(var r of rs(t))I_.call(t,r)&&Ng(e,r,t[r]);return e},RR=(e,t)=>kR(e,NR(t)),DR=(e,t)=>{var r={};for(var n in e)D_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&rs)for(var n of rs(e))t.indexOf(n)<0&&I_.call(e,n)&&(r[n]=e[n]);return r};const IR={overlayOpacity:.75,transitionDuration:0,radius:0,zIndex:_o("overlay")},j_=g.forwardRef((e,t)=>{const r=K("LoadingOverlay",IR,e),{className:n,visible:o,loaderProps:i,overlayOpacity:l,overlayColor:a,transitionDuration:s,exitTransitionDuration:c,zIndex:f,style:u,loader:d,radius:v,overlayBlur:y,unstyled:w,variant:b,keepMounted:m}=r,p=DR(r,["className","visible","loaderProps","overlayOpacity","overlayColor","transitionDuration","exitTransitionDuration","zIndex","style","loader","radius","overlayBlur","unstyled","variant","keepMounted"]),{classes:h,cx:_,theme:P}=ER(null,{name:"LoadingOverlay",unstyled:w,variant:b}),$=`calc(${f} + 1)`;return S.createElement(Ed,{keepMounted:m,duration:s,exitDuration:c,mounted:o,transition:"fade"},O=>S.createElement(ie,_l({className:_(h.root,n),style:RR(_l(_l({},O),u),{zIndex:f}),ref:t},p),d?S.createElement("div",{style:{zIndex:$}},d):S.createElement(vd,_l({style:{zIndex:$}},i)),S.createElement(pR,{opacity:l,zIndex:f,radius:v,blur:y,unstyled:w,color:a||(P.colorScheme==="dark"?P.colors.dark[5]:P.white)})))});j_.displayName="@mantine/core/LoadingOverlay";var jR=Object.defineProperty,ns=Object.getOwnPropertySymbols,T_=Object.prototype.hasOwnProperty,z_=Object.prototype.propertyIsEnumerable,Rg=(e,t,r)=>t in e?jR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dg=(e,t)=>{for(var r in t||(t={}))T_.call(t,r)&&Rg(e,r,t[r]);if(ns)for(var r of ns(t))z_.call(t,r)&&Rg(e,r,t[r]);return e},TR=(e,t)=>{var r={};for(var n in e)T_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ns)for(var n of ns(e))t.indexOf(n)<0&&z_.call(e,n)&&(r[n]=e[n]);return r};const zR={xs:x(14),sm:x(18),md:x(20),lg:x(24),xl:x(28)};function AR(e){var t=e,{size:r,error:n,style:o}=t,i=TR(t,["size","error","style"]);const l=gt(),a=z({size:r,sizes:zR});return S.createElement("svg",Dg({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Dg({color:n?l.colors.red[6]:l.colors.gray[6],width:a,height:a},o),"data-chevron":!0},i),S.createElement("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"}))}var LR=Object.defineProperty,FR=Object.defineProperties,MR=Object.getOwnPropertyDescriptors,Ig=Object.getOwnPropertySymbols,VR=Object.prototype.hasOwnProperty,HR=Object.prototype.propertyIsEnumerable,jg=(e,t,r)=>t in e?LR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BR=(e,t)=>{for(var r in t||(t={}))VR.call(t,r)&&jg(e,r,t[r]);if(Ig)for(var r of Ig(t))HR.call(t,r)&&jg(e,r,t[r]);return e},WR=(e,t)=>FR(e,MR(t));function A_({shouldClear:e,clearButtonProps:t,onClear:r,size:n,error:o}){return e?S.createElement(H1,WR(BR({},t),{variant:"transparent",onClick:r,size:n,onMouseDown:i=>i.preventDefault()})):S.createElement(AR,{error:o,size:n})}A_.displayName="@mantine/core/SelectRightSection";var UR=Object.defineProperty,KR=Object.defineProperties,YR=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,L_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable,Tg=(e,t,r)=>t in e?UR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ac=(e,t)=>{for(var r in t||(t={}))L_.call(t,r)&&Tg(e,r,t[r]);if(os)for(var r of os(t))F_.call(t,r)&&Tg(e,r,t[r]);return e},zg=(e,t)=>KR(e,YR(t)),GR=(e,t)=>{var r={};for(var n in e)L_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&os)for(var n of os(e))t.indexOf(n)<0&&F_.call(e,n)&&(r[n]=e[n]);return r};function QR(e){var t=e,{styles:r,rightSection:n,rightSectionWidth:o,theme:i}=t,l=GR(t,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:o,styles:r};const a=typeof r=="function"?r(i):r;return{rightSection:!l.readOnly&&!(l.disabled&&l.shouldClear)&&S.createElement(A_,Ac({},l)),styles:zg(Ac({},a),{rightSection:zg(Ac({},a==null?void 0:a.rightSection),{pointerEvents:l.shouldClear?void 0:"none"})})}}var XR=Object.defineProperty,is=Object.getOwnPropertySymbols,M_=Object.prototype.hasOwnProperty,V_=Object.prototype.propertyIsEnumerable,Ag=(e,t,r)=>t in e?XR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lg=(e,t)=>{for(var r in t||(t={}))M_.call(t,r)&&Ag(e,r,t[r]);if(is)for(var r of is(t))V_.call(t,r)&&Ag(e,r,t[r]);return e},ZR=(e,t)=>{var r={};for(var n in e)M_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&is)for(var n of is(e))t.indexOf(n)<0&&V_.call(e,n)&&(r[n]=e[n]);return r};function JR(e){const t=e,{width:r,height:n,style:o}=t,i=ZR(t,["width","height","style"]);return S.createElement("svg",Lg({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:Lg({width:r,height:n},o)},i),S.createElement("path",{fill:"currentColor",d:"M0 2.5a2.5 2.5 0 115 0 2.5 2.5 0 01-5 0z"}))}const H_=g.createContext(null),qR=H_.Provider,e4=()=>g.useContext(H_);var t4=Object.defineProperty,ls=Object.getOwnPropertySymbols,B_=Object.prototype.hasOwnProperty,W_=Object.prototype.propertyIsEnumerable,Fg=(e,t,r)=>t in e?t4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mg=(e,t)=>{for(var r in t||(t={}))B_.call(t,r)&&Fg(e,r,t[r]);if(ls)for(var r of ls(t))W_.call(t,r)&&Fg(e,r,t[r]);return e},r4=(e,t)=>{var r={};for(var n in e)B_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ls)for(var n of ls(e))t.indexOf(n)<0&&W_.call(e,n)&&(r[n]=e[n]);return r};const n4={size:"sm"},U_=g.forwardRef((e,t)=>{const r=K("RadioGroup",n4,e),{children:n,value:o,defaultValue:i,onChange:l,size:a,wrapperProps:s,unstyled:c,name:f}=r,u=r4(r,["children","value","defaultValue","onChange","size","wrapperProps","unstyled","name"]),d=Sn(f),[v,y]=so({value:o,defaultValue:i,finalValue:"",onChange:l}),w=b=>y(b.currentTarget.value);return S.createElement(qR,{value:{value:v,onChange:w,size:a,name:d}},S.createElement(po.Wrapper,Mg(Mg({labelElement:"div",size:a,__staticSelector:"RadioGroup",ref:t,unstyled:c},s),u),n))});U_.displayName="@mantine/core/RadioGroup";var o4=Object.defineProperty,i4=Object.defineProperties,l4=Object.getOwnPropertyDescriptors,Vg=Object.getOwnPropertySymbols,a4=Object.prototype.hasOwnProperty,s4=Object.prototype.propertyIsEnumerable,Hg=(e,t,r)=>t in e?o4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c4=(e,t)=>{for(var r in t||(t={}))a4.call(t,r)&&Hg(e,r,t[r]);if(Vg)for(var r of Vg(t))s4.call(t,r)&&Hg(e,r,t[r]);return e},u4=(e,t)=>i4(e,l4(t));const Lc={xs:x(16),sm:x(20),md:x(24),lg:x(30),xl:x(36)},Sl={xs:x(6),sm:x(8),md:x(10),lg:x(14),xl:x(16)};var f4=q((e,{color:t,transitionDuration:r,labelPosition:n,error:o},{size:i})=>{const l=e.fn.variant({variant:"filled",color:t}),a=e.fn.variant({variant:"filled",color:"red"}).background;return{inner:{order:n==="left"?2:1,position:"relative",alignSelf:"flex-start"},icon:{ref:Br("icon"),color:e.white,opacity:0,transform:`scale(0.75) translateY(${x(2)})`,transition:`opacity ${r}ms ${e.transitionTimingFunction}`,pointerEvents:"none",width:z({sizes:Sl,size:i}),height:z({sizes:Sl,size:i}),position:"absolute",top:`calc(50% - ${z({sizes:Sl,size:i})} / 2)`,left:`calc(50% - ${z({sizes:Sl,size:i})} / 2)`},radio:u4(c4({},e.fn.focusStyles()),{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`${x(1)} solid ${o?a:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,position:"relative",appearance:"none",width:z({sizes:Lc,size:i}),height:z({sizes:Lc,size:i}),borderRadius:z({sizes:Lc,size:i}),margin:0,display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:`${r}ms`,cursor:e.cursorType,"&:checked":{background:l.background,borderColor:l.background,[`& + .${Br("icon")}`]:{opacity:1,transform:"scale(1)"}},"&:disabled":{borderColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[4],backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1],[`& + .${Br("icon")}`]:{color:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[4]}}})}}),d4=Object.defineProperty,as=Object.getOwnPropertySymbols,K_=Object.prototype.hasOwnProperty,Y_=Object.prototype.propertyIsEnumerable,Bg=(e,t,r)=>t in e?d4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bl=(e,t)=>{for(var r in t||(t={}))K_.call(t,r)&&Bg(e,r,t[r]);if(as)for(var r of as(t))Y_.call(t,r)&&Bg(e,r,t[r]);return e},p4=(e,t)=>{var r={};for(var n in e)K_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&as)for(var n of as(e))t.indexOf(n)<0&&Y_.call(e,n)&&(r[n]=e[n]);return r};const m4={icon:JR,transitionDuration:100,size:"sm",labelPosition:"right"},ss=g.forwardRef((e,t)=>{var r,n;const o=K("Radio",m4,e),{className:i,style:l,id:a,label:s,size:c,title:f,disabled:u,color:d,classNames:v,styles:y,sx:w,icon:b,transitionDuration:m,wrapperProps:p,unstyled:h,labelPosition:_,description:P,error:$,variant:O}=o,E=p4(o,["className","style","id","label","size","title","disabled","color","classNames","styles","sx","icon","transitionDuration","wrapperProps","unstyled","labelPosition","description","error","variant"]),k=e4(),C=(r=k==null?void 0:k.size)!=null?r:c,F=e.size?c:C,{classes:A}=f4({color:d,transitionDuration:m,labelPosition:_,error:!!$},{name:"Radio",classNames:v,styles:y,unstyled:h,variant:O,size:F}),{systemStyles:W,rest:L}=ji(E),H=Sn(a),G=k?{checked:k.value===L.value,name:(n=L.name)!=null?n:k.name,onChange:k.onChange}:{};return S.createElement(Rd,bl(bl({className:i,sx:w,style:l,id:H,size:F,labelPosition:_,label:s,description:P,error:$,disabled:u,__staticSelector:"Radio",classNames:v,styles:y,unstyled:h,"data-checked":G.checked||void 0,variant:O},W),p),S.createElement("div",{className:A.inner},S.createElement("input",bl(bl({ref:t,className:A.radio,type:"radio",id:H,disabled:u},L),G)),S.createElement(b,{className:A.icon,"aria-hidden":!0})))});ss.displayName="@mantine/core/Radio";ss.Group=U_;function v4({data:e,searchable:t,limit:r,searchValue:n,filter:o,value:i,filterDataOnExactSearchMatch:l}){if(!t)return e;const a=i!=null&&e.find(c=>c.value===i)||null;if(a&&!l&&(a==null?void 0:a.label)===n){if(r){if(r>=e.length)return e;const c=e.indexOf(a),f=c+r,u=f-e.length;return u>0?e.slice(c-u):e.slice(c,f)}return e}const s=[];for(let c=0;c=r));c+=1);return s}var g4=q(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}})),y4=Object.defineProperty,h4=Object.defineProperties,w4=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertySymbols,G_=Object.prototype.hasOwnProperty,Q_=Object.prototype.propertyIsEnumerable,Wg=(e,t,r)=>t in e?y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vo=(e,t)=>{for(var r in t||(t={}))G_.call(t,r)&&Wg(e,r,t[r]);if(cs)for(var r of cs(t))Q_.call(t,r)&&Wg(e,r,t[r]);return e},Fc=(e,t)=>h4(e,w4(t)),_4=(e,t)=>{var r={};for(var n in e)G_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cs)for(var n of cs(e))t.indexOf(n)<0&&Q_.call(e,n)&&(r[n]=e[n]);return r};function S4(e,t){return t.label.toLowerCase().trim().includes(e.toLowerCase().trim())}function b4(e,t){return!!e&&!t.some(r=>r.label.toLowerCase()===e.toLowerCase())}const P4={required:!1,size:"sm",shadow:"sm",itemComponent:uw,transitionProps:{transition:"fade",duration:0},initiallyOpened:!1,filter:S4,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:b4,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:_o("popover"),positionDependencies:[],dropdownPosition:"flip"},X_=g.forwardRef((e,t)=>{const r=RN("Select",P4,e),{inputProps:n,wrapperProps:o,shadow:i,data:l,value:a,defaultValue:s,onChange:c,itemComponent:f,onKeyDown:u,onBlur:d,onFocus:v,transitionProps:y,initiallyOpened:w,unstyled:b,classNames:m,styles:p,filter:h,maxDropdownHeight:_,searchable:P,clearable:$,nothingFound:O,limit:E,disabled:k,onSearchChange:C,searchValue:F,rightSection:A,rightSectionWidth:W,creatable:L,getCreateLabel:H,shouldCreate:G,selectOnBlur:ne,onCreate:R,dropdownComponent:j,onDropdownClose:V,onDropdownOpen:Y,withinPortal:Q,portalProps:Ye,switchDirectionOnFlip:ce,zIndex:Le,name:me,dropdownPosition:Fe,allowDeselect:xt,placeholder:Ft,filterDataOnExactSearchMatch:tr,form:wr,positionDependencies:Mt,readOnly:yt,clearButtonProps:xn,hoverOnSearchChange:_r}=r,En=_4(r,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transitionProps","initiallyOpened","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","limit","disabled","onSearchChange","searchValue","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","portalProps","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","form","positionDependencies","readOnly","clearButtonProps","hoverOnSearchChange"]),{classes:ue,cx:Jr,theme:Sr}=g4(),[fe,tc]=g.useState(w),[Et,Ie]=g.useState(-1),D=g.useRef(),M=g.useRef({}),[ve,$e]=g.useState("column"),Se=ve==="column",{scrollIntoView:Ct,targetRef:Vt,scrollableRef:Oo}=aE({duration:0,offset:5,cancelable:!1,isList:!0}),$o=xt===void 0?$:xt,Me=T=>{if(fe!==T){tc(T);const le=T?Y:V;typeof le=="function"&&le()}},br=L&&typeof H=="function";let qr=null;const xo=l.map(T=>typeof T=="string"?{label:T,value:T}:T),Pr=wO({data:xo}),[Ge,Or,zd]=so({value:a,defaultValue:s,finalValue:null,onChange:c}),rr=Pr.find(T=>T.value===Ge),[nr,jS]=so({value:F,defaultValue:(rr==null?void 0:rr.label)||"",finalValue:void 0,onChange:C}),en=T=>{jS(T),P&&typeof C=="function"&&C(T)},TS=()=>{var T;yt||(Or(null),zd||en(""),(T=D.current)==null||T.focus())};g.useEffect(()=>{const T=Pr.find(le=>le.value===Ge);T?en(T.label):(!br||!Ge)&&en("")},[Ge]),g.useEffect(()=>{rr&&(!P||!fe)&&en(rr.label)},[rr==null?void 0:rr.label]);const Fi=T=>{if(!yt)if($o&&(rr==null?void 0:rr.value)===T.value)Or(null),Me(!1);else{if(T.creatable&&typeof R=="function"){const le=R(T.value);typeof le<"u"&&le!==null&&Or(typeof le=="string"?le:le.value)}else Or(T.value);zd||en(T.label),Ie(-1),Me(!1),D.current.focus()}},ke=v4({data:Pr,searchable:P,limit:E,searchValue:nr,filter:h,filterDataOnExactSearchMatch:tr,value:Ge});br&&G(nr,ke)&&(qr=H(nr),ke.push({label:nr,value:nr,creatable:!0}));const Ad=(T,le,it)=>{let lt=T;for(;it(lt);)if(lt=le(lt),!ke[lt].disabled)return lt;return T};Kr(()=>{Ie(_r&&nr?0:-1)},[nr,_r]);const Eo=Ge?ke.findIndex(T=>T.value===Ge):0,kt=!yt&&(ke.length>0?fe:fe&&!!O),Ld=()=>{Ie(T=>{var le;const it=Ad(T,lt=>lt-1,lt=>lt>0);return Vt.current=M.current[(le=ke[it])==null?void 0:le.value],kt&&Ct({alignment:Se?"start":"end"}),it})},Fd=()=>{Ie(T=>{var le;const it=Ad(T,lt=>lt+1,lt=>ltwindow.setTimeout(()=>{var T;Vt.current=M.current[(T=ke[Eo])==null?void 0:T.value],Ct({alignment:Se?"end":"start"})},50);Kr(()=>{kt&&Mi()},[kt]);const zS=T=>{switch(typeof u=="function"&&u(T),T.key){case"ArrowUp":{T.preventDefault(),fe?Se?Ld():Fd():(Ie(Eo),Me(!0),Mi());break}case"ArrowDown":{T.preventDefault(),fe?Se?Fd():Ld():(Ie(Eo),Me(!0),Mi());break}case"Home":{if(!P){T.preventDefault(),fe||Me(!0);const le=ke.findIndex(it=>!it.disabled);Ie(le),kt&&Ct({alignment:Se?"end":"start"})}break}case"End":{if(!P){T.preventDefault(),fe||Me(!0);const le=ke.map(it=>!!it.disabled).lastIndexOf(!1);Ie(le),kt&&Ct({alignment:Se?"end":"start"})}break}case"Escape":{T.preventDefault(),Me(!1),Ie(-1);break}case" ":{P||(T.preventDefault(),ke[Et]&&fe?Fi(ke[Et]):(Me(!0),Ie(Eo),Mi()));break}case"Enter":P||T.preventDefault(),ke[Et]&&fe&&(T.preventDefault(),Fi(ke[Et]))}},AS=T=>{typeof d=="function"&&d(T);const le=Pr.find(it=>it.value===Ge);ne&&ke[Et]&&fe&&Fi(ke[Et]),en((le==null?void 0:le.label)||""),Me(!1)},LS=T=>{typeof v=="function"&&v(T),P&&Me(!0)},FS=T=>{yt||(en(T.currentTarget.value),$&&T.currentTarget.value===""&&Or(null),Ie(-1),Me(!0))},MS=()=>{yt||(Me(!fe),Ge&&!fe&&Ie(Eo))};return S.createElement(po.Wrapper,Fc(Vo({},o),{__staticSelector:"Select"}),S.createElement(ni,{opened:kt,transitionProps:y,shadow:i,withinPortal:Q,portalProps:Ye,__staticSelector:"Select",onDirectionChange:$e,switchDirectionOnFlip:ce,zIndex:Le,dropdownPosition:Fe,positionDependencies:[...Mt,nr],classNames:m,styles:p,unstyled:b,variant:n.variant},S.createElement(ni.Target,null,S.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":kt?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":kt,onMouseLeave:()=>Ie(-1),tabIndex:-1},S.createElement("input",{type:"hidden",name:me,value:Ge||"",form:wr,disabled:k}),S.createElement(po,Vo(Fc(Vo(Vo({autoComplete:"off",type:"search"},n),En),{ref:md(t,D),onKeyDown:zS,__staticSelector:"Select",value:nr,placeholder:Ft,onChange:FS,"aria-autocomplete":"list","aria-controls":kt?`${n.id}-items`:null,"aria-activedescendant":Et>=0?`${n.id}-${Et}`:null,onMouseDown:MS,onBlur:AS,onFocus:LS,readOnly:!P||yt,disabled:k,"data-mantine-stop-propagation":kt,name:null,classNames:Fc(Vo({},m),{input:Jr({[ue.input]:!P},m==null?void 0:m.input)})}),QR({theme:Sr,rightSection:A,rightSectionWidth:W,styles:p,size:n.size,shouldClear:$&&!!rr,onClear:TS,error:o.error,clearButtonProps:xn,disabled:k,readOnly:yt}))))),S.createElement(ni.Dropdown,{component:j||hd,maxHeight:_,direction:ve,id:n.id,innerRef:Oo,__staticSelector:"Select",classNames:m,styles:p},S.createElement(aw,{data:ke,hovered:Et,classNames:m,styles:p,isItemSelected:T=>T===Ge,uuid:n.id,__staticSelector:"Select",onItemHover:Ie,onItemSelect:Fi,itemsRefs:M,itemComponent:f,size:n.size,nothingFound:O,creatable:br&&!!qr,createLabel:qr,"aria-label":o.label,unstyled:b,variant:n.variant}))))});X_.displayName="@mantine/core/Select";const qu={context:"Tabs component was not found in the tree",value:"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value"},[O4,Dd]=ed(qu.context);var $4=Object.defineProperty,Ug=Object.getOwnPropertySymbols,x4=Object.prototype.hasOwnProperty,E4=Object.prototype.propertyIsEnumerable,Kg=(e,t,r)=>t in e?$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C4=(e,t)=>{for(var r in t||(t={}))x4.call(t,r)&&Kg(e,r,t[r]);if(Ug)for(var r of Ug(t))E4.call(t,r)&&Kg(e,r,t[r]);return e};function k4({orientation:e,inverted:t,placement:r},n,o){const i=e==="vertical";return o==="default"?{[i?r==="left"?"borderRight":"borderLeft":t?"borderTop":"borderBottom"]:`${x(2)} solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:o==="outline"?{[i?r==="left"?"borderRight":"borderLeft":t?"borderTop":"borderBottom"]:`${x(1)} solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:o==="pills"?{gap:`calc(${n.spacing.sm} / 2)`}:{}}var N4=q((e,t,{variant:r})=>{const n=t.orientation==="vertical";return{tabsList:C4({display:"flex",flexWrap:"wrap",flexDirection:n?"column":"row",justifyContent:k_[t.position],'& [role="tab"]':{flex:t.grow?1:void 0}},k4(t,e,r))}}),R4=Object.defineProperty,D4=Object.defineProperties,I4=Object.getOwnPropertyDescriptors,us=Object.getOwnPropertySymbols,Z_=Object.prototype.hasOwnProperty,J_=Object.prototype.propertyIsEnumerable,Yg=(e,t,r)=>t in e?R4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j4=(e,t)=>{for(var r in t||(t={}))Z_.call(t,r)&&Yg(e,r,t[r]);if(us)for(var r of us(t))J_.call(t,r)&&Yg(e,r,t[r]);return e},T4=(e,t)=>D4(e,I4(t)),z4=(e,t)=>{var r={};for(var n in e)Z_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&us)for(var n of us(e))t.indexOf(n)<0&&J_.call(e,n)&&(r[n]=e[n]);return r};const A4={grow:!1,position:"left"},q_=g.forwardRef((e,t)=>{const r=K("TabsList",A4,e),{children:n,className:o,grow:i,position:l}=r,a=z4(r,["children","className","grow","position"]),{orientation:s,variant:c,color:f,radius:u,inverted:d,placement:v,classNames:y,styles:w,unstyled:b}=Dd(),{classes:m,cx:p}=N4({orientation:s,grow:i,color:f,position:l,radius:u,inverted:d,placement:v},{name:"Tabs",unstyled:b,classNames:y,styles:w,variant:c});return S.createElement(ie,T4(j4({},a),{className:p(m.tabsList,o),ref:t,role:"tablist","aria-orientation":s}),n)});q_.displayName="@mantine/core/TabsList";var L4=q((e,{orientation:t})=>({panel:{flex:t==="vertical"?1:void 0}})),F4=Object.defineProperty,M4=Object.defineProperties,V4=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,eS=Object.prototype.hasOwnProperty,tS=Object.prototype.propertyIsEnumerable,Gg=(e,t,r)=>t in e?F4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H4=(e,t)=>{for(var r in t||(t={}))eS.call(t,r)&&Gg(e,r,t[r]);if(fs)for(var r of fs(t))tS.call(t,r)&&Gg(e,r,t[r]);return e},B4=(e,t)=>M4(e,V4(t)),W4=(e,t)=>{var r={};for(var n in e)eS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&fs)for(var n of fs(e))t.indexOf(n)<0&&tS.call(e,n)&&(r[n]=e[n]);return r};const U4={},rS=g.forwardRef((e,t)=>{const r=K("TabsPanel",U4,e),{value:n,children:o,sx:i,className:l}=r,a=W4(r,["value","children","sx","className"]),s=Dd(),{classes:c,cx:f}=L4({orientation:s.orientation,color:s.color,radius:s.radius,inverted:s.inverted,placement:s.placement},{name:"Tabs",unstyled:s.unstyled,classNames:s.classNames,styles:s.styles,variant:s.variant}),u=s.getPanelId(n),d=s.value===n,v=s.keepMounted||d?o:null;return g.useEffect(()=>(s.setMountedPanelIds(y=>[...y,u]),s.setMountedPanelIds(y=>y.filter(w=>w!==u))),[u]),S.createElement(ie,B4(H4({},a),{ref:t,sx:[{display:d?void 0:"none"},...td(i)],className:f(c.panel,l),role:"tabpanel",id:u,"aria-labelledby":s.getTabId(n)}),v)});rS.displayName="@mantine/core/TabsPanel";var K4=Object.defineProperty,Y4=Object.defineProperties,G4=Object.getOwnPropertyDescriptors,Qg=Object.getOwnPropertySymbols,Q4=Object.prototype.hasOwnProperty,X4=Object.prototype.propertyIsEnumerable,Xg=(e,t,r)=>t in e?K4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wn=(e,t)=>{for(var r in t||(t={}))Q4.call(t,r)&&Xg(e,r,t[r]);if(Qg)for(var r of Qg(t))X4.call(t,r)&&Xg(e,r,t[r]);return e},Zg=(e,t)=>Y4(e,G4(t));function Z4(e,{orientation:t,color:r,radius:n,inverted:o,placement:i},l){const a=t==="vertical",s=e.fn.variant({color:r,variant:"filled"}),c=x(e.fn.radius(n)),f=t==="vertical"?i==="left"?`${c} 0 0 ${c}`:` 0 ${c} ${c} 0`:o?`0 0 ${c} ${c}`:`${c} ${c} 0 0`;return l==="default"?Zg(Wn({[a?i==="left"?"borderRight":"borderLeft":o?"borderTop":"borderBottom"]:`${x(2)} solid transparent`,[a?i==="left"?"marginRight":"marginLeft":o?"marginTop":"marginBottom"]:x(-2),borderRadius:f},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]})),{"&[data-active]":Wn({borderColor:s.background,color:e.colorScheme==="dark"?e.white:e.black},e.fn.hover({borderColor:s.background}))}):l==="outline"?{borderRadius:f,border:`${x(1)} solid transparent`,[a?i==="left"?"borderRight":"borderLeft":o?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3],"&::before":{content:'""',backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,position:"absolute",bottom:a?0:o?"unset":x(-1),top:a?0:o?x(-1):"unset",[a?"width":"height"]:x(1),right:a?i==="left"?x(-1):"unset":0,left:a?i==="left"?"unset":x(-1):0}}}:l==="pills"?Zg(Wn({borderRadius:e.fn.radius(n)},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]})),{"&[data-active]":Wn({backgroundColor:s.background,color:e.white},e.fn.hover({backgroundColor:s.background}))}):{}}var J4=q((e,t,{variant:r})=>({tabLabel:{},tab:Wn({position:"relative",padding:`${e.spacing.xs} ${e.spacing.md}`,paddingLeft:t.withIcon?e.spacing.xs:void 0,paddingRight:t.withRightSection?e.spacing.xs:void 0,fontSize:e.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:t.orientation==="horizontal"?"center":void 0,lineHeight:1,"&:disabled":Wn({opacity:.5,cursor:"not-allowed"},e.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},Z4(e,t,r)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:x(7)}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:x(7)}}})),q4=Object.defineProperty,eD=Object.defineProperties,tD=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,nS=Object.prototype.hasOwnProperty,oS=Object.prototype.propertyIsEnumerable,Jg=(e,t,r)=>t in e?q4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rD=(e,t)=>{for(var r in t||(t={}))nS.call(t,r)&&Jg(e,r,t[r]);if(ds)for(var r of ds(t))oS.call(t,r)&&Jg(e,r,t[r]);return e},nD=(e,t)=>eD(e,tD(t)),oD=(e,t)=>{var r={};for(var n in e)nS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ds)for(var n of ds(e))t.indexOf(n)<0&&oS.call(e,n)&&(r[n]=e[n]);return r};const iD={},iS=g.forwardRef((e,t)=>{const r=K("TabsTab",iD,e),{value:n,children:o,onKeyDown:i,onClick:l,className:a,icon:s,rightSection:c,color:f}=r,u=oD(r,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]),d=Dd(),v=!!s,y=!!c,{theme:w,classes:b,cx:m}=J4({withIcon:v||y&&!o,withRightSection:y||v&&!o,orientation:d.orientation,color:f||d.color,radius:d.radius,inverted:d.inverted,placement:d.placement},{name:"Tabs",unstyled:d.unstyled,classNames:d.classNames,styles:d.styles,variant:d.variant}),p=n===d.value,h=d.getPanelId(n),_=d.mountedPanelIds.includes(n)?h:void 0,P=$=>{d.onTabChange(d.allowTabDeactivation&&n===d.value?null:n),l==null||l($)};return S.createElement(w1,nD(rD({},u),{unstyled:d.unstyled,className:m(b.tab,a),"data-active":p||void 0,ref:t,type:"button",role:"tab",id:d.getTabId(n),"aria-selected":p,tabIndex:p||d.value===null?0:-1,"aria-controls":_,onClick:P,onKeyDown:gO({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:d.activateTabWithKeyboard,loop:d.loop,dir:w.dir,orientation:d.orientation,onKeyDown:i})}),s&&S.createElement("span",{className:b.tabIcon},s),o&&S.createElement("span",{className:b.tabLabel},o),c&&S.createElement("span",{className:b.tabRightSection},c))});iS.displayName="@mantine/core/Tab";function lS({defaultValue:e,value:t,onTabChange:r,orientation:n,children:o,loop:i,id:l,activateTabWithKeyboard:a,allowTabDeactivation:s,variant:c,color:f,radius:u,inverted:d,placement:v,keepMounted:y=!0,classNames:w,styles:b,unstyled:m}){const p=Sn(l),[h,_]=g.useState([]),[P,$]=so({value:t,defaultValue:e,finalValue:null,onChange:r});return S.createElement(O4,{value:{placement:v,value:P,orientation:n,id:p,loop:i,activateTabWithKeyboard:a,getTabId:Zp(`${p}-tab`,qu.value),getPanelId:Zp(`${p}-panel`,qu.value),onTabChange:$,setMountedPanelIds:_,mountedPanelIds:h,allowTabDeactivation:s,variant:c,color:f,radius:u,inverted:d,keepMounted:y,classNames:w,styles:b,unstyled:m}},o)}lS.displayName="@mantine/core/TabsProvider";var lD=q((e,{orientation:t,placement:r})=>({root:{display:t==="vertical"?"flex":void 0,flexDirection:r==="right"?"row-reverse":"row"}})),aD=Object.defineProperty,sD=Object.defineProperties,cD=Object.getOwnPropertyDescriptors,ps=Object.getOwnPropertySymbols,aS=Object.prototype.hasOwnProperty,sS=Object.prototype.propertyIsEnumerable,qg=(e,t,r)=>t in e?aD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uD=(e,t)=>{for(var r in t||(t={}))aS.call(t,r)&&qg(e,r,t[r]);if(ps)for(var r of ps(t))sS.call(t,r)&&qg(e,r,t[r]);return e},fD=(e,t)=>sD(e,cD(t)),dD=(e,t)=>{var r={};for(var n in e)aS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ps)for(var n of ps(e))t.indexOf(n)<0&&sS.call(e,n)&&(r[n]=e[n]);return r};const pD={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},jr=g.forwardRef((e,t)=>{const r=K("Tabs",pD,e),{defaultValue:n,value:o,orientation:i,loop:l,activateTabWithKeyboard:a,allowTabDeactivation:s,children:c,id:f,onTabChange:u,variant:d,color:v,className:y,unstyled:w,classNames:b,styles:m,radius:p,inverted:h,keepMounted:_,placement:P}=r,$=dD(r,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted","keepMounted","placement"]),{classes:O,cx:E}=lD({orientation:i,color:v,radius:p,inverted:h,placement:P},{unstyled:w,name:"Tabs",classNames:b,styles:m,variant:d});return S.createElement(lS,{activateTabWithKeyboard:a,defaultValue:n,orientation:i,onTabChange:u,value:o,id:f,loop:l,allowTabDeactivation:s,color:v,variant:d,radius:p,inverted:h,keepMounted:_,placement:P,classNames:b,styles:m,unstyled:w},S.createElement(ie,fD(uD({},$),{className:E(O.root,y),id:f,ref:t}),c))});jr.List=q_;jr.Tab=iS;jr.Panel=rS;jr.displayName="@mantine/core/Tabs";var mD=Object.defineProperty,vD=Object.defineProperties,gD=Object.getOwnPropertyDescriptors,ey=Object.getOwnPropertySymbols,yD=Object.prototype.hasOwnProperty,hD=Object.prototype.propertyIsEnumerable,ty=(e,t,r)=>t in e?mD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wD=(e,t)=>{for(var r in t||(t={}))yD.call(t,r)&&ty(e,r,t[r]);if(ey)for(var r of ey(t))hD.call(t,r)&&ty(e,r,t[r]);return e},_D=(e,t)=>vD(e,gD(t));function SD(e,t,r){return typeof e<"u"?e in r.headings.sizes?r.headings.sizes[e].fontSize:x(e):r.headings.sizes[t].fontSize}function bD(e,t,r){return typeof e<"u"&&e in r.headings.sizes?r.headings.sizes[e].lineHeight:r.headings.sizes[t].lineHeight}var PD=q((e,{element:t,weight:r,inline:n},{size:o})=>({root:_D(wD({},e.fn.fontStyles()),{fontFamily:e.headings.fontFamily,fontWeight:r||e.headings.sizes[t].fontWeight||e.headings.fontWeight,fontSize:SD(o,t,e),lineHeight:n?1:bD(o,t,e),margin:0})})),OD=Object.defineProperty,ms=Object.getOwnPropertySymbols,cS=Object.prototype.hasOwnProperty,uS=Object.prototype.propertyIsEnumerable,ry=(e,t,r)=>t in e?OD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$D=(e,t)=>{for(var r in t||(t={}))cS.call(t,r)&&ry(e,r,t[r]);if(ms)for(var r of ms(t))uS.call(t,r)&&ry(e,r,t[r]);return e},xD=(e,t)=>{var r={};for(var n in e)cS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ms)for(var n of ms(e))t.indexOf(n)<0&&uS.call(e,n)&&(r[n]=e[n]);return r};const ED={order:1},Id=g.forwardRef((e,t)=>{const r=K("Title",ED,e),{className:n,order:o,children:i,unstyled:l,size:a,weight:s,inline:c,variant:f}=r,u=xD(r,["className","order","children","unstyled","size","weight","inline","variant"]),{classes:d,cx:v}=PD({element:`h${o}`,weight:s,inline:c},{name:"Title",unstyled:l,variant:f,size:a});return[1,2,3,4,5,6].includes(o)?S.createElement(yn,$D({variant:f,component:`h${o}`,ref:t,className:v(d.root,n)},u),i):null});Id.displayName="@mantine/core/Title";/** - * @license @tabler/icons-react v3.5.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var CD={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** - * @license @tabler/icons-react v3.5.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const $n=(e,t,r,n)=>{const o=g.forwardRef(({color:i="currentColor",size:l=24,stroke:a=2,className:s,children:c,...f},u)=>g.createElement("svg",{ref:u,...CD[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${t}`,s].join(" "),strokeWidth:a,stroke:i,...f},[...n.map(([d,v])=>g.createElement(d,v)),...Array.isArray(c)?c:[c]]));return o.displayName=`${r}`,o};/** - * @license @tabler/icons-react v3.5.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var kD=$n("outline","alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/** - * @license @tabler/icons-react v3.5.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var ND=$n("outline","arrow-narrow-left","IconArrowNarrowLeft",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l4 4",key:"svg-1"}],["path",{d:"M5 12l4 -4",key:"svg-2"}]]);/** - * @license @tabler/icons-react v3.5.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var RD=$n("outline","moon-stars","IconMoonStars",[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z",key:"svg-0"}],["path",{d:"M17 4a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2",key:"svg-1"}],["path",{d:"M19 11h2m-1 -1v2",key:"svg-2"}]]);/** - * @license @tabler/icons-react v3.5.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var fS=$n("outline","photo","IconPhoto",[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z",key:"svg-1"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",key:"svg-2"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3",key:"svg-3"}]]);/** - * @license @tabler/icons-react v3.5.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var DD=$n("outline","sun","IconSun",[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]]);/** - * @license @tabler/icons-react v3.5.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var ID=$n("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/** - * @license @tabler/icons-react v3.5.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var jD=$n("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function TD(){const{colorScheme:e,toggleColorScheme:t}=gx(),r=e==="dark";return B.jsxs(qn,{position:"apart",children:[B.jsx(Uu,{size:"lg",variant:"outline",color:r?"yellow":"blue",title:"Back to garden",component:"a",href:"https://galbadia.garden",children:B.jsx(ND,{size:"1.1rem"})}),B.jsx(Id,{order:1,children:"FF8 Q+Z Card"}),B.jsx(Uu,{size:"lg",variant:"outline",color:r?"yellow":"blue",onClick:()=>t(),title:"Toggle color scheme",children:r?B.jsx(DD,{size:"1.1rem"}):B.jsx(RD,{size:"1.1rem"})})]})}var dS={exports:{}},zD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",AD=zD,LD=AD;function pS(){}function mS(){}mS.resetWarningCache=pS;var FD=function(){function e(n,o,i,l,a,s){if(s!==LD){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 r={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:mS,resetWarningCache:pS};return r.PropTypes=r,r};dS.exports=FD();var MD=dS.exports;const ee=Sy(MD);var VD=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Li(e,t){var r=HD(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function HD(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),o=VD.get(n);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var BD=[".DS_Store","Thumbs.db"];function WD(e){return yo(this,void 0,void 0,function(){return ho(this,function(t){return vs(e)&&UD(e.dataTransfer)?[2,QD(e.dataTransfer,e.type)]:KD(e)?[2,YD(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,GD(e)]:[2,[]]})})}function UD(e){return vs(e)}function KD(e){return vs(e)&&vs(e.target)}function vs(e){return typeof e=="object"&&e!==null}function YD(e){return ef(e.target.files).map(function(t){return Li(t)})}function GD(e){return yo(this,void 0,void 0,function(){var t;return ho(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return Li(n)})]}})})}function QD(e,t){return yo(this,void 0,void 0,function(){var r,n;return ho(this,function(o){switch(o.label){case 0:return e.items?(r=ef(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(XD))]):[3,2];case 1:return n=o.sent(),[2,ny(vS(n))];case 2:return[2,ny(ef(e.files).map(function(i){return Li(i)}))]}})})}function ny(e){return e.filter(function(t){return BD.indexOf(t.name)===-1})}function ef(e){if(e===null)return[];for(var t=[],r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rr)return[!1,sy(r)];if(e.sizer)return[!1,sy(r)]}return[!0,null]}function on(e){return e!=null}function dI(e){var t=e.files,r=e.accept,n=e.minSize,o=e.maxSize,i=e.multiple,l=e.maxFiles,a=e.validator;return!i&&t.length>1||i&&l>=1&&t.length>l?!1:t.every(function(s){var c=wS(s,r),f=$i(c,1),u=f[0],d=_S(s,n,o),v=$i(d,1),y=v[0],w=a?a(s):null;return u&&y&&!w})}function gs(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Pl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function uy(e){e.preventDefault()}function pI(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function mI(e){return e.indexOf("Edge/")!==-1}function vI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return pI(e)||mI(e)}function Ut(){for(var e=arguments.length,t=new Array(e),r=0;r1?o-1:0),l=1;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DI(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}var jd=g.forwardRef(function(e,t){var r=e.children,n=ys(e,SI),o=$S(n),i=o.open,l=ys(o,bI);return g.useImperativeHandle(t,function(){return{open:i}},[i]),S.createElement(g.Fragment,null,r(ge(ge({},l),{},{open:i})))});jd.displayName="Dropzone";var OS={disabled:!1,getFilesFromEvent:WD,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};jd.defaultProps=OS;jd.propTypes={children:ee.func,accept:ee.objectOf(ee.arrayOf(ee.string)),multiple:ee.bool,preventDropOnDocument:ee.bool,noClick:ee.bool,noKeyboard:ee.bool,noDrag:ee.bool,noDragEventsBubbling:ee.bool,minSize:ee.number,maxSize:ee.number,maxFiles:ee.number,disabled:ee.bool,getFilesFromEvent:ee.func,onFileDialogCancel:ee.func,onFileDialogOpen:ee.func,useFsAccessApi:ee.bool,autoFocus:ee.bool,onDragEnter:ee.func,onDragLeave:ee.func,onDragOver:ee.func,onDrop:ee.func,onDropAccepted:ee.func,onDropRejected:ee.func,onError:ee.func,validator:ee.func};var of={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function $S(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},OS),e),r=t.accept,n=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,l=t.minSize,a=t.multiple,s=t.maxFiles,c=t.onDragEnter,f=t.onDragLeave,u=t.onDragOver,d=t.onDrop,v=t.onDropAccepted,y=t.onDropRejected,w=t.onFileDialogCancel,b=t.onFileDialogOpen,m=t.useFsAccessApi,p=t.autoFocus,h=t.preventDropOnDocument,_=t.noClick,P=t.noKeyboard,$=t.noDrag,O=t.noDragEventsBubbling,E=t.onError,k=t.validator,C=g.useMemo(function(){return hI(r)},[r]),F=g.useMemo(function(){return yI(r)},[r]),A=g.useMemo(function(){return typeof b=="function"?b:dy},[b]),W=g.useMemo(function(){return typeof w=="function"?w:dy},[w]),L=g.useRef(null),H=g.useRef(null),G=g.useReducer(II,of),ne=Mc(G,2),R=ne[0],j=ne[1],V=R.isFocused,Y=R.isFileDialogActive,Q=g.useRef(typeof window<"u"&&window.isSecureContext&&m&&gI()),Ye=function(){!Q.current&&Y&&setTimeout(function(){if(H.current){var M=H.current.files;M.length||(j({type:"closeDialog"}),W())}},300)};g.useEffect(function(){return window.addEventListener("focus",Ye,!1),function(){window.removeEventListener("focus",Ye,!1)}},[H,Y,W,Q]);var ce=g.useRef([]),Le=function(M){L.current&&L.current.contains(M.target)||(M.preventDefault(),ce.current=[])};g.useEffect(function(){return h&&(document.addEventListener("dragover",uy,!1),document.addEventListener("drop",Le,!1)),function(){h&&(document.removeEventListener("dragover",uy),document.removeEventListener("drop",Le))}},[L,h]),g.useEffect(function(){return!n&&p&&L.current&&L.current.focus(),function(){}},[L,p,n]);var me=g.useCallback(function(D){E?E(D):console.error(D)},[E]),Fe=g.useCallback(function(D){D.preventDefault(),D.persist(),fe(D),ce.current=[].concat($I(ce.current),[D.target]),Pl(D)&&Promise.resolve(o(D)).then(function(M){if(!(gs(D)&&!O)){var ve=M.length,$e=ve>0&&dI({files:M,accept:C,minSize:l,maxSize:i,multiple:a,maxFiles:s,validator:k}),Se=ve>0&&!$e;j({isDragAccept:$e,isDragReject:Se,isDragActive:!0,type:"setDraggedFiles"}),c&&c(D)}}).catch(function(M){return me(M)})},[o,c,me,O,C,l,i,a,s,k]),xt=g.useCallback(function(D){D.preventDefault(),D.persist(),fe(D);var M=Pl(D);if(M&&D.dataTransfer)try{D.dataTransfer.dropEffect="copy"}catch{}return M&&u&&u(D),!1},[u,O]),Ft=g.useCallback(function(D){D.preventDefault(),D.persist(),fe(D);var M=ce.current.filter(function($e){return L.current&&L.current.contains($e)}),ve=M.indexOf(D.target);ve!==-1&&M.splice(ve,1),ce.current=M,!(M.length>0)&&(j({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Pl(D)&&f&&f(D))},[L,f,O]),tr=g.useCallback(function(D,M){var ve=[],$e=[];D.forEach(function(Se){var Ct=wS(Se,C),Vt=Mc(Ct,2),Oo=Vt[0],$o=Vt[1],Me=_S(Se,l,i),br=Mc(Me,2),qr=br[0],xo=br[1],Pr=k?k(Se):null;if(Oo&&qr&&!Pr)ve.push(Se);else{var Ge=[$o,xo];Pr&&(Ge=Ge.concat(Pr)),$e.push({file:Se,errors:Ge.filter(function(Or){return Or})})}}),(!a&&ve.length>1||a&&s>=1&&ve.length>s)&&(ve.forEach(function(Se){$e.push({file:Se,errors:[fI]})}),ve.splice(0)),j({acceptedFiles:ve,fileRejections:$e,type:"setFiles"}),d&&d(ve,$e,M),$e.length>0&&y&&y($e,M),ve.length>0&&v&&v(ve,M)},[j,a,C,l,i,s,d,v,y,k]),wr=g.useCallback(function(D){D.preventDefault(),D.persist(),fe(D),ce.current=[],Pl(D)&&Promise.resolve(o(D)).then(function(M){gs(D)&&!O||tr(M,D)}).catch(function(M){return me(M)}),j({type:"reset"})},[o,tr,me,O]),Mt=g.useCallback(function(){if(Q.current){j({type:"openDialog"}),A();var D={multiple:a,types:F};window.showOpenFilePicker(D).then(function(M){return o(M)}).then(function(M){tr(M,null),j({type:"closeDialog"})}).catch(function(M){wI(M)?(W(M),j({type:"closeDialog"})):_I(M)?(Q.current=!1,H.current?(H.current.value=null,H.current.click()):me(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):me(M)});return}H.current&&(j({type:"openDialog"}),A(),H.current.value=null,H.current.click())},[j,A,W,m,tr,me,F,a]),yt=g.useCallback(function(D){!L.current||!L.current.isEqualNode(D.target)||(D.key===" "||D.key==="Enter"||D.keyCode===32||D.keyCode===13)&&(D.preventDefault(),Mt())},[L,Mt]),xn=g.useCallback(function(){j({type:"focus"})},[]),_r=g.useCallback(function(){j({type:"blur"})},[]),En=g.useCallback(function(){_||(vI()?setTimeout(Mt,0):Mt())},[_,Mt]),ue=function(M){return n?null:M},Jr=function(M){return P?null:ue(M)},Sr=function(M){return $?null:ue(M)},fe=function(M){O&&M.stopPropagation()},tc=g.useMemo(function(){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=D.refKey,ve=M===void 0?"ref":M,$e=D.role,Se=D.onKeyDown,Ct=D.onFocus,Vt=D.onBlur,Oo=D.onClick,$o=D.onDragEnter,Me=D.onDragOver,br=D.onDragLeave,qr=D.onDrop,xo=ys(D,PI);return ge(ge(nf({onKeyDown:Jr(Ut(Se,yt)),onFocus:Jr(Ut(Ct,xn)),onBlur:Jr(Ut(Vt,_r)),onClick:ue(Ut(Oo,En)),onDragEnter:Sr(Ut($o,Fe)),onDragOver:Sr(Ut(Me,xt)),onDragLeave:Sr(Ut(br,Ft)),onDrop:Sr(Ut(qr,wr)),role:typeof $e=="string"&&$e!==""?$e:"presentation"},ve,L),!n&&!P?{tabIndex:0}:{}),xo)}},[L,yt,xn,_r,En,Fe,xt,Ft,wr,P,$,n]),Et=g.useCallback(function(D){D.stopPropagation()},[]),Ie=g.useMemo(function(){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=D.refKey,ve=M===void 0?"ref":M,$e=D.onChange,Se=D.onClick,Ct=ys(D,OI),Vt=nf({accept:C,multiple:a,type:"file",style:{display:"none"},onChange:ue(Ut($e,wr)),onClick:ue(Ut(Se,Et)),tabIndex:-1},ve,H);return ge(ge({},Vt),Ct)}},[H,r,a,wr,n]);return ge(ge({},R),{},{isFocused:V&&!n,getRootProps:tc,getInputProps:Ie,rootRef:L,inputRef:H,open:ue(Mt)})}function II(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},of),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ge(ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ge({},of);default:return e}}function dy(){}const[jI,TI]=ed("Dropzone component was not found in tree");var py=Object.getOwnPropertySymbols,zI=Object.prototype.hasOwnProperty,AI=Object.prototype.propertyIsEnumerable,LI=(e,t)=>{var r={};for(var n in e)zI.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&py)for(var n of py(e))t.indexOf(n)<0&&AI.call(e,n)&&(r[n]=e[n]);return r};function Td(e){const t=r=>{const n=K(`Dropzone${Em(e)}`,{},r),{children:o}=n,i=LI(n,["children"]),l=TI(),a=rd(o)?o:S.createElement("span",null,o);return l[e]?g.cloneElement(a,i):null};return t.displayName=`@mantine/dropzone/${Em(e)}`,t}const FI=Td("accept"),MI=Td("reject"),VI=Td("idle");var HI=Object.defineProperty,BI=Object.defineProperties,WI=Object.getOwnPropertyDescriptors,my=Object.getOwnPropertySymbols,UI=Object.prototype.hasOwnProperty,KI=Object.prototype.propertyIsEnumerable,vy=(e,t,r)=>t in e?HI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gy=(e,t)=>{for(var r in t||(t={}))UI.call(t,r)&&vy(e,r,t[r]);if(my)for(var r of my(t))KI.call(t,r)&&vy(e,r,t[r]);return e},YI=(e,t)=>BI(e,WI(t)),GI=q((e,{padding:t,radius:r})=>{const n=e.fn.variant({color:"red",variant:"light"}),o=e.fn.variant({color:e.primaryColor,variant:"light"});return{root:YI(gy(gy({},e.fn.fontStyles()),e.fn.focusStyles()),{boxSizing:"border-box",backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`${x(2)} dashed ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,padding:z({size:t,sizes:e.spacing}),borderRadius:e.fn.radius(r),cursor:"pointer",userSelect:"none",transition:"background-color 150ms ease",position:"relative","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]},"&[data-loading]":{cursor:"default","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white}},"&[data-accept]":{backgroundColor:e.colorScheme==="dark"?o.background:e.colors[e.primaryColor][0],borderColor:e.colorScheme==="dark"?o.border:e.colors[e.primaryColor][4],"&:hover":{backgroundColor:e.colorScheme==="dark"?o.background:e.colors[e.primaryColor][0]}},"&[data-reject]":{backgroundColor:e.colorScheme==="dark"?n.background:e.colors.red[0],borderColor:e.colorScheme==="dark"?n.border:e.colors.red[4],"&:hover":{backgroundColor:e.colorScheme==="dark"?n.background:e.colors.red[0]}}}),inner:{pointerEvents:"none",userSelect:"none"}}}),QI=Object.defineProperty,XI=Object.defineProperties,ZI=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,xS=Object.prototype.hasOwnProperty,ES=Object.prototype.propertyIsEnumerable,yy=(e,t,r)=>t in e?QI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ho=(e,t)=>{for(var r in t||(t={}))xS.call(t,r)&&yy(e,r,t[r]);if(hs)for(var r of hs(t))ES.call(t,r)&&yy(e,r,t[r]);return e},Vc=(e,t)=>XI(e,ZI(t)),JI=(e,t)=>{var r={};for(var n in e)xS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hs)for(var n of hs(e))t.indexOf(n)<0&&ES.call(e,n)&&(r[n]=e[n]);return r};const qI={padding:"md",loading:!1,multiple:!0,maxSize:1/0,autoFocus:!1,activateOnClick:!0,activateOnDrag:!0,dragEventsBubbling:!0,activateOnKeyboard:!0,useFsAccessApi:!0};function Po(e){const t=K("Dropzone",qI,e),{className:r,padding:n,radius:o,disabled:i,classNames:l,styles:a,loading:s,multiple:c,maxSize:f,accept:u,children:d,onDropAny:v,onDrop:y,onReject:w,openRef:b,name:m,unstyled:p,maxFiles:h,autoFocus:_,activateOnClick:P,activateOnDrag:$,dragEventsBubbling:O,activateOnKeyboard:E,onDragEnter:k,onDragLeave:C,onDragOver:F,onFileDialogCancel:A,onFileDialogOpen:W,preventDropOnDocument:L,useFsAccessApi:H,getFilesFromEvent:G,validator:ne,variant:R}=t,j=JI(t,["className","padding","radius","disabled","classNames","styles","loading","multiple","maxSize","accept","children","onDropAny","onDrop","onReject","openRef","name","unstyled","maxFiles","autoFocus","activateOnClick","activateOnDrag","dragEventsBubbling","activateOnKeyboard","onDragEnter","onDragLeave","onDragOver","onFileDialogCancel","onFileDialogOpen","preventDropOnDocument","useFsAccessApi","getFilesFromEvent","validator","variant"]),{classes:V,cx:Y}=GI({radius:o,padding:n},{name:"Dropzone",classNames:l,styles:a,unstyled:p,variant:R}),{getRootProps:Q,getInputProps:Ye,isDragAccept:ce,isDragReject:Le,open:me}=$S(Ho({onDrop:v,onDropAccepted:y,onDropRejected:w,disabled:i||s,accept:Array.isArray(u)?u.reduce((xt,Ft)=>Vc(Ho({},xt),{[Ft]:[]}),{}):u,multiple:c,maxSize:f,maxFiles:h,autoFocus:_,noClick:!P,noDrag:!$,noDragEventsBubbling:!O,noKeyboard:!E,onDragEnter:k,onDragLeave:C,onDragOver:F,onFileDialogCancel:A,onFileDialogOpen:W,preventDropOnDocument:L,useFsAccessApi:H,validator:ne},G?{getFilesFromEvent:G}:null));f1(b,me);const Fe=!ce&&!Le;return S.createElement(jI,{value:{accept:ce,reject:Le,idle:Fe}},S.createElement(ie,Vc(Ho(Ho({},j),Q()),{"data-accept":ce||void 0,"data-reject":Le||void 0,"data-idle":Fe||void 0,"data-loading":s||void 0,className:Y(V.root,r)}),S.createElement(j_,{visible:s,radius:o,unstyled:p}),S.createElement("input",Vc(Ho({},Ye()),{name:m})),S.createElement("div",{className:V.inner},d)))}Po.displayName="@mantine/dropzone/Dropzone";Po.Accept=FI;Po.Reject=MI;Po.Idle=VI;const CS=Po;var ej=Object.defineProperty,tj=Object.defineProperties,rj=Object.getOwnPropertyDescriptors,hy=Object.getOwnPropertySymbols,nj=Object.prototype.hasOwnProperty,oj=Object.prototype.propertyIsEnumerable,wy=(e,t,r)=>t in e?ej(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ij=(e,t)=>{for(var r in t||(t={}))nj.call(t,r)&&wy(e,r,t[r]);if(hy)for(var r of hy(t))oj.call(t,r)&&wy(e,r,t[r]);return e},lj=(e,t)=>tj(e,rj(t)),aj=q(e=>({wrapper:lj(ij({},e.fn.cover(0)),{position:"fixed",backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,display:"flex",padding:e.spacing.xs,transition:"opacity 100ms ease"}),dropzone:{flex:1}})),sj=Object.defineProperty,cj=Object.defineProperties,uj=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,kS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable,_y=(e,t,r)=>t in e?sj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hc=(e,t)=>{for(var r in t||(t={}))kS.call(t,r)&&_y(e,r,t[r]);if(ws)for(var r of ws(t))NS.call(t,r)&&_y(e,r,t[r]);return e},Bc=(e,t)=>cj(e,uj(t)),fj=(e,t)=>{var r={};for(var n in e)kS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ws)for(var n of ws(e))t.indexOf(n)<0&&NS.call(e,n)&&(r[n]=e[n]);return r};const dj={padding:"md",loading:!1,multiple:!0,maxSize:1/0,autoFocus:!1,activateOnClick:!0,activateOnDrag:!0,dragEventsBubbling:!0,activateOnKeyboard:!0,active:!0,zIndex:_o("max"),withinPortal:!0};function RS(e){const t=K("DropzoneFullScreen",dj,e),{classNames:r,styles:n,sx:o,className:i,style:l,unstyled:a,active:s,onDrop:c,onReject:f,zIndex:u,withinPortal:d,portalProps:v}=t,y=fj(t,["classNames","styles","sx","className","style","unstyled","active","onDrop","onReject","zIndex","withinPortal","portalProps"]),[w,b]=S.useState(0),[m,{open:p,close:h}]=_E(!1),{classes:_,cx:P}=aj(null,{name:"DropzoneFullScreen",classNames:r,styles:n,unstyled:a}),$=E=>{E.dataTransfer.types.includes("Files")&&(b(k=>k+1),p())},O=()=>{b(E=>E-1)};return g.useEffect(()=>{w===0&&h()},[w]),g.useEffect(()=>{if(s)return document.addEventListener("dragenter",$,!1),document.addEventListener("dragleave",O,!1),()=>{document.removeEventListener("dragenter",$,!1),document.removeEventListener("dragleave",O,!1)}},[s]),S.createElement(gd,Bc(Hc({},v),{withinPortal:d}),S.createElement(ie,{className:P(_.wrapper,i),sx:o,style:Bc(Hc({},l),{opacity:m?1:0,pointerEvents:m?"all":"none",zIndex:u})},S.createElement(Po,Bc(Hc({},y),{classNames:r,styles:n,unstyled:a,className:_.dropzone,onDrop:E=>{c==null||c(E),h()},onReject:E=>{f==null||f(E),h()}}))))}RS.displayName="@mantine/dropzone/DropzoneFullScreen";CS.FullScreen=RS;const Ol=CS;function DS(e){const t=gt(),r=async([n])=>{var o=new FileReader;o.onload=function(i){let l=i.target.result,a=JSON.parse(l);e.onChange(a)},o.readAsText(n)};return B.jsx(Ol,{multiple:!1,onDrop:r,onReject:n=>console.log("rejected files",n),maxSize:3*1024**2,accept:["application/json"],...e,children:B.jsxs(qn,{position:"center",spacing:"xl",style:{minHeight:x(220),pointerEvents:"none"},children:[B.jsx(Ol.Accept,{children:B.jsx(ID,{size:"3.2rem",stroke:1.5,color:t.colors[t.primaryColor][t.colorScheme==="dark"?4:6]})}),B.jsx(Ol.Reject,{children:B.jsx(jD,{size:"3.2rem",stroke:1.5,color:t.colors.red[t.colorScheme==="dark"?4:6]})}),B.jsx(Ol.Idle,{children:B.jsx(fS,{size:"3.2rem",stroke:1.5})}),B.jsxs("div",{children:[B.jsx(yn,{size:"xl",inline:!0,children:"Drag your JSON file here or click to select"}),B.jsx(yn,{size:"sm",color:"dimmed",inline:!0,mt:7,children:"Blah blah blah bibibbababababaobaobaobobo"})]})]})})}DS.propTypes={onChange:ee.func.isRequired};function IS(e){const[t,r]=g.useState({}),n=e.data,o=v=>{for(var y="",w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",b=w.length,m=0;mB.jsxs(B.Fragment,{children:[B.jsx(Id,{order:2,my:"md",children:v.label}),Object.prototype.hasOwnProperty.call(v,"subCategories")?v.subCategories.map(w=>l(w,v.baseCountPage||"",v.label,y)):""]}),l=(v,y,w,b)=>{let m=v.label||"";switch(w=`${b}-${w}`,v.type.toLowerCase()){case"buttons":return a(v.value,m,w);case"radiobutton":return s(v.value,m,w);case"list":return c(v.value,m,w,v.times||1)}},a=(v,y,w)=>{let b=btoa(`${w}-${y}`);return B.jsx(qa.Group,{label:y,onChange:m=>r(p=>({...p,[b]:m.reduce((h,_)=>h+parseInt(_),0)})),children:B.jsx(qn,{mt:"xs",children:v.map(m=>B.jsx(qa,{label:m.label.toString(),value:m.value.toString()},o(5)))})})},s=(v,y,w)=>{let b=btoa(`${w}-${y}`);return B.jsx(ss.Group,{label:y,onChange:m=>r(p=>({...p,[b]:parseInt(m)})),children:B.jsx(qn,{mt:"xs",children:v.map(m=>B.jsx(ss,{label:m.label.toString(),value:m.value.toString()},o(5)))})})},c=(v,y,w,b)=>{let m=btoa(`${w}-${y}`),p=[];for(let h=1;hr($=>({...$,[_]:P}))},_))}return B.jsx(qn,{mt:"xs",children:p})},f=v=>Object.values(v).reduce((y,w)=>y+w,0),u=n.map(v=>B.jsx(jr.Tab,{value:v.label,icon:B.jsx(fS,{size:"0.8rem"}),children:v.label},v.label)),d=n.map(v=>(console.log(t),B.jsx(jr.Panel,{value:v.label,pt:"xs",children:v.categories.map(y=>i(y,v.label))},v.label)));return B.jsxs(jr,{defaultValue:"gallery",children:[B.jsx(jr.List,{children:u}),d,f(t)]})}IS.propTypes={data:ee.array.isRequired};function pj(){const[e,t]=g.useState(!0),[r,n]=g.useState(!0),o=i=>{console.log(i),n(i),t(!1)};return B.jsxs(ow,{padding:"md",header:B.jsx(ew,{height:60,p:"xs",children:B.jsx(TD,{})}),styles:i=>({main:{backgroundColor:i.colorScheme==="dark"?i.colors.dark[8]:i.colors.gray[0]}}),children:[B.jsx(U1,{icon:B.jsx(kD,{size:"1rem"}),title:"Do Not Use",color:"red",variant:"outline",children:"This tool is under construction and does not yet work as intended."}),e?B.jsx(DS,{onChange:o}):"",e?"":B.jsx(IS,{data:r})]})}function mj(){const[e,t]=tE({key:"mantine-color-scheme",defaultValue:"light",getInitialValueInEffect:!0}),r=n=>t(n||(e==="dark"?"light":"dark"));return wE([["mod+J",()=>r()]]),B.jsx(i1,{colorScheme:e,toggleColorScheme:r,children:B.jsx(n1,{theme:{colorScheme:e},withGlobalStyles:!0,withNormalizeCSS:!0,children:B.jsx(pj,{})})})}Uc.createRoot(document.getElementById("root")).render(B.jsx(S.StrictMode,{children:B.jsx(mj,{})})); diff --git a/assets/index-DsDwypCV.js b/assets/index-DsDwypCV.js new file mode 100644 index 0000000..12608ea --- /dev/null +++ b/assets/index-DsDwypCV.js @@ -0,0 +1,97 @@ +function Hb(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function Py(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oy={exports:{}},_s={},$y={exports:{}},U={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var xi=Symbol.for("react.element"),Wb=Symbol.for("react.portal"),Ub=Symbol.for("react.fragment"),Kb=Symbol.for("react.strict_mode"),Yb=Symbol.for("react.profiler"),Gb=Symbol.for("react.provider"),Qb=Symbol.for("react.context"),Xb=Symbol.for("react.forward_ref"),Zb=Symbol.for("react.suspense"),qb=Symbol.for("react.memo"),Jb=Symbol.for("react.lazy"),Fd=Symbol.iterator;function eS(e){return e===null||typeof e!="object"?null:(e=Fd&&e[Fd]||e["@@iterator"],typeof e=="function"?e:null)}var xy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ey=Object.assign,Cy={};function mo(e,t,r){this.props=e,this.context=t,this.refs=Cy,this.updater=r||xy}mo.prototype.isReactComponent={};mo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};mo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ky(){}ky.prototype=mo.prototype;function lf(e,t,r){this.props=e,this.context=t,this.refs=Cy,this.updater=r||xy}var af=lf.prototype=new ky;af.constructor=lf;Ey(af,mo.prototype);af.isPureReactComponent=!0;var Vd=Array.isArray,Ny=Object.prototype.hasOwnProperty,sf={current:null},Ry={key:!0,ref:!0,__self:!0,__source:!0};function Dy(e,t,r){var n,o={},i=null,l=null;if(t!=null)for(n in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Ny.call(t,n)&&!Ry.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1>>1,Q=R[Y];if(0>>1;Yo(Le,V))meo(Me,Le)?(R[Y]=Me,R[me]=V,Y=me):(R[Y]=Le,R[ce]=V,Y=ce);else if(meo(Me,V))R[Y]=Me,R[me]=V,Y=me;else break e}}return j}function o(R,j){var V=R.sortIndex-j.sortIndex;return V!==0?V:R.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],c=[],f=1,u=null,d=3,g=!1,w=!1,h=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var j=r(c);j!==null;){if(j.callback===null)n(c);else if(j.startTime<=R)n(c),j.sortIndex=j.expirationTime,t(s,j);else break;j=r(c)}}function _(R){if(h=!1,y(R),!w)if(r(s)!==null)w=!0,G(P);else{var j=r(c);j!==null&&ne(_,j.startTime-R)}}function P(R,j){w=!1,h&&(h=!1,m(E),E=-1),g=!0;var V=d;try{for(y(j),u=r(s);u!==null&&(!(u.expirationTime>j)||R&&!M());){var Y=u.callback;if(typeof Y=="function"){u.callback=null,d=u.priorityLevel;var Q=Y(u.expirationTime<=j);j=e.unstable_now(),typeof Q=="function"?u.callback=Q:u===r(s)&&n(s),y(j)}else n(s);u=r(s)}if(u!==null)var Ye=!0;else{var ce=r(c);ce!==null&&ne(_,ce.startTime-j),Ye=!1}return Ye}finally{u=null,d=V,g=!1}}var $=!1,O=null,E=-1,k=5,C=-1;function M(){return!(e.unstable_now()-CR||125Y?(R.sortIndex=V,t(c,R),r(s)===null&&R===r(c)&&(h?(m(E),E=-1):h=!0,ne(_,V-Y))):(R.sortIndex=Q,t(s,R),w||g||(w=!0,G(P))),R},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(R){var j=d;return function(){var V=d;d=j;try{return R.apply(this,arguments)}finally{d=V}}}})(Ay);zy.exports=Ay;var fS=zy.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dS=v,dt=fS;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kc=Object.prototype.hasOwnProperty,pS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Hd={},Wd={};function mS(e){return Kc.call(Wd,e)?!0:Kc.call(Hd,e)?!1:pS.test(e)?Wd[e]=!0:(Hd[e]=!0,!1)}function vS(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gS(e,t,r,n){if(t===null||typeof t>"u"||vS(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qe(e,t,r,n,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ae[e]=new qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ae[t]=new qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ae[e]=new qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ae[e]=new qe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ae[e]=new qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ae[e]=new qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ae[e]=new qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ae[e]=new qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ae[e]=new qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var uf=/[\-:]([a-z])/g;function ff(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(uf,ff);Ae[t]=new qe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(uf,ff);Ae[t]=new qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(uf,ff);Ae[t]=new qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ae[e]=new qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ae.xlinkHref=new qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ae[e]=new qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function df(e,t,r,n){var o=Ae.hasOwnProperty(t)?Ae[t]:null;(o!==null?o.type!==0:n||!(2a||o[l]!==i[a]){var s=` +`+o[l].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{oc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ho(e):""}function yS(e){switch(e.tag){case 5:return Ho(e.type);case 16:return Ho("Lazy");case 13:return Ho("Suspense");case 19:return Ho("SuspenseList");case 0:case 2:case 15:return e=ic(e.type,!1),e;case 11:return e=ic(e.type.render,!1),e;case 1:return e=ic(e.type,!0),e;default:return""}}function Xc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case In:return"Fragment";case Dn:return"Portal";case Yc:return"Profiler";case pf:return"StrictMode";case Gc:return"Suspense";case Qc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fy:return(e.displayName||"Context")+".Consumer";case My:return(e._context.displayName||"Context")+".Provider";case mf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vf:return t=e.displayName||null,t!==null?t:Xc(e.type)||"Memo";case Cr:t=e._payload,e=e._init;try{return Xc(e(t))}catch{}}return null}function hS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Xc(t);case 8:return t===pf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Wr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function By(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wS(e){var t=By(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){n=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hi(e){e._valueTracker||(e._valueTracker=wS(e))}function Hy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=By(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Vl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zc(e,t){var r=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Kd(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Wr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wy(e,t){t=t.checked,t!=null&&df(e,"checked",t,!1)}function qc(e,t){Wy(e,t);var r=Wr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Jc(e,t.type,Wr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yd(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Jc(e,t,r){(t!=="number"||Vl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Wo=Array.isArray;function Un(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Wi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ii(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Yo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_S=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(e){_S.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yo[t]=Yo[e]})});function Gy(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Yo.hasOwnProperty(e)&&Yo[e]?(""+t).trim():t+"px"}function Qy(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Gy(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var bS=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ru(e,t){if(t){if(bS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function nu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ou=null;function gf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var iu=null,Kn=null,Yn=null;function Xd(e){if(e=ki(e)){if(typeof iu!="function")throw Error(N(280));var t=e.stateNode;t&&(t=$s(t),iu(e.stateNode,e.type,t))}}function Xy(e){Kn?Yn?Yn.push(e):Yn=[e]:Kn=e}function Zy(){if(Kn){var e=Kn,t=Yn;if(Yn=Kn=null,Xd(e),t)for(e=0;e>>=0,e===0?32:31-(DS(e)/IS|0)|0}var Ui=64,Ki=4194304;function Uo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ul(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,l=r&268435455;if(l!==0){var a=l&~o;a!==0?n=Uo(a):(i&=l,i!==0&&(n=Uo(i)))}else l=r&~o,l!==0?n=Uo(l):i!==0&&(n=Uo(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ei(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=r}function AS(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Qo),ip=" ",lp=!1;function yh(e,t){switch(e){case"keyup":return fP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function pP(e,t){switch(e){case"compositionend":return hh(t);case"keypress":return t.which!==32?null:(lp=!0,ip);case"textInput":return e=t.data,e===ip&&lp?null:e;default:return null}}function mP(e,t){if(jn)return e==="compositionend"||!Of&&yh(e,t)?(e=vh(),Cl=bf=Dr=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=up(r)}}function Sh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ph(){for(var e=window,t=Vl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Vl(e.document)}return t}function $f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function PP(e){var t=Ph(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Sh(r.ownerDocument.documentElement,r)){if(n!==null&&$f(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=fp(r,i);var l=fp(r,n);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Tn=null,fu=null,Zo=null,du=!1;function dp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;du||Tn==null||Tn!==Vl(n)||(n=Tn,"selectionStart"in n&&$f(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Zo&&fi(Zo,n)||(Zo=n,n=Gl(fu,"onSelect"),0Ln||(e.current=hu[Ln],hu[Ln]=null,Ln--)}function oe(e,t){Ln++,hu[Ln]=e.current,e.current=t}var Ur={},Ke=Xr(Ur),tt=Xr(!1),dn=Ur;function to(e,t){var r=e.type.contextTypes;if(!r)return Ur;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rt(e){return e=e.childContextTypes,e!=null}function Xl(){se(tt),se(Ke)}function wp(e,t,r){if(Ke.current!==Ur)throw Error(N(168));oe(Ke,t),oe(tt,r)}function Dh(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(N(108,hS(e)||"Unknown",o));return we({},r,n)}function Zl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ur,dn=Ke.current,oe(Ke,e),oe(tt,tt.current),!0}function _p(e,t,r){var n=e.stateNode;if(!n)throw Error(N(169));r?(e=Dh(e,t,dn),n.__reactInternalMemoizedMergedChildContext=e,se(tt),se(Ke),oe(Ke,e)):se(tt),oe(tt,r)}var ir=null,xs=!1,wc=!1;function Ih(e){ir===null?ir=[e]:ir.push(e)}function TP(e){xs=!0,Ih(e)}function Zr(){if(!wc&&ir!==null){wc=!0;var e=0,t=te;try{var r=ir;for(te=1;e>=l,o-=l,lr=1<<32-jt(t)+o|r<E?(k=O,O=null):k=O.sibling;var C=d(m,O,y[E],_);if(C===null){O===null&&(O=k);break}e&&O&&C.alternate===null&&t(m,O),p=i(C,p,E),$===null?P=C:$.sibling=C,$=C,O=k}if(E===y.length)return r(m,O),de&&tn(m,E),P;if(O===null){for(;EE?(k=O,O=null):k=O.sibling;var M=d(m,O,C.value,_);if(M===null){O===null&&(O=k);break}e&&O&&M.alternate===null&&t(m,O),p=i(M,p,E),$===null?P=M:$.sibling=M,$=M,O=k}if(C.done)return r(m,O),de&&tn(m,E),P;if(O===null){for(;!C.done;E++,C=y.next())C=u(m,C.value,_),C!==null&&(p=i(C,p,E),$===null?P=C:$.sibling=C,$=C);return de&&tn(m,E),P}for(O=n(m,O);!C.done;E++,C=y.next())C=g(O,m,E,C.value,_),C!==null&&(e&&C.alternate!==null&&O.delete(C.key===null?E:C.key),p=i(C,p,E),$===null?P=C:$.sibling=C,$=C);return e&&O.forEach(function(A){return t(m,A)}),de&&tn(m,E),P}function b(m,p,y,_){if(typeof y=="object"&&y!==null&&y.type===In&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Bi:e:{for(var P=y.key,$=p;$!==null;){if($.key===P){if(P=y.type,P===In){if($.tag===7){r(m,$.sibling),p=o($,y.props.children),p.return=m,m=p;break e}}else if($.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Cr&&Pp(P)===$.type){r(m,$.sibling),p=o($,y.props),p.ref=Io(m,$,y),p.return=m,m=p;break e}r(m,$);break}else t(m,$);$=$.sibling}y.type===In?(p=un(y.props.children,m.mode,_,y.key),p.return=m,m=p):(_=zl(y.type,y.key,y.props,null,m.mode,_),_.ref=Io(m,p,y),_.return=m,m=_)}return l(m);case Dn:e:{for($=y.key;p!==null;){if(p.key===$)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){r(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{r(m,p);break}else t(m,p);p=p.sibling}p=Ec(y,m.mode,_),p.return=m,m=p}return l(m);case Cr:return $=y._init,b(m,p,$(y._payload),_)}if(Wo(y))return w(m,p,y,_);if(Co(y))return h(m,p,y,_);Ji(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(r(m,p.sibling),p=o(p,y),p.return=m,m=p):(r(m,p),p=xc(y,m.mode,_),p.return=m,m=p),l(m)):r(m,p)}return b}var no=Ah(!0),Lh=Ah(!1),ea=Xr(null),ta=null,Vn=null,kf=null;function Nf(){kf=Vn=ta=null}function Rf(e){var t=ea.current;se(ea),e._currentValue=t}function bu(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Qn(e,t){ta=e,kf=Vn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(et=!0),e.firstContext=null)}function St(e){var t=e._currentValue;if(kf!==e)if(e={context:e,memoizedValue:t,next:null},Vn===null){if(ta===null)throw Error(N(308));Vn=e,ta.dependencies={lanes:0,firstContext:e}}else Vn=Vn.next=e;return t}var an=null;function Df(e){an===null?an=[e]:an.push(e)}function Mh(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,Df(t)):(r.next=o.next,o.next=r),t.interleaved=r,dr(e,n)}function dr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var kr=!1;function If(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mr(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,X&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,dr(e,r)}return o=n.interleaved,o===null?(t.next=t,Df(n)):(t.next=o.next,o.next=t),n.interleaved=t,dr(e,r)}function Nl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,hf(e,r)}}function Op(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var l={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=l:i=i.next=l,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ra(e,t,r,n){var o=e.updateQueue;kr=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var s=a,c=s.next;s.next=null,l===null?i=c:l.next=c,l=s;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==l&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=s))}if(i!==null){var u=o.baseState;l=0,f=c=s=null,a=i;do{var d=a.lane,g=a.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,h=a;switch(d=t,g=r,h.tag){case 1:if(w=h.payload,typeof w=="function"){u=w.call(g,u,d);break e}u=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=h.payload,d=typeof w=="function"?w.call(g,u,d):w,d==null)break e;u=we({},u,d);break e;case 2:kr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else g={eventTime:g,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=g,s=u):f=f.next=g,l|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(s=u),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);vn|=l,e.lanes=l,e.memoizedState=u}}function $p(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=bc.transition;bc.transition={};try{e(!1),t()}finally{te=r,bc.transition=n}}function n0(){return Pt().memoizedState}function MP(e,t,r){var n=Vr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},o0(e))i0(t,r);else if(r=Mh(e,t,r,n),r!==null){var o=Xe();Tt(r,e,n,o),l0(r,t,n)}}function FP(e,t,r){var n=Vr(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(o0(e))i0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,r);if(o.hasEagerState=!0,o.eagerState=a,zt(a,l)){var s=t.interleaved;s===null?(o.next=o,Df(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=Mh(e,t,o,n),r!==null&&(o=Xe(),Tt(r,e,n,o),l0(r,t,n))}}function o0(e){var t=e.alternate;return e===he||t!==null&&t===he}function i0(e,t){qo=oa=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function l0(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,hf(e,r)}}var ia={readContext:St,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},VP={readContext:St,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:Ep,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Dl(4194308,4,qh.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dl(4,2,e,t)},useMemo:function(e,t){var r=Kt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Kt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=MP.bind(null,he,e),[n.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:xp,useDebugValue:Vf,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=xp(!1),t=e[0];return e=LP.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=he,o=Kt();if(de){if(r===void 0)throw Error(N(407));r=r()}else{if(r=t(),Re===null)throw Error(N(349));mn&30||Wh(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Ep(Kh.bind(null,n,i,e),[e]),n.flags|=2048,wi(9,Uh.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Kt(),t=Re.identifierPrefix;if(de){var r=ar,n=lr;r=(n&~(1<<32-jt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=yi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[Qt]=t,e[mi]=n,g0(e,t,!1,!1),t.stateNode=e;e:{switch(l=nu(r,n),r){case"dialog":ae("cancel",e),ae("close",e),o=n;break;case"iframe":case"object":case"embed":ae("load",e),o=n;break;case"video":case"audio":for(o=0;olo&&(t.flags|=128,n=!0,jo(i,!1),t.lanes=4194304)}else{if(!n)if(e=na(l),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),jo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!de)return Be(t),null}else 2*Se()-i.renderingStartTime>lo&&r!==1073741824&&(t.flags|=128,n=!0,jo(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(r=i.last,r!==null?r.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Se(),t.sibling=null,r=ye.current,oe(ye,n?r&1|2:r&1),t):(Be(t),null);case 22:case 23:return Yf(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?at&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function QP(e,t){switch(Ef(t),t.tag){case 1:return rt(t.type)&&Xl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oo(),se(tt),se(Ke),zf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tf(t),null;case 13:if(se(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ye),null;case 4:return oo(),null;case 10:return Rf(t.type._context),null;case 22:case 23:return Yf(),null;case 24:return null;default:return null}}var tl=!1,We=!1,XP=typeof WeakSet=="function"?WeakSet:Set,I=null;function Bn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){_e(e,t,n)}else r.current=null}function Nu(e,t,r){try{r()}catch(n){_e(e,t,n)}}var Lp=!1;function ZP(e,t){if(pu=Kl,e=Ph(),$f(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var l=0,a=-1,s=-1,c=0,f=0,u=e,d=null;t:for(;;){for(var g;u!==r||o!==0&&u.nodeType!==3||(a=l+o),u!==i||n!==0&&u.nodeType!==3||(s=l+n),u.nodeType===3&&(l+=u.nodeValue.length),(g=u.firstChild)!==null;)d=u,u=g;for(;;){if(u===e)break t;if(d===r&&++c===o&&(a=l),d===i&&++f===n&&(s=l),(g=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=g}r=a===-1||s===-1?null:{start:a,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(mu={focusedElem:e,selectionRange:r},Kl=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var h=w.memoizedProps,b=w.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?h:Rt(t.type,h),b);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(_){_e(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return w=Lp,Lp=!1,w}function Jo(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Nu(t,r,i)}o=o.next}while(o!==n)}}function ks(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Ru(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function w0(e){var t=e.alternate;t!==null&&(e.alternate=null,w0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[mi],delete t[yu],delete t[IP],delete t[jP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _0(e){return e.tag===5||e.tag===3||e.tag===4}function Mp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Du(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ql));else if(n!==4&&(e=e.child,e!==null))for(Du(e,t,r),e=e.sibling;e!==null;)Du(e,t,r),e=e.sibling}function Iu(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Iu(e,t,r),e=e.sibling;e!==null;)Iu(e,t,r),e=e.sibling}var je=null,Dt=!1;function $r(e,t,r){for(r=r.child;r!==null;)b0(e,t,r),r=r.sibling}function b0(e,t,r){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(bs,r)}catch{}switch(r.tag){case 5:We||Bn(r,t);case 6:var n=je,o=Dt;je=null,$r(e,t,r),je=n,Dt=o,je!==null&&(Dt?(e=je,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):je.removeChild(r.stateNode));break;case 18:je!==null&&(Dt?(e=je,r=r.stateNode,e.nodeType===8?hc(e.parentNode,r):e.nodeType===1&&hc(e,r),ci(e)):hc(je,r.stateNode));break;case 4:n=je,o=Dt,je=r.stateNode.containerInfo,Dt=!0,$r(e,t,r),je=n,Dt=o;break;case 0:case 11:case 14:case 15:if(!We&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Nu(r,t,l),o=o.next}while(o!==n)}$r(e,t,r);break;case 1:if(!We&&(Bn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){_e(r,t,a)}$r(e,t,r);break;case 21:$r(e,t,r);break;case 22:r.mode&1?(We=(n=We)||r.memoizedState!==null,$r(e,t,r),We=n):$r(e,t,r);break;default:$r(e,t,r)}}function Fp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new XP),t.forEach(function(n){var o=lO.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Nt(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=l),n&=~i}if(n=o,n=Se()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*JP(n/1960))-n,10e?16:e,Ir===null)var n=!1;else{if(e=Ir,Ir=null,sa=0,X&6)throw Error(N(331));var o=X;for(X|=4,I=e.current;I!==null;){var i=I,l=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var s=0;sSe()-Uf?cn(e,0):Wf|=r),nt(e,t)}function k0(e,t){t===0&&(e.mode&1?(t=Ki,Ki<<=1,!(Ki&130023424)&&(Ki=4194304)):t=1);var r=Xe();e=dr(e,t),e!==null&&(Ei(e,t,r),nt(e,r))}function iO(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),k0(e,r)}function lO(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(N(314))}n!==null&&n.delete(t),k0(e,r)}var N0;N0=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)et=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return et=!1,YP(e,t,r);et=!!(e.flags&131072)}else et=!1,de&&t.flags&1048576&&jh(t,Jl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Il(e,t),e=t.pendingProps;var o=to(t,Ke.current);Qn(t,r),o=Lf(null,t,n,e,o,r);var i=Mf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(n)?(i=!0,Zl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,If(t),o.updater=Cs,t.stateNode=o,o._reactInternals=t,Pu(t,n,e,r),t=xu(null,t,n,!0,i,r)):(t.tag=0,de&&i&&xf(t),Qe(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Il(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=sO(n),e=Rt(n,e),o){case 0:t=$u(null,t,n,e,r);break e;case 1:t=Tp(null,t,n,e,r);break e;case 11:t=Ip(null,t,n,e,r);break e;case 14:t=jp(null,t,n,Rt(n.type,e),r);break e}throw Error(N(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Rt(n,o),$u(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Rt(n,o),Tp(e,t,n,o,r);case 3:e:{if(p0(t),e===null)throw Error(N(387));n=t.pendingProps,i=t.memoizedState,o=i.element,Fh(e,t),ra(t,n,null,r);var l=t.memoizedState;if(n=l.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=io(Error(N(423)),t),t=zp(e,t,n,r,o);break e}else if(n!==o){o=io(Error(N(424)),t),t=zp(e,t,n,r,o);break e}else for(st=Lr(t.stateNode.containerInfo.firstChild),ct=t,de=!0,It=null,r=Lh(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ro(),n===o){t=pr(e,t,r);break e}Qe(e,t,n,r)}t=t.child}return t;case 5:return Vh(t),e===null&&_u(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,vu(n,o)?l=null:i!==null&&vu(n,i)&&(t.flags|=32),d0(e,t),Qe(e,t,l,r),t.child;case 6:return e===null&&_u(t),null;case 13:return m0(e,t,r);case 4:return jf(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=no(t,null,n,r):Qe(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Rt(n,o),Ip(e,t,n,o,r);case 7:return Qe(e,t,t.pendingProps,r),t.child;case 8:return Qe(e,t,t.pendingProps.children,r),t.child;case 12:return Qe(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,oe(ea,n._currentValue),n._currentValue=l,i!==null)if(zt(i.value,l)){if(i.children===o.children&&!tt.current){t=pr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var s=a.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=sr(-1,r&-r),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),bu(i.return,r,t),a.lanes|=r;break}s=s.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(N(341));l.lanes|=r,a=l.alternate,a!==null&&(a.lanes|=r),bu(l,r,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Qe(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Qn(t,r),o=St(o),n=n(o),t.flags|=1,Qe(e,t,n,r),t.child;case 14:return n=t.type,o=Rt(n,t.pendingProps),o=Rt(n.type,o),jp(e,t,n,o,r);case 15:return u0(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Rt(n,o),Il(e,t),t.tag=1,rt(n)?(e=!0,Zl(t)):e=!1,Qn(t,r),a0(t,n,o),Pu(t,n,o,r),xu(null,t,n,!0,e,r);case 19:return v0(e,t,r);case 22:return f0(e,t,r)}throw Error(N(156,t.tag))};function R0(e,t){return oh(e,t)}function aO(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,r,n){return new aO(e,t,r,n)}function Qf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sO(e){if(typeof e=="function")return Qf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mf)return 11;if(e===vf)return 14}return 2}function Br(e,t){var r=e.alternate;return r===null?(r=_t(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function zl(e,t,r,n,o,i){var l=2;if(n=e,typeof e=="function")Qf(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case In:return un(r.children,o,i,t);case pf:l=8,o|=8;break;case Yc:return e=_t(12,r,t,o|2),e.elementType=Yc,e.lanes=i,e;case Gc:return e=_t(13,r,t,o),e.elementType=Gc,e.lanes=i,e;case Qc:return e=_t(19,r,t,o),e.elementType=Qc,e.lanes=i,e;case Vy:return Rs(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case My:l=10;break e;case Fy:l=9;break e;case mf:l=11;break e;case vf:l=14;break e;case Cr:l=16,n=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=_t(l,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function un(e,t,r,n){return e=_t(7,e,n,t),e.lanes=r,e}function Rs(e,t,r,n){return e=_t(22,e,n,t),e.elementType=Vy,e.lanes=r,e.stateNode={isHidden:!1},e}function xc(e,t,r){return e=_t(6,e,null,t),e.lanes=r,e}function Ec(e,t,r){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cO(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ac(0),this.expirationTimes=ac(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Xf(e,t,r,n,o,i,l,a,s){return e=new cO(e,t,r,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=_t(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},If(i),e}function uO(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T0)}catch(e){console.error(e)}}T0(),Ty.exports=pt;var zs=Ty.exports,Gp=zs;Uc.createRoot=Gp.createRoot,Uc.hydrateRoot=Gp.hydrateRoot;function yo(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function a(f){try{c(n.next(f))}catch(u){l(u)}}function s(f){try{c(n.throw(f))}catch(u){l(u)}}function c(f){f.done?i(f.value):o(f.value).then(a,s)}c((n=n.apply(e,t||[])).next())})}function ho(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(c){return function(f){return s([c,f])}}function s(c){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(r=0)),r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){l={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return i}function Xp(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n=0;n-=1)if(!t[n].disabled)return n;if(r){for(let n=t.length-1;n>-1;n-=1)if(!t[n].disabled)return n}return e}function gO(e,t,r){for(let n=e+1;n{var s;r==null||r(a);const c=Array.from(((s=Lu(a.currentTarget,e))==null?void 0:s.querySelectorAll(t))||[]).filter(h=>yO(a.currentTarget,h,e)),f=c.findIndex(h=>a.currentTarget===h),u=gO(f,c,n),d=vO(f,c,n),g=i==="rtl"?d:u,w=i==="rtl"?u:d;switch(a.key){case"ArrowRight":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),c[g].focus(),o&&c[g].click());break}case"ArrowLeft":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),c[w].focus(),o&&c[w].click());break}case"ArrowUp":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),c[d].focus(),o&&c[d].click());break}case"ArrowDown":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),c[u].focus(),o&&c[u].click());break}case"Home":{a.stopPropagation(),a.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{a.stopPropagation(),a.preventDefault();const h=c.length-1;!c[h].disabled&&c[h].focus();break}}}}function ed(e){const t=v.createContext(null);return[({children:o,value:i})=>S.createElement(t.Provider,{value:i},o),()=>{const o=v.useContext(t);if(o===null)throw new Error(e);return o}]}function td(e){return Array.isArray(e)?e:[e]}function Zp(e,t){return r=>{if(typeof r!="string"||r.trim().length===0)throw new Error(t);return`${e}-${r}`}}const wO=()=>{};function _O(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||wO:r=>{var n;r.key==="Escape"&&(e(r),(n=t.onTrigger)==null||n.call(t))}}function bO({data:e}){const t=[],r=[],n=e.reduce((o,i,l)=>(i.group?o[i.group]?o[i.group].push(l):o[i.group]=[l]:r.push(l),o),{});return Object.keys(n).forEach(o=>{t.push(...n[o].map(i=>e[i]))}),t.push(...r.map(o=>e[o])),t}function rd(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==S.Fragment:!1}function z0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t({fontFamily:e.fontFamily||"sans-serif"})}var OO=Object.defineProperty,qp=Object.getOwnPropertySymbols,$O=Object.prototype.hasOwnProperty,xO=Object.prototype.propertyIsEnumerable,Jp=(e,t,r)=>t in e?OO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,em=(e,t)=>{for(var r in t||(t={}))$O.call(t,r)&&Jp(e,r,t[r]);if(qp)for(var r of qp(t))xO.call(t,r)&&Jp(e,r,t[r]);return e};function EO(e){return t=>({WebkitTapHighlightColor:"transparent",[t||"&:focus"]:em({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[t?t.replace(":focus",":focus:not(:focus-visible)"):"&:focus:not(:focus-visible)"]:em({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)})}function Ri(e){return t=>typeof e.primaryShade=="number"?e.primaryShade:e.primaryShade[t||e.colorScheme]}function nd(e){const t=Ri(e);return(r,n,o=!0,i=!0)=>{if(typeof r=="string"&&r.includes(".")){const[a,s]=r.split("."),c=parseInt(s,10);if(a in e.colors&&c>=0&&c<10)return e.colors[a][typeof n=="number"&&!i?n:c]}const l=typeof n=="number"?n:t();return r in e.colors?e.colors[r][l]:o?e.colors[e.primaryColor][l]:r}}function L0(e){let t="";for(let r=1;r{const o={from:(n==null?void 0:n.from)||e.defaultGradient.from,to:(n==null?void 0:n.to)||e.defaultGradient.to,deg:(n==null?void 0:n.deg)||e.defaultGradient.deg};return`linear-gradient(${o.deg}deg, ${t(o.from,r(),!1)} 0%, ${t(o.to,r(),!1)} 100%)`}}function F0(e){return t=>{if(typeof t=="number")return`${t/16}${e}`;if(typeof t=="string"){const r=t.replace("px","");if(!Number.isNaN(Number(r)))return`${Number(r)/16}${e}`}return t}}const x=F0("rem"),cr=F0("em");function z({size:e,sizes:t,units:r}){return e in t?t[e]:typeof e=="number"?r==="em"?cr(e):x(e):e||t.md}function Jt(e){return typeof e=="number"?e:typeof e=="string"&&e.includes("rem")?Number(e.replace("rem",""))*16:typeof e=="string"&&e.includes("em")?Number(e.replace("em",""))*16:Number(e)}function NO(e){return t=>`@media (min-width: ${cr(Jt(z({size:t,sizes:e.breakpoints})))})`}function RO(e){return t=>`@media (max-width: ${cr(Jt(z({size:t,sizes:e.breakpoints}))-1)})`}function DO(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)}function IO(e){let t=e.replace("#","");if(t.length===3){const l=t.split("");t=[l[0],l[0],l[1],l[1],l[2],l[2]].join("")}const r=parseInt(t,16),n=r>>16&255,o=r>>8&255,i=r&255;return{r:n,g:o,b:i,a:1}}function jO(e){const[t,r,n,o]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:r,b:n,a:o||1}}function od(e){return DO(e)?IO(e):e.startsWith("rgb")?jO(e):{r:0,g:0,b:0,a:1}}function Rn(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(--"))return e;const{r,g:n,b:o}=od(e);return`rgba(${r}, ${n}, ${o}, ${t})`}function TO(e=0){return{position:"absolute",top:x(e),right:x(e),left:x(e),bottom:x(e)}}function zO(e,t){if(typeof e=="string"&&e.startsWith("var(--"))return e;const{r,g:n,b:o,a:i}=od(e),l=1-t,a=s=>Math.round(s*l);return`rgba(${a(r)}, ${a(n)}, ${a(o)}, ${i})`}function AO(e,t){if(typeof e=="string"&&e.startsWith("var(--"))return e;const{r,g:n,b:o,a:i}=od(e),l=a=>Math.round(a+(255-a)*t);return`rgba(${l(r)}, ${l(n)}, ${l(o)}, ${i})`}function LO(e){return t=>{if(typeof t=="number")return x(t);const r=typeof e.defaultRadius=="number"?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||r}}function MO(e,t){if(typeof e=="string"&&e.includes(".")){const[r,n]=e.split("."),o=parseInt(n,10);if(r in t.colors&&o>=0&&o<10)return{isSplittedColor:!0,key:r,shade:o}}return{isSplittedColor:!1}}function FO(e){const t=nd(e),r=Ri(e),n=M0(e);return({variant:o,color:i,gradient:l,primaryFallback:a})=>{const s=MO(i,e);switch(o){case"light":return{border:"transparent",background:Rn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1),color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Rn(t(i,e.colorScheme==="dark"?7:1,a,!1),e.colorScheme==="dark"?.25:.65)};case"subtle":return{border:"transparent",background:"transparent",color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Rn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1)};case"outline":return{border:t(i,e.colorScheme==="dark"?5:r("light")),background:"transparent",color:t(i,e.colorScheme==="dark"?5:r("light")),hover:e.colorScheme==="dark"?Rn(t(i,5,a,!1),.05):Rn(t(i,0,a,!1),.35)};case"default":return{border:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4],background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,color:e.colorScheme==="dark"?e.white:e.black,hover:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]};case"white":return{border:"transparent",background:e.white,color:t(i,r()),hover:null};case"transparent":return{border:"transparent",color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),background:"transparent",hover:null};case"gradient":return{background:n(l),color:e.white,border:"transparent",hover:null};default:{const c=r(),f=s.isSplittedColor?s.shade:c,u=s.isSplittedColor?s.key:i;return{border:"transparent",background:t(u,f,a),color:e.white,hover:t(u,f===9?8:f+1)}}}}}function VO(e){return t=>{const r=Ri(e)(t);return e.colors[e.primaryColor][r]}}function BO(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}}function HO(e){return()=>({userSelect:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]})}function WO(e){return()=>e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]}const xe={fontStyles:PO,themeColor:nd,focusStyles:EO,linearGradient:CO,radialGradient:kO,smallerThan:RO,largerThan:NO,rgba:Rn,cover:TO,darken:zO,lighten:AO,radius:LO,variant:FO,primaryShade:Ri,hover:BO,gradient:M0,primaryColor:VO,placeholderStyles:HO,dimmed:WO};var UO=Object.defineProperty,KO=Object.defineProperties,YO=Object.getOwnPropertyDescriptors,tm=Object.getOwnPropertySymbols,GO=Object.prototype.hasOwnProperty,QO=Object.prototype.propertyIsEnumerable,rm=(e,t,r)=>t in e?UO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XO=(e,t)=>{for(var r in t||(t={}))GO.call(t,r)&&rm(e,r,t[r]);if(tm)for(var r of tm(t))QO.call(t,r)&&rm(e,r,t[r]);return e},ZO=(e,t)=>KO(e,YO(t));function V0(e){return ZO(XO({},e),{fn:{fontStyles:xe.fontStyles(e),themeColor:xe.themeColor(e),focusStyles:xe.focusStyles(e),largerThan:xe.largerThan(e),smallerThan:xe.smallerThan(e),radialGradient:xe.radialGradient,linearGradient:xe.linearGradient,gradient:xe.gradient(e),rgba:xe.rgba,cover:xe.cover,lighten:xe.lighten,darken:xe.darken,primaryShade:xe.primaryShade(e),radius:xe.radius(e),variant:xe.variant(e),hover:xe.hover,primaryColor:xe.primaryColor(e),placeholderStyles:xe.placeholderStyles(e),dimmed:xe.dimmed(e)}})}const qO={dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:SO,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.1)",sm:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 0.625rem 0.9375rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.4375rem 0.4375rem -0.3125rem",md:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.25rem 1.5625rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.625rem 0.625rem -0.3125rem",lg:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.75rem 1.4375rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 0.75rem 0.75rem -0.4375rem",xl:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem"},radius:{xs:"0.125rem",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"2rem"},spacing:{xs:"0.625rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"1.5rem"},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:"2.125rem",lineHeight:1.3,fontWeight:void 0},h2:{fontSize:"1.625rem",lineHeight:1.35,fontWeight:void 0},h3:{fontSize:"1.375rem",lineHeight:1.4,fontWeight:void 0},h4:{fontSize:"1.125rem",lineHeight:1.45,fontWeight:void 0},h5:{fontSize:"1rem",lineHeight:1.5,fontWeight:void 0},h6:{fontSize:"0.875rem",lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(0.0625rem)"},datesLocale:"en",globalStyles:void 0,focusRingStyles:{styles:e=>({outlineOffset:"0.125rem",outline:`0.125rem solid ${e.colors[e.primaryColor][e.colorScheme==="dark"?7:5]}`}),resetStyles:()=>({outline:"none"}),inputStyles:e=>({outline:"none",borderColor:e.colors[e.primaryColor][typeof e.primaryShade=="object"?e.primaryShade[e.colorScheme]:e.primaryShade]})}},id=V0(qO);function JO(e){if(e.sheet)return e.sheet;for(var t=0;t0?Te(wo,--ot):0,ao--,Pe===10&&(ao=1,Ls--),Pe}function ut(){return Pe=ot2||Si(Pe)>3?"":" "}function d$(e,t){for(;--t&&ut()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return Di(e,Al()+(t<6&&qt()==32&&ut()==32))}function Fu(e){for(;ut();)switch(Pe){case e:return ot;case 34:case 39:e!==34&&e!==39&&Fu(Pe);break;case 40:e===41&&Fu(e);break;case 92:ut();break}return ot}function p$(e,t){for(;ut()&&e+Pe!==57;)if(e+Pe===84&&qt()===47)break;return"/*"+Di(t,ot-1)+"*"+As(e===47?e:ut())}function m$(e){for(;!Si(qt());)ut();return Di(e,ot)}function v$(e){return Y0(Ml("",null,null,null,[""],e=K0(e),0,[0],e))}function Ml(e,t,r,n,o,i,l,a,s){for(var c=0,f=0,u=l,d=0,g=0,w=0,h=1,b=1,m=1,p=0,y="",_=o,P=i,$=n,O=y;b;)switch(w=p,p=ut()){case 40:if(w!=108&&Te(O,u-1)==58){Mu(O+=q(Ll(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:O+=Ll(p);break;case 9:case 10:case 13:case 32:O+=f$(w);break;case 92:O+=d$(Al()-1,7);continue;case 47:switch(qt()){case 42:case 47:ol(g$(p$(ut(),Al()),t,r),s);break;default:O+="/"}break;case 123*h:a[c++]=Yt(O)*m;case 125*h:case 59:case 0:switch(p){case 0:case 125:b=0;case 59+f:m==-1&&(O=q(O,/\f/g,"")),g>0&&Yt(O)-u&&ol(g>32?om(O+";",n,r,u-1):om(q(O," ","")+";",n,r,u-2),s);break;case 59:O+=";";default:if(ol($=nm(O,t,r,c,f,o,a,y,_=[],P=[],u),i),p===123)if(f===0)Ml(O,t,$,$,_,i,u,a,P);else switch(d===99&&Te(O,3)===110?100:d){case 100:case 108:case 109:case 115:Ml(e,$,$,n&&ol(nm(e,$,$,0,0,o,a,y,o,_=[],u),P),o,P,u,a,n?_:P);break;default:Ml(O,$,$,$,[""],P,0,a,P)}}c=f=g=0,h=m=1,y=O="",u=l;break;case 58:u=1+Yt(O),g=w;default:if(h<1){if(p==123)--h;else if(p==125&&h++==0&&u$()==125)continue}switch(O+=As(p),p*h){case 38:m=f>0?1:(O+="\f",-1);break;case 44:a[c++]=(Yt(O)-1)*m,m=1;break;case 64:qt()===45&&(O+=Ll(ut())),d=qt(),f=u=Yt(y=O+=m$(Al())),p++;break;case 45:w===45&&Yt(O)==2&&(h=0)}}return i}function nm(e,t,r,n,o,i,l,a,s,c,f){for(var u=o-1,d=o===0?i:[""],g=sd(d),w=0,h=0,b=0;w0?d[m]+" "+p:q(p,/&\f/g,d[m])))&&(s[b++]=y);return Ms(e,t,r,o===0?ld:a,s,c,f)}function g$(e,t,r){return Ms(e,t,r,B0,As(c$()),bi(e,2,-2),0)}function om(e,t,r,n){return Ms(e,t,r,ad,bi(e,0,n),bi(e,n+1,-1),n)}function Zn(e,t){for(var r="",n=sd(e),o=0;o6)switch(Te(e,t+1)){case 109:if(Te(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+fa+(Te(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Mu(e,"stretch")?G0(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Te(e,t+1)!==115)break;case 6444:switch(Te(e,Yt(e)-3-(~Mu(e,"!important")&&10))){case 107:return q(e,":",":"+Z)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(Te(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Te(e,t+11)){case 114:return Z+e+He+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+He+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+He+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+He+e+e}return e}var x$=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ad:t.return=G0(t.value,t.length);break;case H0:return Zn([zo(t,{value:q(t.value,"@","@"+Z)})],o);case ld:if(t.length)return s$(t.props,function(i){switch(a$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zn([zo(t,{props:[q(i,/:(read-\w+)/,":"+fa+"$1")]})],o);case"::placeholder":return Zn([zo(t,{props:[q(i,/:(plac\w+)/,":"+Z+"input-$1")]}),zo(t,{props:[q(i,/:(plac\w+)/,":"+fa+"$1")]}),zo(t,{props:[q(i,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},E$=[x$],Q0=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var b=h.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||E$,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var b=h.getAttribute("data-emotion").split(" "),m=1;m=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var F$={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},V$=/[A-Z]|^ms/g,B$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,t1=function(t){return t.charCodeAt(1)===45},am=function(t){return t!=null&&typeof t!="boolean"},Cc=_$(function(e){return t1(e)?e:e.replace(V$,"-$&").toLowerCase()}),sm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(B$,function(n,o,i){return Gt={name:o,styles:i,next:Gt},o})}return F$[t]!==1&&!t1(t)&&typeof r=="number"&&r!==0?r+"px":r};function Pi(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Gt={name:r.name,styles:r.styles,next:Gt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Gt={name:n.name,styles:n.styles,next:Gt},n=n.next;var o=r.styles+";";return o}return H$(e,t,r)}case"function":{if(e!==void 0){var i=Gt,l=r(e);return Gt=i,Pi(e,t,l)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function H$(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ot in e?X$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tx=(e,t)=>{for(var r in t||(t={}))J$.call(t,r)&&dm(e,r,t[r]);if(fm)for(var r of fm(t))ex.call(t,r)&&dm(e,r,t[r]);return e},rx=(e,t)=>Z$(e,q$(t));function nx({theme:e}){return S.createElement(Ii,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:e.colorScheme==="dark"?"dark":"light"},body:rx(tx({},e.fn.fontStyles()),{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,fontSize:e.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}function Ao(e,t,r,n=x){Object.keys(t).forEach(o=>{e[`--mantine-${r}-${o}`]=n(t[o])})}function ox({theme:e}){const t={"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-transition-timing-function":e.transitionTimingFunction,"--mantine-line-height":`${e.lineHeight}`,"--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}`};Ao(t,e.shadows,"shadow"),Ao(t,e.fontSizes,"font-size"),Ao(t,e.radius,"radius"),Ao(t,e.spacing,"spacing"),Ao(t,e.breakpoints,"breakpoints",cr),Object.keys(e.colors).forEach(n=>{e.colors[n].forEach((o,i)=>{t[`--mantine-color-${n}-${i}`]=o})});const r=e.headings.sizes;return Object.keys(r).forEach(n=>{t[`--mantine-${n}-font-size`]=r[n].fontSize,t[`--mantine-${n}-line-height`]=`${r[n].lineHeight}`}),S.createElement(Ii,{styles:{":root":t}})}var ix=Object.defineProperty,lx=Object.defineProperties,ax=Object.getOwnPropertyDescriptors,pm=Object.getOwnPropertySymbols,sx=Object.prototype.hasOwnProperty,cx=Object.prototype.propertyIsEnumerable,mm=(e,t,r)=>t in e?ix(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ht=(e,t)=>{for(var r in t||(t={}))sx.call(t,r)&&mm(e,r,t[r]);if(pm)for(var r of pm(t))cx.call(t,r)&&mm(e,r,t[r]);return e},kc=(e,t)=>lx(e,ax(t));function ux(e,t){var r;if(!t)return e;const n=Object.keys(e).reduce((o,i)=>{if(i==="headings"&&t.headings){const l=t.headings.sizes?Object.keys(e.headings.sizes).reduce((a,s)=>(a[s]=Ht(Ht({},e.headings.sizes[s]),t.headings.sizes[s]),a),{}):e.headings.sizes;return kc(Ht({},o),{headings:kc(Ht(Ht({},e.headings),t.headings),{sizes:l})})}if(i==="breakpoints"&&t.breakpoints){const l=Ht(Ht({},e.breakpoints),t.breakpoints);return kc(Ht({},o),{breakpoints:Object.fromEntries(Object.entries(l).sort((a,s)=>Jt(a[1])-Jt(s[1])))})}return o[i]=typeof t[i]=="object"?Ht(Ht({},e[i]),t[i]):typeof t[i]=="number"||typeof t[i]=="boolean"||typeof t[i]=="function"?t[i]:t[i]||e[i],o},{});if(t!=null&&t.fontFamily&&!((r=t==null?void 0:t.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=t.fontFamily),!(n.primaryColor in n.colors))throw new Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");return n}function fx(e,t){return V0(ux(e,t))}function n1(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}const dx={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:`${x(1)} dotted ButtonText`},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"}};function px(){return S.createElement(Ii,{styles:dx})}var mx=Object.defineProperty,vm=Object.getOwnPropertySymbols,vx=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable,gm=(e,t,r)=>t in e?mx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ri=(e,t)=>{for(var r in t||(t={}))vx.call(t,r)&&gm(e,r,t[r]);if(vm)for(var r of vm(t))gx.call(t,r)&&gm(e,r,t[r]);return e};const da=v.createContext({theme:id});function gt(){var e;return((e=v.useContext(da))==null?void 0:e.theme)||id}function yx(e){const t=gt(),r=n=>{var o,i,l,a;return{styles:((o=t.components[n])==null?void 0:o.styles)||{},classNames:((i=t.components[n])==null?void 0:i.classNames)||{},variants:(l=t.components[n])==null?void 0:l.variants,sizes:(a=t.components[n])==null?void 0:a.sizes}};return Array.isArray(e)?e.map(r):[r(e)]}function o1(){var e;return(e=v.useContext(da))==null?void 0:e.emotionCache}function K(e,t,r){var n;const o=gt(),i=(n=o.components[e])==null?void 0:n.defaultProps,l=typeof i=="function"?i(o):i;return ri(ri(ri({},t),l),n1(r))}function i1({theme:e,emotionCache:t,withNormalizeCSS:r=!1,withGlobalStyles:n=!1,withCSSVariables:o=!1,inherit:i=!1,children:l}){const a=v.useContext(da),s=fx(id,i?ri(ri({},a.theme),e):e);return S.createElement(G$,{theme:s},S.createElement(da.Provider,{value:{theme:s,emotionCache:t}},r&&S.createElement(px,null),n&&S.createElement(nx,{theme:s}),o&&S.createElement(ox,{theme:s}),typeof s.globalStyles=="function"&&S.createElement(Ii,{styles:s.globalStyles(s)}),l))}i1.displayName="@mantine/core/MantineProvider";const l1=v.createContext(null);function hx(){const e=v.useContext(l1);if(!e)throw new Error("useMantineColorScheme hook was called outside of context, make sure your app is wrapped with ColorSchemeProvider component");return e}function a1({colorScheme:e,toggleColorScheme:t,children:r}){return S.createElement(l1.Provider,{value:{colorScheme:e,toggleColorScheme:t}},r)}a1.displayName="@mantine/core/ColorSchemeProvider";const wx={app:100,modal:200,popover:300,overlay:400,max:9999};function _o(e){return wx[e]}function _x(e,t){const r=v.useRef();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map((n,o)=>n===t[o]).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}const bx=Q0({key:"mantine",prepend:!0});function Sx(){return o1()||bx}var Px=Object.defineProperty,ym=Object.getOwnPropertySymbols,Ox=Object.prototype.hasOwnProperty,$x=Object.prototype.propertyIsEnumerable,hm=(e,t,r)=>t in e?Px(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xx=(e,t)=>{for(var r in t||(t={}))Ox.call(t,r)&&hm(e,r,t[r]);if(ym)for(var r of ym(t))$x.call(t,r)&&hm(e,r,t[r]);return e};const Nc="ref";function Ex(e){let t;if(e.length!==1)return{args:e,ref:t};const[r]=e;if(!(r instanceof Object))return{args:e,ref:t};if(!(Nc in r))return{args:e,ref:t};t=r[Nc];const n=xx({},r);return delete n[Nc],{args:[n],ref:t}}const{cssFactory:Cx}=(()=>{function e(r,n,o){const i=[],l=A$(r,i,o);return i.length<2?o:l+n(i)}function t(r){const{cache:n}=r,o=(...l)=>{const{ref:a,args:s}=Ex(l),c=dd(s,n.registered);return e1(n,c,!1),`${n.key}-${c.name}${a===void 0?"":` ${a}`}`};return{css:o,cx:(...l)=>e(n.registered,o,A0(l))}}return{cssFactory:t}})();function s1(){const e=Sx();return _x(()=>Cx({cache:e}),[e])}function kx({cx:e,classes:t,context:r,classNames:n,name:o,cache:i}){const l=r.reduce((a,s)=>(Object.keys(s.classNames).forEach(c=>{typeof a[c]!="string"?a[c]=`${s.classNames[c]}`:a[c]=`${a[c]} ${s.classNames[c]}`}),a),{});return Object.keys(t).reduce((a,s)=>(a[s]=e(t[s],l[s],n!=null&&n[s],Array.isArray(o)?o.filter(Boolean).map(c=>`${(i==null?void 0:i.key)||"mantine"}-${c}-${s}`).join(" "):o?`${(i==null?void 0:i.key)||"mantine"}-${o}-${s}`:null),a),{})}var Nx=Object.defineProperty,wm=Object.getOwnPropertySymbols,Rx=Object.prototype.hasOwnProperty,Dx=Object.prototype.propertyIsEnumerable,_m=(e,t,r)=>t in e?Nx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rc=(e,t)=>{for(var r in t||(t={}))Rx.call(t,r)&&_m(e,r,t[r]);if(wm)for(var r of wm(t))Dx.call(t,r)&&_m(e,r,t[r]);return e};function Bu(e,t){return t&&Object.keys(t).forEach(r=>{e[r]?e[r]=Rc(Rc({},e[r]),t[r]):e[r]=Rc({},t[r])}),e}function bm(e,t,r,n){const o=i=>typeof i=="function"?i(t,r||{},n):i||{};return Array.isArray(e)?e.map(i=>o(i.styles)).reduce((i,l)=>Bu(i,l),{}):o(e)}function Ix({ctx:e,theme:t,params:r,variant:n,size:o}){return e.reduce((i,l)=>(l.variants&&n in l.variants&&Bu(i,l.variants[n](t,r,{variant:n,size:o})),l.sizes&&o in l.sizes&&Bu(i,l.sizes[o](t,r,{variant:n,size:o})),i),{})}function J(e){const t=typeof e=="function"?e:()=>e;function r(n,o){const i=gt(),l=yx(o==null?void 0:o.name),a=o1(),s={variant:o==null?void 0:o.variant,size:o==null?void 0:o.size},{css:c,cx:f}=s1(),u=t(i,n,s),d=bm(o==null?void 0:o.styles,i,n,s),g=bm(l,i,n,s),w=Ix({ctx:l,theme:i,params:n,variant:o==null?void 0:o.variant,size:o==null?void 0:o.size}),h=Object.fromEntries(Object.keys(u).map(b=>{const m=f({[c(u[b])]:!(o!=null&&o.unstyled)},c(w[b]),c(g[b]),c(d[b]));return[b,m]}));return{classes:kx({cx:f,classes:h,context:l,classNames:o==null?void 0:o.classNames,name:o==null?void 0:o.name,cache:a}),cx:f,theme:i}}return r}function Hr(e){return`___ref-${e||""}`}function jx({styles:e}){const t=gt();return S.createElement(Ii,{styles:Q$(typeof e=="function"?e(t):e)})}var Tx=Object.defineProperty,zx=Object.defineProperties,Ax=Object.getOwnPropertyDescriptors,Sm=Object.getOwnPropertySymbols,Lx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,Pm=(e,t,r)=>t in e?Tx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lo=(e,t)=>{for(var r in t||(t={}))Lx.call(t,r)&&Pm(e,r,t[r]);if(Sm)for(var r of Sm(t))Mx.call(t,r)&&Pm(e,r,t[r]);return e},Mo=(e,t)=>zx(e,Ax(t));const Fo={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${x(10)})`},transitionProperty:"transform, opacity"},il={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},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(-${x(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(${x(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(${x(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${x(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:Mo(Lo({},Fo),{common:{transformOrigin:"center center"}}),"pop-bottom-left":Mo(Lo({},Fo),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":Mo(Lo({},Fo),{common:{transformOrigin:"bottom right"}}),"pop-top-left":Mo(Lo({},Fo),{common:{transformOrigin:"top left"}}),"pop-top-right":Mo(Lo({},Fo),{common:{transformOrigin:"top right"}})},Om=["mousedown","touchstart"];function Fx(e,t,r){const n=v.useRef();return v.useEffect(()=>{const o=i=>{const{target:l}=i??{};if(Array.isArray(r)){const a=(l==null?void 0:l.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(l)&&l.tagName!=="HTML";r.every(c=>!!c&&!i.composedPath().includes(c))&&!a&&e()}else n.current&&!n.current.contains(l)&&e()};return(t||Om).forEach(i=>document.addEventListener(i,o)),()=>{(t||Om).forEach(i=>document.removeEventListener(i,o))}},[n,e,r]),n}function Vx(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function Bx(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Hx(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[n,o]=v.useState(r?t:Bx(e)),i=v.useRef();return v.useEffect(()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),Vx(i.current,l=>o(l.matches))},[e]),n}const c1=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Kr(e,t){const r=v.useRef(!1);v.useEffect(()=>()=>{r.current=!1},[]),v.useEffect(()=>{if(r.current)return e();r.current=!0},t)}function Wx({opened:e,shouldReturnFocus:t=!0}){const r=v.useRef(),n=()=>{var o;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((o=r.current)==null||o.focus({preventScroll:!0}))};return Kr(()=>{let o=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",i),e?r.current=document.activeElement:t&&(o=window.setTimeout(n,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",i)}},[e,t]),n}const Ux=/input|select|textarea|button|object/,u1="a, input, select, textarea, button, object, [tabindex]";function Kx(e){return e.style.display==="none"}function Yx(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(Kx(r))return!1;r=r.parentNode}return!0}function f1(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function Hu(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(f1(e));return(Ux.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&Yx(e)}function d1(e){const t=f1(e);return(Number.isNaN(t)||t>=0)&&Hu(e)}function Gx(e){return Array.from(e.querySelectorAll(u1)).filter(d1)}function Qx(e,t){const r=Gx(e);if(!r.length){t.preventDefault();return}const n=r[t.shiftKey?0:r.length-1],o=e.getRootNode();if(!(n===o.activeElement||e===o.activeElement))return;t.preventDefault();const l=r[t.shiftKey?r.length-1:0];l&&l.focus()}function pd(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function Xx(e,t="body > :not(script)"){const r=pd(),n=Array.from(document.querySelectorAll(t)).map(o=>{var i;if((i=o==null?void 0:o.shadowRoot)!=null&&i.contains(e)||o.contains(e))return;const l=o.getAttribute("aria-hidden"),a=o.getAttribute("data-hidden"),s=o.getAttribute("data-focus-id");return o.setAttribute("data-focus-id",r),l===null||l==="false"?o.setAttribute("aria-hidden","true"):!a&&!s&&o.setAttribute("data-hidden",l),{node:o,ariaHidden:a||null}});return()=>{n.forEach(o=>{!o||r!==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"))})}}function Zx(e=!0){const t=v.useRef(),r=v.useRef(null),n=i=>{let l=i.querySelector("[data-autofocus]");if(!l){const a=Array.from(i.querySelectorAll(u1));l=a.find(d1)||a.find(Hu)||null,!l&&Hu(i)&&(l=i)}l&&l.focus({preventScroll:!0})},o=v.useCallback(i=>{if(e){if(i===null){r.current&&(r.current(),r.current=null);return}r.current=Xx(i),t.current!==i&&(i?(setTimeout(()=>{i.getRootNode()&&n(i)}),t.current=i):t.current=null)}},[e]);return v.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>n(t.current));const i=l=>{l.key==="Tab"&&t.current&&Qx(t.current,l)};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i),r.current&&r.current()}},[e]),o}const qx=S.useId||(()=>{});function Jx(){const e=qx();return e?`mantine-${e.replace(/:/g,"")}`:""}function bn(e){const t=Jx(),[r,n]=v.useState(t);return c1(()=>{n(pd())},[]),typeof e=="string"?e:typeof window>"u"?t:r}function pa(e,t,r){v.useEffect(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[e,t])}function eE(e,t){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${t}: Failed to serialize the value`)}}function tE(e){try{return JSON.parse(e)}catch{return e}}function rE(e,t){const r="mantine-local-storage";return function({key:o,defaultValue:i=void 0,getInitialValueInEffect:l=!0,deserialize:a=tE,serialize:s=c=>eE(c,t)}){const c=v.useCallback(w=>{if(typeof window>"u"||!(e in window)||window[e]===null||w)return i;const h=window[e].getItem(o);return h!==null?a(h):i},[o,i]),[f,u]=v.useState(c(l)),d=v.useCallback(w=>{w instanceof Function?u(h=>{const b=w(h);return window[e].setItem(o,s(b)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:w(h)}})),b}):(window[e].setItem(o,s(w)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:w}})),u(w))},[o]),g=v.useCallback(()=>{window[e].removeItem(o),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:i}}))},[]);return pa("storage",w=>{var h;w.storageArea===window[e]&&w.key===o&&u(a((h=w.newValue)!=null?h:void 0))}),pa(r,w=>{w.detail.key===o&&u(w.detail.value)}),v.useEffect(()=>{i!==void 0&&f===void 0&&d(i)},[i,f,d]),v.useEffect(()=>{l&&u(c())},[o]),[f===void 0?i:f,d,g]}}function nE(e){return rE("localStorage","use-local-storage")(e)}function p1(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function oE(...e){return t=>{e.forEach(r=>p1(r,t))}}function md(...e){return v.useCallback(oE(...e),e)}function so({value:e,defaultValue:t,finalValue:r,onChange:n=()=>{}}){const[o,i]=v.useState(t!==void 0?t:r),l=a=>{i(a),n==null||n(a)};return e!==void 0?[e,n,!0]:[o,l,!1]}function m1(e,t){return Hx("(prefers-reduced-motion: reduce)",e,t)}const iE=e=>e<.5?2*e*e:-1+(4-2*e)*e,lE=({axis:e,target:t,parent:r,alignment:n,offset:o,isList:i})=>{if(!t||!r&&typeof document>"u")return 0;const l=!!r,s=(r||document.body).getBoundingClientRect(),c=t.getBoundingClientRect(),f=u=>c[u]-s[u];if(e==="y"){const u=f("top");if(u===0)return 0;if(n==="start"){const g=u-o;return g<=c.height*(i?0:1)||!i?g:0}const d=l?s.height:window.innerHeight;if(n==="end"){const g=u+o-d+c.height;return g>=-c.height*(i?0:1)||!i?g:0}return n==="center"?u-d/2+c.height/2:0}if(e==="x"){const u=f("left");if(u===0)return 0;if(n==="start"){const g=u-o;return g<=c.width||!i?g:0}const d=l?s.width:window.innerWidth;if(n==="end"){const g=u+o-d+c.width;return g>=-c.width||!i?g:0}return n==="center"?u-d/2+c.width/2:0}return 0},aE=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;const r=e==="y"?"scrollTop":"scrollLeft";if(t)return t[r];const{body:n,documentElement:o}=document;return n[r]+o[r]},sE=({axis:e,parent:t,distance:r})=>{if(!t&&typeof document>"u")return;const n=e==="y"?"scrollTop":"scrollLeft";if(t)t[n]=r;else{const{body:o,documentElement:i}=document;o[n]=r,i[n]=r}};function cE({duration:e=1250,axis:t="y",onScrollFinish:r,easing:n=iE,offset:o=0,cancelable:i=!0,isList:l=!1}={}){const a=v.useRef(0),s=v.useRef(0),c=v.useRef(!1),f=v.useRef(null),u=v.useRef(null),d=m1(),g=()=>{a.current&&cancelAnimationFrame(a.current)},w=v.useCallback(({alignment:b="start"}={})=>{var m;c.current=!1,a.current&&g();const p=(m=aE({parent:f.current,axis:t}))!=null?m:0,y=lE({parent:f.current,target:u.current,axis:t,alignment:b,offset:o,isList:l})-(f.current?0:p);function _(){s.current===0&&(s.current=performance.now());const $=performance.now()-s.current,O=d||e===0?1:$/e,E=p+y*n(O);sE({parent:f.current,axis:t,distance:E}),!c.current&&O<1?a.current=requestAnimationFrame(_):(typeof r=="function"&&r(),s.current=0,a.current=0,g())}_()},[t,e,n,l,o,r,d]),h=()=>{i&&(c.current=!0)};return pa("wheel",h,{passive:!0}),pa("touchmove",h,{passive:!0}),v.useEffect(()=>g,[]),{scrollableRef:f,targetRef:u,scrollIntoView:w,cancel:g}}var uE=Object.defineProperty,fE=Object.defineProperties,dE=Object.getOwnPropertyDescriptors,$m=Object.getOwnPropertySymbols,pE=Object.prototype.hasOwnProperty,mE=Object.prototype.propertyIsEnumerable,xm=(e,t,r)=>t in e?uE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vE=(e,t)=>{for(var r in t||(t={}))pE.call(t,r)&&xm(e,r,t[r]);if($m)for(var r of $m(t))mE.call(t,r)&&xm(e,r,t[r]);return e},gE=(e,t)=>fE(e,dE(t));function yE(e){const t=e.toLowerCase().split("+").map(i=>i.trim()),r={alt:t.includes("alt"),ctrl:t.includes("ctrl"),meta:t.includes("meta"),mod:t.includes("mod"),shift:t.includes("shift")},n=["alt","ctrl","meta","shift","mod"],o=t.find(i=>!n.includes(i));return gE(vE({},r),{key:o})}function hE(e,t){const{alt:r,ctrl:n,meta:o,mod:i,shift:l,key:a}=e,{altKey:s,ctrlKey:c,metaKey:f,shiftKey:u,key:d}=t;if(r!==s)return!1;if(i){if(!c&&!f)return!1}else if(n!==c||o!==f)return!1;return l!==u?!1:!!(a&&(d.toLowerCase()===a.toLowerCase()||t.code.replace("Key","").toLowerCase()===a.toLowerCase()))}function wE(e){return t=>hE(yE(e),t)}function _E(e,t,r=!1){return e.target instanceof HTMLElement?(r||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function bE(e,t=["INPUT","TEXTAREA","SELECT"],r=!1){v.useEffect(()=>{const n=o=>{e.forEach(([i,l,a={preventDefault:!0}])=>{wE(i)(o)&&_E(o,t,r)&&(a.preventDefault&&o.preventDefault(),l(o))})};return document.documentElement.addEventListener("keydown",n),()=>document.documentElement.removeEventListener("keydown",n)},[e])}function SE(e=!1,t){const{onOpen:r,onClose:n}={},[o,i]=v.useState(e),l=v.useCallback(()=>{i(c=>c||(r==null||r(),!0))},[r]),a=v.useCallback(()=>{i(c=>c&&(n==null||n(),!1))},[n]),s=v.useCallback(()=>{o?a():l()},[a,l,o]);return[o,{open:l,close:a,toggle:s}]}function Em(e){return typeof e!="string"?"":e.charAt(0).toUpperCase()+e.slice(1)}var Cm=Object.getOwnPropertySymbols,PE=Object.prototype.hasOwnProperty,OE=Object.prototype.propertyIsEnumerable,$E=(e,t)=>{var r={};for(var n in e)PE.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Cm)for(var n of Cm(e))t.indexOf(n)<0&&OE.call(e,n)&&(r[n]=e[n]);return r};function ji(e){const t=e,{m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:c,px:f,py:u,pt:d,pb:g,pl:w,pr:h,bg:b,c:m,opacity:p,ff:y,fz:_,fw:P,lts:$,ta:O,lh:E,fs:k,tt:C,td:M,w:A,miw:W,maw:L,h:B,mih:G,mah:ne,bgsz:R,bgp:j,bgr:V,bga:Y,pos:Q,top:Ye,left:ce,bottom:Le,right:me,inset:Me,display:xt}=t,Mt=$E(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display"]);return{systemStyles:n1({m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:c,px:f,py:u,pt:d,pb:g,pl:w,pr:h,bg:b,c:m,opacity:p,ff:y,fz:_,fw:P,lts:$,ta:O,lh:E,fs:k,tt:C,td:M,w:A,miw:W,maw:L,h:B,mih:G,mah:ne,bgsz:R,bgp:j,bgr:V,bga:Y,pos:Q,top:Ye,left:ce,bottom:Le,right:me,inset:Me,display:xt}),rest:Mt}}function xE(e,t){const r=Object.keys(e).filter(n=>n!=="base").sort((n,o)=>Jt(z({size:n,sizes:t.breakpoints}))-Jt(z({size:o,sizes:t.breakpoints})));return"base"in e?["base",...r]:r}function EE({value:e,theme:t,getValue:r,property:n}){if(e==null)return;if(typeof e=="object")return xE(e,t).reduce((l,a)=>{if(a==="base"&&e.base!==void 0){const c=r(e.base,t);return Array.isArray(n)?(n.forEach(f=>{l[f]=c}),l):(l[n]=c,l)}const s=r(e[a],t);return Array.isArray(n)?(l[t.fn.largerThan(a)]={},n.forEach(c=>{l[t.fn.largerThan(a)][c]=s}),l):(l[t.fn.largerThan(a)]={[n]:s},l)},{});const o=r(e,t);return Array.isArray(n)?n.reduce((i,l)=>(i[l]=o,i),{}):{[n]:o}}function CE(e,t){return e==="dimmed"?t.colorScheme==="dark"?t.colors.dark[2]:t.colors.gray[6]:t.fn.variant({variant:"filled",color:e,primaryFallback:!1}).background}function kE(e){return x(e)}function NE(e){return e}function RE(e,t){return z({size:e,sizes:t.fontSizes})}const DE=["-xs","-sm","-md","-lg","-xl"];function IE(e,t){return DE.includes(e)?`calc(${z({size:e.replace("-",""),sizes:t.spacing})} * -1)`:z({size:e,sizes:t.spacing})}const jE={identity:NE,color:CE,size:kE,fontSize:RE,spacing:IE},TE={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"},mx:{type:"spacing",property:["marginRight","marginLeft"]},my:{type:"spacing",property:["marginTop","marginBottom"]},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"},px:{type:"spacing",property:["paddingRight","paddingLeft"]},py:{type:"spacing",property:["paddingTop","paddingBottom"]},bg:{type:"color",property:"background"},c:{type:"color",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"identity",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"identity",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"}};var zE=Object.defineProperty,km=Object.getOwnPropertySymbols,AE=Object.prototype.hasOwnProperty,LE=Object.prototype.propertyIsEnumerable,Nm=(e,t,r)=>t in e?zE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rm=(e,t)=>{for(var r in t||(t={}))AE.call(t,r)&&Nm(e,r,t[r]);if(km)for(var r of km(t))LE.call(t,r)&&Nm(e,r,t[r]);return e};function Dm(e,t,r=TE){return Object.keys(r).reduce((o,i)=>(i in e&&e[i]!==void 0&&o.push(EE({value:e[i],getValue:jE[r[i].type],property:r[i].property,theme:t})),o),[]).reduce((o,i)=>(Object.keys(i).forEach(l=>{typeof i[l]=="object"&&i[l]!==null&&l in o?o[l]=Rm(Rm({},o[l]),i[l]):o[l]=i[l]}),o),{})}function Im(e,t){return typeof e=="function"?e(t):e}function ME(e,t,r){const n=gt(),{css:o,cx:i}=s1();return Array.isArray(e)?i(r,o(Dm(t,n)),e.map(l=>o(Im(l,n)))):i(r,o(Im(e,n)),o(Dm(t,n)))}var FE=Object.defineProperty,ma=Object.getOwnPropertySymbols,v1=Object.prototype.hasOwnProperty,g1=Object.prototype.propertyIsEnumerable,jm=(e,t,r)=>t in e?FE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VE=(e,t)=>{for(var r in t||(t={}))v1.call(t,r)&&jm(e,r,t[r]);if(ma)for(var r of ma(t))g1.call(t,r)&&jm(e,r,t[r]);return e},BE=(e,t)=>{var r={};for(var n in e)v1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ma)for(var n of ma(e))t.indexOf(n)<0&&g1.call(e,n)&&(r[n]=e[n]);return r};const y1=v.forwardRef((e,t)=>{var r=e,{className:n,component:o,style:i,sx:l}=r,a=BE(r,["className","component","style","sx"]);const{systemStyles:s,rest:c}=ji(a),f=o||"div";return S.createElement(f,VE({ref:t,className:ME(l,s,n),style:i},c))});y1.displayName="@mantine/core/Box";const ie=y1;var HE=Object.defineProperty,WE=Object.defineProperties,UE=Object.getOwnPropertyDescriptors,Tm=Object.getOwnPropertySymbols,KE=Object.prototype.hasOwnProperty,YE=Object.prototype.propertyIsEnumerable,zm=(e,t,r)=>t in e?HE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Am=(e,t)=>{for(var r in t||(t={}))KE.call(t,r)&&zm(e,r,t[r]);if(Tm)for(var r of Tm(t))YE.call(t,r)&&zm(e,r,t[r]);return e},GE=(e,t)=>WE(e,UE(t)),QE=J(e=>({root:GE(Am(Am({},e.fn.focusStyles()),e.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:e.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,textDecoration:"none",boxSizing:"border-box"})})),XE=Object.defineProperty,va=Object.getOwnPropertySymbols,h1=Object.prototype.hasOwnProperty,w1=Object.prototype.propertyIsEnumerable,Lm=(e,t,r)=>t in e?XE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ZE=(e,t)=>{for(var r in t||(t={}))h1.call(t,r)&&Lm(e,r,t[r]);if(va)for(var r of va(t))w1.call(t,r)&&Lm(e,r,t[r]);return e},qE=(e,t)=>{var r={};for(var n in e)h1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&va)for(var n of va(e))t.indexOf(n)<0&&w1.call(e,n)&&(r[n]=e[n]);return r};const _1=v.forwardRef((e,t)=>{const r=K("UnstyledButton",{},e),{className:n,component:o="button",unstyled:i,variant:l}=r,a=qE(r,["className","component","unstyled","variant"]),{classes:s,cx:c}=QE(null,{name:"UnstyledButton",unstyled:i,variant:l});return S.createElement(ie,ZE({component:o,ref:t,className:c(s.root,n),type:o==="button"?"button":void 0},a))});_1.displayName="@mantine/core/UnstyledButton";const b1=_1;var JE=Object.defineProperty,eC=Object.defineProperties,tC=Object.getOwnPropertyDescriptors,Mm=Object.getOwnPropertySymbols,rC=Object.prototype.hasOwnProperty,nC=Object.prototype.propertyIsEnumerable,Fm=(e,t,r)=>t in e?JE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wu=(e,t)=>{for(var r in t||(t={}))rC.call(t,r)&&Fm(e,r,t[r]);if(Mm)for(var r of Mm(t))nC.call(t,r)&&Fm(e,r,t[r]);return e},Vm=(e,t)=>eC(e,tC(t));const oC=["subtle","filled","outline","light","default","transparent","gradient"],ll={xs:x(18),sm:x(22),md:x(28),lg:x(34),xl:x(44)};function iC({variant:e,theme:t,color:r,gradient:n}){const o=t.fn.variant({color:r,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:o.background,color:o.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:oC.includes(e)?Wu({border:`${x(1)} solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover})):null}var lC=J((e,{radius:t,color:r,gradient:n},{variant:o,size:i})=>({root:Vm(Wu({position:"relative",borderRadius:e.fn.radius(t),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center",height:z({size:i,sizes:ll}),minHeight:z({size:i,sizes:ll}),width:z({size:i,sizes:ll}),minWidth:z({size:i,sizes:ll})},iC({variant:o,theme:e,color:r,gradient:n})),{"&:active":e.activeStyles,"& [data-action-icon-loader]":{maxWidth:"70%"},"&:disabled, &[data-disabled]":{color:e.colors.gray[e.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),borderColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":Vm(Wu({content:'""'},e.fn.cover(x(-1))),{backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(t),cursor:"not-allowed"})}})})),aC=Object.defineProperty,ga=Object.getOwnPropertySymbols,S1=Object.prototype.hasOwnProperty,P1=Object.prototype.propertyIsEnumerable,Bm=(e,t,r)=>t in e?aC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hm=(e,t)=>{for(var r in t||(t={}))S1.call(t,r)&&Bm(e,r,t[r]);if(ga)for(var r of ga(t))P1.call(t,r)&&Bm(e,r,t[r]);return e},Wm=(e,t)=>{var r={};for(var n in e)S1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ga)for(var n of ga(e))t.indexOf(n)<0&&P1.call(e,n)&&(r[n]=e[n]);return r};function sC(e){var t=e,{size:r,color:n}=t,o=Wm(t,["size","color"]);const i=o,{style:l}=i,a=Wm(i,["style"]);return S.createElement("svg",Hm({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,style:Hm({width:r},l)},a),S.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var cC=Object.defineProperty,ya=Object.getOwnPropertySymbols,O1=Object.prototype.hasOwnProperty,$1=Object.prototype.propertyIsEnumerable,Um=(e,t,r)=>t in e?cC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Km=(e,t)=>{for(var r in t||(t={}))O1.call(t,r)&&Um(e,r,t[r]);if(ya)for(var r of ya(t))$1.call(t,r)&&Um(e,r,t[r]);return e},Ym=(e,t)=>{var r={};for(var n in e)O1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ya)for(var n of ya(e))t.indexOf(n)<0&&$1.call(e,n)&&(r[n]=e[n]);return r};function uC(e){var t=e,{size:r,color:n}=t,o=Ym(t,["size","color"]);const i=o,{style:l}=i,a=Ym(i,["style"]);return S.createElement("svg",Km({viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n,style:Km({width:r,height:r},l)},a),S.createElement("g",{fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},S.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),S.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},S.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var fC=Object.defineProperty,ha=Object.getOwnPropertySymbols,x1=Object.prototype.hasOwnProperty,E1=Object.prototype.propertyIsEnumerable,Gm=(e,t,r)=>t in e?fC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qm=(e,t)=>{for(var r in t||(t={}))x1.call(t,r)&&Gm(e,r,t[r]);if(ha)for(var r of ha(t))E1.call(t,r)&&Gm(e,r,t[r]);return e},Xm=(e,t)=>{var r={};for(var n in e)x1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ha)for(var n of ha(e))t.indexOf(n)<0&&E1.call(e,n)&&(r[n]=e[n]);return r};function dC(e){var t=e,{size:r,color:n}=t,o=Xm(t,["size","color"]);const i=o,{style:l}=i,a=Xm(i,["style"]);return S.createElement("svg",Qm({viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n,style:Qm({width:r},l)},a),S.createElement("circle",{cx:"15",cy:"15",r:"15"},S.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},S.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("circle",{cx:"105",cy:"15",r:"15"},S.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var pC=Object.defineProperty,wa=Object.getOwnPropertySymbols,C1=Object.prototype.hasOwnProperty,k1=Object.prototype.propertyIsEnumerable,Zm=(e,t,r)=>t in e?pC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mC=(e,t)=>{for(var r in t||(t={}))C1.call(t,r)&&Zm(e,r,t[r]);if(wa)for(var r of wa(t))k1.call(t,r)&&Zm(e,r,t[r]);return e},vC=(e,t)=>{var r={};for(var n in e)C1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&wa)for(var n of wa(e))t.indexOf(n)<0&&k1.call(e,n)&&(r[n]=e[n]);return r};const Dc={bars:sC,oval:uC,dots:dC},gC={xs:x(18),sm:x(22),md:x(36),lg:x(44),xl:x(58)},yC={size:"md"};function vd(e){const t=K("Loader",yC,e),{size:r,color:n,variant:o}=t,i=vC(t,["size","color","variant"]),l=gt(),a=o in Dc?o:l.loader;return S.createElement(ie,mC({role:"presentation",component:Dc[a]||Dc.bars,size:z({size:r,sizes:gC}),color:l.fn.variant({variant:"filled",primaryFallback:!1,color:n||l.primaryColor}).background},i))}vd.displayName="@mantine/core/Loader";var hC=Object.defineProperty,_a=Object.getOwnPropertySymbols,N1=Object.prototype.hasOwnProperty,R1=Object.prototype.propertyIsEnumerable,qm=(e,t,r)=>t in e?hC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jm=(e,t)=>{for(var r in t||(t={}))N1.call(t,r)&&qm(e,r,t[r]);if(_a)for(var r of _a(t))R1.call(t,r)&&qm(e,r,t[r]);return e},wC=(e,t)=>{var r={};for(var n in e)N1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_a)for(var n of _a(e))t.indexOf(n)<0&&R1.call(e,n)&&(r[n]=e[n]);return r};const _C={color:"gray",size:"md",variant:"subtle"},D1=v.forwardRef((e,t)=>{const r=K("ActionIcon",_C,e),{className:n,color:o,children:i,radius:l,size:a,variant:s,gradient:c,disabled:f,loaderProps:u,loading:d,unstyled:g,__staticSelector:w}=r,h=wC(r,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled","__staticSelector"]),{classes:b,cx:m,theme:p}=lC({radius:l,color:o,gradient:c},{name:["ActionIcon",w],unstyled:g,size:a,variant:s}),y=S.createElement(vd,Jm({color:p.fn.variant({color:o,variant:s}).color,size:"100%","data-action-icon-loader":!0},u));return S.createElement(b1,Jm({className:m(b.root,n),ref:t,disabled:f,"data-disabled":f||void 0,"data-loading":d||void 0,unstyled:g},h),d?y:i)});D1.displayName="@mantine/core/ActionIcon";const Uu=D1;var bC=Object.defineProperty,SC=Object.defineProperties,PC=Object.getOwnPropertyDescriptors,ba=Object.getOwnPropertySymbols,I1=Object.prototype.hasOwnProperty,j1=Object.prototype.propertyIsEnumerable,ev=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,OC=(e,t)=>{for(var r in t||(t={}))I1.call(t,r)&&ev(e,r,t[r]);if(ba)for(var r of ba(t))j1.call(t,r)&&ev(e,r,t[r]);return e},$C=(e,t)=>SC(e,PC(t)),xC=(e,t)=>{var r={};for(var n in e)I1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ba)for(var n of ba(e))t.indexOf(n)<0&&j1.call(e,n)&&(r[n]=e[n]);return r};function T1(e){const t=K("Portal",{},e),{children:r,target:n,className:o,innerRef:i}=t,l=xC(t,["children","target","className","innerRef"]),a=gt(),[s,c]=v.useState(!1),f=v.useRef();return c1(()=>(c(!0),f.current=n?typeof n=="string"?document.querySelector(n):n:document.createElement("div"),n||document.body.appendChild(f.current),()=>{!n&&document.body.removeChild(f.current)}),[n]),s?zs.createPortal(S.createElement("div",$C(OC({className:o,dir:a.dir},l),{ref:i}),r),f.current):null}T1.displayName="@mantine/core/Portal";var EC=Object.defineProperty,Sa=Object.getOwnPropertySymbols,z1=Object.prototype.hasOwnProperty,A1=Object.prototype.propertyIsEnumerable,tv=(e,t,r)=>t in e?EC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,CC=(e,t)=>{for(var r in t||(t={}))z1.call(t,r)&&tv(e,r,t[r]);if(Sa)for(var r of Sa(t))A1.call(t,r)&&tv(e,r,t[r]);return e},kC=(e,t)=>{var r={};for(var n in e)z1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sa)for(var n of Sa(e))t.indexOf(n)<0&&A1.call(e,n)&&(r[n]=e[n]);return r};function gd(e){var t=e,{withinPortal:r=!0,children:n}=t,o=kC(t,["withinPortal","children"]);return r?S.createElement(T1,CC({},o),n):S.createElement(S.Fragment,null,n)}gd.displayName="@mantine/core/OptionalPortal";var NC=Object.defineProperty,RC=Object.defineProperties,DC=Object.getOwnPropertyDescriptors,rv=Object.getOwnPropertySymbols,IC=Object.prototype.hasOwnProperty,jC=Object.prototype.propertyIsEnumerable,nv=(e,t,r)=>t in e?NC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ic=(e,t)=>{for(var r in t||(t={}))IC.call(t,r)&&nv(e,r,t[r]);if(rv)for(var r of rv(t))jC.call(t,r)&&nv(e,r,t[r]);return e},ov=(e,t)=>RC(e,DC(t));function TC({variant:e,color:t,theme:r}){if(e==="filled")return{backgroundColor:r.fn.variant({variant:"filled",color:t}).background,color:r.white};if(e==="outline"){const n=r.fn.variant({variant:"outline",color:t});return{color:n.color,borderColor:n.border,backgroundColor:r.colorScheme==="dark"?r.colors.dark[6]:r.white}}if(e==="light"){const n=r.fn.variant({variant:"light",color:t});return{backgroundColor:n.background,color:n.color}}return null}var zC=J((e,{radius:t,color:r},{variant:n})=>({root:Ic(ov(Ic({},e.fn.fontStyles()),{position:"relative",overflow:"hidden",paddingTop:e.spacing.sm,paddingBottom:e.spacing.sm,paddingLeft:e.spacing.md,paddingRight:e.spacing.sm,borderRadius:e.fn.radius(t),border:`${x(1)} solid transparent`}),TC({variant:n,color:r,theme:e})),wrapper:{display:"flex"},body:{flex:1},title:{boxSizing:"border-box",margin:0,marginBottom:e.spacing.xs,display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,fontWeight:700,"&[data-with-close-button]":{paddingRight:e.spacing.md}},label:{display:"block",overflow:"hidden",textOverflow:"ellipsis"},icon:{lineHeight:1,width:x(20),height:x(20),display:"flex",alignItems:"center",justifyContent:"flex-start",marginRight:e.spacing.md,marginTop:1},message:ov(Ic({},e.fn.fontStyles()),{lineHeight:e.lineHeight,textOverflow:"ellipsis",overflow:"hidden",fontSize:e.fontSizes.sm,color:n==="filled"?e.white:e.colorScheme==="dark"?n==="light"?e.white:e.colors.dark[0]:e.black}),closeButton:{width:x(10),height:x(10),color:n==="filled"?e.white:e.colorScheme==="dark"?n==="light"?e.white:e.colors.dark[0]:e.black}})),AC=Object.defineProperty,Pa=Object.getOwnPropertySymbols,L1=Object.prototype.hasOwnProperty,M1=Object.prototype.propertyIsEnumerable,iv=(e,t,r)=>t in e?AC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lv=(e,t)=>{for(var r in t||(t={}))L1.call(t,r)&&iv(e,r,t[r]);if(Pa)for(var r of Pa(t))M1.call(t,r)&&iv(e,r,t[r]);return e},LC=(e,t)=>{var r={};for(var n in e)L1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Pa)for(var n of Pa(e))t.indexOf(n)<0&&M1.call(e,n)&&(r[n]=e[n]);return r};function F1(e){const t=e,{width:r,height:n,style:o}=t,i=LC(t,["width","height","style"]);return S.createElement("svg",lv({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:lv({width:r,height:n},o)},i),S.createElement("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"}))}F1.displayName="@mantine/core/CloseIcon";var MC=Object.defineProperty,Oa=Object.getOwnPropertySymbols,V1=Object.prototype.hasOwnProperty,B1=Object.prototype.propertyIsEnumerable,av=(e,t,r)=>t in e?MC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,FC=(e,t)=>{for(var r in t||(t={}))V1.call(t,r)&&av(e,r,t[r]);if(Oa)for(var r of Oa(t))B1.call(t,r)&&av(e,r,t[r]);return e},VC=(e,t)=>{var r={};for(var n in e)V1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Oa)for(var n of Oa(e))t.indexOf(n)<0&&B1.call(e,n)&&(r[n]=e[n]);return r};const BC={xs:x(12),sm:x(16),md:x(20),lg:x(28),xl:x(34)},HC={size:"sm"},H1=v.forwardRef((e,t)=>{const r=K("CloseButton",HC,e),{iconSize:n,size:o,children:i}=r,l=VC(r,["iconSize","size","children"]),a=x(n||BC[o]);return S.createElement(Uu,FC({ref:t,__staticSelector:"CloseButton",size:o},l),i||S.createElement(F1,{width:a,height:a}))});H1.displayName="@mantine/core/CloseButton";const W1=H1;var WC=Object.defineProperty,$a=Object.getOwnPropertySymbols,U1=Object.prototype.hasOwnProperty,K1=Object.prototype.propertyIsEnumerable,sv=(e,t,r)=>t in e?WC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UC=(e,t)=>{for(var r in t||(t={}))U1.call(t,r)&&sv(e,r,t[r]);if($a)for(var r of $a(t))K1.call(t,r)&&sv(e,r,t[r]);return e},KC=(e,t)=>{var r={};for(var n in e)U1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$a)for(var n of $a(e))t.indexOf(n)<0&&K1.call(e,n)&&(r[n]=e[n]);return r};const YC={variant:"light"},Y1=v.forwardRef((e,t)=>{const r=K("Alert",YC,e),{id:n,className:o,title:i,variant:l,children:a,color:s,classNames:c,icon:f,styles:u,onClose:d,radius:g,withCloseButton:w,closeButtonLabel:h,unstyled:b}=r,m=KC(r,["id","className","title","variant","children","color","classNames","icon","styles","onClose","radius","withCloseButton","closeButtonLabel","unstyled"]),{classes:p,cx:y}=zC({color:s,radius:g},{classNames:c,styles:u,unstyled:b,variant:l,name:"Alert"}),_=bn(n),P=i&&`${_}-title`,$=`${_}-body`;return S.createElement(ie,UC({id:_,role:"alert","aria-labelledby":P,"aria-describedby":$,className:y(p.root,p[l],o),ref:t},m),S.createElement("div",{className:p.wrapper},f&&S.createElement("div",{className:p.icon},f),S.createElement("div",{className:p.body},i&&S.createElement("div",{className:p.title,"data-with-close-button":w||void 0},S.createElement("span",{id:P,className:p.label},i)),S.createElement("div",{id:$,className:p.message},a)),w&&S.createElement(W1,{className:p.closeButton,onClick:d,variant:"transparent",size:16,iconSize:16,"aria-label":h})))});Y1.displayName="@mantine/core/Alert";var GC=Object.defineProperty,QC=Object.defineProperties,XC=Object.getOwnPropertyDescriptors,cv=Object.getOwnPropertySymbols,ZC=Object.prototype.hasOwnProperty,qC=Object.prototype.propertyIsEnumerable,uv=(e,t,r)=>t in e?GC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,al=(e,t)=>{for(var r in t||(t={}))ZC.call(t,r)&&uv(e,r,t[r]);if(cv)for(var r of cv(t))qC.call(t,r)&&uv(e,r,t[r]);return e},JC=(e,t)=>QC(e,XC(t));function e2({underline:e,strikethrough:t}){const r=[];return e&&r.push("underline"),t&&r.push("line-through"),r.length>0?r.join(" "):"none"}function t2({theme:e,color:t}){return t==="dimmed"?e.fn.dimmed():typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?e.fn.variant({variant:"filled",color:t}).background:t||"inherit"}function r2(e){return typeof e=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}function n2({theme:e,truncate:t}){return t==="start"?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",direction:e.dir==="ltr"?"rtl":"ltr",textAlign:e.dir==="ltr"?"right":"left"}:t?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:null}var o2=J((e,{color:t,lineClamp:r,truncate:n,inline:o,inherit:i,underline:l,gradient:a,weight:s,transform:c,align:f,strikethrough:u,italic:d},{size:g})=>{const w=e.fn.variant({variant:"gradient",gradient:a});return{root:JC(al(al(al(al({},e.fn.fontStyles()),e.fn.focusStyles()),r2(r)),n2({theme:e,truncate:n})),{color:t2({color:t,theme:e}),fontFamily:i?"inherit":e.fontFamily,fontSize:i||g===void 0?"inherit":z({size:g,sizes:e.fontSizes}),lineHeight:i?"inherit":o?1:e.lineHeight,textDecoration:e2({underline:l,strikethrough:u}),WebkitTapHighlightColor:"transparent",fontWeight:i?"inherit":s,textTransform:c,textAlign:f,fontStyle:d?"italic":void 0}),gradient:{backgroundImage:w.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}}),i2=Object.defineProperty,xa=Object.getOwnPropertySymbols,G1=Object.prototype.hasOwnProperty,Q1=Object.prototype.propertyIsEnumerable,fv=(e,t,r)=>t in e?i2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,l2=(e,t)=>{for(var r in t||(t={}))G1.call(t,r)&&fv(e,r,t[r]);if(xa)for(var r of xa(t))Q1.call(t,r)&&fv(e,r,t[r]);return e},a2=(e,t)=>{var r={};for(var n in e)G1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xa)for(var n of xa(e))t.indexOf(n)<0&&Q1.call(e,n)&&(r[n]=e[n]);return r};const s2={variant:"text"},X1=v.forwardRef((e,t)=>{const r=K("Text",s2,e),{className:n,size:o,weight:i,transform:l,color:a,align:s,variant:c,lineClamp:f,truncate:u,gradient:d,inline:g,inherit:w,underline:h,strikethrough:b,italic:m,classNames:p,styles:y,unstyled:_,span:P,__staticSelector:$}=r,O=a2(r,["className","size","weight","transform","color","align","variant","lineClamp","truncate","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span","__staticSelector"]),{classes:E,cx:k}=o2({color:a,lineClamp:f,truncate:u,inline:g,inherit:w,underline:h,strikethrough:b,italic:m,weight:i,transform:l,align:s,gradient:d},{unstyled:_,name:$||"Text",variant:c,size:o});return S.createElement(ie,l2({ref:t,className:k(E.root,{[E.gradient]:c==="gradient"},n),component:P?"span":"div"},O))});X1.displayName="@mantine/core/Text";const yn=X1,Z1=v.createContext({zIndex:1e3,fixed:!1,layout:"default"}),c2=Z1.Provider;function u2(){return v.useContext(Z1)}function q1(e,t){if(!e)return[];const r=Object.keys(e).filter(n=>n!=="base").map(n=>[z({size:n,sizes:t.breakpoints,units:"em"}),e[n]]);return r.sort((n,o)=>Jt(n[0])-Jt(o[0])),r}var f2=Object.defineProperty,d2=Object.defineProperties,p2=Object.getOwnPropertyDescriptors,dv=Object.getOwnPropertySymbols,m2=Object.prototype.hasOwnProperty,v2=Object.prototype.propertyIsEnumerable,pv=(e,t,r)=>t in e?f2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jc=(e,t)=>{for(var r in t||(t={}))m2.call(t,r)&&pv(e,r,t[r]);if(dv)for(var r of dv(t))v2.call(t,r)&&pv(e,r,t[r]);return e},mv=(e,t)=>d2(e,p2(t)),g2=J((e,{height:t,fixed:r,position:n,zIndex:o,borderPosition:i,layout:l})=>{const a=typeof t=="object"&&t!==null?q1(t,e).reduce((s,[c,f])=>(s[`@media (min-width: ${cr(c)})`]={height:x(f),minHeight:x(f)},s),{}):null;return{root:mv(jc(mv(jc(jc({},e.fn.fontStyles()),n),{zIndex:o,left:l==="alt"?"var(--mantine-navbar-width, 0)":0,right:l==="alt"?"var(--mantine-aside-width, 0)":0,height:typeof t=="object"?x(t==null?void 0:t.base)||"100%":x(t),maxHeight:typeof t=="object"?x(t==null?void 0:t.base)||"100%":x(t),position:r?"fixed":"static",boxSizing:"border-box",backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white}),a),{borderBottom:i==="bottom"?`${x(1)} solid ${e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[2]}`:void 0,borderTop:i==="top"?`${x(1)} solid ${e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[2]}`:void 0})}}),y2=Object.defineProperty,Ea=Object.getOwnPropertySymbols,J1=Object.prototype.hasOwnProperty,ew=Object.prototype.propertyIsEnumerable,vv=(e,t,r)=>t in e?y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gv=(e,t)=>{for(var r in t||(t={}))J1.call(t,r)&&vv(e,r,t[r]);if(Ea)for(var r of Ea(t))ew.call(t,r)&&vv(e,r,t[r]);return e},h2=(e,t)=>{var r={};for(var n in e)J1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ea)for(var n of Ea(e))t.indexOf(n)<0&&ew.call(e,n)&&(r[n]=e[n]);return r};const tw=v.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:i,styles:l,height:a,fixed:s=!1,withBorder:c=!0,position:f,zIndex:u,section:d,unstyled:g,__staticSelector:w,variant:h}=r,b=h2(r,["children","className","classNames","styles","height","fixed","withBorder","position","zIndex","section","unstyled","__staticSelector","variant"]);const m=u2(),p=u||m.zIndex||_o("app"),{classes:y,cx:_,theme:P}=g2({height:a,fixed:m.fixed||s,position:f,zIndex:typeof p=="number"&&m.layout==="default"?p+1:p,layout:m.layout,borderPosition:c?d==="header"?"bottom":"top":"none"},{name:w,classNames:i,styles:l,unstyled:g,variant:h}),$=typeof a=="object"&&a!==null?q1(a,P).reduce((O,[E,k])=>(O[`@media (min-width: ${cr(E)})`]={[`--mantine-${d}-height`]:x(k)},O),{}):null;return S.createElement(ie,gv({component:d==="header"?"header":"footer",className:_(y.root,o),ref:t},b),n,S.createElement(jx,{styles:()=>({":root":gv({[`--mantine-${d}-height`]:typeof a=="object"?x(a==null?void 0:a.base)||"100%":x(a)},$)})}))});tw.displayName="@mantine/core/VerticalSection";var w2=Object.defineProperty,_2=Object.defineProperties,b2=Object.getOwnPropertyDescriptors,yv=Object.getOwnPropertySymbols,S2=Object.prototype.hasOwnProperty,P2=Object.prototype.propertyIsEnumerable,hv=(e,t,r)=>t in e?w2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O2=(e,t)=>{for(var r in t||(t={}))S2.call(t,r)&&hv(e,r,t[r]);if(yv)for(var r of yv(t))P2.call(t,r)&&hv(e,r,t[r]);return e},$2=(e,t)=>_2(e,b2(t));const x2={fixed:!1,position:{top:0,left:0,right:0}},rw=v.forwardRef((e,t)=>{const r=K("Header",x2,e);return S.createElement(tw,$2(O2({section:"header",__staticSelector:"Header"},r),{ref:t}))});rw.displayName="@mantine/core/Header";var E2=Object.defineProperty,wv=Object.getOwnPropertySymbols,C2=Object.prototype.hasOwnProperty,k2=Object.prototype.propertyIsEnumerable,_v=(e,t,r)=>t in e?E2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nw=(e,t)=>{for(var r in t||(t={}))C2.call(t,r)&&_v(e,r,t[r]);if(wv)for(var r of wv(t))k2.call(t,r)&&_v(e,r,t[r]);return e};function N2(e,t){const r=z({size:e.padding,sizes:t.spacing}),n=e.navbarOffsetBreakpoint?z({size:e.navbarOffsetBreakpoint,sizes:t.breakpoints}):null,o=e.asideOffsetBreakpoint?z({size:e.asideOffsetBreakpoint,sizes:t.breakpoints}):null;if(!e.fixed)return{padding:r};const i=Jt(n),l=Jt(o);return nw({minHeight:"100vh",paddingTop:`calc(var(--mantine-header-height, 0px) + ${r})`,paddingBottom:`calc(var(--mantine-footer-height, 0px) + ${r})`,paddingLeft:`calc(var(--mantine-navbar-width, 0px) + ${r})`,paddingRight:`calc(var(--mantine-aside-width, 0px) + ${r})`},i===l?{[`@media (max-width: ${cr(i-1)})`]:{paddingLeft:r,paddingRight:r}}:{[`@media (max-width: ${cr(i-1)})`]:{paddingLeft:r},[`@media (max-width: ${cr(l-1)})`]:{paddingRight:r}})}var R2=J((e,t)=>({root:{boxSizing:"border-box"},body:{display:"flex",boxSizing:"border-box"},main:nw({flex:1,width:"100vw",boxSizing:"border-box"},N2(t,e))})),D2=Object.defineProperty,Ca=Object.getOwnPropertySymbols,ow=Object.prototype.hasOwnProperty,iw=Object.prototype.propertyIsEnumerable,bv=(e,t,r)=>t in e?D2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I2=(e,t)=>{for(var r in t||(t={}))ow.call(t,r)&&bv(e,r,t[r]);if(Ca)for(var r of Ca(t))iw.call(t,r)&&bv(e,r,t[r]);return e},j2=(e,t)=>{var r={};for(var n in e)ow.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ca)for(var n of Ca(e))t.indexOf(n)<0&&iw.call(e,n)&&(r[n]=e[n]);return r};const T2={fixed:!0,padding:"md"},lw=v.forwardRef((e,t)=>{const r=K("AppShell",T2,e),{children:n,navbar:o,header:i,footer:l,aside:a,fixed:s,zIndex:c,padding:f,navbarOffsetBreakpoint:u,asideOffsetBreakpoint:d,className:g,styles:w,classNames:h,unstyled:b,hidden:m,layout:p,variant:y}=r,_=j2(r,["children","navbar","header","footer","aside","fixed","zIndex","padding","navbarOffsetBreakpoint","asideOffsetBreakpoint","className","styles","classNames","unstyled","hidden","layout","variant"]),{classes:P,cx:$}=R2({padding:f,fixed:s,navbarOffsetBreakpoint:u,asideOffsetBreakpoint:d},{styles:w,classNames:h,unstyled:b,name:"AppShell",variant:y});return m?S.createElement(S.Fragment,null,n):S.createElement(c2,{value:{fixed:s,zIndex:c,layout:p}},S.createElement(ie,I2({className:$(P.root,g),ref:t},_),i,S.createElement("div",{className:P.body},o,S.createElement("main",{className:P.main},n),a),l))});lw.displayName="@mantine/core/AppShell";const sl={xs:x(1),sm:x(2),md:x(3),lg:x(4),xl:x(5)};function cl(e,t){const r=e.fn.variant({variant:"outline",color:t}).border;return typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?r:t===void 0?e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]:t}var z2=J((e,{color:t},{size:r,variant:n})=>({root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:x(1),borderTop:`${z({size:r,sizes:sl})} ${n} ${cl(e,t)}`,marginRight:e.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${z({size:r,sizes:sl})} ${n} ${cl(e,t)}`,marginLeft:e.spacing.xs}},labelDefaultStyles:{color:t==="dark"?e.colors.dark[1]:e.fn.themeColor(t,e.colorScheme==="dark"?5:e.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:x(z({size:r,sizes:sl})),borderTopColor:cl(e,t),borderTopStyle:n,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:x(z({size:r,sizes:sl})),borderLeftColor:cl(e,t),borderLeftStyle:n}})),A2=Object.defineProperty,L2=Object.defineProperties,M2=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,aw=Object.prototype.hasOwnProperty,sw=Object.prototype.propertyIsEnumerable,Sv=(e,t,r)=>t in e?A2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pv=(e,t)=>{for(var r in t||(t={}))aw.call(t,r)&&Sv(e,r,t[r]);if(ka)for(var r of ka(t))sw.call(t,r)&&Sv(e,r,t[r]);return e},F2=(e,t)=>L2(e,M2(t)),V2=(e,t)=>{var r={};for(var n in e)aw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ka)for(var n of ka(e))t.indexOf(n)<0&&sw.call(e,n)&&(r[n]=e[n]);return r};const B2={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},Ku=v.forwardRef((e,t)=>{const r=K("Divider",B2,e),{className:n,color:o,orientation:i,size:l,label:a,labelPosition:s,labelProps:c,variant:f,styles:u,classNames:d,unstyled:g}=r,w=V2(r,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:h,cx:b}=z2({color:o},{classNames:d,styles:u,unstyled:g,name:"Divider",variant:f,size:l}),m=i==="vertical",p=i==="horizontal",y=!!a&&p,_=!(c!=null&&c.color);return S.createElement(ie,Pv({ref:t,className:b(h.root,{[h.vertical]:m,[h.horizontal]:p,[h.withLabel]:y},n),role:"separator"},w),y&&S.createElement(yn,F2(Pv({},c),{size:(c==null?void 0:c.size)||"xs",mt:x(2),className:b(h.label,h[s],{[h.labelDefaultStyles]:_})}),a))});Ku.displayName="@mantine/core/Divider";var H2=Object.defineProperty,W2=Object.defineProperties,U2=Object.getOwnPropertyDescriptors,Ov=Object.getOwnPropertySymbols,K2=Object.prototype.hasOwnProperty,Y2=Object.prototype.propertyIsEnumerable,$v=(e,t,r)=>t in e?H2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xv=(e,t)=>{for(var r in t||(t={}))K2.call(t,r)&&$v(e,r,t[r]);if(Ov)for(var r of Ov(t))Y2.call(t,r)&&$v(e,r,t[r]);return e},G2=(e,t)=>W2(e,U2(t)),Q2=J((e,t,{size:r})=>({item:G2(xv({},e.fn.fontStyles()),{boxSizing:"border-box",wordBreak:"break-all",textAlign:"left",width:"100%",padding:`calc(${z({size:r,sizes:e.spacing})} / 1.5) ${z({size:r,sizes:e.spacing})}`,cursor:"pointer",fontSize:z({size:r,sizes:e.fontSizes}),color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,borderRadius:e.fn.radius(),"&[data-hovered]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[1]},"&[data-selected]":xv({backgroundColor:e.fn.variant({variant:"filled"}).background,color:e.fn.variant({variant:"filled"}).color},e.fn.hover({backgroundColor:e.fn.variant({variant:"filled"}).hover})),"&[data-disabled]":{cursor:"default",color:e.colors.dark[2]}}),nothingFound:{boxSizing:"border-box",color:e.colors.gray[6],paddingTop:`calc(${z({size:r,sizes:e.spacing})} / 2)`,paddingBottom:`calc(${z({size:r,sizes:e.spacing})} / 2)`,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`calc(${z({size:r,sizes:e.spacing})} / 1.5) ${z({size:r,sizes:e.spacing})}`},separatorLabel:{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}})),X2=Object.defineProperty,Ev=Object.getOwnPropertySymbols,Z2=Object.prototype.hasOwnProperty,q2=Object.prototype.propertyIsEnumerable,Cv=(e,t,r)=>t in e?X2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J2=(e,t)=>{for(var r in t||(t={}))Z2.call(t,r)&&Cv(e,r,t[r]);if(Ev)for(var r of Ev(t))q2.call(t,r)&&Cv(e,r,t[r]);return e};function cw({data:e,hovered:t,classNames:r,styles:n,isItemSelected:o,uuid:i,__staticSelector:l,onItemHover:a,onItemSelect:s,itemsRefs:c,itemComponent:f,size:u,nothingFound:d,creatable:g,createLabel:w,unstyled:h,variant:b}){const{classes:m}=Q2(null,{classNames:r,styles:n,unstyled:h,name:l,variant:b,size:u}),p=[],y=[];let _=null;const P=(O,E)=>{const k=typeof o=="function"?o(O.value):!1;return S.createElement(f,J2({key:O.value,className:m.item,"data-disabled":O.disabled||void 0,"data-hovered":!O.disabled&&t===E||void 0,"data-selected":!O.disabled&&k||void 0,selected:k,onMouseEnter:()=>a(E),id:`${i}-${E}`,role:"option",tabIndex:-1,"aria-selected":t===E,ref:C=>{c&&c.current&&(c.current[O.value]=C)},onMouseDown:O.disabled?null:C=>{C.preventDefault(),s(O)},disabled:O.disabled,variant:b},O))};let $=null;if(e.forEach((O,E)=>{O.creatable?_=E:O.group?($!==O.group&&($=O.group,y.push(S.createElement("div",{className:m.separator,key:`__mantine-divider-${E}`},S.createElement(Ku,{classNames:{label:m.separatorLabel},label:O.group})))),y.push(P(O,E))):p.push(P(O,E))}),g){const O=e[_];p.push(S.createElement("div",{key:pd(),className:m.item,"data-hovered":t===_||void 0,onMouseEnter:()=>a(_),onMouseDown:E=>{E.preventDefault(),s(O)},tabIndex:-1,ref:E=>{c&&c.current&&(c.current[O.value]=E)}},w))}return y.length>0&&p.length>0&&p.unshift(S.createElement("div",{className:m.separator,key:"empty-group-separator"},S.createElement(Ku,null))),y.length>0||p.length>0?S.createElement(S.Fragment,null,y,p):S.createElement(yn,{size:u,unstyled:h,className:m.nothingFound},d)}cw.displayName="@mantine/core/SelectItems";var ek=Object.defineProperty,Na=Object.getOwnPropertySymbols,uw=Object.prototype.hasOwnProperty,fw=Object.prototype.propertyIsEnumerable,kv=(e,t,r)=>t in e?ek(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tk=(e,t)=>{for(var r in t||(t={}))uw.call(t,r)&&kv(e,r,t[r]);if(Na)for(var r of Na(t))fw.call(t,r)&&kv(e,r,t[r]);return e},rk=(e,t)=>{var r={};for(var n in e)uw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Na)for(var n of Na(e))t.indexOf(n)<0&&fw.call(e,n)&&(r[n]=e[n]);return r};const dw=v.forwardRef((e,t)=>{var r=e,{label:n,value:o}=r,i=rk(r,["label","value"]);return S.createElement("div",tk({ref:t},i),n||o)});dw.displayName="@mantine/core/DefaultItem";function nk(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function pw(...e){return t=>e.forEach(r=>nk(r,t))}function Sn(...e){return v.useCallback(pw(...e),e)}const mw=v.forwardRef((e,t)=>{const{children:r,...n}=e,o=v.Children.toArray(r),i=o.find(ik);if(i){const l=i.props.children,a=o.map(s=>s===i?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:s);return v.createElement(Yu,pe({},n,{ref:t}),v.isValidElement(l)?v.cloneElement(l,void 0,a):null)}return v.createElement(Yu,pe({},n,{ref:t}),r)});mw.displayName="Slot";const Yu=v.forwardRef((e,t)=>{const{children:r,...n}=e;return v.isValidElement(r)?v.cloneElement(r,{...lk(n,r.props),ref:pw(t,r.ref)}):v.Children.count(r)>1?v.Children.only(null):null});Yu.displayName="SlotClone";const ok=({children:e})=>v.createElement(v.Fragment,null,e);function ik(e){return v.isValidElement(e)&&e.type===ok}function lk(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{i(...a),o(...a)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const ak=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],Ti=ak.reduce((e,t)=>{const r=v.forwardRef((n,o)=>{const{asChild:i,...l}=n,a=i?mw:t;return v.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.createElement(a,pe({},l,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Gu=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function sk(e,t){return v.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const zi=e=>{const{present:t,children:r}=e,n=ck(t),o=typeof r=="function"?r({present:n.isPresent}):v.Children.only(r),i=Sn(n.ref,o.ref);return typeof r=="function"||n.isPresent?v.cloneElement(o,{ref:i}):null};zi.displayName="Presence";function ck(e){const[t,r]=v.useState(),n=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),l=e?"mounted":"unmounted",[a,s]=sk(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const c=ul(n.current);i.current=a==="mounted"?c:"none"},[a]),Gu(()=>{const c=n.current,f=o.current;if(f!==e){const d=i.current,g=ul(c);e?s("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(f&&d!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Gu(()=>{if(t){const c=u=>{const g=ul(n.current).includes(u.animationName);u.target===t&&g&&zs.flushSync(()=>s("ANIMATION_END"))},f=u=>{u.target===t&&(i.current=ul(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function ul(e){return(e==null?void 0:e.animationName)||"none"}function uk(e,t=[]){let r=[];function n(i,l){const a=v.createContext(l),s=r.length;r=[...r,l];function c(u){const{scope:d,children:g,...w}=u,h=(d==null?void 0:d[e][s])||a,b=v.useMemo(()=>w,Object.values(w));return v.createElement(h.Provider,{value:b},g)}function f(u,d){const g=(d==null?void 0:d[e][s])||a,w=v.useContext(g);if(w)return w;if(l!==void 0)return l;throw new Error(`\`${u}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,f]}const o=()=>{const i=r.map(l=>v.createContext(l));return function(a){const s=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return o.scopeName=e,[n,fk(o,...t)]}function fk(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=n.reduce((a,{useScope:s,scopeName:c})=>{const u=s(i)[`__scope${c}`];return{...a,...u}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}function nn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}const dk=v.createContext(void 0);function pk(e){const t=v.useContext(dk);return e||t||"ltr"}function mk(e,[t,r]){return Math.min(r,Math.max(t,e))}function fn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function vk(e,t){return v.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const vw="ScrollArea",[gw,hj]=uk(vw),[gk,$t]=gw(vw),yk=v.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...l}=e,[a,s]=v.useState(null),[c,f]=v.useState(null),[u,d]=v.useState(null),[g,w]=v.useState(null),[h,b]=v.useState(null),[m,p]=v.useState(0),[y,_]=v.useState(0),[P,$]=v.useState(!1),[O,E]=v.useState(!1),k=Sn(t,M=>s(M)),C=pk(o);return v.createElement(gk,{scope:r,type:n,dir:C,scrollHideDelay:i,scrollArea:a,viewport:c,onViewportChange:f,content:u,onContentChange:d,scrollbarX:g,onScrollbarXChange:w,scrollbarXEnabled:P,onScrollbarXEnabledChange:$,scrollbarY:h,onScrollbarYChange:b,scrollbarYEnabled:O,onScrollbarYEnabledChange:E,onCornerWidthChange:p,onCornerHeightChange:_},v.createElement(Ti.div,pe({dir:C},l,{ref:k,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":y+"px",...e.style}})))}),hk="ScrollAreaViewport",wk=v.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,...o}=e,i=$t(hk,r),l=v.useRef(null),a=Sn(t,l,i.onViewportChange);return v.createElement(v.Fragment,null,v.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),v.createElement(Ti.div,pe({"data-radix-scroll-area-viewport":""},o,{ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style}}),v.createElement("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),yr="ScrollAreaScrollbar",_k=v.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=$t(yr,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=o,a=e.orientation==="horizontal";return v.useEffect(()=>(a?i(!0):l(!0),()=>{a?i(!1):l(!1)}),[a,i,l]),o.type==="hover"?v.createElement(bk,pe({},n,{ref:t,forceMount:r})):o.type==="scroll"?v.createElement(Sk,pe({},n,{ref:t,forceMount:r})):o.type==="auto"?v.createElement(yw,pe({},n,{ref:t,forceMount:r})):o.type==="always"?v.createElement(yd,pe({},n,{ref:t})):null}),bk=v.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=$t(yr,e.__scopeScrollArea),[i,l]=v.useState(!1);return v.useEffect(()=>{const a=o.scrollArea;let s=0;if(a){const c=()=>{window.clearTimeout(s),l(!0)},f=()=>{s=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",f),()=>{window.clearTimeout(s),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),v.createElement(zi,{present:r||i},v.createElement(yw,pe({"data-state":i?"visible":"hidden"},n,{ref:t})))}),Sk=v.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=$t(yr,e.__scopeScrollArea),i=e.orientation==="horizontal",l=Zs(()=>s("SCROLL_END"),100),[a,s]=vk("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(a==="idle"){const c=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[a,o.scrollHideDelay,s]),v.useEffect(()=>{const c=o.viewport,f=i?"scrollLeft":"scrollTop";if(c){let u=c[f];const d=()=>{const g=c[f];u!==g&&(s("SCROLL"),l()),u=g};return c.addEventListener("scroll",d),()=>c.removeEventListener("scroll",d)}},[o.viewport,i,s,l]),v.createElement(zi,{present:r||a!=="hidden"},v.createElement(yd,pe({"data-state":a==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:fn(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:fn(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),yw=v.forwardRef((e,t)=>{const r=$t(yr,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,l]=v.useState(!1),a=e.orientation==="horizontal",s=Zs(()=>{if(r.viewport){const c=r.viewport.offsetWidth{const{orientation:r="vertical",...n}=e,o=$t(yr,e.__scopeScrollArea),i=v.useRef(null),l=v.useRef(0),[a,s]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=bw(a.viewport,a.content),f={...n,sizes:a,onSizesChange:s,hasThumb:c>0&&c<1,onThumbChange:d=>i.current=d,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:d=>l.current=d};function u(d,g){return Nk(d,l.current,a,g)}return r==="horizontal"?v.createElement(Pk,pe({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollLeft,g=Nv(d,a,o.dir);i.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=u(d,o.dir))}})):r==="vertical"?v.createElement(Ok,pe({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollTop,g=Nv(d,a);i.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=u(d))}})):null}),Pk=v.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=$t(yr,e.__scopeScrollArea),[l,a]=v.useState(),s=v.useRef(null),c=Sn(t,s,i.onScrollbarXChange);return v.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),v.createElement(ww,pe({"data-orientation":"horizontal"},o,{ref:c,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Xs(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,u)=>{if(i.viewport){const d=i.viewport.scrollLeft+f.deltaX;e.onWheelScroll(d),Pw(d,u)&&f.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Ra(l.paddingLeft),paddingEnd:Ra(l.paddingRight)}})}}))}),Ok=v.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=$t(yr,e.__scopeScrollArea),[l,a]=v.useState(),s=v.useRef(null),c=Sn(t,s,i.onScrollbarYChange);return v.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),v.createElement(ww,pe({"data-orientation":"vertical"},o,{ref:c,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Xs(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,u)=>{if(i.viewport){const d=i.viewport.scrollTop+f.deltaY;e.onWheelScroll(d),Pw(d,u)&&f.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Ra(l.paddingTop),paddingEnd:Ra(l.paddingBottom)}})}}))}),[$k,hw]=gw(yr),ww=v.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:c,onWheelScroll:f,onResize:u,...d}=e,g=$t(yr,r),[w,h]=v.useState(null),b=Sn(t,k=>h(k)),m=v.useRef(null),p=v.useRef(""),y=g.viewport,_=n.content-n.viewport,P=nn(f),$=nn(s),O=Zs(u,10);function E(k){if(m.current){const C=k.clientX-m.current.left,M=k.clientY-m.current.top;c({x:C,y:M})}}return v.useEffect(()=>{const k=C=>{const M=C.target;(w==null?void 0:w.contains(M))&&P(C,_)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[y,w,_,P]),v.useEffect($,[n,$]),co(w,O),co(g.content,O),v.createElement($k,{scope:r,scrollbar:w,hasThumb:o,onThumbChange:nn(i),onThumbPointerUp:nn(l),onThumbPositionChange:$,onThumbPointerDown:nn(a)},v.createElement(Ti.div,pe({},d,{ref:b,style:{position:"absolute",...d.style},onPointerDown:fn(e.onPointerDown,k=>{k.button===0&&(k.target.setPointerCapture(k.pointerId),m.current=w.getBoundingClientRect(),p.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E(k))}),onPointerMove:fn(e.onPointerMove,E),onPointerUp:fn(e.onPointerUp,k=>{const C=k.target;C.hasPointerCapture(k.pointerId)&&C.releasePointerCapture(k.pointerId),document.body.style.webkitUserSelect=p.current,m.current=null})})))}),Qu="ScrollAreaThumb",xk=v.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=hw(Qu,e.__scopeScrollArea);return v.createElement(zi,{present:r||o.hasThumb},v.createElement(Ek,pe({ref:t},n)))}),Ek=v.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,i=$t(Qu,r),l=hw(Qu,r),{onThumbPositionChange:a}=l,s=Sn(t,u=>l.onThumbChange(u)),c=v.useRef(),f=Zs(()=>{c.current&&(c.current(),c.current=void 0)},100);return v.useEffect(()=>{const u=i.viewport;if(u){const d=()=>{if(f(),!c.current){const g=Rk(u,a);c.current=g,a()}};return a(),u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[i.viewport,f,a]),v.createElement(Ti.div,pe({"data-state":l.hasThumb?"visible":"hidden"},o,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:fn(e.onPointerDownCapture,u=>{const g=u.target.getBoundingClientRect(),w=u.clientX-g.left,h=u.clientY-g.top;l.onThumbPointerDown({x:w,y:h})}),onPointerUp:fn(e.onPointerUp,l.onThumbPointerUp)}))}),_w="ScrollAreaCorner",Ck=v.forwardRef((e,t)=>{const r=$t(_w,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?v.createElement(kk,pe({},e,{ref:t})):null}),kk=v.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=$t(_w,r),[i,l]=v.useState(0),[a,s]=v.useState(0),c=!!(i&&a);return co(o.scrollbarX,()=>{var f;const u=((f=o.scrollbarX)===null||f===void 0?void 0:f.offsetHeight)||0;o.onCornerHeightChange(u),s(u)}),co(o.scrollbarY,()=>{var f;const u=((f=o.scrollbarY)===null||f===void 0?void 0:f.offsetWidth)||0;o.onCornerWidthChange(u),l(u)}),c?v.createElement(Ti.div,pe({},n,{ref:t,style:{width:i,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Ra(e){return e?parseInt(e,10):0}function bw(e,t){const r=e/t;return isNaN(r)?0:r}function Xs(e){const t=bw(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Nk(e,t,r,n="ltr"){const o=Xs(r),i=o/2,l=t||i,a=o-l,s=r.scrollbar.paddingStart+l,c=r.scrollbar.size-r.scrollbar.paddingEnd-a,f=r.content-r.viewport,u=n==="ltr"?[0,f]:[f*-1,0];return Sw([s,c],u)(e)}function Nv(e,t,r="ltr"){const n=Xs(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,a=i-n,s=r==="ltr"?[0,l]:[l*-1,0],c=mk(e,s);return Sw([0,l],[0,a])(c)}function Sw(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Pw(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},l=r.left!==i.left,a=r.top!==i.top;(l||a)&&t(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Zs(e,t){const r=nn(e),n=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(n.current),[]),v.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function co(e,t){const r=nn(t);Gu(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}const Dk=yk,Ik=wk,Rv=_k,Dv=xk,jk=Ck;var Tk=J((e,{scrollbarSize:t,offsetScrollbars:r,scrollbarHovered:n,hidden:o})=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:r?x(t):void 0,paddingBottom:r?x(t):void 0},scrollbar:{display:o?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:`calc(${x(t)} / 5)`,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.colors.gray[0],[`& .${Hr("thumb")}`]:{backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.5):e.fn.rgba(e.black,.5)}},'&[data-orientation="vertical"]':{width:x(t)},'&[data-orientation="horizontal"]':{flexDirection:"column",height:x(t)},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:Hr("thumb"),flex:1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.4):e.fn.rgba(e.black,.4),borderRadius:x(t),position:"relative",transition:"background-color 150ms ease",display:o?"none":void 0,overflow:"hidden","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:x(44),minHeight:x(44)}},corner:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],transition:"opacity 150ms ease",opacity:n?1:0,display:o?"none":void 0}})),zk=Object.defineProperty,Ak=Object.defineProperties,Lk=Object.getOwnPropertyDescriptors,Da=Object.getOwnPropertySymbols,Ow=Object.prototype.hasOwnProperty,$w=Object.prototype.propertyIsEnumerable,Iv=(e,t,r)=>t in e?zk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xu=(e,t)=>{for(var r in t||(t={}))Ow.call(t,r)&&Iv(e,r,t[r]);if(Da)for(var r of Da(t))$w.call(t,r)&&Iv(e,r,t[r]);return e},xw=(e,t)=>Ak(e,Lk(t)),Ew=(e,t)=>{var r={};for(var n in e)Ow.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Da)for(var n of Da(e))t.indexOf(n)<0&&$w.call(e,n)&&(r[n]=e[n]);return r};const Cw={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},qs=v.forwardRef((e,t)=>{const r=K("ScrollArea",Cw,e),{children:n,className:o,classNames:i,styles:l,scrollbarSize:a,scrollHideDelay:s,type:c,dir:f,offsetScrollbars:u,viewportRef:d,onScrollPositionChange:g,unstyled:w,variant:h,viewportProps:b}=r,m=Ew(r,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","variant","viewportProps"]),[p,y]=v.useState(!1),_=gt(),{classes:P,cx:$}=Tk({scrollbarSize:a,offsetScrollbars:u,scrollbarHovered:p,hidden:c==="never"},{name:"ScrollArea",classNames:i,styles:l,unstyled:w,variant:h});return S.createElement(Dk,{type:c==="never"?"always":c,scrollHideDelay:s,dir:f||_.dir,ref:t,asChild:!0},S.createElement(ie,Xu({className:$(P.root,o)},m),S.createElement(Ik,xw(Xu({},b),{className:P.viewport,ref:d,onScroll:typeof g=="function"?({currentTarget:O})=>g({x:O.scrollLeft,y:O.scrollTop}):void 0}),n),S.createElement(Rv,{orientation:"horizontal",className:P.scrollbar,forceMount:!0,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1)},S.createElement(Dv,{className:P.thumb})),S.createElement(Rv,{orientation:"vertical",className:P.scrollbar,forceMount:!0,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1)},S.createElement(Dv,{className:P.thumb})),S.createElement(jk,{className:P.corner})))}),kw=v.forwardRef((e,t)=>{const r=K("ScrollAreaAutosize",Cw,e),{children:n,classNames:o,styles:i,scrollbarSize:l,scrollHideDelay:a,type:s,dir:c,offsetScrollbars:f,viewportRef:u,onScrollPositionChange:d,unstyled:g,sx:w,variant:h,viewportProps:b}=r,m=Ew(r,["children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx","variant","viewportProps"]);return S.createElement(ie,xw(Xu({},m),{ref:t,sx:[{display:"flex"},...td(w)]}),S.createElement(ie,{sx:{display:"flex",flexDirection:"column",flex:1}},S.createElement(qs,{classNames:o,styles:i,scrollHideDelay:a,scrollbarSize:l,type:s,dir:c,offsetScrollbars:f,viewportRef:u,onScrollPositionChange:d,unstyled:g,variant:h,viewportProps:b},n)))});kw.displayName="@mantine/core/ScrollAreaAutosize";qs.displayName="@mantine/core/ScrollArea";qs.Autosize=kw;const Mk=qs;var Fk=Object.defineProperty,Vk=Object.defineProperties,Bk=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,Nw=Object.prototype.hasOwnProperty,Rw=Object.prototype.propertyIsEnumerable,jv=(e,t,r)=>t in e?Fk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tv=(e,t)=>{for(var r in t||(t={}))Nw.call(t,r)&&jv(e,r,t[r]);if(Ia)for(var r of Ia(t))Rw.call(t,r)&&jv(e,r,t[r]);return e},Hk=(e,t)=>Vk(e,Bk(t)),Wk=(e,t)=>{var r={};for(var n in e)Nw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ia)for(var n of Ia(e))t.indexOf(n)<0&&Rw.call(e,n)&&(r[n]=e[n]);return r};const hd=v.forwardRef((e,t)=>{var r=e,{style:n}=r,o=Wk(r,["style"]);return S.createElement(Mk,Hk(Tv({},o),{style:Tv({width:"100%"},n),viewportProps:{tabIndex:-1},viewportRef:t}),o.children)});hd.displayName="@mantine/core/SelectScrollArea";var Uk=J(()=>({dropdown:{},itemsWrapper:{padding:x(4),display:"flex",width:"100%",boxSizing:"border-box"}}));const At=Math.min,Ue=Math.max,ja=Math.round,fl=Math.floor,Yr=e=>({x:e,y:e}),Kk={left:"right",right:"left",bottom:"top",top:"bottom"},Yk={start:"end",end:"start"};function Zu(e,t,r){return Ue(e,At(t,r))}function mr(e,t){return typeof e=="function"?e(t):e}function Lt(e){return e.split("-")[0]}function bo(e){return e.split("-")[1]}function wd(e){return e==="x"?"y":"x"}function _d(e){return e==="y"?"height":"width"}function Pn(e){return["top","bottom"].includes(Lt(e))?"y":"x"}function bd(e){return wd(Pn(e))}function Gk(e,t,r){r===void 0&&(r=!1);const n=bo(e),o=bd(e),i=_d(o);let l=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ta(l)),[l,Ta(l)]}function Qk(e){const t=Ta(e);return[qu(e),t,qu(t)]}function qu(e){return e.replace(/start|end/g,t=>Yk[t])}function Xk(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:l;default:return[]}}function Zk(e,t,r,n){const o=bo(e);let i=Xk(Lt(e),r==="start",n);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(qu)))),i}function Ta(e){return e.replace(/left|right|bottom|top/g,t=>Kk[t])}function qk(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sd(e){return typeof e!="number"?qk(e):{top:e,right:e,bottom:e,left:e}}function uo(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zv(e,t,r){let{reference:n,floating:o}=e;const i=Pn(t),l=bd(t),a=_d(l),s=Lt(t),c=i==="y",f=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let g;switch(s){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:u};break;case"left":g={x:n.x-o.width,y:u};break;default:g={x:n.x,y:n.y}}switch(bo(t)){case"start":g[l]-=d*(r&&c?-1:1);break;case"end":g[l]+=d*(r&&c?-1:1);break}return g}const Jk=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=i.filter(Boolean),s=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=zv(c,n,s),d=n,g={},w=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:f=0}=mr(e,t)||{};if(c==null)return{};const u=Sd(f),d={x:r,y:n},g=bd(o),w=_d(g),h=await l.getDimensions(c),b=g==="y",m=b?"top":"left",p=b?"bottom":"right",y=b?"clientHeight":"clientWidth",_=i.reference[w]+i.reference[g]-d[g]-i.floating[w],P=d[g]-i.reference[g],$=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let O=$?$[y]:0;(!O||!await(l.isElement==null?void 0:l.isElement($)))&&(O=a.floating[y]||i.floating[w]);const E=_/2-P/2,k=O/2-h[w]/2-1,C=At(u[m],k),M=At(u[p],k),A=C,W=O-h[w]-M,L=O/2-h[w]/2+E,B=Zu(A,L,W),G=!s.arrow&&bo(o)!=null&&L!=B&&i.reference[w]/2-(LA<=0)){var k,C;const A=(((k=i.flip)==null?void 0:k.index)||0)+1,W=P[A];if(W)return{data:{index:A,overflows:E},reset:{placement:W}};let L=(C=E.filter(B=>B.overflows[0]<=0).sort((B,G)=>B.overflows[1]-G.overflows[1])[0])==null?void 0:C.placement;if(!L)switch(g){case"bestFit":{var M;const B=(M=E.map(G=>[G.placement,G.overflows.filter(ne=>ne>0).reduce((ne,R)=>ne+R,0)]).sort((G,ne)=>G[1]-ne[1])[0])==null?void 0:M[0];B&&(L=B);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Dw(e){const t=At(...e.map(i=>i.left)),r=At(...e.map(i=>i.top)),n=Ue(...e.map(i=>i.right)),o=Ue(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function t5(e){const t=e.slice().sort((o,i)=>o.y-i.y),r=[];let n=null;for(let o=0;on.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>uo(Dw(o)))}const r5=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:i,strategy:l}=t,{padding:a=2,x:s,y:c}=mr(e,t),f=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]),u=t5(f),d=uo(Dw(f)),g=Sd(a);function w(){if(u.length===2&&u[0].left>u[1].right&&s!=null&&c!=null)return u.find(b=>s>b.left-g.left&&sb.top-g.top&&c=2){if(Pn(r)==="y"){const C=u[0],M=u[u.length-1],A=Lt(r)==="top",W=C.top,L=M.bottom,B=A?C.left:M.left,G=A?C.right:M.right,ne=G-B,R=L-W;return{top:W,bottom:L,left:B,right:G,width:ne,height:R,x:B,y:W}}const b=Lt(r)==="left",m=Ue(...u.map(C=>C.right)),p=At(...u.map(C=>C.left)),y=u.filter(C=>b?C.left===p:C.right===m),_=y[0].top,P=y[y.length-1].bottom,$=p,O=m,E=O-$,k=P-_;return{top:_,bottom:P,left:$,right:O,width:E,height:k,x:$,y:_}}return d}const h=await i.getElementRects({reference:{getBoundingClientRect:w},floating:n.floating,strategy:l});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}};async function n5(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),l=Lt(r),a=bo(r),s=Pn(r)==="y",c=["left","top"].includes(l)?-1:1,f=i&&s?-1:1,u=mr(t,e);let{mainAxis:d,crossAxis:g,alignmentAxis:w}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),s?{x:g*f,y:d*c}:{x:d*c,y:g*f}}const o5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await n5(t,e);return{x:r+o.x,y:n+o.y,data:o}}}},i5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:b=>{let{x:m,y:p}=b;return{x:m,y:p}}},...s}=mr(e,t),c={x:r,y:n},f=await Pd(t,s),u=Pn(Lt(o)),d=wd(u);let g=c[d],w=c[u];if(i){const b=d==="y"?"top":"left",m=d==="y"?"bottom":"right",p=g+f[b],y=g-f[m];g=Zu(p,g,y)}if(l){const b=u==="y"?"top":"left",m=u==="y"?"bottom":"right",p=w+f[b],y=w-f[m];w=Zu(p,w,y)}const h=a.fn({...t,[d]:g,[u]:w});return{...h,data:{x:h.x-r,y:h.y-n}}}}},l5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=mr(e,t),f={x:r,y:n},u=Pn(o),d=wd(u);let g=f[d],w=f[u];const h=mr(a,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const y=d==="y"?"height":"width",_=i.reference[d]-i.floating[y]+b.mainAxis,P=i.reference[d]+i.reference[y]-b.mainAxis;g<_?g=_:g>P&&(g=P)}if(c){var m,p;const y=d==="y"?"width":"height",_=["top","left"].includes(Lt(o)),P=i.reference[u]-i.floating[y]+(_&&((m=l.offset)==null?void 0:m[u])||0)+(_?0:b.crossAxis),$=i.reference[u]+i.reference[y]+(_?0:((p=l.offset)==null?void 0:p[u])||0)-(_?b.crossAxis:0);w$&&(w=$)}return{[d]:g,[u]:w}}}},a5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:l=()=>{},...a}=mr(e,t),s=await Pd(t,a),c=Lt(r),f=bo(r),u=Pn(r)==="y",{width:d,height:g}=n.floating;let w,h;c==="top"||c==="bottom"?(w=c,h=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,w=f==="end"?"top":"bottom");const b=g-s[w],m=d-s[h],p=!t.middlewareData.shift;let y=b,_=m;if(u){const $=d-s.left-s.right;_=f||p?At(m,$):$}else{const $=g-s.top-s.bottom;y=f||p?At(b,$):$}if(p&&!f){const $=Ue(s.left,0),O=Ue(s.right,0),E=Ue(s.top,0),k=Ue(s.bottom,0);u?_=d-2*($!==0||O!==0?$+O:Ue(s.left,s.right)):y=g-2*(E!==0||k!==0?E+k:Ue(s.top,s.bottom))}await l({...t,availableWidth:_,availableHeight:y});const P=await o.getDimensions(i.floating);return d!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function Gr(e){return Iw(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hr(e){var t;return(t=(Iw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Iw(e){return e instanceof Node||e instanceof ft(e).Node}function vr(e){return e instanceof Element||e instanceof ft(e).Element}function er(e){return e instanceof HTMLElement||e instanceof ft(e).HTMLElement}function Lv(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function Ai(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ot(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function s5(e){return["table","td","th"].includes(Gr(e))}function Od(e){const t=$d(),r=Ot(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function c5(e){let t=fo(e);for(;er(t)&&!Js(t);){if(Od(t))return t;t=fo(t)}return null}function $d(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Js(e){return["html","body","#document"].includes(Gr(e))}function Ot(e){return ft(e).getComputedStyle(e)}function ec(e){return vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fo(e){if(Gr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lv(e)&&e.host||hr(e);return Lv(t)?t.host:t}function jw(e){const t=fo(e);return Js(t)?e.ownerDocument?e.ownerDocument.body:e.body:er(t)&&Ai(t)?t:jw(t)}function Oi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=jw(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),l=ft(o);return i?t.concat(l,l.visualViewport||[],Ai(o)?o:[],l.frameElement&&r?Oi(l.frameElement):[]):t.concat(o,Oi(o,[],r))}function Tw(e){const t=Ot(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=er(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,a=ja(r)!==i||ja(n)!==l;return a&&(r=i,n=l),{width:r,height:n,$:a}}function xd(e){return vr(e)?e:e.contextElement}function qn(e){const t=xd(e);if(!er(t))return Yr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Tw(t);let l=(i?ja(r.width):r.width)/n,a=(i?ja(r.height):r.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const u5=Yr(0);function zw(e){const t=ft(e);return!$d()||!t.visualViewport?u5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function f5(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ft(e)?!1:t}function hn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=xd(e);let l=Yr(1);t&&(n?vr(n)&&(l=qn(n)):l=qn(e));const a=f5(i,r,n)?zw(i):Yr(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,f=o.width/l.x,u=o.height/l.y;if(i){const d=ft(i),g=n&&vr(n)?ft(n):n;let w=d.frameElement;for(;w&&n&&g!==d;){const h=qn(w),b=w.getBoundingClientRect(),m=Ot(w),p=b.left+(w.clientLeft+parseFloat(m.paddingLeft))*h.x,y=b.top+(w.clientTop+parseFloat(m.paddingTop))*h.y;s*=h.x,c*=h.y,f*=h.x,u*=h.y,s+=p,c+=y,w=ft(w).frameElement}}return uo({width:f,height:u,x:s,y:c})}function d5(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=er(r),i=hr(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0},a=Yr(1);const s=Yr(0);if((o||!o&&n!=="fixed")&&((Gr(r)!=="body"||Ai(i))&&(l=ec(r)),er(r))){const c=hn(r);a=qn(r),s.x=c.x+r.clientLeft,s.y=c.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+s.x,y:t.y*a.y-l.scrollTop*a.y+s.y}}function p5(e){return Array.from(e.getClientRects())}function Aw(e){return hn(hr(e)).left+ec(e).scrollLeft}function m5(e){const t=hr(e),r=ec(e),n=e.ownerDocument.body,o=Ue(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Ue(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+Aw(e);const a=-r.scrollTop;return Ot(n).direction==="rtl"&&(l+=Ue(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:l,y:a}}function v5(e,t){const r=ft(e),n=hr(e),o=r.visualViewport;let i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const c=$d();(!c||c&&t==="fixed")&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}function g5(e,t){const r=hn(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=er(e)?qn(e):Yr(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,s=o*i.x,c=n*i.y;return{width:l,height:a,x:s,y:c}}function Mv(e,t,r){let n;if(t==="viewport")n=v5(e,r);else if(t==="document")n=m5(hr(e));else if(vr(t))n=g5(t,r);else{const o=zw(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return uo(n)}function Lw(e,t){const r=fo(e);return r===t||!vr(r)||Js(r)?!1:Ot(r).position==="fixed"||Lw(r,t)}function y5(e,t){const r=t.get(e);if(r)return r;let n=Oi(e,[],!1).filter(a=>vr(a)&&Gr(a)!=="body"),o=null;const i=Ot(e).position==="fixed";let l=i?fo(e):e;for(;vr(l)&&!Js(l);){const a=Ot(l),s=Od(l);!s&&a.position==="fixed"&&(o=null),(i?!s&&!o:!s&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ai(l)&&!s&&Lw(e,l))?n=n.filter(f=>f!==l):o=a,l=fo(l)}return t.set(e,n),n}function h5(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const l=[...r==="clippingAncestors"?y5(t,this._c):[].concat(r),n],a=l[0],s=l.reduce((c,f)=>{const u=Mv(t,f,o);return c.top=Ue(u.top,c.top),c.right=At(u.right,c.right),c.bottom=At(u.bottom,c.bottom),c.left=Ue(u.left,c.left),c},Mv(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function w5(e){return Tw(e)}function _5(e,t,r){const n=er(t),o=hr(t),i=r==="fixed",l=hn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=Yr(0);if(n||!n&&!i)if((Gr(t)!=="body"||Ai(o))&&(a=ec(t)),n){const c=hn(t,!0,i,t);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=Aw(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function Fv(e,t){return!er(e)||Ot(e).position==="fixed"?null:t?t(e):e.offsetParent}function Mw(e,t){const r=ft(e);if(!er(e))return r;let n=Fv(e,t);for(;n&&s5(n)&&Ot(n).position==="static";)n=Fv(n,t);return n&&(Gr(n)==="html"||Gr(n)==="body"&&Ot(n).position==="static"&&!Od(n))?r:n||c5(e)||r}const b5=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||Mw,i=this.getDimensions;return{reference:_5(t,await o(r),n),floating:{x:0,y:0,...await i(r)}}};function S5(e){return Ot(e).direction==="rtl"}const P5={convertOffsetParentRelativeRectToViewportRelativeRect:d5,getDocumentElement:hr,getClippingRect:h5,getOffsetParent:Mw,getElementRects:b5,getClientRects:p5,getDimensions:w5,getScale:qn,isElement:vr,isRTL:S5};function O5(e,t){let r=null,n;const o=hr(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}function l(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),i();const{left:c,top:f,width:u,height:d}=e.getBoundingClientRect();if(a||t(),!u||!d)return;const g=fl(f),w=fl(o.clientWidth-(c+u)),h=fl(o.clientHeight-(f+d)),b=fl(c),p={rootMargin:-g+"px "+-w+"px "+-h+"px "+-b+"px",threshold:Ue(0,At(1,s))||1};let y=!0;function _(P){const $=P[0].intersectionRatio;if($!==s){if(!y)return l();$?l(!1,$):n=setTimeout(()=>{l(!1,1e-7)},100)}y=!1}try{r=new IntersectionObserver(_,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(_,p)}r.observe(e)}return l(!0),i}function $5(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,c=xd(e),f=o||i?[...c?Oi(c):[],...Oi(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",r,{passive:!0}),i&&m.addEventListener("resize",r)});const u=c&&a?O5(c,r):null;let d=-1,g=null;l&&(g=new ResizeObserver(m=>{let[p]=m;p&&p.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{g&&g.observe(t)})),r()}),c&&!s&&g.observe(c),g.observe(t));let w,h=s?hn(e):null;s&&b();function b(){const m=hn(e);h&&(m.x!==h.x||m.y!==h.y||m.width!==h.width||m.height!==h.height)&&r(),h=m,w=requestAnimationFrame(b)}return r(),()=>{f.forEach(m=>{o&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),u&&u(),g&&g.disconnect(),g=null,s&&cancelAnimationFrame(w)}}const x5=(e,t,r)=>{const n=new Map,o={platform:P5,...r},i={...o.platform,_c:n};return Jk(e,t,{...o,platform:i})},E5=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?Av({element:t.current,padding:r}).fn(o):{}:t?Av({element:t,padding:r}).fn(o):{}}}};var Fl=typeof document<"u"?v.useLayoutEffect:v.useEffect;function za(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!za(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!za(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Vv(e){const t=v.useRef(e);return Fl(()=>{t.current=e}),t}function C5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:l}=e,[a,s]=v.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[c,f]=v.useState(n);za(c,n)||f(n);const u=v.useRef(null),d=v.useRef(null),g=v.useRef(a),w=Vv(i),h=Vv(o),[b,m]=v.useState(null),[p,y]=v.useState(null),_=v.useCallback(C=>{u.current!==C&&(u.current=C,m(C))},[]),P=v.useCallback(C=>{d.current!==C&&(d.current=C,y(C))},[]),$=v.useCallback(()=>{if(!u.current||!d.current)return;const C={placement:t,strategy:r,middleware:c};h.current&&(C.platform=h.current),x5(u.current,d.current,C).then(M=>{const A={...M,isPositioned:!0};O.current&&!za(g.current,A)&&(g.current=A,zs.flushSync(()=>{s(A)}))})},[c,t,r,h]);Fl(()=>{l===!1&&g.current.isPositioned&&(g.current.isPositioned=!1,s(C=>({...C,isPositioned:!1})))},[l]);const O=v.useRef(!1);Fl(()=>(O.current=!0,()=>{O.current=!1}),[]),Fl(()=>{if(b&&p){if(w.current)return w.current(b,p,$);$()}},[b,p,$,w]);const E=v.useMemo(()=>({reference:u,floating:d,setReference:_,setFloating:P}),[_,P]),k=v.useMemo(()=>({reference:b,floating:p}),[b,p]);return v.useMemo(()=>({...a,update:$,refs:E,elements:k,reference:_,floating:P}),[a,$,E,k,_,P])}var k5=typeof document<"u"?v.useLayoutEffect:v.useEffect;function N5(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const R5=v.createContext(null),D5=()=>v.useContext(R5);function I5(e){return(e==null?void 0:e.ownerDocument)||document}function j5(e){return I5(e).defaultView||window}function dl(e){return e?e instanceof j5(e).Element:!1}const T5=Wc.useInsertionEffect,z5=T5||(e=>e());function A5(e){const t=v.useRef(()=>{});return z5(()=>{t.current=e}),v.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;oN5())[0],[c,f]=v.useState(null),u=v.useCallback(m=>{const p=dl(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;o.refs.setReference(p)},[o.refs]),d=v.useCallback(m=>{(dl(m)||m===null)&&(l.current=m,f(m)),(dl(o.refs.reference.current)||o.refs.reference.current===null||m!==null&&!dl(m))&&o.refs.setReference(m)},[o.refs]),g=v.useMemo(()=>({...o.refs,setReference:d,setPositionReference:u,domReference:l}),[o.refs,d,u]),w=v.useMemo(()=>({...o.elements,domReference:c}),[o.elements,c]),h=A5(r),b=v.useMemo(()=>({...o,refs:g,elements:w,dataRef:a,nodeId:n,events:s,open:t,onOpenChange:h}),[o,n,s,t,h,g,w]);return k5(()=>{const m=i==null?void 0:i.nodesRef.current.find(p=>p.id===n);m&&(m.context=b)}),v.useMemo(()=>({...o,context:b,refs:g,reference:d,positionReference:u}),[o,g,b,d,u])}function M5({opened:e,floating:t,position:r,positionDependencies:n}){const[o,i]=v.useState(0);v.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return $5(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,o,r]),Kr(()=>{t.update()},n),Kr(()=>{i(l=>l+1)},[e])}function F5(e){const t=[o5(e.offset)];return e.middlewares.shift&&t.push(i5({limiter:l5()})),e.middlewares.flip&&t.push(e5()),e.middlewares.inline&&t.push(r5()),t.push(E5({element:e.arrowRef,padding:e.arrowOffset})),t}function V5(e){const[t,r]=so({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=()=>{var l;(l=e.onClose)==null||l.call(e),r(!1)},o=()=>{var l,a;t?((l=e.onClose)==null||l.call(e),r(!1)):((a=e.onOpen)==null||a.call(e),r(!0))},i=L5({placement:e.position,middleware:[...F5(e),...e.width==="target"?[a5({apply({rects:l}){var a,s;Object.assign((s=(a=i.refs.floating.current)==null?void 0:a.style)!=null?s:{},{width:`${l.reference.width}px`})}})]:[]]});return M5({opened:e.opened,position:e.position,positionDependencies:e.positionDependencies,floating:i}),Kr(()=>{var l;(l=e.onPositionChange)==null||l.call(e,i.placement)},[i.placement]),Kr(()=>{var l,a;e.opened?(a=e.onOpen)==null||a.call(e):(l=e.onClose)==null||l.call(e)},[e.opened]),{floating:i,controlled:typeof e.opened=="boolean",opened:t,onClose:n,onToggle:o}}const Fw={context:"Popover component was not found in the tree",children:"Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"},[B5,Vw]=ed(Fw.context);var H5=Object.defineProperty,W5=Object.defineProperties,U5=Object.getOwnPropertyDescriptors,Aa=Object.getOwnPropertySymbols,Bw=Object.prototype.hasOwnProperty,Hw=Object.prototype.propertyIsEnumerable,Bv=(e,t,r)=>t in e?H5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pl=(e,t)=>{for(var r in t||(t={}))Bw.call(t,r)&&Bv(e,r,t[r]);if(Aa)for(var r of Aa(t))Hw.call(t,r)&&Bv(e,r,t[r]);return e},K5=(e,t)=>W5(e,U5(t)),Y5=(e,t)=>{var r={};for(var n in e)Bw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Aa)for(var n of Aa(e))t.indexOf(n)<0&&Hw.call(e,n)&&(r[n]=e[n]);return r};const G5={refProp:"ref",popupType:"dialog",shouldOverrideDefaultTargetId:!0},Ww=v.forwardRef((e,t)=>{const r=K("PopoverTarget",G5,e),{children:n,refProp:o,popupType:i,shouldOverrideDefaultTargetId:l}=r,a=Y5(r,["children","refProp","popupType","shouldOverrideDefaultTargetId"]);if(!rd(n))throw new Error(Fw.children);const s=a,c=Vw(),f=md(c.reference,n.ref,t),u=c.withRoles?{"aria-haspopup":i,"aria-expanded":c.opened,"aria-controls":c.getDropdownId(),id:l?c.getTargetId():n.props.id}:{};return v.cloneElement(n,pl(K5(pl(pl(pl({},s),u),c.targetProps),{className:A0(c.targetProps.className,s.className,n.props.className),[o]:f}),c.controlled?null:{onClick:c.onToggle}))});Ww.displayName="@mantine/core/PopoverTarget";var Q5=J((e,{radius:t,shadow:r})=>({dropdown:{position:"absolute",backgroundColor:e.white,background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`${x(1)} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,padding:`${e.spacing.sm} ${e.spacing.md}`,boxShadow:e.shadows[r]||r||"none",borderRadius:e.fn.radius(t),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`${x(1)} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,zIndex:1}})),X5=Object.defineProperty,Hv=Object.getOwnPropertySymbols,Z5=Object.prototype.hasOwnProperty,q5=Object.prototype.propertyIsEnumerable,Wv=(e,t,r)=>t in e?X5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kn=(e,t)=>{for(var r in t||(t={}))Z5.call(t,r)&&Wv(e,r,t[r]);if(Hv)for(var r of Hv(t))q5.call(t,r)&&Wv(e,r,t[r]);return e};const Uv={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function J5({transition:e,state:t,duration:r,timingFunction:n}){const o={transitionDuration:`${r}ms`,transitionTimingFunction:n};return typeof e=="string"?e in il?kn(kn(kn({transitionProperty:il[e].transitionProperty},o),il[e].common),il[e][Uv[t]]):null:kn(kn(kn({transitionProperty:e.transitionProperty},o),e.common),e[Uv[t]])}function eN({duration:e,exitDuration:t,timingFunction:r,mounted:n,onEnter:o,onExit:i,onEntered:l,onExited:a}){const s=gt(),c=m1(),f=s.respectReducedMotion?c:!1,[u,d]=v.useState(f?0:e),[g,w]=v.useState(n?"entered":"exited"),h=v.useRef(-1),b=m=>{const p=m?o:i,y=m?l:a;w(m?"pre-entering":"pre-exiting"),window.clearTimeout(h.current);const _=f?0:m?e:t;if(d(_),_===0)typeof p=="function"&&p(),typeof y=="function"&&y(),w(m?"entered":"exited");else{const P=window.setTimeout(()=>{typeof p=="function"&&p(),w(m?"entering":"exiting")},10);h.current=window.setTimeout(()=>{window.clearTimeout(P),typeof y=="function"&&y(),w(m?"entered":"exited")},_)}};return Kr(()=>{b(n)},[n]),v.useEffect(()=>()=>window.clearTimeout(h.current),[]),{transitionDuration:u,transitionStatus:g,transitionTimingFunction:r||s.transitionTimingFunction}}function Ed({keepMounted:e,transition:t,duration:r=250,exitDuration:n=r,mounted:o,children:i,timingFunction:l,onExit:a,onEntered:s,onEnter:c,onExited:f}){const{transitionDuration:u,transitionStatus:d,transitionTimingFunction:g}=eN({mounted:o,exitDuration:n,duration:r,timingFunction:l,onExit:a,onEntered:s,onEnter:c,onExited:f});return u===0?o?S.createElement(S.Fragment,null,i({})):e?i({display:"none"}):null:d==="exited"?e?i({display:"none"}):null:S.createElement(S.Fragment,null,i(J5({transition:t,duration:u,state:d,timingFunction:g})))}Ed.displayName="@mantine/core/Transition";function Uw({children:e,active:t=!0,refProp:r="ref"}){const n=Zx(t),o=md(n,e==null?void 0:e.ref);return rd(e)?v.cloneElement(e,{[r]:o}):e}Uw.displayName="@mantine/core/FocusTrap";var tN=Object.defineProperty,rN=Object.defineProperties,nN=Object.getOwnPropertyDescriptors,Kv=Object.getOwnPropertySymbols,oN=Object.prototype.hasOwnProperty,iN=Object.prototype.propertyIsEnumerable,Yv=(e,t,r)=>t in e?tN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xr=(e,t)=>{for(var r in t||(t={}))oN.call(t,r)&&Yv(e,r,t[r]);if(Kv)for(var r of Kv(t))iN.call(t,r)&&Yv(e,r,t[r]);return e},ml=(e,t)=>rN(e,nN(t));function Gv(e,t,r,n){return e==="center"||n==="center"?{top:t}:e==="end"?{bottom:r}:e==="start"?{top:r}:{}}function Qv(e,t,r,n,o){return e==="center"||n==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:r}:e==="start"?{[o==="ltr"?"left":"right"]:r}:{}}const lN={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function aN({position:e,arrowSize:t,arrowOffset:r,arrowRadius:n,arrowPosition:o,arrowX:i,arrowY:l,dir:a}){const[s,c="center"]=e.split("-"),f={width:x(t),height:x(t),transform:"rotate(45deg)",position:"absolute",[lN[s]]:x(n)},u=x(-t/2);return s==="left"?ml(xr(xr({},f),Gv(c,l,r,o)),{right:u,borderLeftColor:"transparent",borderBottomColor:"transparent"}):s==="right"?ml(xr(xr({},f),Gv(c,l,r,o)),{left:u,borderRightColor:"transparent",borderTopColor:"transparent"}):s==="top"?ml(xr(xr({},f),Qv(c,i,r,o,a)),{bottom:u,borderTopColor:"transparent",borderLeftColor:"transparent"}):s==="bottom"?ml(xr(xr({},f),Qv(c,i,r,o,a)),{top:u,borderBottomColor:"transparent",borderRightColor:"transparent"}):{}}var sN=Object.defineProperty,cN=Object.defineProperties,uN=Object.getOwnPropertyDescriptors,La=Object.getOwnPropertySymbols,Kw=Object.prototype.hasOwnProperty,Yw=Object.prototype.propertyIsEnumerable,Xv=(e,t,r)=>t in e?sN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fN=(e,t)=>{for(var r in t||(t={}))Kw.call(t,r)&&Xv(e,r,t[r]);if(La)for(var r of La(t))Yw.call(t,r)&&Xv(e,r,t[r]);return e},dN=(e,t)=>cN(e,uN(t)),pN=(e,t)=>{var r={};for(var n in e)Kw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&La)for(var n of La(e))t.indexOf(n)<0&&Yw.call(e,n)&&(r[n]=e[n]);return r};const Gw=v.forwardRef((e,t)=>{var r=e,{position:n,arrowSize:o,arrowOffset:i,arrowRadius:l,arrowPosition:a,visible:s,arrowX:c,arrowY:f}=r,u=pN(r,["position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]);const d=gt();return s?S.createElement("div",dN(fN({},u),{ref:t,style:aN({position:n,arrowSize:o,arrowOffset:i,arrowRadius:l,arrowPosition:a,dir:d.dir,arrowX:c,arrowY:f})})):null});Gw.displayName="@mantine/core/FloatingArrow";var mN=Object.defineProperty,vN=Object.defineProperties,gN=Object.getOwnPropertyDescriptors,Ma=Object.getOwnPropertySymbols,Qw=Object.prototype.hasOwnProperty,Xw=Object.prototype.propertyIsEnumerable,Zv=(e,t,r)=>t in e?mN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nn=(e,t)=>{for(var r in t||(t={}))Qw.call(t,r)&&Zv(e,r,t[r]);if(Ma)for(var r of Ma(t))Xw.call(t,r)&&Zv(e,r,t[r]);return e},vl=(e,t)=>vN(e,gN(t)),yN=(e,t)=>{var r={};for(var n in e)Qw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ma)for(var n of Ma(e))t.indexOf(n)<0&&Xw.call(e,n)&&(r[n]=e[n]);return r};const hN={};function Zw(e){var t;const r=K("PopoverDropdown",hN,e),{style:n,className:o,children:i,onKeyDownCapture:l}=r,a=yN(r,["style","className","children","onKeyDownCapture"]),s=Vw(),{classes:c,cx:f}=Q5({radius:s.radius,shadow:s.shadow},{name:s.__staticSelector,classNames:s.classNames,styles:s.styles,unstyled:s.unstyled,variant:s.variant}),u=Wx({opened:s.opened,shouldReturnFocus:s.returnFocus}),d=s.withRoles?{"aria-labelledby":s.getTargetId(),id:s.getDropdownId(),role:"dialog"}:{};return s.disabled?null:S.createElement(gd,vl(Nn({},s.portalProps),{withinPortal:s.withinPortal}),S.createElement(Ed,vl(Nn({mounted:s.opened},s.transitionProps),{transition:s.transitionProps.transition||"fade",duration:(t=s.transitionProps.duration)!=null?t:150,keepMounted:s.keepMounted,exitDuration:typeof s.transitionProps.exitDuration=="number"?s.transitionProps.exitDuration:s.transitionProps.duration}),g=>{var w,h;return S.createElement(Uw,{active:s.trapFocus},S.createElement(ie,Nn(vl(Nn({},d),{tabIndex:-1,ref:s.floating,style:vl(Nn(Nn({},n),g),{zIndex:s.zIndex,top:(w=s.y)!=null?w:0,left:(h=s.x)!=null?h:0,width:s.width==="target"?void 0:x(s.width)}),className:f(c.dropdown,o),onKeyDownCapture:_O(s.onClose,{active:s.closeOnEscape,onTrigger:u,onKeyDown:l}),"data-position":s.placement}),a),i,S.createElement(Gw,{ref:s.arrowRef,arrowX:s.arrowX,arrowY:s.arrowY,visible:s.withArrow,position:s.placement,arrowSize:s.arrowSize,arrowRadius:s.arrowRadius,arrowOffset:s.arrowOffset,arrowPosition:s.arrowPosition,className:c.arrow})))}))}Zw.displayName="@mantine/core/PopoverDropdown";function wN(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[r,n]=t.split("-"),o=r==="right"?"left":"right";return n===void 0?o:`${o}-${n}`}return t}var qv=Object.getOwnPropertySymbols,_N=Object.prototype.hasOwnProperty,bN=Object.prototype.propertyIsEnumerable,SN=(e,t)=>{var r={};for(var n in e)_N.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qv)for(var n of qv(e))t.indexOf(n)<0&&bN.call(e,n)&&(r[n]=e[n]);return r};const PN={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:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:_o("popover"),__staticSelector:"Popover",width:"max-content"};function So(e){var t,r,n,o,i,l;const a=v.useRef(null),s=K("Popover",PN,e),{children:c,position:f,offset:u,onPositionChange:d,positionDependencies:g,opened:w,transitionProps:h,width:b,middlewares:m,withArrow:p,arrowSize:y,arrowOffset:_,arrowRadius:P,arrowPosition:$,unstyled:O,classNames:E,styles:k,closeOnClickOutside:C,withinPortal:M,portalProps:A,closeOnEscape:W,clickOutsideEvents:L,trapFocus:B,onClose:G,onOpen:ne,onChange:R,zIndex:j,radius:V,shadow:Y,id:Q,defaultOpened:Ye,__staticSelector:ce,withRoles:Le,disabled:me,returnFocus:Me,variant:xt,keepMounted:Mt}=s,tr=SN(s,["children","position","offset","onPositionChange","positionDependencies","opened","transitionProps","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","portalProps","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","__staticSelector","withRoles","disabled","returnFocus","variant","keepMounted"]),[wr,Ft]=v.useState(null),[yt,xn]=v.useState(null),_r=bn(Q),En=gt(),ue=V5({middlewares:m,width:b,position:wN(En.dir,f),offset:typeof u=="number"?u+(p?y/2:0):u,arrowRef:a,arrowOffset:_,onPositionChange:d,positionDependencies:g,opened:w,defaultOpened:Ye,onChange:R,onOpen:ne,onClose:G});Fx(()=>ue.opened&&C&&ue.onClose(),L,[wr,yt]);const qr=v.useCallback(fe=>{Ft(fe),ue.floating.reference(fe)},[ue.floating.reference]),br=v.useCallback(fe=>{xn(fe),ue.floating.floating(fe)},[ue.floating.floating]);return S.createElement(B5,{value:{returnFocus:Me,disabled:me,controlled:ue.controlled,reference:qr,floating:br,x:ue.floating.x,y:ue.floating.y,arrowX:(n=(r=(t=ue.floating)==null?void 0:t.middlewareData)==null?void 0:r.arrow)==null?void 0:n.x,arrowY:(l=(i=(o=ue.floating)==null?void 0:o.middlewareData)==null?void 0:i.arrow)==null?void 0:l.y,opened:ue.opened,arrowRef:a,transitionProps:h,width:b,withArrow:p,arrowSize:y,arrowOffset:_,arrowRadius:P,arrowPosition:$,placement:ue.floating.placement,trapFocus:B,withinPortal:M,portalProps:A,zIndex:j,radius:V,shadow:Y,closeOnEscape:W,onClose:ue.onClose,onToggle:ue.onToggle,getTargetId:()=>`${_r}-target`,getDropdownId:()=>`${_r}-dropdown`,withRoles:Le,targetProps:tr,__staticSelector:ce,classNames:E,styles:k,unstyled:O,variant:xt,keepMounted:Mt}},c)}So.Target=Ww;So.Dropdown=Zw;So.displayName="@mantine/core/Popover";var ON=Object.defineProperty,Fa=Object.getOwnPropertySymbols,qw=Object.prototype.hasOwnProperty,Jw=Object.prototype.propertyIsEnumerable,Jv=(e,t,r)=>t in e?ON(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$N=(e,t)=>{for(var r in t||(t={}))qw.call(t,r)&&Jv(e,r,t[r]);if(Fa)for(var r of Fa(t))Jw.call(t,r)&&Jv(e,r,t[r]);return e},xN=(e,t)=>{var r={};for(var n in e)qw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fa)for(var n of Fa(e))t.indexOf(n)<0&&Jw.call(e,n)&&(r[n]=e[n]);return r};function EN(e){var t=e,{children:r,component:n="div",maxHeight:o=220,direction:i="column",id:l,innerRef:a,__staticSelector:s,styles:c,classNames:f,unstyled:u}=t,d=xN(t,["children","component","maxHeight","direction","id","innerRef","__staticSelector","styles","classNames","unstyled"]);const{classes:g}=Uk(null,{name:s,styles:c,classNames:f,unstyled:u});return S.createElement(So.Dropdown,$N({p:0,onMouseDown:w=>w.preventDefault()},d),S.createElement("div",{style:{maxHeight:x(o),display:"flex"}},S.createElement(ie,{component:n||"div",id:`${l}-items`,"aria-labelledby":`${l}-label`,role:"listbox",onMouseDown:w=>w.preventDefault(),style:{flex:1,overflowY:n!==hd?"auto":void 0},"data-combobox-popover":!0,tabIndex:-1,ref:a},S.createElement("div",{className:g.itemsWrapper,style:{flexDirection:i}},r))))}function ni({opened:e,transitionProps:t={transition:"fade",duration:0},shadow:r,withinPortal:n,portalProps:o,children:i,__staticSelector:l,onDirectionChange:a,switchDirectionOnFlip:s,zIndex:c,dropdownPosition:f,positionDependencies:u=[],classNames:d,styles:g,unstyled:w,readOnly:h,variant:b}){return S.createElement(So,{unstyled:w,classNames:d,styles:g,width:"target",withRoles:!1,opened:e,middlewares:{flip:f==="flip",shift:!1},position:f==="flip"?"bottom":f,positionDependencies:u,zIndex:c,__staticSelector:l,withinPortal:n,portalProps:o,transitionProps:t,shadow:r,disabled:h,onPositionChange:m=>s&&(a==null?void 0:a(m==="top"?"column-reverse":"column")),variant:b},i)}ni.Target=So.Target;ni.Dropdown=EN;var CN=Object.defineProperty,kN=Object.defineProperties,NN=Object.getOwnPropertyDescriptors,Va=Object.getOwnPropertySymbols,e_=Object.prototype.hasOwnProperty,t_=Object.prototype.propertyIsEnumerable,eg=(e,t,r)=>t in e?CN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gl=(e,t)=>{for(var r in t||(t={}))e_.call(t,r)&&eg(e,r,t[r]);if(Va)for(var r of Va(t))t_.call(t,r)&&eg(e,r,t[r]);return e},RN=(e,t)=>kN(e,NN(t)),DN=(e,t)=>{var r={};for(var n in e)e_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Va)for(var n of Va(e))t.indexOf(n)<0&&t_.call(e,n)&&(r[n]=e[n]);return r};function IN(e,t,r){const n=K(e,t,r),{label:o,description:i,error:l,required:a,classNames:s,styles:c,className:f,unstyled:u,__staticSelector:d,sx:g,errorProps:w,labelProps:h,descriptionProps:b,wrapperProps:m,id:p,size:y,style:_,inputContainer:P,inputWrapperOrder:$,withAsterisk:O,variant:E}=n,k=DN(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder","withAsterisk","variant"]),C=bn(p),{systemStyles:M,rest:A}=ji(k),W=gl({label:o,description:i,error:l,required:a,classNames:s,className:f,__staticSelector:d,sx:g,errorProps:w,labelProps:h,descriptionProps:b,unstyled:u,styles:c,id:C,size:y,style:_,inputContainer:P,inputWrapperOrder:$,withAsterisk:O,variant:E},m);return RN(gl({},A),{classNames:s,styles:c,unstyled:u,wrapperProps:gl(gl({},W),M),inputProps:{required:a,classNames:s,styles:c,unstyled:u,id:C,size:y,__staticSelector:d,error:l,variant:E}})}var jN=J((e,t,{size:r})=>({label:{display:"inline-block",fontSize:z({size:r,sizes:e.fontSizes}),fontWeight:500,color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:e.fn.variant({variant:"filled",color:"red"}).background}})),TN=Object.defineProperty,Ba=Object.getOwnPropertySymbols,r_=Object.prototype.hasOwnProperty,n_=Object.prototype.propertyIsEnumerable,tg=(e,t,r)=>t in e?TN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zN=(e,t)=>{for(var r in t||(t={}))r_.call(t,r)&&tg(e,r,t[r]);if(Ba)for(var r of Ba(t))n_.call(t,r)&&tg(e,r,t[r]);return e},AN=(e,t)=>{var r={};for(var n in e)r_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ba)for(var n of Ba(e))t.indexOf(n)<0&&n_.call(e,n)&&(r[n]=e[n]);return r};const LN={labelElement:"label",size:"sm"},Cd=v.forwardRef((e,t)=>{const r=K("InputLabel",LN,e),{labelElement:n,children:o,required:i,size:l,classNames:a,styles:s,unstyled:c,className:f,htmlFor:u,__staticSelector:d,variant:g,onMouseDown:w}=r,h=AN(r,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector","variant","onMouseDown"]),{classes:b,cx:m}=jN(null,{name:["InputWrapper",d],classNames:a,styles:s,unstyled:c,variant:g,size:l});return S.createElement(ie,zN({component:n,ref:t,className:m(b.label,f),htmlFor:n==="label"?u:void 0,onMouseDown:p=>{w==null||w(p),!p.defaultPrevented&&p.detail>1&&p.preventDefault()}},h),o,i&&S.createElement("span",{className:b.required,"aria-hidden":!0}," *"))});Cd.displayName="@mantine/core/InputLabel";var MN=J((e,t,{size:r})=>({error:{wordBreak:"break-word",color:e.fn.variant({variant:"filled",color:"red"}).background,fontSize:`calc(${z({size:r,sizes:e.fontSizes})} - ${x(2)})`,lineHeight:1.2,display:"block"}})),FN=Object.defineProperty,Ha=Object.getOwnPropertySymbols,o_=Object.prototype.hasOwnProperty,i_=Object.prototype.propertyIsEnumerable,rg=(e,t,r)=>t in e?FN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VN=(e,t)=>{for(var r in t||(t={}))o_.call(t,r)&&rg(e,r,t[r]);if(Ha)for(var r of Ha(t))i_.call(t,r)&&rg(e,r,t[r]);return e},BN=(e,t)=>{var r={};for(var n in e)o_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ha)for(var n of Ha(e))t.indexOf(n)<0&&i_.call(e,n)&&(r[n]=e[n]);return r};const HN={size:"sm"},kd=v.forwardRef((e,t)=>{const r=K("InputError",HN,e),{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s,__staticSelector:c,variant:f}=r,u=BN(r,["children","className","classNames","styles","unstyled","size","__staticSelector","variant"]),{classes:d,cx:g}=MN(null,{name:["InputWrapper",c],classNames:i,styles:l,unstyled:a,variant:f,size:s});return S.createElement(yn,VN({className:g(d.error,o),ref:t},u),n)});kd.displayName="@mantine/core/InputError";var WN=J((e,t,{size:r})=>({description:{wordBreak:"break-word",color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontSize:`calc(${z({size:r,sizes:e.fontSizes})} - ${x(2)})`,lineHeight:1.2,display:"block"}})),UN=Object.defineProperty,Wa=Object.getOwnPropertySymbols,l_=Object.prototype.hasOwnProperty,a_=Object.prototype.propertyIsEnumerable,ng=(e,t,r)=>t in e?UN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,KN=(e,t)=>{for(var r in t||(t={}))l_.call(t,r)&&ng(e,r,t[r]);if(Wa)for(var r of Wa(t))a_.call(t,r)&&ng(e,r,t[r]);return e},YN=(e,t)=>{var r={};for(var n in e)l_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wa)for(var n of Wa(e))t.indexOf(n)<0&&a_.call(e,n)&&(r[n]=e[n]);return r};const GN={size:"sm"},Nd=v.forwardRef((e,t)=>{const r=K("InputDescription",GN,e),{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s,__staticSelector:c,variant:f}=r,u=YN(r,["children","className","classNames","styles","unstyled","size","__staticSelector","variant"]),{classes:d,cx:g}=WN(null,{name:["InputWrapper",c],classNames:i,styles:l,unstyled:a,variant:f,size:s});return S.createElement(yn,KN({color:"dimmed",className:g(d.description,o),ref:t,unstyled:a},u),n)});Nd.displayName="@mantine/core/InputDescription";const s_=v.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0}),QN=s_.Provider,XN=()=>v.useContext(s_);function ZN(e,{hasDescription:t,hasError:r}){const n=e.findIndex(s=>s==="input"),o=e[n-1],i=e[n+1];return{offsetBottom:t&&i==="description"||r&&i==="error",offsetTop:t&&o==="description"||r&&o==="error"}}var qN=Object.defineProperty,JN=Object.defineProperties,e3=Object.getOwnPropertyDescriptors,og=Object.getOwnPropertySymbols,t3=Object.prototype.hasOwnProperty,r3=Object.prototype.propertyIsEnumerable,ig=(e,t,r)=>t in e?qN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,n3=(e,t)=>{for(var r in t||(t={}))t3.call(t,r)&&ig(e,r,t[r]);if(og)for(var r of og(t))r3.call(t,r)&&ig(e,r,t[r]);return e},o3=(e,t)=>JN(e,e3(t)),i3=J(e=>({root:o3(n3({},e.fn.fontStyles()),{lineHeight:e.lineHeight})})),l3=Object.defineProperty,a3=Object.defineProperties,s3=Object.getOwnPropertyDescriptors,Ua=Object.getOwnPropertySymbols,c_=Object.prototype.hasOwnProperty,u_=Object.prototype.propertyIsEnumerable,lg=(e,t,r)=>t in e?l3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Er=(e,t)=>{for(var r in t||(t={}))c_.call(t,r)&&lg(e,r,t[r]);if(Ua)for(var r of Ua(t))u_.call(t,r)&&lg(e,r,t[r]);return e},ag=(e,t)=>a3(e,s3(t)),c3=(e,t)=>{var r={};for(var n in e)c_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ua)for(var n of Ua(e))t.indexOf(n)<0&&u_.call(e,n)&&(r[n]=e[n]);return r};const u3={labelElement:"label",size:"sm",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},f_=v.forwardRef((e,t)=>{const r=K("InputWrapper",u3,e),{className:n,label:o,children:i,required:l,id:a,error:s,description:c,labelElement:f,labelProps:u,descriptionProps:d,errorProps:g,classNames:w,styles:h,size:b,inputContainer:m,__staticSelector:p,unstyled:y,inputWrapperOrder:_,withAsterisk:P,variant:$}=r,O=c3(r,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder","withAsterisk","variant"]),{classes:E,cx:k}=i3(null,{classNames:w,styles:h,name:["InputWrapper",p],unstyled:y,variant:$,size:b}),C={classNames:w,styles:h,unstyled:y,size:b,variant:$,__staticSelector:p},M=typeof P=="boolean"?P:l,A=a?`${a}-error`:g==null?void 0:g.id,W=a?`${a}-description`:d==null?void 0:d.id,B=`${!!s&&typeof s!="boolean"?A:""} ${c?W:""}`,G=B.trim().length>0?B.trim():void 0,ne=o&&S.createElement(Cd,Er(Er({key:"label",labelElement:f,id:a?`${a}-label`:void 0,htmlFor:a,required:M},C),u),o),R=c&&S.createElement(Nd,ag(Er(Er({key:"description"},d),C),{size:(d==null?void 0:d.size)||C.size,id:(d==null?void 0:d.id)||W}),c),j=S.createElement(v.Fragment,{key:"input"},m(i)),V=typeof s!="boolean"&&s&&S.createElement(kd,ag(Er(Er({},g),C),{size:(g==null?void 0:g.size)||C.size,key:"error",id:(g==null?void 0:g.id)||A}),s),Y=_.map(Q=>{switch(Q){case"label":return ne;case"input":return j;case"description":return R;case"error":return V;default:return null}});return S.createElement(QN,{value:Er({describedBy:G},ZN(_,{hasDescription:!!R,hasError:!!V}))},S.createElement(ie,Er({className:k(E.root,n),ref:t},O),Y))});f_.displayName="@mantine/core/InputWrapper";var f3=Object.defineProperty,Ka=Object.getOwnPropertySymbols,d_=Object.prototype.hasOwnProperty,p_=Object.prototype.propertyIsEnumerable,sg=(e,t,r)=>t in e?f3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d3=(e,t)=>{for(var r in t||(t={}))d_.call(t,r)&&sg(e,r,t[r]);if(Ka)for(var r of Ka(t))p_.call(t,r)&&sg(e,r,t[r]);return e},p3=(e,t)=>{var r={};for(var n in e)d_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ka)for(var n of Ka(e))t.indexOf(n)<0&&p_.call(e,n)&&(r[n]=e[n]);return r};const m3={},m_=v.forwardRef((e,t)=>{const r=K("InputPlaceholder",m3,e),{sx:n}=r,o=p3(r,["sx"]);return S.createElement(ie,d3({component:"span",sx:[i=>i.fn.placeholderStyles(),...td(n)],ref:t},o))});m_.displayName="@mantine/core/InputPlaceholder";var v3=Object.defineProperty,g3=Object.defineProperties,y3=Object.getOwnPropertyDescriptors,cg=Object.getOwnPropertySymbols,h3=Object.prototype.hasOwnProperty,w3=Object.prototype.propertyIsEnumerable,ug=(e,t,r)=>t in e?v3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yl=(e,t)=>{for(var r in t||(t={}))h3.call(t,r)&&ug(e,r,t[r]);if(cg)for(var r of cg(t))w3.call(t,r)&&ug(e,r,t[r]);return e},Tc=(e,t)=>g3(e,y3(t));const Wt={xs:x(30),sm:x(36),md:x(42),lg:x(50),xl:x(60)},_3=["default","filled","unstyled"];function b3({theme:e,variant:t}){return _3.includes(t)?t==="default"?{border:`${x(1)} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,transition:"border-color 100ms ease","&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:t==="filled"?{border:`${x(1)} solid transparent`,backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:{borderWidth:0,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:"transparent",minHeight:x(28),outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}:null}var S3=J((e,{multiline:t,radius:r,invalid:n,rightSectionWidth:o,withRightSection:i,iconWidth:l,offsetBottom:a,offsetTop:s,pointer:c},{variant:f,size:u})=>{const d=e.fn.variant({variant:"filled",color:"red"}).background,g=f==="default"||f==="filled"?{minHeight:z({size:u,sizes:Wt}),paddingLeft:`calc(${z({size:u,sizes:Wt})} / 3)`,paddingRight:i?o||z({size:u,sizes:Wt}):`calc(${z({size:u,sizes:Wt})} / 3)`,borderRadius:e.fn.radius(r)}:f==="unstyled"&&i?{paddingRight:o||z({size:u,sizes:Wt})}:null;return{wrapper:{position:"relative",marginTop:s?`calc(${e.spacing.xs} / 2)`:void 0,marginBottom:a?`calc(${e.spacing.xs} / 2)`:void 0,"&:has(input:disabled)":{"& .mantine-Input-rightSection":{display:"none"}}},input:Tc(yl(yl(Tc(yl({},e.fn.fontStyles()),{height:t?f==="unstyled"?void 0:"auto":z({size:u,sizes:Wt}),WebkitTapHighlightColor:"transparent",lineHeight:t?e.lineHeight:`calc(${z({size:u,sizes:Wt})} - ${x(2)})`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:z({size:u,sizes:e.fontSizes}),width:"100%",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:c?"pointer":void 0}),b3({theme:e,variant:f})),g),{"&:disabled, &[data-disabled]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed",pointerEvents:"none","&::placeholder":{color:e.colors.dark[2]}},"&[data-invalid]":{color:d,borderColor:d,"&::placeholder":{opacity:1,color:d}},"&[data-with-icon]":{paddingLeft:typeof l=="number"?x(l):z({size:u,sizes:Wt})},"&::placeholder":Tc(yl({},e.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:l?x(l):z({size:u,sizes:Wt}),color:n?e.colors.red[e.colorScheme==="dark"?6:7]:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:o||z({size:u,sizes:Wt})}}}),P3=Object.defineProperty,O3=Object.defineProperties,$3=Object.getOwnPropertyDescriptors,Ya=Object.getOwnPropertySymbols,v_=Object.prototype.hasOwnProperty,g_=Object.prototype.propertyIsEnumerable,fg=(e,t,r)=>t in e?P3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hl=(e,t)=>{for(var r in t||(t={}))v_.call(t,r)&&fg(e,r,t[r]);if(Ya)for(var r of Ya(t))g_.call(t,r)&&fg(e,r,t[r]);return e},dg=(e,t)=>O3(e,$3(t)),x3=(e,t)=>{var r={};for(var n in e)v_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ya)for(var n of Ya(e))t.indexOf(n)<0&&g_.call(e,n)&&(r[n]=e[n]);return r};const E3={size:"sm",variant:"default"},On=v.forwardRef((e,t)=>{const r=K("Input",E3,e),{className:n,error:o,required:i,disabled:l,variant:a,icon:s,style:c,rightSectionWidth:f,iconWidth:u,rightSection:d,rightSectionProps:g,radius:w,size:h,wrapperProps:b,classNames:m,styles:p,__staticSelector:y,multiline:_,sx:P,unstyled:$,pointer:O}=r,E=x3(r,["className","error","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:k,offsetTop:C,describedBy:M}=XN(),{classes:A,cx:W}=S3({radius:w,multiline:_,invalid:!!o,rightSectionWidth:f?x(f):void 0,iconWidth:u,withRightSection:!!d,offsetBottom:k,offsetTop:C,pointer:O},{classNames:m,styles:p,name:["Input",y],unstyled:$,variant:a,size:h}),{systemStyles:L,rest:B}=ji(E);return S.createElement(ie,hl(hl({className:W(A.wrapper,n),sx:P,style:c},L),b),s&&S.createElement("div",{className:A.icon},s),S.createElement(ie,dg(hl({component:"input"},B),{ref:t,required:i,"aria-invalid":!!o,"aria-describedby":M,disabled:l,"data-disabled":l||void 0,"data-with-icon":!!s||void 0,"data-invalid":!!o||void 0,className:A.input})),d&&S.createElement("div",dg(hl({},g),{className:A.rightSection}),d))});On.displayName="@mantine/core/Input";On.Wrapper=f_;On.Label=Cd;On.Description=Nd;On.Error=kd;On.Placeholder=m_;const po=On,y_=v.createContext(null),C3=y_.Provider,k3=()=>v.useContext(y_);var N3=Object.defineProperty,Ga=Object.getOwnPropertySymbols,h_=Object.prototype.hasOwnProperty,w_=Object.prototype.propertyIsEnumerable,pg=(e,t,r)=>t in e?N3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mg=(e,t)=>{for(var r in t||(t={}))h_.call(t,r)&&pg(e,r,t[r]);if(Ga)for(var r of Ga(t))w_.call(t,r)&&pg(e,r,t[r]);return e},R3=(e,t)=>{var r={};for(var n in e)h_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ga)for(var n of Ga(e))t.indexOf(n)<0&&w_.call(e,n)&&(r[n]=e[n]);return r};const D3={size:"sm"},__=v.forwardRef((e,t)=>{const r=K("CheckboxGroup",D3,e),{children:n,value:o,defaultValue:i,onChange:l,size:a,wrapperProps:s}=r,c=R3(r,["children","value","defaultValue","onChange","size","wrapperProps"]),[f,u]=so({value:o,defaultValue:i,finalValue:[],onChange:l}),d=g=>{const w=g.currentTarget.value;u(f.includes(w)?f.filter(h=>h!==w):[...f,w])};return S.createElement(C3,{value:{value:f,onChange:d,size:a}},S.createElement(po.Wrapper,mg(mg({labelElement:"div",size:a,__staticSelector:"CheckboxGroup",ref:t},s),c),n))});__.displayName="@mantine/core/CheckboxGroup";var I3=Object.defineProperty,Qa=Object.getOwnPropertySymbols,b_=Object.prototype.hasOwnProperty,S_=Object.prototype.propertyIsEnumerable,vg=(e,t,r)=>t in e?I3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xa=(e,t)=>{for(var r in t||(t={}))b_.call(t,r)&&vg(e,r,t[r]);if(Qa)for(var r of Qa(t))S_.call(t,r)&&vg(e,r,t[r]);return e},P_=(e,t)=>{var r={};for(var n in e)b_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qa)for(var n of Qa(e))t.indexOf(n)<0&&S_.call(e,n)&&(r[n]=e[n]);return r};function j3(e){const t=e,{width:r,height:n,style:o}=t,i=P_(t,["width","height","style"]);return S.createElement("svg",Xa({viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Xa({width:r,height:n},o)},i),S.createElement("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 T3(e){var t=e,{indeterminate:r}=t,n=P_(t,["indeterminate"]);return r?S.createElement("svg",Xa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6"},n),S.createElement("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})):S.createElement(j3,Xa({},n))}var z3=Object.defineProperty,A3=Object.defineProperties,L3=Object.getOwnPropertyDescriptors,gg=Object.getOwnPropertySymbols,M3=Object.prototype.hasOwnProperty,F3=Object.prototype.propertyIsEnumerable,yg=(e,t,r)=>t in e?z3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hg=(e,t)=>{for(var r in t||(t={}))M3.call(t,r)&&yg(e,r,t[r]);if(gg)for(var r of gg(t))F3.call(t,r)&&yg(e,r,t[r]);return e},wg=(e,t)=>A3(e,L3(t));const V3={xs:x(16),sm:x(20),md:x(24),lg:x(30),xl:x(36)};var B3=J((e,{radius:t,color:r,transitionDuration:n,labelPosition:o,error:i,indeterminate:l},{size:a})=>{const s=z({size:a,sizes:V3}),c=e.fn.variant({variant:"filled",color:r});return{icon:wg(hg({},e.fn.cover()),{ref:Hr("icon"),color:l?"inherit":e.white,transform:l?"none":`translateY(${x(5)}) scale(0.5)`,opacity:l?1:0,transitionProperty:"opacity, transform",transitionTimingFunction:"ease",transitionDuration:`${n}ms`,pointerEvents:"none",width:"60%",position:"absolute",zIndex:1,margin:"auto","@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":void 0}}),inner:{position:"relative",width:s,height:s,order:o==="left"?2:1},input:wg(hg({},e.fn.focusStyles()),{appearance:"none",backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`${x(1)} solid ${i?e.fn.variant({variant:"filled",color:"red"}).background:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,width:s,height:s,borderRadius:e.fn.radius(t),padding:0,display:"block",margin:0,transition:`border-color ${n}ms ease, background-color ${n}ms ease`,cursor:e.cursorType,"&:checked":{backgroundColor:c.background,borderColor:c.background,[`& + .${Hr("icon")}`]:{opacity:1,color:e.white,transform:"translateY(0) scale(1)"}},"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],borderColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[3],cursor:"not-allowed",pointerEvents:"none",[`& + .${Hr("icon")}`]:{color:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[5]}}})}}),H3=Object.defineProperty,W3=Object.defineProperties,U3=Object.getOwnPropertyDescriptors,_g=Object.getOwnPropertySymbols,K3=Object.prototype.hasOwnProperty,Y3=Object.prototype.propertyIsEnumerable,bg=(e,t,r)=>t in e?H3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,G3=(e,t)=>{for(var r in t||(t={}))K3.call(t,r)&&bg(e,r,t[r]);if(_g)for(var r of _g(t))Y3.call(t,r)&&bg(e,r,t[r]);return e},Q3=(e,t)=>W3(e,U3(t));const zc={xs:x(16),sm:x(20),md:x(24),lg:x(30),xl:x(36)};var X3=J((e,{labelPosition:t},{size:r})=>({root:{},body:{display:"flex","&:has(input:disabled) label":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}},labelWrapper:Q3(G3({},e.fn.fontStyles()),{display:"inline-flex",flexDirection:"column",WebkitTapHighlightColor:"transparent",fontSize:r in zc?z({size:r,sizes:e.fontSizes}):void 0,lineHeight:r in zc?z({size:r,sizes:zc}):void 0,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,cursor:e.cursorType,order:t==="left"?1:2}),description:{marginTop:`calc(${e.spacing.xs} / 2)`,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm},error:{marginTop:`calc(${e.spacing.xs} / 2)`,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm},label:{cursor:e.cursorType,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm,"&:disabled, &[data-disabled]":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}}})),Z3=Object.defineProperty,Za=Object.getOwnPropertySymbols,O_=Object.prototype.hasOwnProperty,$_=Object.prototype.propertyIsEnumerable,Sg=(e,t,r)=>t in e?Z3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q3=(e,t)=>{for(var r in t||(t={}))O_.call(t,r)&&Sg(e,r,t[r]);if(Za)for(var r of Za(t))$_.call(t,r)&&Sg(e,r,t[r]);return e},J3=(e,t)=>{var r={};for(var n in e)O_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Za)for(var n of Za(e))t.indexOf(n)<0&&$_.call(e,n)&&(r[n]=e[n]);return r};const Rd=v.forwardRef((e,t)=>{var r=e,{__staticSelector:n,className:o,classNames:i,styles:l,unstyled:a,children:s,label:c,description:f,id:u,disabled:d,error:g,size:w,labelPosition:h,variant:b}=r,m=J3(r,["__staticSelector","className","classNames","styles","unstyled","children","label","description","id","disabled","error","size","labelPosition","variant"]);const{classes:p,cx:y}=X3({labelPosition:h},{name:n,styles:l,classNames:i,unstyled:a,variant:b,size:w});return S.createElement(ie,q3({className:y(p.root,o),ref:t},m),S.createElement("div",{className:y(p.body)},s,S.createElement("div",{className:p.labelWrapper},c!=null&&S.createElement("label",{className:p.label,"data-disabled":d||void 0,htmlFor:u},c),f&&S.createElement(po.Description,{className:p.description},f),g&&g!=="boolean"&&S.createElement(po.Error,{className:p.error},g))))});Rd.displayName="@mantine/core/InlineInput";var eR=Object.defineProperty,qa=Object.getOwnPropertySymbols,x_=Object.prototype.hasOwnProperty,E_=Object.prototype.propertyIsEnumerable,Pg=(e,t,r)=>t in e?eR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t)=>{for(var r in t||(t={}))x_.call(t,r)&&Pg(e,r,t[r]);if(qa)for(var r of qa(t))E_.call(t,r)&&Pg(e,r,t[r]);return e},tR=(e,t)=>{var r={};for(var n in e)x_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qa)for(var n of qa(e))t.indexOf(n)<0&&E_.call(e,n)&&(r[n]=e[n]);return r};const rR={size:"sm",transitionDuration:100,icon:T3,labelPosition:"right"},Ja=v.forwardRef((e,t)=>{const r=K("Checkbox",rR,e),{className:n,style:o,sx:i,checked:l,disabled:a,color:s,label:c,indeterminate:f,id:u,size:d,radius:g,wrapperProps:w,children:h,classNames:b,styles:m,transitionDuration:p,icon:y,unstyled:_,labelPosition:P,description:$,error:O,variant:E}=r,k=tR(r,["className","style","sx","checked","disabled","color","label","indeterminate","id","size","radius","wrapperProps","children","classNames","styles","transitionDuration","icon","unstyled","labelPosition","description","error","variant"]),C=k3(),M=bn(u),{systemStyles:A,rest:W}=ji(k),{classes:L}=B3({radius:g,color:s,transitionDuration:p,labelPosition:P,error:!!O,indeterminate:f},{name:"Checkbox",classNames:b,styles:m,unstyled:_,variant:E,size:(C==null?void 0:C.size)||d}),B=C?{checked:C.value.includes(W.value),onChange:C.onChange}:{};return S.createElement(Rd,wl(wl({className:n,sx:i,style:o,id:M,size:(C==null?void 0:C.size)||d,labelPosition:P,label:c,description:$,error:O,disabled:a,__staticSelector:"Checkbox",classNames:b,styles:m,unstyled:_,"data-checked":B.checked||void 0,variant:E},A),w),S.createElement("div",{className:L.inner},S.createElement("input",wl(wl({id:M,ref:t,type:"checkbox",className:L.input,checked:l,disabled:a},W),B)),S.createElement(y,{indeterminate:f,className:L.icon})))});Ja.displayName="@mantine/core/Checkbox";Ja.Group=__;var nR=Object.defineProperty,oR=Object.defineProperties,iR=Object.getOwnPropertyDescriptors,Og=Object.getOwnPropertySymbols,lR=Object.prototype.hasOwnProperty,aR=Object.prototype.propertyIsEnumerable,$g=(e,t,r)=>t in e?nR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sR=(e,t)=>{for(var r in t||(t={}))lR.call(t,r)&&$g(e,r,t[r]);if(Og)for(var r of Og(t))aR.call(t,r)&&$g(e,r,t[r]);return e},cR=(e,t)=>oR(e,iR(t)),uR=J((e,{color:t,opacity:r,blur:n,radius:o,gradient:i,fixed:l,zIndex:a})=>({root:cR(sR({},e.fn.cover(0)),{position:l?"fixed":"absolute",backgroundColor:i?void 0:e.fn.rgba(t,r),backgroundImage:i,backdropFilter:n?`blur(${x(n)})`:void 0,borderRadius:e.fn.radius(o),zIndex:a,"&[data-center]":{display:"flex",alignItems:"center",justifyContent:"center"}})})),fR=Object.defineProperty,es=Object.getOwnPropertySymbols,C_=Object.prototype.hasOwnProperty,k_=Object.prototype.propertyIsEnumerable,xg=(e,t,r)=>t in e?fR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dR=(e,t)=>{for(var r in t||(t={}))C_.call(t,r)&&xg(e,r,t[r]);if(es)for(var r of es(t))k_.call(t,r)&&xg(e,r,t[r]);return e},pR=(e,t)=>{var r={};for(var n in e)C_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&es)for(var n of es(e))t.indexOf(n)<0&&k_.call(e,n)&&(r[n]=e[n]);return r};const mR={opacity:.6,color:"#000",zIndex:_o("modal"),radius:0},N_=v.forwardRef((e,t)=>{const r=K("Overlay",mR,e),{variant:n,opacity:o,color:i,blur:l,gradient:a,zIndex:s,radius:c,children:f,className:u,classNames:d,styles:g,unstyled:w,center:h,fixed:b}=r,m=pR(r,["variant","opacity","color","blur","gradient","zIndex","radius","children","className","classNames","styles","unstyled","center","fixed"]),{classes:p,cx:y}=uR({color:i,opacity:o,blur:l,radius:c,gradient:a,fixed:b,zIndex:s},{name:"Overlay",classNames:d,styles:g,unstyled:w,variant:n});return S.createElement(ie,dR({ref:t,className:y(p.root,u),"data-center":h||void 0},m),f)});N_.displayName="@mantine/core/Overlay";const vR=N_;function gR(e){return v.Children.toArray(e).filter(Boolean)}const R_={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var yR=J((e,{spacing:t,position:r,noWrap:n,grow:o,align:i,count:l})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:i||"center",flexWrap:n?"nowrap":"wrap",justifyContent:R_[r],gap:z({size:t,sizes:e.spacing}),"& > *":{boxSizing:"border-box",maxWidth:o?`calc(${100/l}% - (${x(z({size:t,sizes:e.spacing}))} - ${z({size:t,sizes:e.spacing})} / ${l}))`:void 0,flexGrow:o?1:0}}})),hR=Object.defineProperty,ts=Object.getOwnPropertySymbols,D_=Object.prototype.hasOwnProperty,I_=Object.prototype.propertyIsEnumerable,Eg=(e,t,r)=>t in e?hR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wR=(e,t)=>{for(var r in t||(t={}))D_.call(t,r)&&Eg(e,r,t[r]);if(ts)for(var r of ts(t))I_.call(t,r)&&Eg(e,r,t[r]);return e},_R=(e,t)=>{var r={};for(var n in e)D_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ts)for(var n of ts(e))t.indexOf(n)<0&&I_.call(e,n)&&(r[n]=e[n]);return r};const bR={position:"left",spacing:"md"},Jn=v.forwardRef((e,t)=>{const r=K("Group",bR,e),{className:n,position:o,align:i,children:l,noWrap:a,grow:s,spacing:c,unstyled:f,variant:u}=r,d=_R(r,["className","position","align","children","noWrap","grow","spacing","unstyled","variant"]),g=gR(l),{classes:w,cx:h}=yR({align:i,grow:s,noWrap:a,spacing:c,position:o,count:g.length},{unstyled:f,name:"Group",variant:u});return S.createElement(ie,wR({className:h(w.root,n),ref:t},d),g)});Jn.displayName="@mantine/core/Group";var SR=Object.defineProperty,PR=Object.defineProperties,OR=Object.getOwnPropertyDescriptors,Cg=Object.getOwnPropertySymbols,$R=Object.prototype.hasOwnProperty,xR=Object.prototype.propertyIsEnumerable,kg=(e,t,r)=>t in e?SR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ER=(e,t)=>{for(var r in t||(t={}))$R.call(t,r)&&kg(e,r,t[r]);if(Cg)for(var r of Cg(t))xR.call(t,r)&&kg(e,r,t[r]);return e},CR=(e,t)=>PR(e,OR(t)),kR=J(e=>({root:CR(ER({},e.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})})),NR=Object.defineProperty,RR=Object.defineProperties,DR=Object.getOwnPropertyDescriptors,rs=Object.getOwnPropertySymbols,j_=Object.prototype.hasOwnProperty,T_=Object.prototype.propertyIsEnumerable,Ng=(e,t,r)=>t in e?NR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_l=(e,t)=>{for(var r in t||(t={}))j_.call(t,r)&&Ng(e,r,t[r]);if(rs)for(var r of rs(t))T_.call(t,r)&&Ng(e,r,t[r]);return e},IR=(e,t)=>RR(e,DR(t)),jR=(e,t)=>{var r={};for(var n in e)j_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&rs)for(var n of rs(e))t.indexOf(n)<0&&T_.call(e,n)&&(r[n]=e[n]);return r};const TR={overlayOpacity:.75,transitionDuration:0,radius:0,zIndex:_o("overlay")},z_=v.forwardRef((e,t)=>{const r=K("LoadingOverlay",TR,e),{className:n,visible:o,loaderProps:i,overlayOpacity:l,overlayColor:a,transitionDuration:s,exitTransitionDuration:c,zIndex:f,style:u,loader:d,radius:g,overlayBlur:w,unstyled:h,variant:b,keepMounted:m}=r,p=jR(r,["className","visible","loaderProps","overlayOpacity","overlayColor","transitionDuration","exitTransitionDuration","zIndex","style","loader","radius","overlayBlur","unstyled","variant","keepMounted"]),{classes:y,cx:_,theme:P}=kR(null,{name:"LoadingOverlay",unstyled:h,variant:b}),$=`calc(${f} + 1)`;return S.createElement(Ed,{keepMounted:m,duration:s,exitDuration:c,mounted:o,transition:"fade"},O=>S.createElement(ie,_l({className:_(y.root,n),style:IR(_l(_l({},O),u),{zIndex:f}),ref:t},p),d?S.createElement("div",{style:{zIndex:$}},d):S.createElement(vd,_l({style:{zIndex:$}},i)),S.createElement(vR,{opacity:l,zIndex:f,radius:g,blur:w,unstyled:h,color:a||(P.colorScheme==="dark"?P.colors.dark[5]:P.white)})))});z_.displayName="@mantine/core/LoadingOverlay";var zR=Object.defineProperty,ns=Object.getOwnPropertySymbols,A_=Object.prototype.hasOwnProperty,L_=Object.prototype.propertyIsEnumerable,Rg=(e,t,r)=>t in e?zR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dg=(e,t)=>{for(var r in t||(t={}))A_.call(t,r)&&Rg(e,r,t[r]);if(ns)for(var r of ns(t))L_.call(t,r)&&Rg(e,r,t[r]);return e},AR=(e,t)=>{var r={};for(var n in e)A_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ns)for(var n of ns(e))t.indexOf(n)<0&&L_.call(e,n)&&(r[n]=e[n]);return r};const LR={xs:x(14),sm:x(18),md:x(20),lg:x(24),xl:x(28)};function MR(e){var t=e,{size:r,error:n,style:o}=t,i=AR(t,["size","error","style"]);const l=gt(),a=z({size:r,sizes:LR});return S.createElement("svg",Dg({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Dg({color:n?l.colors.red[6]:l.colors.gray[6],width:a,height:a},o),"data-chevron":!0},i),S.createElement("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"}))}var FR=Object.defineProperty,VR=Object.defineProperties,BR=Object.getOwnPropertyDescriptors,Ig=Object.getOwnPropertySymbols,HR=Object.prototype.hasOwnProperty,WR=Object.prototype.propertyIsEnumerable,jg=(e,t,r)=>t in e?FR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UR=(e,t)=>{for(var r in t||(t={}))HR.call(t,r)&&jg(e,r,t[r]);if(Ig)for(var r of Ig(t))WR.call(t,r)&&jg(e,r,t[r]);return e},KR=(e,t)=>VR(e,BR(t));function M_({shouldClear:e,clearButtonProps:t,onClear:r,size:n,error:o}){return e?S.createElement(W1,KR(UR({},t),{variant:"transparent",onClick:r,size:n,onMouseDown:i=>i.preventDefault()})):S.createElement(MR,{error:o,size:n})}M_.displayName="@mantine/core/SelectRightSection";var YR=Object.defineProperty,GR=Object.defineProperties,QR=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,F_=Object.prototype.hasOwnProperty,V_=Object.prototype.propertyIsEnumerable,Tg=(e,t,r)=>t in e?YR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ac=(e,t)=>{for(var r in t||(t={}))F_.call(t,r)&&Tg(e,r,t[r]);if(os)for(var r of os(t))V_.call(t,r)&&Tg(e,r,t[r]);return e},zg=(e,t)=>GR(e,QR(t)),XR=(e,t)=>{var r={};for(var n in e)F_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&os)for(var n of os(e))t.indexOf(n)<0&&V_.call(e,n)&&(r[n]=e[n]);return r};function ZR(e){var t=e,{styles:r,rightSection:n,rightSectionWidth:o,theme:i}=t,l=XR(t,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:o,styles:r};const a=typeof r=="function"?r(i):r;return{rightSection:!l.readOnly&&!(l.disabled&&l.shouldClear)&&S.createElement(M_,Ac({},l)),styles:zg(Ac({},a),{rightSection:zg(Ac({},a==null?void 0:a.rightSection),{pointerEvents:l.shouldClear?void 0:"none"})})}}var qR=Object.defineProperty,is=Object.getOwnPropertySymbols,B_=Object.prototype.hasOwnProperty,H_=Object.prototype.propertyIsEnumerable,Ag=(e,t,r)=>t in e?qR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lg=(e,t)=>{for(var r in t||(t={}))B_.call(t,r)&&Ag(e,r,t[r]);if(is)for(var r of is(t))H_.call(t,r)&&Ag(e,r,t[r]);return e},JR=(e,t)=>{var r={};for(var n in e)B_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&is)for(var n of is(e))t.indexOf(n)<0&&H_.call(e,n)&&(r[n]=e[n]);return r};function e4(e){const t=e,{width:r,height:n,style:o}=t,i=JR(t,["width","height","style"]);return S.createElement("svg",Lg({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:Lg({width:r,height:n},o)},i),S.createElement("path",{fill:"currentColor",d:"M0 2.5a2.5 2.5 0 115 0 2.5 2.5 0 01-5 0z"}))}const W_=v.createContext(null),t4=W_.Provider,r4=()=>v.useContext(W_);var n4=Object.defineProperty,ls=Object.getOwnPropertySymbols,U_=Object.prototype.hasOwnProperty,K_=Object.prototype.propertyIsEnumerable,Mg=(e,t,r)=>t in e?n4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fg=(e,t)=>{for(var r in t||(t={}))U_.call(t,r)&&Mg(e,r,t[r]);if(ls)for(var r of ls(t))K_.call(t,r)&&Mg(e,r,t[r]);return e},o4=(e,t)=>{var r={};for(var n in e)U_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ls)for(var n of ls(e))t.indexOf(n)<0&&K_.call(e,n)&&(r[n]=e[n]);return r};const i4={size:"sm"},Y_=v.forwardRef((e,t)=>{const r=K("RadioGroup",i4,e),{children:n,value:o,defaultValue:i,onChange:l,size:a,wrapperProps:s,unstyled:c,name:f}=r,u=o4(r,["children","value","defaultValue","onChange","size","wrapperProps","unstyled","name"]),d=bn(f),[g,w]=so({value:o,defaultValue:i,finalValue:"",onChange:l}),h=b=>w(b.currentTarget.value);return S.createElement(t4,{value:{value:g,onChange:h,size:a,name:d}},S.createElement(po.Wrapper,Fg(Fg({labelElement:"div",size:a,__staticSelector:"RadioGroup",ref:t,unstyled:c},s),u),n))});Y_.displayName="@mantine/core/RadioGroup";var l4=Object.defineProperty,a4=Object.defineProperties,s4=Object.getOwnPropertyDescriptors,Vg=Object.getOwnPropertySymbols,c4=Object.prototype.hasOwnProperty,u4=Object.prototype.propertyIsEnumerable,Bg=(e,t,r)=>t in e?l4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f4=(e,t)=>{for(var r in t||(t={}))c4.call(t,r)&&Bg(e,r,t[r]);if(Vg)for(var r of Vg(t))u4.call(t,r)&&Bg(e,r,t[r]);return e},d4=(e,t)=>a4(e,s4(t));const Lc={xs:x(16),sm:x(20),md:x(24),lg:x(30),xl:x(36)},bl={xs:x(6),sm:x(8),md:x(10),lg:x(14),xl:x(16)};var p4=J((e,{color:t,transitionDuration:r,labelPosition:n,error:o},{size:i})=>{const l=e.fn.variant({variant:"filled",color:t}),a=e.fn.variant({variant:"filled",color:"red"}).background;return{inner:{order:n==="left"?2:1,position:"relative",alignSelf:"flex-start"},icon:{ref:Hr("icon"),color:e.white,opacity:0,transform:`scale(0.75) translateY(${x(2)})`,transition:`opacity ${r}ms ${e.transitionTimingFunction}`,pointerEvents:"none",width:z({sizes:bl,size:i}),height:z({sizes:bl,size:i}),position:"absolute",top:`calc(50% - ${z({sizes:bl,size:i})} / 2)`,left:`calc(50% - ${z({sizes:bl,size:i})} / 2)`},radio:d4(f4({},e.fn.focusStyles()),{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`${x(1)} solid ${o?a:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,position:"relative",appearance:"none",width:z({sizes:Lc,size:i}),height:z({sizes:Lc,size:i}),borderRadius:z({sizes:Lc,size:i}),margin:0,display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:`${r}ms`,cursor:e.cursorType,"&:checked":{background:l.background,borderColor:l.background,[`& + .${Hr("icon")}`]:{opacity:1,transform:"scale(1)"}},"&:disabled":{borderColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[4],backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1],[`& + .${Hr("icon")}`]:{color:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[4]}}})}}),m4=Object.defineProperty,as=Object.getOwnPropertySymbols,G_=Object.prototype.hasOwnProperty,Q_=Object.prototype.propertyIsEnumerable,Hg=(e,t,r)=>t in e?m4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sl=(e,t)=>{for(var r in t||(t={}))G_.call(t,r)&&Hg(e,r,t[r]);if(as)for(var r of as(t))Q_.call(t,r)&&Hg(e,r,t[r]);return e},v4=(e,t)=>{var r={};for(var n in e)G_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&as)for(var n of as(e))t.indexOf(n)<0&&Q_.call(e,n)&&(r[n]=e[n]);return r};const g4={icon:e4,transitionDuration:100,size:"sm",labelPosition:"right"},ss=v.forwardRef((e,t)=>{var r,n;const o=K("Radio",g4,e),{className:i,style:l,id:a,label:s,size:c,title:f,disabled:u,color:d,classNames:g,styles:w,sx:h,icon:b,transitionDuration:m,wrapperProps:p,unstyled:y,labelPosition:_,description:P,error:$,variant:O}=o,E=v4(o,["className","style","id","label","size","title","disabled","color","classNames","styles","sx","icon","transitionDuration","wrapperProps","unstyled","labelPosition","description","error","variant"]),k=r4(),C=(r=k==null?void 0:k.size)!=null?r:c,M=e.size?c:C,{classes:A}=p4({color:d,transitionDuration:m,labelPosition:_,error:!!$},{name:"Radio",classNames:g,styles:w,unstyled:y,variant:O,size:M}),{systemStyles:W,rest:L}=ji(E),B=bn(a),G=k?{checked:k.value===L.value,name:(n=L.name)!=null?n:k.name,onChange:k.onChange}:{};return S.createElement(Rd,Sl(Sl({className:i,sx:h,style:l,id:B,size:M,labelPosition:_,label:s,description:P,error:$,disabled:u,__staticSelector:"Radio",classNames:g,styles:w,unstyled:y,"data-checked":G.checked||void 0,variant:O},W),p),S.createElement("div",{className:A.inner},S.createElement("input",Sl(Sl({ref:t,className:A.radio,type:"radio",id:B,disabled:u},L),G)),S.createElement(b,{className:A.icon,"aria-hidden":!0})))});ss.displayName="@mantine/core/Radio";ss.Group=Y_;function y4({data:e,searchable:t,limit:r,searchValue:n,filter:o,value:i,filterDataOnExactSearchMatch:l}){if(!t)return e;const a=i!=null&&e.find(c=>c.value===i)||null;if(a&&!l&&(a==null?void 0:a.label)===n){if(r){if(r>=e.length)return e;const c=e.indexOf(a),f=c+r,u=f-e.length;return u>0?e.slice(c-u):e.slice(c,f)}return e}const s=[];for(let c=0;c=r));c+=1);return s}var h4=J(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}})),w4=Object.defineProperty,_4=Object.defineProperties,b4=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertySymbols,X_=Object.prototype.hasOwnProperty,Z_=Object.prototype.propertyIsEnumerable,Wg=(e,t,r)=>t in e?w4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vo=(e,t)=>{for(var r in t||(t={}))X_.call(t,r)&&Wg(e,r,t[r]);if(cs)for(var r of cs(t))Z_.call(t,r)&&Wg(e,r,t[r]);return e},Mc=(e,t)=>_4(e,b4(t)),S4=(e,t)=>{var r={};for(var n in e)X_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cs)for(var n of cs(e))t.indexOf(n)<0&&Z_.call(e,n)&&(r[n]=e[n]);return r};function P4(e,t){return t.label.toLowerCase().trim().includes(e.toLowerCase().trim())}function O4(e,t){return!!e&&!t.some(r=>r.label.toLowerCase()===e.toLowerCase())}const $4={required:!1,size:"sm",shadow:"sm",itemComponent:dw,transitionProps:{transition:"fade",duration:0},initiallyOpened:!1,filter:P4,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:O4,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:_o("popover"),positionDependencies:[],dropdownPosition:"flip"},q_=v.forwardRef((e,t)=>{const r=IN("Select",$4,e),{inputProps:n,wrapperProps:o,shadow:i,data:l,value:a,defaultValue:s,onChange:c,itemComponent:f,onKeyDown:u,onBlur:d,onFocus:g,transitionProps:w,initiallyOpened:h,unstyled:b,classNames:m,styles:p,filter:y,maxDropdownHeight:_,searchable:P,clearable:$,nothingFound:O,limit:E,disabled:k,onSearchChange:C,searchValue:M,rightSection:A,rightSectionWidth:W,creatable:L,getCreateLabel:B,shouldCreate:G,selectOnBlur:ne,onCreate:R,dropdownComponent:j,onDropdownClose:V,onDropdownOpen:Y,withinPortal:Q,portalProps:Ye,switchDirectionOnFlip:ce,zIndex:Le,name:me,dropdownPosition:Me,allowDeselect:xt,placeholder:Mt,filterDataOnExactSearchMatch:tr,form:wr,positionDependencies:Ft,readOnly:yt,clearButtonProps:xn,hoverOnSearchChange:_r}=r,En=S4(r,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transitionProps","initiallyOpened","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","limit","disabled","onSearchChange","searchValue","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","portalProps","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","form","positionDependencies","readOnly","clearButtonProps","hoverOnSearchChange"]),{classes:ue,cx:qr,theme:br}=h4(),[fe,tc]=v.useState(h),[Et,Ie]=v.useState(-1),D=v.useRef(),F=v.useRef({}),[ve,$e]=v.useState("column"),be=ve==="column",{scrollIntoView:Ct,targetRef:Vt,scrollableRef:Oo}=cE({duration:0,offset:5,cancelable:!1,isList:!0}),$o=xt===void 0?$:xt,Fe=T=>{if(fe!==T){tc(T);const le=T?Y:V;typeof le=="function"&&le()}},Sr=L&&typeof B=="function";let Jr=null;const xo=l.map(T=>typeof T=="string"?{label:T,value:T}:T),Pr=bO({data:xo}),[Ge,Or,zd]=so({value:a,defaultValue:s,finalValue:null,onChange:c}),rr=Pr.find(T=>T.value===Ge),[nr,zb]=so({value:M,defaultValue:(rr==null?void 0:rr.label)||"",finalValue:void 0,onChange:C}),en=T=>{zb(T),P&&typeof C=="function"&&C(T)},Ab=()=>{var T;yt||(Or(null),zd||en(""),(T=D.current)==null||T.focus())};v.useEffect(()=>{const T=Pr.find(le=>le.value===Ge);T?en(T.label):(!Sr||!Ge)&&en("")},[Ge]),v.useEffect(()=>{rr&&(!P||!fe)&&en(rr.label)},[rr==null?void 0:rr.label]);const Mi=T=>{if(!yt)if($o&&(rr==null?void 0:rr.value)===T.value)Or(null),Fe(!1);else{if(T.creatable&&typeof R=="function"){const le=R(T.value);typeof le<"u"&&le!==null&&Or(typeof le=="string"?le:le.value)}else Or(T.value);zd||en(T.label),Ie(-1),Fe(!1),D.current.focus()}},ke=y4({data:Pr,searchable:P,limit:E,searchValue:nr,filter:y,filterDataOnExactSearchMatch:tr,value:Ge});Sr&&G(nr,ke)&&(Jr=B(nr),ke.push({label:nr,value:nr,creatable:!0}));const Ad=(T,le,it)=>{let lt=T;for(;it(lt);)if(lt=le(lt),!ke[lt].disabled)return lt;return T};Kr(()=>{Ie(_r&&nr?0:-1)},[nr,_r]);const Eo=Ge?ke.findIndex(T=>T.value===Ge):0,kt=!yt&&(ke.length>0?fe:fe&&!!O),Ld=()=>{Ie(T=>{var le;const it=Ad(T,lt=>lt-1,lt=>lt>0);return Vt.current=F.current[(le=ke[it])==null?void 0:le.value],kt&&Ct({alignment:be?"start":"end"}),it})},Md=()=>{Ie(T=>{var le;const it=Ad(T,lt=>lt+1,lt=>ltwindow.setTimeout(()=>{var T;Vt.current=F.current[(T=ke[Eo])==null?void 0:T.value],Ct({alignment:be?"end":"start"})},50);Kr(()=>{kt&&Fi()},[kt]);const Lb=T=>{switch(typeof u=="function"&&u(T),T.key){case"ArrowUp":{T.preventDefault(),fe?be?Ld():Md():(Ie(Eo),Fe(!0),Fi());break}case"ArrowDown":{T.preventDefault(),fe?be?Md():Ld():(Ie(Eo),Fe(!0),Fi());break}case"Home":{if(!P){T.preventDefault(),fe||Fe(!0);const le=ke.findIndex(it=>!it.disabled);Ie(le),kt&&Ct({alignment:be?"end":"start"})}break}case"End":{if(!P){T.preventDefault(),fe||Fe(!0);const le=ke.map(it=>!!it.disabled).lastIndexOf(!1);Ie(le),kt&&Ct({alignment:be?"end":"start"})}break}case"Escape":{T.preventDefault(),Fe(!1),Ie(-1);break}case" ":{P||(T.preventDefault(),ke[Et]&&fe?Mi(ke[Et]):(Fe(!0),Ie(Eo),Fi()));break}case"Enter":P||T.preventDefault(),ke[Et]&&fe&&(T.preventDefault(),Mi(ke[Et]))}},Mb=T=>{typeof d=="function"&&d(T);const le=Pr.find(it=>it.value===Ge);ne&&ke[Et]&&fe&&Mi(ke[Et]),en((le==null?void 0:le.label)||""),Fe(!1)},Fb=T=>{typeof g=="function"&&g(T),P&&Fe(!0)},Vb=T=>{yt||(en(T.currentTarget.value),$&&T.currentTarget.value===""&&Or(null),Ie(-1),Fe(!0))},Bb=()=>{yt||(Fe(!fe),Ge&&!fe&&Ie(Eo))};return S.createElement(po.Wrapper,Mc(Vo({},o),{__staticSelector:"Select"}),S.createElement(ni,{opened:kt,transitionProps:w,shadow:i,withinPortal:Q,portalProps:Ye,__staticSelector:"Select",onDirectionChange:$e,switchDirectionOnFlip:ce,zIndex:Le,dropdownPosition:Me,positionDependencies:[...Ft,nr],classNames:m,styles:p,unstyled:b,variant:n.variant},S.createElement(ni.Target,null,S.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":kt?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":kt,onMouseLeave:()=>Ie(-1),tabIndex:-1},S.createElement("input",{type:"hidden",name:me,value:Ge||"",form:wr,disabled:k}),S.createElement(po,Vo(Mc(Vo(Vo({autoComplete:"off",type:"search"},n),En),{ref:md(t,D),onKeyDown:Lb,__staticSelector:"Select",value:nr,placeholder:Mt,onChange:Vb,"aria-autocomplete":"list","aria-controls":kt?`${n.id}-items`:null,"aria-activedescendant":Et>=0?`${n.id}-${Et}`:null,onMouseDown:Bb,onBlur:Mb,onFocus:Fb,readOnly:!P||yt,disabled:k,"data-mantine-stop-propagation":kt,name:null,classNames:Mc(Vo({},m),{input:qr({[ue.input]:!P},m==null?void 0:m.input)})}),ZR({theme:br,rightSection:A,rightSectionWidth:W,styles:p,size:n.size,shouldClear:$&&!!rr,onClear:Ab,error:o.error,clearButtonProps:xn,disabled:k,readOnly:yt}))))),S.createElement(ni.Dropdown,{component:j||hd,maxHeight:_,direction:ve,id:n.id,innerRef:Oo,__staticSelector:"Select",classNames:m,styles:p},S.createElement(cw,{data:ke,hovered:Et,classNames:m,styles:p,isItemSelected:T=>T===Ge,uuid:n.id,__staticSelector:"Select",onItemHover:Ie,onItemSelect:Mi,itemsRefs:F,itemComponent:f,size:n.size,nothingFound:O,creatable:Sr&&!!Jr,createLabel:Jr,"aria-label":o.label,unstyled:b,variant:n.variant}))))});q_.displayName="@mantine/core/Select";const Ju={context:"Tabs component was not found in the tree",value:"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value"},[x4,Dd]=ed(Ju.context);var E4=Object.defineProperty,Ug=Object.getOwnPropertySymbols,C4=Object.prototype.hasOwnProperty,k4=Object.prototype.propertyIsEnumerable,Kg=(e,t,r)=>t in e?E4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,N4=(e,t)=>{for(var r in t||(t={}))C4.call(t,r)&&Kg(e,r,t[r]);if(Ug)for(var r of Ug(t))k4.call(t,r)&&Kg(e,r,t[r]);return e};function R4({orientation:e,inverted:t,placement:r},n,o){const i=e==="vertical";return o==="default"?{[i?r==="left"?"borderRight":"borderLeft":t?"borderTop":"borderBottom"]:`${x(2)} solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:o==="outline"?{[i?r==="left"?"borderRight":"borderLeft":t?"borderTop":"borderBottom"]:`${x(1)} solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:o==="pills"?{gap:`calc(${n.spacing.sm} / 2)`}:{}}var D4=J((e,t,{variant:r})=>{const n=t.orientation==="vertical";return{tabsList:N4({display:"flex",flexWrap:"wrap",flexDirection:n?"column":"row",justifyContent:R_[t.position],'& [role="tab"]':{flex:t.grow?1:void 0}},R4(t,e,r))}}),I4=Object.defineProperty,j4=Object.defineProperties,T4=Object.getOwnPropertyDescriptors,us=Object.getOwnPropertySymbols,J_=Object.prototype.hasOwnProperty,eb=Object.prototype.propertyIsEnumerable,Yg=(e,t,r)=>t in e?I4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z4=(e,t)=>{for(var r in t||(t={}))J_.call(t,r)&&Yg(e,r,t[r]);if(us)for(var r of us(t))eb.call(t,r)&&Yg(e,r,t[r]);return e},A4=(e,t)=>j4(e,T4(t)),L4=(e,t)=>{var r={};for(var n in e)J_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&us)for(var n of us(e))t.indexOf(n)<0&&eb.call(e,n)&&(r[n]=e[n]);return r};const M4={grow:!1,position:"left"},tb=v.forwardRef((e,t)=>{const r=K("TabsList",M4,e),{children:n,className:o,grow:i,position:l}=r,a=L4(r,["children","className","grow","position"]),{orientation:s,variant:c,color:f,radius:u,inverted:d,placement:g,classNames:w,styles:h,unstyled:b}=Dd(),{classes:m,cx:p}=D4({orientation:s,grow:i,color:f,position:l,radius:u,inverted:d,placement:g},{name:"Tabs",unstyled:b,classNames:w,styles:h,variant:c});return S.createElement(ie,A4(z4({},a),{className:p(m.tabsList,o),ref:t,role:"tablist","aria-orientation":s}),n)});tb.displayName="@mantine/core/TabsList";var F4=J((e,{orientation:t})=>({panel:{flex:t==="vertical"?1:void 0}})),V4=Object.defineProperty,B4=Object.defineProperties,H4=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,rb=Object.prototype.hasOwnProperty,nb=Object.prototype.propertyIsEnumerable,Gg=(e,t,r)=>t in e?V4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,W4=(e,t)=>{for(var r in t||(t={}))rb.call(t,r)&&Gg(e,r,t[r]);if(fs)for(var r of fs(t))nb.call(t,r)&&Gg(e,r,t[r]);return e},U4=(e,t)=>B4(e,H4(t)),K4=(e,t)=>{var r={};for(var n in e)rb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&fs)for(var n of fs(e))t.indexOf(n)<0&&nb.call(e,n)&&(r[n]=e[n]);return r};const Y4={},ob=v.forwardRef((e,t)=>{const r=K("TabsPanel",Y4,e),{value:n,children:o,sx:i,className:l}=r,a=K4(r,["value","children","sx","className"]),s=Dd(),{classes:c,cx:f}=F4({orientation:s.orientation,color:s.color,radius:s.radius,inverted:s.inverted,placement:s.placement},{name:"Tabs",unstyled:s.unstyled,classNames:s.classNames,styles:s.styles,variant:s.variant}),u=s.getPanelId(n),d=s.value===n,g=s.keepMounted||d?o:null;return v.useEffect(()=>(s.setMountedPanelIds(w=>[...w,u]),s.setMountedPanelIds(w=>w.filter(h=>h!==u))),[u]),S.createElement(ie,U4(W4({},a),{ref:t,sx:[{display:d?void 0:"none"},...td(i)],className:f(c.panel,l),role:"tabpanel",id:u,"aria-labelledby":s.getTabId(n)}),g)});ob.displayName="@mantine/core/TabsPanel";var G4=Object.defineProperty,Q4=Object.defineProperties,X4=Object.getOwnPropertyDescriptors,Qg=Object.getOwnPropertySymbols,Z4=Object.prototype.hasOwnProperty,q4=Object.prototype.propertyIsEnumerable,Xg=(e,t,r)=>t in e?G4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wn=(e,t)=>{for(var r in t||(t={}))Z4.call(t,r)&&Xg(e,r,t[r]);if(Qg)for(var r of Qg(t))q4.call(t,r)&&Xg(e,r,t[r]);return e},Zg=(e,t)=>Q4(e,X4(t));function J4(e,{orientation:t,color:r,radius:n,inverted:o,placement:i},l){const a=t==="vertical",s=e.fn.variant({color:r,variant:"filled"}),c=x(e.fn.radius(n)),f=t==="vertical"?i==="left"?`${c} 0 0 ${c}`:` 0 ${c} ${c} 0`:o?`0 0 ${c} ${c}`:`${c} ${c} 0 0`;return l==="default"?Zg(Wn({[a?i==="left"?"borderRight":"borderLeft":o?"borderTop":"borderBottom"]:`${x(2)} solid transparent`,[a?i==="left"?"marginRight":"marginLeft":o?"marginTop":"marginBottom"]:x(-2),borderRadius:f},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]})),{"&[data-active]":Wn({borderColor:s.background,color:e.colorScheme==="dark"?e.white:e.black},e.fn.hover({borderColor:s.background}))}):l==="outline"?{borderRadius:f,border:`${x(1)} solid transparent`,[a?i==="left"?"borderRight":"borderLeft":o?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3],"&::before":{content:'""',backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,position:"absolute",bottom:a?0:o?"unset":x(-1),top:a?0:o?x(-1):"unset",[a?"width":"height"]:x(1),right:a?i==="left"?x(-1):"unset":0,left:a?i==="left"?"unset":x(-1):0}}}:l==="pills"?Zg(Wn({borderRadius:e.fn.radius(n)},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]})),{"&[data-active]":Wn({backgroundColor:s.background,color:e.white},e.fn.hover({backgroundColor:s.background}))}):{}}var eD=J((e,t,{variant:r})=>({tabLabel:{},tab:Wn({position:"relative",padding:`${e.spacing.xs} ${e.spacing.md}`,paddingLeft:t.withIcon?e.spacing.xs:void 0,paddingRight:t.withRightSection?e.spacing.xs:void 0,fontSize:e.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:t.orientation==="horizontal"?"center":void 0,lineHeight:1,"&:disabled":Wn({opacity:.5,cursor:"not-allowed"},e.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},J4(e,t,r)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:x(7)}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:x(7)}}})),tD=Object.defineProperty,rD=Object.defineProperties,nD=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,ib=Object.prototype.hasOwnProperty,lb=Object.prototype.propertyIsEnumerable,qg=(e,t,r)=>t in e?tD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oD=(e,t)=>{for(var r in t||(t={}))ib.call(t,r)&&qg(e,r,t[r]);if(ds)for(var r of ds(t))lb.call(t,r)&&qg(e,r,t[r]);return e},iD=(e,t)=>rD(e,nD(t)),lD=(e,t)=>{var r={};for(var n in e)ib.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ds)for(var n of ds(e))t.indexOf(n)<0&&lb.call(e,n)&&(r[n]=e[n]);return r};const aD={},ab=v.forwardRef((e,t)=>{const r=K("TabsTab",aD,e),{value:n,children:o,onKeyDown:i,onClick:l,className:a,icon:s,rightSection:c,color:f}=r,u=lD(r,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]),d=Dd(),g=!!s,w=!!c,{theme:h,classes:b,cx:m}=eD({withIcon:g||w&&!o,withRightSection:w||g&&!o,orientation:d.orientation,color:f||d.color,radius:d.radius,inverted:d.inverted,placement:d.placement},{name:"Tabs",unstyled:d.unstyled,classNames:d.classNames,styles:d.styles,variant:d.variant}),p=n===d.value,y=d.getPanelId(n),_=d.mountedPanelIds.includes(n)?y:void 0,P=$=>{d.onTabChange(d.allowTabDeactivation&&n===d.value?null:n),l==null||l($)};return S.createElement(b1,iD(oD({},u),{unstyled:d.unstyled,className:m(b.tab,a),"data-active":p||void 0,ref:t,type:"button",role:"tab",id:d.getTabId(n),"aria-selected":p,tabIndex:p||d.value===null?0:-1,"aria-controls":_,onClick:P,onKeyDown:hO({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:d.activateTabWithKeyboard,loop:d.loop,dir:h.dir,orientation:d.orientation,onKeyDown:i})}),s&&S.createElement("span",{className:b.tabIcon},s),o&&S.createElement("span",{className:b.tabLabel},o),c&&S.createElement("span",{className:b.tabRightSection},c))});ab.displayName="@mantine/core/Tab";function sb({defaultValue:e,value:t,onTabChange:r,orientation:n,children:o,loop:i,id:l,activateTabWithKeyboard:a,allowTabDeactivation:s,variant:c,color:f,radius:u,inverted:d,placement:g,keepMounted:w=!0,classNames:h,styles:b,unstyled:m}){const p=bn(l),[y,_]=v.useState([]),[P,$]=so({value:t,defaultValue:e,finalValue:null,onChange:r});return S.createElement(x4,{value:{placement:g,value:P,orientation:n,id:p,loop:i,activateTabWithKeyboard:a,getTabId:Zp(`${p}-tab`,Ju.value),getPanelId:Zp(`${p}-panel`,Ju.value),onTabChange:$,setMountedPanelIds:_,mountedPanelIds:y,allowTabDeactivation:s,variant:c,color:f,radius:u,inverted:d,keepMounted:w,classNames:h,styles:b,unstyled:m}},o)}sb.displayName="@mantine/core/TabsProvider";var sD=J((e,{orientation:t,placement:r})=>({root:{display:t==="vertical"?"flex":void 0,flexDirection:r==="right"?"row-reverse":"row"}})),cD=Object.defineProperty,uD=Object.defineProperties,fD=Object.getOwnPropertyDescriptors,ps=Object.getOwnPropertySymbols,cb=Object.prototype.hasOwnProperty,ub=Object.prototype.propertyIsEnumerable,Jg=(e,t,r)=>t in e?cD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dD=(e,t)=>{for(var r in t||(t={}))cb.call(t,r)&&Jg(e,r,t[r]);if(ps)for(var r of ps(t))ub.call(t,r)&&Jg(e,r,t[r]);return e},pD=(e,t)=>uD(e,fD(t)),mD=(e,t)=>{var r={};for(var n in e)cb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ps)for(var n of ps(e))t.indexOf(n)<0&&ub.call(e,n)&&(r[n]=e[n]);return r};const vD={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},jr=v.forwardRef((e,t)=>{const r=K("Tabs",vD,e),{defaultValue:n,value:o,orientation:i,loop:l,activateTabWithKeyboard:a,allowTabDeactivation:s,children:c,id:f,onTabChange:u,variant:d,color:g,className:w,unstyled:h,classNames:b,styles:m,radius:p,inverted:y,keepMounted:_,placement:P}=r,$=mD(r,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted","keepMounted","placement"]),{classes:O,cx:E}=sD({orientation:i,color:g,radius:p,inverted:y,placement:P},{unstyled:h,name:"Tabs",classNames:b,styles:m,variant:d});return S.createElement(sb,{activateTabWithKeyboard:a,defaultValue:n,orientation:i,onTabChange:u,value:o,id:f,loop:l,allowTabDeactivation:s,color:g,variant:d,radius:p,inverted:y,keepMounted:_,placement:P,classNames:b,styles:m,unstyled:h},S.createElement(ie,pD(dD({},$),{className:E(O.root,w),id:f,ref:t}),c))});jr.List=tb;jr.Tab=ab;jr.Panel=ob;jr.displayName="@mantine/core/Tabs";var gD=Object.defineProperty,yD=Object.defineProperties,hD=Object.getOwnPropertyDescriptors,ey=Object.getOwnPropertySymbols,wD=Object.prototype.hasOwnProperty,_D=Object.prototype.propertyIsEnumerable,ty=(e,t,r)=>t in e?gD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bD=(e,t)=>{for(var r in t||(t={}))wD.call(t,r)&&ty(e,r,t[r]);if(ey)for(var r of ey(t))_D.call(t,r)&&ty(e,r,t[r]);return e},SD=(e,t)=>yD(e,hD(t));function PD(e,t,r){return typeof e<"u"?e in r.headings.sizes?r.headings.sizes[e].fontSize:x(e):r.headings.sizes[t].fontSize}function OD(e,t,r){return typeof e<"u"&&e in r.headings.sizes?r.headings.sizes[e].lineHeight:r.headings.sizes[t].lineHeight}var $D=J((e,{element:t,weight:r,inline:n},{size:o})=>({root:SD(bD({},e.fn.fontStyles()),{fontFamily:e.headings.fontFamily,fontWeight:r||e.headings.sizes[t].fontWeight||e.headings.fontWeight,fontSize:PD(o,t,e),lineHeight:n?1:OD(o,t,e),margin:0})})),xD=Object.defineProperty,ms=Object.getOwnPropertySymbols,fb=Object.prototype.hasOwnProperty,db=Object.prototype.propertyIsEnumerable,ry=(e,t,r)=>t in e?xD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ED=(e,t)=>{for(var r in t||(t={}))fb.call(t,r)&&ry(e,r,t[r]);if(ms)for(var r of ms(t))db.call(t,r)&&ry(e,r,t[r]);return e},CD=(e,t)=>{var r={};for(var n in e)fb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ms)for(var n of ms(e))t.indexOf(n)<0&&db.call(e,n)&&(r[n]=e[n]);return r};const kD={order:1},Id=v.forwardRef((e,t)=>{const r=K("Title",kD,e),{className:n,order:o,children:i,unstyled:l,size:a,weight:s,inline:c,variant:f}=r,u=CD(r,["className","order","children","unstyled","size","weight","inline","variant"]),{classes:d,cx:g}=$D({element:`h${o}`,weight:s,inline:c},{name:"Title",unstyled:l,variant:f,size:a});return[1,2,3,4,5,6].includes(o)?S.createElement(yn,ED({variant:f,component:`h${o}`,ref:t,className:g(d.root,n)},u),i):null});Id.displayName="@mantine/core/Title";/** + * @license @tabler/icons-react v3.5.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var ND={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** + * @license @tabler/icons-react v3.5.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const $n=(e,t,r,n)=>{const o=v.forwardRef(({color:i="currentColor",size:l=24,stroke:a=2,className:s,children:c,...f},u)=>v.createElement("svg",{ref:u,...ND[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${t}`,s].join(" "),strokeWidth:a,stroke:i,...f},[...n.map(([d,g])=>v.createElement(d,g)),...Array.isArray(c)?c:[c]]));return o.displayName=`${r}`,o};/** + * @license @tabler/icons-react v3.5.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var RD=$n("outline","alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.5.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var DD=$n("outline","arrow-narrow-left","IconArrowNarrowLeft",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l4 4",key:"svg-1"}],["path",{d:"M5 12l4 -4",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.5.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var ID=$n("outline","moon-stars","IconMoonStars",[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z",key:"svg-0"}],["path",{d:"M17 4a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2",key:"svg-1"}],["path",{d:"M19 11h2m-1 -1v2",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.5.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var pb=$n("outline","photo","IconPhoto",[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z",key:"svg-1"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",key:"svg-2"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3",key:"svg-3"}]]);/** + * @license @tabler/icons-react v3.5.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var jD=$n("outline","sun","IconSun",[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.5.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var TD=$n("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.5.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var zD=$n("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function AD(){const{colorScheme:e,toggleColorScheme:t}=hx(),r=e==="dark";return H.jsxs(Jn,{position:"apart",children:[H.jsx(Uu,{size:"lg",variant:"outline",color:r?"yellow":"blue",title:"Back to garden",component:"a",href:"https://galbadia.garden",children:H.jsx(DD,{size:"1.1rem"})}),H.jsx(Id,{order:1,children:"Card Manip"}),H.jsx(Uu,{size:"lg",variant:"outline",color:r?"yellow":"blue",onClick:()=>t(),title:"Toggle color scheme",children:r?H.jsx(jD,{size:"1.1rem"}):H.jsx(ID,{size:"1.1rem"})})]})}var mb={exports:{}},LD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",MD=LD,FD=MD;function vb(){}function gb(){}gb.resetWarningCache=vb;var VD=function(){function e(n,o,i,l,a,s){if(s!==FD){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 r={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:gb,resetWarningCache:vb};return r.PropTypes=r,r};mb.exports=VD();var BD=mb.exports;const ee=Py(BD);var HD=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Li(e,t){var r=WD(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function WD(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),o=HD.get(n);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var UD=[".DS_Store","Thumbs.db"];function KD(e){return yo(this,void 0,void 0,function(){return ho(this,function(t){return vs(e)&&YD(e.dataTransfer)?[2,ZD(e.dataTransfer,e.type)]:GD(e)?[2,QD(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,XD(e)]:[2,[]]})})}function YD(e){return vs(e)}function GD(e){return vs(e)&&vs(e.target)}function vs(e){return typeof e=="object"&&e!==null}function QD(e){return ef(e.target.files).map(function(t){return Li(t)})}function XD(e){return yo(this,void 0,void 0,function(){var t;return ho(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return Li(n)})]}})})}function ZD(e,t){return yo(this,void 0,void 0,function(){var r,n;return ho(this,function(o){switch(o.label){case 0:return e.items?(r=ef(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(qD))]):[3,2];case 1:return n=o.sent(),[2,ny(yb(n))];case 2:return[2,ny(ef(e.files).map(function(i){return Li(i)}))]}})})}function ny(e){return e.filter(function(t){return UD.indexOf(t.name)===-1})}function ef(e){if(e===null)return[];for(var t=[],r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rr)return[!1,sy(r)];if(e.sizer)return[!1,sy(r)]}return[!0,null]}function on(e){return e!=null}function mI(e){var t=e.files,r=e.accept,n=e.minSize,o=e.maxSize,i=e.multiple,l=e.maxFiles,a=e.validator;return!i&&t.length>1||i&&l>=1&&t.length>l?!1:t.every(function(s){var c=bb(s,r),f=$i(c,1),u=f[0],d=Sb(s,n,o),g=$i(d,1),w=g[0],h=a?a(s):null;return u&&w&&!h})}function gs(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Pl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function uy(e){e.preventDefault()}function vI(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function gI(e){return e.indexOf("Edge/")!==-1}function yI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return vI(e)||gI(e)}function Ut(){for(var e=arguments.length,t=new Array(e),r=0;r1?o-1:0),l=1;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jI(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}var jd=v.forwardRef(function(e,t){var r=e.children,n=ys(e,PI),o=Eb(n),i=o.open,l=ys(o,OI);return v.useImperativeHandle(t,function(){return{open:i}},[i]),S.createElement(v.Fragment,null,r(ge(ge({},l),{},{open:i})))});jd.displayName="Dropzone";var xb={disabled:!1,getFilesFromEvent:KD,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};jd.defaultProps=xb;jd.propTypes={children:ee.func,accept:ee.objectOf(ee.arrayOf(ee.string)),multiple:ee.bool,preventDropOnDocument:ee.bool,noClick:ee.bool,noKeyboard:ee.bool,noDrag:ee.bool,noDragEventsBubbling:ee.bool,minSize:ee.number,maxSize:ee.number,maxFiles:ee.number,disabled:ee.bool,getFilesFromEvent:ee.func,onFileDialogCancel:ee.func,onFileDialogOpen:ee.func,useFsAccessApi:ee.bool,autoFocus:ee.bool,onDragEnter:ee.func,onDragLeave:ee.func,onDragOver:ee.func,onDrop:ee.func,onDropAccepted:ee.func,onDropRejected:ee.func,onError:ee.func,validator:ee.func};var of={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Eb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},xb),e),r=t.accept,n=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,l=t.minSize,a=t.multiple,s=t.maxFiles,c=t.onDragEnter,f=t.onDragLeave,u=t.onDragOver,d=t.onDrop,g=t.onDropAccepted,w=t.onDropRejected,h=t.onFileDialogCancel,b=t.onFileDialogOpen,m=t.useFsAccessApi,p=t.autoFocus,y=t.preventDropOnDocument,_=t.noClick,P=t.noKeyboard,$=t.noDrag,O=t.noDragEventsBubbling,E=t.onError,k=t.validator,C=v.useMemo(function(){return _I(r)},[r]),M=v.useMemo(function(){return wI(r)},[r]),A=v.useMemo(function(){return typeof b=="function"?b:dy},[b]),W=v.useMemo(function(){return typeof h=="function"?h:dy},[h]),L=v.useRef(null),B=v.useRef(null),G=v.useReducer(TI,of),ne=Fc(G,2),R=ne[0],j=ne[1],V=R.isFocused,Y=R.isFileDialogActive,Q=v.useRef(typeof window<"u"&&window.isSecureContext&&m&&hI()),Ye=function(){!Q.current&&Y&&setTimeout(function(){if(B.current){var F=B.current.files;F.length||(j({type:"closeDialog"}),W())}},300)};v.useEffect(function(){return window.addEventListener("focus",Ye,!1),function(){window.removeEventListener("focus",Ye,!1)}},[B,Y,W,Q]);var ce=v.useRef([]),Le=function(F){L.current&&L.current.contains(F.target)||(F.preventDefault(),ce.current=[])};v.useEffect(function(){return y&&(document.addEventListener("dragover",uy,!1),document.addEventListener("drop",Le,!1)),function(){y&&(document.removeEventListener("dragover",uy),document.removeEventListener("drop",Le))}},[L,y]),v.useEffect(function(){return!n&&p&&L.current&&L.current.focus(),function(){}},[L,p,n]);var me=v.useCallback(function(D){E?E(D):console.error(D)},[E]),Me=v.useCallback(function(D){D.preventDefault(),D.persist(),fe(D),ce.current=[].concat(EI(ce.current),[D.target]),Pl(D)&&Promise.resolve(o(D)).then(function(F){if(!(gs(D)&&!O)){var ve=F.length,$e=ve>0&&mI({files:F,accept:C,minSize:l,maxSize:i,multiple:a,maxFiles:s,validator:k}),be=ve>0&&!$e;j({isDragAccept:$e,isDragReject:be,isDragActive:!0,type:"setDraggedFiles"}),c&&c(D)}}).catch(function(F){return me(F)})},[o,c,me,O,C,l,i,a,s,k]),xt=v.useCallback(function(D){D.preventDefault(),D.persist(),fe(D);var F=Pl(D);if(F&&D.dataTransfer)try{D.dataTransfer.dropEffect="copy"}catch{}return F&&u&&u(D),!1},[u,O]),Mt=v.useCallback(function(D){D.preventDefault(),D.persist(),fe(D);var F=ce.current.filter(function($e){return L.current&&L.current.contains($e)}),ve=F.indexOf(D.target);ve!==-1&&F.splice(ve,1),ce.current=F,!(F.length>0)&&(j({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Pl(D)&&f&&f(D))},[L,f,O]),tr=v.useCallback(function(D,F){var ve=[],$e=[];D.forEach(function(be){var Ct=bb(be,C),Vt=Fc(Ct,2),Oo=Vt[0],$o=Vt[1],Fe=Sb(be,l,i),Sr=Fc(Fe,2),Jr=Sr[0],xo=Sr[1],Pr=k?k(be):null;if(Oo&&Jr&&!Pr)ve.push(be);else{var Ge=[$o,xo];Pr&&(Ge=Ge.concat(Pr)),$e.push({file:be,errors:Ge.filter(function(Or){return Or})})}}),(!a&&ve.length>1||a&&s>=1&&ve.length>s)&&(ve.forEach(function(be){$e.push({file:be,errors:[pI]})}),ve.splice(0)),j({acceptedFiles:ve,fileRejections:$e,type:"setFiles"}),d&&d(ve,$e,F),$e.length>0&&w&&w($e,F),ve.length>0&&g&&g(ve,F)},[j,a,C,l,i,s,d,g,w,k]),wr=v.useCallback(function(D){D.preventDefault(),D.persist(),fe(D),ce.current=[],Pl(D)&&Promise.resolve(o(D)).then(function(F){gs(D)&&!O||tr(F,D)}).catch(function(F){return me(F)}),j({type:"reset"})},[o,tr,me,O]),Ft=v.useCallback(function(){if(Q.current){j({type:"openDialog"}),A();var D={multiple:a,types:M};window.showOpenFilePicker(D).then(function(F){return o(F)}).then(function(F){tr(F,null),j({type:"closeDialog"})}).catch(function(F){bI(F)?(W(F),j({type:"closeDialog"})):SI(F)?(Q.current=!1,B.current?(B.current.value=null,B.current.click()):me(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):me(F)});return}B.current&&(j({type:"openDialog"}),A(),B.current.value=null,B.current.click())},[j,A,W,m,tr,me,M,a]),yt=v.useCallback(function(D){!L.current||!L.current.isEqualNode(D.target)||(D.key===" "||D.key==="Enter"||D.keyCode===32||D.keyCode===13)&&(D.preventDefault(),Ft())},[L,Ft]),xn=v.useCallback(function(){j({type:"focus"})},[]),_r=v.useCallback(function(){j({type:"blur"})},[]),En=v.useCallback(function(){_||(yI()?setTimeout(Ft,0):Ft())},[_,Ft]),ue=function(F){return n?null:F},qr=function(F){return P?null:ue(F)},br=function(F){return $?null:ue(F)},fe=function(F){O&&F.stopPropagation()},tc=v.useMemo(function(){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=D.refKey,ve=F===void 0?"ref":F,$e=D.role,be=D.onKeyDown,Ct=D.onFocus,Vt=D.onBlur,Oo=D.onClick,$o=D.onDragEnter,Fe=D.onDragOver,Sr=D.onDragLeave,Jr=D.onDrop,xo=ys(D,$I);return ge(ge(nf({onKeyDown:qr(Ut(be,yt)),onFocus:qr(Ut(Ct,xn)),onBlur:qr(Ut(Vt,_r)),onClick:ue(Ut(Oo,En)),onDragEnter:br(Ut($o,Me)),onDragOver:br(Ut(Fe,xt)),onDragLeave:br(Ut(Sr,Mt)),onDrop:br(Ut(Jr,wr)),role:typeof $e=="string"&&$e!==""?$e:"presentation"},ve,L),!n&&!P?{tabIndex:0}:{}),xo)}},[L,yt,xn,_r,En,Me,xt,Mt,wr,P,$,n]),Et=v.useCallback(function(D){D.stopPropagation()},[]),Ie=v.useMemo(function(){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=D.refKey,ve=F===void 0?"ref":F,$e=D.onChange,be=D.onClick,Ct=ys(D,xI),Vt=nf({accept:C,multiple:a,type:"file",style:{display:"none"},onChange:ue(Ut($e,wr)),onClick:ue(Ut(be,Et)),tabIndex:-1},ve,B);return ge(ge({},Vt),Ct)}},[B,r,a,wr,n]);return ge(ge({},R),{},{isFocused:V&&!n,getRootProps:tc,getInputProps:Ie,rootRef:L,inputRef:B,open:ue(Ft)})}function TI(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},of),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ge(ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ge({},of);default:return e}}function dy(){}const[zI,AI]=ed("Dropzone component was not found in tree");var py=Object.getOwnPropertySymbols,LI=Object.prototype.hasOwnProperty,MI=Object.prototype.propertyIsEnumerable,FI=(e,t)=>{var r={};for(var n in e)LI.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&py)for(var n of py(e))t.indexOf(n)<0&&MI.call(e,n)&&(r[n]=e[n]);return r};function Td(e){const t=r=>{const n=K(`Dropzone${Em(e)}`,{},r),{children:o}=n,i=FI(n,["children"]),l=AI(),a=rd(o)?o:S.createElement("span",null,o);return l[e]?v.cloneElement(a,i):null};return t.displayName=`@mantine/dropzone/${Em(e)}`,t}const VI=Td("accept"),BI=Td("reject"),HI=Td("idle");var WI=Object.defineProperty,UI=Object.defineProperties,KI=Object.getOwnPropertyDescriptors,my=Object.getOwnPropertySymbols,YI=Object.prototype.hasOwnProperty,GI=Object.prototype.propertyIsEnumerable,vy=(e,t,r)=>t in e?WI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gy=(e,t)=>{for(var r in t||(t={}))YI.call(t,r)&&vy(e,r,t[r]);if(my)for(var r of my(t))GI.call(t,r)&&vy(e,r,t[r]);return e},QI=(e,t)=>UI(e,KI(t)),XI=J((e,{padding:t,radius:r})=>{const n=e.fn.variant({color:"red",variant:"light"}),o=e.fn.variant({color:e.primaryColor,variant:"light"});return{root:QI(gy(gy({},e.fn.fontStyles()),e.fn.focusStyles()),{boxSizing:"border-box",backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`${x(2)} dashed ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,padding:z({size:t,sizes:e.spacing}),borderRadius:e.fn.radius(r),cursor:"pointer",userSelect:"none",transition:"background-color 150ms ease",position:"relative","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]},"&[data-loading]":{cursor:"default","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white}},"&[data-accept]":{backgroundColor:e.colorScheme==="dark"?o.background:e.colors[e.primaryColor][0],borderColor:e.colorScheme==="dark"?o.border:e.colors[e.primaryColor][4],"&:hover":{backgroundColor:e.colorScheme==="dark"?o.background:e.colors[e.primaryColor][0]}},"&[data-reject]":{backgroundColor:e.colorScheme==="dark"?n.background:e.colors.red[0],borderColor:e.colorScheme==="dark"?n.border:e.colors.red[4],"&:hover":{backgroundColor:e.colorScheme==="dark"?n.background:e.colors.red[0]}}}),inner:{pointerEvents:"none",userSelect:"none"}}}),ZI=Object.defineProperty,qI=Object.defineProperties,JI=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,Cb=Object.prototype.hasOwnProperty,kb=Object.prototype.propertyIsEnumerable,yy=(e,t,r)=>t in e?ZI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bo=(e,t)=>{for(var r in t||(t={}))Cb.call(t,r)&&yy(e,r,t[r]);if(hs)for(var r of hs(t))kb.call(t,r)&&yy(e,r,t[r]);return e},Vc=(e,t)=>qI(e,JI(t)),ej=(e,t)=>{var r={};for(var n in e)Cb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hs)for(var n of hs(e))t.indexOf(n)<0&&kb.call(e,n)&&(r[n]=e[n]);return r};const tj={padding:"md",loading:!1,multiple:!0,maxSize:1/0,autoFocus:!1,activateOnClick:!0,activateOnDrag:!0,dragEventsBubbling:!0,activateOnKeyboard:!0,useFsAccessApi:!0};function Po(e){const t=K("Dropzone",tj,e),{className:r,padding:n,radius:o,disabled:i,classNames:l,styles:a,loading:s,multiple:c,maxSize:f,accept:u,children:d,onDropAny:g,onDrop:w,onReject:h,openRef:b,name:m,unstyled:p,maxFiles:y,autoFocus:_,activateOnClick:P,activateOnDrag:$,dragEventsBubbling:O,activateOnKeyboard:E,onDragEnter:k,onDragLeave:C,onDragOver:M,onFileDialogCancel:A,onFileDialogOpen:W,preventDropOnDocument:L,useFsAccessApi:B,getFilesFromEvent:G,validator:ne,variant:R}=t,j=ej(t,["className","padding","radius","disabled","classNames","styles","loading","multiple","maxSize","accept","children","onDropAny","onDrop","onReject","openRef","name","unstyled","maxFiles","autoFocus","activateOnClick","activateOnDrag","dragEventsBubbling","activateOnKeyboard","onDragEnter","onDragLeave","onDragOver","onFileDialogCancel","onFileDialogOpen","preventDropOnDocument","useFsAccessApi","getFilesFromEvent","validator","variant"]),{classes:V,cx:Y}=XI({radius:o,padding:n},{name:"Dropzone",classNames:l,styles:a,unstyled:p,variant:R}),{getRootProps:Q,getInputProps:Ye,isDragAccept:ce,isDragReject:Le,open:me}=Eb(Bo({onDrop:g,onDropAccepted:w,onDropRejected:h,disabled:i||s,accept:Array.isArray(u)?u.reduce((xt,Mt)=>Vc(Bo({},xt),{[Mt]:[]}),{}):u,multiple:c,maxSize:f,maxFiles:y,autoFocus:_,noClick:!P,noDrag:!$,noDragEventsBubbling:!O,noKeyboard:!E,onDragEnter:k,onDragLeave:C,onDragOver:M,onFileDialogCancel:A,onFileDialogOpen:W,preventDropOnDocument:L,useFsAccessApi:B,validator:ne},G?{getFilesFromEvent:G}:null));p1(b,me);const Me=!ce&&!Le;return S.createElement(zI,{value:{accept:ce,reject:Le,idle:Me}},S.createElement(ie,Vc(Bo(Bo({},j),Q()),{"data-accept":ce||void 0,"data-reject":Le||void 0,"data-idle":Me||void 0,"data-loading":s||void 0,className:Y(V.root,r)}),S.createElement(z_,{visible:s,radius:o,unstyled:p}),S.createElement("input",Vc(Bo({},Ye()),{name:m})),S.createElement("div",{className:V.inner},d)))}Po.displayName="@mantine/dropzone/Dropzone";Po.Accept=VI;Po.Reject=BI;Po.Idle=HI;const Nb=Po;var rj=Object.defineProperty,nj=Object.defineProperties,oj=Object.getOwnPropertyDescriptors,hy=Object.getOwnPropertySymbols,ij=Object.prototype.hasOwnProperty,lj=Object.prototype.propertyIsEnumerable,wy=(e,t,r)=>t in e?rj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aj=(e,t)=>{for(var r in t||(t={}))ij.call(t,r)&&wy(e,r,t[r]);if(hy)for(var r of hy(t))lj.call(t,r)&&wy(e,r,t[r]);return e},sj=(e,t)=>nj(e,oj(t)),cj=J(e=>({wrapper:sj(aj({},e.fn.cover(0)),{position:"fixed",backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,display:"flex",padding:e.spacing.xs,transition:"opacity 100ms ease"}),dropzone:{flex:1}})),uj=Object.defineProperty,fj=Object.defineProperties,dj=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,Rb=Object.prototype.hasOwnProperty,Db=Object.prototype.propertyIsEnumerable,_y=(e,t,r)=>t in e?uj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bc=(e,t)=>{for(var r in t||(t={}))Rb.call(t,r)&&_y(e,r,t[r]);if(ws)for(var r of ws(t))Db.call(t,r)&&_y(e,r,t[r]);return e},Hc=(e,t)=>fj(e,dj(t)),pj=(e,t)=>{var r={};for(var n in e)Rb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ws)for(var n of ws(e))t.indexOf(n)<0&&Db.call(e,n)&&(r[n]=e[n]);return r};const mj={padding:"md",loading:!1,multiple:!0,maxSize:1/0,autoFocus:!1,activateOnClick:!0,activateOnDrag:!0,dragEventsBubbling:!0,activateOnKeyboard:!0,active:!0,zIndex:_o("max"),withinPortal:!0};function Ib(e){const t=K("DropzoneFullScreen",mj,e),{classNames:r,styles:n,sx:o,className:i,style:l,unstyled:a,active:s,onDrop:c,onReject:f,zIndex:u,withinPortal:d,portalProps:g}=t,w=pj(t,["classNames","styles","sx","className","style","unstyled","active","onDrop","onReject","zIndex","withinPortal","portalProps"]),[h,b]=S.useState(0),[m,{open:p,close:y}]=SE(!1),{classes:_,cx:P}=cj(null,{name:"DropzoneFullScreen",classNames:r,styles:n,unstyled:a}),$=E=>{E.dataTransfer.types.includes("Files")&&(b(k=>k+1),p())},O=()=>{b(E=>E-1)};return v.useEffect(()=>{h===0&&y()},[h]),v.useEffect(()=>{if(s)return document.addEventListener("dragenter",$,!1),document.addEventListener("dragleave",O,!1),()=>{document.removeEventListener("dragenter",$,!1),document.removeEventListener("dragleave",O,!1)}},[s]),S.createElement(gd,Hc(Bc({},g),{withinPortal:d}),S.createElement(ie,{className:P(_.wrapper,i),sx:o,style:Hc(Bc({},l),{opacity:m?1:0,pointerEvents:m?"all":"none",zIndex:u})},S.createElement(Po,Hc(Bc({},w),{classNames:r,styles:n,unstyled:a,className:_.dropzone,onDrop:E=>{c==null||c(E),y()},onReject:E=>{f==null||f(E),y()}}))))}Ib.displayName="@mantine/dropzone/DropzoneFullScreen";Nb.FullScreen=Ib;const Ol=Nb;function jb(e){const t=gt(),r=async([n])=>{var o=new FileReader;o.onload=function(i){let l=i.target.result,a=JSON.parse(l);e.onChange(a)},o.readAsText(n)};return H.jsx(Ol,{multiple:!1,onDrop:r,onReject:n=>console.log("rejected files",n),maxSize:3*1024**2,accept:["application/json"],...e,children:H.jsxs(Jn,{position:"center",spacing:"xl",style:{minHeight:x(220),pointerEvents:"none"},children:[H.jsx(Ol.Accept,{children:H.jsx(TD,{size:"3.2rem",stroke:1.5,color:t.colors[t.primaryColor][t.colorScheme==="dark"?4:6]})}),H.jsx(Ol.Reject,{children:H.jsx(zD,{size:"3.2rem",stroke:1.5,color:t.colors.red[t.colorScheme==="dark"?4:6]})}),H.jsx(Ol.Idle,{children:H.jsx(pb,{size:"3.2rem",stroke:1.5})}),H.jsxs("div",{children:[H.jsx(yn,{size:"xl",inline:!0,children:"Drag your JSON file here or click to select"}),H.jsx(yn,{size:"sm",color:"dimmed",inline:!0,mt:7,children:"Blah blah blah bibibbababababaobaobaobobo"})]})]})})}jb.propTypes={onChange:ee.func.isRequired};const vj=e=>{let t={q:0,z:0};for(let r of e){let n=r.button;r.baseValue!=-1&&(t[n?"q":"z"]+=r.baseValue)}return t},by=e=>{for(var t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length,o=0;oObject.values(e).reduce((t,r)=>t+r,0);function Tb(e){const t=e.data;let r=vj(t);const[n,o]=v.useState({"q-basevalue":r.q}),[i,l]=v.useState({"z-basevalue":r.z}),a=(h,b,m)=>{m?o(p=>({...p,[h]:b})):l(p=>({...p,[h]:b})),console.log(b)},s=(h,b,m,p)=>{let y=btoa(`${m}-${b}`);return H.jsx(Ja.Group,{label:b,onChange:_=>a(y,_.reduce((P,$)=>P+parseInt($),0),p),children:H.jsx(Jn,{mt:"xs",children:h.map(_=>H.jsx(Ja,{label:_.label.toString(),value:_.value.toString()},by(5)))})})},c=(h,b,m,p)=>{let y=btoa(`${m}-${b}`);return H.jsx(ss.Group,{label:b,onChange:_=>a(y,parseInt(_),p),children:H.jsx(Jn,{mt:"xs",children:h.map(_=>H.jsx(ss,{label:_.label.toString(),value:_.value.toString()},by(5)))})})},f=(h,b,m)=>H.jsxs(H.Fragment,{children:[H.jsx(Id,{order:2,my:"md",children:h.label}),Object.prototype.hasOwnProperty.call(h,"subCategories")?h.subCategories.map(p=>u(p,h.baseCountPage||"",h.label,b,m)):""]}),u=(h,b,m,p,y)=>{let _=h.label||"";switch(m=`${p}-${m}`,h.type.toLowerCase()){case"buttons":return s(h.value,_,m,y);case"radiobutton":return c(h.value,_,m,y);case"list":return d(h.value,_,m,h.times||1,y)}},d=(h,b,m,p,y)=>{let _=btoa(`${m}-${b}`),P=[];for(let $=1;$<=p;$++){let O=`${_}-${$}`;P.push(H.jsx(q_,{label:b,placeholder:"Pick one",data:h,onChange:E=>a(O,E,y)},O))}return H.jsx(Jn,{mt:"xs",children:P})};//! Start the actual computation. +const g=t.map(h=>H.jsx(jr.Tab,{value:h.label,icon:H.jsx(pb,{size:"0.8rem"}),children:h.label},h.label)),w=t.map(h=>{let b=h.button;return H.jsx(jr.Panel,{value:h.label,pt:"xs",children:h.categories.map(m=>f(m,h.label,b))},h.label)});return H.jsxs(jr,{defaultValue:"gallery",children:[H.jsx(jr.List,{children:g}),w,"Q: ",Sy(n)," ",H.jsx("br",{}),"Z: ",Sy(i)]})}Tb.propTypes={data:ee.array.isRequired};function gj(){const[e,t]=v.useState(!0),[r,n]=v.useState(!0),o=i=>{console.log(i),n(i),t(!1)};return H.jsxs(lw,{padding:"md",header:H.jsx(rw,{height:60,p:"xs",children:H.jsx(AD,{})}),styles:i=>({main:{backgroundColor:i.colorScheme==="dark"?i.colors.dark[8]:i.colors.gray[0]}}),children:[H.jsx(Y1,{icon:H.jsx(RD,{size:"1rem"}),title:"Do Not Use",color:"red",variant:"outline",children:"This tool is under construction and does not yet work as intended."}),e?H.jsx(jb,{onChange:o}):"",e?"":H.jsx(Tb,{data:r})]})}function yj(){const[e,t]=nE({key:"mantine-color-scheme",defaultValue:"light",getInitialValueInEffect:!0}),r=n=>t(n||(e==="dark"?"light":"dark"));return bE([["mod+J",()=>r()]]),H.jsx(a1,{colorScheme:e,toggleColorScheme:r,children:H.jsx(i1,{theme:{colorScheme:e},withGlobalStyles:!0,withNormalizeCSS:!0,children:H.jsx(gj,{})})})}Uc.createRoot(document.getElementById("root")).render(H.jsx(S.StrictMode,{children:H.jsx(yj,{})})); diff --git a/index.html b/index.html index 527545c..9f87e01 100644 --- a/index.html +++ b/index.html @@ -4,8 +4,8 @@ - FF8 Q+Z Card - + FF8 Card Manip +