a(h1,I))Ka(c1,h1)?($[L]=c1,$[K]=I,L=K):($[L]=h1,$[n1]=I,L=n1);else if(Ka(c1,I))$[L]=c1,$[K]=I,L=K;else break e}}return j}function a($,j){var I=$.sortIndex-j.sortIndex;return I!==0?I:$.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var s=[],l=[],f=1,u=null,d=3,p=!1,m=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=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($){for(var j=r(l);j!==null;){if(j.callback===null)n(l);else if(j.startTime<=$)n(l),j.sortIndex=j.expirationTime,t(s,j);else break;j=r(l)}}function V($){if(v=!1,y($),!m)if(r(s)!==null)m=!0,k(x);else{var j=r(l);j!==null&&F(V,j.startTime-$)}}function x($,j){m=!1,v&&(v=!1,h(w),w=-1),p=!0;var I=d;try{for(y(j),u=r(s);u!==null&&(!(u.expirationTime>j)||$&&!O());){var L=u.callback;if(typeof L=="function"){u.callback=null,d=u.priorityLevel;var S=L(u.expirationTime<=j);j=e.unstable_now(),typeof S=="function"?u.callback=S:u===r(s)&&n(s),y(j)}else n(s);u=r(s)}if(u!==null)var Z=!0;else{var n1=r(l);n1!==null&&F(V,n1.startTime-j),Z=!1}return Z}finally{u=null,d=I,p=!1}}var H=!1,M=null,w=-1,P=5,N=-1;function O(){return!(e.unstable_now()-N$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(s)},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var j=3;break;default:j=d}var I=d;d=j;try{return $()}finally{d=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,j){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var I=d;d=$;try{return j()}finally{d=I}},e.unstable_scheduleCallback=function($,j,I){var L=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0L?($.sortIndex=I,t(l,$),r(s)===null&&$===r(l)&&(v?(h(w),w=-1):v=!0,F(V,I-L))):($.sortIndex=S,t(s,$),m||p||(m=!0,k(x))),$},e.unstable_shouldYield=O,e.unstable_wrapCallback=function($){var j=d;return function(){var I=d;d=j;try{return $.apply(this,arguments)}finally{d=I}}}})(FV);RV.exports=FV;var CW=RV.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 IV=z,R3=CW;function X(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"),Ro=Object.prototype.hasOwnProperty,HW=/^[: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]*$/,Fp={},Ip={};function VW(e){return Ro.call(Ip,e)?!0:Ro.call(Fp,e)?!1:HW.test(e)?Ip[e]=!0:(Fp[e]=!0,!1)}function bW(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 MW(e,t,r,n){if(t===null||typeof t>"u"||bW(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 p3(e,t,r,n,a,c,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=i}var G2={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){G2[e]=new p3(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];G2[t]=new p3(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){G2[e]=new p3(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){G2[e]=new p3(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){G2[e]=new p3(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){G2[e]=new p3(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){G2[e]=new p3(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){G2[e]=new p3(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){G2[e]=new p3(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xl=/[\-:]([a-z])/g;function Ql(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(Xl,Ql);G2[t]=new p3(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(Xl,Ql);G2[t]=new p3(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(Xl,Ql);G2[t]=new p3(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){G2[e]=new p3(e,1,!1,e.toLowerCase(),null,!1,!1)});G2.xlinkHref=new p3("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){G2[e]=new p3(e,1,!1,e.toLowerCase(),null,!0,!0)});function Jl(e,t,r,n){var a=G2.hasOwnProperty(t)?G2[t]:null;(a!==null?a.type!==0:n||!(2o||a[i]!==c[o]){var s=`
+`+a[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=o);break}}}finally{U9=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Y8(e):""}function xW(e){switch(e.tag){case 5:return Y8(e.type);case 16:return Y8("Lazy");case 13:return Y8("Suspense");case 19:return Y8("SuspenseList");case 0:case 2:case 15:return e=q9(e.type,!1),e;case 11:return e=q9(e.type.render,!1),e;case 1:return e=q9(e.type,!0),e;default:return""}}function Bo(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 h0:return"Fragment";case m0:return"Portal";case Fo:return"Profiler";case ef:return"StrictMode";case Io:return"Suspense";case jo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case WV:return(e.displayName||"Context")+".Consumer";case BV:return(e._context.displayName||"Context")+".Provider";case tf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rf:return t=e.displayName||null,t!==null?t:Bo(e.type)||"Memo";case L6:t=e._payload,e=e._init;try{return Bo(e(t))}catch{}}return null}function wW(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 Bo(t);case 8:return t===ef?"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 X6(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qV(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function LW(e){var t=qV(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 a=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,c.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function F7(e){e._valueTracker||(e._valueTracker=LW(e))}function GV(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=qV(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gr(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 Wo(e,t){var r=t.checked;return g2({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Bp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=X6(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 YV(e,t){t=t.checked,t!=null&&Jl(e,"checked",t,!1)}function Uo(e,t){YV(e,t);var r=X6(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")?qo(e,t.type,r):t.hasOwnProperty("defaultValue")&&qo(e,t.type,X6(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wp(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 qo(e,t,r){(t!=="number"||gr(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Z8=Array.isArray;function O0(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=I7.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function w5(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var a5={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},SW=["Webkit","ms","Moz","O"];Object.keys(a5).forEach(function(e){SW.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),a5[t]=a5[e]})});function QV(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||a5.hasOwnProperty(e)&&a5[e]?(""+t).trim():t+"px"}function JV(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=QV(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var kW=g2({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 Zo(e,t){if(t){if(kW[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function Ko(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 Xo=null;function nf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qo=null,A0=null,E0=null;function Gp(e){if(e=i7(e)){if(typeof Qo!="function")throw Error(X(280));var t=e.stateNode;t&&(t=fc(t),Qo(e.stateNode,e.type,t))}}function eb(e){A0?E0?E0.push(e):E0=[e]:A0=e}function tb(){if(A0){var e=A0,t=E0;if(E0=A0=null,Gp(e),t)for(e=0;e>>=0,e===0?32:31-(FW(e)/IW|0)|0}var j7=64,B7=4194304;function K8(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 Hr(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,c=e.pingedLanes,i=r&268435455;if(i!==0){var o=i&~a;o!==0?n=K8(o):(c&=i,c!==0&&(n=K8(c)))}else i=r&~a,i!==0?n=K8(i):c!==0&&(n=K8(c));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,c=t&-t,a>=c||a===16&&(c&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 a7(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-v4(t),e[t]=r}function UW(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=i5),rm=String.fromCharCode(32),nm=!1;function Hb(e,t){switch(e){case"keyup":return yU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var v0=!1;function HU(e,t){switch(e){case"compositionend":return Vb(t);case"keypress":return t.which!==32?null:(nm=!0,rm);case"textInput":return e=t.data,e===rm&&nm?null:e;default:return null}}function VU(e,t){if(v0)return e==="compositionend"||!df&&Hb(e,t)?(e=yb(),Rt=lf=A6=null,v0=!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=om(r)}}function wb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lb(){for(var e=window,t=gr();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gr(e.document)}return t}function pf(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 NU(e){var t=Lb(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&wb(r.ownerDocument.documentElement,r)){if(n!==null&&pf(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 a=r.textContent.length,c=Math.min(n.start,a);n=n.end===void 0?c:Math.min(n.end,a),!e.extend&&c>n&&(a=n,n=c,c=a),a=sm(r,c);var i=sm(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),c>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,g0=null,as=null,s5=null,cs=!1;function lm(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;cs||g0==null||g0!==gr(n)||(n=g0,"selectionStart"in n&&pf(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}),s5&&_5(s5,n)||(s5=n,n=Mr(as,"onSelect"),0C0||(e.current=us[C0],us[C0]=null,C0--)}function n2(e,t){C0++,us[C0]=e.current,e.current=t}var Q6={},r3=se(Q6),y3=se(!1),Re=Q6;function K0(e,t){var r=e.type.contextTypes;if(!r)return Q6;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},c;for(c in r)a[c]=t[c];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function C3(e){return e=e.childContextTypes,e!=null}function wr(){s2(y3),s2(r3)}function vm(e,t,r){if(r3.current!==Q6)throw Error(X(168));n2(r3,t),n2(y3,r)}function $b(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(X(108,wW(e)||"Unknown",a));return g2({},r,n)}function Lr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Q6,Re=r3.current,n2(r3,e),n2(y3,y3.current),!0}function gm(e,t,r){var n=e.stateNode;if(!n)throw Error(X(169));r?(e=$b(e,t,Re),n.__reactInternalMemoizedMergedChildContext=e,s2(y3),s2(r3),n2(r3,e)):s2(y3),n2(y3,r)}var Z4=null,uc=!1,ii=!1;function Tb(e){Z4===null?Z4=[e]:Z4.push(e)}function BU(e){uc=!0,Tb(e)}function le(){if(!ii&&Z4!==null){ii=!0;var e=0,t=Z1;try{var r=Z4;for(Z1=1;e>=i,a-=i,X4=1<<32-v4(t)+a|r<w?(P=M,M=null):P=M.sibling;var N=d(h,M,y[w],V);if(N===null){M===null&&(M=P);break}e&&M&&N.alternate===null&&t(h,M),g=c(N,g,w),H===null?x=N:H.sibling=N,H=N,M=P}if(w===y.length)return r(h,M),d2&&be(h,w),x;if(M===null){for(;ww?(P=M,M=null):P=M.sibling;var O=d(h,M,N.value,V);if(O===null){M===null&&(M=P);break}e&&M&&O.alternate===null&&t(h,M),g=c(O,g,w),H===null?x=O:H.sibling=O,H=O,M=P}if(N.done)return r(h,M),d2&&be(h,w),x;if(M===null){for(;!N.done;w++,N=y.next())N=u(h,N.value,V),N!==null&&(g=c(N,g,w),H===null?x=N:H.sibling=N,H=N);return d2&&be(h,w),x}for(M=n(h,M);!N.done;w++,N=y.next())N=p(M,h,w,N.value,V),N!==null&&(e&&N.alternate!==null&&M.delete(N.key===null?w:N.key),g=c(N,g,w),H===null?x=N:H.sibling=N,H=N);return e&&M.forEach(function(E){return t(h,E)}),d2&&be(h,w),x}function C(h,g,y,V){if(typeof y=="object"&&y!==null&&y.type===h0&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case R7:e:{for(var x=y.key,H=g;H!==null;){if(H.key===x){if(x=y.type,x===h0){if(H.tag===7){r(h,H.sibling),g=a(H,y.props.children),g.return=h,h=g;break e}}else if(H.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===L6&&Mm(x)===H.type){r(h,H.sibling),g=a(H,y.props),g.ref=S8(h,H,y),g.return=h,h=g;break e}r(h,H);break}else t(h,H);H=H.sibling}y.type===h0?(g=Te(y.props.children,h.mode,V,y.key),g.return=h,h=g):(V=Gt(y.type,y.key,y.props,null,h.mode,V),V.ref=S8(h,g,y),V.return=h,h=V)}return i(h);case m0:e:{for(H=y.key;g!==null;){if(g.key===H)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){r(h,g.sibling),g=a(g,y.children||[]),g.return=h,h=g;break e}else{r(h,g);break}else t(h,g);g=g.sibling}g=mi(y,h.mode,V),g.return=h,h=g}return i(h);case L6:return H=y._init,C(h,g,H(y._payload),V)}if(Z8(y))return m(h,g,y,V);if(b8(y))return v(h,g,y,V);K7(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(r(h,g.sibling),g=a(g,y),g.return=h,h=g):(r(h,g),g=pi(y,h.mode,V),g.return=h,h=g),i(h)):r(h,g)}return C}var Q0=Ub(!0),qb=Ub(!1),o7={},T4=se(o7),$5=se(o7),T5=se(o7);function Ne(e){if(e===o7)throw Error(X(174));return e}function Vf(e,t){switch(n2(T5,t),n2($5,e),n2(T4,o7),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yo(t,e)}s2(T4),n2(T4,t)}function J0(){s2(T4),s2($5),s2(T5)}function Gb(e){Ne(T5.current);var t=Ne(T4.current),r=Yo(t,e.type);t!==r&&(n2($5,e),n2(T4,r))}function bf(e){$5.current===e&&(s2(T4),s2($5))}var h2=se(0);function Or(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oi=[];function Mf(){for(var e=0;er?r:4,e(!0);var n=si.transition;si.transition={};try{e(!1),t()}finally{Z1=r,si.transition=n}}function lM(){return r4().memoizedState}function GU(e,t,r){var n=q6(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},fM(e))uM(t,r);else if(r=Ib(e,t,r,n),r!==null){var a=l3();g4(r,e,n,a),dM(r,t,n)}}function YU(e,t,r){var n=q6(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(fM(e))uM(t,a);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var i=t.lastRenderedState,o=c(i,r);if(a.hasEagerState=!0,a.eagerState=o,H4(o,i)){var s=t.interleaved;s===null?(a.next=a,Cf(t)):(a.next=s.next,s.next=a),t.interleaved=a;return}}catch{}finally{}r=Ib(e,t,a,n),r!==null&&(a=l3(),g4(r,e,n,a),dM(r,t,n))}}function fM(e){var t=e.alternate;return e===v2||t!==null&&t===v2}function uM(e,t){l5=Ar=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function dM(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,cf(e,r)}}var Er={readContext:t4,useCallback:K2,useContext:K2,useEffect:K2,useImperativeHandle:K2,useInsertionEffect:K2,useLayoutEffect:K2,useMemo:K2,useReducer:K2,useRef:K2,useState:K2,useDebugValue:K2,useDeferredValue:K2,useTransition:K2,useMutableSource:K2,useSyncExternalStore:K2,useId:K2,unstable_isNewReconciler:!1},ZU={readContext:t4,useCallback:function(e,t){return w4().memoizedState=[e,t===void 0?null:t],e},useContext:t4,useEffect:wm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Bt(4194308,4,aM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Bt(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bt(4,2,e,t)},useMemo:function(e,t){var r=w4();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=w4();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=GU.bind(null,v2,e),[n.memoizedState,e]},useRef:function(e){var t=w4();return e={current:e},t.memoizedState=e},useState:xm,useDebugValue:kf,useDeferredValue:function(e){return w4().memoizedState=e},useTransition:function(){var e=xm(!1),t=e[0];return e=qU.bind(null,e[1]),w4().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=v2,a=w4();if(d2){if(r===void 0)throw Error(X(407));r=r()}else{if(r=t(),F2===null)throw Error(X(349));Ie&30||Kb(n,t,r)}a.memoizedState=r;var c={value:r,getSnapshot:t};return a.queue=c,wm(Qb.bind(null,n,c,e),[e]),n.flags|=2048,F5(9,Xb.bind(null,n,c,r,t),void 0,null),r},useId:function(){var e=w4(),t=F2.identifierPrefix;if(d2){var r=Q4,n=X4;r=(n&~(1<<32-v4(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=D5++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[N4]=t,e[E5]=n,HM(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ko(r,n),r){case"dialog":a2("cancel",e),a2("close",e),a=n;break;case"iframe":case"object":case"embed":a2("load",e),a=n;break;case"video":case"audio":for(a=0;at8&&(t.flags|=128,n=!0,k8(c,!1),t.lanes=4194304)}else{if(!n)if(e=Or(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),k8(c,!0),c.tail===null&&c.tailMode==="hidden"&&!i.alternate&&!d2)return X2(t),null}else 2*V2()-c.renderingStartTime>t8&&r!==1073741824&&(t.flags|=128,n=!0,k8(c,!1),t.lanes=4194304);c.isBackwards?(i.sibling=t.child,t.child=i):(r=c.last,r!==null?r.sibling=i:t.child=i,c.last=i)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=V2(),t.sibling=null,r=h2.current,n2(h2,n?r&1|2:r&1),t):(X2(t),null);case 22:case 23:return Ef(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?S3&1073741824&&(X2(t),t.subtreeFlags&6&&(t.flags|=8192)):X2(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function nq(e,t){switch(hf(t),t.tag){case 1:return C3(t.type)&&wr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return J0(),s2(y3),s2(r3),Mf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bf(t),null;case 13:if(s2(h2),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));X0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return s2(h2),null;case 4:return J0(),null;case 10:return yf(t.type._context),null;case 22:case 23:return Ef(),null;case 24:return null;default:return null}}var Q7=!1,e3=!1,aq=typeof WeakSet=="function"?WeakSet:Set,m1=null;function M0(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){z2(e,t,n)}else r.current=null}function bs(e,t,r){try{r()}catch(n){z2(e,t,n)}}var Em=!1;function cq(e,t){if(is=Vr,e=Lb(),pf(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 a=n.anchorOffset,c=n.focusNode;n=n.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var i=0,o=-1,s=-1,l=0,f=0,u=e,d=null;t:for(;;){for(var p;u!==r||a!==0&&u.nodeType!==3||(o=i+a),u!==c||n!==0&&u.nodeType!==3||(s=i+n),u.nodeType===3&&(i+=u.nodeValue.length),(p=u.firstChild)!==null;)d=u,u=p;for(;;){if(u===e)break t;if(d===r&&++l===a&&(o=i),d===c&&++f===n&&(s=i),(p=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=p}r=o===-1||s===-1?null:{start:o,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(os={focusedElem:e,selectionRange:r},Vr=!1,m1=t;m1!==null;)if(t=m1,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,m1=e;else for(;m1!==null;){t=m1;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,C=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:f4(t.type,v),C);h.__reactInternalSnapshotBeforeUpdate=g}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(X(163))}}catch(V){z2(t,t.return,V)}if(e=t.sibling,e!==null){e.return=t.return,m1=e;break}m1=t.return}return m=Em,Em=!1,m}function f5(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var c=a.destroy;a.destroy=void 0,c!==void 0&&bs(t,r,c)}a=a.next}while(a!==n)}}function mc(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 Ms(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 MM(e){var t=e.alternate;t!==null&&(e.alternate=null,MM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[N4],delete t[E5],delete t[fs],delete t[IU],delete t[jU])),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 xM(e){return e.tag===5||e.tag===3||e.tag===4}function $m(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xM(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 xs(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=xr));else if(n!==4&&(e=e.child,e!==null))for(xs(e,t,r),e=e.sibling;e!==null;)xs(e,t,r),e=e.sibling}function ws(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(ws(e,t,r),e=e.sibling;e!==null;)ws(e,t,r),e=e.sibling}var W2=null,u4=!1;function y6(e,t,r){for(r=r.child;r!==null;)wM(e,t,r),r=r.sibling}function wM(e,t,r){if($4&&typeof $4.onCommitFiberUnmount=="function")try{$4.onCommitFiberUnmount(ic,r)}catch{}switch(r.tag){case 5:e3||M0(r,t);case 6:var n=W2,a=u4;W2=null,y6(e,t,r),W2=n,u4=a,W2!==null&&(u4?(e=W2,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):W2.removeChild(r.stateNode));break;case 18:W2!==null&&(u4?(e=W2,r=r.stateNode,e.nodeType===8?ci(e.parentNode,r):e.nodeType===1&&ci(e,r),P5(e)):ci(W2,r.stateNode));break;case 4:n=W2,a=u4,W2=r.stateNode.containerInfo,u4=!0,y6(e,t,r),W2=n,u4=a;break;case 0:case 11:case 14:case 15:if(!e3&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var c=a,i=c.destroy;c=c.tag,i!==void 0&&(c&2||c&4)&&bs(r,t,i),a=a.next}while(a!==n)}y6(e,t,r);break;case 1:if(!e3&&(M0(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){z2(r,t,o)}y6(e,t,r);break;case 21:y6(e,t,r);break;case 22:r.mode&1?(e3=(n=e3)||r.memoizedState!==null,y6(e,t,r),e3=n):y6(e,t,r);break;default:y6(e,t,r)}}function Tm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new aq),t.forEach(function(n){var a=mq.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function s4(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~c}if(n=a,n=V2()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*oq(n/1960))-n,10e?16:e,E6===null)var n=!1;else{if(e=E6,E6=null,Dr=0,j1&6)throw Error(X(331));var a=j1;for(j1|=4,m1=e.current;m1!==null;){var c=m1,i=c.child;if(m1.flags&16){var o=c.deletions;if(o!==null){for(var s=0;sV2()-Of?$e(e,0):_f|=r),H3(e,t)}function AM(e,t){t===0&&(e.mode&1?(t=B7,B7<<=1,!(B7&130023424)&&(B7=4194304)):t=1);var r=l3();e=a6(e,t),e!==null&&(a7(e,t,r),H3(e,r))}function pq(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),AM(e,r)}function mq(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(X(314))}n!==null&&n.delete(t),AM(e,r)}var EM;EM=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||y3.current)z3=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return z3=!1,tq(e,t,r);z3=!!(e.flags&131072)}else z3=!1,d2&&t.flags&1048576&&Db(t,kr,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Wt(e,t),e=t.pendingProps;var a=K0(t,r3.current);T0(t,r),a=wf(null,t,n,e,a,r);var c=Lf();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,C3(n)?(c=!0,Lr(t)):c=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Hf(t),a.updater=dc,t.stateNode=a,a._reactInternals=t,vs(t,n,e,r),t=ys(null,t,n,!0,c,r)):(t.tag=0,d2&&c&&mf(t),i3(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Wt(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=vq(n),e=f4(n,e),a){case 0:t=zs(null,t,n,e,r);break e;case 1:t=_m(null,t,n,e,r);break e;case 11:t=Pm(null,t,n,e,r);break e;case 14:t=Nm(null,t,n,f4(n.type,e),r);break e}throw Error(X(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:f4(n,a),zs(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:f4(n,a),_m(e,t,n,a,r);case 3:e:{if(zM(t),e===null)throw Error(X(387));n=t.pendingProps,c=t.memoizedState,a=c.element,jb(e,t),_r(t,n,null,r);var i=t.memoizedState;if(n=i.element,c.isDehydrated)if(c={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){a=e8(Error(X(423)),t),t=Om(e,t,n,r,a);break e}else if(n!==a){a=e8(Error(X(424)),t),t=Om(e,t,n,r,a);break e}else for(N3=B6(t.stateNode.containerInfo.firstChild),E3=t,d2=!0,p4=null,r=qb(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(X0(),n===a){t=c6(e,t,r);break e}i3(e,t,n,r)}t=t.child}return t;case 5:return Gb(t),e===null&&ps(t),n=t.type,a=t.pendingProps,c=e!==null?e.memoizedProps:null,i=a.children,ss(n,a)?i=null:c!==null&&ss(n,c)&&(t.flags|=32),gM(e,t),i3(e,t,i,r),t.child;case 6:return e===null&&ps(t),null;case 13:return yM(e,t,r);case 4:return Vf(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Q0(t,null,n,r):i3(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:f4(n,a),Pm(e,t,n,a,r);case 7:return i3(e,t,t.pendingProps,r),t.child;case 8:return i3(e,t,t.pendingProps.children,r),t.child;case 12:return i3(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,c=t.memoizedProps,i=a.value,n2(Pr,n._currentValue),n._currentValue=i,c!==null)if(H4(c.value,i)){if(c.children===a.children&&!y3.current){t=c6(e,t,r);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var o=c.dependencies;if(o!==null){i=c.child;for(var s=o.firstContext;s!==null;){if(s.context===n){if(c.tag===1){s=J4(-1,r&-r),s.tag=2;var l=c.updateQueue;if(l!==null){l=l.shared;var f=l.pending;f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s}}c.lanes|=r,s=c.alternate,s!==null&&(s.lanes|=r),ms(c.return,r,t),o.lanes|=r;break}s=s.next}}else if(c.tag===10)i=c.type===t.type?null:c.child;else if(c.tag===18){if(i=c.return,i===null)throw Error(X(341));i.lanes|=r,o=i.alternate,o!==null&&(o.lanes|=r),ms(i,r,t),i=c.sibling}else i=c.child;if(i!==null)i.return=c;else for(i=c;i!==null;){if(i===t){i=null;break}if(c=i.sibling,c!==null){c.return=i.return,i=c;break}i=i.return}c=i}i3(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,T0(t,r),a=t4(a),n=n(a),t.flags|=1,i3(e,t,n,r),t.child;case 14:return n=t.type,a=f4(n,t.pendingProps),a=f4(n.type,a),Nm(e,t,n,a,r);case 15:return hM(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:f4(n,a),Wt(e,t),t.tag=1,C3(n)?(e=!0,Lr(t)):e=!1,T0(t,r),Wb(t,n,a),vs(t,n,a,r),ys(null,t,n,!0,e,r);case 19:return CM(e,t,r);case 22:return vM(e,t,r)}throw Error(X(156,t.tag))};function $M(e,t){return sb(e,t)}function hq(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 Q3(e,t,r,n){return new hq(e,t,r,n)}function Tf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vq(e){if(typeof e=="function")return Tf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tf)return 11;if(e===rf)return 14}return 2}function G6(e,t){var r=e.alternate;return r===null?(r=Q3(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 Gt(e,t,r,n,a,c){var i=2;if(n=e,typeof e=="function")Tf(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case h0:return Te(r.children,a,c,t);case ef:i=8,a|=8;break;case Fo:return e=Q3(12,r,t,a|2),e.elementType=Fo,e.lanes=c,e;case Io:return e=Q3(13,r,t,a),e.elementType=Io,e.lanes=c,e;case jo:return e=Q3(19,r,t,a),e.elementType=jo,e.lanes=c,e;case UV:return vc(r,a,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case BV:i=10;break e;case WV:i=9;break e;case tf:i=11;break e;case rf:i=14;break e;case L6:i=16,n=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=Q3(i,r,t,a),t.elementType=e,t.type=n,t.lanes=c,t}function Te(e,t,r,n){return e=Q3(7,e,n,t),e.lanes=r,e}function vc(e,t,r,n){return e=Q3(22,e,n,t),e.elementType=UV,e.lanes=r,e.stateNode={isHidden:!1},e}function pi(e,t,r){return e=Q3(6,e,null,t),e.lanes=r,e}function mi(e,t,r){return t=Q3(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gq(e,t,r,n,a){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=Y9(0),this.expirationTimes=Y9(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Y9(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Df(e,t,r,n,a,c,i,o,s){return e=new gq(e,t,r,o,s),t===1?(t=1,c===!0&&(t|=8)):t=0,c=Q3(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hf(c),e}function zq(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(FM)}catch(e){console.error(e)}}FM(),DV.exports=j3;var Hc=DV.exports,Um=Hc;Do.createRoot=Um.createRoot,Do.hydrateRoot=Um.hydrateRoot;const IM=()=>!window.invokeNative,bq=()=>{},b2=(e,t)=>{const r=z.useRef(bq);z.useEffect(()=>{r.current=t},[t]),z.useEffect(()=>{const n=a=>{const{action:c,data:i}=a.data;r.current&&c===e&&r.current(i)};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)},[e])};let Mq={data:""},xq=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Mq,wq=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Lq=/\/\*[^]*?\*\/| +/g,qm=/\n+/g,O6=(e,t)=>{let r="",n="",a="";for(let c in e){let i=e[c];c[0]=="@"?c[1]=="i"?r=c+" "+i+";":n+=c[1]=="f"?O6(i,c):c+"{"+O6(i,c[1]=="k"?"":t)+"}":typeof i=="object"?n+=O6(i,t?t.replace(/([^,])+/g,o=>c.replace(/(^:.*)|([^,])+/g,s=>/&/.test(s)?s.replace(/&/g,o):o?o+" "+s:s)):c):i!=null&&(c=/^--/.test(c)?c:c.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=O6.p?O6.p(c,i):c+":"+i+";")}return r+(t&&a?t+"{"+a+"}":a)+n},U4={},jM=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+jM(e[r]);return t}return e},Sq=(e,t,r,n,a)=>{let c=jM(e),i=U4[c]||(U4[c]=(s=>{let l=0,f=11;for(;l>>0;return"go"+f})(c));if(!U4[i]){let s=c!==e?e:(l=>{let f,u,d=[{}];for(;f=wq.exec(l.replace(Lq,""));)f[4]?d.shift():f[3]?(u=f[3].replace(qm," ").trim(),d.unshift(d[0][u]=d[0][u]||{})):d[0][f[1]]=f[2].replace(qm," ").trim();return d[0]})(e);U4[i]=O6(a?{["@keyframes "+i]:s}:s,r?"":"."+i)}let o=r&&U4.g?U4.g:null;return r&&(U4.g=U4[i]),((s,l,f,u)=>{u?l.data=l.data.replace(u,s):l.data.indexOf(s)===-1&&(l.data=f?s+l.data:l.data+s)})(U4[i],t,n,o),i},kq=(e,t,r)=>e.reduce((n,a,c)=>{let i=t[c];if(i&&i.call){let o=i(r),s=o&&o.props&&o.props.className||/^go/.test(o)&&o;i=s?"."+s:o&&typeof o=="object"?o.props?"":O6(o,""):o===!1?"":o}return n+a+(i??"")},"");function Vc(e){let t=this||{},r=e.call?e(t.p):e;return Sq(r.unshift?r.raw?kq(r,[].slice.call(arguments,1),t.p):r.reduce((n,a)=>Object.assign(n,a&&a.call?a(t.p):a),{}):r,xq(t.target),t.g,t.o,t.k)}let BM,Ns,_s;Vc.bind({g:1});let i6=Vc.bind({k:1});function Pq(e,t,r,n){O6.p=t,BM=e,Ns=r,_s=n}function fe(e,t){let r=this||{};return function(){let n=arguments;function a(c,i){let o=Object.assign({},c),s=o.className||a.className;r.p=Object.assign({theme:Ns&&Ns()},o),r.o=/ *go\d+/.test(s),o.className=Vc.apply(r,n)+(s?" "+s:""),t&&(o.ref=i);let l=e;return e[0]&&(l=o.as||e,delete o.as),_s&&l[0]&&_s(o),BM(l,o)}return t?t(a):a}}var Nq=e=>typeof e=="function",Ir=(e,t)=>Nq(e)?e(t):e,_q=(()=>{let e=0;return()=>(++e).toString()})(),WM=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Oq=20,Yt=new Map,Aq=1e3,Gm=e=>{if(Yt.has(e))return;let t=setTimeout(()=>{Yt.delete(e),Xe({type:4,toastId:e})},Aq);Yt.set(e,t)},Eq=e=>{let t=Yt.get(e);t&&clearTimeout(t)},Os=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Oq)};case 1:return t.toast.id&&Eq(t.toast.id),{...e,toasts:e.toasts.map(c=>c.id===t.toast.id?{...c,...t.toast}:c)};case 2:let{toast:r}=t;return e.toasts.find(c=>c.id===r.id)?Os(e,{type:1,toast:r}):Os(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?Gm(n):e.toasts.forEach(c=>{Gm(c.id)}),{...e,toasts:e.toasts.map(c=>c.id===n||n===void 0?{...c,visible:!1}:c)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(c=>c.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(c=>({...c,pauseDuration:c.pauseDuration+a}))}}},Zt=[],Kt={toasts:[],pausedAt:void 0},Xe=e=>{Kt=Os(Kt,e),Zt.forEach(t=>{t(Kt)})},$q={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Tq=(e={})=>{let[t,r]=z.useState(Kt);z.useEffect(()=>(Zt.push(r),()=>{let a=Zt.indexOf(r);a>-1&&Zt.splice(a,1)}),[t]);let n=t.toasts.map(a=>{var c,i;return{...e,...e[a.type],...a,duration:a.duration||((c=e[a.type])==null?void 0:c.duration)||e?.duration||$q[a.type],style:{...e.style,...(i=e[a.type])==null?void 0:i.style,...a.style}}});return{...t,toasts:n}},Dq=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:r?.id||_q()}),s7=e=>(t,r)=>{let n=Dq(t,e,r);return Xe({type:2,toast:n}),n.id},_3=(e,t)=>s7("blank")(e,t);_3.error=s7("error");_3.success=s7("success");_3.loading=s7("loading");_3.custom=s7("custom");_3.dismiss=e=>{Xe({type:3,toastId:e})};_3.remove=e=>Xe({type:4,toastId:e});_3.promise=(e,t,r)=>{let n=_3.loading(t.loading,{...r,...r?.loading});return e.then(a=>(_3.success(Ir(t.success,a),{id:n,...r,...r?.success}),a)).catch(a=>{_3.error(Ir(t.error,a),{id:n,...r,...r?.error})}),e};var Rq=(e,t)=>{Xe({type:1,toast:{id:e,height:t}})},Fq=()=>{Xe({type:5,time:Date.now()})},Iq=e=>{let{toasts:t,pausedAt:r}=Tq(e);z.useEffect(()=>{if(r)return;let c=Date.now(),i=t.map(o=>{if(o.duration===1/0)return;let s=(o.duration||0)+o.pauseDuration-(c-o.createdAt);if(s<0){o.visible&&_3.dismiss(o.id);return}return setTimeout(()=>_3.dismiss(o.id),s)});return()=>{i.forEach(o=>o&&clearTimeout(o))}},[t,r]);let n=z.useCallback(()=>{r&&Xe({type:6,time:Date.now()})},[r]),a=z.useCallback((c,i)=>{let{reverseOrder:o=!1,gutter:s=8,defaultPosition:l}=i||{},f=t.filter(p=>(p.position||l)===(c.position||l)&&p.height),u=f.findIndex(p=>p.id===c.id),d=f.filter((p,m)=>mp.visible).slice(...o?[d+1]:[0,d]).reduce((p,m)=>p+(m.height||0)+s,0)},[t]);return{toasts:t,handlers:{updateHeight:Rq,startPause:Fq,endPause:n,calculateOffset:a}}},jq=i6`
+from {
+ transform: scale(0) rotate(45deg);
+ opacity: 0;
+}
+to {
+ transform: scale(1) rotate(45deg);
+ opacity: 1;
+}`,Bq=i6`
+from {
+ transform: scale(0);
+ opacity: 0;
+}
+to {
+ transform: scale(1);
+ opacity: 1;
+}`,Wq=i6`
+from {
+ transform: scale(0) rotate(90deg);
+ opacity: 0;
+}
+to {
+ transform: scale(1) rotate(90deg);
+ opacity: 1;
+}`,Uq=fe("div")`
+ width: 20px;
+ opacity: 0;
+ height: 20px;
+ border-radius: 10px;
+ background: ${e=>e.primary||"#ff4b4b"};
+ position: relative;
+ transform: rotate(45deg);
+
+ animation: ${jq} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+ forwards;
+ animation-delay: 100ms;
+
+ &:after,
+ &:before {
+ content: '';
+ animation: ${Bq} 0.15s ease-out forwards;
+ animation-delay: 150ms;
+ position: absolute;
+ border-radius: 3px;
+ opacity: 0;
+ background: ${e=>e.secondary||"#fff"};
+ bottom: 9px;
+ left: 4px;
+ height: 2px;
+ width: 12px;
+ }
+
+ &:before {
+ animation: ${Wq} 0.15s ease-out forwards;
+ animation-delay: 180ms;
+ transform: rotate(90deg);
+ }
+`,qq=i6`
+ from {
+ transform: rotate(0deg);
+ }
+ to {
+ transform: rotate(360deg);
+ }
+`,Gq=fe("div")`
+ width: 12px;
+ height: 12px;
+ box-sizing: border-box;
+ border: 2px solid;
+ border-radius: 100%;
+ border-color: ${e=>e.secondary||"#e0e0e0"};
+ border-right-color: ${e=>e.primary||"#616161"};
+ animation: ${qq} 1s linear infinite;
+`,Yq=i6`
+from {
+ transform: scale(0) rotate(45deg);
+ opacity: 0;
+}
+to {
+ transform: scale(1) rotate(45deg);
+ opacity: 1;
+}`,Zq=i6`
+0% {
+ height: 0;
+ width: 0;
+ opacity: 0;
+}
+40% {
+ height: 0;
+ width: 6px;
+ opacity: 1;
+}
+100% {
+ opacity: 1;
+ height: 10px;
+}`,Kq=fe("div")`
+ width: 20px;
+ opacity: 0;
+ height: 20px;
+ border-radius: 10px;
+ background: ${e=>e.primary||"#61d345"};
+ position: relative;
+ transform: rotate(45deg);
+
+ animation: ${Yq} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+ forwards;
+ animation-delay: 100ms;
+ &:after {
+ content: '';
+ box-sizing: border-box;
+ animation: ${Zq} 0.2s ease-out forwards;
+ opacity: 0;
+ animation-delay: 200ms;
+ position: absolute;
+ border-right: 2px solid;
+ border-bottom: 2px solid;
+ border-color: ${e=>e.secondary||"#fff"};
+ bottom: 6px;
+ left: 6px;
+ height: 10px;
+ width: 6px;
+ }
+`,Xq=fe("div")`
+ position: absolute;
+`,Qq=fe("div")`
+ position: relative;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ min-width: 20px;
+ min-height: 20px;
+`,Jq=i6`
+from {
+ transform: scale(0.6);
+ opacity: 0.4;
+}
+to {
+ transform: scale(1);
+ opacity: 1;
+}`,eG=fe("div")`
+ position: relative;
+ transform: scale(0.6);
+ opacity: 0.4;
+ min-width: 20px;
+ animation: ${Jq} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+ forwards;
+`,tG=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return t!==void 0?typeof t=="string"?z.createElement(eG,null,t):t:r==="blank"?null:z.createElement(Qq,null,z.createElement(Gq,{...n}),r!=="loading"&&z.createElement(Xq,null,r==="error"?z.createElement(Uq,{...n}):z.createElement(Kq,{...n})))},rG=e=>`
+0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
+100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
+`,nG=e=>`
+0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
+100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
+`,aG="0%{opacity:0;} 100%{opacity:1;}",cG="0%{opacity:1;} 100%{opacity:0;}",iG=fe("div")`
+ display: flex;
+ align-items: center;
+ background: #fff;
+ color: #363636;
+ line-height: 1.3;
+ will-change: transform;
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
+ max-width: 350px;
+ pointer-events: auto;
+ padding: 8px 10px;
+ border-radius: 8px;
+`,oG=fe("div")`
+ display: flex;
+ justify-content: center;
+ margin: 4px 10px;
+ color: inherit;
+ flex: 1 1 auto;
+ white-space: pre-line;
+`,sG=(e,t)=>{let r=e.includes("top")?1:-1,[n,a]=WM()?[aG,cG]:[rG(r),nG(r)];return{animation:t?`${i6(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${i6(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},lG=z.memo(({toast:e,position:t,style:r,children:n})=>{let a=e.height?sG(e.position||t||"top-center",e.visible):{opacity:0},c=z.createElement(tG,{toast:e}),i=z.createElement(oG,{...e.ariaProps},Ir(e.message,e));return z.createElement(iG,{className:e.className,style:{...a,...r,...e.style}},typeof n=="function"?n({icon:c,message:i}):z.createElement(z.Fragment,null,c,i))});Pq(z.createElement);var fG=({id:e,className:t,style:r,onHeightUpdate:n,children:a})=>{let c=z.useCallback(i=>{if(i){let o=()=>{let s=i.getBoundingClientRect().height;n(e,s)};o(),new MutationObserver(o).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return z.createElement("div",{ref:c,className:t,style:r},a)},uG=(e,t)=>{let r=e.includes("top")||e.includes("center-"),n=r?{top:e.includes("center-")?"50%":0}:{bottom:0},a=e.includes("center-right")?{justifyContent:"flex-end"}:e.includes("center-left")?{justifyContent:"flex-start"}:e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:WM()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...a}},dG=Vc`
+ z-index: 9999;
+ > * {
+ pointer-events: auto;
+ }
+`,tt=16,pG=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:a,containerStyle:c,containerClassName:i})=>{let{toasts:o,handlers:s}=Iq(r);return z.createElement("div",{style:{position:"fixed",zIndex:9999,top:tt,left:tt,right:tt,bottom:tt,pointerEvents:"none",...c},className:i,onMouseEnter:s.startPause,onMouseLeave:s.endPause},o.map(l=>{let f=l.position||t,u=s.calculateOffset(l,{reverseOrder:e,gutter:n,defaultPosition:t}),d=uG(f,u);return z.createElement(fG,{id:l.id,key:l.id,onHeightUpdate:s.updateHeight,className:l.visible?dG:"",style:d},l.type==="custom"?Ir(l.message,l):a?a(l):z.createElement(lG,{toast:l,position:f}))}))};const Ym=["http","https","mailto","tel"];function mG(e){const t=(e||"").trim(),r=t.charAt(0);if(r==="#"||r==="/")return t;const n=t.indexOf(":");if(n===-1)return t;let a=-1;for(;++aa||(a=t.indexOf("#"),a!==-1&&n>a)?t:"javascript:void(0)"}/*!
+ * Determine if an object is a Buffer
+ *
+ * @author Feross Aboukhadijeh
+ * @license MIT
+ */var hG=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const UM=ie(hG);function p5(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Zm(e.position):"start"in e||"end"in e?Zm(e):"line"in e||"column"in e?As(e):""}function As(e){return Km(e&&e.line)+":"+Km(e&&e.column)}function Zm(e){return As(e&&e.start)+"-"+As(e&&e.end)}function Km(e){return e&&typeof e=="number"?e:1}class n4 extends Error{constructor(t,r,n){const a=[null,null];let c={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof r=="string"&&(n=r,r=void 0),typeof n=="string"){const i=n.indexOf(":");i===-1?a[1]=n:(a[0]=n.slice(0,i),a[1]=n.slice(i+1))}r&&("type"in r||"position"in r?r.position&&(c=r.position):"start"in r||"end"in r?c=r:("line"in r||"column"in r)&&(c.start=r)),this.name=p5(r)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=c.start.line,this.column=c.start.column,this.position=c,this.source=a[0],this.ruleId=a[1],this.file,this.actual,this.expected,this.url,this.note}}n4.prototype.file="";n4.prototype.name="";n4.prototype.reason="";n4.prototype.message="";n4.prototype.stack="";n4.prototype.fatal=null;n4.prototype.column=null;n4.prototype.line=null;n4.prototype.source=null;n4.prototype.ruleId=null;n4.prototype.position=null;const L4={basename:vG,dirname:gG,extname:zG,join:yG,sep:"/"};function vG(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');l7(e);let r=0,n=-1,a=e.length,c;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(c){r=a+1;break}}else n<0&&(c=!0,n=a+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let i=-1,o=t.length-1;for(;a--;)if(e.charCodeAt(a)===47){if(c){r=a+1;break}}else i<0&&(c=!0,i=a+1),o>-1&&(e.charCodeAt(a)===t.charCodeAt(o--)?o<0&&(n=a):(o=-1,n=i));return r===n?n=i:n<0&&(n=e.length),e.slice(r,n)}function gG(e){if(l7(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.charCodeAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function zG(e){l7(e);let t=e.length,r=-1,n=0,a=-1,c=0,i;for(;t--;){const o=e.charCodeAt(t);if(o===47){if(i){n=t+1;break}continue}r<0&&(i=!0,r=t+1),o===46?a<0?a=t:c!==1&&(c=1):a>-1&&(c=-1)}return a<0||r<0||c===0||c===1&&a===r-1&&a===n+1?"":e.slice(a,r)}function yG(...e){let t=-1,r;for(;++t0&&e.charCodeAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function HG(e,t){let r="",n=0,a=-1,c=0,i=-1,o,s;for(;++i<=e.length;){if(i2){if(s=r.lastIndexOf("/"),s!==r.length-1){s<0?(r="",n=0):(r=r.slice(0,s),n=r.length-1-r.lastIndexOf("/")),a=i,c=0;continue}}else if(r.length>0){r="",n=0,a=i,c=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(a+1,i):r=e.slice(a+1,i),n=i-a-1;a=i,c=0}else o===46&&c>-1?c++:c=-1}return r}function l7(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const VG={cwd:bG};function bG(){return"/"}function Es(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function MG(e){if(typeof e=="string")e=new URL(e);else if(!Es(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return xG(e)}function xG(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r"u"||Xt.call(t,a)},nh=function(t,r){Jm&&r.name==="__proto__"?Jm(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},ah=function(t,r){if(r==="__proto__")if(Xt.call(t,r)){if(eh)return eh(t,r).value}else return;return t[r]},LG=function e(){var t,r,n,a,c,i,o=arguments[0],s=1,l=arguments.length,f=!1;for(typeof o=="boolean"&&(f=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});si.length;let s;o&&i.push(a);try{s=e.apply(this,i)}catch(l){const f=l;if(o&&r)throw f;return a(f)}o||(s instanceof Promise?s.then(c,a):s instanceof Error?a(s):c(s))}function a(i,...o){r||(r=!0,t(i,...o))}function c(i){a(null,i)}}const PG=ZM().freeze(),YM={}.hasOwnProperty;function ZM(){const e=SG(),t=[];let r={},n,a=-1;return c.data=i,c.Parser=void 0,c.Compiler=void 0,c.freeze=o,c.attachers=t,c.use=s,c.parse=l,c.stringify=f,c.run=u,c.runSync=d,c.process=p,c.processSync=m,c;function c(){const v=ZM();let C=-1;for(;++C{if(H||!M||!w)x(H);else{const P=c.stringify(M,w);P==null||(OG(P)?w.value=P:w.result=P),x(H,w)}});function x(H,M){H||!M?y(H):g?g(M):C(null,M)}}}function m(v){let C;c.freeze(),zi("processSync",c.Parser),yi("processSync",c.Compiler);const h=N8(v);return c.process(h,g),sh("processSync","process",C),h;function g(y){C=!0,Qm(y)}}}function ih(e,t){return typeof e=="function"&&e.prototype&&(NG(e.prototype)||t in e.prototype)}function NG(e){let t;for(t in e)if(YM.call(e,t))return!0;return!1}function zi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function yi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Ci(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function oh(e){if(!$s(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sh(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function N8(e){return _G(e)?e:new qM(e)}function _G(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function OG(e){return typeof e=="string"||UM(e)}function AG(e,t){const r=(t||{}).includeImageAlt;return KM(e,typeof r=="boolean"?r:!0)}function KM(e,t){return EG(e)&&("value"in e&&e.value||t&&"alt"in e&&e.alt||"children"in e&&lh(e.children,t))||Array.isArray(e)&&lh(e,t)||""}function lh(e,t){const r=[];let n=-1;for(;++na?0:a+t:t=t>a?a:t,r=r>0?r:0,n.length<1e4)i=Array.from(n),i.unshift(t,r),[].splice.apply(e,i);else for(r&&[].splice.apply(e,[t,r]);c0?($3(e,e.length,0,t),e):t}const fh={}.hasOwnProperty;function XM(e){const t={};let r=-1;for(;++ri))return;const M=t.events.length;let w=M,P,N;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){if(P){N=t.events[w][1].end;break}P=!0}for(h(n),H=M;Hy;){const x=r[V];t.containerState=x[1],x[0].exit.call(t,e)}r.length=y}function g(){a.write([null]),c=void 0,a=void 0,t.containerState._closeFlow=void 0}}function UG(e,t,r){return B1(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Br(e){if(e===null||L2(e)||bc(e))return 1;if(Mc(e))return 2}function xc(e,t,r){const n=[];let a=-1;for(;++a1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const u=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);ph(u,-s),ph(d,s),i={type:s>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[n][1].end)},o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},c={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},o.end)},e[n][1].end=Object.assign({},i.start),e[r][1].start=Object.assign({},o.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Z3(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Z3(l,[["enter",a,t],["enter",i,t],["exit",i,t],["enter",c,t]]),l=Z3(l,xc(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),l=Z3(l,[["exit",c,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(f=2,l=Z3(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):f=0,$3(e,n-1,r-n+3,l),r=n+l.length-f-2;break}}for(r=-1;++r=4?i(l):r(l)}function i(l){return l===null?s(l):w1(l)?e.attempt(nY,i,s)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||w1(l)?(e.exit("codeFlowValue"),i(l)):(e.consume(l),o)}function s(l){return e.exit("codeIndented"),t(l)}}function cY(e,t,r){const n=this;return a;function a(i){return n.parser.lazy[n.now().line]?r(i):w1(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):B1(e,c,"linePrefix",4+1)(i)}function c(i){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):w1(i)?a(i):r(i)}}const iY={name:"codeText",tokenize:lY,resolve:oY,previous:sY};function oY(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}}function rx(e,t,r,n,a,c,i,o,s){const l=s||Number.POSITIVE_INFINITY;let f=0;return u;function u(h){return h===60?(e.enter(n),e.enter(a),e.enter(c),e.consume(h),e.exit(c),d):h===null||h===41||j5(h)?r(h):(e.enter(n),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),v(h))}function d(h){return h===62?(e.enter(c),e.consume(h),e.exit(c),e.exit(a),e.exit(n),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===62?(e.exit("chunkString"),e.exit(o),d(h)):h===null||h===60||w1(h)?r(h):(e.consume(h),h===92?m:p)}function m(h){return h===60||h===62||h===92?(e.consume(h),p):p(h)}function v(h){return h===40?++f>l?r(h):(e.consume(h),v):h===41?f--?(e.consume(h),v):(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(n),t(h)):h===null||L2(h)?f?r(h):(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(n),t(h)):j5(h)?r(h):(e.consume(h),h===92?C:v)}function C(h){return h===40||h===41||h===92?(e.consume(h),v):v(h)}}function nx(e,t,r,n,a,c){const i=this;let o=0,s;return l;function l(p){return e.enter(n),e.enter(a),e.consume(p),e.exit(a),e.enter(c),f}function f(p){return p===null||p===91||p===93&&!s||p===94&&!o&&"_hiddenFootnoteSupport"in i.parser.constructs||o>999?r(p):p===93?(e.exit(c),e.enter(a),e.consume(p),e.exit(a),e.exit(n),t):w1(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||w1(p)||o++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s=s||!e2(p),p===92?d:u)}function d(p){return p===91||p===92||p===93?(e.consume(p),o++,u):u(p)}}function ax(e,t,r,n,a,c){let i;return o;function o(d){return e.enter(n),e.enter(a),e.consume(d),e.exit(a),i=d===40?41:d,s}function s(d){return d===i?(e.enter(a),e.consume(d),e.exit(a),e.exit(n),t):(e.enter(c),l(d))}function l(d){return d===i?(e.exit(c),s(i)):d===null?r(d):w1(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),B1(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===i||d===null||w1(d)?(e.exit("chunkString"),l(d)):(e.consume(d),d===92?u:f)}function u(d){return d===i||d===92?(e.consume(d),f):f(d)}}function m5(e,t){let r;return n;function n(a){return w1(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,n):e2(a)?B1(e,n,r?"linePrefix":"lineSuffix")(a):t(a)}}function z4(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vY={name:"definition",tokenize:zY},gY={tokenize:yY,partial:!0};function zY(e,t,r){const n=this;let a;return c;function c(s){return e.enter("definition"),nx.call(n,e,i,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(s)}function i(s){return a=z4(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),s===58?(e.enter("definitionMarker"),e.consume(s),e.exit("definitionMarker"),m5(e,rx(e,e.attempt(gY,B1(e,o,"whitespace"),B1(e,o,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(s)}function o(s){return s===null||w1(s)?(e.exit("definition"),n.parser.defined.includes(a)||n.parser.defined.push(a),t(s)):r(s)}}function yY(e,t,r){return n;function n(i){return L2(i)?m5(e,a)(i):r(i)}function a(i){return i===34||i===39||i===40?ax(e,B1(e,c,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(i):r(i)}function c(i){return i===null||w1(i)?t(i):r(i)}}const CY={name:"hardBreakEscape",tokenize:HY};function HY(e,t,r){return n;function n(c){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(c),a}function a(c){return w1(c)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(c)):r(c)}}const VY={name:"headingAtx",tokenize:MY,resolve:bY};function bY(e,t){let r=e.length-2,n=3,a,c;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(a={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},c={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},$3(e,n,r-n+1,[["enter",a,t],["enter",c,t],["exit",c,t],["exit",a,t]])),e}function MY(e,t,r){const n=this;let a=0;return c;function c(f){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),i(f)}function i(f){return f===35&&a++<6?(e.consume(f),i):f===null||L2(f)?(e.exit("atxHeadingSequence"),n.interrupt?t(f):o(f)):r(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||w1(f)?(e.exit("atxHeading"),t(f)):e2(f)?B1(e,o,"whitespace")(f):(e.enter("atxHeadingText"),l(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),o(f))}function l(f){return f===null||f===35||L2(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),l)}}const xY=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],vh=["pre","script","style","textarea"],wY={name:"htmlFlow",tokenize:kY,resolveTo:SY,concrete:!0},LY={tokenize:PY,partial:!0};function SY(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function kY(e,t,r){const n=this;let a,c,i,o,s;return l;function l(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),u):S===47?(e.consume(S),m):S===63?(e.consume(S),a=3,n.interrupt?t:j):K3(S)?(e.consume(S),i=String.fromCharCode(S),c=!0,v):r(S)}function u(S){return S===45?(e.consume(S),a=2,d):S===91?(e.consume(S),a=5,i="CDATA[",o=0,p):K3(S)?(e.consume(S),a=4,n.interrupt?t:j):r(S)}function d(S){return S===45?(e.consume(S),n.interrupt?t:j):r(S)}function p(S){return S===i.charCodeAt(o++)?(e.consume(S),o===i.length?n.interrupt?t:O:p):r(S)}function m(S){return K3(S)?(e.consume(S),i=String.fromCharCode(S),v):r(S)}function v(S){return S===null||S===47||S===62||L2(S)?S!==47&&c&&vh.includes(i.toLowerCase())?(a=1,n.interrupt?t(S):O(S)):xY.includes(i.toLowerCase())?(a=6,S===47?(e.consume(S),C):n.interrupt?t(S):O(S)):(a=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(S):c?g(S):h(S)):S===45||s3(S)?(e.consume(S),i+=String.fromCharCode(S),v):r(S)}function C(S){return S===62?(e.consume(S),n.interrupt?t:O):r(S)}function h(S){return e2(S)?(e.consume(S),h):P(S)}function g(S){return S===47?(e.consume(S),P):S===58||S===95||K3(S)?(e.consume(S),y):e2(S)?(e.consume(S),g):P(S)}function y(S){return S===45||S===46||S===58||S===95||s3(S)?(e.consume(S),y):V(S)}function V(S){return S===61?(e.consume(S),x):e2(S)?(e.consume(S),V):g(S)}function x(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),s=S,H):e2(S)?(e.consume(S),x):(s=null,M(S))}function H(S){return S===null||w1(S)?r(S):S===s?(e.consume(S),w):(e.consume(S),H)}function M(S){return S===null||S===34||S===39||S===60||S===61||S===62||S===96||L2(S)?V(S):(e.consume(S),M)}function w(S){return S===47||S===62||e2(S)?g(S):r(S)}function P(S){return S===62?(e.consume(S),N):r(S)}function N(S){return e2(S)?(e.consume(S),N):S===null||w1(S)?O(S):r(S)}function O(S){return S===45&&a===2?(e.consume(S),R):S===60&&a===1?(e.consume(S),k):S===62&&a===4?(e.consume(S),I):S===63&&a===3?(e.consume(S),j):S===93&&a===5?(e.consume(S),$):w1(S)&&(a===6||a===7)?e.check(LY,I,E)(S):S===null||w1(S)?E(S):(e.consume(S),O)}function E(S){return e.exit("htmlFlowData"),T(S)}function T(S){return S===null?L(S):w1(S)?e.attempt({tokenize:_,partial:!0},T,L)(S):(e.enter("htmlFlowData"),O(S))}function _(S,Z,n1){return h1;function h1(c1){return S.enter("lineEnding"),S.consume(c1),S.exit("lineEnding"),K}function K(c1){return n.parser.lazy[n.now().line]?n1(c1):Z(c1)}}function R(S){return S===45?(e.consume(S),j):O(S)}function k(S){return S===47?(e.consume(S),i="",F):O(S)}function F(S){return S===62&&vh.includes(i.toLowerCase())?(e.consume(S),I):K3(S)&&i.length<8?(e.consume(S),i+=String.fromCharCode(S),F):O(S)}function $(S){return S===93?(e.consume(S),j):O(S)}function j(S){return S===62?(e.consume(S),I):S===45&&a===2?(e.consume(S),j):O(S)}function I(S){return S===null||w1(S)?(e.exit("htmlFlowData"),L(S)):(e.consume(S),I)}function L(S){return e.exit("htmlFlow"),t(S)}}function PY(e,t,r){return n;function n(a){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),e.attempt(f7,t,r)}}const NY={name:"htmlText",tokenize:_Y};function _Y(e,t,r){const n=this;let a,c,i,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),f):L===47?(e.consume(L),M):L===63?(e.consume(L),x):K3(L)?(e.consume(L),N):r(L)}function f(L){return L===45?(e.consume(L),u):L===91?(e.consume(L),c="CDATA[",i=0,C):K3(L)?(e.consume(L),V):r(L)}function u(L){return L===45?(e.consume(L),d):r(L)}function d(L){return L===null||L===62?r(L):L===45?(e.consume(L),p):m(L)}function p(L){return L===null||L===62?r(L):m(L)}function m(L){return L===null?r(L):L===45?(e.consume(L),v):w1(L)?(o=m,$(L)):(e.consume(L),m)}function v(L){return L===45?(e.consume(L),I):m(L)}function C(L){return L===c.charCodeAt(i++)?(e.consume(L),i===c.length?h:C):r(L)}function h(L){return L===null?r(L):L===93?(e.consume(L),g):w1(L)?(o=h,$(L)):(e.consume(L),h)}function g(L){return L===93?(e.consume(L),y):h(L)}function y(L){return L===62?I(L):L===93?(e.consume(L),y):h(L)}function V(L){return L===null||L===62?I(L):w1(L)?(o=V,$(L)):(e.consume(L),V)}function x(L){return L===null?r(L):L===63?(e.consume(L),H):w1(L)?(o=x,$(L)):(e.consume(L),x)}function H(L){return L===62?I(L):x(L)}function M(L){return K3(L)?(e.consume(L),w):r(L)}function w(L){return L===45||s3(L)?(e.consume(L),w):P(L)}function P(L){return w1(L)?(o=P,$(L)):e2(L)?(e.consume(L),P):I(L)}function N(L){return L===45||s3(L)?(e.consume(L),N):L===47||L===62||L2(L)?O(L):r(L)}function O(L){return L===47?(e.consume(L),I):L===58||L===95||K3(L)?(e.consume(L),E):w1(L)?(o=O,$(L)):e2(L)?(e.consume(L),O):I(L)}function E(L){return L===45||L===46||L===58||L===95||s3(L)?(e.consume(L),E):T(L)}function T(L){return L===61?(e.consume(L),_):w1(L)?(o=T,$(L)):e2(L)?(e.consume(L),T):O(L)}function _(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),a=L,R):w1(L)?(o=_,$(L)):e2(L)?(e.consume(L),_):(e.consume(L),a=void 0,F)}function R(L){return L===a?(e.consume(L),k):L===null?r(L):w1(L)?(o=R,$(L)):(e.consume(L),R)}function k(L){return L===62||L===47||L2(L)?O(L):r(L)}function F(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===62||L2(L)?O(L):(e.consume(L),F)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),B1(e,j,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function j(L){return e.enter("htmlTextData"),o(L)}function I(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}}const Bf={name:"labelEnd",tokenize:DY,resolveTo:TY,resolveAll:$Y},OY={tokenize:RY},AY={tokenize:FY},EY={tokenize:IY};function $Y(e){let t=-1,r;for(;++t-1&&(i[0]=i[0].slice(n)),c>0&&i.push(e[a].slice(0,c))),i}function uZ(e,t){let r=-1;const n=[];let a;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}const xZ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sx(e){return e.replace(xZ,wZ)}function wZ(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),c=a===120||a===88;return ox(r.slice(c?2:1),c?16:10)}return jf(r)||e}const lx={}.hasOwnProperty,LZ=function(e,t,r){return typeof t!="string"&&(r=t,t=void 0),SZ(r)(MZ(VZ(r).document().write(bZ()(e,t,!0))))};function SZ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(G),autolinkProtocol:O,autolinkEmail:O,atxHeading:o(B),blockQuote:o(i1),characterEscape:O,characterReference:O,codeFenced:o(f1),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(f1,s),codeText:o(x1,s),codeTextData:O,data:O,codeFlowValue:O,definition:o(M1),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(D),hardBreakEscape:o(W),hardBreakTrailing:o(W),htmlFlow:o(Y,s),htmlFlowData:O,htmlText:o(Y,s),htmlTextData:O,image:o(J),label:s,link:o(G),listItem:o(C1),listItemValue:m,listOrdered:o(e1,p),listUnordered:o(e1),paragraph:o(k1),reference:h1,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(B),strong:o(A1),thematicBreak:o(I1)},exit:{atxHeading:f(),atxHeadingSequence:M,autolink:f(),autolinkEmail:V1,autolinkProtocol:l1,blockQuote:f(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:c1,characterReferenceMarkerNumeric:c1,characterReferenceValue:H1,codeFenced:f(g),codeFencedFence:h,codeFencedFenceInfo:v,codeFencedFenceMeta:C,codeFlowValue:E,codeIndented:f(y),codeText:f(F),codeTextData:E,data:E,definition:f(),definitionDestinationString:H,definitionLabelString:V,definitionTitleString:x,emphasis:f(),hardBreakEscape:f(_),hardBreakTrailing:f(_),htmlFlow:f(R),htmlFlowData:E,htmlText:f(k),htmlTextData:E,image:f(j),label:L,labelText:I,lineEnding:T,link:f($),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:K,resourceDestinationString:S,resourceTitleString:Z,resource:n1,setextHeading:f(N),setextHeadingLineSequence:P,setextHeadingText:w,strong:f(),thematicBreak:f()}};fx(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(U){let q={type:"root",children:[]};const a1={stack:[q],tokenStack:[],config:t,enter:l,exit:u,buffer:s,resume:d,setData:c,getData:i},r1=[];let v1=-1;for(;++v10){const G1=a1.tokenStack[a1.tokenStack.length-1];(G1[1]||yh).call(a1,void 0,G1[0])}for(q.position={start:C6(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:C6(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},v1=-1;++v1{const n=this.data("settings");return LZ(r,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function NZ(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function _Z(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
+`}]}function OZ(e,t){const r=t.value?t.value+`
+`:"",n=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,a={};n&&(a.className=["language-"+n]);let c={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(c.data={meta:t.meta}),e.patch(t,c),c=e.applyData(t,c),c={type:"element",tagName:"pre",properties:{},children:[c]},e.patch(t,c),c}function AZ(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function EZ(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function d8(e){const t=[];let r=-1,n=0,a=0;for(;++r55295&&c<57344){const o=e.charCodeAt(r+1);c<56320&&o>56319&&o<57344?(i=String.fromCharCode(c,o),a=1):i="�"}else i=String.fromCharCode(c);i&&(t.push(e.slice(n,r),encodeURIComponent(i)),n=r+a+1,i=""),a&&(r+=a,a=0)}return t.join("")+e.slice(n)}function ux(e,t){const r=String(t.identifier).toUpperCase(),n=d8(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let c;a===-1?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,c=e.footnoteOrder.length):(e.footnoteCounts[r]++,c=a+1);const i=e.footnoteCounts[r],o={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+n,id:e.clobberPrefix+"fnref-"+n+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,o);const s={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,s),e.applyData(t,s)}function $Z(e,t){const r=e.footnoteById;let n=1;for(;n in r;)n++;const a=String(n);return r[a]={type:"footnoteDefinition",identifier:a,children:[{type:"paragraph",children:t.children}],position:t.position},ux(e,{type:"footnoteReference",identifier:a,position:t.position})}function TZ(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function DZ(e,t){if(e.dangerous){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}return null}function dx(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+n};const a=e.all(t),c=a[0];c&&c.type==="text"?c.value="["+c.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&i.type==="text"?i.value+=n:a.push({type:"text",value:n}),a}function RZ(e,t){const r=e.definition(t.identifier);if(!r)return dx(e,t);const n={src:d8(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(n.title=r.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function FZ(e,t){const r={src:d8(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function IZ(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function jZ(e,t){const r=e.definition(t.identifier);if(!r)return dx(e,t);const n={href:d8(r.url||"")};r.title!==null&&r.title!==void 0&&(n.title=r.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function BZ(e,t){const r={href:d8(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WZ(e,t,r){const n=e.all(t),a=r?UZ(r):px(t),c={},i=[];if(typeof t.checked=="boolean"){const f=n[0];let u;f&&f.type==="element"&&f.tagName==="p"?u=f:(u={type:"element",tagName:"p",properties:{},children:[]},n.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let o=-1;for(;++o1}function qZ(e,t){const r={},n=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a-1?n.offset:null}}}function XZ(e,t){const r=e.all(t),n=r.shift(),a=[];if(n){const i={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],i),a.push(i)}if(r.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=Wf(t.children[1]),s=Uf(t.children[t.children.length-1]);o.line&&s.line&&(i.position={start:o,end:s}),a.push(i)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,c),e.applyData(t,c)}function QZ(e,t,r){const n=r?r.children:void 0,c=(n?n.indexOf(t):1)===0?"th":"td",i=r&&r.type==="table"?r.align:void 0,o=i?i.length:t.children.length;let s=-1;const l=[];for(;++s0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return c.push(Vh(t.slice(a),a>0,!1)),c.join("")}function Vh(e,t,r){let n=0,a=e.length;if(t){let c=e.codePointAt(n);for(;c===Ch||c===Hh;)n++,c=e.codePointAt(n)}if(r){let c=e.codePointAt(a-1);for(;c===Ch||c===Hh;)a--,c=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}function tK(e,t){const r={type:"text",value:eK(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function rK(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const nK={blockquote:NZ,break:_Z,code:OZ,delete:AZ,emphasis:EZ,footnoteReference:ux,footnote:$Z,heading:TZ,html:DZ,imageReference:RZ,image:FZ,inlineCode:IZ,linkReference:jZ,link:BZ,listItem:WZ,list:qZ,paragraph:GZ,root:YZ,strong:ZZ,table:XZ,tableCell:JZ,tableRow:QZ,text:tK,thematicBreak:rK,toml:rt,yaml:rt,definition:rt,footnoteDefinition:rt};function rt(){return null}const qf=function(e){if(e==null)return oK;if(typeof e=="string")return iK(e);if(typeof e=="object")return Array.isArray(e)?aK(e):cK(e);if(typeof e=="function")return wc(e);throw new Error("Expected function, string, or object as test")};function aK(e){const t=[];let r=-1;for(;++r":""))+")"})}return u;function u(){let d=[],p,m,v;if((!t||a(o,s,l[l.length-1]||null))&&(d=fK(r(o,l)),d[0]===bh))return d;if(o.children&&d[0]!==lK)for(m=(n?o.children.length:-1)+c,v=l.concat(o);m>-1&&m{const a=xh(n.identifier);a&&!Mh.call(t,a)&&(t[a]=n)}),r;function r(n){const a=xh(n);return a&&Mh.call(t,a)?t[a]:null}}function xh(e){return String(e||"").toUpperCase()}const Wr={}.hasOwnProperty;function pK(e,t){const r=t||{},n=r.allowDangerousHtml||!1,a={};return i.dangerous=n,i.clobberPrefix=r.clobberPrefix===void 0||r.clobberPrefix===null?"user-content-":r.clobberPrefix,i.footnoteLabel=r.footnoteLabel||"Footnotes",i.footnoteLabelTagName=r.footnoteLabelTagName||"h2",i.footnoteLabelProperties=r.footnoteLabelProperties||{className:["sr-only"]},i.footnoteBackLabel=r.footnoteBackLabel||"Back to content",i.unknownHandler=r.unknownHandler,i.passThrough=r.passThrough,i.handlers={...nK,...r.handlers},i.definition=dK(e),i.footnoteById=a,i.footnoteOrder=[],i.footnoteCounts={},i.patch=mK,i.applyData=hK,i.one=o,i.all=s,i.wrap=gK,i.augment=c,Gf(e,"footnoteDefinition",l=>{const f=String(l.identifier).toUpperCase();Wr.call(a,f)||(a[f]=l)}),i;function c(l,f){if(l&&"data"in l&&l.data){const u=l.data;u.hName&&(f.type!=="element"&&(f={type:"element",tagName:"",properties:{},children:[]}),f.tagName=u.hName),f.type==="element"&&u.hProperties&&(f.properties={...f.properties,...u.hProperties}),"children"in f&&f.children&&u.hChildren&&(f.children=u.hChildren)}if(l){const u="type"in l?l:{position:l};uK(u)||(f.position={start:Wf(u),end:Uf(u)})}return f}function i(l,f,u,d){return Array.isArray(u)&&(d=u,u={}),c(l,{type:"element",tagName:f,properties:u||{},children:d||[]})}function o(l,f){return vx(i,l,f)}function s(l){return Yf(i,l)}}function mK(e,t){e.position&&(t.position=KZ(e))}function hK(e,t){let r=t;if(e&&e.data){const n=e.data.hName,a=e.data.hChildren,c=e.data.hProperties;typeof n=="string"&&(r.type==="element"?r.tagName=n:r={type:"element",tagName:n,properties:{},children:[]}),r.type==="element"&&c&&(r.properties={...r.properties,...c}),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function vx(e,t,r){const n=t&&t.type;if(!n)throw new Error("Expected node, got `"+t+"`");return Wr.call(e.handlers,n)?e.handlers[n](e,t,r):e.passThrough&&e.passThrough.includes(n)?"children"in t?{...t,children:Yf(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,r):vK(e,t)}function Yf(e,t){const r=[];if("children"in t){const n=t.children;let a=-1;for(;++a0&&r.push({type:"text",value:`
+`}),r}function zK(e){const t=[];let r=-1;for(;++r1?"-"+o:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};o>1&&u.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(o)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(u)}const l=a[a.length-1];if(l&&l.type==="element"&&l.tagName==="p"){const u=l.children[l.children.length-1];u&&u.type==="text"?u.value+=" ":l.children.push({type:"text",value:" "}),l.children.push(...s)}else a.push(...s);const f={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+i},children:e.wrap(a,!0)};e.patch(n,f),t.push(f)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
+`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
+`}]}}function gx(e,t){const r=pK(e,t),n=r.one(e,null),a=zK(r);return a&&n.children.push({type:"text",value:`
+`},a),Array.isArray(n)?{type:"root",children:n}:n}const yK=function(e,t){return e&&"run"in e?HK(e,t):VK(e||t)},CK=yK;function HK(e,t){return(r,n,a)=>{e.run(gx(r,t),n,c=>{a(c)})}}function VK(e){return t=>gx(t,e)}var zx={exports:{}},bK="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",MK=bK,xK=MK;function yx(){}function Cx(){}Cx.resetWarningCache=yx;var wK=function(){function e(n,a,c,i,o,s){if(s!==xK){var l=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 l.name="Invariant Violation",l}}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:Cx,resetWarningCache:yx};return r.PropTypes=r,r};zx.exports=wK();var Hx=zx.exports;const t1=ie(Hx);class u7{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}u7.prototype.property={};u7.prototype.normal={};u7.prototype.space=null;function Vx(e,t){const r={},n={};let a=-1;for(;++a4&&r.slice(0,4)==="data"&&NK.test(t)){if(t.charAt(4)==="-"){const c=t.slice(5).replace(Lh,EK);n="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=t.slice(4);if(!Lh.test(c)){let i=c.replace(_K,AK);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=Zf}return new a(n,t)}function AK(e){return"-"+e.toLowerCase()}function EK(e){return e.charAt(1).toUpperCase()}const Sh={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},$K=Vx([xx,Mx,Sx,kx,kK],"html"),TK=Vx([xx,Mx,Sx,kx,PK],"svg");function DK(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Gf(t,"element",(r,n,a)=>{const c=a;let i;if(e.allowedElements?i=!e.allowedElements.includes(r.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(r.tagName)),!i&&e.allowElement&&typeof n=="number"&&(i=!e.allowElement(r,n,c)),i&&typeof n=="number")return e.unwrapDisallowed&&r.children?c.children.splice(n,1,...r.children):c.children.splice(n,1),n})}}var Px={exports:{}},K1={};/**
+ * @license React
+ * react-is.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 Kf=Symbol.for("react.element"),Xf=Symbol.for("react.portal"),Lc=Symbol.for("react.fragment"),Sc=Symbol.for("react.strict_mode"),kc=Symbol.for("react.profiler"),Pc=Symbol.for("react.provider"),Nc=Symbol.for("react.context"),RK=Symbol.for("react.server_context"),_c=Symbol.for("react.forward_ref"),Oc=Symbol.for("react.suspense"),Ac=Symbol.for("react.suspense_list"),Ec=Symbol.for("react.memo"),$c=Symbol.for("react.lazy"),FK=Symbol.for("react.offscreen"),Nx;Nx=Symbol.for("react.module.reference");function c4(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Kf:switch(e=e.type,e){case Lc:case kc:case Sc:case Oc:case Ac:return e;default:switch(e=e&&e.$$typeof,e){case RK:case Nc:case _c:case $c:case Ec:case Pc:return e;default:return t}}case Xf:return t}}}K1.ContextConsumer=Nc;K1.ContextProvider=Pc;K1.Element=Kf;K1.ForwardRef=_c;K1.Fragment=Lc;K1.Lazy=$c;K1.Memo=Ec;K1.Portal=Xf;K1.Profiler=kc;K1.StrictMode=Sc;K1.Suspense=Oc;K1.SuspenseList=Ac;K1.isAsyncMode=function(){return!1};K1.isConcurrentMode=function(){return!1};K1.isContextConsumer=function(e){return c4(e)===Nc};K1.isContextProvider=function(e){return c4(e)===Pc};K1.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kf};K1.isForwardRef=function(e){return c4(e)===_c};K1.isFragment=function(e){return c4(e)===Lc};K1.isLazy=function(e){return c4(e)===$c};K1.isMemo=function(e){return c4(e)===Ec};K1.isPortal=function(e){return c4(e)===Xf};K1.isProfiler=function(e){return c4(e)===kc};K1.isStrictMode=function(e){return c4(e)===Sc};K1.isSuspense=function(e){return c4(e)===Oc};K1.isSuspenseList=function(e){return c4(e)===Ac};K1.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Lc||e===kc||e===Sc||e===Oc||e===Ac||e===FK||typeof e=="object"&&e!==null&&(e.$$typeof===$c||e.$$typeof===Ec||e.$$typeof===Pc||e.$$typeof===Nc||e.$$typeof===_c||e.$$typeof===Nx||e.getModuleId!==void 0)};K1.typeOf=c4;Px.exports=K1;var IK=Px.exports;const jK=ie(IK);function BK(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function WK(e){return e.join(" ").trim()}function UK(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var Qf={exports:{}},kh=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,qK=/\n/g,GK=/^\s*/,YK=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ZK=/^:\s*/,KK=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,XK=/^[;\s]*/,QK=/^\s+|\s+$/g,JK=`
+`,Ph="/",Nh="*",we="",eX="comment",tX="declaration",rX=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function a(m){var v=m.match(qK);v&&(r+=v.length);var C=m.lastIndexOf(JK);n=~C?m.length-C:n+m.length}function c(){var m={line:r,column:n};return function(v){return v.position=new i(m),l(),v}}function i(m){this.start=m,this.end={line:r,column:n},this.source=t.source}i.prototype.content=e;function o(m){var v=new Error(t.source+":"+r+":"+n+": "+m);if(v.reason=m,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function s(m){var v=m.exec(e);if(v){var C=v[0];return a(C),e=e.slice(C.length),v}}function l(){s(GK)}function f(m){var v;for(m=m||[];v=u();)v!==!1&&m.push(v);return m}function u(){var m=c();if(!(Ph!=e.charAt(0)||Nh!=e.charAt(1))){for(var v=2;we!=e.charAt(v)&&(Nh!=e.charAt(v)||Ph!=e.charAt(v+1));)++v;if(v+=2,we===e.charAt(v-1))return o("End of comment missing");var C=e.slice(2,v-2);return n+=2,a(C),e=e.slice(v),n+=2,m({type:eX,comment:C})}}function d(){var m=c(),v=s(YK);if(v){if(u(),!s(ZK))return o("property missing ':'");var C=s(KK),h=m({type:tX,property:_h(v[0].replace(kh,we)),value:C?_h(C[0].replace(kh,we)):we});return s(XK),h}}function p(){var m=[];f(m);for(var v;v=d();)v!==!1&&(m.push(v),f(m));return m}return l(),p()};function _h(e){return e?e.replace(QK,we):we}var nX=rX;function _x(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,a=nX(e),c=typeof t=="function",i,o,s=0,l=a.length;s0?b.createElement(p,s,u):b.createElement(p,s)}function sX(e){let t=-1;for(;++t for more info)`),delete nt[c]}const t=PG().use(PZ).use(e.remarkPlugins||[]).use(CK,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(DK,e),r=new qM;typeof e.children=="string"?r.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const n=t.runSync(t.parse(r),r);if(n.type!=="root")throw new TypeError("Expected a `root` node");let a=b.createElement(b.Fragment,{},Ox({options:e,schema:$K,listDepth:0},n));return e.className&&(a=b.createElement("div",{className:e.className},a)),a}J6.propTypes={children:t1.string,className:t1.string,allowElement:t1.func,allowedElements:t1.arrayOf(t1.string),disallowedElements:t1.arrayOf(t1.string),unwrapDisallowed:t1.bool,remarkPlugins:t1.arrayOf(t1.oneOfType([t1.object,t1.func,t1.arrayOf(t1.oneOfType([t1.bool,t1.string,t1.object,t1.func,t1.arrayOf(t1.any)]))])),rehypePlugins:t1.arrayOf(t1.oneOfType([t1.object,t1.func,t1.arrayOf(t1.oneOfType([t1.bool,t1.string,t1.object,t1.func,t1.arrayOf(t1.any)]))])),sourcePos:t1.bool,rawSourcePos:t1.bool,skipHtml:t1.bool,includeElementIndex:t1.bool,transformLinkUri:t1.oneOfType([t1.func,t1.bool]),linkTarget:t1.oneOfType([t1.func,t1.string]),transformImageUri:t1.func,components:t1.object};function Ax(e){const t=z.createContext(null);return[({children:a,value:c})=>b.createElement(t.Provider,{value:c},a),()=>{const a=z.useContext(t);if(a===null)throw new Error(e);return a}]}function B5(e){return Array.isArray(e)?e:[e]}const Ex=()=>{};function mX(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||Ex:r=>{var n;r.key==="Escape"&&(e(r),(n=t.onTrigger)==null||n.call(t))}}function Ur(e,t){return r=>{e?.(r),t?.(r)}}function $x({data:e}){const t=[],r=[],n=e.reduce((a,c,i)=>(c.group?a[c.group]?a[c.group].push(i):a[c.group]=[i]:r.push(i),a),{});return Object.keys(n).forEach(a=>{t.push(...n[a].map(c=>e[c]))}),t.push(...r.map(a=>e[a])),t}function d7(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==b.Fragment:!1}function Tx(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 gX=Object.defineProperty,Ah=Object.getOwnPropertySymbols,zX=Object.prototype.hasOwnProperty,yX=Object.prototype.propertyIsEnumerable,Eh=(e,t,r)=>t in e?gX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$h=(e,t)=>{for(var r in t||(t={}))zX.call(t,r)&&Eh(e,r,t[r]);if(Ah)for(var r of Ah(t))yX.call(t,r)&&Eh(e,r,t[r]);return e};function CX(e){return t=>({WebkitTapHighlightColor:"transparent",[t||"&:focus"]:$h({},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)"]:$h({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)})}function p7(e){return t=>typeof e.primaryShade=="number"?e.primaryShade:e.primaryShade[t||e.colorScheme]}function Jf(e){const t=p7(e);return(r,n,a=!0,c=!0)=>{if(typeof r=="string"&&r.includes(".")){const[o,s]=r.split("."),l=parseInt(s,10);if(o in e.colors&&l>=0&&l<10)return e.colors[o][typeof n=="number"&&!c?n:l]}const i=typeof n=="number"?n:t();return r in e.colors?e.colors[r][i]:a?e.colors[e.primaryColor][i]:r}}function Rx(e){let t="";for(let r=1;r{const a={from:n?.from||e.defaultGradient.from,to:n?.to||e.defaultGradient.to,deg:n?.deg||e.defaultGradient.deg};return`linear-gradient(${a.deg}deg, ${t(a.from,r(),!1)} 0%, ${t(a.to,r(),!1)} 100%)`}}function eu(e){if(typeof e.size=="number")return e.size;const t=e.sizes[e.size];return t!==void 0?t:e.size||e.sizes.md}function bX(e){return t=>`@media (min-width: ${eu({size:t,sizes:e.breakpoints})}px)`}function MX(e){return t=>`@media (max-width: ${eu({size:t,sizes:e.breakpoints})-1}px)`}function xX(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)}function wX(e){let t=e.replace("#","");if(t.length===3){const i=t.split("");t=[i[0],i[0],i[1],i[1],i[2],i[2]].join("")}const r=parseInt(t,16),n=r>>16&255,a=r>>8&255,c=r&255;return{r:n,g:a,b:c,a:1}}function LX(e){const[t,r,n,a]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:r,b:n,a:a||1}}function tu(e){return xX(e)?wX(e):e.startsWith("rgb")?LX(e):{r:0,g:0,b:0,a:1}}function d0(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";const{r,g:n,b:a}=tu(e);return`rgba(${r}, ${n}, ${a}, ${t})`}function SX(e=0){return{position:"absolute",top:e,right:e,left:e,bottom:e}}function kX(e,t){const{r,g:n,b:a,a:c}=tu(e),i=1-t,o=s=>Math.round(s*i);return`rgba(${o(r)}, ${o(n)}, ${o(a)}, ${c})`}function PX(e,t){const{r,g:n,b:a,a:c}=tu(e),i=o=>Math.round(o+(255-o)*t);return`rgba(${i(r)}, ${i(n)}, ${i(a)}, ${c})`}function NX(e){return t=>{if(typeof t=="number")return t;const r=typeof e.defaultRadius=="number"?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||r}}function _X(e,t){if(typeof e=="string"&&e.includes(".")){const[r,n]=e.split("."),a=parseInt(n,10);if(r in t.colors&&a>=0&&a<10)return{isSplittedColor:!0,key:r,shade:a}}return{isSplittedColor:!1}}function OX(e){const t=Jf(e),r=p7(e),n=Fx(e);return({variant:a,color:c,gradient:i,primaryFallback:o})=>{const s=_X(c,e);switch(a){case"light":return{border:"transparent",background:d0(t(c,e.colorScheme==="dark"?8:0,o,!1),e.colorScheme==="dark"?.2:1),color:c==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(c,e.colorScheme==="dark"?2:r("light")),hover:d0(t(c,e.colorScheme==="dark"?7:1,o,!1),e.colorScheme==="dark"?.25:.65)};case"subtle":return{border:"transparent",background:"transparent",color:c==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(c,e.colorScheme==="dark"?2:r("light")),hover:d0(t(c,e.colorScheme==="dark"?8:0,o,!1),e.colorScheme==="dark"?.2:1)};case"outline":return{border:t(c,e.colorScheme==="dark"?5:r("light")),background:"transparent",color:t(c,e.colorScheme==="dark"?5:r("light")),hover:e.colorScheme==="dark"?d0(t(c,5,o,!1),.05):d0(t(c,0,o,!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(c,r()),hover:null};case"transparent":return{border:"transparent",color:c==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(c,e.colorScheme==="dark"?2:r("light")),background:"transparent",hover:null};case"gradient":return{background:n(i),color:e.white,border:"transparent",hover:null};default:{const l=r(),f=s.isSplittedColor?s.shade:l,u=s.isSplittedColor?s.key:c;return{border:"transparent",background:t(u,f,o),color:e.white,hover:t(u,f===9?8:f+1)}}}}}function AX(e){return t=>{const r=p7(e)(t);return e.colors[e.primaryColor][r]}}function EX(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}}function $X(e){return()=>({userSelect:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]})}const k2={fontStyles:vX,themeColor:Jf,focusStyles:CX,linearGradient:HX,radialGradient:VX,smallerThan:MX,largerThan:bX,rgba:d0,size:eu,cover:SX,darken:kX,lighten:PX,radius:NX,variant:OX,primaryShade:p7,hover:EX,gradient:Fx,primaryColor:AX,placeholderStyles:$X};var TX=Object.defineProperty,DX=Object.defineProperties,RX=Object.getOwnPropertyDescriptors,Th=Object.getOwnPropertySymbols,FX=Object.prototype.hasOwnProperty,IX=Object.prototype.propertyIsEnumerable,Dh=(e,t,r)=>t in e?TX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jX=(e,t)=>{for(var r in t||(t={}))FX.call(t,r)&&Dh(e,r,t[r]);if(Th)for(var r of Th(t))IX.call(t,r)&&Dh(e,r,t[r]);return e},BX=(e,t)=>DX(e,RX(t));function Ix(e){return BX(jX({},e),{fn:{fontStyles:k2.fontStyles(e),themeColor:k2.themeColor(e),focusStyles:k2.focusStyles(e),largerThan:k2.largerThan(e),smallerThan:k2.smallerThan(e),radialGradient:k2.radialGradient,linearGradient:k2.linearGradient,gradient:k2.gradient(e),rgba:k2.rgba,size:k2.size,cover:k2.cover,lighten:k2.lighten,darken:k2.darken,primaryShade:k2.primaryShade(e),radius:k2.radius(e),variant:k2.variant(e),hover:k2.hover,primaryColor:k2.primaryColor(e),placeholderStyles:k2.placeholderStyles(e)}})}const WX={dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",dateFormat:"MMMM D, YYYY",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:hX,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 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)",sm:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 10px 15px -5px, rgba(0, 0, 0, 0.04) 0px 7px 7px -5px",md:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px",lg:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 28px 23px -7px, rgba(0, 0, 0, 0.04) 0px 12px 12px -7px",xl:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 36px 28px -7px, rgba(0, 0, 0, 0.04) 0px 17px 17px -7px"},fontSizes:{xs:12,sm:14,md:16,lg:18,xl:20},radius:{xs:2,sm:4,md:8,lg:16,xl:32},spacing:{xs:10,sm:12,md:16,lg:20,xl:24},breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1400},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:34,lineHeight:1.3,fontWeight:void 0},h2:{fontSize:26,lineHeight:1.35,fontWeight:void 0},h3:{fontSize:22,lineHeight:1.4,fontWeight:void 0},h4:{fontSize:18,lineHeight:1.45,fontWeight:void 0},h5:{fontSize:16,lineHeight:1.5,fontWeight:void 0},h6:{fontSize:14,lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(1px)"},datesLocale:"en",globalStyles:void 0,focusRingStyles:{styles:e=>({outlineOffset:2,outline:`2px 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]})}},ru=Ix(WX);function UX(e){if(e.sheet)return e.sheet;for(var t=0;t0?U2(m8,--V3):0,r8--,x2===10&&(r8=1,Dc--),x2}function T3(){return x2=V32||U5(x2)>3?"":" "}function nQ(e,t){for(;--t&&T3()&&!(x2<48||x2>102||x2>57&&x2<65||x2>70&&x2<97););return m7(e,Jt()+(t<6&&D4()==32&&T3()==32))}function js(e){for(;T3();)switch(x2){case e:return V3;case 34:case 39:e!==34&&e!==39&&js(x2);break;case 40:e===41&&js(e);break;case 92:T3();break}return V3}function aQ(e,t){for(;T3()&&e+x2!==47+10;)if(e+x2===42+42&&D4()===47)break;return"/*"+m7(t,V3-1)+"*"+Tc(e===47?e:T3())}function cQ(e){for(;!U5(D4());)T3();return m7(e,V3)}function iQ(e){return Gx(tr("",null,null,null,[""],e=qx(e),0,[0],e))}function tr(e,t,r,n,a,c,i,o,s){for(var l=0,f=0,u=i,d=0,p=0,m=0,v=1,C=1,h=1,g=0,y="",V=a,x=c,H=n,M=y;C;)switch(m=g,g=T3()){case 40:if(m!=108&&U2(M,u-1)==58){Is(M+=q1(er(g),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:M+=er(g);break;case 9:case 10:case 13:case 32:M+=rQ(m);break;case 92:M+=nQ(Jt()-1,7);continue;case 47:switch(D4()){case 42:case 47:at(oQ(aQ(T3(),Jt()),t,r),s);break;default:M+="/"}break;case 123*v:o[l++]=k4(M)*h;case 125*v:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+f:p>0&&k4(M)-u&&at(p>32?Fh(M+";",n,r,u-1):Fh(q1(M," ","")+";",n,r,u-2),s);break;case 59:M+=";";default:if(at(H=Rh(M,t,r,l,f,a,o,y,V=[],x=[],u),c),g===123)if(f===0)tr(M,t,H,H,V,c,u,o,x);else switch(d===99&&U2(M,3)===110?100:d){case 100:case 109:case 115:tr(e,H,H,n&&at(Rh(e,H,H,0,0,a,o,y,a,V=[],u),x),a,x,u,o,n?V:x);break;default:tr(M,H,H,H,[""],x,0,o,x)}}l=f=p=0,v=h=1,y=M="",u=i;break;case 58:u=1+k4(M),p=m;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&tQ()==125)continue}switch(M+=Tc(g),g*v){case 38:h=f>0?1:(M+="\f",-1);break;case 44:o[l++]=(k4(M)-1)*h,h=1;break;case 64:D4()===45&&(M+=er(T3())),d=D4(),f=u=k4(y=M+=cQ(Jt())),g++;break;case 45:m===45&&k4(M)==2&&(v=0)}}return c}function Rh(e,t,r,n,a,c,i,o,s,l,f){for(var u=a-1,d=a===0?c:[""],p=cu(d),m=0,v=0,C=0;m0?d[h]+" "+g:q1(g,/&\f/g,d[h])))&&(s[C++]=y);return Rc(e,t,r,a===0?nu:o,s,l,f)}function oQ(e,t,r){return Rc(e,t,r,jx,Tc(eQ()),W5(e,2,-2),0)}function Fh(e,t,r,n){return Rc(e,t,r,au,W5(e,0,n),W5(e,n+1,-1),n)}function F0(e,t){for(var r="",n=cu(e),a=0;a6)switch(U2(e,t+1)){case 109:if(U2(e,t+4)!==45)break;case 102:return q1(e,/(.+:)(.+)-([^]+)/,"$1"+W1+"$2-$3$1"+qr+(U2(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Is(e,"stretch")?Yx(q1(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(U2(e,t+1)!==115)break;case 6444:switch(U2(e,k4(e)-3-(~Is(e,"!important")&&10))){case 107:return q1(e,":",":"+W1)+e;case 101:return q1(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W1+(U2(e,14)===45?"inline-":"")+"box$3$1"+W1+"$2$3$1"+Q2+"$2box$3")+e}break;case 5936:switch(U2(e,t+11)){case 114:return W1+e+Q2+q1(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W1+e+Q2+q1(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W1+e+Q2+q1(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W1+e+Q2+e+e}return e}var gQ=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case au:t.return=Yx(t.value,t.length);break;case Bx:return F0([_8(t,{value:q1(t.value,"@","@"+W1)})],a);case nu:if(t.length)return JX(t.props,function(c){switch(QX(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return F0([_8(t,{props:[q1(c,/:(read-\w+)/,":"+qr+"$1")]})],a);case"::placeholder":return F0([_8(t,{props:[q1(c,/:(plac\w+)/,":"+W1+"input-$1")]}),_8(t,{props:[q1(c,/:(plac\w+)/,":"+qr+"$1")]}),_8(t,{props:[q1(c,/:(plac\w+)/,Q2+"input-$1")]})],a)}return""})}},zQ=[gQ],Zx=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(v){var C=v.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var a=t.stylisPlugins||zQ,c={},i,o=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var C=v.getAttribute("data-emotion").split(" "),h=1;h=4;++n,a-=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(a){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 NQ={animationIterationCount: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},_Q=/[A-Z]|^ms/g,OQ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tw=function(t){return t.charCodeAt(1)===45},Bh=function(t){return t!=null&&typeof t!="boolean"},xi=uQ(function(e){return tw(e)?e:e.replace(_Q,"-$&").toLowerCase()}),Wh=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(OQ,function(n,a,c){return P4={name:a,styles:c,next:P4},a})}return NQ[t]!==1&&!tw(t)&&typeof r=="number"&&r!==0?r+"px":r};function q5(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 P4={name:r.name,styles:r.styles,next:P4},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)P4={name:n.name,styles:n.styles,next:P4},n=n.next;var a=r.styles+";";return a}return AQ(e,t,r)}case"function":{if(e!==void 0){var c=P4,i=r(e);return P4=c,q5(e,t,i)}break}}if(t==null)return r;var o=t[r];return o!==void 0?o:r}function AQ(e,t,r){var n="";if(Array.isArray(r))for(var a=0;at in e?IQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qQ=(e,t)=>{for(var r in t||(t={}))WQ.call(t,r)&&Yh(e,r,t[r]);if(Gh)for(var r of Gh(t))UQ.call(t,r)&&Yh(e,r,t[r]);return e},GQ=(e,t)=>jQ(e,BQ(t));function YQ({theme:e}){return b.createElement(Kc,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:e.colorScheme==="dark"?"dark":"light"},body:GQ(qQ({},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 ct(e,t,r){Object.keys(t).forEach(n=>{e[`--mantine-${r}-${n}`]=typeof t[n]=="number"?`${t[n]}px`:t[n]})}function ZQ({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}`};ct(t,e.shadows,"shadow"),ct(t,e.fontSizes,"font-size"),ct(t,e.radius,"radius"),ct(t,e.spacing,"spacing"),Object.keys(e.colors).forEach(n=>{e.colors[n].forEach((a,c)=>{t[`--mantine-color-${n}-${c}`]=a})});const r=e.headings.sizes;return Object.keys(r).forEach(n=>{t[`--mantine-${n}-font-size`]=`${r[n].fontSize}px`,t[`--mantine-${n}-line-height`]=`${r[n].lineHeight}`}),b.createElement(Kc,{styles:{":root":t}})}var KQ=Object.defineProperty,XQ=Object.defineProperties,QQ=Object.getOwnPropertyDescriptors,Zh=Object.getOwnPropertySymbols,JQ=Object.prototype.hasOwnProperty,eJ=Object.prototype.propertyIsEnumerable,Kh=(e,t,r)=>t in e?KQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ye=(e,t)=>{for(var r in t||(t={}))JQ.call(t,r)&&Kh(e,r,t[r]);if(Zh)for(var r of Zh(t))eJ.call(t,r)&&Kh(e,r,t[r]);return e},Xh=(e,t)=>XQ(e,QQ(t));function tJ(e,t){if(!t)return e;const r=Object.keys(e).reduce((n,a)=>{if(a==="headings"&&t.headings){const c=t.headings.sizes?Object.keys(e.headings.sizes).reduce((i,o)=>(i[o]=ye(ye({},e.headings.sizes[o]),t.headings.sizes[o]),i),{}):e.headings.sizes;return Xh(ye({},n),{headings:Xh(ye(ye({},e.headings),t.headings),{sizes:c})})}return n[a]=typeof t[a]=="object"?ye(ye({},e[a]),t[a]):typeof t[a]=="number"||typeof t[a]=="boolean"||typeof t[a]=="function"?t[a]:t[a]||e[a],n},{});if(!(r.primaryColor in r.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 r}function rJ(e,t){return Ix(tJ(e,t))}function nw(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}const nJ={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:"1px 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"},"[hidden]":{display:"none"}};function aJ(){return b.createElement(Kc,{styles:nJ})}var cJ=Object.defineProperty,Qh=Object.getOwnPropertySymbols,iJ=Object.prototype.hasOwnProperty,oJ=Object.prototype.propertyIsEnumerable,Jh=(e,t,r)=>t in e?cJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h5=(e,t)=>{for(var r in t||(t={}))iJ.call(t,r)&&Jh(e,r,t[r]);if(Qh)for(var r of Qh(t))oJ.call(t,r)&&Jh(e,r,t[r]);return e};const Gr=z.createContext({theme:ru});function H2(){var e;return((e=z.useContext(Gr))==null?void 0:e.theme)||ru}function sJ(e){const t=H2(),r=n=>{var a,c;return{styles:((a=t.components[n])==null?void 0:a.styles)||{},classNames:((c=t.components[n])==null?void 0:c.classNames)||{}}};return Array.isArray(e)?e.map(r):[r(e)]}function aw(){var e;return(e=z.useContext(Gr))==null?void 0:e.emotionCache}function L1(e,t,r){var n;const a=H2(),c=(n=a.components[e])==null?void 0:n.defaultProps,i=typeof c=="function"?c(a):c;return h5(h5(h5({},t),i),nw(r))}function cw({theme:e,emotionCache:t,withNormalizeCSS:r=!1,withGlobalStyles:n=!1,withCSSVariables:a=!1,inherit:c=!1,children:i}){const o=z.useContext(Gr),s=rJ(ru,c?h5(h5({},o.theme),e):e);return b.createElement(RQ,{theme:s},b.createElement(Gr.Provider,{value:{theme:s,emotionCache:t}},r&&b.createElement(aJ,null),n&&b.createElement(YQ,{theme:s}),a&&b.createElement(ZQ,{theme:s}),typeof s.globalStyles=="function"&&b.createElement(Kc,{styles:s.globalStyles(s)}),i))}cw.displayName="@mantine/core/MantineProvider";const lJ={app:100,modal:200,popover:300,overlay:400,max:9999};function d6(e){return lJ[e]}function fJ(e,t){const r=z.useRef();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map((n,a)=>n===t[a]).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}const uJ=Zx({key:"mantine",prepend:!0});function dJ(){return aw()||uJ}var pJ=Object.defineProperty,ev=Object.getOwnPropertySymbols,mJ=Object.prototype.hasOwnProperty,hJ=Object.prototype.propertyIsEnumerable,tv=(e,t,r)=>t in e?pJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vJ=(e,t)=>{for(var r in t||(t={}))mJ.call(t,r)&&tv(e,r,t[r]);if(ev)for(var r of ev(t))hJ.call(t,r)&&tv(e,r,t[r]);return e};const wi="ref";function gJ(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(!(wi in r))return{args:e,ref:t};t=r[wi];const n=vJ({},r);return delete n[wi],{args:[n],ref:t}}const{cssFactory:zJ}=(()=>{function e(r,n,a){const c=[],i=SQ(r,c,a);return c.length<2?a:i+n(c)}function t(r){const{cache:n}=r,a=(...i)=>{const{ref:o,args:s}=gJ(i),l=lu(s,n.registered);return ew(n,l,!1),`${n.key}-${l.name}${o===void 0?"":` ${o}`}`};return{css:a,cx:(...i)=>e(n.registered,a,Dx(i))}}return{cssFactory:t}})();function iw(){const e=dJ();return fJ(()=>zJ({cache:e}),[e])}function yJ({cx:e,classes:t,context:r,classNames:n,name:a,cache:c}){const i=r.reduce((o,s)=>(Object.keys(s.classNames).forEach(l=>{typeof o[l]!="string"?o[l]=`${s.classNames[l]}`:o[l]=`${o[l]} ${s.classNames[l]}`}),o),{});return Object.keys(t).reduce((o,s)=>(o[s]=e(t[s],i[s],n!=null&&n[s],Array.isArray(a)?a.filter(Boolean).map(l=>`${c?.key||"mantine"}-${l}-${s}`).join(" "):a?`${c?.key||"mantine"}-${a}-${s}`:null),o),{})}var CJ=Object.defineProperty,rv=Object.getOwnPropertySymbols,HJ=Object.prototype.hasOwnProperty,VJ=Object.prototype.propertyIsEnumerable,nv=(e,t,r)=>t in e?CJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Li=(e,t)=>{for(var r in t||(t={}))HJ.call(t,r)&&nv(e,r,t[r]);if(rv)for(var r of rv(t))VJ.call(t,r)&&nv(e,r,t[r]);return e};function bJ(e){return`__mantine-ref-${e||""}`}function av(e,t,r){const n=a=>typeof a=="function"?a(t,r||{}):a||{};return Array.isArray(e)?e.map(a=>n(a.styles)).reduce((a,c)=>(Object.keys(c).forEach(i=>{a[i]?a[i]=Li(Li({},a[i]),c[i]):a[i]=Li({},c[i])}),a),{}):n(e)}function u1(e){const t=typeof e=="function"?e:()=>e;function r(n,a){const c=H2(),i=sJ(a?.name),o=aw(),{css:s,cx:l}=iw(),f=t(c,n,bJ),u=av(a?.styles,c,n),d=av(i,c,n),p=Object.fromEntries(Object.keys(f).map(m=>{const v=l({[s(f[m])]:!a?.unstyled},s(d[m]),s(u[m]));return[m,v]}));return{classes:yJ({cx:l,classes:p,context:i,classNames:a?.classNames,name:a?.name,cache:o}),cx:l,theme:c}}return r}var MJ=Object.defineProperty,xJ=Object.defineProperties,wJ=Object.getOwnPropertyDescriptors,cv=Object.getOwnPropertySymbols,LJ=Object.prototype.hasOwnProperty,SJ=Object.prototype.propertyIsEnumerable,iv=(e,t,r)=>t in e?MJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O8=(e,t)=>{for(var r in t||(t={}))LJ.call(t,r)&&iv(e,r,t[r]);if(cv)for(var r of cv(t))SJ.call(t,r)&&iv(e,r,t[r]);return e},A8=(e,t)=>xJ(e,wJ(t));const E8={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(10px)"},transitionProperty:"transform, opacity"},it={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(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:A8(O8({},E8),{common:{transformOrigin:"center center"}}),"pop-bottom-left":A8(O8({},E8),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":A8(O8({},E8),{common:{transformOrigin:"bottom right"}}),"pop-top-left":A8(O8({},E8),{common:{transformOrigin:"top left"}}),"pop-top-right":A8(O8({},E8),{common:{transformOrigin:"top right"}})},ov=["mousedown","touchstart"];function kJ(e,t,r){const n=z.useRef();return z.useEffect(()=>{const a=c=>{const{target:i}=c??{};if(Array.isArray(r)){const o=i?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(i)&&i.tagName!=="HTML";r.every(l=>!!l&&!c.composedPath().includes(l))&&!o&&e()}else n.current&&!n.current.contains(i)&&e()};return(t||ov).forEach(c=>document.addEventListener(c,a)),()=>{(t||ov).forEach(c=>document.removeEventListener(c,a))}},[n,e,r]),n}function PJ(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function NJ(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function _J(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[n,a]=z.useState(r?t:NJ(e,t)),c=z.useRef();return z.useEffect(()=>{if("matchMedia"in window)return c.current=window.matchMedia(e),a(c.current.matches),PJ(c.current,i=>a(i.matches))},[e]),n}function D3(e,t,r){return Math.min(Math.max(e,t),r)}const fu=typeof document<"u"?z.useLayoutEffect:z.useEffect;function I2(e,t){const r=z.useRef(!1);z.useEffect(()=>()=>{r.current=!1},[]),z.useEffect(()=>{if(r.current)return e();r.current=!0},t)}function uu({opened:e,shouldReturnFocus:t=!0}){const r=z.useRef(),n=()=>{var a;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((a=r.current)==null||a.focus({preventScroll:!0}))};return I2(()=>{let a=-1;const c=i=>{i.key==="Tab"&&window.clearTimeout(a)};return document.addEventListener("keydown",c),e?r.current=document.activeElement:t&&(a=window.setTimeout(n,10)),()=>{window.clearTimeout(a),document.removeEventListener("keydown",c)}},[e,t]),n}const OJ=/input|select|textarea|button|object/,ow="a, input, select, textarea, button, object, [tabindex]";function AJ(e){return e.style.display==="none"}function EJ(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(AJ(r))return!1;r=r.parentNode}return!0}function sw(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function Ws(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(sw(e));return(OJ.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&EJ(e)}function lw(e){const t=sw(e);return(Number.isNaN(t)||t>=0)&&Ws(e)}function $J(e){return Array.from(e.querySelectorAll(ow)).filter(lw)}function TJ(e,t){const r=$J(e);if(!r.length){t.preventDefault();return}const n=r[t.shiftKey?0:r.length-1],a=e.getRootNode();if(!(n===a.activeElement||e===a.activeElement))return;t.preventDefault();const i=r[t.shiftKey?r.length-1:0];i&&i.focus()}function DJ(e,t="body > :not(script)"){const r=Array.from(document.querySelectorAll(t)).map(n=>{var a;if((a=n?.shadowRoot)!=null&&a.contains(e)||n.contains(e))return;const c=n.getAttribute("aria-hidden");return(c===null||c==="false")&&n.setAttribute("aria-hidden","true"),{node:n,ariaHidden:c}});return()=>{r.forEach(n=>{n&&(n.ariaHidden===null?n.node.removeAttribute("aria-hidden"):n.node.setAttribute("aria-hidden",n.ariaHidden))})}}function du(e=!0){const t=z.useRef(),r=z.useRef(null),n=z.useCallback(a=>{if(e&&a!==null&&(r.current=DJ(a),t.current!==a))if(a){const c=()=>{let i=a.querySelector("[data-autofocus]");if(!i){const o=Array.from(a.querySelectorAll(ow));i=o.find(lw)||o.find(Ws)||null,!i&&Ws(a)&&(i=a)}i&&i.focus({preventScroll:!0})};setTimeout(()=>{a.getRootNode()&&c()}),t.current=a}else t.current=null},[e]);return z.useEffect(()=>{if(!e)return;const a=c=>{c.key==="Tab"&&t.current&&TJ(t.current,c)};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a),r.current&&r.current()}},[e]),n}const RJ=()=>`mantine-${Math.random().toString(36).slice(2,11)}`,FJ=b["useId".toString()]||(()=>{});function IJ(){const[e,t]=z.useState("");return fu(()=>{t(RJ())},[]),e}function jJ(){const e=FJ();return e?`mantine-${e.replace(/:/g,"")}`:""}function V4(e){return typeof e=="string"?e:jJ()||IJ()}function BJ(e,t){const[r,n]=z.useState(!1),a=z.useRef(),c=z.useRef();z.useEffect(()=>{c.current=e},[e]);const i=()=>{n(l=>(!l&&!a.current&&(a.current=window.setInterval(c.current,t)),!0))},o=()=>{n(!1),window.clearInterval(a.current),a.current=void 0};return{start:i,stop:o,toggle:()=>{r?o():i()},active:r}}function Us(e,t,r){z.useEffect(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[e,t])}function fw(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function WJ(...e){return t=>{e.forEach(r=>fw(r,t))}}function n3(...e){return z.useCallback(WJ(...e),e)}const uw=e=>({x:D3(e.x,0,1),y:D3(e.y,0,1)});function pu(e,t,r="ltr"){const n=z.useRef(),a=z.useRef(!1),c=z.useRef(!1),i=z.useRef(0),[o,s]=z.useState(!1);return z.useEffect(()=>{a.current=!0},[]),z.useEffect(()=>{const l=({x:g,y})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(a.current&&n.current){n.current.style.userSelect="none";const V=n.current.getBoundingClientRect();if(V.width&&V.height){const x=D3((g-V.left)/V.width,0,1);e({x:r==="ltr"?x:1-x,y:D3((y-V.top)/V.height,0,1)})}}})},f=()=>{document.addEventListener("mousemove",v),document.addEventListener("mouseup",p),document.addEventListener("touchmove",h),document.addEventListener("touchend",p)},u=()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",p),document.removeEventListener("touchmove",h),document.removeEventListener("touchend",p)},d=()=>{!c.current&&a.current&&(c.current=!0,typeof t?.onScrubStart=="function"&&t.onScrubStart(),s(!0),f())},p=()=>{c.current&&a.current&&(c.current=!1,s(!1),u(),setTimeout(()=>{typeof t?.onScrubEnd=="function"&&t.onScrubEnd()},0))},m=g=>{d(),g.preventDefault(),v(g)},v=g=>l({x:g.clientX,y:g.clientY}),C=g=>{g.cancelable&&g.preventDefault(),d(),h(g)},h=g=>{g.cancelable&&g.preventDefault(),l({x:g.changedTouches[0].clientX,y:g.changedTouches[0].clientY})};return n.current.addEventListener("mousedown",m),n.current.addEventListener("touchstart",C,{passive:!1}),()=>{n.current&&(n.current.removeEventListener("mousedown",m),n.current.removeEventListener("touchstart",C))}},[r,e]),{ref:n,active:o}}function F3({value:e,defaultValue:t,finalValue:r,onChange:n=()=>{}}){const[a,c]=z.useState(t!==void 0?t:r),i=o=>{c(o),n?.(o)};return e!==void 0?[e,n,!0]:[a,i,!1]}function dw(e,t){return _J("(prefers-reduced-motion: reduce)",e,t)}const UJ=e=>e<.5?2*e*e:-1+(4-2*e)*e,qJ=({axis:e,target:t,parent:r,alignment:n,offset:a,isList:c})=>{if(!t||!r&&typeof document>"u")return 0;const i=!!r,s=(r||document.body).getBoundingClientRect(),l=t.getBoundingClientRect(),f=u=>l[u]-s[u];if(e==="y"){const u=f("top");if(u===0)return 0;if(n==="start"){const p=u-a;return p<=l.height*(c?0:1)||!c?p:0}const d=i?s.height:window.innerHeight;if(n==="end"){const p=u+a-d+l.height;return p>=-l.height*(c?0:1)||!c?p:0}return n==="center"?u-d/2+l.height/2:0}if(e==="x"){const u=f("left");if(u===0)return 0;if(n==="start"){const p=u-a;return p<=l.width||!c?p:0}const d=i?s.width:window.innerWidth;if(n==="end"){const p=u+a-d+l.width;return p>=-l.width||!c?p:0}return n==="center"?u-d/2+l.width/2:0}return 0},GJ=({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:a}=document;return n[r]+a[r]},YJ=({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:a,documentElement:c}=document;a[n]=r,c[n]=r}};function pw({duration:e=1250,axis:t="y",onScrollFinish:r,easing:n=UJ,offset:a=0,cancelable:c=!0,isList:i=!1}={}){const o=z.useRef(0),s=z.useRef(0),l=z.useRef(!1),f=z.useRef(null),u=z.useRef(null),d=dw(),p=()=>{o.current&&cancelAnimationFrame(o.current)},m=z.useCallback(({alignment:C="start"}={})=>{var h;l.current=!1,o.current&&p();const g=(h=GJ({parent:f.current,axis:t}))!=null?h:0,y=qJ({parent:f.current,target:u.current,axis:t,alignment:C,offset:a,isList:i})-(f.current?0:g);function V(){s.current===0&&(s.current=performance.now());const H=performance.now()-s.current,M=d||e===0?1:H/e,w=g+y*n(M);YJ({parent:f.current,axis:t,distance:w}),!l.current&&M<1?o.current=requestAnimationFrame(V):(typeof r=="function"&&r(),s.current=0,o.current=0,p())}V()},[t,e,n,i,a,r,d]),v=()=>{c&&(l.current=!0)};return Us("wheel",v,{passive:!0}),Us("touchmove",v,{passive:!0}),z.useEffect(()=>p,[]),{scrollableRef:f,targetRef:u,scrollIntoView:m,cancel:p}}function ZJ(){if(typeof window>"u"||typeof document>"u")return 0;const e=parseInt(window.getComputedStyle(document.body).paddingRight,10),t=window.innerWidth-document.documentElement.clientWidth;return e+t}const KJ=({disableBodyPadding:e})=>{const t=e?null:ZJ();return`body {
+ --removed-scroll-width: ${t}px;
+ touch-action: none;
+ overflow: hidden !important;
+ position: relative !important;
+ ${t?"padding-right: var(--removed-scroll-width) !important;":""}
+ `};function XJ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function QJ(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}function JJ(){const e=document.createElement("style");return e.type="text/css",e.setAttribute("mantine-scroll-lock",""),e}function mw(e,t={disableBodyPadding:!1}){const[r,n]=z.useState(e||!1),a=z.useRef(0),{disableBodyPadding:c}=t,i=z.useRef(null),o=()=>{a.current=window.scrollY;const l=KJ({disableBodyPadding:c}),f=JJ();XJ(f,l),QJ(f),i.current=f},s=()=>{i?.current&&(i.current.parentNode.removeChild(i.current),i.current=null)};return z.useEffect(()=>(r?o():s(),s),[r]),z.useEffect(()=>{e!==void 0&&n(e)},[e]),z.useEffect(()=>{e===void 0&&typeof window<"u"&&window.document.body.style.overflow==="hidden"&&n(!0)},[n]),[r,n]}function e11(){const{userAgent:e}=window.navigator,t=/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i,r=/(Win32)|(Win64)|(Windows)|(WinCE)/i,n=/(iPhone)|(iPad)|(iPod)/i;return t.test(e)?"macos":n.test(e)?"ios":r.test(e)?"windows":/Android/i.test(e)?"android":/Linux/i.test(e)?"linux":"undetermined"}function t11(){return typeof window<"u"?e11():"undetermined"}function r11(e,t){const[r,n]=z.useState(e),a=()=>{var o;r||(n(!0),(o=t?.onOpen)==null||o.call(t))},c=()=>{var o;r&&(n(!1),(o=t?.onClose)==null||o.call(t))};return[r,{open:a,close:c,toggle:()=>{r?c():a()}}]}function n11(){const[e,t]=z.useState(!1);fu(()=>{t(typeof window<"u"&&"EyeDropper"in window)},[]);const r=z.useCallback((n={})=>{if(e)return new window.EyeDropper().open(n)},[e]);return{supported:e,open:r}}function a11(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function $6(e){return typeof e!="string"?"":e.charAt(0).toUpperCase()+e.slice(1)}var sv=Object.getOwnPropertySymbols,c11=Object.prototype.hasOwnProperty,i11=Object.prototype.propertyIsEnumerable,o11=(e,t)=>{var r={};for(var n in e)c11.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&sv)for(var n of sv(e))t.indexOf(n)<0&&i11.call(e,n)&&(r[n]=e[n]);return r};function p6(e){const t=e,{m:r,mx:n,my:a,mt:c,mb:i,ml:o,mr:s,p:l,px:f,py:u,pt:d,pb:p,pl:m,pr:v,bg:C,c:h,opacity:g,ff:y,fz:V,fw:x,lts:H,ta:M,lh:w,fs:P,tt:N,td:O,w:E,miw:T,maw:_,h:R,mih:k,mah:F,bgsz:$,bgp:j,bgr:I,bga:L,pos:S,top:Z,left:n1,bottom:h1,right:K,inset:c1,display:H1}=t,l1=o11(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:nw({m:r,mx:n,my:a,mt:c,mb:i,ml:o,mr:s,p:l,px:f,py:u,pt:d,pb:p,pl:m,pr:v,bg:C,c:h,opacity:g,ff:y,fz:V,fw:x,lts:H,ta:M,lh:w,fs:P,tt:N,td:O,w:E,miw:T,maw:_,h:R,mih:k,mah:F,bgsz:$,bgp:j,bgr:I,bga:L,pos:S,top:Z,left:n1,bottom:h1,right:K,inset:c1,display:H1}),rest:l1}}function s11(e,t){const r=Object.keys(e).filter(n=>n!=="base").sort((n,a)=>t.fn.size({size:n,sizes:t.breakpoints})-t.fn.size({size:a,sizes:t.breakpoints}));return"base"in e?["base",...r]:r}function l11({value:e,theme:t,getValue:r,property:n}){if(e==null)return;if(typeof e=="object")return s11(e,t).reduce((i,o)=>{if(o==="base"&&e.base!==void 0){const l=r(e.base,t);return Array.isArray(n)?(n.forEach(f=>{i[f]=l}),i):(i[n]=l,i)}const s=r(e[o],t);return Array.isArray(n)?(i[t.fn.largerThan(o)]={},n.forEach(l=>{i[t.fn.largerThan(o)][l]=s}),i):(i[t.fn.largerThan(o)]={[n]:s},i)},{});const a=r(e,t);return Array.isArray(n)?n.reduce((c,i)=>(c[i]=a,c),{}):{[n]:a}}function f11(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 u11(e){return e}function d11(e,t){return t.fn.size({size:e,sizes:t.fontSizes})}const p11=["-xs","-sm","-md","-lg","-xl"];function m11(e,t){return p11.includes(e)?t.fn.size({size:e.replace("-",""),sizes:t.spacing})*-1:t.fn.size({size:e,sizes:t.spacing})}const h11={color:f11,default:u11,fontSize:d11,spacing:m11},v11={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:"default",property:"opacity"},ff:{type:"default",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"default",property:"fontWeight"},lts:{type:"default",property:"letterSpacing"},ta:{type:"default",property:"textAlign"},lh:{type:"default",property:"lineHeight"},fs:{type:"default",property:"fontStyle"},tt:{type:"default",property:"textTransform"},td:{type:"default",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:"default",property:"background-size"},bgp:{type:"default",property:"background-position"},bgr:{type:"default",property:"background-repeat"},bga:{type:"default",property:"background-attachment"},pos:{type:"default",property:"position"},top:{type:"default",property:"top"},left:{type:"default",property:"left"},bottom:{type:"default",property:"bottom"},right:{type:"default",property:"right"},inset:{type:"default",property:"inset"},display:{type:"default",property:"display"}};var g11=Object.defineProperty,lv=Object.getOwnPropertySymbols,z11=Object.prototype.hasOwnProperty,y11=Object.prototype.propertyIsEnumerable,fv=(e,t,r)=>t in e?g11(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uv=(e,t)=>{for(var r in t||(t={}))z11.call(t,r)&&fv(e,r,t[r]);if(lv)for(var r of lv(t))y11.call(t,r)&&fv(e,r,t[r]);return e};function qs(e,t,r=v11){return Object.keys(r).reduce((a,c)=>(c in e&&e[c]!==void 0&&a.push(l11({value:e[c],getValue:h11[r[c].type],property:r[c].property,theme:t})),a),[]).reduce((a,c)=>(Object.keys(c).forEach(i=>{typeof c[i]=="object"&&c[i]!==null&&i in a?a[i]=uv(uv({},a[i]),c[i]):a[i]=c[i]}),a),{})}function dv(e,t){return typeof e=="function"?e(t):e}function C11(e,t,r){const n=H2(),{css:a,cx:c}=iw();return Array.isArray(e)?c(r,a(qs(t,n)),e.map(i=>a(dv(i,n)))):c(r,a(dv(e,n)),a(qs(t,n)))}var H11=Object.defineProperty,Yr=Object.getOwnPropertySymbols,hw=Object.prototype.hasOwnProperty,vw=Object.prototype.propertyIsEnumerable,pv=(e,t,r)=>t in e?H11(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V11=(e,t)=>{for(var r in t||(t={}))hw.call(t,r)&&pv(e,r,t[r]);if(Yr)for(var r of Yr(t))vw.call(t,r)&&pv(e,r,t[r]);return e},b11=(e,t)=>{var r={};for(var n in e)hw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Yr)for(var n of Yr(e))t.indexOf(n)<0&&vw.call(e,n)&&(r[n]=e[n]);return r};const gw=z.forwardRef((e,t)=>{var r=e,{className:n,component:a,style:c,sx:i}=r,o=b11(r,["className","component","style","sx"]);const{systemStyles:s,rest:l}=p6(o),f=a||"div";return b.createElement(f,V11({ref:t,className:C11(i,s,n),style:c},l))});gw.displayName="@mantine/core/Box";const y1=gw;var M11=Object.defineProperty,x11=Object.defineProperties,w11=Object.getOwnPropertyDescriptors,mv=Object.getOwnPropertySymbols,L11=Object.prototype.hasOwnProperty,S11=Object.prototype.propertyIsEnumerable,hv=(e,t,r)=>t in e?M11(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vv=(e,t)=>{for(var r in t||(t={}))L11.call(t,r)&&hv(e,r,t[r]);if(mv)for(var r of mv(t))S11.call(t,r)&&hv(e,r,t[r]);return e},k11=(e,t)=>x11(e,w11(t)),P11=u1(e=>({root:k11(vv(vv({},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"})}));const N11=P11;var _11=Object.defineProperty,Zr=Object.getOwnPropertySymbols,zw=Object.prototype.hasOwnProperty,yw=Object.prototype.propertyIsEnumerable,gv=(e,t,r)=>t in e?_11(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O11=(e,t)=>{for(var r in t||(t={}))zw.call(t,r)&&gv(e,r,t[r]);if(Zr)for(var r of Zr(t))yw.call(t,r)&&gv(e,r,t[r]);return e},A11=(e,t)=>{var r={};for(var n in e)zw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Zr)for(var n of Zr(e))t.indexOf(n)<0&&yw.call(e,n)&&(r[n]=e[n]);return r};const Cw=z.forwardRef((e,t)=>{const r=L1("UnstyledButton",{},e),{className:n,component:a="button",unstyled:c}=r,i=A11(r,["className","component","unstyled"]),{classes:o,cx:s}=N11(null,{name:"UnstyledButton",unstyled:c});return b.createElement(y1,O11({component:a,ref:t,className:s(o.root,n),type:a==="button"?"button":void 0},i))});Cw.displayName="@mantine/core/UnstyledButton";const h7=Cw;var E11=Object.defineProperty,$11=Object.defineProperties,T11=Object.getOwnPropertyDescriptors,zv=Object.getOwnPropertySymbols,D11=Object.prototype.hasOwnProperty,R11=Object.prototype.propertyIsEnumerable,yv=(e,t,r)=>t in e?E11(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hw=(e,t)=>{for(var r in t||(t={}))D11.call(t,r)&&yv(e,r,t[r]);if(zv)for(var r of zv(t))R11.call(t,r)&&yv(e,r,t[r]);return e},F11=(e,t)=>$11(e,T11(t));const Q8={xs:18,sm:22,md:28,lg:34,xl:44};function I11({variant:e,theme:t,color:r,gradient:n}){const a=t.fn.variant({color:r,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:a.background,color:a.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:Hw({border:`1px solid ${a.border}`,backgroundColor:a.background,color:a.color},t.fn.hover({backgroundColor:a.hover}))}var j11=u1((e,{color:t,size:r,radius:n,variant:a,gradient:c})=>({root:F11(Hw({},I11({variant:a,theme:e,color:t,gradient:c})),{position:"relative",height:e.fn.size({size:r,sizes:Q8}),minHeight:e.fn.size({size:r,sizes:Q8}),width:e.fn.size({size:r,sizes:Q8}),minWidth:e.fn.size({size:r,sizes:Q8}),borderRadius:e.fn.radius(n),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center","&:active":e.activeStyles,"&:disabled, &[data-disabled]":{color:e.colors.gray[e.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:a==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),borderColor:a==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}})}));const B11=j11;var W11=Object.defineProperty,Kr=Object.getOwnPropertySymbols,Vw=Object.prototype.hasOwnProperty,bw=Object.prototype.propertyIsEnumerable,Cv=(e,t,r)=>t in e?W11(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U11=(e,t)=>{for(var r in t||(t={}))Vw.call(t,r)&&Cv(e,r,t[r]);if(Kr)for(var r of Kr(t))bw.call(t,r)&&Cv(e,r,t[r]);return e},q11=(e,t)=>{var r={};for(var n in e)Vw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Kr)for(var n of Kr(e))t.indexOf(n)<0&&bw.call(e,n)&&(r[n]=e[n]);return r};function G11(e){var t=e,{size:r,color:n}=t,a=q11(t,["size","color"]);return b.createElement("svg",U11({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,width:`${r}px`},a),b.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},b.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"}),b.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"})),b.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},b.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"}),b.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"})),b.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},b.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),b.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),b.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},b.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"}),b.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"})),b.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},b.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"}),b.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 Y11=Object.defineProperty,Xr=Object.getOwnPropertySymbols,Mw=Object.prototype.hasOwnProperty,xw=Object.prototype.propertyIsEnumerable,Hv=(e,t,r)=>t in e?Y11(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z11=(e,t)=>{for(var r in t||(t={}))Mw.call(t,r)&&Hv(e,r,t[r]);if(Xr)for(var r of Xr(t))xw.call(t,r)&&Hv(e,r,t[r]);return e},K11=(e,t)=>{var r={};for(var n in e)Mw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xr)for(var n of Xr(e))t.indexOf(n)<0&&xw.call(e,n)&&(r[n]=e[n]);return r};function X11(e){var t=e,{size:r,color:n}=t,a=K11(t,["size","color"]);return b.createElement("svg",Z11({width:`${r}px`,height:`${r}px`,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n},a),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},b.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),b.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},b.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var Q11=Object.defineProperty,Qr=Object.getOwnPropertySymbols,ww=Object.prototype.hasOwnProperty,Lw=Object.prototype.propertyIsEnumerable,Vv=(e,t,r)=>t in e?Q11(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J11=(e,t)=>{for(var r in t||(t={}))ww.call(t,r)&&Vv(e,r,t[r]);if(Qr)for(var r of Qr(t))Lw.call(t,r)&&Vv(e,r,t[r]);return e},e21=(e,t)=>{var r={};for(var n in e)ww.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qr)for(var n of Qr(e))t.indexOf(n)<0&&Lw.call(e,n)&&(r[n]=e[n]);return r};function t21(e){var t=e,{size:r,color:n}=t,a=e21(t,["size","color"]);return b.createElement("svg",J11({width:`${r}px`,height:`${r/4}px`,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n},a),b.createElement("circle",{cx:"15",cy:"15",r:"15"},b.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),b.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),b.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},b.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),b.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),b.createElement("circle",{cx:"105",cy:"15",r:"15"},b.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),b.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var r21=Object.defineProperty,Jr=Object.getOwnPropertySymbols,Sw=Object.prototype.hasOwnProperty,kw=Object.prototype.propertyIsEnumerable,bv=(e,t,r)=>t in e?r21(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,n21=(e,t)=>{for(var r in t||(t={}))Sw.call(t,r)&&bv(e,r,t[r]);if(Jr)for(var r of Jr(t))kw.call(t,r)&&bv(e,r,t[r]);return e},a21=(e,t)=>{var r={};for(var n in e)Sw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Jr)for(var n of Jr(e))t.indexOf(n)<0&&kw.call(e,n)&&(r[n]=e[n]);return r};const Si={bars:G11,oval:X11,dots:t21},c21={xs:18,sm:22,md:36,lg:44,xl:58},i21={size:"md"};function mu(e){const t=L1("Loader",i21,e),{size:r,color:n,variant:a}=t,c=a21(t,["size","color","variant"]),i=H2(),o=a in Si?a:i.loader;return b.createElement(y1,n21({role:"presentation",component:Si[o]||Si.bars,size:i.fn.size({size:r,sizes:c21}),color:i.fn.variant({variant:"filled",primaryFallback:!1,color:n||i.primaryColor}).background},c))}mu.displayName="@mantine/core/Loader";var o21=Object.defineProperty,en=Object.getOwnPropertySymbols,Pw=Object.prototype.hasOwnProperty,Nw=Object.prototype.propertyIsEnumerable,Mv=(e,t,r)=>t in e?o21(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xv=(e,t)=>{for(var r in t||(t={}))Pw.call(t,r)&&Mv(e,r,t[r]);if(en)for(var r of en(t))Nw.call(t,r)&&Mv(e,r,t[r]);return e},s21=(e,t)=>{var r={};for(var n in e)Pw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&en)for(var n of en(e))t.indexOf(n)<0&&Nw.call(e,n)&&(r[n]=e[n]);return r};const l21={color:"gray",size:"md",variant:"subtle",loading:!1},_w=z.forwardRef((e,t)=>{const r=L1("ActionIcon",l21,e),{className:n,color:a,children:c,radius:i,size:o,variant:s,gradient:l,disabled:f,loaderProps:u,loading:d,unstyled:p}=r,m=s21(r,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled"]),{classes:v,cx:C,theme:h}=B11({size:o,radius:i,color:a,variant:s,gradient:l},{name:"ActionIcon",unstyled:p}),g=h.fn.variant({color:a,variant:s}),y=b.createElement(mu,xv({color:g.color,size:h.fn.size({size:o,sizes:Q8})-12},u));return b.createElement(h7,xv({className:C(v.root,n),ref:t,disabled:f,"data-disabled":f||void 0,"data-loading":d||void 0,unstyled:p},m),d?y:c)});_w.displayName="@mantine/core/ActionIcon";const n8=_w;function Ow(e){const{children:t,target:r,className:n}=L1("Portal",{},e),a=H2(),[c,i]=z.useState(!1),o=z.useRef();return fu(()=>(i(!0),o.current=r?typeof r=="string"?document.querySelector(r):r:document.createElement("div"),r||document.body.appendChild(o.current),()=>{!r&&document.body.removeChild(o.current)}),[r]),c?Hc.createPortal(b.createElement("div",{className:n,dir:a.dir},t),o.current):null}Ow.displayName="@mantine/core/Portal";var f21=Object.defineProperty,tn=Object.getOwnPropertySymbols,Aw=Object.prototype.hasOwnProperty,Ew=Object.prototype.propertyIsEnumerable,wv=(e,t,r)=>t in e?f21(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u21=(e,t)=>{for(var r in t||(t={}))Aw.call(t,r)&&wv(e,r,t[r]);if(tn)for(var r of tn(t))Ew.call(t,r)&&wv(e,r,t[r]);return e},d21=(e,t)=>{var r={};for(var n in e)Aw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&tn)for(var n of tn(e))t.indexOf(n)<0&&Ew.call(e,n)&&(r[n]=e[n]);return r};function h8(e){var t=e,{withinPortal:r=!0,children:n}=t,a=d21(t,["withinPortal","children"]);return r?b.createElement(Ow,u21({},a),n):b.createElement(b.Fragment,null,n)}h8.displayName="@mantine/core/OptionalPortal";var p21=Object.defineProperty,Lv=Object.getOwnPropertySymbols,m21=Object.prototype.hasOwnProperty,h21=Object.prototype.propertyIsEnumerable,Sv=(e,t,r)=>t in e?p21(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v21=(e,t)=>{for(var r in t||(t={}))m21.call(t,r)&&Sv(e,r,t[r]);if(Lv)for(var r of Lv(t))h21.call(t,r)&&Sv(e,r,t[r]);return e};function $w(e){return b.createElement("svg",v21({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),b.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"}))}$w.displayName="@mantine/core/CloseIcon";var g21=Object.defineProperty,rn=Object.getOwnPropertySymbols,Tw=Object.prototype.hasOwnProperty,Dw=Object.prototype.propertyIsEnumerable,kv=(e,t,r)=>t in e?g21(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z21=(e,t)=>{for(var r in t||(t={}))Tw.call(t,r)&&kv(e,r,t[r]);if(rn)for(var r of rn(t))Dw.call(t,r)&&kv(e,r,t[r]);return e},y21=(e,t)=>{var r={};for(var n in e)Tw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&rn)for(var n of rn(e))t.indexOf(n)<0&&Dw.call(e,n)&&(r[n]=e[n]);return r};const C21={xs:12,sm:14,md:16,lg:20,xl:24},H21={size:"md"},Rw=z.forwardRef((e,t)=>{const r=L1("CloseButton",H21,e),{iconSize:n,size:a="md"}=r,c=y21(r,["iconSize","size"]),i=H2(),o=n||i.fn.size({size:a,sizes:C21});return b.createElement(n8,z21({size:a,ref:t},c),b.createElement($w,{width:o,height:o}))});Rw.displayName="@mantine/core/CloseButton";const v8=Rw;var V21=Object.defineProperty,b21=Object.defineProperties,M21=Object.getOwnPropertyDescriptors,Pv=Object.getOwnPropertySymbols,x21=Object.prototype.hasOwnProperty,w21=Object.prototype.propertyIsEnumerable,Nv=(e,t,r)=>t in e?V21(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$8=(e,t)=>{for(var r in t||(t={}))x21.call(t,r)&&Nv(e,r,t[r]);if(Pv)for(var r of Pv(t))w21.call(t,r)&&Nv(e,r,t[r]);return e},L21=(e,t)=>b21(e,M21(t));function S21({underline:e,strikethrough:t}){const r=[];return e&&r.push("underline"),t&&r.push("line-through"),r.length>0?r.join(" "):"none"}function k21({theme:e,color:t,variant:r}){return t==="dimmed"?e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]:typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?e.fn.variant({variant:"filled",color:t}).background:r==="link"?e.colors[e.primaryColor][e.colorScheme==="dark"?4:7]:t||"inherit"}function P21(e){return typeof e=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}function N21(e){return e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:null}var _21=u1((e,{color:t,variant:r,size:n,lineClamp:a,truncate:c,inline:i,inherit:o,underline:s,gradient:l,weight:f,transform:u,align:d,strikethrough:p,italic:m})=>{const v=e.fn.variant({variant:"gradient",gradient:l});return{root:$8(L21($8($8($8($8({},e.fn.fontStyles()),e.fn.focusStyles()),P21(a)),N21(c)),{color:k21({color:t,theme:e,variant:r}),fontFamily:o?"inherit":e.fontFamily,fontSize:o||n===void 0?"inherit":e.fn.size({size:n,sizes:e.fontSizes}),lineHeight:o?"inherit":i?1:e.lineHeight,textDecoration:S21({underline:s,strikethrough:p}),WebkitTapHighlightColor:"transparent",fontWeight:o?"inherit":f,textTransform:u,textAlign:d,fontStyle:m?"italic":void 0}),e.fn.hover(r==="link"&&s===void 0?{textDecoration:"underline"}:void 0)),gradient:{backgroundImage:v.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});const O21=_21;var A21=Object.defineProperty,nn=Object.getOwnPropertySymbols,Fw=Object.prototype.hasOwnProperty,Iw=Object.prototype.propertyIsEnumerable,_v=(e,t,r)=>t in e?A21(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E21=(e,t)=>{for(var r in t||(t={}))Fw.call(t,r)&&_v(e,r,t[r]);if(nn)for(var r of nn(t))Iw.call(t,r)&&_v(e,r,t[r]);return e},$21=(e,t)=>{var r={};for(var n in e)Fw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&nn)for(var n of nn(e))t.indexOf(n)<0&&Iw.call(e,n)&&(r[n]=e[n]);return r};const T21={variant:"text"},jw=z.forwardRef((e,t)=>{const r=L1("Text",T21,e),{className:n,size:a,weight:c,transform:i,color:o,align:s,variant:l,lineClamp:f,truncate:u,gradient:d,inline:p,inherit:m,underline:v,strikethrough:C,italic:h,classNames:g,styles:y,unstyled:V,span:x}=r,H=$21(r,["className","size","weight","transform","color","align","variant","lineClamp","truncate","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span"]),{classes:M,cx:w}=O21({variant:l,color:o,size:a,lineClamp:f,truncate:u,inline:p,inherit:m,underline:v,strikethrough:C,italic:h,weight:c,transform:i,align:s,gradient:d},{unstyled:V,name:"Text"});return b.createElement(y1,E21({ref:t,className:w(M.root,{[M.gradient]:l==="gradient"},n),component:x?"span":"div"},H))});jw.displayName="@mantine/core/Text";const Y1=jw,ot={xs:1,sm:2,md:3,lg:4,xl:5};function st(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 D21=u1((e,{size:t,variant:r,color:n})=>({root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:1,borderTop:`${e.fn.size({size:t,sizes:ot})}px ${r} ${st(e,n)}`,marginRight:e.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${e.fn.size({size:t,sizes:ot})}px ${r} ${st(e,n)}`,marginLeft:e.spacing.xs}},labelDefaultStyles:{color:n==="dark"?e.colors.dark[1]:e.fn.themeColor(n,e.colorScheme==="dark"?5:e.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:e.fn.size({size:t,sizes:ot}),borderTopColor:st(e,n),borderTopStyle:r,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:e.fn.size({size:t,sizes:ot}),borderLeftColor:st(e,n),borderLeftStyle:r}}));const R21=D21;var F21=Object.defineProperty,I21=Object.defineProperties,j21=Object.getOwnPropertyDescriptors,an=Object.getOwnPropertySymbols,Bw=Object.prototype.hasOwnProperty,Ww=Object.prototype.propertyIsEnumerable,Ov=(e,t,r)=>t in e?F21(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Av=(e,t)=>{for(var r in t||(t={}))Bw.call(t,r)&&Ov(e,r,t[r]);if(an)for(var r of an(t))Ww.call(t,r)&&Ov(e,r,t[r]);return e},B21=(e,t)=>I21(e,j21(t)),W21=(e,t)=>{var r={};for(var n in e)Bw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&an)for(var n of an(e))t.indexOf(n)<0&&Ww.call(e,n)&&(r[n]=e[n]);return r};const U21={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},K4=z.forwardRef((e,t)=>{const r=L1("Divider",U21,e),{className:n,color:a,orientation:c,size:i,label:o,labelPosition:s,labelProps:l,variant:f,styles:u,classNames:d,unstyled:p}=r,m=W21(r,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:v,cx:C}=R21({color:a,size:i,variant:f},{classNames:d,styles:u,unstyled:p,name:"Divider"}),h=c==="vertical",g=c==="horizontal",y=!!o&&g,V=!l?.color;return b.createElement(y1,Av({ref:t,className:C(v.root,{[v.vertical]:h,[v.horizontal]:g,[v.withLabel]:y},n),role:"separator"},m),y&&b.createElement(Y1,B21(Av({},l),{size:l?.size||"xs",sx:{marginTop:2},className:C(v.label,v[s],{[v.labelDefaultStyles]:V})}),o))});K4.displayName="@mantine/core/Divider";var q21=Object.defineProperty,G21=Object.defineProperties,Y21=Object.getOwnPropertyDescriptors,Ev=Object.getOwnPropertySymbols,Z21=Object.prototype.hasOwnProperty,K21=Object.prototype.propertyIsEnumerable,$v=(e,t,r)=>t in e?q21(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tv=(e,t)=>{for(var r in t||(t={}))Z21.call(t,r)&&$v(e,r,t[r]);if(Ev)for(var r of Ev(t))K21.call(t,r)&&$v(e,r,t[r]);return e},X21=(e,t)=>G21(e,Y21(t)),Q21=u1((e,{size:t})=>({item:X21(Tv({},e.fn.fontStyles()),{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`,cursor:"pointer",fontSize:e.fn.size({size:t,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]":Tv({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:e.fn.size({size:t,sizes:e.spacing})/2,paddingBottom:e.fn.size({size:t,sizes:e.spacing})/2,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`},separatorLabel:{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}}));const J21=Q21;var e31=Object.defineProperty,Dv=Object.getOwnPropertySymbols,t31=Object.prototype.hasOwnProperty,r31=Object.prototype.propertyIsEnumerable,Rv=(e,t,r)=>t in e?e31(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,n31=(e,t)=>{for(var r in t||(t={}))t31.call(t,r)&&Rv(e,r,t[r]);if(Dv)for(var r of Dv(t))r31.call(t,r)&&Rv(e,r,t[r]);return e};function hu({data:e,hovered:t,classNames:r,styles:n,isItemSelected:a,uuid:c,__staticSelector:i,onItemHover:o,onItemSelect:s,itemsRefs:l,itemComponent:f,size:u,nothingFound:d,creatable:p,createLabel:m,unstyled:v}){const{classes:C}=J21({size:u},{classNames:r,styles:n,unstyled:v,name:i}),h=[],g=[];let y=null;const V=(H,M)=>{const w=typeof a=="function"?a(H.value):!1;return b.createElement(f,n31({key:H.value,className:C.item,"data-disabled":H.disabled||void 0,"data-hovered":!H.disabled&&t===M||void 0,"data-selected":!H.disabled&&w||void 0,selected:w,onMouseEnter:()=>o(M),id:`${c}-${M}`,role:"option",tabIndex:-1,"aria-selected":t===M,ref:P=>{l&&l.current&&(l.current[H.value]=P)},onMouseDown:H.disabled?null:P=>{P.preventDefault(),s(H)},disabled:H.disabled},H))};let x=null;if(e.forEach((H,M)=>{H.creatable?y=M:H.group?(x!==H.group&&(x=H.group,g.push(b.createElement("div",{className:C.separator,key:`__mantine-divider-${M}`},b.createElement(K4,{classNames:{label:C.separatorLabel},label:H.group})))),g.push(V(H,M))):h.push(V(H,M))}),p){const H=e[y];h.push(b.createElement("div",{key:a11(),className:C.item,"data-hovered":t===y||void 0,onMouseEnter:()=>o(y),onMouseDown:M=>{M.preventDefault(),s(H)},tabIndex:-1,ref:M=>{l&&l.current&&(l.current[H.value]=M)}},m))}return g.length>0&&h.length>0&&h.unshift(b.createElement("div",{className:C.separator,key:"empty-group-separator"},b.createElement(K4,null))),g.length>0||h.length>0?b.createElement(b.Fragment,null,g,h):b.createElement(Y1,{size:u,unstyled:v,className:C.nothingFound},d)}hu.displayName="@mantine/core/SelectItems";var a31=Object.defineProperty,cn=Object.getOwnPropertySymbols,Uw=Object.prototype.hasOwnProperty,qw=Object.prototype.propertyIsEnumerable,Fv=(e,t,r)=>t in e?a31(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c31=(e,t)=>{for(var r in t||(t={}))Uw.call(t,r)&&Fv(e,r,t[r]);if(cn)for(var r of cn(t))qw.call(t,r)&&Fv(e,r,t[r]);return e},i31=(e,t)=>{var r={};for(var n in e)Uw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cn)for(var n of cn(e))t.indexOf(n)<0&&qw.call(e,n)&&(r[n]=e[n]);return r};const vu=z.forwardRef((e,t)=>{var r=e,{label:n,value:a}=r,c=i31(r,["label","value"]);return b.createElement("div",c31({ref:t},c),n||a)});vu.displayName="@mantine/core/DefaultItem";function o31(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Gw(...e){return t=>e.forEach(r=>o31(r,t))}function Je(...e){return z.useCallback(Gw(...e),e)}const Yw=z.forwardRef((e,t)=>{const{children:r,...n}=e,a=z.Children.toArray(r),c=a.find(l31);if(c){const i=c.props.children,o=a.map(s=>s===c?z.Children.count(i)>1?z.Children.only(null):z.isValidElement(i)?i.props.children:null:s);return z.createElement(Gs,l2({},n,{ref:t}),z.isValidElement(i)?z.cloneElement(i,void 0,o):null)}return z.createElement(Gs,l2({},n,{ref:t}),r)});Yw.displayName="Slot";const Gs=z.forwardRef((e,t)=>{const{children:r,...n}=e;return z.isValidElement(r)?z.cloneElement(r,{...f31(n,r.props),ref:Gw(t,r.ref)}):z.Children.count(r)>1?z.Children.only(null):null});Gs.displayName="SlotClone";const s31=({children:e})=>z.createElement(z.Fragment,null,e);function l31(e){return z.isValidElement(e)&&e.type===s31}function f31(e,t){const r={...t};for(const n in t){const a=e[n],c=t[n];/^on[A-Z]/.test(n)?a&&c?r[n]=(...o)=>{c(...o),a(...o)}:a&&(r[n]=a):n==="style"?r[n]={...a,...c}:n==="className"&&(r[n]=[a,c].filter(Boolean).join(" "))}return{...e,...r}}const u31=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],v7=u31.reduce((e,t)=>{const r=z.forwardRef((n,a)=>{const{asChild:c,...i}=n,o=c?Yw:t;return z.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),z.createElement(o,l2({},i,{ref:a}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ys=globalThis?.document?z.useLayoutEffect:()=>{};function d31(e,t){return z.useReducer((r,n)=>{const a=t[r][n];return a??r},e)}const g7=e=>{const{present:t,children:r}=e,n=p31(t),a=typeof r=="function"?r({present:n.isPresent}):z.Children.only(r),c=Je(n.ref,a.ref);return typeof r=="function"||n.isPresent?z.cloneElement(a,{ref:c}):null};g7.displayName="Presence";function p31(e){const[t,r]=z.useState(),n=z.useRef({}),a=z.useRef(e),c=z.useRef("none"),i=e?"mounted":"unmounted",[o,s]=d31(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect(()=>{const l=lt(n.current);c.current=o==="mounted"?l:"none"},[o]),Ys(()=>{const l=n.current,f=a.current;if(f!==e){const d=c.current,p=lt(l);e?s("MOUNT"):p==="none"||l?.display==="none"?s("UNMOUNT"):s(f&&d!==p?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),Ys(()=>{if(t){const l=u=>{const p=lt(n.current).includes(u.animationName);u.target===t&&p&&Hc.flushSync(()=>s("ANIMATION_END"))},f=u=>{u.target===t&&(c.current=lt(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:z.useCallback(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function lt(e){return e?.animationName||"none"}function m31(e,t=[]){let r=[];function n(c,i){const o=z.createContext(i),s=r.length;r=[...r,i];function l(u){const{scope:d,children:p,...m}=u,v=d?.[e][s]||o,C=z.useMemo(()=>m,Object.values(m));return z.createElement(v.Provider,{value:C},p)}function f(u,d){const p=d?.[e][s]||o,m=z.useContext(p);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${c}\``)}return l.displayName=c+"Provider",[l,f]}const a=()=>{const c=r.map(i=>z.createContext(i));return function(o){const s=o?.[e]||c;return z.useMemo(()=>({[`__scope${e}`]:{...o,[e]:s}}),[o,s])}};return a.scopeName=e,[n,h31(a,...t)]}function h31(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(c){const i=n.reduce((o,{useScope:s,scopeName:l})=>{const u=s(c)[`__scope${l}`];return{...o,...u}},{});return z.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Le(e){const t=z.useRef(e);return z.useEffect(()=>{t.current=e}),z.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}const v31=z.createContext(void 0);function g31(e){const t=z.useContext(v31);return e||t||"ltr"}function z31(e,[t,r]){return Math.min(r,Math.max(t,e))}function De(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}function y31(e,t){return z.useReducer((r,n)=>{const a=t[r][n];return a??r},e)}const Zw="ScrollArea",[Kw,V32]=m31(Zw),[C31,i4]=Kw(Zw),H31=z.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:a,scrollHideDelay:c=600,...i}=e,[o,s]=z.useState(null),[l,f]=z.useState(null),[u,d]=z.useState(null),[p,m]=z.useState(null),[v,C]=z.useState(null),[h,g]=z.useState(0),[y,V]=z.useState(0),[x,H]=z.useState(!1),[M,w]=z.useState(!1),P=Je(t,O=>s(O)),N=g31(a);return z.createElement(C31,{scope:r,type:n,dir:N,scrollHideDelay:c,scrollArea:o,viewport:l,onViewportChange:f,content:u,onContentChange:d,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:H,scrollbarY:v,onScrollbarYChange:C,scrollbarYEnabled:M,onScrollbarYEnabledChange:w,onCornerWidthChange:g,onCornerHeightChange:V},z.createElement(v7.div,l2({dir:N},i,{ref:P,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":y+"px",...e.style}})))}),V31="ScrollAreaViewport",b31=z.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,...a}=e,c=i4(V31,r),i=z.useRef(null),o=Je(t,i,c.onViewportChange);return z.createElement(z.Fragment,null,z.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}"}}),z.createElement(v7.div,l2({"data-radix-scroll-area-viewport":""},a,{ref:o,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style}}),z.createElement("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),m6="ScrollAreaScrollbar",M31=z.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=i4(m6,e.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:i}=a,o=e.orientation==="horizontal";return z.useEffect(()=>(o?c(!0):i(!0),()=>{o?c(!1):i(!1)}),[o,c,i]),a.type==="hover"?z.createElement(x31,l2({},n,{ref:t,forceMount:r})):a.type==="scroll"?z.createElement(w31,l2({},n,{ref:t,forceMount:r})):a.type==="auto"?z.createElement(Xw,l2({},n,{ref:t,forceMount:r})):a.type==="always"?z.createElement(gu,l2({},n,{ref:t})):null}),x31=z.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=i4(m6,e.__scopeScrollArea),[c,i]=z.useState(!1);return z.useEffect(()=>{const o=a.scrollArea;let s=0;if(o){const l=()=>{window.clearTimeout(s),i(!0)},f=()=>{s=window.setTimeout(()=>i(!1),a.scrollHideDelay)};return o.addEventListener("pointerenter",l),o.addEventListener("pointerleave",f),()=>{window.clearTimeout(s),o.removeEventListener("pointerenter",l),o.removeEventListener("pointerleave",f)}}},[a.scrollArea,a.scrollHideDelay]),z.createElement(g7,{present:r||c},z.createElement(Xw,l2({"data-state":c?"visible":"hidden"},n,{ref:t})))}),w31=z.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=i4(m6,e.__scopeScrollArea),c=e.orientation==="horizontal",i=Qc(()=>s("SCROLL_END"),100),[o,s]=y31("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 z.useEffect(()=>{if(o==="idle"){const l=window.setTimeout(()=>s("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(l)}},[o,a.scrollHideDelay,s]),z.useEffect(()=>{const l=a.viewport,f=c?"scrollLeft":"scrollTop";if(l){let u=l[f];const d=()=>{const p=l[f];u!==p&&(s("SCROLL"),i()),u=p};return l.addEventListener("scroll",d),()=>l.removeEventListener("scroll",d)}},[a.viewport,c,s,i]),z.createElement(g7,{present:r||o!=="hidden"},z.createElement(gu,l2({"data-state":o==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:De(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:De(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),Xw=z.forwardRef((e,t)=>{const r=i4(m6,e.__scopeScrollArea),{forceMount:n,...a}=e,[c,i]=z.useState(!1),o=e.orientation==="horizontal",s=Qc(()=>{if(r.viewport){const l=r.viewport.offsetWidth{const{orientation:r="vertical",...n}=e,a=i4(m6,e.__scopeScrollArea),c=z.useRef(null),i=z.useRef(0),[o,s]=z.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=tL(o.viewport,o.content),f={...n,sizes:o,onSizesChange:s,hasThumb:l>0&&l<1,onThumbChange:d=>c.current=d,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:d=>i.current=d};function u(d,p){return A31(d,i.current,o,p)}return r==="horizontal"?z.createElement(L31,l2({},f,{ref:t,onThumbPositionChange:()=>{if(a.viewport&&c.current){const d=a.viewport.scrollLeft,p=Iv(d,o,a.dir);c.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:d=>{a.viewport&&(a.viewport.scrollLeft=d)},onDragScroll:d=>{a.viewport&&(a.viewport.scrollLeft=u(d,a.dir))}})):r==="vertical"?z.createElement(S31,l2({},f,{ref:t,onThumbPositionChange:()=>{if(a.viewport&&c.current){const d=a.viewport.scrollTop,p=Iv(d,o);c.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:d=>{a.viewport&&(a.viewport.scrollTop=d)},onDragScroll:d=>{a.viewport&&(a.viewport.scrollTop=u(d))}})):null}),L31=z.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...a}=e,c=i4(m6,e.__scopeScrollArea),[i,o]=z.useState(),s=z.useRef(null),l=Je(t,s,c.onScrollbarXChange);return z.useEffect(()=>{s.current&&o(getComputedStyle(s.current))},[s]),z.createElement(Jw,l2({"data-orientation":"horizontal"},a,{ref:l,sizes:r,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Xc(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,u)=>{if(c.viewport){const d=c.viewport.scrollLeft+f.deltaX;e.onWheelScroll(d),nL(d,u)&&f.preventDefault()}},onResize:()=>{s.current&&c.viewport&&i&&n({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:on(i.paddingLeft),paddingEnd:on(i.paddingRight)}})}}))}),S31=z.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...a}=e,c=i4(m6,e.__scopeScrollArea),[i,o]=z.useState(),s=z.useRef(null),l=Je(t,s,c.onScrollbarYChange);return z.useEffect(()=>{s.current&&o(getComputedStyle(s.current))},[s]),z.createElement(Jw,l2({"data-orientation":"vertical"},a,{ref:l,sizes:r,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Xc(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,u)=>{if(c.viewport){const d=c.viewport.scrollTop+f.deltaY;e.onWheelScroll(d),nL(d,u)&&f.preventDefault()}},onResize:()=>{s.current&&c.viewport&&i&&n({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:on(i.paddingTop),paddingEnd:on(i.paddingBottom)}})}}))}),[k31,Qw]=Kw(m6),Jw=z.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:a,onThumbChange:c,onThumbPointerUp:i,onThumbPointerDown:o,onThumbPositionChange:s,onDragScroll:l,onWheelScroll:f,onResize:u,...d}=e,p=i4(m6,r),[m,v]=z.useState(null),C=Je(t,P=>v(P)),h=z.useRef(null),g=z.useRef(""),y=p.viewport,V=n.content-n.viewport,x=Le(f),H=Le(s),M=Qc(u,10);function w(P){if(h.current){const N=P.clientX-h.current.left,O=P.clientY-h.current.top;l({x:N,y:O})}}return z.useEffect(()=>{const P=N=>{const O=N.target;m?.contains(O)&&x(N,V)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[y,m,V,x]),z.useEffect(H,[n,H]),a8(m,M),a8(p.content,M),z.createElement(k31,{scope:r,scrollbar:m,hasThumb:a,onThumbChange:Le(c),onThumbPointerUp:Le(i),onThumbPositionChange:H,onThumbPointerDown:Le(o)},z.createElement(v7.div,l2({},d,{ref:C,style:{position:"absolute",...d.style},onPointerDown:De(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),h.current=m.getBoundingClientRect(),g.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w(P))}),onPointerMove:De(e.onPointerMove,w),onPointerUp:De(e.onPointerUp,P=>{const N=P.target;N.hasPointerCapture(P.pointerId)&&N.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=g.current,h.current=null})})))}),Zs="ScrollAreaThumb",P31=z.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=Qw(Zs,e.__scopeScrollArea);return z.createElement(g7,{present:r||a.hasThumb},z.createElement(N31,l2({ref:t},n)))}),N31=z.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...a}=e,c=i4(Zs,r),i=Qw(Zs,r),{onThumbPositionChange:o}=i,s=Je(t,u=>i.onThumbChange(u)),l=z.useRef(),f=Qc(()=>{l.current&&(l.current(),l.current=void 0)},100);return z.useEffect(()=>{const u=c.viewport;if(u){const d=()=>{if(f(),!l.current){const p=E31(u,o);l.current=p,o()}};return o(),u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[c.viewport,f,o]),z.createElement(v7.div,l2({"data-state":i.hasThumb?"visible":"hidden"},a,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:De(e.onPointerDownCapture,u=>{const p=u.target.getBoundingClientRect(),m=u.clientX-p.left,v=u.clientY-p.top;i.onThumbPointerDown({x:m,y:v})}),onPointerUp:De(e.onPointerUp,i.onThumbPointerUp)}))}),eL="ScrollAreaCorner",_31=z.forwardRef((e,t)=>{const r=i4(eL,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?z.createElement(O31,l2({},e,{ref:t})):null}),O31=z.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,a=i4(eL,r),[c,i]=z.useState(0),[o,s]=z.useState(0),l=!!(c&&o);return a8(a.scrollbarX,()=>{var f;const u=((f=a.scrollbarX)===null||f===void 0?void 0:f.offsetHeight)||0;a.onCornerHeightChange(u),s(u)}),a8(a.scrollbarY,()=>{var f;const u=((f=a.scrollbarY)===null||f===void 0?void 0:f.offsetWidth)||0;a.onCornerWidthChange(u),i(u)}),l?z.createElement(v7.div,l2({},n,{ref:t,style:{width:c,height:o,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function on(e){return e?parseInt(e,10):0}function tL(e,t){const r=e/t;return isNaN(r)?0:r}function Xc(e){const t=tL(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function A31(e,t,r,n="ltr"){const a=Xc(r),c=a/2,i=t||c,o=a-i,s=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-o,f=r.content-r.viewport,u=n==="ltr"?[0,f]:[f*-1,0];return rL([s,l],u)(e)}function Iv(e,t,r="ltr"){const n=Xc(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,c=t.scrollbar.size-a,i=t.content-t.viewport,o=c-n,s=r==="ltr"?[0,i]:[i*-1,0],l=z31(e,s);return rL([0,i],[0,o])(l)}function rL(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 nL(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function a(){const c={left:e.scrollLeft,top:e.scrollTop},i=r.left!==c.left,o=r.top!==c.top;(i||o)&&t(),r=c,n=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(n)};function Qc(e,t){const r=Le(e),n=z.useRef(0);return z.useEffect(()=>()=>window.clearTimeout(n.current),[]),z.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function a8(e,t){const r=Le(t);Ys(()=>{let n=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(n),a.unobserve(e)}}},[e,r])}const $31=H31,T31=b31,jv=M31,Bv=P31,D31=_31;var R31=u1((e,{scrollbarSize:t,offsetScrollbars:r,scrollbarHovered:n,hidden:a},c)=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:r?t:void 0,paddingBottom:r?t:void 0},scrollbar:{display:a?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:t/5,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.colors.gray[0],[`& .${c("thumb")}`]:{backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.5):e.fn.rgba(e.black,.5)}},'&[data-orientation="vertical"]':{width:t},'&[data-orientation="horizontal"]':{flexDirection:"column",height:t},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:c("thumb"),flex:1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.4):e.fn.rgba(e.black,.4),borderRadius:t,position:"relative",transition:"background-color 150ms ease",display:a?"none":void 0,overflow:"hidden","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:44,minHeight:44}},corner:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],transition:"opacity 150ms ease",opacity:n?1:0,display:a?"none":void 0}}));const F31=R31;var I31=Object.defineProperty,j31=Object.defineProperties,B31=Object.getOwnPropertyDescriptors,sn=Object.getOwnPropertySymbols,aL=Object.prototype.hasOwnProperty,cL=Object.prototype.propertyIsEnumerable,Wv=(e,t,r)=>t in e?I31(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ks=(e,t)=>{for(var r in t||(t={}))aL.call(t,r)&&Wv(e,r,t[r]);if(sn)for(var r of sn(t))cL.call(t,r)&&Wv(e,r,t[r]);return e},iL=(e,t)=>j31(e,B31(t)),oL=(e,t)=>{var r={};for(var n in e)aL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&sn)for(var n of sn(e))t.indexOf(n)<0&&cL.call(e,n)&&(r[n]=e[n]);return r};const sL={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},Jc=z.forwardRef((e,t)=>{const r=L1("ScrollArea",sL,e),{children:n,className:a,classNames:c,styles:i,scrollbarSize:o,scrollHideDelay:s,type:l,dir:f,offsetScrollbars:u,viewportRef:d,onScrollPositionChange:p,unstyled:m,viewportProps:v}=r,C=oL(r,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","viewportProps"]),[h,g]=z.useState(!1),y=H2(),{classes:V,cx:x}=F31({scrollbarSize:o,offsetScrollbars:u,scrollbarHovered:h,hidden:l==="never"},{name:"ScrollArea",classNames:c,styles:i,unstyled:m});return b.createElement($31,{type:l==="never"?"always":l,scrollHideDelay:s,dir:f||y.dir,ref:t,asChild:!0},b.createElement(y1,Ks({className:x(V.root,a)},C),b.createElement(T31,iL(Ks({},v),{className:V.viewport,ref:d,onScroll:typeof p=="function"?({currentTarget:H})=>p({x:H.scrollLeft,y:H.scrollTop}):void 0}),n),b.createElement(jv,{orientation:"horizontal",className:V.scrollbar,forceMount:!0,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1)},b.createElement(Bv,{className:V.thumb})),b.createElement(jv,{orientation:"vertical",className:V.scrollbar,forceMount:!0,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1)},b.createElement(Bv,{className:V.thumb})),b.createElement(D31,{className:V.corner})))}),lL=z.forwardRef((e,t)=>{const r=L1("ScrollAreaAutosize",sL,e),{maxHeight:n,children:a,classNames:c,styles:i,scrollbarSize:o,scrollHideDelay:s,type:l,dir:f,offsetScrollbars:u,viewportRef:d,onScrollPositionChange:p,unstyled:m,sx:v}=r,C=oL(r,["maxHeight","children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx"]);return b.createElement(y1,iL(Ks({},C),{ref:t,sx:[{display:"flex",maxHeight:n},...B5(v)]}),b.createElement(y1,{sx:{display:"flex",flexDirection:"column",flex:1}},b.createElement(Jc,{classNames:c,styles:i,scrollHideDelay:s,scrollbarSize:o,type:l,dir:f,offsetScrollbars:u,viewportRef:d,onScrollPositionChange:p,unstyled:m},a)))});lL.displayName="@mantine/core/ScrollAreaAutosize";Jc.displayName="@mantine/core/ScrollArea";Jc.Autosize=lL;const W31=Jc;var U31=Object.defineProperty,q31=Object.defineProperties,G31=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,fL=Object.prototype.hasOwnProperty,uL=Object.prototype.propertyIsEnumerable,Uv=(e,t,r)=>t in e?U31(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qv=(e,t)=>{for(var r in t||(t={}))fL.call(t,r)&&Uv(e,r,t[r]);if(ln)for(var r of ln(t))uL.call(t,r)&&Uv(e,r,t[r]);return e},Y31=(e,t)=>q31(e,G31(t)),Z31=(e,t)=>{var r={};for(var n in e)fL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ln)for(var n of ln(e))t.indexOf(n)<0&&uL.call(e,n)&&(r[n]=e[n]);return r};const e9=z.forwardRef((e,t)=>{var r=e,{style:n}=r,a=Z31(r,["style"]);return b.createElement(W31,Y31(qv({},a),{style:qv({width:"100%"},n),viewportRef:t}),a.children)});e9.displayName="@mantine/core/SelectScrollArea";var K31=u1(()=>({dropdown:{},itemsWrapper:{padding:4,display:"flex",width:"100%",boxSizing:"border-box"}}));const X31=K31;function g8(e){return e.split("-")[1]}function zu(e){return e==="y"?"height":"width"}function y4(e){return e.split("-")[0]}function pe(e){return["top","bottom"].includes(y4(e))?"x":"y"}function Gv(e,t,r){let{reference:n,floating:a}=e;const c=n.x+n.width/2-a.width/2,i=n.y+n.height/2-a.height/2,o=pe(t),s=zu(o),l=n[s]/2-a[s]/2,f=o==="x";let u;switch(y4(t)){case"top":u={x:c,y:n.y-a.height};break;case"bottom":u={x:c,y:n.y+n.height};break;case"right":u={x:n.x+n.width,y:i};break;case"left":u={x:n.x-a.width,y:i};break;default:u={x:n.x,y:n.y}}switch(g8(t)){case"start":u[o]-=l*(r&&f?-1:1);break;case"end":u[o]+=l*(r&&f?-1:1)}return u}const Q31=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:c=[],platform:i}=r,o=c.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:u}=Gv(l,n,s),d=n,p={},m=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{element:r,padding:n=0}=e||{},{x:a,y:c,placement:i,rects:o,platform:s}=t;if(r==null)return{};const l=yu(n),f={x:a,y:c},u=pe(i),d=zu(u),p=await s.getDimensions(r),m=u==="y"?"top":"left",v=u==="y"?"bottom":"right",C=o.reference[d]+o.reference[u]-f[u]-o.floating[d],h=f[u]-o.reference[u],g=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r));let y=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0;y===0&&(y=o.floating[d]);const V=C/2-h/2,x=l[m],H=y-p[d]-l[v],M=y/2-p[d]/2+V,w=Xs(x,M,H),P=g8(i)!=null&&M!=w&&o.reference[d]/2-(Me.concat(t,t+"-start",t+"-end"),[]);const e41={left:"right",right:"left",bottom:"top",top:"bottom"};function dn(e){return e.replace(/left|right|bottom|top/g,t=>e41[t])}function t41(e,t,r){r===void 0&&(r=!1);const n=g8(e),a=pe(e),c=zu(a);let i=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(i=dn(i)),{main:i,cross:dn(i)}}const r41={start:"end",end:"start"};function ki(e){return e.replace(/start|end/g,t=>r41[t])}const dL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:a,rects:c,initialPlacement:i,platform:o,elements:s}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...v}=e,C=y4(n),h=y4(i)===i,g=await(o.isRTL==null?void 0:o.isRTL(s.floating)),y=u||(h||!m?[dn(i)]:function(O){const E=dn(O);return[ki(O),E,ki(E)]}(i));u||p==="none"||y.push(...function(O,E,T,_){const R=g8(O);let k=function(F,$,j){const I=["left","right"],L=["right","left"],S=["top","bottom"],Z=["bottom","top"];switch(F){case"top":case"bottom":return j?$?L:I:$?I:L;case"left":case"right":return $?S:Z;default:return[]}}(y4(O),T==="start",_);return R&&(k=k.map(F=>F+"-"+R),E&&(k=k.concat(k.map(ki)))),k}(i,m,p,g));const V=[i,...y],x=await Cu(t,v),H=[];let M=((r=a.flip)==null?void 0:r.overflows)||[];if(l&&H.push(x[C]),f){const{main:O,cross:E}=t41(n,c,g);H.push(x[O],x[E])}if(M=[...M,{placement:n,overflows:H}],!H.every(O=>O<=0)){var w,P;const O=(((w=a.flip)==null?void 0:w.index)||0)+1,E=V[O];if(E)return{data:{index:O,overflows:M},reset:{placement:E}};let T=(P=M.filter(_=>_.overflows[0]<=0).sort((_,R)=>_.overflows[1]-R.overflows[1])[0])==null?void 0:P.placement;if(!T)switch(d){case"bestFit":{var N;const _=(N=M.map(R=>[R.placement,R.overflows.filter(k=>k>0).reduce((k,F)=>k+F,0)]).sort((R,k)=>R[1]-k[1])[0])==null?void 0:N[0];_&&(T=_);break}case"initialPlacement":T=i}if(n!==T)return{reset:{placement:T}}}return{}}}},pL=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:a,platform:c,strategy:i}=t,{padding:o=2,x:s,y:l}=e,f=fn(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({rect:a.reference,offsetParent:await(c.getOffsetParent==null?void 0:c.getOffsetParent(n.floating)),strategy:i}):a.reference),u=await(c.getClientRects==null?void 0:c.getClientRects(n.reference))||[],d=yu(o),p=await c.getElementRects({reference:{getBoundingClientRect:function(){if(u.length===2&&u[0].left>u[1].right&&s!=null&&l!=null)return u.find(m=>s>m.left-d.left&&sm.top-d.top&&l=2){if(pe(r)==="x"){const V=u[0],x=u[u.length-1],H=y4(r)==="top",M=V.top,w=x.bottom,P=H?V.left:x.left,N=H?V.right:x.right;return{top:M,bottom:w,left:P,right:N,width:N-P,height:w-M,x:P,y:M}}const m=y4(r)==="left",v=k6(...u.map(V=>V.right)),C=un(...u.map(V=>V.left)),h=u.filter(V=>m?V.left===C:V.right===v),g=h[0].top,y=h[h.length-1].bottom;return{top:g,bottom:y,left:C,right:v,width:v-C,height:y-g,x:C,y:g}}return f}},floating:n.floating,strategy:i});return a.reference.x!==p.reference.x||a.reference.y!==p.reference.y||a.reference.width!==p.reference.width||a.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},mL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,a=await async function(c,i){const{placement:o,platform:s,elements:l}=c,f=await(s.isRTL==null?void 0:s.isRTL(l.floating)),u=y4(o),d=g8(o),p=pe(o)==="x",m=["left","top"].includes(u)?-1:1,v=f&&p?-1:1,C=typeof i=="function"?i(c):i;let{mainAxis:h,crossAxis:g,alignmentAxis:y}=typeof C=="number"?{mainAxis:C,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...C};return d&&typeof y=="number"&&(g=d==="end"?-1*y:y),p?{x:g*v,y:h*m}:{x:h*m,y:g*v}}(t,e);return{x:r+a.x,y:n+a.y,data:a}}}};function hL(e){return e==="x"?"y":"x"}const Hu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:c=!0,crossAxis:i=!1,limiter:o={fn:C=>{let{x:h,y:g}=C;return{x:h,y:g}}},...s}=e,l={x:r,y:n},f=await Cu(t,s),u=pe(y4(a)),d=hL(u);let p=l[u],m=l[d];if(c){const C=u==="y"?"bottom":"right";p=Xs(p+f[u==="y"?"top":"left"],p,p-f[C])}if(i){const C=d==="y"?"bottom":"right";m=Xs(m+f[d==="y"?"top":"left"],m,m-f[C])}const v=o.fn({...t,[u]:p,[d]:m});return{...v,data:{x:v.x-r,y:v.y-n}}}}},n41=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:c,middlewareData:i}=t,{offset:o=0,mainAxis:s=!0,crossAxis:l=!0}=e,f={x:r,y:n},u=pe(a),d=hL(u);let p=f[u],m=f[d];const v=typeof o=="function"?o(t):o,C=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const y=u==="y"?"height":"width",V=c.reference[u]-c.floating[y]+C.mainAxis,x=c.reference[u]+c.reference[y]-C.mainAxis;px&&(p=x)}if(l){var h,g;const y=u==="y"?"width":"height",V=["top","left"].includes(y4(a)),x=c.reference[d]-c.floating[y]+(V&&((h=i.offset)==null?void 0:h[d])||0)+(V?0:C.crossAxis),H=c.reference[d]+c.reference[y]+(V?0:((g=i.offset)==null?void 0:g[d])||0)-(V?C.crossAxis:0);mH&&(m=H)}return{[u]:p,[d]:m}}}},a41=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:a,elements:c}=t,{apply:i=()=>{},...o}=e,s=await Cu(t,o),l=y4(r),f=g8(r),u=pe(r)==="x",{width:d,height:p}=n.floating;let m,v;l==="top"||l==="bottom"?(m=l,v=f===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(v=l,m=f==="end"?"top":"bottom");const C=p-s[m],h=d-s[v];let g=C,y=h;if(u?y=un(d-s.right-s.left,h):g=un(p-s.bottom-s.top,C),!t.middlewareData.shift&&!f){const x=k6(s.left,0),H=k6(s.right,0),M=k6(s.top,0),w=k6(s.bottom,0);u?y=d-2*(x!==0||H!==0?x+H:k6(s.left,s.right)):g=p-2*(M!==0||w!==0?M+w:k6(s.top,s.bottom))}await i({...t,availableWidth:y,availableHeight:g});const V=await a.getDimensions(c.floating);return d!==V.width||p!==V.height?{reset:{rects:!0}}:{}}}};function O3(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function R4(e){return O3(e).getComputedStyle(e)}const Zv=Math.min,v5=Math.max,pn=Math.round;function vL(e){const t=R4(e);let r=parseFloat(t.width),n=parseFloat(t.height);const a=e.offsetWidth,c=e.offsetHeight,i=pn(r)!==a||pn(n)!==c;return i&&(r=a,n=c),{width:r,height:n,fallback:i}}function ee(e){return zL(e)?(e.nodeName||"").toLowerCase():""}let ft;function gL(){if(ft)return ft;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ft=e.brands.map(t=>t.brand+"/"+t.version).join(" "),ft):navigator.userAgent}function F4(e){return e instanceof O3(e).HTMLElement}function C4(e){return e instanceof O3(e).Element}function zL(e){return e instanceof O3(e).Node}function Kv(e){return typeof ShadowRoot>"u"?!1:e instanceof O3(e).ShadowRoot||e instanceof ShadowRoot}function t9(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=R4(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function c41(e){return["table","td","th"].includes(ee(e))}function Qs(e){const t=/firefox/i.test(gL()),r=R4(e),n=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!n&&n!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(a=>r.willChange.includes(a))||["paint","layout","strict","content"].some(a=>{const c=r.contain;return c!=null&&c.includes(a)})}function Js(){return/^((?!chrome|android).)*safari/i.test(gL())}function Vu(e){return["html","body","#document"].includes(ee(e))}function yL(e){return C4(e)?e:e.contextElement}const CL={x:1,y:1};function I0(e){const t=yL(e);if(!F4(t))return CL;const r=t.getBoundingClientRect(),{width:n,height:a,fallback:c}=vL(t);let i=(c?pn(r.width):r.width)/n,o=(c?pn(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),o&&Number.isFinite(o)||(o=1),{x:i,y:o}}function We(e,t,r,n){var a,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=yL(e);let s=CL;t&&(n?C4(n)&&(s=I0(n)):s=I0(e));const l=o?O3(o):window,f=Js()&&r;let u=(i.left+(f&&((a=l.visualViewport)==null?void 0:a.offsetLeft)||0))/s.x,d=(i.top+(f&&((c=l.visualViewport)==null?void 0:c.offsetTop)||0))/s.y,p=i.width/s.x,m=i.height/s.y;if(o){const v=O3(o),C=n&&C4(n)?O3(n):n;let h=v.frameElement;for(;h&&n&&C!==v;){const g=I0(h),y=h.getBoundingClientRect(),V=getComputedStyle(h);y.x+=(h.clientLeft+parseFloat(V.paddingLeft))*g.x,y.y+=(h.clientTop+parseFloat(V.paddingTop))*g.y,u*=g.x,d*=g.y,p*=g.x,m*=g.y,u+=y.x,d+=y.y,h=O3(h).frameElement}}return{width:p,height:m,top:d,right:u+p,bottom:d+m,left:u,x:u,y:d}}function Y6(e){return((zL(e)?e.ownerDocument:e.document)||window.document).documentElement}function r9(e){return C4(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function HL(e){return We(Y6(e)).left+r9(e).scrollLeft}function G5(e){if(ee(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kv(e)&&e.host||Y6(e);return Kv(t)?t.host:t}function VL(e){const t=G5(e);return Vu(t)?t.ownerDocument.body:F4(t)&&t9(t)?t:VL(t)}function e6(e,t){var r;t===void 0&&(t=[]);const n=VL(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),c=O3(n);return a?t.concat(c,c.visualViewport||[],t9(n)?n:[]):t.concat(n,e6(n))}function Xv(e,t,r){let n;if(t==="viewport")n=function(i,o){const s=O3(i),l=Y6(i),f=s.visualViewport;let u=l.clientWidth,d=l.clientHeight,p=0,m=0;if(f){u=f.width,d=f.height;const v=Js();(!v||v&&o==="fixed")&&(p=f.offsetLeft,m=f.offsetTop)}return{width:u,height:d,x:p,y:m}}(e,r);else if(t==="document")n=function(i){const o=Y6(i),s=r9(i),l=i.ownerDocument.body,f=v5(o.scrollWidth,o.clientWidth,l.scrollWidth,l.clientWidth),u=v5(o.scrollHeight,o.clientHeight,l.scrollHeight,l.clientHeight);let d=-s.scrollLeft+HL(i);const p=-s.scrollTop;return R4(l).direction==="rtl"&&(d+=v5(o.clientWidth,l.clientWidth)-f),{width:f,height:u,x:d,y:p}}(Y6(e));else if(C4(t))n=function(i,o){const s=We(i,!0,o==="fixed"),l=s.top+i.clientTop,f=s.left+i.clientLeft,u=F4(i)?I0(i):{x:1,y:1};return{width:i.clientWidth*u.x,height:i.clientHeight*u.y,x:f*u.x,y:l*u.y}}(t,r);else{const i={...t};if(Js()){var a,c;const o=O3(e);i.x-=((a=o.visualViewport)==null?void 0:a.offsetLeft)||0,i.y-=((c=o.visualViewport)==null?void 0:c.offsetTop)||0}n=i}return fn(n)}function Qv(e,t){return F4(e)&&R4(e).position!=="fixed"?t?t(e):e.offsetParent:null}function Jv(e,t){const r=O3(e);let n=Qv(e,t);for(;n&&c41(n)&&R4(n).position==="static";)n=Qv(n,t);return n&&(ee(n)==="html"||ee(n)==="body"&&R4(n).position==="static"&&!Qs(n))?r:n||function(a){let c=G5(a);for(;F4(c)&&!Vu(c);){if(Qs(c))return c;c=G5(c)}return null}(e)||r}function i41(e,t,r){const n=F4(t),a=Y6(t),c=We(e,!0,r==="fixed",t);let i={scrollLeft:0,scrollTop:0};const o={x:0,y:0};if(n||!n&&r!=="fixed")if((ee(t)!=="body"||t9(a))&&(i=r9(t)),F4(t)){const s=We(t,!0);o.x=s.x+t.clientLeft,o.y=s.y+t.clientTop}else a&&(o.x=HL(a));return{x:c.left+i.scrollLeft-o.x,y:c.top+i.scrollTop-o.y,width:c.width,height:c.height}}const o41={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const c=r==="clippingAncestors"?function(l,f){const u=f.get(l);if(u)return u;let d=e6(l).filter(C=>C4(C)&&ee(C)!=="body"),p=null;const m=R4(l).position==="fixed";let v=m?G5(l):l;for(;C4(v)&&!Vu(v);){const C=R4(v),h=Qs(v);(m?h||p:h||C.position!=="static"||!p||!["absolute","fixed"].includes(p.position))?p=C:d=d.filter(g=>g!==v),v=G5(v)}return f.set(l,d),d}(t,this._c):[].concat(r),i=[...c,n],o=i[0],s=i.reduce((l,f)=>{const u=Xv(t,f,a);return l.top=v5(u.top,l.top),l.right=Zv(u.right,l.right),l.bottom=Zv(u.bottom,l.bottom),l.left=v5(u.left,l.left),l},Xv(t,o,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const a=F4(r),c=Y6(r);if(r===c)return t;let i={scrollLeft:0,scrollTop:0},o={x:1,y:1};const s={x:0,y:0};if((a||!a&&n!=="fixed")&&((ee(r)!=="body"||t9(c))&&(i=r9(r)),F4(r))){const l=We(r);o=I0(r),s.x=l.x+r.clientLeft,s.y=l.y+r.clientTop}return{width:t.width*o.x,height:t.height*o.y,x:t.x*o.x-i.scrollLeft*o.x+s.x,y:t.y*o.y-i.scrollTop*o.y+s.y}},isElement:C4,getDimensions:function(e){return F4(e)?vL(e):e.getBoundingClientRect()},getOffsetParent:Jv,getDocumentElement:Y6,getScale:I0,async getElementRects(e){let{reference:t,floating:r,strategy:n}=e;const a=this.getOffsetParent||Jv,c=this.getDimensions;return{reference:i41(t,await a(r),n),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>R4(e).direction==="rtl"};function s41(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:i=!0,animationFrame:o=!1}=n,s=a&&!o,l=s||c?[...C4(e)?e6(e):e.contextElement?e6(e.contextElement):[],...e6(t)]:[];l.forEach(p=>{s&&p.addEventListener("scroll",r,{passive:!0}),c&&p.addEventListener("resize",r)});let f,u=null;if(i){let p=!0;u=new ResizeObserver(()=>{p||r(),p=!1}),C4(e)&&!o&&u.observe(e),C4(e)||!e.contextElement||o||u.observe(e.contextElement),u.observe(t)}let d=o?We(e):null;return o&&function p(){const m=We(e);!d||m.x===d.x&&m.y===d.y&&m.width===d.width&&m.height===d.height||r(),d=m,f=requestAnimationFrame(p)}(),r(),()=>{var p;l.forEach(m=>{s&&m.removeEventListener("scroll",r),c&&m.removeEventListener("resize",r)}),(p=u)==null||p.disconnect(),u=null,o&&cancelAnimationFrame(f)}}const l41=(e,t,r)=>{const n=new Map,a={platform:o41,...r},c={...a.platform,_c:n};return Q31(e,t,{...a,platform:c})},bL=e=>{const{element:t,padding:r}=e;function n(a){return Object.prototype.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){return n(t)?t.current!=null?Yv({element:t.current,padding:r}).fn(a):{}:t?Yv({element:t,padding:r}).fn(a):{}}}};var rr=typeof document<"u"?z.useLayoutEffect:z.useEffect;function mn(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,a;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(!mn(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const c=a[n];if(!(c==="_owner"&&e.$$typeof)&&!mn(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function f41(e){const t=z.useRef(e);return rr(()=>{t.current=e}),t}function u41(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],whileElementsMounted:a,open:c}=e,[i,o]=z.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[s,l]=z.useState(n);mn(s,n)||l(n);const f=z.useRef(null),u=z.useRef(null),d=z.useRef(i),p=f41(a),[m,v]=z.useState(null),[C,h]=z.useState(null),g=z.useCallback(w=>{f.current!==w&&(f.current=w,v(w))},[]),y=z.useCallback(w=>{u.current!==w&&(u.current=w,h(w))},[]),V=z.useCallback(()=>{!f.current||!u.current||l41(f.current,u.current,{middleware:s,placement:t,strategy:r}).then(w=>{const P={...w,isPositioned:!0};x.current&&!mn(d.current,P)&&(d.current=P,Hc.flushSync(()=>{o(P)}))})},[s,t,r]);rr(()=>{c===!1&&d.current.isPositioned&&(d.current.isPositioned=!1,o(w=>({...w,isPositioned:!1})))},[c]);const x=z.useRef(!1);rr(()=>(x.current=!0,()=>{x.current=!1}),[]),rr(()=>{if(m&&C){if(p.current)return p.current(m,C,V);V()}},[m,C,V,p]);const H=z.useMemo(()=>({reference:f,floating:u,setReference:g,setFloating:y}),[g,y]),M=z.useMemo(()=>({reference:m,floating:C}),[m,C]);return z.useMemo(()=>({...i,update:V,refs:H,elements:M,reference:g,floating:y}),[i,V,H,M,g,y])}var c8=typeof document<"u"?z.useLayoutEffect:z.useEffect;let Pi=!1,d41=0;const eg=()=>"floating-ui-"+d41++;function p41(){const[e,t]=z.useState(()=>Pi?eg():void 0);return c8(()=>{e==null&&t(eg())},[]),z.useEffect(()=>{Pi||(Pi=!0)},[]),e}const m41=vr["useId".toString()],tg=m41||p41;function h41(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(a=>a(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 v41=z.createContext(null),g41=z.createContext(null),ML=()=>{var e;return((e=z.useContext(v41))==null?void 0:e.id)||null},bu=()=>z.useContext(g41);function T6(e){return e?.ownerDocument||document}function z41(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function y41(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function Mu(e){return T6(e).defaultView||window}function O4(e){return e?e instanceof Mu(e).Element:!1}function xL(e){return e?e instanceof Mu(e).HTMLElement:!1}function C41(e){if(typeof ShadowRoot>"u")return!1;const t=Mu(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function H41(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(z41())||t.test(y41()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function V41(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function wL(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function rg(e){const t=z.useRef(e);return c8(()=>{t.current=e}),t}const ng="data-floating-ui-safe-polygon";function nr(e,t,r){return r&&!wL(r)?0:typeof e=="number"?e:e?.[t]}const b41=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:a=null,mouseOnly:c=!1,restMs:i=0,move:o=!0}=t===void 0?{}:t;const{open:s,onOpenChange:l,dataRef:f,events:u,elements:{domReference:d,floating:p},refs:m}=e,v=bu(),C=ML(),h=rg(a),g=rg(n),y=z.useRef(),V=z.useRef(),x=z.useRef(),H=z.useRef(),M=z.useRef(!0),w=z.useRef(!1),P=z.useRef(()=>{}),N=z.useCallback(()=>{var _;const R=(_=f.current.openEvent)==null?void 0:_.type;return R?.includes("mouse")&&R!=="mousedown"},[f]);z.useEffect(()=>{if(!r)return;function _(){clearTimeout(V.current),clearTimeout(H.current),M.current=!0}return u.on("dismiss",_),()=>{u.off("dismiss",_)}},[r,u]),z.useEffect(()=>{if(!r||!h.current||!s)return;function _(){N()&&l(!1)}const R=T6(p).documentElement;return R.addEventListener("mouseleave",_),()=>{R.removeEventListener("mouseleave",_)}},[p,s,l,r,h,f,N]);const O=z.useCallback(function(_){_===void 0&&(_=!0);const R=nr(g.current,"close",y.current);R&&!x.current?(clearTimeout(V.current),V.current=setTimeout(()=>l(!1),R)):_&&(clearTimeout(V.current),l(!1))},[g,l]),E=z.useCallback(()=>{P.current(),x.current=void 0},[]),T=z.useCallback(()=>{if(w.current){const _=T6(m.floating.current).body;_.style.pointerEvents="",_.removeAttribute(ng),w.current=!1}},[m]);return z.useEffect(()=>{if(!r)return;function _(){return f.current.openEvent?["click","mousedown"].includes(f.current.openEvent.type):!1}function R($){if(clearTimeout(V.current),M.current=!1,c&&!wL(y.current)||i>0&&nr(g.current,"open")===0)return;f.current.openEvent=$;const j=nr(g.current,"open",y.current);j?V.current=setTimeout(()=>{l(!0)},j):l(!0)}function k($){if(_())return;P.current();const j=T6(p);if(clearTimeout(H.current),h.current){clearTimeout(V.current),x.current=h.current({...e,tree:v,x:$.clientX,y:$.clientY,onClose(){T(),E(),O()}});const I=x.current;j.addEventListener("mousemove",I),P.current=()=>{j.removeEventListener("mousemove",I)};return}O()}function F($){_()||h.current==null||h.current({...e,tree:v,x:$.clientX,y:$.clientY,onClose(){E(),O()}})($)}if(O4(d)){const $=d;return s&&$.addEventListener("mouseleave",F),p?.addEventListener("mouseleave",F),o&&$.addEventListener("mousemove",R,{once:!0}),$.addEventListener("mouseenter",R),$.addEventListener("mouseleave",k),()=>{s&&$.removeEventListener("mouseleave",F),p?.removeEventListener("mouseleave",F),o&&$.removeEventListener("mousemove",R),$.removeEventListener("mouseenter",R),$.removeEventListener("mouseleave",k)}}},[d,p,r,e,c,i,o,O,E,T,l,s,v,g,h,f]),c8(()=>{var _;if(r&&s&&(_=h.current)!=null&&_.__options.blockPointerEvents&&N()){const F=T6(p).body;if(F.setAttribute(ng,""),F.style.pointerEvents="none",w.current=!0,O4(d)&&p){var R,k;const $=d,j=v==null||(R=v.nodesRef.current.find(I=>I.id===C))==null||(k=R.context)==null?void 0:k.elements.floating;return j&&(j.style.pointerEvents=""),$.style.pointerEvents="auto",p.style.pointerEvents="auto",()=>{$.style.pointerEvents="",p.style.pointerEvents=""}}}},[r,s,C,p,d,v,h,f,N]),c8(()=>{s||(y.current=void 0,E(),T())},[s,E,T]),z.useEffect(()=>()=>{E(),clearTimeout(V.current),clearTimeout(H.current),T()},[r,E,T]),z.useMemo(()=>{if(!r)return{};function _(R){y.current=R.pointerType}return{reference:{onPointerDown:_,onPointerEnter:_,onMouseMove(){s||i===0||(clearTimeout(H.current),H.current=setTimeout(()=>{M.current||l(!0)},i))}},floating:{onMouseEnter(){clearTimeout(V.current)},onMouseLeave(){u.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),O(!1)}}}},[u,r,i,s,l,O])},LL=z.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),SL=()=>z.useContext(LL),M41=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[a,c]=z.useReducer((s,l)=>({...s,...l}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),i=z.useRef(null),o=z.useCallback(s=>{c({currentId:s})},[]);return c8(()=>{a.currentId?i.current===null?i.current=a.currentId:c({isInstantPhase:!0}):(c({isInstantPhase:!1}),i.current=null)},[a.currentId]),z.createElement(LL.Provider,{value:z.useMemo(()=>({...a,setState:c,setCurrentId:o}),[a,c,o])},t)},x41=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:a}=t;const{currentId:c,setCurrentId:i,initialDelay:o,setState:s,timeoutMs:l}=SL();z.useEffect(()=>{c&&(s({delay:{open:1,close:nr(o,"close")}}),c!==a&&n(!1))},[a,n,s,c,o]),z.useEffect(()=>{function f(){n(!1),s({delay:o,currentId:null})}if(!r&&c===a)if(l){const u=window.setTimeout(f,l);return()=>{clearTimeout(u)}}else f()},[r,s,c,a,n,o,l]),z.useEffect(()=>{r&&i(a)},[r,i,a])};function w41(e){let t=e.activeElement;for(;((r=t)==null||(n=r.shadowRoot)==null?void 0:n.activeElement)!=null;){var r,n;t=t.shadowRoot.activeElement}return t}function ag(e,t){if(!e||!t)return!1;const r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&C41(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function Ni(e,t){let r=e.filter(a=>{var c;return a.parentId===t&&((c=a.context)==null?void 0:c.open)})||[],n=r;for(;n.length;)n=e.filter(a=>{var c;return(c=n)==null?void 0:c.some(i=>{var o;return a.parentId===i.id&&((o=a.context)==null?void 0:o.open)})})||[],r=r.concat(n);return r}function L41(e){return"composedPath"in e?e.composedPath()[0]:e.target}const S41=vr["useInsertionEffect".toString()],k41=S41||(e=>e());function kL(e){const t=z.useRef(()=>{});return k41(()=>{t.current=e}),z.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a!1),x=typeof d=="function"?V:d,H=z.useRef(!1),{escapeKeyBubbles:M,outsidePressBubbles:w}=_41(h);return z.useEffect(()=>{if(!r||!f)return;l.current.__escapeKeyBubbles=M,l.current.__outsidePressBubbles=w;function P(_){if(_.key==="Escape"){const R=g?Ni(g.nodesRef.current,c):[];if(R.length>0){let k=!0;if(R.forEach(F=>{var $;if(($=F.context)!=null&&$.open&&!F.context.dataRef.current.__escapeKeyBubbles){k=!1;return}}),!k)return}a.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function N(_){const R=H.current;if(H.current=!1,R||typeof x=="function"&&!x(_))return;const k=L41(_);if(xL(k)&&s){const j=s.ownerDocument.defaultView||window,I=k.scrollWidth>k.clientWidth,L=k.scrollHeight>k.clientHeight;let S=L&&_.offsetX>k.clientWidth;if(L&&j.getComputedStyle(k).direction==="rtl"&&(S=_.offsetX<=k.offsetWidth-k.clientWidth),S||I&&_.offsetY>k.clientHeight)return}const F=g&&Ni(g.nodesRef.current,c).some(j=>{var I;return ar(_,(I=j.context)==null?void 0:I.elements.floating)});if(ar(_,s)||ar(_,o)||F)return;const $=g?Ni(g.nodesRef.current,c):[];if($.length>0){let j=!0;if($.forEach(I=>{var L;if((L=I.context)!=null&&L.open&&!I.context.dataRef.current.__outsidePressBubbles){j=!1;return}}),!j)return}a.emit("dismiss",{type:"outsidePress",data:{returnFocus:y?{preventScroll:!0}:H41(_)||V41(_)}}),n(!1)}function O(){n(!1)}const E=T6(s);u&&E.addEventListener("keydown",P),x&&E.addEventListener(p,N);let T=[];return C&&(O4(o)&&(T=e6(o)),O4(s)&&(T=T.concat(e6(s))),!O4(i)&&i&&i.contextElement&&(T=T.concat(e6(i.contextElement)))),T=T.filter(_=>{var R;return _!==((R=E.defaultView)==null?void 0:R.visualViewport)}),T.forEach(_=>{_.addEventListener("scroll",O,{passive:!0})}),()=>{u&&E.removeEventListener("keydown",P),x&&E.removeEventListener(p,N),T.forEach(_=>{_.removeEventListener("scroll",O)})}},[l,s,o,i,u,x,p,a,g,c,r,n,C,f,M,w,y]),z.useEffect(()=>{H.current=!1},[x,p]),z.useMemo(()=>f?{reference:{[P41[v]]:()=>{m&&(a.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[N41[p]]:()=>{H.current=!0}}}:{},[f,a,m,p,v,n])},A41=function(e,t){let{open:r,onOpenChange:n,dataRef:a,events:c,refs:i,elements:{floating:o,domReference:s}}=e,{enabled:l=!0,keyboardOnly:f=!0}=t===void 0?{}:t;const u=z.useRef(""),d=z.useRef(!1),p=z.useRef();return z.useEffect(()=>{if(!l)return;const v=T6(o).defaultView||window;function C(){!r&&xL(s)&&s===w41(T6(s))&&(d.current=!0)}return v.addEventListener("blur",C),()=>{v.removeEventListener("blur",C)}},[o,s,r,l]),z.useEffect(()=>{if(!l)return;function m(v){(v.type==="referencePress"||v.type==="escapeKey")&&(d.current=!0)}return c.on("dismiss",m),()=>{c.off("dismiss",m)}},[c,l]),z.useEffect(()=>()=>{clearTimeout(p.current)},[]),z.useMemo(()=>l?{reference:{onPointerDown(m){let{pointerType:v}=m;u.current=v,d.current=!!(v&&f)},onMouseLeave(){d.current=!1},onFocus(m){var v;d.current||m.type==="focus"&&((v=a.current.openEvent)==null?void 0:v.type)==="mousedown"&&a.current.openEvent&&ar(a.current.openEvent,s)||(a.current.openEvent=m.nativeEvent,n(!0))},onBlur(m){d.current=!1;const v=m.relatedTarget,C=O4(v)&&v.hasAttribute("data-floating-ui-focus-guard")&&v.getAttribute("data-type")==="outside";p.current=setTimeout(()=>{ag(i.floating.current,v)||ag(s,v)||C||n(!1)})}}}:{},[l,f,s,i,a,n])},E41=function(e,t){let{open:r}=e,{enabled:n=!0,role:a="dialog"}=t===void 0?{}:t;const c=tg(),i=tg();return z.useMemo(()=>{const o={id:c,role:a};return n?a==="tooltip"?{reference:{"aria-describedby":r?c:void 0},floating:o}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":r?c:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:i}},floating:{...o,...a==="menu"&&{"aria-labelledby":i}}}:{}},[n,a,r,c,i])};function xu(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,a=u41(e),c=bu(),i=z.useRef(null),o=z.useRef({}),s=z.useState(()=>h41())[0],[l,f]=z.useState(null),u=z.useCallback(h=>{const g=O4(h)?{getBoundingClientRect:()=>h.getBoundingClientRect(),contextElement:h}:h;a.refs.setReference(g)},[a.refs]),d=z.useCallback(h=>{(O4(h)||h===null)&&(i.current=h,f(h)),(O4(a.refs.reference.current)||a.refs.reference.current===null||h!==null&&!O4(h))&&a.refs.setReference(h)},[a.refs]),p=z.useMemo(()=>({...a.refs,setReference:d,setPositionReference:u,domReference:i}),[a.refs,d,u]),m=z.useMemo(()=>({...a.elements,domReference:l}),[a.elements,l]),v=kL(r),C=z.useMemo(()=>({...a,refs:p,elements:m,dataRef:o,nodeId:n,events:s,open:t,onOpenChange:v}),[a,n,s,t,v,p,m]);return c8(()=>{const h=c?.nodesRef.current.find(g=>g.id===n);h&&(h.context=C)}),z.useMemo(()=>({...a,context:C,refs:p,reference:d,positionReference:u}),[a,p,C,d,u])}function _i(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(a=>a?a[r]:null).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(i=>{let[o,s]=i;if(o.indexOf("on")===0){if(n.has(o)||n.set(o,[]),typeof s=="function"){var l;(l=n.get(o))==null||l.push(s),a[o]=function(){for(var f,u=arguments.length,d=new Array(u),p=0;pm(...d))}}}else a[o]=s}),a),{})}}const $41=function(e){e===void 0&&(e=[]);const t=e,r=z.useCallback(c=>_i(c,e,"reference"),t),n=z.useCallback(c=>_i(c,e,"floating"),t),a=z.useCallback(c=>_i(c,e,"item"),e.map(c=>c?.item));return z.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:a}),[r,n,a])};function PL({opened:e,floating:t,positionDependencies:r}){const[n,a]=z.useState(0);z.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return s41(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference,t.refs.floating,e,n]),I2(()=>{t.update()},r),I2(()=>{a(c=>c+1)},[e])}function T41(e){const t=[mL(e.offset)];return e.middlewares.shift&&t.push(Hu({limiter:n41()})),e.middlewares.flip&&t.push(dL()),e.middlewares.inline&&t.push(pL()),t.push(bL({element:e.arrowRef,padding:e.arrowOffset})),t}function D41(e){const[t,r]=F3({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=()=>{var i;(i=e.onClose)==null||i.call(e),r(!1)},a=()=>{var i,o;t?((i=e.onClose)==null||i.call(e),r(!1)):((o=e.onOpen)==null||o.call(e),r(!0))},c=xu({placement:e.position,middleware:[...T41(e),...e.width==="target"?[a41({apply({rects:i}){var o,s;Object.assign((s=(o=c.refs.floating.current)==null?void 0:o.style)!=null?s:{},{width:`${i.reference.width}px`})}})]:[]]});return PL({opened:e.opened,positionDependencies:e.positionDependencies,floating:c}),I2(()=>{var i;(i=e.onPositionChange)==null||i.call(e,c.placement)},[c.placement]),{floating:c,controlled:typeof e.opened=="boolean",opened:t,onClose:n,onToggle:a}}const NL={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"},[R41,_L]=Ax(NL.context);var F41=Object.defineProperty,I41=Object.defineProperties,j41=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,OL=Object.prototype.hasOwnProperty,AL=Object.prototype.propertyIsEnumerable,cg=(e,t,r)=>t in e?F41(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ut=(e,t)=>{for(var r in t||(t={}))OL.call(t,r)&&cg(e,r,t[r]);if(hn)for(var r of hn(t))AL.call(t,r)&&cg(e,r,t[r]);return e},B41=(e,t)=>I41(e,j41(t)),W41=(e,t)=>{var r={};for(var n in e)OL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hn)for(var n of hn(e))t.indexOf(n)<0&&AL.call(e,n)&&(r[n]=e[n]);return r};const U41={refProp:"ref",popupType:"dialog"},EL=z.forwardRef((e,t)=>{const r=L1("PopoverTarget",U41,e),{children:n,refProp:a,popupType:c}=r,i=W41(r,["children","refProp","popupType"]);if(!d7(n))throw new Error(NL.children);const o=i,s=_L(),l=n3(s.reference,n.ref,t),f=s.withRoles?{"aria-haspopup":c,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return z.cloneElement(n,ut(B41(ut(ut(ut({},o),f),s.targetProps),{className:Dx(s.targetProps.className,o.className,n.props.className),[a]:l}),s.controlled?null:{onClick:s.onToggle}))});EL.displayName="@mantine/core/PopoverTarget";var q41=u1((e,{radius:t,shadow:r})=>({dropdown:{position:"absolute",backgroundColor:e.white,background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,padding:`${e.spacing.sm}px ${e.spacing.md}px`,boxShadow:e.shadows[r]||r||"none",borderRadius:e.fn.radius(t),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,zIndex:1}}));const G41=q41;var Y41=Object.defineProperty,ig=Object.getOwnPropertySymbols,Z41=Object.prototype.hasOwnProperty,K41=Object.prototype.propertyIsEnumerable,og=(e,t,r)=>t in e?Y41(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i0=(e,t)=>{for(var r in t||(t={}))Z41.call(t,r)&&og(e,r,t[r]);if(ig)for(var r of ig(t))K41.call(t,r)&&og(e,r,t[r]);return e};const sg={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function $L({transition:e,state:t,duration:r,timingFunction:n}){const a={transitionDuration:`${r}ms`,transitionTimingFunction:n};return typeof e=="string"?e in it?i0(i0(i0({transitionProperty:it[e].transitionProperty},a),it[e].common),it[e][sg[t]]):null:i0(i0(i0({transitionProperty:e.transitionProperty},a),e.common),e[sg[t]])}function TL({duration:e,exitDuration:t,timingFunction:r,mounted:n,onEnter:a,onExit:c,onEntered:i,onExited:o}){const s=H2(),l=dw(),f=s.respectReducedMotion?l:!1,[u,d]=z.useState(n?"entered":"exited");let p=f?0:e;const m=z.useRef(-1),v=C=>{const h=C?a:c,g=C?i:o;if(d(C?"pre-entering":"pre-exiting"),window.clearTimeout(m.current),p=f?0:C?e:t,p===0)typeof h=="function"&&h(),typeof g=="function"&&g(),d(C?"entered":"exited");else{const y=window.setTimeout(()=>{typeof h=="function"&&h(),d(C?"entering":"exiting")},10);m.current=window.setTimeout(()=>{window.clearTimeout(y),typeof g=="function"&&g(),d(C?"entered":"exited")},p)}};return I2(()=>{v(n)},[n]),z.useEffect(()=>()=>window.clearTimeout(m.current),[]),{transitionDuration:p,transitionStatus:u,transitionTimingFunction:r||s.transitionTimingFunction}}function n9({transition:e,duration:t=250,exitDuration:r=t,mounted:n,children:a,timingFunction:c,onExit:i,onEntered:o,onEnter:s,onExited:l}){const{transitionDuration:f,transitionStatus:u,transitionTimingFunction:d}=TL({mounted:n,exitDuration:r,duration:t,timingFunction:c,onExit:i,onEntered:o,onEnter:s,onExited:l});return f===0?n?b.createElement(b.Fragment,null,a({})):null:u==="exited"?null:b.createElement(b.Fragment,null,a($L({transition:e,duration:f,state:u,timingFunction:d})))}n9.displayName="@mantine/core/Transition";function DL({children:e,active:t=!0,refProp:r="ref"}){const n=du(t),a=n3(n,e?.ref);return d7(e)?z.cloneElement(e,{[r]:a}):e}DL.displayName="@mantine/core/FocusTrap";var X41=Object.defineProperty,Q41=Object.defineProperties,J41=Object.getOwnPropertyDescriptors,lg=Object.getOwnPropertySymbols,e61=Object.prototype.hasOwnProperty,t61=Object.prototype.propertyIsEnumerable,fg=(e,t,r)=>t in e?X41(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H6=(e,t)=>{for(var r in t||(t={}))e61.call(t,r)&&fg(e,r,t[r]);if(lg)for(var r of lg(t))t61.call(t,r)&&fg(e,r,t[r]);return e},dt=(e,t)=>Q41(e,J41(t));function ug(e,t,r,n){return e==="center"||n==="center"?{top:t}:e==="end"?{bottom:r}:e==="start"?{top:r}:{}}function dg(e,t,r,n,a){return e==="center"||n==="center"?{left:t}:e==="end"?{[a==="ltr"?"right":"left"]:r}:e==="start"?{[a==="ltr"?"left":"right"]:r}:{}}const r61={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function n61({position:e,withBorder:t,arrowSize:r,arrowOffset:n,arrowRadius:a,arrowPosition:c,arrowX:i,arrowY:o,dir:s}){const[l,f="center"]=e.split("-"),u={width:r,height:r,transform:"rotate(45deg)",position:"absolute",[r61[l]]:a},d=t?-r/2-1:-r/2;return l==="left"?dt(H6(H6({},u),ug(f,o,n,c)),{right:d,borderLeft:0,borderBottom:0}):l==="right"?dt(H6(H6({},u),ug(f,o,n,c)),{left:d,borderRight:0,borderTop:0}):l==="top"?dt(H6(H6({},u),dg(f,i,n,c,s)),{bottom:d,borderTop:0,borderLeft:0}):l==="bottom"?dt(H6(H6({},u),dg(f,i,n,c,s)),{top:d,borderBottom:0,borderRight:0}):{}}var a61=Object.defineProperty,c61=Object.defineProperties,i61=Object.getOwnPropertyDescriptors,vn=Object.getOwnPropertySymbols,RL=Object.prototype.hasOwnProperty,FL=Object.prototype.propertyIsEnumerable,pg=(e,t,r)=>t in e?a61(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o61=(e,t)=>{for(var r in t||(t={}))RL.call(t,r)&&pg(e,r,t[r]);if(vn)for(var r of vn(t))FL.call(t,r)&&pg(e,r,t[r]);return e},s61=(e,t)=>c61(e,i61(t)),l61=(e,t)=>{var r={};for(var n in e)RL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vn)for(var n of vn(e))t.indexOf(n)<0&&FL.call(e,n)&&(r[n]=e[n]);return r};const wu=z.forwardRef((e,t)=>{var r=e,{withBorder:n,position:a,arrowSize:c,arrowOffset:i,arrowRadius:o,arrowPosition:s,visible:l,arrowX:f,arrowY:u}=r,d=l61(r,["withBorder","position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]);const p=H2();return l?b.createElement("div",s61(o61({},d),{ref:t,style:n61({withBorder:n,position:a,arrowSize:c,arrowOffset:i,arrowRadius:o,arrowPosition:s,dir:p.dir,arrowX:f,arrowY:u})})):null});wu.displayName="@mantine/core/FloatingArrow";var f61=Object.defineProperty,u61=Object.defineProperties,d61=Object.getOwnPropertyDescriptors,gn=Object.getOwnPropertySymbols,IL=Object.prototype.hasOwnProperty,jL=Object.prototype.propertyIsEnumerable,mg=(e,t,r)=>t in e?f61(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pt=(e,t)=>{for(var r in t||(t={}))IL.call(t,r)&&mg(e,r,t[r]);if(gn)for(var r of gn(t))jL.call(t,r)&&mg(e,r,t[r]);return e},hg=(e,t)=>u61(e,d61(t)),p61=(e,t)=>{var r={};for(var n in e)IL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gn)for(var n of gn(e))t.indexOf(n)<0&&jL.call(e,n)&&(r[n]=e[n]);return r};const m61={};function BL(e){const t=L1("PopoverDropdown",m61,e),{style:r,className:n,children:a,onKeyDownCapture:c}=t,i=p61(t,["style","className","children","onKeyDownCapture"]),o=_L(),{classes:s,cx:l}=G41({radius:o.radius,shadow:o.shadow},{name:o.__staticSelector,classNames:o.classNames,styles:o.styles,unstyled:o.unstyled}),f=uu({opened:o.opened,shouldReturnFocus:o.returnFocus}),u=o.withRoles?{"aria-labelledby":o.getTargetId(),id:o.getDropdownId(),role:"dialog"}:{};return o.disabled?null:b.createElement(h8,{withinPortal:o.withinPortal},b.createElement(n9,{mounted:o.opened,transition:o.transition,duration:o.transitionDuration,exitDuration:typeof o.exitTransitionDuration=="number"?o.exitTransitionDuration:o.transitionDuration},d=>{var p,m;return b.createElement(DL,{active:o.trapFocus},b.createElement(y1,pt(hg(pt({},u),{tabIndex:-1,key:o.placement,ref:o.floating,style:hg(pt(pt({},r),d),{zIndex:o.zIndex,top:(p=o.y)!=null?p:0,left:(m=o.x)!=null?m:0,width:o.width==="target"?void 0:o.width}),className:l(s.dropdown,n),onKeyDownCapture:mX(o.onClose,{active:o.closeOnEscape,onTrigger:f,onKeyDown:c}),"data-position":o.placement}),i),a,b.createElement(wu,{ref:o.arrowRef,arrowX:o.arrowX,arrowY:o.arrowY,visible:o.withArrow,withBorder:!0,position:o.placement,arrowSize:o.arrowSize,arrowRadius:o.arrowRadius,arrowOffset:o.arrowOffset,arrowPosition:o.arrowPosition,className:s.arrow})))}))}BL.displayName="@mantine/core/PopoverDropdown";function WL(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[r,n]=t.split("-"),a=r==="right"?"left":"right";return n===void 0?a:`${a}-${n}`}return t}var vg=Object.getOwnPropertySymbols,h61=Object.prototype.hasOwnProperty,v61=Object.prototype.propertyIsEnumerable,g61=(e,t)=>{var r={};for(var n in e)h61.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vg)for(var n of vg(e))t.indexOf(n)<0&&v61.call(e,n)&&(r[n]=e[n]);return r};const z61={position:"bottom",offset:8,positionDependencies:[],transition:"fade",transitionDuration: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:d6("popover"),__staticSelector:"Popover",width:"max-content"};function f3(e){var t,r,n,a,c,i;const o=z.useRef(null),s=L1("Popover",z61,e),{children:l,position:f,offset:u,onPositionChange:d,positionDependencies:p,opened:m,transition:v,transitionDuration:C,width:h,middlewares:g,withArrow:y,arrowSize:V,arrowOffset:x,arrowRadius:H,arrowPosition:M,unstyled:w,classNames:P,styles:N,closeOnClickOutside:O,withinPortal:E,closeOnEscape:T,clickOutsideEvents:_,trapFocus:R,onClose:k,onOpen:F,onChange:$,zIndex:j,radius:I,shadow:L,id:S,defaultOpened:Z,exitTransitionDuration:n1,__staticSelector:h1,withRoles:K,disabled:c1,returnFocus:H1}=s,l1=g61(s,["children","position","offset","onPositionChange","positionDependencies","opened","transition","transitionDuration","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","exitTransitionDuration","__staticSelector","withRoles","disabled","returnFocus"]),[V1,i1]=z.useState(null),[f1,x1]=z.useState(null),M1=V4(S),D=H2(),B=D41({middlewares:g,width:h,position:WL(D.dir,f),offset:u+(y?V/2:0),arrowRef:o,arrowOffset:x,onPositionChange:d,positionDependencies:p,opened:m,defaultOpened:Z,onChange:$,onOpen:F,onClose:k});kJ(()=>O&&B.onClose(),_,[V1,f1]);const W=z.useCallback(J=>{i1(J),B.floating.reference(J)},[B.floating.reference]),Y=z.useCallback(J=>{x1(J),B.floating.floating(J)},[B.floating.floating]);return b.createElement(R41,{value:{returnFocus:H1,disabled:c1,controlled:B.controlled,reference:W,floating:Y,x:B.floating.x,y:B.floating.y,arrowX:(n=(r=(t=B.floating)==null?void 0:t.middlewareData)==null?void 0:r.arrow)==null?void 0:n.x,arrowY:(i=(c=(a=B.floating)==null?void 0:a.middlewareData)==null?void 0:c.arrow)==null?void 0:i.y,opened:B.opened,arrowRef:o,transition:v,transitionDuration:C,exitTransitionDuration:n1,width:h,withArrow:y,arrowSize:V,arrowOffset:x,arrowRadius:H,arrowPosition:M,placement:B.floating.placement,trapFocus:R,withinPortal:E,zIndex:j,radius:I,shadow:L,closeOnEscape:T,onClose:B.onClose,onToggle:B.onToggle,getTargetId:()=>`${M1}-target`,getDropdownId:()=>`${M1}-dropdown`,withRoles:K,targetProps:l1,__staticSelector:h1,classNames:P,styles:N,unstyled:w}},l)}f3.Target=EL;f3.Dropdown=BL;f3.displayName="@mantine/core/Popover";var y61=Object.defineProperty,zn=Object.getOwnPropertySymbols,UL=Object.prototype.hasOwnProperty,qL=Object.prototype.propertyIsEnumerable,gg=(e,t,r)=>t in e?y61(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C61=(e,t)=>{for(var r in t||(t={}))UL.call(t,r)&&gg(e,r,t[r]);if(zn)for(var r of zn(t))qL.call(t,r)&&gg(e,r,t[r]);return e},H61=(e,t)=>{var r={};for(var n in e)UL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zn)for(var n of zn(e))t.indexOf(n)<0&&qL.call(e,n)&&(r[n]=e[n]);return r};function V61(e){var t=e,{children:r,component:n="div",maxHeight:a=220,direction:c="column",id:i,innerRef:o,__staticSelector:s,styles:l,classNames:f,unstyled:u}=t,d=H61(t,["children","component","maxHeight","direction","id","innerRef","__staticSelector","styles","classNames","unstyled"]);const{classes:p}=X31(null,{name:s,styles:l,classNames:f,unstyled:u});return b.createElement(f3.Dropdown,C61({p:0,onMouseDown:m=>m.preventDefault()},d),b.createElement("div",{style:{maxHeight:a,display:"flex"}},b.createElement(y1,{component:n||"div",id:`${i}-items`,"aria-labelledby":`${i}-label`,role:"listbox",onMouseDown:m=>m.preventDefault(),style:{flex:1,overflowY:n!==e9?"auto":void 0},"data-combobox-popover":!0,ref:o},b.createElement("div",{className:p.itemsWrapper,style:{flexDirection:c}},r))))}function Z6({opened:e,transition:t="fade",transitionDuration:r=0,shadow:n,withinPortal:a,children:c,__staticSelector:i,onDirectionChange:o,switchDirectionOnFlip:s,zIndex:l,dropdownPosition:f,positionDependencies:u=[],classNames:d,styles:p,unstyled:m,readOnly:v}){return b.createElement(f3,{unstyled:m,classNames:d,styles:p,width:"target",withRoles:!1,opened:e,middlewares:{flip:f==="flip",shift:!1},position:f==="flip"?"bottom":f,positionDependencies:u,zIndex:l,__staticSelector:i,withinPortal:a,transition:t,transitionDuration:r,shadow:n,disabled:v,onPositionChange:C=>s&&o?.(C==="top"?"column-reverse":"column")},c)}Z6.Target=f3.Target;Z6.Dropdown=V61;var b61=Object.defineProperty,M61=Object.defineProperties,x61=Object.getOwnPropertyDescriptors,yn=Object.getOwnPropertySymbols,GL=Object.prototype.hasOwnProperty,YL=Object.prototype.propertyIsEnumerable,zg=(e,t,r)=>t in e?b61(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oi=(e,t)=>{for(var r in t||(t={}))GL.call(t,r)&&zg(e,r,t[r]);if(yn)for(var r of yn(t))YL.call(t,r)&&zg(e,r,t[r]);return e},w61=(e,t)=>M61(e,x61(t)),L61=(e,t)=>{var r={};for(var n in e)GL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&yn)for(var n of yn(e))t.indexOf(n)<0&&YL.call(e,n)&&(r[n]=e[n]);return r};function Lu(e,t,r){const n=L1(e,t,r),{label:a,description:c,error:i,required:o,classNames:s,styles:l,className:f,unstyled:u,__staticSelector:d,sx:p,errorProps:m,labelProps:v,descriptionProps:C,wrapperProps:h,id:g,size:y,style:V,inputContainer:x,inputWrapperOrder:H,withAsterisk:M}=n,w=L61(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder","withAsterisk"]),P=V4(g),{systemStyles:N,rest:O}=p6(w);return w61(Oi({},O),{classNames:s,styles:l,unstyled:u,wrapperProps:Oi(Oi({label:a,description:c,error:i,required:o,classNames:s,className:f,__staticSelector:d,sx:p,errorProps:m,labelProps:v,descriptionProps:C,unstyled:u,styles:l,id:P,size:y,style:V,inputContainer:x,inputWrapperOrder:H,withAsterisk:M},h),N),inputProps:{required:o,classNames:s,styles:l,unstyled:u,id:P,size:y,__staticSelector:d,invalid:!!i}})}var S61=u1((e,{size:t})=>({label:{display:"inline-block",fontSize:e.fn.size({size:t,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}}));const k61=S61;var P61=Object.defineProperty,Cn=Object.getOwnPropertySymbols,ZL=Object.prototype.hasOwnProperty,KL=Object.prototype.propertyIsEnumerable,yg=(e,t,r)=>t in e?P61(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,N61=(e,t)=>{for(var r in t||(t={}))ZL.call(t,r)&&yg(e,r,t[r]);if(Cn)for(var r of Cn(t))KL.call(t,r)&&yg(e,r,t[r]);return e},_61=(e,t)=>{var r={};for(var n in e)ZL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Cn)for(var n of Cn(e))t.indexOf(n)<0&&KL.call(e,n)&&(r[n]=e[n]);return r};const O61={labelElement:"label",size:"sm"},Su=z.forwardRef((e,t)=>{const r=L1("InputLabel",O61,e),{labelElement:n,children:a,required:c,size:i,classNames:o,styles:s,unstyled:l,className:f,htmlFor:u,__staticSelector:d}=r,p=_61(r,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector"]),{classes:m,cx:v}=k61({size:i},{name:["InputWrapper",d],classNames:o,styles:s,unstyled:l});return b.createElement(y1,N61({component:n,ref:t,className:v(m.label,f),htmlFor:n==="label"?u:void 0},p),a,c&&b.createElement("span",{className:m.required,"aria-hidden":!0}," *"))});Su.displayName="@mantine/core/InputLabel";var A61=u1((e,{size:t})=>({error:{wordBreak:"break-word",color:e.fn.variant({variant:"filled",color:"red"}).background,fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}}));const E61=A61;var $61=Object.defineProperty,Hn=Object.getOwnPropertySymbols,XL=Object.prototype.hasOwnProperty,QL=Object.prototype.propertyIsEnumerable,Cg=(e,t,r)=>t in e?$61(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T61=(e,t)=>{for(var r in t||(t={}))XL.call(t,r)&&Cg(e,r,t[r]);if(Hn)for(var r of Hn(t))QL.call(t,r)&&Cg(e,r,t[r]);return e},D61=(e,t)=>{var r={};for(var n in e)XL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Hn)for(var n of Hn(e))t.indexOf(n)<0&&QL.call(e,n)&&(r[n]=e[n]);return r};const R61={size:"sm"},ku=z.forwardRef((e,t)=>{const r=L1("InputError",R61,e),{children:n,className:a,classNames:c,styles:i,unstyled:o,size:s,__staticSelector:l}=r,f=D61(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]),{classes:u,cx:d}=E61({size:s},{name:["InputWrapper",l],classNames:c,styles:i,unstyled:o});return b.createElement(Y1,T61({className:d(u.error,a),ref:t},f),n)});ku.displayName="@mantine/core/InputError";var F61=u1((e,{size:t})=>({description:{wordBreak:"break-word",color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}}));const I61=F61;var j61=Object.defineProperty,Vn=Object.getOwnPropertySymbols,JL=Object.prototype.hasOwnProperty,eS=Object.prototype.propertyIsEnumerable,Hg=(e,t,r)=>t in e?j61(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,B61=(e,t)=>{for(var r in t||(t={}))JL.call(t,r)&&Hg(e,r,t[r]);if(Vn)for(var r of Vn(t))eS.call(t,r)&&Hg(e,r,t[r]);return e},W61=(e,t)=>{var r={};for(var n in e)JL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Vn)for(var n of Vn(e))t.indexOf(n)<0&&eS.call(e,n)&&(r[n]=e[n]);return r};const U61={size:"sm"},Pu=z.forwardRef((e,t)=>{const r=L1("InputDescription",U61,e),{children:n,className:a,classNames:c,styles:i,unstyled:o,size:s,__staticSelector:l}=r,f=W61(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]),{classes:u,cx:d}=I61({size:s},{name:["InputWrapper",l],classNames:c,styles:i,unstyled:o});return b.createElement(Y1,B61({color:"dimmed",className:d(u.description,a),ref:t,unstyled:o},f),n)});Pu.displayName="@mantine/core/InputDescription";const tS=z.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0}),q61=tS.Provider,G61=()=>z.useContext(tS);function Y61(e,{hasDescription:t,hasError:r}){const n=e.findIndex(s=>s==="input"),a=e[n-1],c=e[n+1];return{offsetBottom:t&&c==="description"||r&&c==="error",offsetTop:t&&a==="description"||r&&a==="error"}}var Z61=Object.defineProperty,K61=Object.defineProperties,X61=Object.getOwnPropertyDescriptors,Vg=Object.getOwnPropertySymbols,Q61=Object.prototype.hasOwnProperty,J61=Object.prototype.propertyIsEnumerable,bg=(e,t,r)=>t in e?Z61(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ee1=(e,t)=>{for(var r in t||(t={}))Q61.call(t,r)&&bg(e,r,t[r]);if(Vg)for(var r of Vg(t))J61.call(t,r)&&bg(e,r,t[r]);return e},te1=(e,t)=>K61(e,X61(t)),re1=u1(e=>({root:te1(ee1({},e.fn.fontStyles()),{lineHeight:e.lineHeight})}));const ne1=re1;var ae1=Object.defineProperty,ce1=Object.defineProperties,ie1=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,rS=Object.prototype.hasOwnProperty,nS=Object.prototype.propertyIsEnumerable,Mg=(e,t,r)=>t in e?ae1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V6=(e,t)=>{for(var r in t||(t={}))rS.call(t,r)&&Mg(e,r,t[r]);if(bn)for(var r of bn(t))nS.call(t,r)&&Mg(e,r,t[r]);return e},xg=(e,t)=>ce1(e,ie1(t)),oe1=(e,t)=>{var r={};for(var n in e)rS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&bn)for(var n of bn(e))t.indexOf(n)<0&&nS.call(e,n)&&(r[n]=e[n]);return r};const se1={labelElement:"label",size:"sm",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},aS=z.forwardRef((e,t)=>{const r=L1("InputWrapper",se1,e),{className:n,label:a,children:c,required:i,id:o,error:s,description:l,labelElement:f,labelProps:u,descriptionProps:d,errorProps:p,classNames:m,styles:v,size:C,inputContainer:h,__staticSelector:g,unstyled:y,inputWrapperOrder:V,withAsterisk:x}=r,H=oe1(r,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder","withAsterisk"]),{classes:M,cx:w}=ne1(null,{classNames:m,styles:v,name:["InputWrapper",g],unstyled:y}),P={classNames:m,styles:v,unstyled:y,size:C,__staticSelector:g},N=typeof x=="boolean"?x:i,O=o?`${o}-error`:p?.id,E=o?`${o}-description`:d?.id,_=`${!!s&&typeof s!="boolean"?O:""} ${l?E:""}`,R=_.trim().length>0?_.trim():void 0,k=a&&b.createElement(Su,V6(V6({key:"label",labelElement:f,id:o?`${o}-label`:void 0,htmlFor:o,required:N},P),u),a),F=l&&b.createElement(Pu,xg(V6(V6({key:"description"},d),P),{size:d?.size||P.size,id:d?.id||E}),l),$=b.createElement(z.Fragment,{key:"input"},h(c)),j=typeof s!="boolean"&&s&&b.createElement(ku,xg(V6(V6({},p),P),{size:p?.size||P.size,key:"error",id:p?.id||O}),s),I=V.map(L=>{switch(L){case"label":return k;case"input":return $;case"description":return F;case"error":return j;default:return null}});return b.createElement(q61,{value:V6({describedBy:R},Y61(V,{hasDescription:!!F,hasError:!!j}))},b.createElement(y1,V6({className:w(M.root,n),ref:t},H),I))});aS.displayName="@mantine/core/InputWrapper";var le1=Object.defineProperty,Mn=Object.getOwnPropertySymbols,cS=Object.prototype.hasOwnProperty,iS=Object.prototype.propertyIsEnumerable,wg=(e,t,r)=>t in e?le1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fe1=(e,t)=>{for(var r in t||(t={}))cS.call(t,r)&&wg(e,r,t[r]);if(Mn)for(var r of Mn(t))iS.call(t,r)&&wg(e,r,t[r]);return e},ue1=(e,t)=>{var r={};for(var n in e)cS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Mn)for(var n of Mn(e))t.indexOf(n)<0&&iS.call(e,n)&&(r[n]=e[n]);return r};const de1={},oS=z.forwardRef((e,t)=>{const r=L1("InputPlaceholder",de1,e),{sx:n}=r,a=ue1(r,["sx"]);return b.createElement(y1,fe1({component:"span",sx:[c=>c.fn.placeholderStyles(),...B5(n)],ref:t},a))});oS.displayName="@mantine/core/InputPlaceholder";var pe1=Object.defineProperty,me1=Object.defineProperties,he1=Object.getOwnPropertyDescriptors,Lg=Object.getOwnPropertySymbols,ve1=Object.prototype.hasOwnProperty,ge1=Object.prototype.propertyIsEnumerable,Sg=(e,t,r)=>t in e?pe1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mt=(e,t)=>{for(var r in t||(t={}))ve1.call(t,r)&&Sg(e,r,t[r]);if(Lg)for(var r of Lg(t))ge1.call(t,r)&&Sg(e,r,t[r]);return e},Ai=(e,t)=>me1(e,he1(t));const _2={xs:30,sm:36,md:42,lg:50,xl:60};function ze1({theme:e,variant:t}){return t==="default"?{border:`1px 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:"1px 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:28,outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}}var ye1=u1((e,{size:t,multiline:r,radius:n,variant:a,invalid:c,rightSectionWidth:i,withRightSection:o,iconWidth:s,offsetBottom:l,offsetTop:f,pointer:u})=>{const d=e.fn.variant({variant:"filled",color:"red"}).background,p=a==="default"||a==="filled"?{minHeight:e.fn.size({size:t,sizes:_2}),paddingLeft:e.fn.size({size:t,sizes:_2})/3,paddingRight:o?i:e.fn.size({size:t,sizes:_2})/3,borderRadius:e.fn.radius(n)}:null;return{wrapper:{position:"relative",marginTop:f?`calc(${e.spacing.xs}px / 2)`:void 0,marginBottom:l?`calc(${e.spacing.xs}px / 2)`:void 0},input:mt(Ai(mt(Ai(mt({},e.fn.fontStyles()),{height:r?a==="unstyled"?void 0:"auto":e.fn.size({size:t,sizes:_2}),WebkitTapHighlightColor:"transparent",lineHeight:r?e.lineHeight:`${e.fn.size({size:t,sizes:_2})-2}px`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),width:"100%",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:u?"pointer":void 0}),p),{"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},"&::placeholder":Ai(mt({},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"}}),ze1({theme:e,variant:a})),withIcon:{paddingLeft:typeof s=="number"?s:e.fn.size({size:t,sizes:_2})},invalid:{color:d,borderColor:d,"&::placeholder":{opacity:1,color:d}},disabled:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:typeof s=="number"?s:e.fn.size({size:t,sizes:_2}),color:c?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:i}}});const Ce1=ye1;var He1=Object.defineProperty,Ve1=Object.defineProperties,be1=Object.getOwnPropertyDescriptors,xn=Object.getOwnPropertySymbols,sS=Object.prototype.hasOwnProperty,lS=Object.prototype.propertyIsEnumerable,kg=(e,t,r)=>t in e?He1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ht=(e,t)=>{for(var r in t||(t={}))sS.call(t,r)&&kg(e,r,t[r]);if(xn)for(var r of xn(t))lS.call(t,r)&&kg(e,r,t[r]);return e},Pg=(e,t)=>Ve1(e,be1(t)),Me1=(e,t)=>{var r={};for(var n in e)sS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xn)for(var n of xn(e))t.indexOf(n)<0&&lS.call(e,n)&&(r[n]=e[n]);return r};const xe1={rightSectionWidth:36,size:"sm",variant:"default"},e0=z.forwardRef((e,t)=>{const r=L1("Input",xe1,e),{className:n,invalid:a,required:c,disabled:i,variant:o,icon:s,style:l,rightSectionWidth:f,iconWidth:u,rightSection:d,rightSectionProps:p,radius:m,size:v,wrapperProps:C,classNames:h,styles:g,__staticSelector:y,multiline:V,sx:x,unstyled:H,pointer:M}=r,w=Me1(r,["className","invalid","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:P,offsetTop:N,describedBy:O}=G61(),{classes:E,cx:T}=Ce1({radius:m,size:v,multiline:V,variant:o,invalid:a,rightSectionWidth:f,iconWidth:u,withRightSection:!!d,offsetBottom:P,offsetTop:N,pointer:M},{classNames:h,styles:g,name:["Input",y],unstyled:H}),{systemStyles:_,rest:R}=p6(w);return b.createElement(y1,ht(ht({className:T(E.wrapper,n),sx:x,style:l},_),C),s&&b.createElement("div",{className:E.icon},s),b.createElement(y1,Pg(ht({component:"input"},R),{ref:t,required:c,"aria-invalid":a,"aria-describedby":O,disabled:i,className:T(E[`${o}Variant`],E.input,{[E.withIcon]:s,[E.invalid]:a,[E.disabled]:i})})),d&&b.createElement("div",Pg(ht({},p),{className:E.rightSection}),d))});e0.displayName="@mantine/core/Input";e0.Wrapper=aS;e0.Label=Su;e0.Description=Pu;e0.Error=ku;e0.Placeholder=oS;const S2=e0;var we1=Object.defineProperty,Le1=Object.defineProperties,Se1=Object.getOwnPropertyDescriptors,Ng=Object.getOwnPropertySymbols,ke1=Object.prototype.hasOwnProperty,Pe1=Object.prototype.propertyIsEnumerable,_g=(e,t,r)=>t in e?we1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ne1=(e,t)=>{for(var r in t||(t={}))ke1.call(t,r)&&_g(e,r,t[r]);if(Ng)for(var r of Ng(t))Pe1.call(t,r)&&_g(e,r,t[r]);return e},_e1=(e,t)=>Le1(e,Se1(t));function Oe1(e){return b.createElement("svg",_e1(Ne1({},e),{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),b.createElement("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var Ae1=Object.defineProperty,Ee1=Object.defineProperties,$e1=Object.getOwnPropertyDescriptors,Og=Object.getOwnPropertySymbols,Te1=Object.prototype.hasOwnProperty,De1=Object.prototype.propertyIsEnumerable,Ag=(e,t,r)=>t in e?Ae1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Re1=(e,t)=>{for(var r in t||(t={}))Te1.call(t,r)&&Ag(e,r,t[r]);if(Og)for(var r of Og(t))De1.call(t,r)&&Ag(e,r,t[r]);return e},Fe1=(e,t)=>Ee1(e,$e1(t));const fS=z.createContext(null);function Ie1({spacing:e,children:t}){return b.createElement(fS.Provider,{value:{spacing:e}},t)}function je1(){const e=z.useContext(fS);return e?Fe1(Re1({},e),{withinGroup:!0}):{spacing:null,withinGroup:!1}}var Be1=u1((e,{spacing:t})=>({root:{display:"flex",paddingLeft:e.fn.size({size:t,sizes:e.spacing})}}));const We1=Be1;var Ue1=Object.defineProperty,wn=Object.getOwnPropertySymbols,uS=Object.prototype.hasOwnProperty,dS=Object.prototype.propertyIsEnumerable,Eg=(e,t,r)=>t in e?Ue1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qe1=(e,t)=>{for(var r in t||(t={}))uS.call(t,r)&&Eg(e,r,t[r]);if(wn)for(var r of wn(t))dS.call(t,r)&&Eg(e,r,t[r]);return e},Ge1=(e,t)=>{var r={};for(var n in e)uS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&wn)for(var n of wn(e))t.indexOf(n)<0&&dS.call(e,n)&&(r[n]=e[n]);return r};const Ye1={},pS=z.forwardRef((e,t)=>{const r=L1("AvatarGroup",Ye1,e),{children:n,spacing:a="sm",unstyled:c,className:i}=r,o=Ge1(r,["children","spacing","unstyled","className"]),{classes:s,cx:l}=We1({spacing:a},{name:"AvatarGroup",unstyled:c});return b.createElement(Ie1,{spacing:a},b.createElement(y1,qe1({ref:t,className:l(s.root,i)},o),n))});pS.displayName="@mantine/core/AvatarGroup";var Ze1=Object.defineProperty,Ke1=Object.defineProperties,Xe1=Object.getOwnPropertyDescriptors,$g=Object.getOwnPropertySymbols,Qe1=Object.prototype.hasOwnProperty,Je1=Object.prototype.propertyIsEnumerable,Tg=(e,t,r)=>t in e?Ze1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ei=(e,t)=>{for(var r in t||(t={}))Qe1.call(t,r)&&Tg(e,r,t[r]);if($g)for(var r of $g(t))Je1.call(t,r)&&Tg(e,r,t[r]);return e},Dg=(e,t)=>Ke1(e,Xe1(t));const vt={xs:16,sm:26,md:38,lg:56,xl:84};function e01({withinGroup:e,spacing:t,theme:r}){return e?{marginLeft:-r.fn.size({size:t,sizes:r.spacing}),backgroundColor:`${r.colorScheme==="dark"?r.colors.dark[7]:r.white}`,border:`2px solid ${r.colorScheme==="dark"?r.colors.dark[7]:r.white}`}:null}var t01=u1((e,{size:t,radius:r,color:n,withinGroup:a,spacing:c,variant:i,gradient:o})=>{const s=e.fn.variant({variant:i,color:n,gradient:o});return{root:Ei(Dg(Ei({},e.fn.focusStyles()),{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",display:"block",userSelect:"none",overflow:"hidden",width:e.fn.size({size:t,sizes:vt}),minWidth:e.fn.size({size:t,sizes:vt}),height:e.fn.size({size:t,sizes:vt}),borderRadius:e.fn.radius(r),textDecoration:"none",border:0,backgroundColor:"transparent",padding:0}),e01({withinGroup:a,spacing:c,theme:e})),image:{objectFit:"cover",width:"100%",height:"100%",display:"block"},placeholder:Dg(Ei({},e.fn.fontStyles()),{fontSize:e.fn.size({size:t,sizes:vt})/2.5,color:s.color,fontWeight:700,backgroundColor:s.background,display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",userSelect:"none",backgroundImage:i==="gradient"?s.background:void 0,border:`${i==="gradient"?0:1}px solid ${s.border}`,borderRadius:e.fn.radius(r)}),placeholderIcon:{width:"70%",height:"70%",color:s.color}}});const r01=t01;var n01=Object.defineProperty,a01=Object.defineProperties,c01=Object.getOwnPropertyDescriptors,Ln=Object.getOwnPropertySymbols,mS=Object.prototype.hasOwnProperty,hS=Object.prototype.propertyIsEnumerable,Rg=(e,t,r)=>t in e?n01(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fg=(e,t)=>{for(var r in t||(t={}))mS.call(t,r)&&Rg(e,r,t[r]);if(Ln)for(var r of Ln(t))hS.call(t,r)&&Rg(e,r,t[r]);return e},i01=(e,t)=>a01(e,c01(t)),o01=(e,t)=>{var r={};for(var n in e)mS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ln)for(var n of Ln(e))t.indexOf(n)<0&&hS.call(e,n)&&(r[n]=e[n]);return r};const s01={size:"md",color:"gray",variant:"light"},Nu=z.forwardRef((e,t)=>{const r=L1("Avatar",s01,e),{className:n,size:a,src:c,alt:i,radius:o,children:s,color:l,variant:f,gradient:u,classNames:d,styles:p,imageProps:m,unstyled:v}=r,C=o01(r,["className","size","src","alt","radius","children","color","variant","gradient","classNames","styles","imageProps","unstyled"]),h=je1(),[g,y]=z.useState(!c),{classes:V,cx:x}=r01({color:l,radius:o,size:a,withinGroup:h.withinGroup,spacing:h.spacing,variant:f,gradient:u},{classNames:d,styles:p,unstyled:v,name:"Avatar"});return z.useEffect(()=>{y(!c)},[c]),b.createElement(y1,Fg({component:"div",className:x(V.root,n),ref:t},C),g?b.createElement("div",{className:V.placeholder,title:i},s||b.createElement(Oe1,{className:V.placeholderIcon})):b.createElement("img",i01(Fg({},m),{className:V.image,src:c,alt:i,onError:()=>y(!0)})))});Nu.displayName="@mantine/core/Avatar";Nu.Group=pS;const l01=Nu;var f01=u1((e,{orientation:t,buttonBorderWidth:r})=>({root:{display:"flex",flexDirection:t==="vertical"?"column":"row","& [data-button]":{"&:first-of-type":{borderBottomRightRadius:0,[t==="vertical"?"borderBottomLeftRadius":"borderTopRightRadius"]:0,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:r/2},"&:last-of-type":{borderTopLeftRadius:0,[t==="vertical"?"borderTopRightRadius":"borderBottomLeftRadius"]:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:r/2},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:r/2,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:r/2},"& + [data-button]":{[t==="vertical"?"marginTop":"marginLeft"]:-r,"@media (min-resolution: 192dpi)":{[t==="vertical"?"marginTop":"marginLeft"]:0}}}}}));const u01=f01;var d01=Object.defineProperty,Sn=Object.getOwnPropertySymbols,vS=Object.prototype.hasOwnProperty,gS=Object.prototype.propertyIsEnumerable,Ig=(e,t,r)=>t in e?d01(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p01=(e,t)=>{for(var r in t||(t={}))vS.call(t,r)&&Ig(e,r,t[r]);if(Sn)for(var r of Sn(t))gS.call(t,r)&&Ig(e,r,t[r]);return e},m01=(e,t)=>{var r={};for(var n in e)vS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sn)for(var n of Sn(e))t.indexOf(n)<0&&gS.call(e,n)&&(r[n]=e[n]);return r};const h01={orientation:"horizontal",buttonBorderWidth:1},zS=z.forwardRef((e,t)=>{const r=L1("ButtonGroup",h01,e),{className:n,orientation:a,buttonBorderWidth:c,unstyled:i}=r,o=m01(r,["className","orientation","buttonBorderWidth","unstyled"]),{classes:s,cx:l}=u01({orientation:a,buttonBorderWidth:c},{name:"ButtonGroup",unstyled:i});return b.createElement(y1,p01({className:l(s.root,n),ref:t},o))});zS.displayName="@mantine/core/ButtonGroup";var v01=Object.defineProperty,g01=Object.defineProperties,z01=Object.getOwnPropertyDescriptors,jg=Object.getOwnPropertySymbols,y01=Object.prototype.hasOwnProperty,C01=Object.prototype.propertyIsEnumerable,Bg=(e,t,r)=>t in e?v01(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Se=(e,t)=>{for(var r in t||(t={}))y01.call(t,r)&&Bg(e,r,t[r]);if(jg)for(var r of jg(t))C01.call(t,r)&&Bg(e,r,t[r]);return e},el=(e,t)=>g01(e,z01(t));const tl={xs:{height:_2.xs,paddingLeft:14,paddingRight:14},sm:{height:_2.sm,paddingLeft:18,paddingRight:18},md:{height:_2.md,paddingLeft:22,paddingRight:22},lg:{height:_2.lg,paddingLeft:26,paddingRight:26},xl:{height:_2.xl,paddingLeft:32,paddingRight:32},"compact-xs":{height:22,paddingLeft:7,paddingRight:7},"compact-sm":{height:26,paddingLeft:8,paddingRight:8},"compact-md":{height:30,paddingLeft:10,paddingRight:10},"compact-lg":{height:34,paddingLeft:12,paddingRight:12},"compact-xl":{height:40,paddingLeft:14,paddingRight:14}};function H01({compact:e,size:t,withLeftIcon:r,withRightIcon:n}){if(e)return tl[`compact-${t}`];const a=tl[t];return el(Se({},a),{paddingLeft:r?a.paddingLeft/1.5:a.paddingLeft,paddingRight:n?a.paddingRight/1.5:a.paddingRight})}const V01=e=>({display:e?"block":"inline-block",width:e?"100%":"auto"});function b01({variant:e,theme:t,color:r,gradient:n}){const a=t.fn.variant({color:r,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:a.background,color:a.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:Se({border:`1px solid ${a.border}`,backgroundColor:a.background,color:a.color},t.fn.hover({backgroundColor:a.hover}))}var M01=u1((e,{color:t,size:r,radius:n,fullWidth:a,compact:c,gradient:i,variant:o,withLeftIcon:s,withRightIcon:l})=>({root:el(Se(el(Se(Se(Se(Se({},H01({compact:c,size:r,withLeftIcon:s,withRightIcon:l})),e.fn.fontStyles()),e.fn.focusStyles()),V01(a)),{borderRadius:e.fn.radius(n),fontWeight:600,position:"relative",lineHeight:1,fontSize:e.fn.size({size:r,sizes:e.fontSizes}),userSelect:"none",cursor:"pointer"}),b01({variant:o,theme:e,color:t,gradient:i})),{"&:active":e.activeStyles,"&:disabled, &[data-disabled]":{borderColor:"transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],color:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[5],cursor:"not-allowed",backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}}),icon:{display:"flex",alignItems:"center"},leftIcon:{marginRight:10},rightIcon:{marginLeft:10},centerLoader:{position:"absolute",left:"50%",transform:"translateX(-50%)",opacity:.5},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}}));const x01=M01;var w01=Object.defineProperty,kn=Object.getOwnPropertySymbols,yS=Object.prototype.hasOwnProperty,CS=Object.prototype.propertyIsEnumerable,Wg=(e,t,r)=>t in e?w01(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ug=(e,t)=>{for(var r in t||(t={}))yS.call(t,r)&&Wg(e,r,t[r]);if(kn)for(var r of kn(t))CS.call(t,r)&&Wg(e,r,t[r]);return e},L01=(e,t)=>{var r={};for(var n in e)yS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&kn)for(var n of kn(e))t.indexOf(n)<0&&CS.call(e,n)&&(r[n]=e[n]);return r};const S01={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},_u=z.forwardRef((e,t)=>{const r=L1("Button",S01,e),{className:n,size:a,color:c,type:i,disabled:o,children:s,leftIcon:l,rightIcon:f,fullWidth:u,variant:d,radius:p,uppercase:m,compact:v,loading:C,loaderPosition:h,loaderProps:g,gradient:y,classNames:V,styles:x,unstyled:H}=r,M=L01(r,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:w,cx:P,theme:N}=x01({radius:p,color:c,size:a,fullWidth:u,compact:v,gradient:y,variant:d,withLeftIcon:!!l,withRightIcon:!!f},{name:"Button",unstyled:H,classNames:V,styles:x}),O=N.fn.variant({color:c,variant:d}),E=b.createElement(mu,Ug({color:O.color,size:N.fn.size({size:a,sizes:tl}).height/2},g));return b.createElement(h7,Ug({className:P(w.root,n),type:i,disabled:o,"data-button":!0,"data-disabled":o||void 0,"data-loading":C||void 0,ref:t,unstyled:H},M),b.createElement("div",{className:w.inner},(l||C&&h==="left")&&b.createElement("span",{className:P(w.icon,w.leftIcon)},C&&h==="left"?E:l),C&&h==="center"&&b.createElement("span",{className:w.centerLoader},E),b.createElement("span",{className:w.label,style:{textTransform:m?"uppercase":void 0}},s),(f||C&&h==="right")&&b.createElement("span",{className:P(w.icon,w.rightIcon)},C&&h==="right"?E:f)))});_u.displayName="@mantine/core/Button";_u.Group=zS;const J2=_u;var k01=u1((e,{radius:t,shadow:r,withBorder:n})=>({root:{outline:0,WebkitTapHighlightColor:"transparent",display:"block",textDecoration:"none",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,boxSizing:"border-box",borderRadius:e.fn.radius(t),boxShadow:e.shadows[r]||r||"none",border:n?`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`:void 0}}));const P01=k01;var N01=Object.defineProperty,Pn=Object.getOwnPropertySymbols,HS=Object.prototype.hasOwnProperty,VS=Object.prototype.propertyIsEnumerable,qg=(e,t,r)=>t in e?N01(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_01=(e,t)=>{for(var r in t||(t={}))HS.call(t,r)&&qg(e,r,t[r]);if(Pn)for(var r of Pn(t))VS.call(t,r)&&qg(e,r,t[r]);return e},O01=(e,t)=>{var r={};for(var n in e)HS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Pn)for(var n of Pn(e))t.indexOf(n)<0&&VS.call(e,n)&&(r[n]=e[n]);return r};const A01={},bS=z.forwardRef((e,t)=>{const r=L1("Paper",A01,e),{className:n,children:a,radius:c,withBorder:i,shadow:o,unstyled:s}=r,l=O01(r,["className","children","radius","withBorder","shadow","unstyled"]),{classes:f,cx:u}=P01({radius:c,shadow:o,withBorder:i},{name:"Paper",unstyled:s});return b.createElement(y1,_01({className:u(f.root,n),ref:t},l),a)});bS.displayName="@mantine/core/Paper";const MS=bS,xS=z.createContext(null),E01=xS.Provider,$01=()=>z.useContext(xS);function T01(e){return z.Children.toArray(e).filter(Boolean)}const D01={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var R01=u1((e,{spacing:t,position:r,noWrap:n,grow:a,align:c,count:i})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:c||"center",flexWrap:n?"nowrap":"wrap",justifyContent:D01[r],gap:e.fn.size({size:t,sizes:e.spacing}),"& > *":{boxSizing:"border-box",maxWidth:a?`calc(${100/i}% - ${e.fn.size({size:t,sizes:e.spacing})-e.fn.size({size:t,sizes:e.spacing})/i}px)`:void 0,flexGrow:a?1:0}}}));const F01=R01;var I01=Object.defineProperty,Nn=Object.getOwnPropertySymbols,wS=Object.prototype.hasOwnProperty,LS=Object.prototype.propertyIsEnumerable,Gg=(e,t,r)=>t in e?I01(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j01=(e,t)=>{for(var r in t||(t={}))wS.call(t,r)&&Gg(e,r,t[r]);if(Nn)for(var r of Nn(t))LS.call(t,r)&&Gg(e,r,t[r]);return e},B01=(e,t)=>{var r={};for(var n in e)wS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Nn)for(var n of Nn(e))t.indexOf(n)<0&&LS.call(e,n)&&(r[n]=e[n]);return r};const W01={position:"left",spacing:"md"},J3=z.forwardRef((e,t)=>{const r=L1("Group",W01,e),{className:n,position:a,align:c,children:i,noWrap:o,grow:s,spacing:l,unstyled:f}=r,u=B01(r,["className","position","align","children","noWrap","grow","spacing","unstyled"]),d=T01(i),{classes:p,cx:m}=F01({align:c,grow:s,noWrap:o,spacing:l,position:a,count:d.length},{unstyled:f,name:"Group"});return b.createElement(y1,j01({className:m(p.root,n),ref:t},u),d)});J3.displayName="@mantine/core/Group";var U01=u1((e,{spacing:t,align:r,justify:n})=>({root:{display:"flex",flexDirection:"column",alignItems:r,justifyContent:n,gap:e.fn.size({size:t,sizes:e.spacing})}}));const q01=U01;var G01=Object.defineProperty,_n=Object.getOwnPropertySymbols,SS=Object.prototype.hasOwnProperty,kS=Object.prototype.propertyIsEnumerable,Yg=(e,t,r)=>t in e?G01(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y01=(e,t)=>{for(var r in t||(t={}))SS.call(t,r)&&Yg(e,r,t[r]);if(_n)for(var r of _n(t))kS.call(t,r)&&Yg(e,r,t[r]);return e},Z01=(e,t)=>{var r={};for(var n in e)SS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_n)for(var n of _n(e))t.indexOf(n)<0&&kS.call(e,n)&&(r[n]=e[n]);return r};const K01={spacing:"md",align:"stretch",justify:"flex-start"},u3=z.forwardRef((e,t)=>{const r=L1("Stack",K01,e),{spacing:n,className:a,align:c,justify:i,unstyled:o}=r,s=Z01(r,["spacing","className","align","justify","unstyled"]),{classes:l,cx:f}=q01({spacing:n,align:c,justify:i},{name:"Stack",unstyled:o});return b.createElement(y1,Y01({className:f(l.root,a),ref:t},s))});u3.displayName="@mantine/core/Stack";function X01({spacing:e,offset:t,orientation:r,children:n,role:a,unstyled:c}){return r==="horizontal"?b.createElement(J3,{pt:t,spacing:e,role:a,unstyled:c},n):b.createElement(u3,{pt:t,spacing:e,role:a,unstyled:c},n)}var Q01=Object.defineProperty,On=Object.getOwnPropertySymbols,PS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable,Zg=(e,t,r)=>t in e?Q01(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kg=(e,t)=>{for(var r in t||(t={}))PS.call(t,r)&&Zg(e,r,t[r]);if(On)for(var r of On(t))NS.call(t,r)&&Zg(e,r,t[r]);return e},J01=(e,t)=>{var r={};for(var n in e)PS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&On)for(var n of On(e))t.indexOf(n)<0&&NS.call(e,n)&&(r[n]=e[n]);return r};const e81={orientation:"horizontal",spacing:"lg",size:"sm",offset:"xs"},_S=z.forwardRef((e,t)=>{const r=L1("CheckboxGroup",e81,e),{children:n,value:a,defaultValue:c,onChange:i,orientation:o,spacing:s,size:l,wrapperProps:f,offset:u}=r,d=J01(r,["children","value","defaultValue","onChange","orientation","spacing","size","wrapperProps","offset"]),[p,m]=F3({value:a,defaultValue:c,finalValue:[],onChange:i}),v=C=>{const h=C.currentTarget.value;m(p.includes(h)?p.filter(g=>g!==h):[...p,h])};return b.createElement(E01,{value:{value:p,onChange:v,size:l}},b.createElement(S2.Wrapper,Kg(Kg({labelElement:"div",size:l,__staticSelector:"CheckboxGroup",ref:t},f),d),b.createElement(X01,{spacing:s,orientation:o,offset:u},n)))});_S.displayName="@mantine/core/CheckboxGroup";var t81=Object.defineProperty,An=Object.getOwnPropertySymbols,OS=Object.prototype.hasOwnProperty,AS=Object.prototype.propertyIsEnumerable,Xg=(e,t,r)=>t in e?t81(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rl=(e,t)=>{for(var r in t||(t={}))OS.call(t,r)&&Xg(e,r,t[r]);if(An)for(var r of An(t))AS.call(t,r)&&Xg(e,r,t[r]);return e},r81=(e,t)=>{var r={};for(var n in e)OS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&An)for(var n of An(e))t.indexOf(n)<0&&AS.call(e,n)&&(r[n]=e[n]);return r};function n81(e){return b.createElement("svg",rl({viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),b.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 a81(e){var t=e,{indeterminate:r}=t,n=r81(t,["indeterminate"]);return r?b.createElement("svg",rl({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6"},n),b.createElement("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})):b.createElement(n81,rl({},n))}var c81=Object.defineProperty,i81=Object.defineProperties,o81=Object.getOwnPropertyDescriptors,Qg=Object.getOwnPropertySymbols,s81=Object.prototype.hasOwnProperty,l81=Object.prototype.propertyIsEnumerable,Jg=(e,t,r)=>t in e?c81(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f81=(e,t)=>{for(var r in t||(t={}))s81.call(t,r)&&Jg(e,r,t[r]);if(Qg)for(var r of Qg(t))l81.call(t,r)&&Jg(e,r,t[r]);return e},u81=(e,t)=>i81(e,o81(t));const d81={xs:16,sm:20,md:24,lg:30,xl:36},p81={xs:8,sm:10,md:14,lg:16,xl:20};var m81=u1((e,{size:t,radius:r,color:n,transitionDuration:a,labelPosition:c,error:i,indeterminate:o},s)=>{const l=e.fn.size({size:t,sizes:d81}),f=e.fn.variant({variant:"filled",color:n}),u=e.fn.variant({variant:"filled",color:"red"}).background;return{icon:{ref:s("icon"),color:o?"inherit":e.white,transform:o?"none":"translateY(5px) scale(0.5)",opacity:o?1:0,transitionProperty:"opacity, transform",transitionTimingFunction:"ease",transitionDuration:`${a}ms`,pointerEvents:"none",width:e.fn.size({size:t,sizes:p81}),position:"absolute",zIndex:1,top:0,bottom:0,left:0,right:0,margin:"auto","@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":void 0}},inner:{position:"relative",width:l,height:l,order:c==="left"?2:1},input:u81(f81({},e.fn.focusStyles()),{appearance:"none",backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`1px solid ${i?u:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,width:l,height:l,borderRadius:e.fn.radius(r),padding:0,display:"block",margin:0,transition:`border-color ${a}ms ease, background-color ${a}ms ease`,cursor:e.cursorType,"&:checked":{backgroundColor:f.background,borderColor:f.background,[`& + .${s("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",[`& + .${s("icon")}`]:{color:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[5]}}})}});const h81=m81;var v81=Object.defineProperty,g81=Object.defineProperties,z81=Object.getOwnPropertyDescriptors,ez=Object.getOwnPropertySymbols,y81=Object.prototype.hasOwnProperty,C81=Object.prototype.propertyIsEnumerable,tz=(e,t,r)=>t in e?v81(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H81=(e,t)=>{for(var r in t||(t={}))y81.call(t,r)&&tz(e,r,t[r]);if(ez)for(var r of ez(t))C81.call(t,r)&&tz(e,r,t[r]);return e},V81=(e,t)=>g81(e,z81(t));const b81={xs:16,sm:20,md:24,lg:30,xl:36};var M81=u1((e,{labelPosition:t,size:r})=>({root:{},body:{display:"flex"},labelWrapper:V81(H81({},e.fn.fontStyles()),{display:"inline-flex",flexDirection:"column",WebkitTapHighlightColor:"transparent",fontSize:e.fn.size({size:r,sizes:e.fontSizes}),lineHeight:`${e.fn.size({size:r,sizes:b81})}px`,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,cursor:e.cursorType,order:t==="left"?1:2}),description:{marginTop:`calc(${e.spacing.xs}px / 2)`,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm},error:{marginTop:`calc(${e.spacing.xs}px / 2)`,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm},label:{cursor:e.cursorType,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm,"&[data-disabled]":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}}}));const x81=M81;var w81=Object.defineProperty,En=Object.getOwnPropertySymbols,ES=Object.prototype.hasOwnProperty,$S=Object.prototype.propertyIsEnumerable,rz=(e,t,r)=>t in e?w81(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L81=(e,t)=>{for(var r in t||(t={}))ES.call(t,r)&&rz(e,r,t[r]);if(En)for(var r of En(t))$S.call(t,r)&&rz(e,r,t[r]);return e},S81=(e,t)=>{var r={};for(var n in e)ES.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&En)for(var n of En(e))t.indexOf(n)<0&&$S.call(e,n)&&(r[n]=e[n]);return r};function TS(e){var t=e,{__staticSelector:r,className:n,classNames:a,styles:c,unstyled:i,children:o,label:s,description:l,id:f,disabled:u,error:d,size:p,labelPosition:m}=t,v=S81(t,["__staticSelector","className","classNames","styles","unstyled","children","label","description","id","disabled","error","size","labelPosition"]);const{classes:C,cx:h}=x81({size:p,labelPosition:m},{name:r,styles:c,classNames:a,unstyled:i});return b.createElement(y1,L81({className:h(C.root,n)},v),b.createElement("div",{className:h(C.body)},o,b.createElement("div",{className:C.labelWrapper},s&&b.createElement("label",{className:C.label,"data-disabled":u||void 0,htmlFor:f},s),l&&b.createElement(S2.Description,{className:C.description},l),d&&d!=="boolean"&&b.createElement(S2.Error,{className:C.error},d))))}TS.displayName="@mantine/core/InlineInput";var k81=Object.defineProperty,$n=Object.getOwnPropertySymbols,DS=Object.prototype.hasOwnProperty,RS=Object.prototype.propertyIsEnumerable,nz=(e,t,r)=>t in e?k81(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gt=(e,t)=>{for(var r in t||(t={}))DS.call(t,r)&&nz(e,r,t[r]);if($n)for(var r of $n(t))RS.call(t,r)&&nz(e,r,t[r]);return e},P81=(e,t)=>{var r={};for(var n in e)DS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$n)for(var n of $n(e))t.indexOf(n)<0&&RS.call(e,n)&&(r[n]=e[n]);return r};const N81={size:"sm",transitionDuration:100,icon:a81,labelPosition:"right"},a9=z.forwardRef((e,t)=>{const r=L1("Checkbox",N81,e),{className:n,style:a,sx:c,checked:i,disabled:o,color:s,label:l,indeterminate:f,id:u,size:d,radius:p,wrapperProps:m,children:v,classNames:C,styles:h,transitionDuration:g,icon:y,unstyled:V,labelPosition:x,description:H,error:M}=r,w=P81(r,["className","style","sx","checked","disabled","color","label","indeterminate","id","size","radius","wrapperProps","children","classNames","styles","transitionDuration","icon","unstyled","labelPosition","description","error"]),P=$01(),N=V4(u),{systemStyles:O,rest:E}=p6(w),{classes:T}=h81({size:P?.size||d,radius:p,color:s,transitionDuration:g,labelPosition:x,error:!!M,indeterminate:f},{name:"Checkbox",classNames:C,styles:h,unstyled:V}),_=P?{checked:P.value.includes(E.value),onChange:P.onChange}:{};return b.createElement(TS,gt(gt({className:n,sx:c,style:a,id:N,size:P?.size||d,labelPosition:x,label:l,description:H,error:M,disabled:o,__staticSelector:"Checkbox",classNames:C,styles:h,unstyled:V,"data-checked":_.checked||void 0},O),m),b.createElement("div",{className:T.inner},b.createElement("input",gt(gt({id:N,ref:t,type:"checkbox",className:T.input,checked:i,disabled:o},E),_)),b.createElement(y,{indeterminate:f,className:T.icon})))});a9.displayName="@mantine/core/Checkbox";a9.Group=_S;var _81=Object.defineProperty,O81=Object.defineProperties,A81=Object.getOwnPropertyDescriptors,az=Object.getOwnPropertySymbols,E81=Object.prototype.hasOwnProperty,$81=Object.prototype.propertyIsEnumerable,cz=(e,t,r)=>t in e?_81(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T81=(e,t)=>{for(var r in t||(t={}))E81.call(t,r)&&cz(e,r,t[r]);if(az)for(var r of az(t))$81.call(t,r)&&cz(e,r,t[r]);return e},D81=(e,t)=>O81(e,A81(t)),R81=u1((e,{size:t,radius:r})=>{const n=e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3];return{root:D81(T81({},e.fn.focusStyles()),{width:t,height:t,WebkitTapHighlightColor:"transparent",border:0,borderRadius:e.fn.size({size:r,sizes:e.radius}),appearance:"none",WebkitAppearance:"none",padding:0,position:"relative",overflow:"hidden"}),overlay:{position:"absolute",borderRadius:e.fn.size({size:r,sizes:e.radius}),top:0,left:0,right:0,bottom:0},children:{display:"inline-flex",justifyContent:"center",alignItems:"center"},shadowOverlay:{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset",zIndex:1},alphaOverlay:{backgroundImage:`linear-gradient(45deg, ${n} 25%, transparent 25%), linear-gradient(-45deg, ${n} 25%, transparent 25%), linear-gradient(45deg, transparent 75%, ${n} 75%), linear-gradient(-45deg, ${e.colorScheme==="dark"?e.colors.dark[7]:e.white} 75%, ${n} 75%)`,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0px"}}});const F81=R81;var I81=Object.defineProperty,Tn=Object.getOwnPropertySymbols,FS=Object.prototype.hasOwnProperty,IS=Object.prototype.propertyIsEnumerable,iz=(e,t,r)=>t in e?I81(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j81=(e,t)=>{for(var r in t||(t={}))FS.call(t,r)&&iz(e,r,t[r]);if(Tn)for(var r of Tn(t))IS.call(t,r)&&iz(e,r,t[r]);return e},B81=(e,t)=>{var r={};for(var n in e)FS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Tn)for(var n of Tn(e))t.indexOf(n)<0&&IS.call(e,n)&&(r[n]=e[n]);return r};const W81={size:25,radius:25,withShadow:!0},jS=z.forwardRef((e,t)=>{const r=L1("ColorSwatch",W81,e),{color:n,size:a,radius:c,className:i,children:o,classNames:s,styles:l,unstyled:f,withShadow:u}=r,d=B81(r,["color","size","radius","className","children","classNames","styles","unstyled","withShadow"]),{classes:p,cx:m}=F81({radius:c,size:a},{classNames:s,styles:l,unstyled:f,name:"ColorSwatch"});return b.createElement(y1,j81({className:m(p.root,i),ref:t},d),b.createElement("div",{className:m(p.alphaOverlay,p.overlay)}),u&&b.createElement("div",{className:m(p.shadowOverlay,p.overlay)}),b.createElement("div",{className:p.overlay,style:{backgroundColor:n}}),b.createElement("div",{className:m(p.children,p.overlay)},o))});jS.displayName="@mantine/core/ColorSwatch";const Ou=jS,_4={xs:8,sm:12,md:16,lg:20,xl:22};var U81=u1((e,{size:t})=>{const r=e.fn.size({size:t,sizes:_4});return{thumb:{overflow:"hidden",boxSizing:"border-box",position:"absolute",boxShadow:"0 0 1px rgba(0, 0, 0, .6)",border:`2px solid ${e.white}`,backgroundColor:"transparent",width:r,height:r,borderRadius:r}}});const q81=U81;var G81=Object.defineProperty,oz=Object.getOwnPropertySymbols,Y81=Object.prototype.hasOwnProperty,Z81=Object.prototype.propertyIsEnumerable,sz=(e,t,r)=>t in e?G81(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K81=(e,t)=>{for(var r in t||(t={}))Y81.call(t,r)&&sz(e,r,t[r]);if(oz)for(var r of oz(t))Z81.call(t,r)&&sz(e,r,t[r]);return e};function Au({position:e,className:t,styles:r,classNames:n,style:a,size:c,__staticSelector:i,unstyled:o}){const{classes:s,cx:l}=q81({size:c},{classNames:n,styles:r,name:i,unstyled:o});return b.createElement("div",{className:l(s.thumb,t),style:K81({left:`calc(${e.x*100}% - ${_4[c]/2}px)`,top:`calc(${e.y*100}% - ${_4[c]/2}px)`},a)})}Au.displayName="@mantine/core/Thumb";var X81=Object.defineProperty,lz=Object.getOwnPropertySymbols,Q81=Object.prototype.hasOwnProperty,J81=Object.prototype.propertyIsEnumerable,fz=(e,t,r)=>t in e?X81(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uz=(e,t)=>{for(var r in t||(t={}))Q81.call(t,r)&&fz(e,r,t[r]);if(lz)for(var r of lz(t))J81.call(t,r)&&fz(e,r,t[r]);return e},e51=u1((e,{size:t},r)=>({sliderThumb:{ref:r("sliderThumb")},slider:{position:"relative",height:e.fn.size({size:t,sizes:_4})+2,boxSizing:"border-box",marginLeft:e.fn.size({size:t,sizes:_4})/2,marginRight:e.fn.size({size:t,sizes:_4})/2,outline:0,[`&:focus .${r("sliderThumb")}`]:uz({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[`&:focus:not(:focus-visible) .${r("sliderThumb")}`]:uz({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)},sliderOverlay:{position:"absolute",boxSizing:"border-box",top:0,bottom:0,left:-e.fn.size({size:t,sizes:_4})/2-1,right:-e.fn.size({size:t,sizes:_4})/2-1,borderRadius:1e3}}));const t51=e51;var r51=Object.defineProperty,n51=Object.defineProperties,a51=Object.getOwnPropertyDescriptors,Dn=Object.getOwnPropertySymbols,BS=Object.prototype.hasOwnProperty,WS=Object.prototype.propertyIsEnumerable,dz=(e,t,r)=>t in e?r51(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c51=(e,t)=>{for(var r in t||(t={}))BS.call(t,r)&&dz(e,r,t[r]);if(Dn)for(var r of Dn(t))WS.call(t,r)&&dz(e,r,t[r]);return e},i51=(e,t)=>n51(e,a51(t)),o51=(e,t)=>{var r={};for(var n in e)BS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Dn)for(var n of Dn(e))t.indexOf(n)<0&&WS.call(e,n)&&(r[n]=e[n]);return r};const Eu=z.forwardRef((e,t)=>{var r=e,{value:n,onChange:a,onChangeEnd:c,maxValue:i,round:o,size:s="md",thumbColor:l="transparent",__staticSelector:f="ColorSlider",focusable:u=!0,overlays:d,classNames:p,styles:m,className:v,unstyled:C}=r,h=o51(r,["value","onChange","onChangeEnd","maxValue","round","size","thumbColor","__staticSelector","focusable","overlays","classNames","styles","className","unstyled"]);const{classes:g,cx:y}=t51({size:s},{classNames:p,styles:m,name:f,unstyled:C}),[V,x]=z.useState({y:0,x:n/i}),H=z.useRef(V),M=E=>o?Math.round(E*i):E*i,{ref:w}=pu(({x:E,y:T})=>{H.current={x:E,y:T},a(M(E))},{onScrubEnd:()=>{const{x:E}=H.current;c(M(E))}});I2(()=>{x({y:0,x:n/i})},[n]);const P=(E,T)=>{E.preventDefault();const _=uw(T);a(M(_.x)),c(M(_.x))},N=E=>{switch(E.key){case"ArrowRight":{P(E,{x:V.x+.05,y:V.y});break}case"ArrowLeft":{P(E,{x:V.x-.05,y:V.y});break}}},O=d.map((E,T)=>b.createElement("div",{className:g.sliderOverlay,style:E,key:T}));return b.createElement(y1,i51(c51({},h),{ref:n3(w,t),className:y(g.slider,v),role:"slider","aria-valuenow":n,"aria-valuemax":i,"aria-valuemin":0,tabIndex:u?0:-1,onKeyDown:N}),O,b.createElement(Au,{__staticSelector:f,classNames:p,styles:m,position:V,style:{top:1,backgroundColor:l},className:g.sliderThumb,size:s}))});Eu.displayName="@mantine/core/ColorSlider";var s51=Object.defineProperty,l51=Object.defineProperties,f51=Object.getOwnPropertyDescriptors,Rn=Object.getOwnPropertySymbols,US=Object.prototype.hasOwnProperty,qS=Object.prototype.propertyIsEnumerable,pz=(e,t,r)=>t in e?s51(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u51=(e,t)=>{for(var r in t||(t={}))US.call(t,r)&&pz(e,r,t[r]);if(Rn)for(var r of Rn(t))qS.call(t,r)&&pz(e,r,t[r]);return e},d51=(e,t)=>l51(e,f51(t)),p51=(e,t)=>{var r={};for(var n in e)US.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Rn)for(var n of Rn(e))t.indexOf(n)<0&&qS.call(e,n)&&(r[n]=e[n]);return r};const GS=z.forwardRef((e,t)=>{var r=e,{value:n,onChange:a,onChangeEnd:c}=r,i=p51(r,["value","onChange","onChangeEnd"]);return b.createElement(Eu,d51(u51({},i),{ref:t,value:n,onChange:a,onChangeEnd:c,maxValue:360,thumbColor:`hsl(${n}, 100%, 50%)`,round:!0,overlays:[{backgroundImage:"linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))"},{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset"}]}))});GS.displayName="@mantine/core/HueSlider";var m51=Object.defineProperty,h51=Object.defineProperties,v51=Object.getOwnPropertyDescriptors,mz=Object.getOwnPropertySymbols,g51=Object.prototype.hasOwnProperty,z51=Object.prototype.propertyIsEnumerable,hz=(e,t,r)=>t in e?m51(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vz=(e,t)=>{for(var r in t||(t={}))g51.call(t,r)&&hz(e,r,t[r]);if(mz)for(var r of mz(t))z51.call(t,r)&&hz(e,r,t[r]);return e},gz=(e,t)=>h51(e,v51(t));function m4(e,t=0,r=10**t){return Math.round(r*e)/r}function y51({h:e,s:t,l:r,a:n}){const a=t*((r<50?r:100-r)/100);return{h:e,s:a>0?2*a/(r+a)*100:0,v:r+a,a:n}}const C51={grad:360/400,turn:360,rad:360/(Math.PI*2)};function H51(e,t="deg"){return Number(e)*(C51[t]||1)}const V51=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function zz(e){const t=V51.exec(e);return t?y51({h:H51(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}}function nl({r:e,g:t,b:r,a:n}){const a=Math.max(e,t,r),c=a-Math.min(e,t,r),i=c?a===e?(t-r)/c:a===t?2+(r-e)/c:4+(e-t)/c:0;return{h:m4(60*(i<0?i+6:i)),s:m4(a?c/a*100:0),v:m4(a/255*100),a:n}}function al(e){const t=e[0]==="#"?e.slice(1):e;return t.length===3?nl({r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:1}):nl({r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:1})}function b51(e){const t=e[0]==="#"?e.slice(1):e,r=i=>Math.round(parseInt(i,16)/255*100)/100;if(t.length===4){const i=t.slice(0,3),o=r(t[3]+t[3]);return gz(vz({},al(i)),{a:o})}const n=t.slice(0,6),a=r(t.slice(6,8));return gz(vz({},al(n)),{a})}const M51=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function yz(e){const t=M51.exec(e);return t?nl({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}}const YS={hex:/^#?([0-9A-F]{3}){1,2}$/i,hexa:/^#?([0-9A-F]{4}){1,2}$/i,rgb:/^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,rgba:/^rgba\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,hsl:/hsl\(\s*(\d+)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\)/i,hsla:/^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/i},x51={hex:al,hexa:b51,rgb:yz,rgba:yz,hsl:zz,hsla:zz};function J8(e){for(const[,t]of Object.entries(YS))if(t.test(e))return!0;return!1}function j0(e){if(typeof e!="string")return{h:0,s:0,v:0,a:1};if(e==="transparent")return{h:0,s:0,v:0,a:0};const t=e.trim();for(const[r,n]of Object.entries(YS))if(n.test(t))return x51[r](t);return{h:0,s:0,v:0,a:1}}var w51=Object.defineProperty,L51=Object.defineProperties,S51=Object.getOwnPropertyDescriptors,Fn=Object.getOwnPropertySymbols,ZS=Object.prototype.hasOwnProperty,KS=Object.prototype.propertyIsEnumerable,Cz=(e,t,r)=>t in e?w51(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k51=(e,t)=>{for(var r in t||(t={}))ZS.call(t,r)&&Cz(e,r,t[r]);if(Fn)for(var r of Fn(t))KS.call(t,r)&&Cz(e,r,t[r]);return e},P51=(e,t)=>L51(e,S51(t)),N51=(e,t)=>{var r={};for(var n in e)ZS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fn)for(var n of Fn(e))t.indexOf(n)<0&&KS.call(e,n)&&(r[n]=e[n]);return r};const XS=z.forwardRef((e,t)=>{var r=e,{value:n,onChange:a,onChangeEnd:c,color:i}=r,o=N51(r,["value","onChange","onChangeEnd","color"]);const s=H2(),l=s.colorScheme==="dark"?s.colors.dark[4]:s.colors.gray[3];return b.createElement(Eu,P51(k51({},o),{ref:t,value:n,onChange:f=>a(m4(f,2)),onChangeEnd:f=>c(m4(f,2)),maxValue:1,round:!1,overlays:[{backgroundImage:`linear-gradient(45deg, ${l} 25%, transparent 25%), linear-gradient(-45deg, ${l} 25%, transparent 25%), linear-gradient(45deg, transparent 75%, ${l} 75%), linear-gradient(-45deg, ${s.colorScheme==="dark"?s.colors.dark[7]:s.white} 75%, ${l} 75%)`,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0px"},{backgroundImage:`linear-gradient(90deg, transparent, ${i})`},{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset"}]}))});XS.displayName="@mantine/core/AlphaSlider";var _51=Object.defineProperty,Hz=Object.getOwnPropertySymbols,O51=Object.prototype.hasOwnProperty,A51=Object.prototype.propertyIsEnumerable,Vz=(e,t,r)=>t in e?_51(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$i=(e,t)=>{for(var r in t||(t={}))O51.call(t,r)&&Vz(e,r,t[r]);if(Hz)for(var r of Hz(t))A51.call(t,r)&&Vz(e,r,t[r]);return e};const E51={xs:100,sm:110,md:120,lg:140,xl:160};var $51=u1((e,{size:t},r)=>({saturationThumb:{ref:r("saturationThumb")},saturation:{boxSizing:"border-box",position:"relative",height:e.fn.size({size:t,sizes:E51}),borderRadius:e.radius.sm,margin:e.fn.size({size:t,sizes:_4})/2,WebkitTapHighlightColor:"transparent",[`&:focus .${r("saturationThumb")}`]:$i({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[`&:focus:not(:focus-visible) .${r("saturationThumb")}`]:$i({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)},saturationOverlay:$i({boxSizing:"border-box",borderRadius:e.radius.sm},e.fn.cover(-e.fn.size({size:t,sizes:_4})/2-1))}));const T51=$51;function QS({h:e,s:t,v:r,a:n}){const a=e/360*6,c=t/100,i=r/100,o=Math.floor(a),s=i*(1-c),l=i*(1-(a-o)*c),f=i*(1-(1-a+o)*c),u=o%6;return{r:m4([i,l,s,s,f,i][u]*255),g:m4([f,i,i,l,s,s][u]*255),b:m4([s,s,f,i,i,l][u]*255),a:m4(n,2)}}function bz(e,t){const{r,g:n,b:a,a:c}=QS(e);return t?`rgba(${r}, ${n}, ${a}, ${m4(c,2)})`:`rgb(${r}, ${n}, ${a})`}function Mz({h:e,s:t,v:r,a:n},a){const c=(200-t)*r/100,i={h:Math.round(e),s:Math.round(c>0&&c<200?t*r/100/(c<=100?c:200-c)*100:0),l:Math.round(c/2)};return a?`hsla(${i.h}, ${i.s}%, ${i.l}%, ${m4(n,2)})`:`hsl(${i.h}, ${i.s}%, ${i.l}%)`}function cr(e){const t=e.toString(16);return t.length<2?`0${t}`:t}function JS(e){const{r:t,g:r,b:n}=QS(e);return`#${cr(t)}${cr(r)}${cr(n)}`}function D51(e){const t=Math.round(e.a*255);return`${JS(e)}${cr(t)}`}const Ti={hex:JS,hexa:e=>D51(e),rgb:e=>bz(e,!1),rgba:e=>bz(e,!0),hsl:e=>Mz(e,!1),hsla:e=>Mz(e,!0)};function d4(e,t){return t?e in Ti?Ti[e](t):Ti.hex(t):"#000000"}function ek({value:e,onChange:t,onChangeEnd:r,focusable:n=!0,__staticSelector:a="saturation",size:c,color:i,saturationLabel:o,classNames:s,styles:l,unstyled:f}){const{classes:u}=T51({size:c},{classNames:s,styles:l,name:a,unstyled:f}),[d,p]=z.useState({x:e.s/100,y:1-e.v/100}),m=z.useRef(d),{ref:v}=pu(({x:g,y})=>{m.current={x:g,y},t({s:Math.round(g*100),v:Math.round((1-y)*100)})},{onScrubEnd:()=>{const{x:g,y}=m.current;r({s:Math.round(g*100),v:Math.round((1-y)*100)})}});z.useEffect(()=>{p({x:e.s/100,y:1-e.v/100})},[e.s,e.v]);const C=(g,y)=>{g.preventDefault();const V=uw(y);t({s:Math.round(V.x*100),v:Math.round((1-V.y)*100)}),r({s:Math.round(V.x*100),v:Math.round((1-V.y)*100)})},h=g=>{switch(g.key){case"ArrowUp":{C(g,{y:d.y-.05,x:d.x});break}case"ArrowDown":{C(g,{y:d.y+.05,x:d.x});break}case"ArrowRight":{C(g,{x:d.x+.05,y:d.y});break}case"ArrowLeft":{C(g,{x:d.x-.05,y:d.y});break}}};return b.createElement("div",{className:u.saturation,ref:v,role:"slider","aria-label":o,"aria-valuenow":d.x,"aria-valuetext":d4("rgba",e),tabIndex:n?0:-1,onKeyDown:h},b.createElement("div",{className:u.saturationOverlay,style:{backgroundColor:`hsl(${e.h}, 100%, 50%)`}}),b.createElement("div",{className:u.saturationOverlay,style:{backgroundImage:"linear-gradient(90deg, #fff, transparent)"}}),b.createElement("div",{className:u.saturationOverlay,style:{backgroundImage:"linear-gradient(0deg, #000, transparent)"}}),b.createElement(Au,{__staticSelector:a,classNames:s,styles:l,position:d,className:u.saturationThumb,style:{backgroundColor:i},size:c}))}ek.displayName="@mantine/core/Saturation";var R51=u1((e,{swatchesPerRow:t})=>({swatch:{width:`calc(${100/t}% - 4px)`,height:0,paddingBottom:`calc(${100/t}% - 4px)`,margin:2,boxSizing:"content-box"},swatches:{boxSizing:"border-box",marginLeft:-2,marginRight:-2,display:"flex",flexWrap:"wrap"}}));const F51=R51;var I51=Object.defineProperty,In=Object.getOwnPropertySymbols,tk=Object.prototype.hasOwnProperty,rk=Object.prototype.propertyIsEnumerable,xz=(e,t,r)=>t in e?I51(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j51=(e,t)=>{for(var r in t||(t={}))tk.call(t,r)&&xz(e,r,t[r]);if(In)for(var r of In(t))rk.call(t,r)&&xz(e,r,t[r]);return e},B51=(e,t)=>{var r={};for(var n in e)tk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&In)for(var n of In(e))t.indexOf(n)<0&&rk.call(e,n)&&(r[n]=e[n]);return r};function nk(e){var t=e,{data:r,swatchesPerRow:n=10,focusable:a=!0,classNames:c,styles:i,__staticSelector:o="color-picker",unstyled:s,setValue:l,onChangeEnd:f}=t,u=B51(t,["data","swatchesPerRow","focusable","classNames","styles","__staticSelector","unstyled","setValue","onChangeEnd"]);const{classes:d}=F51({swatchesPerRow:n},{classNames:c,styles:i,name:o,unstyled:s}),p=r.map((m,v)=>b.createElement(Ou,{className:d.swatch,component:"button",type:"button",color:m,key:v,radius:"sm",onClick:()=>{l(m),f?.(m)},style:{cursor:"pointer"},"aria-label":m,tabIndex:a?0:-1}));return b.createElement("div",j51({className:d.swatches},u),p)}nk.displayName="@mantine/core/Swatches";const W51={xs:180,sm:200,md:240,lg:280,xl:320};var U51=u1((e,{size:t,fullWidth:r})=>({preview:{},wrapper:{boxSizing:"border-box",width:r?"100%":e.fn.size({size:t,sizes:W51}),padding:1},body:{display:"flex",boxSizing:"border-box",paddingTop:e.fn.size({size:t,sizes:e.spacing})/2},sliders:{flex:1,boxSizing:"border-box","&:not(:only-child)":{marginRight:e.spacing.xs}},slider:{boxSizing:"border-box","& + &":{marginTop:5}},swatch:{cursor:"pointer"}}));const q51=U51;var G51=Object.defineProperty,Y51=Object.defineProperties,Z51=Object.getOwnPropertyDescriptors,jn=Object.getOwnPropertySymbols,ak=Object.prototype.hasOwnProperty,ck=Object.prototype.propertyIsEnumerable,wz=(e,t,r)=>t in e?G51(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o0=(e,t)=>{for(var r in t||(t={}))ak.call(t,r)&&wz(e,r,t[r]);if(jn)for(var r of jn(t))ck.call(t,r)&&wz(e,r,t[r]);return e},Di=(e,t)=>Y51(e,Z51(t)),K51=(e,t)=>{var r={};for(var n in e)ak.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&jn)for(var n of jn(e))t.indexOf(n)<0&&ck.call(e,n)&&(r[n]=e[n]);return r};const X51={xs:26,sm:34,md:42,lg:50,xl:54},Q51={swatchesPerRow:10,size:"sm",withPicker:!0,focusable:!0,__staticSelector:"ColorPicker"},ik=z.forwardRef((e,t)=>{const r=L1("ColorPicker",Q51,e),{value:n,defaultValue:a,onChange:c,onChangeEnd:i,format:o,swatches:s,swatchesPerRow:l,size:f,withPicker:u,fullWidth:d,focusable:p,__staticSelector:m,saturationLabel:v,hueLabel:C,alphaLabel:h,className:g,styles:y,classNames:V,unstyled:x,onColorSwatchClick:H}=r,M=K51(r,["value","defaultValue","onChange","onChangeEnd","format","swatches","swatchesPerRow","size","withPicker","fullWidth","focusable","__staticSelector","saturationLabel","hueLabel","alphaLabel","className","styles","classNames","unstyled","onColorSwatchClick"]),{classes:w,cx:P,theme:N}=q51({size:f,fullWidth:d},{classNames:V,styles:y,name:m,unstyled:x}),O=z.useRef(o),E=z.useRef(null),T=z.useRef(!0),_=o==="hexa"||o==="rgba"||o==="hsla",[R,k]=F3({value:n,defaultValue:a,finalValue:"#FFFFFF",onChange:c}),[F,$]=z.useState(j0(R)),j=I=>{T.current=!1,$(L=>{const S=o0(o0({},L),I);return E.current=d4(O.current,S),S}),k(E.current),setTimeout(()=>{T.current=!0},0)};return I2(()=>{J8(n)&&T.current&&($(j0(n)),T.current=!0)},[n]),I2(()=>{O.current=o,k(d4(o,F))},[o]),b.createElement(y1,o0({className:P(w.wrapper,g),ref:t},M),u&&b.createElement(b.Fragment,null,b.createElement(ek,{value:F,onChange:j,onChangeEnd:({s:I,v:L})=>i?.(d4(O.current,Di(o0({},F),{s:I,v:L}))),color:R,styles:y,classNames:V,size:f,focusable:p,saturationLabel:v,__staticSelector:m}),b.createElement("div",{className:w.body},b.createElement("div",{className:w.sliders},b.createElement(GS,{value:F.h,onChange:I=>j({h:I}),onChangeEnd:I=>i?.(d4(O.current,Di(o0({},F),{h:I}))),size:f,styles:y,classNames:V,focusable:p,"aria-label":C,__staticSelector:m}),_&&b.createElement(XS,{value:F.a,onChange:I=>j({a:I}),onChangeEnd:I=>{i?.(d4(O.current,Di(o0({},F),{a:I})))},size:f,color:d4("hex",F),style:{marginTop:6},styles:y,classNames:V,focusable:p,"aria-label":h,__staticSelector:m})),_&&b.createElement(Ou,{color:R,radius:"sm",size:N.fn.size({size:f,sizes:X51}),className:w.preview}))),Array.isArray(s)&&b.createElement(nk,{data:s,style:{marginTop:5},swatchesPerRow:l,focusable:p,classNames:V,styles:y,__staticSelector:m,setValue:k,onChangeEnd:I=>{const L=d4(o,j0(I));H?.(L),i?.(L)}}))});ik.displayName="@mantine/core/ColorPicker";var J51=Object.defineProperty,Bn=Object.getOwnPropertySymbols,ok=Object.prototype.hasOwnProperty,sk=Object.prototype.propertyIsEnumerable,Lz=(e,t,r)=>t in e?J51(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,e71=(e,t)=>{for(var r in t||(t={}))ok.call(t,r)&&Lz(e,r,t[r]);if(Bn)for(var r of Bn(t))sk.call(t,r)&&Lz(e,r,t[r]);return e},t71=(e,t)=>{var r={};for(var n in e)ok.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Bn)for(var n of Bn(e))t.indexOf(n)<0&&sk.call(e,n)&&(r[n]=e[n]);return r};function r71(e){var t=e,{size:r}=t,n=t71(t,["size"]);return b.createElement("svg",e71({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-color-picker",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},n),b.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),b.createElement("path",{d:"M11 7l6 6"}),b.createElement("path",{d:"M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z"}))}var n71=Object.defineProperty,a71=Object.defineProperties,c71=Object.getOwnPropertyDescriptors,Wn=Object.getOwnPropertySymbols,lk=Object.prototype.hasOwnProperty,fk=Object.prototype.propertyIsEnumerable,Sz=(e,t,r)=>t in e?n71(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ri=(e,t)=>{for(var r in t||(t={}))lk.call(t,r)&&Sz(e,r,t[r]);if(Wn)for(var r of Wn(t))fk.call(t,r)&&Sz(e,r,t[r]);return e},kz=(e,t)=>a71(e,c71(t)),i71=(e,t)=>{var r={};for(var n in e)lk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wn)for(var n of Wn(e))t.indexOf(n)<0&&fk.call(e,n)&&(r[n]=e[n]);return r};const o71={xs:16,sm:18,md:22,lg:28,xl:36},s71={xs:14,sm:16,md:18,lg:20,xl:22},l71={xs:28,sm:32,md:38,lg:44,xl:58},f71={size:"sm",format:"hex",fixOnBlur:!0,withPreview:!0,swatchesPerRow:10,withPicker:!0,transition:"pop-top-left",dropdownZIndex:d6("popover"),transitionDuration:0,withinPortal:!0,shadow:"md",withEyeDropper:!0},uk=z.forwardRef((e,t)=>{const r=Lu("ColorInput",f71,e),{wrapperProps:n,inputProps:a,format:c,onChange:i,onChangeEnd:o,onFocus:s,onBlur:l,onClick:f,value:u,defaultValue:d,disallowInput:p,fixOnBlur:m,withPreview:v,swatchesPerRow:C,withPicker:h,icon:g,transition:y,dropdownZIndex:V,transitionDuration:x,transitionTimingFunction:H,withinPortal:M,swatches:w,shadow:P,classNames:N,styles:O,unstyled:E,readOnly:T,withEyeDropper:_,eyeDropperIcon:R,rightSection:k,rightSectionWidth:F,closeOnColorSwatchClick:$,disabled:j}=r,I=i71(r,["wrapperProps","inputProps","format","onChange","onChangeEnd","onFocus","onBlur","onClick","value","defaultValue","disallowInput","fixOnBlur","withPreview","swatchesPerRow","withPicker","icon","transition","dropdownZIndex","transitionDuration","transitionTimingFunction","withinPortal","swatches","shadow","classNames","styles","unstyled","readOnly","withEyeDropper","eyeDropperIcon","rightSection","rightSectionWidth","closeOnColorSwatchClick","disabled"]),L=H2(),[S,Z]=z.useState(!1),[n1,h1]=z.useState(""),[K,c1]=F3({value:u,defaultValue:d,finalValue:"",onChange:i}),{supported:H1,open:l1}=n11(),V1=b.createElement(n8,{sx:{color:L.colorScheme==="dark"?L.colors.dark[0]:L.black},size:a.size,onClick:()=>l1().then(({sRGBHex:M1})=>c1(d4(c,j0(M1)))).catch(Ex)},R||b.createElement(r71,{size:L.fn.size({size:a.size,sizes:s71})})),i1=M1=>{s?.(M1),Z(!0)},f1=M1=>{l?.(M1),Z(!1),m&&c1(n1)},x1=M1=>{f?.(M1),Z(!0)};return z.useEffect(()=>{(J8(K)||K.trim()==="")&&h1(K)},[K]),I2(()=>{J8(K)&&c1(d4(c,j0(K)))},[c]),b.createElement(S2.Wrapper,kz(Ri({},n),{__staticSelector:"ColorInput"}),b.createElement(f3,{__staticSelector:"ColorInput",position:"bottom-start",offset:5,zIndex:V,withinPortal:M,transitionDuration:x,transition:y,opened:S,shadow:P,classNames:N,styles:O,unstyled:E,disabled:T||h===!1&&(!Array.isArray(w)||w.length===0)},b.createElement(f3.Target,null,b.createElement("div",null,b.createElement(S2,kz(Ri(Ri({autoComplete:"nope"},I),a),{disabled:j,ref:t,__staticSelector:"ColorInput",onFocus:i1,onBlur:f1,onClick:x1,spellCheck:!1,value:K,onChange:M1=>{const D=M1.currentTarget.value;c1(D),J8(D)&&o?.(d4(c,j0(D)))},icon:g||(v?b.createElement(Ou,{color:J8(K)?K:"#fff",size:L.fn.size({size:a.size,sizes:o71})}):null),readOnly:p||T,sx:{cursor:p?"pointer":void 0},unstyled:E,classNames:N,styles:O,rightSection:k||(_&&!j&&!T&&H1?V1:null),rightSectionWidth:F??L.fn.size({size:a.size,sizes:l71})})))),b.createElement(f3.Dropdown,{onMouseDown:M1=>M1.preventDefault(),p:a.size},b.createElement(ik,{__staticSelector:"ColorInput",value:K,onChange:c1,onChangeEnd:o,format:c,swatches:w,swatchesPerRow:C,withPicker:h,size:a.size,focusable:!1,unstyled:E,styles:O,classNames:N,onColorSwatchClick:()=>$&&Z(!1)}))))});uk.displayName="@mantine/core/ColorInput";var u71=Object.defineProperty,d71=Object.defineProperties,p71=Object.getOwnPropertyDescriptors,Pz=Object.getOwnPropertySymbols,m71=Object.prototype.hasOwnProperty,h71=Object.prototype.propertyIsEnumerable,Nz=(e,t,r)=>t in e?u71(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v71=(e,t)=>{for(var r in t||(t={}))m71.call(t,r)&&Nz(e,r,t[r]);if(Pz)for(var r of Pz(t))h71.call(t,r)&&Nz(e,r,t[r]);return e},g71=(e,t)=>d71(e,p71(t));const zt={xs:180,sm:240,md:320,lg:360,xl:500,full:"100%"};function z71({position:e,size:t,theme:r}){switch(e){case"top":return{top:0,left:0,right:0,height:r.fn.size({size:t,sizes:zt})};case"bottom":return{bottom:0,left:0,right:0,height:r.fn.size({size:t,sizes:zt})};case"right":return{bottom:0,top:0,right:0,width:r.fn.size({size:t,sizes:zt})};case"left":return{bottom:0,top:0,left:0,width:r.fn.size({size:t,sizes:zt})};default:return null}}var y71=u1((e,{position:t,size:r,zIndex:n,withOverlay:a})=>({closeButton:{},overlay:{},body:{},root:{position:"fixed",zIndex:n,top:0,left:0,right:0,bottom:0,pointerEvents:a===!1?"none":void 0},drawer:g71(v71({},z71({position:t,size:r,theme:e})),{maxWidth:"100%",maxHeight:"100vh",position:"fixed",outline:0,zIndex:1,pointerEvents:a===!1?"auto":void 0}),title:{marginRight:e.spacing.md,textOverflow:"ellipsis",display:"block",wordBreak:"break-word"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:e.spacing.md}}));const C71=y71;function $u({transitions:e,duration:t=250,exitDuration:r=t,mounted:n,children:a,timingFunction:c,onExit:i,onEntered:o,onEnter:s,onExited:l}){const{transitionDuration:f,transitionStatus:u,transitionTimingFunction:d}=TL({mounted:n,duration:t,exitDuration:r,timingFunction:c,onExit:i,onEntered:o,onEnter:s,onExited:l});if(f===0)return n?b.createElement(b.Fragment,null,a({})):null;if(u==="exited")return null;const p=Object.keys(e).reduce((m,v)=>(m[v]=$L({duration:e[v].duration,transition:e[v].transition,timingFunction:e[v].timingFunction||d,state:u}),m),{});return b.createElement(b.Fragment,null,a(p))}$u.displayName="@mantine/core/GroupedTransition";var H71=u1((e,{zIndex:t})=>({root:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:t}}));const V71=H71;var b71=Object.defineProperty,M71=Object.defineProperties,x71=Object.getOwnPropertyDescriptors,Un=Object.getOwnPropertySymbols,dk=Object.prototype.hasOwnProperty,pk=Object.prototype.propertyIsEnumerable,_z=(e,t,r)=>t in e?b71(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fi=(e,t)=>{for(var r in t||(t={}))dk.call(t,r)&&_z(e,r,t[r]);if(Un)for(var r of Un(t))pk.call(t,r)&&_z(e,r,t[r]);return e},w71=(e,t)=>M71(e,x71(t)),L71=(e,t)=>{var r={};for(var n in e)dk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Un)for(var n of Un(e))t.indexOf(n)<0&&pk.call(e,n)&&(r[n]=e[n]);return r};const S71={opacity:.6,color:"#fff",zIndex:d6("modal"),radius:0,blur:0},mk=z.forwardRef((e,t)=>{const r=L1("Overlay",S71,e),{opacity:n,blur:a,color:c,gradient:i,zIndex:o,radius:s,sx:l,unstyled:f,className:u}=r,d=L71(r,["opacity","blur","color","gradient","zIndex","radius","sx","unstyled","className"]),{classes:p,cx:m}=V71({zIndex:o},{name:"Overlay",unstyled:f}),v=i?{backgroundImage:i}:{backgroundColor:c},C=h=>b.createElement(y1,Fi({ref:t,className:m(p.root,u),sx:[g=>w71(Fi({},v),{opacity:n,borderRadius:g.fn.size({size:s,sizes:g.radius})}),...B5(l)]},h));return a?b.createElement(y1,Fi({className:m(p.root,u),sx:[{backdropFilter:`blur(${a}px)`},...B5(l)]},d),C()):C(d)});mk.displayName="@mantine/core/Overlay";const hk=mk;var k71=Object.defineProperty,qn=Object.getOwnPropertySymbols,vk=Object.prototype.hasOwnProperty,gk=Object.prototype.propertyIsEnumerable,Oz=(e,t,r)=>t in e?k71(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P71=(e,t)=>{for(var r in t||(t={}))vk.call(t,r)&&Oz(e,r,t[r]);if(qn)for(var r of qn(t))gk.call(t,r)&&Oz(e,r,t[r]);return e},N71=(e,t)=>{var r={};for(var n in e)vk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qn)for(var n of qn(e))t.indexOf(n)<0&&gk.call(e,n)&&(r[n]=e[n]);return r};const _71={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},O71={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},A71={position:"left",size:"md",transitionDuration:250,transitionTimingFunction:"ease",zIndex:d6("modal"),shadow:"md",padding:0,lockScroll:!0,closeOnClickOutside:!0,closeOnEscape:!0,trapFocus:!0,withOverlay:!0,withCloseButton:!0,withinPortal:!0,withFocusReturn:!0,overlayBlur:0};function zk(e){const t=L1("Drawer",A71,e),{className:r,opened:n,onClose:a,position:c,size:i,trapFocus:o,lockScroll:s,closeOnClickOutside:l,closeOnEscape:f,transition:u,transitionDuration:d,transitionTimingFunction:p,zIndex:m,overlayColor:v,overlayOpacity:C,children:h,withOverlay:g,shadow:y,id:V,padding:x,title:H,withCloseButton:M,closeButtonLabel:w,classNames:P,styles:N,target:O,withinPortal:E,overlayBlur:T,unstyled:_,withFocusReturn:R}=t,k=N71(t,["className","opened","onClose","position","size","trapFocus","lockScroll","closeOnClickOutside","closeOnEscape","transition","transitionDuration","transitionTimingFunction","zIndex","overlayColor","overlayOpacity","children","withOverlay","shadow","id","padding","title","withCloseButton","closeButtonLabel","classNames","styles","target","withinPortal","overlayBlur","unstyled","withFocusReturn"]),F=V4(V),$=`${F}-title`,j=`${F}-body`,{classes:I,cx:L,theme:S}=C71({size:i,position:c,zIndex:m,withOverlay:g},{classNames:P,styles:N,unstyled:_,name:"Drawer"}),Z=du(o&&n),[,n1]=mw(),h1=u||(S.dir==="rtl"?O71:_71)[c],K=typeof C=="number"?C:S.colorScheme==="dark"?.85:.75,c1=H1=>{H1.key==="Escape"&&f&&a()};return z.useEffect(()=>{if(!o)return window.addEventListener("keydown",c1),()=>window.removeEventListener("keydown",c1)},[o]),uu({opened:n,shouldReturnFocus:o&&R}),b.createElement(h8,{withinPortal:E,target:O},b.createElement($u,{onExited:()=>n1(!1),onEntered:()=>n1(s&&!0),mounted:n,duration:d,timingFunction:p,transitions:{overlay:{duration:d/2,transition:"fade",timingFunction:"ease"},drawer:{duration:d,transition:h1,timingFunction:p}}},H1=>b.createElement(y1,P71({className:L(I.root,r),role:"dialog","aria-modal":!0,"aria-labelledby":$,"aria-describedby":j},k),b.createElement(MS,{className:L(I.drawer,r),ref:Z,style:H1.drawer,radius:0,tabIndex:-1,onKeyDownCapture:l1=>{var V1;((V1=l1.target)==null?void 0:V1.getAttribute("data-mantine-stop-propagation"))!=="true"&&l1.key==="Escape"&&f&&a()},shadow:y,p:x,unstyled:_},(H||M)&&b.createElement("div",{className:I.header},b.createElement(Y1,{id:$,className:I.title,unstyled:_},H),M&&b.createElement(v8,{iconSize:16,onClick:a,"aria-label":w,className:I.closeButton,unstyled:_})),b.createElement("div",{id:j,className:I.body},h)),g&&b.createElement("div",{style:H1.overlay},b.createElement(hk,{unstyled:_,blur:T,onMouseDown:()=>l&&a(),className:I.overlay,opacity:K,zIndex:0,color:v||(S.colorScheme==="dark"?S.colors.dark[9]:S.black)})))))}zk.displayName="@mantine/core/Drawer";const E71={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"default",property:"alignItems"},justify:{type:"default",property:"justifyContent"},wrap:{type:"default",property:"flexWrap"},direction:{type:"default",property:"flexDirection"}};var $71=Object.defineProperty,T71=Object.defineProperties,D71=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,yk=Object.prototype.hasOwnProperty,Ck=Object.prototype.propertyIsEnumerable,Az=(e,t,r)=>t in e?$71(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R71=(e,t)=>{for(var r in t||(t={}))yk.call(t,r)&&Az(e,r,t[r]);if(Gn)for(var r of Gn(t))Ck.call(t,r)&&Az(e,r,t[r]);return e},F71=(e,t)=>T71(e,D71(t)),I71=(e,t)=>{var r={};for(var n in e)yk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Gn)for(var n of Gn(e))t.indexOf(n)<0&&Ck.call(e,n)&&(r[n]=e[n]);return r};const j71={},Hk=z.forwardRef((e,t)=>{const r=L1("Flex",j71,e),{gap:n,rowGap:a,columnGap:c,align:i,justify:o,wrap:s,direction:l,sx:f}=r,u=I71(r,["gap","rowGap","columnGap","align","justify","wrap","direction","sx"]);return b.createElement(y1,F71(R71({},u),{sx:[{display:"flex"},d=>qs({gap:n,rowGap:a,columnGap:c,align:i,justify:o,wrap:s,direction:l},d,E71),...B5(f)],ref:t}))});Hk.displayName="@mantine/core/Flex";const Vk={context:"HoverCard component was not found in the tree",children:"HoverCard.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"},[B71,bk]=Ax(Vk.context);var W71=Object.defineProperty,Yn=Object.getOwnPropertySymbols,Mk=Object.prototype.hasOwnProperty,xk=Object.prototype.propertyIsEnumerable,Ez=(e,t,r)=>t in e?W71(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U71=(e,t)=>{for(var r in t||(t={}))Mk.call(t,r)&&Ez(e,r,t[r]);if(Yn)for(var r of Yn(t))xk.call(t,r)&&Ez(e,r,t[r]);return e},q71=(e,t)=>{var r={};for(var n in e)Mk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Yn)for(var n of Yn(e))t.indexOf(n)<0&&xk.call(e,n)&&(r[n]=e[n]);return r};const G71={};function wk(e){const t=L1("HoverCardDropdown",G71,e),{children:r,onMouseEnter:n,onMouseLeave:a}=t,c=q71(t,["children","onMouseEnter","onMouseLeave"]),i=bk(),o=Ur(n,i.openDropdown),s=Ur(a,i.closeDropdown);return b.createElement(f3.Dropdown,U71({onMouseEnter:o,onMouseLeave:s},c),r)}wk.displayName="@mantine/core/HoverCardDropdown";var Y71=Object.defineProperty,Zn=Object.getOwnPropertySymbols,Lk=Object.prototype.hasOwnProperty,Sk=Object.prototype.propertyIsEnumerable,$z=(e,t,r)=>t in e?Y71(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z71=(e,t)=>{for(var r in t||(t={}))Lk.call(t,r)&&$z(e,r,t[r]);if(Zn)for(var r of Zn(t))Sk.call(t,r)&&$z(e,r,t[r]);return e},K71=(e,t)=>{var r={};for(var n in e)Lk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Zn)for(var n of Zn(e))t.indexOf(n)<0&&Sk.call(e,n)&&(r[n]=e[n]);return r};const X71={refProp:"ref"},kk=z.forwardRef((e,t)=>{const r=L1("HoverCardTarget",X71,e),{children:n,refProp:a}=r,c=K71(r,["children","refProp"]);if(!d7(n))throw new Error(Vk.children);const i=bk(),o=Ur(n.props.onMouseEnter,i.openDropdown),s=Ur(n.props.onMouseLeave,i.closeDropdown);return b.createElement(f3.Target,Z71({refProp:a,ref:t},c),z.cloneElement(n,{onMouseEnter:o,onMouseLeave:s}))});kk.displayName="@mantine/core/HoverCardTarget";function Q71({open:e,close:t,openDelay:r,closeDelay:n}){const a=z.useRef(-1),c=z.useRef(-1),i=()=>{window.clearTimeout(a.current),window.clearTimeout(c.current)},o=()=>{i(),r===0?e():a.current=window.setTimeout(e,r)},s=()=>{i(),n===0?t():c.current=window.setTimeout(t,n)};return z.useEffect(()=>i,[]),{openDropdown:o,closeDropdown:s}}var J71=Object.defineProperty,Kn=Object.getOwnPropertySymbols,Pk=Object.prototype.hasOwnProperty,Nk=Object.prototype.propertyIsEnumerable,Tz=(e,t,r)=>t in e?J71(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,et1=(e,t)=>{for(var r in t||(t={}))Pk.call(t,r)&&Tz(e,r,t[r]);if(Kn)for(var r of Kn(t))Nk.call(t,r)&&Tz(e,r,t[r]);return e},tt1=(e,t)=>{var r={};for(var n in e)Pk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Kn)for(var n of Kn(e))t.indexOf(n)<0&&Nk.call(e,n)&&(r[n]=e[n]);return r};const rt1={openDelay:0,closeDelay:150,initiallyOpened:!1};function B0(e){const t=L1("HoverCard",rt1,e),{children:r,onOpen:n,onClose:a,openDelay:c,closeDelay:i,initiallyOpened:o}=t,s=tt1(t,["children","onOpen","onClose","openDelay","closeDelay","initiallyOpened"]),[l,{open:f,close:u}]=r11(o,{onClose:a,onOpen:n}),{openDropdown:d,closeDropdown:p}=Q71({open:f,close:u,openDelay:c,closeDelay:i});return b.createElement(B71,{value:{openDropdown:d,closeDropdown:p}},b.createElement(f3,et1({opened:l,__staticSelector:"HoverCard"},s),r))}B0.displayName="@mantine/core/HoverCard";B0.Target=kk;B0.Dropdown=wk;var nt1=Object.defineProperty,Dz=Object.getOwnPropertySymbols,at1=Object.prototype.hasOwnProperty,ct1=Object.prototype.propertyIsEnumerable,Rz=(e,t,r)=>t in e?nt1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,it1=(e,t)=>{for(var r in t||(t={}))at1.call(t,r)&&Rz(e,r,t[r]);if(Dz)for(var r of Dz(t))ct1.call(t,r)&&Rz(e,r,t[r]);return e};function ot1(e){return b.createElement("svg",it1({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),b.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var st1=Object.defineProperty,lt1=Object.defineProperties,ft1=Object.getOwnPropertyDescriptors,Fz=Object.getOwnPropertySymbols,ut1=Object.prototype.hasOwnProperty,dt1=Object.prototype.propertyIsEnumerable,Iz=(e,t,r)=>t in e?st1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jz=(e,t)=>{for(var r in t||(t={}))ut1.call(t,r)&&Iz(e,r,t[r]);if(Fz)for(var r of Fz(t))dt1.call(t,r)&&Iz(e,r,t[r]);return e},Bz=(e,t)=>lt1(e,ft1(t)),pt1=u1((e,{radius:t})=>({root:{},imageWrapper:{position:"relative"},figure:{margin:0},image:Bz(jz({},e.fn.fontStyles()),{display:"block",width:"100%",height:"100%",border:0,borderRadius:e.fn.size({size:t,sizes:e.radius})}),caption:{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[7],marginTop:e.spacing.xs},placeholder:Bz(jz({},e.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.colors.gray[0],borderRadius:e.fn.size({size:t,sizes:e.radius})})}));const mt1=pt1;var ht1=Object.defineProperty,Xn=Object.getOwnPropertySymbols,_k=Object.prototype.hasOwnProperty,Ok=Object.prototype.propertyIsEnumerable,Wz=(e,t,r)=>t in e?ht1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ii=(e,t)=>{for(var r in t||(t={}))_k.call(t,r)&&Wz(e,r,t[r]);if(Xn)for(var r of Xn(t))Ok.call(t,r)&&Wz(e,r,t[r]);return e},vt1=(e,t)=>{var r={};for(var n in e)_k.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xn)for(var n of Xn(e))t.indexOf(n)<0&&Ok.call(e,n)&&(r[n]=e[n]);return r};const gt1={fit:"cover",width:"100%",height:"auto",radius:0},Ak=z.forwardRef((e,t)=>{const r=L1("Image",gt1,e),{className:n,alt:a,src:c,fit:i,width:o,height:s,radius:l,imageProps:f,withPlaceholder:u,placeholder:d,imageRef:p,classNames:m,styles:v,caption:C,unstyled:h,style:g}=r,y=vt1(r,["className","alt","src","fit","width","height","radius","imageProps","withPlaceholder","placeholder","imageRef","classNames","styles","caption","unstyled","style"]),{classes:V,cx:x}=mt1({radius:l},{classNames:m,styles:v,unstyled:h,name:"Image"}),[H,M]=z.useState(!c),w=u&&H;return I2(()=>{M(!c)},[c]),b.createElement(y1,Ii({className:x(V.root,n),ref:t,style:Ii({width:o},g)},y),b.createElement("figure",{className:V.figure},b.createElement("div",{className:V.imageWrapper},b.createElement("img",Ii({className:V.image,src:c,alt:a,style:{objectFit:i,width:o,height:s},ref:p,onError:P=>{M(!0),typeof f?.onError=="function"&&f.onError(P)}},f)),w&&b.createElement("div",{className:V.placeholder,title:a},d||b.createElement("div",null,b.createElement(ot1,{style:{width:40,height:40}})))),!!C&&b.createElement(Y1,{component:"figcaption",size:"sm",align:"center",className:V.caption},C)))});Ak.displayName="@mantine/core/Image";function zt1(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,c;for(c=0;c=0)&&(r[a]=e[a]);return r}var yt1=z.useLayoutEffect,Ct1=function(t){var r=z.useRef(t);return yt1(function(){r.current=t}),r},Uz=function(t,r){if(typeof t=="function"){t(r);return}t.current=r},Ht1=function(t,r){var n=z.useRef();return z.useCallback(function(a){t.current=a,n.current&&Uz(n.current,null),n.current=r,r&&Uz(r,a)},[r])},qz={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Gz=function(t){Object.keys(qz).forEach(function(r){t.style.setProperty(r,qz[r],"important")})},w3=null,Vt1=function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize};function bt1(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),w3||(w3=document.createElement("textarea"),w3.setAttribute("tabindex","-1"),w3.setAttribute("aria-hidden","true"),Gz(w3)),w3.parentNode===null&&document.body.appendChild(w3);var a=e.paddingSize,c=e.borderSize,i=e.sizingStyle,o=i.boxSizing;Object.keys(i).forEach(function(d){var p=d;w3.style[p]=i[p]}),Gz(w3),w3.value=t;var s=Vt1(w3,e);w3.value="x";var l=w3.scrollHeight-a,f=l*r;o==="border-box"&&(f=f+a+c),s=Math.max(f,s);var u=l*n;return o==="border-box"&&(u=u+a+c),s=Math.min(u,s),[s,l]}var Yz=function(){},Mt1=function(t,r){return t.reduce(function(n,a){return n[a]=r[a],n},{})},xt1=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],wt1=!!document.documentElement.currentStyle,Lt1=function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=Mt1(xt1,r),a=n.boxSizing;if(a==="")return null;wt1&&a==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var c=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),i=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:c,borderSize:i}},St1=function(t){var r=Ct1(t);z.useLayoutEffect(function(){var n=function(c){r.current(c)};return window.addEventListener("resize",n),function(){window.removeEventListener("resize",n)}},[])},kt1=function(t,r){var n=t.cacheMeasurements,a=t.maxRows,c=t.minRows,i=t.onChange,o=i===void 0?Yz:i,s=t.onHeightChange,l=s===void 0?Yz:s,f=zt1(t,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),u=f.value!==void 0,d=z.useRef(null),p=Ht1(d,r),m=z.useRef(0),v=z.useRef(),C=function(){var y=d.current,V=n&&v.current?v.current:Lt1(y);if(V){v.current=V;var x=bt1(V,y.value||y.placeholder||"x",c,a),H=x[0],M=x[1];m.current!==H&&(m.current=H,y.style.setProperty("height",H+"px","important"),l(H,{rowHeight:M}))}},h=function(y){u||C(),o(y)};return z.useLayoutEffect(C),St1(C),z.createElement("textarea",l2({},f,{onChange:h,ref:p}))},Pt1=z.forwardRef(kt1);const Nt1=Pt1;var _t1=u1(e=>({input:{paddingTop:e.spacing.xs,paddingBottom:e.spacing.xs}}));const Ot1=_t1;var At1=Object.defineProperty,Et1=Object.defineProperties,$t1=Object.getOwnPropertyDescriptors,Qn=Object.getOwnPropertySymbols,Ek=Object.prototype.hasOwnProperty,$k=Object.prototype.propertyIsEnumerable,Zz=(e,t,r)=>t in e?At1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s0=(e,t)=>{for(var r in t||(t={}))Ek.call(t,r)&&Zz(e,r,t[r]);if(Qn)for(var r of Qn(t))$k.call(t,r)&&Zz(e,r,t[r]);return e},ji=(e,t)=>Et1(e,$t1(t)),Tt1=(e,t)=>{var r={};for(var n in e)Ek.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qn)for(var n of Qn(e))t.indexOf(n)<0&&$k.call(e,n)&&(r[n]=e[n]);return r};const Dt1={autosize:!1,size:"sm",__staticSelector:"Textarea"},Tk=z.forwardRef((e,t)=>{const r=L1("Textarea",Dt1,e),{autosize:n,maxRows:a,minRows:c,label:i,error:o,description:s,id:l,className:f,required:u,style:d,wrapperProps:p,classNames:m,styles:v,size:C,__staticSelector:h,sx:g,errorProps:y,descriptionProps:V,labelProps:x,inputWrapperOrder:H,inputContainer:M,unstyled:w,withAsterisk:P}=r,N=Tt1(r,["autosize","maxRows","minRows","label","error","description","id","className","required","style","wrapperProps","classNames","styles","size","__staticSelector","sx","errorProps","descriptionProps","labelProps","inputWrapperOrder","inputContainer","unstyled","withAsterisk"]),O=V4(l),{classes:E,cx:T}=Ot1(),{systemStyles:_,rest:R}=p6(N),k=s0({required:u,ref:t,invalid:!!o,id:O,classNames:ji(s0({},m),{input:T(E.input,m?.input)}),styles:v,__staticSelector:h,size:C,multiline:!0,unstyled:w},R);return b.createElement(S2.Wrapper,s0(s0({label:i,error:o,id:O,description:s,required:u,style:d,className:f,classNames:m,styles:v,size:C,__staticSelector:h,sx:g,errorProps:y,labelProps:x,descriptionProps:V,inputContainer:M,inputWrapperOrder:H,unstyled:w,withAsterisk:P},_),p),n?b.createElement(S2,ji(s0({},k),{component:Nt1,maxRows:a,minRows:c})):b.createElement(S2,ji(s0({},k),{component:"textarea",rows:c})))});Tk.displayName="@mantine/core/Textarea";var Rt1=Object.defineProperty,Kz=Object.getOwnPropertySymbols,Ft1=Object.prototype.hasOwnProperty,It1=Object.prototype.propertyIsEnumerable,Xz=(e,t,r)=>t in e?Rt1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jt1=(e,t)=>{for(var r in t||(t={}))Ft1.call(t,r)&&Xz(e,r,t[r]);if(Kz)for(var r of Kz(t))It1.call(t,r)&&Xz(e,r,t[r]);return e};const Bt1={xs:320,sm:380,md:440,lg:620,xl:780};function Wt1(e){return e?{position:"absolute",top:0,left:0,right:0,bottom:0,maxHeight:"100vh",overflowY:"auto"}:{}}var Ut1=u1((e,{overflow:t,size:r,centered:n,zIndex:a,fullScreen:c})=>({close:{},overlay:{display:c?"none":void 0},root:{position:"fixed",zIndex:a,top:0,left:0,right:0,bottom:0},inner:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowY:"auto",padding:c?0:`${e.spacing.xl*2}px ${e.spacing.md}px`,display:"flex",justifyContent:"center",alignItems:n?"center":"flex-start"},title:{marginRight:e.spacing.md,textOverflow:"ellipsis",display:"block",wordBreak:"break-word"},modal:jt1({position:"relative",width:c?"100vw":e.fn.size({sizes:Bt1,size:r}),borderRadius:c?0:void 0,outline:0,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,marginTop:n?"auto":void 0,marginBottom:n?"auto":void 0,zIndex:1},Wt1(c)),header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:e.spacing.md,marginRight:-9},body:{maxHeight:t==="inside"?"calc(100vh - 185px)":null,overflowY:t==="inside"?"auto":null,wordBreak:"break-word"}}));const qt1=Ut1;var Gt1=Object.defineProperty,Jn=Object.getOwnPropertySymbols,Dk=Object.prototype.hasOwnProperty,Rk=Object.prototype.propertyIsEnumerable,Qz=(e,t,r)=>t in e?Gt1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yt1=(e,t)=>{for(var r in t||(t={}))Dk.call(t,r)&&Qz(e,r,t[r]);if(Jn)for(var r of Jn(t))Rk.call(t,r)&&Qz(e,r,t[r]);return e},Zt1=(e,t)=>{var r={};for(var n in e)Dk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Jn)for(var n of Jn(e))t.indexOf(n)<0&&Rk.call(e,n)&&(r[n]=e[n]);return r};const Kt1={size:"md",transitionDuration:250,overflow:"outside",padding:"lg",shadow:"lg",closeOnClickOutside:!0,closeOnEscape:!0,trapFocus:!0,withCloseButton:!0,withinPortal:!0,lockScroll:!0,withFocusReturn:!0,overlayBlur:0,zIndex:d6("modal"),exitTransitionDuration:0};function c9(e){const t=L1("Modal",Kt1,e),{className:r,opened:n,title:a,onClose:c,children:i,withCloseButton:o,overlayOpacity:s,size:l,transitionDuration:f,exitTransitionDuration:u,closeButtonLabel:d,overlayColor:p,overflow:m,transition:v,padding:C,shadow:h,radius:g,id:y,classNames:V,styles:x,closeOnClickOutside:H,trapFocus:M,closeOnEscape:w,centered:P,target:N,withinPortal:O,zIndex:E,overlayBlur:T,transitionTimingFunction:_,fullScreen:R,unstyled:k,lockScroll:F,withFocusReturn:$}=t,j=Zt1(t,["className","opened","title","onClose","children","withCloseButton","overlayOpacity","size","transitionDuration","exitTransitionDuration","closeButtonLabel","overlayColor","overflow","transition","padding","shadow","radius","id","classNames","styles","closeOnClickOutside","trapFocus","closeOnEscape","centered","target","withinPortal","zIndex","overlayBlur","transitionTimingFunction","fullScreen","unstyled","lockScroll","withFocusReturn"]),I=V4(y),L=`${I}-title`,S=`${I}-body`,{classes:Z,cx:n1,theme:h1}=qt1({size:l,overflow:m,centered:P,zIndex:E,fullScreen:R},{unstyled:k,classNames:V,styles:x,name:"Modal"}),K=du(M&&n),c1=z.useRef(null),H1=n3(K,c1),l1=typeof s=="number"?s:h1.colorScheme==="dark"?.85:.75;mw(F&&n);const V1=x1=>{!M&&x1.key==="Escape"&&w&&c()};z.useEffect(()=>{if(!M)return window.addEventListener("keydown",V1),()=>window.removeEventListener("keydown",V1)},[M]),uu({opened:n,shouldReturnFocus:M&&$});const i1=z.useRef(null);Us("mousedown",x1=>{i1.current=x1.target});const f1=()=>{i1.current===c1.current&&H&&c()};return b.createElement(h8,{withinPortal:O,target:N},b.createElement($u,{mounted:n,duration:f,exitDuration:u,timingFunction:_,transitions:{modal:{duration:f,transition:v||(R?"fade":"pop")},overlay:{duration:f/2,transition:"fade",timingFunction:"ease"}}},x1=>b.createElement(b.Fragment,null,b.createElement(y1,Yt1({id:I,className:n1(Z.root,r)},j),b.createElement("div",{style:x1.overlay},b.createElement(hk,{className:Z.overlay,sx:{position:"fixed"},zIndex:0,blur:T,color:p||(h1.colorScheme==="dark"?h1.colors.dark[9]:h1.black),opacity:l1,unstyled:k})),b.createElement("div",{role:"presentation",className:Z.inner,onClick:f1,onKeyDown:M1=>{var D;((D=M1.target)==null?void 0:D.getAttribute("data-mantine-stop-propagation"))!=="true"&&M1.key==="Escape"&&w&&c()},ref:H1},b.createElement(MS,{className:Z.modal,shadow:h,p:C,radius:g,role:"dialog","aria-labelledby":L,"aria-describedby":S,"aria-modal":!0,tabIndex:-1,style:x1.modal,unstyled:k,onClick:M1=>M1.stopPropagation()},(a||o)&&b.createElement("div",{className:Z.header},b.createElement(Y1,{id:L,className:Z.title},a),o&&b.createElement(v8,{iconSize:16,onClick:c,"aria-label":d,className:Z.close})),b.createElement("div",{id:S,className:Z.body},i)))))))}c9.displayName="@mantine/core/Modal";const Xt1={xs:16,sm:22,md:26,lg:30,xl:36},Qt1={xs:10,sm:12,md:14,lg:16,xl:18};var Jt1=u1((e,{size:t,disabled:r,radius:n,readOnly:a,variant:c})=>({defaultValue:{display:"flex",alignItems:"center",backgroundColor:r?e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[3]:e.colorScheme==="dark"?e.colors.dark[7]:c==="filled"?e.white:e.colors.gray[1],color:r?e.colorScheme==="dark"?e.colors.dark[1]:e.colors.gray[7]:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[7],height:e.fn.size({size:t,sizes:Xt1}),paddingLeft:e.fn.size({size:t,sizes:e.spacing}),paddingRight:r||a?e.fn.size({size:t,sizes:e.spacing}):0,fontWeight:500,fontSize:e.fn.size({size:t,sizes:Qt1}),borderRadius:e.fn.size({size:n,sizes:e.radius}),cursor:r?"not-allowed":"default",userSelect:"none",maxWidth:"calc(100% - 20px)"},defaultValueRemove:{color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[7],marginLeft:e.fn.size({size:t,sizes:e.spacing})/6},defaultValueLabel:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}));const er1=Jt1;var tr1=Object.defineProperty,ea=Object.getOwnPropertySymbols,Fk=Object.prototype.hasOwnProperty,Ik=Object.prototype.propertyIsEnumerable,Jz=(e,t,r)=>t in e?tr1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rr1=(e,t)=>{for(var r in t||(t={}))Fk.call(t,r)&&Jz(e,r,t[r]);if(ea)for(var r of ea(t))Ik.call(t,r)&&Jz(e,r,t[r]);return e},nr1=(e,t)=>{var r={};for(var n in e)Fk.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&&Ik.call(e,n)&&(r[n]=e[n]);return r};const ey={xs:16,sm:22,md:24,lg:26,xl:30};function jk(e){var t=e,{label:r,classNames:n,styles:a,className:c,onRemove:i,disabled:o,readOnly:s,size:l,radius:f="sm",variant:u}=t,d=nr1(t,["label","classNames","styles","className","onRemove","disabled","readOnly","size","radius","variant"]);const{classes:p,cx:m}=er1({size:l,disabled:o,readOnly:s,radius:f,variant:u},{classNames:n,styles:a,name:"MultiSelect"});return b.createElement("div",rr1({className:m(p.defaultValue,c)},d),b.createElement("span",{className:p.defaultValueLabel},r),!o&&!s&&b.createElement(v8,{"aria-hidden":!0,onMouseDown:i,size:ey[l],radius:2,color:"blue",variant:"transparent",iconSize:ey[l]/2,className:p.defaultValueRemove,tabIndex:-1}))}jk.displayName="@mantine/core/MultiSelect/DefaultValue";function ar1({data:e,searchable:t,limit:r,searchValue:n,filter:a,value:c,disableSelectedItemFiltering:i}){if(!t&&c.length===0)return e;if(!t){const s=[];for(let l=0;lf===e[l].value&&!e[l].disabled))&&s.push(e[l]);return s}const o=[];for(let s=0;sl===e[s].value&&!e[s].disabled),e[s])&&o.push(e[s]),!(o.length>=r));s+=1);return o}var cr1=Object.defineProperty,ta=Object.getOwnPropertySymbols,Bk=Object.prototype.hasOwnProperty,Wk=Object.prototype.propertyIsEnumerable,ty=(e,t,r)=>t in e?cr1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ry=(e,t)=>{for(var r in t||(t={}))Bk.call(t,r)&&ty(e,r,t[r]);if(ta)for(var r of ta(t))Wk.call(t,r)&&ty(e,r,t[r]);return e},ir1=(e,t)=>{var r={};for(var n in e)Bk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ta)for(var n of ta(e))t.indexOf(n)<0&&Wk.call(e,n)&&(r[n]=e[n]);return r};const or1={xs:14,sm:18,md:20,lg:24,xl:28};function Uk(e){var t=e,{size:r,error:n,style:a}=t,c=ir1(t,["size","error","style"]);const i=H2(),o=i.fn.size({size:r,sizes:or1});return b.createElement("svg",ry({width:o,height:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:ry({color:n?i.colors.red[6]:i.colors.gray[6]},a),"data-chevron":!0},c),b.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"}))}function qk({shouldClear:e,clearButtonLabel:t,onClear:r,size:n,error:a,clearButtonTabIndex:c}){return e?b.createElement(v8,{variant:"transparent","aria-label":t,onClick:r,size:n,tabIndex:c,onMouseDown:i=>i.preventDefault()}):b.createElement(Uk,{error:a,size:n})}qk.displayName="@mantine/core/SelectRightSection";var sr1=Object.defineProperty,lr1=Object.defineProperties,fr1=Object.getOwnPropertyDescriptors,ra=Object.getOwnPropertySymbols,Gk=Object.prototype.hasOwnProperty,Yk=Object.prototype.propertyIsEnumerable,ny=(e,t,r)=>t in e?sr1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bi=(e,t)=>{for(var r in t||(t={}))Gk.call(t,r)&&ny(e,r,t[r]);if(ra)for(var r of ra(t))Yk.call(t,r)&&ny(e,r,t[r]);return e},ay=(e,t)=>lr1(e,fr1(t)),ur1=(e,t)=>{var r={};for(var n in e)Gk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ra)for(var n of ra(e))t.indexOf(n)<0&&Yk.call(e,n)&&(r[n]=e[n]);return r};const dr1={xs:24,sm:30,md:34,lg:44,xl:54};function Zk(e){var t=e,{styles:r,rightSection:n,rightSectionWidth:a,theme:c}=t,i=ur1(t,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:a,styles:r};const o=typeof r=="function"?r(c):r;return{rightSectionWidth:c.fn.size({size:i.size,sizes:dr1}),rightSection:!i.readOnly&&!(i.disabled&&i.shouldClear)&&b.createElement(qk,Bi({},i)),styles:ay(Bi({},o),{rightSection:ay(Bi({},o?.rightSection),{pointerEvents:i.shouldClear?void 0:"none"})})}}var pr1=Object.defineProperty,mr1=Object.defineProperties,hr1=Object.getOwnPropertyDescriptors,cy=Object.getOwnPropertySymbols,vr1=Object.prototype.hasOwnProperty,gr1=Object.prototype.propertyIsEnumerable,iy=(e,t,r)=>t in e?pr1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zr1=(e,t)=>{for(var r in t||(t={}))vr1.call(t,r)&&iy(e,r,t[r]);if(cy)for(var r of cy(t))gr1.call(t,r)&&iy(e,r,t[r]);return e},yr1=(e,t)=>mr1(e,hr1(t)),Cr1=u1((e,{size:t,invalid:r})=>({wrapper:{position:"relative"},values:{minHeight:e.fn.size({size:t,sizes:_2})-2,display:"flex",alignItems:"center",flexWrap:"wrap",marginLeft:`calc(${-e.spacing.xs}px / 2)`,boxSizing:"border-box"},value:{margin:`calc(${e.spacing.xs}px / 2 - 2px) calc(${e.spacing.xs}px / 2)`},searchInput:yr1(zr1({},e.fn.fontStyles()),{flex:1,minWidth:60,backgroundColor:"transparent",border:0,outline:0,fontSize:e.fn.size({size:t,sizes:e.fontSizes}),padding:0,marginLeft:`calc(${e.spacing.xs}px / 2)`,appearance:"none",color:"inherit",lineHeight:`${e.fn.size({size:t,sizes:_2})-2}px`,"&::placeholder":{opacity:1,color:r?e.colors.red[e.colorScheme==="dark"?6:7]:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&:disabled":{cursor:"not-allowed"}}),searchInputEmpty:{width:"100%"},searchInputInputHidden:{width:0,height:0,margin:0,overflow:"hidden"},searchInputPointer:{cursor:"pointer","&:disabled":{cursor:"not-allowed"}},input:{cursor:"pointer","&:disabled":{cursor:"not-allowed"}}}));const Hr1=Cr1;var Vr1=Object.defineProperty,br1=Object.defineProperties,Mr1=Object.getOwnPropertyDescriptors,na=Object.getOwnPropertySymbols,Kk=Object.prototype.hasOwnProperty,Xk=Object.prototype.propertyIsEnumerable,oy=(e,t,r)=>t in e?Vr1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,l0=(e,t)=>{for(var r in t||(t={}))Kk.call(t,r)&&oy(e,r,t[r]);if(na)for(var r of na(t))Xk.call(t,r)&&oy(e,r,t[r]);return e},sy=(e,t)=>br1(e,Mr1(t)),xr1=(e,t)=>{var r={};for(var n in e)Kk.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&&Xk.call(e,n)&&(r[n]=e[n]);return r};function wr1(e,t,r){return t?!1:r.label.toLowerCase().trim().includes(e.toLowerCase().trim())}function Lr1(e,t){return!!e&&!t.some(r=>r.value.toLowerCase()===e.toLowerCase())}function ly(e,t){if(!Array.isArray(e))return;if(t.length===0)return[];const r=typeof t[0]=="object"?t.map(n=>n.value):t;return e.filter(n=>r.includes(n))}const Sr1={size:"sm",valueComponent:jk,itemComponent:vu,transition:"pop-top-left",transitionDuration:0,maxDropdownHeight:220,shadow:"sm",searchable:!1,filter:wr1,limit:1/0,clearSearchOnChange:!0,clearable:!1,clearSearchOnBlur:!1,disabled:!1,initiallyOpened:!1,creatable:!1,shouldCreate:Lr1,switchDirectionOnFlip:!1,zIndex:d6("popover"),selectOnBlur:!1,clearButtonTabIndex:0,positionDependencies:[]},Qk=z.forwardRef((e,t)=>{const r=L1("MultiSelect",Sr1,e),{className:n,style:a,required:c,label:i,description:o,size:s,error:l,classNames:f,styles:u,wrapperProps:d,value:p,defaultValue:m,data:v,onChange:C,valueComponent:h,itemComponent:g,id:y,transition:V,transitionDuration:x,transitionTimingFunction:H,maxDropdownHeight:M,shadow:w,nothingFound:P,onFocus:N,onBlur:O,searchable:E,placeholder:T,filter:_,limit:R,clearSearchOnChange:k,clearable:F,clearSearchOnBlur:$,clearButtonLabel:j,variant:I,onSearchChange:L,searchValue:S,disabled:Z,initiallyOpened:n1,radius:h1,icon:K,rightSection:c1,rightSectionWidth:H1,creatable:l1,getCreateLabel:V1,shouldCreate:i1,onCreate:f1,sx:x1,dropdownComponent:M1,onDropdownClose:D,onDropdownOpen:B,maxSelectedValues:W,withinPortal:Y,switchDirectionOnFlip:J,zIndex:G,selectOnBlur:e1,name:C1,dropdownPosition:k1,errorProps:A1,labelProps:b1,descriptionProps:I1,clearButtonTabIndex:U,form:q,positionDependencies:a1,onKeyDown:r1,unstyled:v1,inputContainer:G1,inputWrapperOrder:o1,readOnly:d1,withAsterisk:_1,hoverOnSearchChange:U1,disableSelectedItemFiltering:T1}=r,b4=xr1(r,["className","style","required","label","description","size","error","classNames","styles","wrapperProps","value","defaultValue","data","onChange","valueComponent","itemComponent","id","transition","transitionDuration","transitionTimingFunction","maxDropdownHeight","shadow","nothingFound","onFocus","onBlur","searchable","placeholder","filter","limit","clearSearchOnChange","clearable","clearSearchOnBlur","clearButtonLabel","variant","onSearchChange","searchValue","disabled","initiallyOpened","radius","icon","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","onCreate","sx","dropdownComponent","onDropdownClose","onDropdownOpen","maxSelectedValues","withinPortal","switchDirectionOnFlip","zIndex","selectOnBlur","name","dropdownPosition","errorProps","labelProps","descriptionProps","clearButtonTabIndex","form","positionDependencies","onKeyDown","unstyled","inputContainer","inputWrapperOrder","readOnly","withAsterisk","hoverOnSearchChange","disableSelectedItemFiltering"]),{classes:t2,cx:Y2,theme:M4}=Hr1({size:s,invalid:!!l},{classNames:f,styles:u,unstyled:v1,name:"MultiSelect"}),{systemStyles:me,rest:m3}=p6(b4),a3=z.useRef(),he=z.useRef({}),Z2=V4(y),[$2,P1]=z.useState(n1),[F1,q3]=z.useState(-1),[g6,M3]=z.useState("column"),[x3,ve]=F3({value:S,defaultValue:"",finalValue:void 0,onChange:L}),[r0,O7]=z.useState(!1),{scrollIntoView:n0,targetRef:A7,scrollableRef:j9}=pw({duration:0,offset:5,cancelable:!1,isList:!0}),E7=l1&&typeof V1=="function";let g1=null;const Q1=v.map(S1=>typeof S1=="string"?{label:S1,value:S1}:S1),B2=$x({data:Q1}),[D1,a0]=F3({value:ly(p,v),defaultValue:ly(m,v),finalValue:[],onChange:C}),o4=z.useRef(!!W&&W{if(!d1){const J1=D1.filter(B4=>B4!==S1);a0(J1),W&&J1.length{ve(S1.currentTarget.value),!Z&&!o4.current&&E&&P1(!0)},UB=S1=>{typeof N=="function"&&N(S1),!Z&&!o4.current&&E&&P1(!0)},T2=ar1({data:B2,searchable:E,searchValue:x3,limit:R,filter:_,value:D1,disableSelectedItemFiltering:T1}),$p=(S1,J1,B4)=>{let z6=S1;for(;B4(z6);)if(z6=J1(z6),!T2[z6].disabled)return z6;return S1};I2(()=>{q3(U1&&x3?0:-1)},[x3,U1]),I2(()=>{!Z&&D1.length>v.length&&P1(!1),W&&D1.length=W&&(o4.current=!0,P1(!1))},[D1]);const $7=S1=>{if(!d1)if(k&&ve(""),D1.includes(S1.value))Ep(S1.value);else{if(S1.creatable&&typeof f1=="function"){const J1=f1(S1.value);typeof J1<"u"&&J1!==null&&a0(typeof J1=="string"?[...D1,J1]:[...D1,J1.value])}else a0([...D1,S1.value]);D1.length===W-1&&(o4.current=!0,P1(!1)),F1===T2.length-1&&q3(T2.length-2),T2.length===1&&P1(!1)}},qB=S1=>{typeof O=="function"&&O(S1),e1&&T2[F1]&&$2&&$7(T2[F1]),$&&ve(""),P1(!1)},GB=S1=>{if(r0||(r1?.(S1),d1)||S1.key!=="Backspace"&&W&&o4.current)return;const J1=g6==="column",B4=()=>{q3(ge=>{var W4;const V8=$p(ge,ze=>ze+1,ze=>ze{q3(ge=>{var W4;const V8=$p(ge,ze=>ze-1,ze=>ze>0);return $2&&(A7.current=he.current[(W4=T2[V8])==null?void 0:W4.value],n0({alignment:J1?"start":"end"})),V8})};switch(S1.key){case"ArrowUp":{S1.preventDefault(),P1(!0),J1?z6():B4();break}case"ArrowDown":{S1.preventDefault(),P1(!0),J1?B4():z6();break}case"Enter":{S1.preventDefault(),T2[F1]&&$2?$7(T2[F1]):P1(!0);break}case" ":{E||(S1.preventDefault(),T2[F1]&&$2?$7(T2[F1]):P1(!0));break}case"Backspace":{D1.length>0&&x3.length===0&&(a0(D1.slice(0,-1)),P1(!0),W&&(o4.current=!1));break}case"Home":{if(!E){S1.preventDefault(),$2||P1(!0);const ge=T2.findIndex(W4=>!W4.disabled);q3(ge),n0({alignment:J1?"end":"start"})}break}case"End":{if(!E){S1.preventDefault(),$2||P1(!0);const ge=T2.map(W4=>!!W4.disabled).lastIndexOf(!1);q3(ge),n0({alignment:J1?"end":"start"})}break}case"Escape":P1(!1)}},YB=D1.map(S1=>{let J1=B2.find(B4=>B4.value===S1&&!B4.disabled);return!J1&&E7&&(J1={value:S1,label:S1}),J1}).filter(S1=>!!S1).map(S1=>b.createElement(h,sy(l0({},S1),{variant:I,disabled:Z,className:t2.value,readOnly:d1,onRemove:J1=>{J1.preventDefault(),J1.stopPropagation(),Ep(S1.value)},key:S1.value,size:s,styles:u,classNames:f,radius:h1}))),ZB=S1=>D1.includes(S1),KB=()=>{var S1;ve(""),a0([]),(S1=a3.current)==null||S1.focus(),W&&(o4.current=!1)};E7&&i1(x3,B2)&&(g1=V1(x3),T2.push({label:x3,value:x3,creatable:!0}));const T7=!d1&&(T2.length>0?$2:$2&&!!P);return I2(()=>{const S1=T7?B:D;typeof S1=="function"&&S1()},[T7]),b.createElement(S2.Wrapper,l0(l0({required:c,id:Z2,label:i,error:l,description:o,size:s,className:n,style:a,classNames:f,styles:u,__staticSelector:"MultiSelect",sx:x1,errorProps:A1,descriptionProps:I1,labelProps:b1,inputContainer:G1,inputWrapperOrder:o1,unstyled:v1,withAsterisk:_1},me),d),b.createElement(Z6,{opened:T7,transition:V,transitionDuration:x,shadow:"sm",withinPortal:Y,__staticSelector:"MultiSelect",onDirectionChange:M3,switchDirectionOnFlip:J,zIndex:G,dropdownPosition:k1,positionDependencies:[...a1,x3],classNames:f,styles:u,unstyled:v1},b.createElement(Z6.Target,null,b.createElement("div",{className:t2.wrapper,role:"combobox","aria-haspopup":"listbox","aria-owns":$2&&T7?`${Z2}-items`:null,"aria-controls":Z2,"aria-expanded":$2,onMouseLeave:()=>q3(-1),tabIndex:-1},b.createElement("input",{type:"hidden",name:C1,value:D1.join(","),form:q,disabled:Z}),b.createElement(S2,l0({__staticSelector:"MultiSelect",style:{overflow:"hidden"},component:"div",multiline:!0,size:s,variant:I,disabled:Z,invalid:!!l,required:c,radius:h1,icon:K,unstyled:v1,onMouseDown:S1=>{var J1;S1.preventDefault(),!Z&&!o4.current&&P1(!$2),(J1=a3.current)==null||J1.focus()},classNames:sy(l0({},f),{input:Y2({[t2.input]:!E},f?.input)})},Zk({theme:M4,rightSection:c1,rightSectionWidth:H1,styles:u,size:s,shouldClear:F&&D1.length>0,clearButtonLabel:j,onClear:KB,error:l,disabled:Z,clearButtonTabIndex:U,readOnly:d1})),b.createElement("div",{className:t2.values},YB,b.createElement("input",l0({ref:n3(t,a3),type:"search",id:Z2,className:Y2(t2.searchInput,{[t2.searchInputPointer]:!E,[t2.searchInputInputHidden]:!$2&&D1.length>0||!E&&D1.length>0,[t2.searchInputEmpty]:D1.length===0}),onKeyDown:GB,value:x3,onChange:WB,onFocus:UB,onBlur:qB,readOnly:!E||o4.current||d1,placeholder:D1.length===0?T:void 0,disabled:Z,"data-mantine-stop-propagation":$2,autoComplete:"off",onCompositionStart:()=>O7(!0),onCompositionEnd:()=>O7(!1)},m3)))))),b.createElement(Z6.Dropdown,{component:M1||e9,maxHeight:M,direction:g6,id:Z2,innerRef:j9,__staticSelector:"MultiSelect",classNames:f,styles:u},b.createElement(hu,{data:T2,hovered:F1,classNames:f,styles:u,uuid:Z2,__staticSelector:"MultiSelect",onItemHover:q3,onItemSelect:$7,itemsRefs:he,itemComponent:g,size:s,nothingFound:P,isItemSelected:ZB,creatable:l1&&!!g1,createLabel:g1,unstyled:v1}))))});Qk.displayName="@mantine/core/MultiSelect";const kr1=(e,t,r)=>Number.isInteger(e)&&e>=0&&t===0?"numeric":!Number.isInteger(e)&&e>=0&&t!==0?"decimal":Number.isInteger(e)&&e<0&&t===0||!Number.isInteger(e)&&e<0&&t!==0?r==="ios"?"text":"decimal":"numeric";function fy({direction:e,size:t}){return b.createElement("svg",{style:{transform:e==="up"?"rotate(180deg)":void 0},width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}const Jk={xs:20,sm:24,md:30,lg:34,xl:36};var Pr1=u1((e,{radius:t,size:r})=>({rightSection:{display:"flex",flexDirection:"column",height:"calc(100% - 2px)",margin:1,marginRight:1,overflow:"hidden",borderTopRightRadius:e.fn.radius(t),borderBottomRightRadius:e.fn.radius(t)},control:{margin:0,position:"relative",flex:"0 0 50%",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:e.fn.size({size:r,sizes:Jk}),padding:0,WebkitTapHighlightColor:"transparent",borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderLeft:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderTop:0,borderRight:0,backgroundColor:"transparent",marginRight:1,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,"&:not(:disabled):hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]},"&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]}},controlUp:{},controlDown:{borderBottom:0}}));const Nr1=Pr1;var _r1=Object.defineProperty,Or1=Object.defineProperties,Ar1=Object.getOwnPropertyDescriptors,aa=Object.getOwnPropertySymbols,eP=Object.prototype.hasOwnProperty,tP=Object.prototype.propertyIsEnumerable,uy=(e,t,r)=>t in e?_r1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wi=(e,t)=>{for(var r in t||(t={}))eP.call(t,r)&&uy(e,r,t[r]);if(aa)for(var r of aa(t))tP.call(t,r)&&uy(e,r,t[r]);return e},Er1=(e,t)=>Or1(e,Ar1(t)),$r1=(e,t)=>{var r={};for(var n in e)eP.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&&tP.call(e,n)&&(r[n]=e[n]);return r};const Tr1={type:"text",size:"sm",__staticSelector:"TextInput"},Tu=z.forwardRef((e,t)=>{const r=Lu("TextInput",Tr1,e),{inputProps:n,wrapperProps:a}=r,c=$r1(r,["inputProps","wrapperProps"]);return b.createElement(S2.Wrapper,Wi({},a),b.createElement(S2,Er1(Wi(Wi({},n),c),{ref:t})))});Tu.displayName="@mantine/core/TextInput";var Dr1=Object.defineProperty,Rr1=Object.defineProperties,Fr1=Object.getOwnPropertyDescriptors,ca=Object.getOwnPropertySymbols,rP=Object.prototype.hasOwnProperty,nP=Object.prototype.propertyIsEnumerable,dy=(e,t,r)=>t in e?Dr1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ir1=(e,t)=>{for(var r in t||(t={}))rP.call(t,r)&&dy(e,r,t[r]);if(ca)for(var r of ca(t))nP.call(t,r)&&dy(e,r,t[r]);return e},jr1=(e,t)=>Rr1(e,Fr1(t)),Br1=(e,t)=>{var r={};for(var n in e)rP.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&&nP.call(e,n)&&(r[n]=e[n]);return r};const Wr1=e=>e||"",Ur1=e=>{if(e==="-")return e;let t=e;t[0]==="."&&(t=`0${e}`);const r=parseFloat(t);if(!Number.isNaN(r))return e},py={xs:10,sm:14,md:16,lg:18,xl:20},qr1={step:1,hideControls:!1,size:"sm",precision:0,noClampOnBlur:!1,removeTrailingZeros:!1,formatter:Wr1,parser:Ur1,type:"text"},aP=z.forwardRef((e,t)=>{const r=L1("NumberInput",qr1,e),{readOnly:n,disabled:a,value:c,onChange:i,decimalSeparator:o,min:s,max:l,startValue:f,step:u,stepHoldInterval:d,stepHoldDelay:p,onBlur:m,onFocus:v,onKeyDown:C,onKeyUp:h,hideControls:g,radius:y,variant:V,precision:x,removeTrailingZeros:H,defaultValue:M,noClampOnBlur:w,handlersRef:P,classNames:N,styles:O,size:E,rightSection:T,rightSectionWidth:_,formatter:R,parser:k,inputMode:F,unstyled:$,type:j}=r,I=Br1(r,["readOnly","disabled","value","onChange","decimalSeparator","min","max","startValue","step","stepHoldInterval","stepHoldDelay","onBlur","onFocus","onKeyDown","onKeyUp","hideControls","radius","variant","precision","removeTrailingZeros","defaultValue","noClampOnBlur","handlersRef","classNames","styles","size","rightSection","rightSectionWidth","formatter","parser","inputMode","unstyled","type"]),{classes:L,cx:S,theme:Z}=Nr1({radius:y,size:E},{classNames:N,styles:O,unstyled:$,name:"NumberInput"}),n1=o1=>{if(o1===void 0)return;let d1=o1.toFixed(x);return H&&x>0&&(d1=d1.replace(new RegExp(`[0]{0,${x}}$`),""),(d1.endsWith(".")||d1.endsWith(o))&&(d1=d1.slice(0,-1))),d1},[h1,K]=z.useState(!1),[c1,H1]=z.useState(typeof c=="number"?c:typeof M=="number"?M:void 0),l1=typeof c=="number"?c:c1,[V1,i1]=z.useState(typeof l1=="number"?n1(l1):""),f1=z.useRef(),x1=o1=>{o1!==c1&&!Number.isNaN(o1)&&(typeof i=="function"&&i(o1),H1(o1))},M1=(o1="")=>{let d1=typeof o1=="number"?String(o1):o1;return o&&(d1=d1.replace(/\./g,o)),R(d1)},D=o1=>{let d1=o1;return o&&(d1=d1.replace(new RegExp(`\\${o}`,"g"),".")),k(d1)},B=typeof s=="number"?s:-1/0,W=typeof l=="number"?l:1/0,Y=z.useRef();Y.current=()=>{var o1,d1,_1;if(c1===void 0)x1((o1=f??s)!=null?o1:0),i1((_1=(d1=n1(f))!=null?d1:n1(s))!=null?_1:"0");else{const U1=n1(D3(c1+u,B,W));x1(parseFloat(U1)),i1(U1)}};const J=z.useRef();J.current=()=>{var o1,d1,_1;if(c1===void 0)x1((o1=f??s)!=null?o1:0),i1((_1=(d1=n1(f))!=null?d1:n1(s))!=null?_1:"0");else{const U1=n1(D3(c1-u,B,W));x1(parseFloat(U1)),i1(U1)}},fw(P,{increment:Y.current,decrement:J.current}),z.useEffect(()=>{typeof c=="number"&&!h1&&(H1(c),i1(n1(c))),M===void 0&&c===void 0&&!h1&&(H1(c),i1(""))},[c,x]);const G=p!==void 0&&d!==void 0,e1=z.useRef(null),C1=z.useRef(0),k1=()=>{e1.current&&window.clearTimeout(e1.current),e1.current=null,C1.current=0},A1=o1=>{o1?Y.current():J.current(),C1.current+=1},b1=o1=>{if(A1(o1),G){const d1=typeof d=="number"?d:d(C1.current);e1.current=window.setTimeout(()=>b1(o1),d1)}},I1=(o1,d1)=>{o1.preventDefault(),f1.current.focus(),A1(d1),G&&(e1.current=window.setTimeout(()=>b1(d1),p))};z.useEffect(()=>(k1(),k1),[]);const U=b.createElement("div",{className:L.rightSection},b.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:l1>=l,className:S(L.control,L.controlUp),onPointerDown:o1=>{I1(o1,!0)},onPointerUp:k1,onPointerLeave:k1},b.createElement(fy,{size:Z.fn.size({size:E,sizes:py}),direction:"up"})),b.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:l1<=s,className:S(L.control,L.controlDown),onPointerDown:o1=>{I1(o1,!1)},onPointerUp:k1,onPointerLeave:k1},b.createElement(fy,{size:Z.fn.size({size:E,sizes:py}),direction:"down"}))),q=o1=>{if(o1.nativeEvent.isComposing)return;const _1=o1.target.value,U1=D(_1);i1(U1),_1===""||_1==="-"?x1(void 0):_1.trim()!==""&&!Number.isNaN(U1)&&x1(parseFloat(U1))},a1=o1=>{var d1;if(o1.target.value==="")i1(""),x1(void 0);else{let _1=o1.target.value;(_1[0]===`${o}`||_1[0]===".")&&(_1=`0${_1}`);const U1=D(_1),T1=D3(parseFloat(U1),B,W);Number.isNaN(T1)?i1((d1=n1(l1))!=null?d1:""):w||(i1(n1(T1)),x1(parseFloat(n1(T1))))}K(!1),typeof m=="function"&&m(o1)},r1=o1=>{K(!0),typeof v=="function"&&v(o1)},v1=o1=>{if(typeof C=="function"&&C(o1),o1.repeat&&G&&(o1.key==="ArrowUp"||o1.key==="ArrowDown")){o1.preventDefault();return}n||(o1.key==="ArrowUp"?I1(o1,!0):o1.key==="ArrowDown"&&I1(o1,!1))},G1=o1=>{typeof h=="function"&&h(o1),(o1.key==="ArrowUp"||o1.key==="ArrowDown")&&k1()};return b.createElement(Tu,jr1(Ir1({},I),{type:j,variant:V,value:M1(V1),disabled:a,readOnly:n,ref:n3(f1,t),onChange:q,onBlur:a1,onFocus:r1,onKeyDown:v1,onKeyUp:G1,rightSection:T||(a||n||g||V==="unstyled"?null:U),rightSectionWidth:_||Z.fn.size({size:E,sizes:Jk})+1,radius:y,max:l,min:s,step:u,size:E,styles:O,classNames:N,inputMode:F||kr1(u,x,t11()),__staticSelector:"NumberInput",unstyled:$}))});aP.displayName="@mantine/core/NumberInput";const Gr1=({reveal:e,size:t=15})=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.createElement("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));var Yr1=Object.defineProperty,Zr1=Object.defineProperties,Kr1=Object.getOwnPropertyDescriptors,my=Object.getOwnPropertySymbols,Xr1=Object.prototype.hasOwnProperty,Qr1=Object.prototype.propertyIsEnumerable,hy=(e,t,r)=>t in e?Yr1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vy=(e,t)=>{for(var r in t||(t={}))Xr1.call(t,r)&&hy(e,r,t[r]);if(my)for(var r of my(t))Qr1.call(t,r)&&hy(e,r,t[r]);return e},gy=(e,t)=>Zr1(e,Kr1(t)),Jr1=u1((e,{size:t,rightSectionWidth:r})=>({visibilityToggle:{},input:{position:"relative",overflow:"hidden"},innerInput:gy(vy({},e.fn.fontStyles()),{backgroundColor:"transparent",border:"1px solid transparent",borderLeftWidth:0,borderRightWidth:0,boxSizing:"border-box",position:"absolute",display:"block",width:`calc(100% - ${r}px)`,paddingLeft:e.fn.size({size:t,sizes:_2})/3,fontSize:e.fn.size({size:t,sizes:e.fontSizes}),height:e.fn.size({size:t,sizes:_2})-2,lineHeight:`${e.fn.size({size:t,sizes:_2})-4}px`,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,top:0,bottom:0,left:0,right:0,"&:focus":{outline:0},"&:disabled":{cursor:"not-allowed"},"&::placeholder":gy(vy({},e.fn.placeholderStyles()),{opacity:1})}),invalid:{color:e.fn.variant({variant:"filled",color:"red"}).background,"&::placeholder":{opacity:1,color:e.fn.variant({variant:"filled",color:"red"}).background}},withIcon:{paddingLeft:`${e.fn.size({size:t,sizes:_2})}px !important`}}));const en1=Jr1;var tn1=Object.defineProperty,rn1=Object.defineProperties,nn1=Object.getOwnPropertyDescriptors,ia=Object.getOwnPropertySymbols,cP=Object.prototype.hasOwnProperty,iP=Object.prototype.propertyIsEnumerable,zy=(e,t,r)=>t in e?tn1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yt=(e,t)=>{for(var r in t||(t={}))cP.call(t,r)&&zy(e,r,t[r]);if(ia)for(var r of ia(t))iP.call(t,r)&&zy(e,r,t[r]);return e},an1=(e,t)=>rn1(e,nn1(t)),cn1=(e,t)=>{var r={};for(var n in e)cP.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&&iP.call(e,n)&&(r[n]=e[n]);return r};const in1={xs:22,sm:26,md:28,lg:32,xl:40},on1={xs:12,sm:15,md:17,lg:19,xl:21},sn1={xs:28,sm:32,md:34,lg:44,xl:54},ln1={size:"sm",toggleTabIndex:-1,visibilityToggleIcon:Gr1,__staticSelector:"PasswordInput"},oP=z.forwardRef((e,t)=>{const r=L1("PasswordInput",ln1,e),{radius:n,disabled:a,size:c,toggleTabIndex:i,className:o,id:s,label:l,error:f,required:u,style:d,icon:p,description:m,wrapperProps:v,classNames:C,styles:h,variant:g,visibilityToggleIcon:y,__staticSelector:V,rightSection:x,rightSectionWidth:H,rightSectionProps:M,sx:w,labelProps:P,descriptionProps:N,errorProps:O,unstyled:E,visibilityToggleLabel:T,withAsterisk:_,inputContainer:R,iconWidth:k,inputWrapperOrder:F,visible:$,defaultVisible:j,onVisibilityChange:I}=r,L=cn1(r,["radius","disabled","size","toggleTabIndex","className","id","label","error","required","style","icon","description","wrapperProps","classNames","styles","variant","visibilityToggleIcon","__staticSelector","rightSection","rightSectionWidth","rightSectionProps","sx","labelProps","descriptionProps","errorProps","unstyled","visibilityToggleLabel","withAsterisk","inputContainer","iconWidth","inputWrapperOrder","visible","defaultVisible","onVisibilityChange"]),S=H2(),Z=S.fn.size({size:c,sizes:sn1}),{classes:n1,cx:h1}=en1({size:c,rightSectionWidth:Z},{name:"PasswordInput",classNames:C,styles:h,unstyled:E}),K=V4(s),{systemStyles:c1,rest:H1}=p6(L),[l1,V1]=F3({value:$,defaultValue:j,finalValue:!1,onChange:I}),i1=()=>V1(!l1),f1=b.createElement(n8,{className:n1.visibilityToggle,tabIndex:i,radius:n,size:S.fn.size({size:c,sizes:in1}),"aria-hidden":!T,"aria-label":T,unstyled:E,onMouseDown:x1=>{x1.preventDefault(),i1()},onKeyDown:x1=>{x1.key===" "&&(x1.preventDefault(),i1())}},b.createElement(y,{reveal:l1,size:S.fn.size({size:c,sizes:on1})}));return b.createElement(S2.Wrapper,yt(yt({required:u,id:K,label:l,error:f,description:m,size:c,className:o,style:d,classNames:C,styles:h,__staticSelector:V,sx:w,errorProps:O,descriptionProps:N,labelProps:P,unstyled:E,withAsterisk:_,inputWrapperOrder:F,inputContainer:R},c1),v),b.createElement(S2,{component:"div",invalid:!!f,icon:p,size:c,classNames:an1(yt({},C),{input:n1.input}),styles:h,radius:n,disabled:a,__staticSelector:V,rightSectionWidth:Z,rightSection:!a&&f1,variant:g,unstyled:E,iconWidth:k},b.createElement("input",yt({type:l1?"text":"password",required:u,className:h1(n1.innerInput,{[n1.withIcon]:p,[n1.invalid]:!!f}),disabled:a,id:K,ref:t},H1))))});oP.displayName="@mantine/core/PasswordInput";const yy={xs:3,sm:5,md:8,lg:12,xl:16},fn1=de({from:{backgroundPosition:"0 0"},to:{backgroundPosition:"40px 0"}});var un1=u1((e,{color:t,radius:r,size:n,striped:a,animate:c})=>({root:{position:"relative",height:e.fn.size({size:n,sizes:yy}),backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],borderRadius:e.fn.size({size:r,sizes:e.radius}),overflow:"hidden"},bar:{position:"absolute",top:0,bottom:0,left:0,height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:e.fn.variant({variant:"filled",primaryFallback:!1,color:t||e.primaryColor}).background,transition:"width 100ms linear",animation:c?`${fn1} 1000ms linear infinite`:"none",backgroundSize:"20px 20px",backgroundImage:a?"linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)":"none","&:last-of-type":{borderTopRightRadius:e.fn.size({size:r,sizes:e.radius}),borderBottomRightRadius:e.fn.size({size:r,sizes:e.radius})},"&:first-of-type":{borderTopLeftRadius:e.fn.size({size:r,sizes:e.radius}),borderBottomLeftRadius:e.fn.size({size:r,sizes:e.radius})},"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":void 0}},label:{color:e.white,fontSize:e.fn.size({size:n,sizes:yy})*.65,fontWeight:700,userSelect:"none",overflow:"hidden",whiteSpace:"nowrap"}}));const dn1=un1,sP=z.createContext(!1),pn1=sP.Provider,mn1=()=>z.useContext(sP);function lP({children:e,openDelay:t=0,closeDelay:r=0}){return b.createElement(pn1,{value:!0},b.createElement(M41,{delay:{open:t,close:r}},e))}lP.displayName="@mantine/core/TooltipGroup";var hn1=Object.defineProperty,vn1=Object.defineProperties,gn1=Object.getOwnPropertyDescriptors,Cy=Object.getOwnPropertySymbols,zn1=Object.prototype.hasOwnProperty,yn1=Object.prototype.propertyIsEnumerable,Hy=(e,t,r)=>t in e?hn1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vy=(e,t)=>{for(var r in t||(t={}))zn1.call(t,r)&&Hy(e,r,t[r]);if(Cy)for(var r of Cy(t))yn1.call(t,r)&&Hy(e,r,t[r]);return e},Cn1=(e,t)=>vn1(e,gn1(t));function Hn1(e,t){if(!t)return{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[9],color:e.white};const r=e.fn.variant({variant:"filled",color:t,primaryFallback:!1});return{backgroundColor:r.background,color:r.color}}var Vn1=u1((e,{color:t,radius:r,width:n,multiline:a})=>({tooltip:Cn1(Vy(Vy({},e.fn.fontStyles()),Hn1(e,t)),{lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,borderRadius:e.fn.radius(r),padding:`calc(${e.spacing.xs}px / 2) ${e.spacing.xs}px`,position:"absolute",whiteSpace:a?"unset":"nowrap",pointerEvents:"none",width:n}),arrow:{backgroundColor:"inherit",border:0,zIndex:1}}));const fP=Vn1,uP={children:"Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"};function bn1({offset:e,position:t}){const[r,n]=z.useState(!1),a=z.useRef(),{x:c,y:i,reference:o,floating:s,refs:l,update:f,placement:u}=xu({placement:t,middleware:[Hu({crossAxis:!0,padding:5,rootBoundary:"document"})]}),d=u.includes("right")?e:t.includes("left")?e*-1:0,p=u.includes("bottom")?e:t.includes("top")?e*-1:0,m=z.useCallback(({clientX:v,clientY:C})=>{o({getBoundingClientRect(){return{width:0,height:0,x:v,y:C,left:v+d,top:C+p,right:v,bottom:C}}})},[o]);return z.useEffect(()=>{if(l.floating.current){const v=a.current;v.addEventListener("mousemove",m);const C=e6(l.floating.current);return C.forEach(h=>{h.addEventListener("scroll",f)}),()=>{v.removeEventListener("mousemove",m),C.forEach(h=>{h.removeEventListener("scroll",f)})}}},[o,l.floating,f,m,r]),{handleMouseMove:m,x:c,y:i,opened:r,setOpened:n,boundaryRef:a,floating:s}}var Mn1=Object.defineProperty,xn1=Object.defineProperties,wn1=Object.getOwnPropertyDescriptors,oa=Object.getOwnPropertySymbols,dP=Object.prototype.hasOwnProperty,pP=Object.prototype.propertyIsEnumerable,by=(e,t,r)=>t in e?Mn1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ui=(e,t)=>{for(var r in t||(t={}))dP.call(t,r)&&by(e,r,t[r]);if(oa)for(var r of oa(t))pP.call(t,r)&&by(e,r,t[r]);return e},qi=(e,t)=>xn1(e,wn1(t)),Ln1=(e,t)=>{var r={};for(var n in e)dP.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&&pP.call(e,n)&&(r[n]=e[n]);return r};const Sn1={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:d6("popover")};function mP(e){var t;const r=L1("TooltipFloating",Sn1,e),{children:n,refProp:a,withinPortal:c,style:i,className:o,classNames:s,styles:l,unstyled:f,radius:u,color:d,label:p,offset:m,position:v,multiline:C,width:h,zIndex:g,disabled:y}=r,V=Ln1(r,["children","refProp","withinPortal","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled"]),{handleMouseMove:x,x:H,y:M,opened:w,boundaryRef:P,floating:N,setOpened:O}=bn1({offset:m,position:v}),{classes:E,cx:T}=fP({radius:u,color:d,multiline:C,width:h},{name:"TooltipFloating",classNames:s,styles:l,unstyled:f});if(!d7(n))throw new Error(uP.children);const _=n3(P,n.ref),R=F=>{var $,j;(j=($=n.props).onMouseEnter)==null||j.call($,F),x(F),O(!0)},k=F=>{var $,j;(j=($=n.props).onMouseLeave)==null||j.call($,F),O(!1)};return y?b.createElement(b.Fragment,null,n):b.createElement(b.Fragment,null,b.createElement(h8,{withinPortal:c},b.createElement(y1,qi(Ui({},V),{ref:N,className:T(E.tooltip,o),style:qi(Ui({},i),{zIndex:g,display:w?"block":"none",top:M??"",left:(t=Math.round(H))!=null?t:""})}),p)),z.cloneElement(n,qi(Ui({},n.props),{[a]:_,onMouseEnter:R,onMouseLeave:k})))}mP.displayName="@mantine/core/TooltipFloating";function kn1(e){const[t,r]=z.useState(!1),a=typeof e.opened=="boolean"?e.opened:t,c=mn1(),i=V4(),{delay:o,currentId:s,setCurrentId:l}=SL(),f=z.useCallback(w=>{r(w),w&&l(i)},[l,i]),{x:u,y:d,reference:p,floating:m,context:v,refs:C,update:h,placement:g,middlewareData:{arrow:{x:y,y:V}={}}}=xu({placement:e.position,open:a,onOpenChange:f,middleware:[mL(e.offset),Hu({padding:8}),dL(),bL({element:e.arrowRef,padding:e.arrowOffset}),...e.inline?[pL()]:[]]}),{getReferenceProps:x,getFloatingProps:H}=$41([b41(v,{enabled:e.events.hover,delay:c?o:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events.touch}),A41(v,{enabled:e.events.focus,keyboardOnly:!0}),E41(v,{role:"tooltip"}),O41(v,{enabled:typeof e.opened===void 0}),x41(v,{id:i})]);return PL({opened:a,positionDependencies:e.positionDependencies,floating:{refs:C,update:h}}),I2(()=>{var w;(w=e.onPositionChange)==null||w.call(e,g)},[g]),{x:u,y:d,arrowX:y,arrowY:V,reference:p,floating:m,getFloatingProps:H,getReferenceProps:x,isGroupPhase:a&&s&&s!==i,opened:a,placement:g}}var Pn1=Object.defineProperty,Nn1=Object.defineProperties,_n1=Object.getOwnPropertyDescriptors,sa=Object.getOwnPropertySymbols,hP=Object.prototype.hasOwnProperty,vP=Object.prototype.propertyIsEnumerable,My=(e,t,r)=>t in e?Pn1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T8=(e,t)=>{for(var r in t||(t={}))hP.call(t,r)&&My(e,r,t[r]);if(sa)for(var r of sa(t))vP.call(t,r)&&My(e,r,t[r]);return e},On1=(e,t)=>Nn1(e,_n1(t)),An1=(e,t)=>{var r={};for(var n in e)hP.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&&vP.call(e,n)&&(r[n]=e[n]);return r};const En1={position:"top",refProp:"ref",withinPortal:!1,inline:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transition:"fade",transitionDuration:100,width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:d6("popover"),positionDependencies:[]},i9=z.forwardRef((e,t)=>{const r=z.useRef(null),n=L1("Tooltip",En1,e),{children:a,position:c,refProp:i,label:o,openDelay:s,closeDelay:l,onPositionChange:f,opened:u,withinPortal:d,radius:p,color:m,classNames:v,styles:C,unstyled:h,style:g,className:y,withArrow:V,arrowSize:x,arrowOffset:H,arrowRadius:M,arrowPosition:w,offset:P,transition:N,transitionDuration:O,multiline:E,width:T,events:_,zIndex:R,disabled:k,positionDependencies:F,onClick:$,onMouseEnter:j,onMouseLeave:I,inline:L}=n,S=An1(n,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","offset","transition","transitionDuration","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave","inline"]),{classes:Z,cx:n1,theme:h1}=fP({radius:p,color:m,width:T,multiline:E},{name:"Tooltip",classNames:v,styles:C,unstyled:h}),K=kn1({position:WL(h1.dir,c),closeDelay:l,openDelay:s,onPositionChange:f,opened:u,events:_,arrowRef:r,arrowOffset:H,offset:P+(V?x/2:0),positionDependencies:[...F,a],inline:L});if(!d7(a))throw new Error(uP.children);const c1=n3(K.reference,a.ref,t);return b.createElement(b.Fragment,null,b.createElement(h8,{withinPortal:d},b.createElement(n9,{mounted:!k&&K.opened,transition:N,duration:K.isGroupPhase?10:O},H1=>{var l1,V1;return b.createElement(y1,T8(T8({},S),K.getFloatingProps({ref:K.floating,className:Z.tooltip,style:On1(T8(T8({},g),H1),{zIndex:R,top:(l1=K.y)!=null?l1:0,left:(V1=K.x)!=null?V1:0})})),o,b.createElement(wu,{ref:r,arrowX:K.arrowX,arrowY:K.arrowY,visible:V,withBorder:!1,position:K.placement,arrowSize:x,arrowOffset:H,arrowRadius:M,arrowPosition:w,className:Z.arrow}))})),z.cloneElement(a,K.getReferenceProps(T8({onClick:$,onMouseEnter:j,onMouseLeave:I,onMouseMove:e.onMouseMove,onPointerDown:e.onPointerDown,onPointerEnter:e.onPointerEnter,[i]:c1,className:n1(y,a.props.className)},a.props))))});i9.Group=lP;i9.Floating=mP;i9.displayName="@mantine/core/Tooltip";const o9=i9;var $n1=Object.defineProperty,Tn1=Object.defineProperties,Dn1=Object.getOwnPropertyDescriptors,la=Object.getOwnPropertySymbols,gP=Object.prototype.hasOwnProperty,zP=Object.prototype.propertyIsEnumerable,xy=(e,t,r)=>t in e?$n1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cl=(e,t)=>{for(var r in t||(t={}))gP.call(t,r)&&xy(e,r,t[r]);if(la)for(var r of la(t))zP.call(t,r)&&xy(e,r,t[r]);return e},yP=(e,t)=>Tn1(e,Dn1(t)),wy=(e,t)=>{var r={};for(var n in e)gP.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&&zP.call(e,n)&&(r[n]=e[n]);return r};function Rn1(e){return e.reduce((t,r)=>(t.sections.push(yP(cl({},r),{accumulated:t.accumulated})),t.accumulated+=r.value,t),{accumulated:0,sections:[]}).sections}const Fn1={size:"md",radius:"sm",striped:!1,animate:!1,label:""},fa=z.forwardRef((e,t)=>{const r=L1("Progress",Fn1,e),{className:n,value:a,color:c,size:i,radius:o,striped:s,animate:l,label:f,"aria-label":u,classNames:d,styles:p,sections:m,unstyled:v}=r,C=wy(r,["className","value","color","size","radius","striped","animate","label","aria-label","classNames","styles","sections","unstyled"]),{classes:h,cx:g,theme:y}=dn1({color:c,size:i,radius:o,striped:s||l,animate:l},{classNames:d,styles:p,unstyled:v,name:"Progress"}),V=Array.isArray(m)?Rn1(m).map((x,H)=>{var M=x,{tooltip:w,accumulated:P,value:N,label:O,color:E}=M,T=wy(M,["tooltip","accumulated","value","label","color"]);return b.createElement(o9.Floating,{label:w,disabled:!w,key:H},b.createElement(y1,yP(cl({},T),{className:g(h.bar,T.className),sx:{width:`${N}%`,left:`${P}%`,backgroundColor:y.fn.variant({variant:"filled",primaryFallback:!1,color:E||y.primaryColor}).background}}),O&&b.createElement(Y1,{className:h.label},O)))}):null;return b.createElement(y1,cl({className:g(h.root,n),ref:t},C),V||b.createElement("div",{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":a,"aria-label":u,className:h.bar,style:{width:`${a}%`}},f?b.createElement(Y1,{className:h.label},f):""))});fa.displayName="@mantine/core/Progress";function In1({size:e,thickness:t,sum:r,value:n,root:a,offset:c}){const i=(e*.9-t*2)/2,o=Math.PI*i*2/100,s=a?`${(100-r)*o}, ${r*o}`:`${n*o}, ${(100-n)*o}`;return{strokeWidth:t,cx:e/2,cy:e/2,r:i,transform:a?`scale(1, -1) translate(0, -${e})`:null,strokeDasharray:s,strokeDashoffset:a?0:c}}var jn1=Object.defineProperty,Bn1=Object.defineProperties,Wn1=Object.getOwnPropertyDescriptors,ua=Object.getOwnPropertySymbols,CP=Object.prototype.hasOwnProperty,HP=Object.prototype.propertyIsEnumerable,Ly=(e,t,r)=>t in e?jn1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sy=(e,t)=>{for(var r in t||(t={}))CP.call(t,r)&&Ly(e,r,t[r]);if(ua)for(var r of ua(t))HP.call(t,r)&&Ly(e,r,t[r]);return e},Un1=(e,t)=>Bn1(e,Wn1(t)),qn1=(e,t)=>{var r={};for(var n in e)CP.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&&HP.call(e,n)&&(r[n]=e[n]);return r};function VP(e){var t=e,{size:r,value:n,offset:a,sum:c,thickness:i,root:o,color:s,lineRoundCaps:l,tooltip:f}=t,u=qn1(t,["size","value","offset","sum","thickness","root","color","lineRoundCaps","tooltip"]);const d=H2(),p=d.fn.themeColor(s||(d.colorScheme==="dark"?"dark":"gray"),s?d.fn.primaryShade():d.colorScheme==="dark"?4:1,!1);return b.createElement(o9.Floating,{disabled:!f,label:f},b.createElement("circle",Sy(Un1(Sy({},u),{fill:"none",strokeLinecap:l?"round":"butt",stroke:p}),In1({sum:c,size:r,thickness:i,value:n,offset:a,root:o}))))}VP.displayName="@mantine/core/Curve";var Gn1=Object.defineProperty,Yn1=Object.defineProperties,Zn1=Object.getOwnPropertyDescriptors,ky=Object.getOwnPropertySymbols,Kn1=Object.prototype.hasOwnProperty,Xn1=Object.prototype.propertyIsEnumerable,Py=(e,t,r)=>t in e?Gn1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D8=(e,t)=>{for(var r in t||(t={}))Kn1.call(t,r)&&Py(e,r,t[r]);if(ky)for(var r of ky(t))Xn1.call(t,r)&&Py(e,r,t[r]);return e},R8=(e,t)=>Yn1(e,Zn1(t));function Qn1({size:e,thickness:t,sections:r,renderRoundedLineCaps:n,rootColor:a}){const c=r.reduce((f,u)=>f+u.value,0),i=Math.PI*((e*.9-t*2)/2)*2;let o=i;const s=[],l=[];for(let f=0;f2){l.push(R8(D8({},s[0]),{lineRoundCaps:n})),l.push(R8(D8({},s[s.length-2]),{lineRoundCaps:n}));for(let f=1;f<=s.length-3;f+=1)l.push(R8(D8({},s[f]),{lineRoundCaps:!1}))}else l.push(R8(D8({},s[0]),{lineRoundCaps:n}));return l}var Jn1=u1({root:{position:"relative"},label:{position:"absolute",top:"50%",transform:"translateY(-50%)"}});const ea1=Jn1;var ta1=Object.defineProperty,ra1=Object.defineProperties,na1=Object.getOwnPropertyDescriptors,da=Object.getOwnPropertySymbols,bP=Object.prototype.hasOwnProperty,MP=Object.prototype.propertyIsEnumerable,Ny=(e,t,r)=>t in e?ta1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gi=(e,t)=>{for(var r in t||(t={}))bP.call(t,r)&&Ny(e,r,t[r]);if(da)for(var r of da(t))MP.call(t,r)&&Ny(e,r,t[r]);return e},aa1=(e,t)=>ra1(e,na1(t)),ca1=(e,t)=>{var r={};for(var n in e)bP.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&&MP.call(e,n)&&(r[n]=e[n]);return r};const ia1={size:120,thickness:12},xP=z.forwardRef((e,t)=>{const r=L1("RingProgress",ia1,e),{className:n,style:a,label:c,sections:i,size:o,thickness:s,classNames:l,styles:f,roundCaps:u,rootColor:d,unstyled:p}=r,m=ca1(r,["className","style","label","sections","size","thickness","classNames","styles","roundCaps","rootColor","unstyled"]),{classes:v,cx:C}=ea1(null,{classNames:l,styles:f,unstyled:p,name:"RingProgress"}),h=Qn1({size:o,thickness:s,sections:i,renderRoundedLineCaps:u,rootColor:d}).map(({data:g,sum:y,root:V,lineRoundCaps:x,offset:H},M)=>b.createElement(VP,aa1(Gi({},g),{key:M,size:o,thickness:s,sum:y,offset:H,color:g?.color,root:V,lineRoundCaps:x})));return b.createElement(y1,Gi({style:Gi({width:o,height:o},a),className:C(v.root,n),ref:t},m),b.createElement("svg",{width:o,height:o,style:{transform:"rotate(-90deg)"}},h),c&&b.createElement("div",{className:v.label,style:{right:s*2,left:s*2}},c))});xP.displayName="@mantine/core/RingProgress";function oa1({data:e,searchable:t,limit:r,searchValue:n,filter:a,value:c,filterDataOnExactSearchMatch:i}){if(!t)return e;const o=c!=null&&e.find(l=>l.value===c)||null;if(o&&!i&&o?.label===n){if(r){if(r>=e.length)return e;const l=e.indexOf(o),f=l+r,u=f-e.length;return u>0?e.slice(l-u):e.slice(l,f)}return e}const s=[];for(let l=0;l=r));l+=1);return s}var sa1=u1(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}}));const la1=sa1;var fa1=Object.defineProperty,ua1=Object.defineProperties,da1=Object.getOwnPropertyDescriptors,pa=Object.getOwnPropertySymbols,wP=Object.prototype.hasOwnProperty,LP=Object.prototype.propertyIsEnumerable,_y=(e,t,r)=>t in e?fa1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F8=(e,t)=>{for(var r in t||(t={}))wP.call(t,r)&&_y(e,r,t[r]);if(pa)for(var r of pa(t))LP.call(t,r)&&_y(e,r,t[r]);return e},Yi=(e,t)=>ua1(e,da1(t)),pa1=(e,t)=>{var r={};for(var n in e)wP.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&&LP.call(e,n)&&(r[n]=e[n]);return r};function ma1(e,t){return t.label.toLowerCase().trim().includes(e.toLowerCase().trim())}function ha1(e,t){return!!e&&!t.some(r=>r.label.toLowerCase()===e.toLowerCase())}const va1={required:!1,size:"sm",shadow:"sm",itemComponent:vu,transition:"fade",transitionDuration:0,initiallyOpened:!1,filter:ma1,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:ha1,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:d6("popover"),clearButtonTabIndex:0,positionDependencies:[],dropdownPosition:"flip"},SP=z.forwardRef((e,t)=>{const r=Lu("Select",va1,e),{inputProps:n,wrapperProps:a,shadow:c,data:i,value:o,defaultValue:s,onChange:l,itemComponent:f,onKeyDown:u,onBlur:d,onFocus:p,transition:m,transitionDuration:v,initiallyOpened:C,transitionTimingFunction:h,unstyled:g,classNames:y,styles:V,filter:x,maxDropdownHeight:H,searchable:M,clearable:w,nothingFound:P,clearButtonLabel:N,limit:O,disabled:E,onSearchChange:T,searchValue:_,rightSection:R,rightSectionWidth:k,creatable:F,getCreateLabel:$,shouldCreate:j,selectOnBlur:I,onCreate:L,dropdownComponent:S,onDropdownClose:Z,onDropdownOpen:n1,withinPortal:h1,switchDirectionOnFlip:K,zIndex:c1,name:H1,dropdownPosition:l1,allowDeselect:V1,placeholder:i1,filterDataOnExactSearchMatch:f1,clearButtonTabIndex:x1,form:M1,positionDependencies:D,readOnly:B,hoverOnSearchChange:W}=r,Y=pa1(r,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transition","transitionDuration","initiallyOpened","transitionTimingFunction","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","clearButtonLabel","limit","disabled","onSearchChange","searchValue","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","clearButtonTabIndex","form","positionDependencies","readOnly","hoverOnSearchChange"]),{classes:J,cx:G,theme:e1}=la1(),[C1,k1]=z.useState(C),[A1,b1]=z.useState(-1),I1=z.useRef(),U=z.useRef({}),[q,a1]=z.useState("column"),r1=q==="column",{scrollIntoView:v1,targetRef:G1,scrollableRef:o1}=pw({duration:0,offset:5,cancelable:!1,isList:!0}),d1=V1===void 0?w:V1,_1=g1=>{if(C1!==g1){k1(g1);const Q1=g1?n1:Z;typeof Q1=="function"&&Q1()}},U1=F&&typeof $=="function";let T1=null;const b4=i.map(g1=>typeof g1=="string"?{label:g1,value:g1}:g1),t2=$x({data:b4}),[Y2,M4,me]=F3({value:o,defaultValue:s,finalValue:null,onChange:l}),m3=t2.find(g1=>g1.value===Y2),[a3,he]=F3({value:_,defaultValue:m3?.label||"",finalValue:void 0,onChange:T}),Z2=g1=>{he(g1),M&&typeof T=="function"&&T(g1)},$2=()=>{var g1;B||(M4(null),me||Z2(""),(g1=I1.current)==null||g1.focus())};z.useEffect(()=>{const g1=t2.find(Q1=>Q1.value===Y2);g1?Z2(g1.label):(!U1||!Y2)&&Z2("")},[Y2]),z.useEffect(()=>{m3&&(!M||!C1)&&Z2(m3.label)},[m3?.label]);const P1=g1=>{if(!B)if(d1&&m3?.value===g1.value)M4(null),_1(!1);else{if(g1.creatable&&typeof L=="function"){const Q1=L(g1.value);typeof Q1<"u"&&Q1!==null&&M4(typeof Q1=="string"?Q1:Q1.value)}else M4(g1.value);me||Z2(g1.label),b1(-1),_1(!1),I1.current.focus()}},F1=oa1({data:t2,searchable:M,limit:O,searchValue:a3,filter:x,filterDataOnExactSearchMatch:f1,value:Y2});U1&&j(a3,F1)&&(T1=$(a3),F1.push({label:a3,value:a3,creatable:!0}));const q3=(g1,Q1,B2)=>{let D1=g1;for(;B2(D1);)if(D1=Q1(D1),!F1[D1].disabled)return D1;return g1};I2(()=>{b1(W&&a3?0:-1)},[a3,W]);const g6=Y2?F1.findIndex(g1=>g1.value===Y2):0,M3=!B&&(F1.length>0?C1:C1&&!!P),x3=()=>{b1(g1=>{var Q1;const B2=q3(g1,D1=>D1-1,D1=>D1>0);return G1.current=U.current[(Q1=F1[B2])==null?void 0:Q1.value],M3&&v1({alignment:r1?"start":"end"}),B2})},ve=()=>{b1(g1=>{var Q1;const B2=q3(g1,D1=>D1+1,D1=>D1window.setTimeout(()=>{var g1;G1.current=U.current[(g1=F1[g6])==null?void 0:g1.value],v1({alignment:r1?"end":"start"})},0);I2(()=>{M3&&r0()},[M3]);const O7=g1=>{switch(typeof u=="function"&&u(g1),g1.key){case"ArrowUp":{g1.preventDefault(),C1?r1?x3():ve():(b1(g6),_1(!0),r0());break}case"ArrowDown":{g1.preventDefault(),C1?r1?ve():x3():(b1(g6),_1(!0),r0());break}case"Home":{if(!M){g1.preventDefault(),C1||_1(!0);const Q1=F1.findIndex(B2=>!B2.disabled);b1(Q1),M3&&v1({alignment:r1?"end":"start"})}break}case"End":{if(!M){g1.preventDefault(),C1||_1(!0);const Q1=F1.map(B2=>!!B2.disabled).lastIndexOf(!1);b1(Q1),M3&&v1({alignment:r1?"end":"start"})}break}case"Escape":{g1.preventDefault(),_1(!1),b1(-1);break}case" ":{M||(g1.preventDefault(),F1[A1]&&C1?P1(F1[A1]):(_1(!0),b1(g6),r0()));break}case"Enter":M||g1.preventDefault(),F1[A1]&&C1&&(g1.preventDefault(),P1(F1[A1]))}},n0=g1=>{typeof d=="function"&&d(g1);const Q1=t2.find(B2=>B2.value===Y2);I&&F1[A1]&&C1&&P1(F1[A1]),Z2(Q1?.label||""),_1(!1)},A7=g1=>{typeof p=="function"&&p(g1),M&&_1(!0)},j9=g1=>{B||(Z2(g1.currentTarget.value),w&&g1.currentTarget.value===""&&M4(null),b1(-1),_1(!0))},E7=()=>{B||(_1(!C1),Y2&&!C1&&b1(g6))};return b.createElement(S2.Wrapper,Yi(F8({},a),{__staticSelector:"Select"}),b.createElement(Z6,{opened:M3,transition:m,transitionDuration:v,shadow:"sm",withinPortal:h1,__staticSelector:"Select",onDirectionChange:a1,switchDirectionOnFlip:K,zIndex:c1,dropdownPosition:l1,positionDependencies:[...D,a3],classNames:y,styles:V,unstyled:g},b.createElement(Z6.Target,null,b.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":M3?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":M3,onMouseLeave:()=>b1(-1),tabIndex:-1},b.createElement("input",{type:"hidden",name:H1,value:Y2||"",form:M1,disabled:E}),b.createElement(S2,F8(Yi(F8(F8({autoComplete:"off",type:"search"},n),Y),{ref:n3(t,I1),onKeyDown:O7,__staticSelector:"Select",value:a3,placeholder:i1,onChange:j9,"aria-autocomplete":"list","aria-controls":M3?`${n.id}-items`:null,"aria-activedescendant":A1>=0?`${n.id}-${A1}`:null,onMouseDown:E7,onBlur:n0,onFocus:A7,readOnly:!M||B,disabled:E,"data-mantine-stop-propagation":M3,name:null,classNames:Yi(F8({},y),{input:G({[J.input]:!M},y?.input)})}),Zk({theme:e1,rightSection:R,rightSectionWidth:k,styles:V,size:n.size,shouldClear:w&&!!m3,clearButtonLabel:N,onClear:$2,error:a.error,clearButtonTabIndex:x1,disabled:E,readOnly:B}))))),b.createElement(Z6.Dropdown,{component:S||e9,maxHeight:H,direction:q,id:n.id,innerRef:o1,__staticSelector:"Select",classNames:y,styles:V},b.createElement(hu,{data:F1,hovered:A1,classNames:y,styles:V,isItemSelected:g1=>g1===Y2,uuid:n.id,__staticSelector:"Select",onItemHover:b1,onItemSelect:P1,itemsRefs:U,itemComponent:f,size:n.size,nothingFound:P,creatable:U1&&!!T1,createLabel:T1,"aria-label":a.label,unstyled:g}))))});SP.displayName="@mantine/core/Select";function kP({value:e,min:t,max:r}){const n=(e-t)/(r-t)*100;return Math.min(Math.max(n,0),100)}function ga1({value:e,containerWidth:t,min:r,max:n,step:a,precision:c}){const o=(t?Math.min(Math.max(e,0),t)/t:e)*(n-r),s=(o!==0?Math.round(o/a)*a:0)+r,l=Math.max(s,r);return c!==void 0?Number(l.toFixed(c)):l}var za1=Object.defineProperty,ya1=Object.defineProperties,Ca1=Object.getOwnPropertyDescriptors,Oy=Object.getOwnPropertySymbols,Ha1=Object.prototype.hasOwnProperty,Va1=Object.prototype.propertyIsEnumerable,Ay=(e,t,r)=>t in e?za1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ba1=(e,t)=>{for(var r in t||(t={}))Ha1.call(t,r)&&Ay(e,r,t[r]);if(Oy)for(var r of Oy(t))Va1.call(t,r)&&Ay(e,r,t[r]);return e},Ma1=(e,t)=>ya1(e,Ca1(t));const g3={xs:4,sm:6,md:8,lg:10,xl:12};var xa1=u1((e,{size:t,disabled:r})=>({root:Ma1(ba1({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",outline:0,height:e.fn.size({sizes:g3,size:t})*2,display:"flex",alignItems:"center",cursor:r?"not-allowed":"pointer",touchAction:"none"})}));const wa1=xa1;var La1=Object.defineProperty,Sa1=Object.defineProperties,ka1=Object.getOwnPropertyDescriptors,Ey=Object.getOwnPropertySymbols,Pa1=Object.prototype.hasOwnProperty,Na1=Object.prototype.propertyIsEnumerable,$y=(e,t,r)=>t in e?La1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_a1=(e,t)=>{for(var r in t||(t={}))Pa1.call(t,r)&&$y(e,r,t[r]);if(Ey)for(var r of Ey(t))Na1.call(t,r)&&$y(e,r,t[r]);return e},Oa1=(e,t)=>Sa1(e,ka1(t)),Aa1=u1((e,{color:t,size:r,disabled:n,thumbSize:a})=>({label:{position:"absolute",top:-36,backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[9],fontSize:e.fontSizes.xs,color:e.white,padding:`calc(${e.spacing.xs}px / 2)`,borderRadius:e.radius.sm,whiteSpace:"nowrap",pointerEvents:"none",userSelect:"none",touchAction:"none"},thumb:Oa1(_a1({},e.fn.focusStyles()),{boxSizing:"border-box",position:"absolute",display:n?"none":"flex",height:a||e.fn.size({sizes:g3,size:r})*2,width:a||e.fn.size({sizes:g3,size:r})*2,backgroundColor:e.colorScheme==="dark"?e.fn.themeColor(t,e.fn.primaryShade()):e.white,border:`4px solid ${e.colorScheme==="dark"?e.white:e.fn.themeColor(t,e.fn.primaryShade())}`,color:e.colorScheme==="dark"?e.white:e.fn.themeColor(t,e.fn.primaryShade()),transform:"translate(-50%, -50%)",top:"50%",cursor:"pointer",borderRadius:1e3,alignItems:"center",justifyContent:"center",transitionDuration:"100ms",transitionProperty:"box-shadow, transform",transitionTimingFunction:e.transitionTimingFunction,zIndex:3,userSelect:"none",touchAction:"none"}),dragging:{transform:"translate(-50%, -50%) scale(1.05)",boxShadow:e.shadows.sm}}));const Ea1=Aa1,PP=z.forwardRef(({max:e,min:t,value:r,position:n,label:a,dragging:c,onMouseDown:i,color:o,classNames:s,styles:l,size:f,labelTransition:u,labelTransitionDuration:d,labelTransitionTimingFunction:p,labelAlwaysOn:m,thumbLabel:v,onFocus:C,onBlur:h,showLabelOnHover:g,children:y=null,disabled:V,unstyled:x,thumbSize:H},M)=>{const{classes:w,cx:P,theme:N}=Ea1({color:o,size:f,disabled:V,thumbSize:H},{classNames:s,styles:l,unstyled:x,name:"Slider"}),[O,E]=z.useState(!1),T=m||c||O||g;return b.createElement(y1,{tabIndex:0,role:"slider","aria-label":v,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":r,ref:M,className:P(w.thumb,{[w.dragging]:c}),onFocus:()=>{E(!0),typeof C=="function"&&C()},onBlur:()=>{E(!1),typeof h=="function"&&h()},onTouchStart:i,onMouseDown:i,onClick:_=>_.stopPropagation(),style:{[N.dir==="rtl"?"right":"left"]:`${n}%`}},y,b.createElement(n9,{mounted:a!=null&&T,duration:d,transition:u,timingFunction:p||N.transitionTimingFunction},_=>b.createElement("div",{style:_,className:w.label},a)))});PP.displayName="@mantine/core/SliderThumb";function $a1({mark:e,offset:t,value:r,inverted:n=!1}){return n?typeof t=="number"&&e.value<=t||e.value>=r:typeof t=="number"?e.value>=t&&e.value<=r:e.value<=r}var Ta1=u1((e,{size:t,color:r,disabled:n})=>({markWrapper:{position:"absolute",top:0,zIndex:2},mark:{boxSizing:"border-box",border:`${e.fn.size({size:t,sizes:g3})>=8?"2px":"1px"} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,height:e.fn.size({sizes:g3,size:t}),width:e.fn.size({sizes:g3,size:t}),borderRadius:1e3,transform:`translateX(-${e.fn.size({sizes:g3,size:t})/2}px)`,backgroundColor:e.white},markFilled:{borderColor:n?e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]:e.fn.variant({variant:"filled",color:r}).background},markLabel:{transform:"translate(-50%, 0)",fontSize:e.fontSizes.sm,color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],marginTop:`calc(${e.spacing.xs}px / 2)`,whiteSpace:"nowrap"}}));const Da1=Ta1;function NP({marks:e,color:t,size:r,min:n,max:a,value:c,classNames:i,styles:o,offset:s,onChange:l,disabled:f,unstyled:u,inverted:d}){const{classes:p,cx:m}=Da1({size:r,color:t,disabled:f},{classNames:i,styles:o,unstyled:u,name:"Slider"}),v=e.map((C,h)=>b.createElement(y1,{className:p.markWrapper,sx:{left:`${kP({value:C.value,min:n,max:a})}%`},key:h},b.createElement("div",{className:m(p.mark,{[p.markFilled]:$a1({mark:C,value:c,offset:s,inverted:d})})}),C.label&&b.createElement("div",{className:p.markLabel,onMouseDown:g=>{g.stopPropagation(),l(C.value)},onTouchStart:g=>{g.stopPropagation(),l(C.value)}},C.label)));return b.createElement("div",null,v)}NP.displayName="@mantine/core/SliderMarks";var Ra1=u1((e,{radius:t,size:r,color:n,disabled:a,inverted:c})=>({track:{position:"relative",height:e.fn.size({sizes:g3,size:r}),width:"100%",marginRight:e.fn.size({size:r,sizes:g3}),marginLeft:e.fn.size({size:r,sizes:g3}),"&::before":{content:'""',position:"absolute",top:0,bottom:0,borderRadius:e.fn.size({size:t,sizes:e.radius}),right:-e.fn.size({size:r,sizes:g3}),left:-e.fn.size({size:r,sizes:g3}),backgroundColor:c?a?e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]:e.fn.variant({variant:"filled",color:n}).background:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],zIndex:0}},bar:{position:"absolute",zIndex:1,top:0,bottom:0,backgroundColor:c?e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]:a?e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]:e.fn.variant({variant:"filled",color:n}).background,borderRadius:e.fn.size({size:t,sizes:e.radius})}}));const Fa1=Ra1;var Ia1=Object.defineProperty,ja1=Object.defineProperties,Ba1=Object.getOwnPropertyDescriptors,ma=Object.getOwnPropertySymbols,_P=Object.prototype.hasOwnProperty,OP=Object.prototype.propertyIsEnumerable,Ty=(e,t,r)=>t in e?Ia1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wa1=(e,t)=>{for(var r in t||(t={}))_P.call(t,r)&&Ty(e,r,t[r]);if(ma)for(var r of ma(t))OP.call(t,r)&&Ty(e,r,t[r]);return e},Ua1=(e,t)=>ja1(e,Ba1(t)),qa1=(e,t)=>{var r={};for(var n in e)_P.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&&OP.call(e,n)&&(r[n]=e[n]);return r};function AP(e){var t=e,{filled:r,size:n,color:a,classNames:c,styles:i,radius:o,children:s,offset:l,onMouseLeave:f,onMouseEnter:u,disabled:d,marksOffset:p,unstyled:m,inverted:v}=t,C=qa1(t,["filled","size","color","classNames","styles","radius","children","offset","onMouseLeave","onMouseEnter","disabled","marksOffset","unstyled","inverted"]);const{classes:h}=Fa1({color:a,size:n,radius:o,disabled:d,inverted:v},{classNames:c,styles:i,unstyled:m,name:"Slider"});return b.createElement("div",{className:h.track,onMouseLeave:f,onMouseEnter:u},b.createElement(y1,{className:h.bar,sx:g=>({left:`calc(${l}% - ${g.fn.size({size:n,sizes:g3})}px)`,width:`calc(${r}% + ${g.fn.size({size:n,sizes:g3})}px)`})}),s,b.createElement(NP,Ua1(Wa1({},C),{size:n,color:a,offset:p,classNames:c,styles:i,disabled:d,unstyled:m,inverted:v})))}AP.displayName="@mantine/core/SliderTrack";var Ga1=Object.defineProperty,Ya1=Object.defineProperties,Za1=Object.getOwnPropertyDescriptors,ha=Object.getOwnPropertySymbols,EP=Object.prototype.hasOwnProperty,$P=Object.prototype.propertyIsEnumerable,Dy=(e,t,r)=>t in e?Ga1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ka1=(e,t)=>{for(var r in t||(t={}))EP.call(t,r)&&Dy(e,r,t[r]);if(ha)for(var r of ha(t))$P.call(t,r)&&Dy(e,r,t[r]);return e},Xa1=(e,t)=>Ya1(e,Za1(t)),Qa1=(e,t)=>{var r={};for(var n in e)EP.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&&$P.call(e,n)&&(r[n]=e[n]);return r};const TP=z.forwardRef((e,t)=>{var r=e,{className:n,size:a,classNames:c,styles:i,disabled:o,unstyled:s}=r,l=Qa1(r,["className","size","classNames","styles","disabled","unstyled"]);const{classes:f,cx:u}=wa1({size:a,disabled:o},{classNames:c,styles:i,unstyled:s,name:"Slider"});return b.createElement(y1,Xa1(Ka1({},l),{tabIndex:-1,className:u(f.root,n),ref:t}))});TP.displayName="@mantine/core/SliderRoot";var Ja1=Object.defineProperty,ec1=Object.defineProperties,tc1=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,DP=Object.prototype.hasOwnProperty,RP=Object.prototype.propertyIsEnumerable,Ry=(e,t,r)=>t in e?Ja1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rc1=(e,t)=>{for(var r in t||(t={}))DP.call(t,r)&&Ry(e,r,t[r]);if(va)for(var r of va(t))RP.call(t,r)&&Ry(e,r,t[r]);return e},nc1=(e,t)=>ec1(e,tc1(t)),ac1=(e,t)=>{var r={};for(var n in e)DP.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&&RP.call(e,n)&&(r[n]=e[n]);return r};const cc1={size:"md",radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransition:"skew-down",labelTransitionDuration:0,labelAlwaysOn:!1,thumbLabel:"",showLabelOnHover:!0,disabled:!1,scale:e=>e},FP=z.forwardRef((e,t)=>{const r=L1("Slider",cc1,e),{classNames:n,styles:a,color:c,value:i,onChange:o,onChangeEnd:s,size:l,radius:f,min:u,max:d,step:p,precision:m,defaultValue:v,name:C,marks:h,label:g,labelTransition:y,labelTransitionDuration:V,labelTransitionTimingFunction:x,labelAlwaysOn:H,thumbLabel:M,showLabelOnHover:w,thumbChildren:P,disabled:N,unstyled:O,thumbSize:E,scale:T,inverted:_}=r,R=ac1(r,["classNames","styles","color","value","onChange","onChangeEnd","size","radius","min","max","step","precision","defaultValue","name","marks","label","labelTransition","labelTransitionDuration","labelTransitionTimingFunction","labelAlwaysOn","thumbLabel","showLabelOnHover","thumbChildren","disabled","unstyled","thumbSize","scale","inverted"]),k=H2(),[F,$]=z.useState(!1),[j,I]=F3({value:typeof i=="number"?D3(i,u,d):i,defaultValue:typeof v=="number"?D3(v,u,d):v,finalValue:D3(0,u,d),onChange:o}),L=z.useRef(j),S=z.useRef(),Z=kP({value:j,min:u,max:d}),n1=T(j),h1=typeof g=="function"?g(n1):g,K=z.useCallback(({x:i1})=>{if(!N){const f1=ga1({value:i1,min:u,max:d,step:p,precision:m});I(f1),L.current=f1}},[N,u,d,p,m]),{ref:c1,active:H1}=pu(K,{onScrubEnd:()=>s?.(L.current)},k.dir),l1=i1=>{i1.stopPropagation()},V1=i1=>{if(!N)switch(i1.key){case"ArrowUp":{i1.preventDefault(),S.current.focus();const f1=Math.min(Math.max(j+p,u),d);s?.(f1),I(f1);break}case"ArrowRight":{i1.preventDefault(),S.current.focus();const f1=Math.min(Math.max(k.dir==="rtl"?j-p:j+p,u),d);s?.(f1),I(f1);break}case"ArrowDown":{i1.preventDefault(),S.current.focus();const f1=Math.min(Math.max(j-p,u),d);s?.(f1),I(f1);break}case"ArrowLeft":{i1.preventDefault(),S.current.focus();const f1=Math.min(Math.max(k.dir==="rtl"?j+p:j-p,u),d);s?.(f1),I(f1);break}case"Home":{i1.preventDefault(),S.current.focus(),s?.(u),I(u);break}case"End":{i1.preventDefault(),S.current.focus(),s?.(d),I(d);break}}};return b.createElement(TP,nc1(rc1({},R),{size:l,ref:n3(c1,t),onKeyDownCapture:V1,onMouseDownCapture:()=>{var i1;return(i1=c1.current)==null?void 0:i1.focus()},classNames:n,styles:a,disabled:N,unstyled:O}),b.createElement(AP,{inverted:_,offset:0,filled:Z,marks:h,size:l,radius:f,color:c,min:u,max:d,value:n1,onChange:I,onMouseEnter:w?()=>$(!0):void 0,onMouseLeave:w?()=>$(!1):void 0,classNames:n,styles:a,disabled:N,unstyled:O},b.createElement(PP,{max:d,min:u,value:n1,position:Z,dragging:H1,color:c,size:l,label:h1,ref:S,onMouseDown:l1,labelTransition:y,labelTransitionDuration:V,labelTransitionTimingFunction:x,labelAlwaysOn:H,classNames:n,styles:a,thumbLabel:M,showLabelOnHover:w&&F,disabled:N,unstyled:O,thumbSize:E},P)),b.createElement("input",{type:"hidden",name:C,value:n1}))});FP.displayName="@mantine/core/Slider";var ic1=Object.defineProperty,oc1=Object.defineProperties,sc1=Object.getOwnPropertyDescriptors,Fy=Object.getOwnPropertySymbols,lc1=Object.prototype.hasOwnProperty,fc1=Object.prototype.propertyIsEnumerable,Iy=(e,t,r)=>t in e?ic1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uc1=(e,t)=>{for(var r in t||(t={}))lc1.call(t,r)&&Iy(e,r,t[r]);if(Fy)for(var r of Fy(t))fc1.call(t,r)&&Iy(e,r,t[r]);return e},dc1=(e,t)=>oc1(e,sc1(t));function pc1(e,t,r){return typeof e<"u"?e in r.headings.sizes?r.headings.sizes[e].fontSize:e:r.headings.sizes[t].fontSize}function mc1(e,t,r){return typeof e<"u"&&e in r.headings.sizes?r.headings.sizes[e].lineHeight:r.headings.sizes[t].lineHeight}var hc1=u1((e,{element:t,weight:r,size:n,inline:a})=>({root:dc1(uc1({},e.fn.fontStyles()),{fontFamily:e.headings.fontFamily,fontWeight:r||e.headings.sizes[t].fontWeight||e.headings.fontWeight,fontSize:pc1(n,t,e),lineHeight:a?1:mc1(n,t,e),margin:0})}));const vc1=hc1;var gc1=Object.defineProperty,ga=Object.getOwnPropertySymbols,IP=Object.prototype.hasOwnProperty,jP=Object.prototype.propertyIsEnumerable,jy=(e,t,r)=>t in e?gc1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zc1=(e,t)=>{for(var r in t||(t={}))IP.call(t,r)&&jy(e,r,t[r]);if(ga)for(var r of ga(t))jP.call(t,r)&&jy(e,r,t[r]);return e},yc1=(e,t)=>{var r={};for(var n in e)IP.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&&jP.call(e,n)&&(r[n]=e[n]);return r};const Cc1={order:1},ir=z.forwardRef((e,t)=>{const r=L1("Title",Cc1,e),{className:n,order:a,children:c,unstyled:i,size:o,weight:s,inline:l}=r,f=yc1(r,["className","order","children","unstyled","size","weight","inline"]),{classes:u,cx:d}=vc1({element:`h${a}`,weight:s,size:o,inline:l},{name:"Title",unstyled:i});return[1,2,3,4,5,6].includes(a)?b.createElement(Y1,zc1({component:`h${a}`,ref:t,className:d(u.root,n)},f),c):null});ir.displayName="@mantine/core/Title";const Ue={h1:({node:e,...t})=>A.jsx(ir,{...t}),h2:({node:e,...t})=>A.jsx(ir,{order:2,...t}),h3:({node:e,...t})=>A.jsx(ir,{order:3,...t})};function By(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function p1(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1;a--){var c=r[a],i=(c.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(n=c)}return f2.head.insertBefore(t,n),e}}var Uc1="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Q5(){for(var e=12,t="";e-- >0;)t+=Uc1[Math.random()*62|0];return t}function z8(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function Bu(e){return e.classList?z8(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function eN(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/