From c92c96d8ec11777e7b0bd9ac3c72bca948e10486 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Sun, 8 Oct 2023 21:35:33 +0200 Subject: [PATCH] chore: update bpt_doorlock to version 1.0.2 --- .../[bpt_addons]/bpt_doorlock/README.md | 43 +------- .../[bpt_addons]/bpt_doorlock/fxmanifest.lua | 2 +- .../web/build/assets/index.3fdfe26d.js | 102 ++++++++++++++++++ .../web/build/assets/index.9f535db0.js | 93 ---------------- .../bpt_doorlock/web/build/index.html | 2 +- 5 files changed, 108 insertions(+), 134 deletions(-) create mode 100644 server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.3fdfe26d.js delete mode 100644 server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.9f535db0.js diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/README.md b/server-data/resources/[bpt_addons]/bpt_doorlock/README.md index ff09466ff..ad3cbfcad 100644 --- a/server-data/resources/[bpt_addons]/bpt_doorlock/README.md +++ b/server-data/resources/[bpt_addons]/bpt_doorlock/README.md @@ -1,44 +1,9 @@ -# bpt_doorlock +

bpt_dorlock

+

Discord -Port management resource, currently only compatible with es_extended. +Port management resource, currently only compatible with es_extended & qb-core. [latest release](https://github.com/bitpredator/bpt_doorlock/releases/latest/download/bpt_doorlock.zip) ## Dependencies -### [oxmysql](https://github.com/overextended/oxmysql) - -The ports are stored in a database to facilitate the use of the resource - -## Client API - -```lua -exports.bpt_doorlock:useClosestDoor() -``` - -```lua -exports.bpt_doorlock:pickClosestDoor() -``` - -## Server API - -```lua -local mrpd_locker_rooms = exports.bpt_doorlock:getDoor(1) -local mrpd_locker_rooms = exports.bpt_doorlock:getDoorFromName('mrpd locker rooms') -``` - -- Set door state (0: unlocked, 1: locked) - -```lua -TriggerEvent('bpt_doorlock:setState', mrpd_locker_rooms.id, state) -``` - -- Listen for event when door is toggled - -```lua -AddEventHandler('bpt_doorlock:stateChanged', function(source, doorId, state, usedItem) - if usedItem == 'trainticket' then - local xPlayer = ESX.GetPlayerFromId(source) - xPlayer.removeInventoryItem(usedItem, 1) - end -end) -``` \ No newline at end of file +### [oxmysql](https://github.com/overextended/oxmysql) \ No newline at end of file diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua b/server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua index 53a7c381e..a71dc5bac 100644 --- a/server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua +++ b/server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua @@ -6,7 +6,7 @@ game 'gta5' -- Resource Information name 'bpt_doorlock' -version '1.0.0' +version '1.0.2' license 'MIT' author 'bitpredator' repository 'https://github.com/bitpredator/bpt_doorlock' diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.3fdfe26d.js b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.3fdfe26d.js new file mode 100644 index 000000000..2efa8c399 --- /dev/null +++ b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.3fdfe26d.js @@ -0,0 +1,102 @@ +function Eb(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Rb=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}};Rb();var p={exports:{}},J={};/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var bp=Object.getOwnPropertySymbols,kb=Object.prototype.hasOwnProperty,Ib=Object.prototype.propertyIsEnumerable;function Nb(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function zb(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var N0=zb()?Object.assign:function(e,t){for(var r,n=Nb(e),o,i=1;i"u"||typeof MessageChannel!="function"){var s=null,u=null,c=function(){if(s!==null)try{var k=e.unstable_now();s(!0,k),s=null}catch(N){throw setTimeout(c,0),N}};t=function(k){s!==null?setTimeout(t,0,k):(s=k,setTimeout(c,0))},r=function(k,N){u=setTimeout(k,N)},n=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,d=window.clearTimeout;if(typeof console<"u"){var g=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof g!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,w=null,v=-1,m=5,h=0;e.unstable_shouldYield=function(){return e.unstable_now()>=h},o=function(){},e.unstable_forceFrameRate=function(k){0>k||125>>1,M=k[R];if(M!==void 0&&0E(Z,A))ae!==void 0&&0>E(ae,Z)?(k[R]=ae,k[Te]=A,R=Te):(k[R]=Z,k[W]=A,R=W);else if(ae!==void 0&&0>E(ae,A))k[R]=ae,k[Te]=A,R=Te;else break e}}return N}return null}function E(k,N){var A=k.sortIndex-N.sortIndex;return A!==0?A:k.id-N.id}var O=[],D=[],z=1,T=null,F=3,G=!1,q=!1,B=!1;function ne(k){for(var N=b(D);N!==null;){if(N.callback===null)P(D);else if(N.startTime<=k)P(D),N.sortIndex=N.expirationTime,$(O,N);else break;N=b(D)}}function se(k){if(B=!1,ne(k),!q)if(b(O)!==null)q=!0,t(ie);else{var N=b(D);N!==null&&r(se,N.startTime-k)}}function ie(k,N){q=!1,B&&(B=!1,n()),G=!0;var A=F;try{for(ne(N),T=b(O);T!==null&&(!(T.expirationTime>N)||k&&!e.unstable_shouldYield());){var R=T.callback;if(typeof R=="function"){T.callback=null,F=T.priorityLevel;var M=R(T.expirationTime<=N);N=e.unstable_now(),typeof M=="function"?T.callback=M:T===b(O)&&P(O),ne(N)}else P(O);T=b(O)}if(T!==null)var W=!0;else{var Z=b(D);Z!==null&&r(se,Z.startTime-N),W=!1}return W}finally{T=null,F=A,G=!1}}var De=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){q||G||(q=!0,t(ie))},e.unstable_getCurrentPriorityLevel=function(){return F},e.unstable_getFirstCallbackNode=function(){return b(O)},e.unstable_next=function(k){switch(F){case 1:case 2:case 3:var N=3;break;default:N=F}var A=F;F=N;try{return k()}finally{F=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=De,e.unstable_runWithPriority=function(k,N){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var A=F;F=k;try{return N()}finally{F=A}},e.unstable_scheduleCallback=function(k,N,A){var R=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0R?(k.sortIndex=A,$(D,k),b(O)===null&&k===b(D)&&(B?n():B=!0,r(se,A-R))):(k.sortIndex=M,$(O,k),q||G||(q=!0,t(ie))),k},e.unstable_wrapCallback=function(k){var N=F;return function(){var A=F;F=N;try{return k.apply(this,arguments)}finally{F=A}}}})(Y0);G0.exports=Y0;/** @license React v17.0.2 + * 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 Ns=p.exports,de=N0,Ce=G0.exports;function I(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"),Fb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Op=Object.prototype.hasOwnProperty,Cp={},Ep={};function Ab(e){return Op.call(Ep,e)?!0:Op.call(Cp,e)?!1:Fb.test(e)?Ep[e]=!0:(Cp[e]=!0,!1)}function Vb(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 Hb(e,t,r,n){if(t===null||typeof t>"u"||Vb(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 Ue(e,t,r,n,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ze[e]=new Ue(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ze[t]=new Ue(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ze[e]=new Ue(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ze[e]=new Ue(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){ze[e]=new Ue(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ze[e]=new Ue(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ze[e]=new Ue(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ze[e]=new Ue(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ze[e]=new Ue(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yf=/[\-:]([a-z])/g;function Xf(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(Yf,Xf);ze[t]=new Ue(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(Yf,Xf);ze[t]=new Ue(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(Yf,Xf);ze[t]=new Ue(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ze[e]=new Ue(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new Ue("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ze[e]=new Ue(e,1,!1,e.toLowerCase(),null,!0,!0)});function qf(e,t,r,n){var o=ze.hasOwnProperty(t)?ze[t]:null,i=o!==null?o.type===0:n?!1:!(!(2a||o[l]!==i[a])return` +`+o[l].replace(" at new "," at ");while(1<=l&&0<=a);break}}}finally{zu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Vo(e):""}function Bb(e){switch(e.tag){case 5:return Vo(e.type);case 16:return Vo("Lazy");case 13:return Vo("Suspense");case 19:return Vo("SuspenseList");case 0:case 2:case 15:return e=el(e.type,!1),e;case 11:return e=el(e.type.render,!1),e;case 22:return e=el(e.type._render,!1),e;case 1:return e=el(e.type,!0),e;default:return""}}function Nn(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 sr:return"Fragment";case Xr:return"Portal";case Go:return"Profiler";case Kf:return"StrictMode";case Yo:return"Suspense";case Ul:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zf:return(e.displayName||"Context")+".Consumer";case Qf:return(e._context.displayName||"Context")+".Provider";case zs:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Ds:return Nn(e.type);case ed:return Nn(e._render);case Jf:t=e._payload,e=e._init;try{return Nn(e(t))}catch{}}return null}function $r(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wb(e){var t=K0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){n=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tl(e){e._valueTracker||(e._valueTracker=Wb(e))}function Q0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=K0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Gl(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 Rc(e,t){var r=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function kp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=$r(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 Z0(e,t){t=t.checked,t!=null&&qf(e,"checked",t,!1)}function kc(e,t){Z0(e,t);var r=$r(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")?Ic(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ic(e,t.type,$r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ip(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 Ic(e,t,r){(t!=="number"||Gl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Ub(e){var t="";return Ns.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Nc(e,t){return e=de({children:void 0},t),(t=Ub(t.children))&&(e.children=t),e}function zn(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o=r.length))throw Error(I(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:$r(r)}}function J0(e,t){var r=$r(t.value),n=$r(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function zp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Dc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ey(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Tc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ey(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var rl,ty=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!==Dc.svg||"innerHTML"in e)e.innerHTML=t;else{for(rl=rl||document.createElement("div"),rl.innerHTML=""+t.valueOf().toString()+"",t=rl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ui(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Xo={animationIterationCount:!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},Gb=["Webkit","ms","Moz","O"];Object.keys(Xo).forEach(function(e){Gb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xo[t]=Xo[e]})});function ry(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Xo.hasOwnProperty(e)&&Xo[e]?(""+t).trim():t+"px"}function ny(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=ry(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Yb=de({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 Mc(e,t){if(t){if(Yb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function jc(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}}function nd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lc=null,Dn=null,Tn=null;function Dp(e){if(e=Ni(e)){if(typeof Lc!="function")throw Error(I(280));var t=e.stateNode;t&&(t=As(t),Lc(e.stateNode,e.type,t))}}function oy(e){Dn?Tn?Tn.push(e):Tn=[e]:Dn=e}function iy(){if(Dn){var e=Dn,t=Tn;if(Tn=Dn=null,Dp(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Ms(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Or(t),e[t]=r}var Or=Math.clz32?Math.clz32:uP,aP=Math.log,sP=Math.LN2;function uP(e){return e===0?32:31-(aP(e)/sP|0)|0}var cP=Ce.unstable_UserBlockingPriority,fP=Ce.unstable_runWithPriority,kl=!0;function dP(e,t,r,n){qr||id();var o=cd,i=qr;qr=!0;try{ly(o,e,t,r,n)}finally{(qr=i)||ld()}}function pP(e,t,r,n){fP(cP,cd.bind(null,e,t,r,n))}function cd(e,t,r,n){if(kl){var o;if((o=(t&4)===0)&&0=Ko),Wp=String.fromCharCode(32),Up=!1;function by(e,t){switch(e){case"keyup":return MP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Py(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var On=!1;function LP(e,t){switch(e){case"compositionend":return Py(t);case"keypress":return t.which!==32?null:(Up=!0,Wp);case"textInput":return e=t.data,e===Wp&&Up?null:e;default:return null}}function FP(e,t){if(On)return e==="compositionend"||!md&&by(e,t)?(e=Sy(),Il=dd=ur=null,On=!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=qp(r)}}function Ey(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ey(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qp(){for(var e=window,t=Gl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Gl(e.document)}return t}function Bc(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")}var qP=Qt&&"documentMode"in document&&11>=document.documentMode,Cn=null,Wc=null,Zo=null,Uc=!1;function Zp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Uc||Cn==null||Cn!==Gl(n)||(n=Cn,"selectionStart"in n&&Bc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Zo&&mi(Zo,n)||(Zo=n,n=Kl(Wc,"onSelect"),0Rn||(e.current=Yc[Rn],Yc[Rn]=null,Rn--)}function he(e,t){Rn++,Yc[Rn]=e.current,e.current=t}var Cr={},Ve=zr(Cr),Xe=zr(!1),rn=Cr;function Wn(e,t){var r=e.type.contextTypes;if(!r)return Cr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function qe(e){return e=e.childContextTypes,e!=null}function Jl(){fe(Xe),fe(Ve)}function ag(e,t,r){if(Ve.current!==Cr)throw Error(I(168));he(Ve,t),he(Xe,r)}function My(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in e))throw Error(I(108,Nn(t)||"Unknown",o));return de({},r,n)}function zl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,rn=Ve.current,he(Ve,e),he(Xe,Xe.current),!0}function sg(e,t,r){var n=e.stateNode;if(!n)throw Error(I(169));r?(e=My(e,t,rn),n.__reactInternalMemoizedMergedChildContext=e,fe(Xe),fe(Ve),he(Ve,e)):fe(Xe),he(Xe,r)}var hd=null,Jr=null,ZP=Ce.unstable_runWithPriority,yd=Ce.unstable_scheduleCallback,Xc=Ce.unstable_cancelCallback,JP=Ce.unstable_shouldYield,ug=Ce.unstable_requestPaint,qc=Ce.unstable_now,e$=Ce.unstable_getCurrentPriorityLevel,Vs=Ce.unstable_ImmediatePriority,jy=Ce.unstable_UserBlockingPriority,Ly=Ce.unstable_NormalPriority,Fy=Ce.unstable_LowPriority,Ay=Ce.unstable_IdlePriority,Gu={},t$=ug!==void 0?ug:function(){},Bt=null,Dl=null,Yu=!1,cg=qc(),Fe=1e4>cg?qc:function(){return qc()-cg};function Un(){switch(e$()){case Vs:return 99;case jy:return 98;case Ly:return 97;case Fy:return 96;case Ay:return 95;default:throw Error(I(332))}}function Vy(e){switch(e){case 99:return Vs;case 98:return jy;case 97:return Ly;case 96:return Fy;case 95:return Ay;default:throw Error(I(332))}}function nn(e,t){return e=Vy(e),ZP(e,t)}function hi(e,t,r){return e=Vy(e),yd(e,t,r)}function jt(){if(Dl!==null){var e=Dl;Dl=null,Xc(e)}Hy()}function Hy(){if(!Yu&&Bt!==null){Yu=!0;var e=0;try{var t=Bt;nn(99,function(){for(;eP?(E=b,b=null):E=b.sibling;var O=d(v,b,h[P],_);if(O===null){b===null&&(b=E);break}e&&b&&O.alternate===null&&t(v,b),m=i(O,m,P),$===null?x=O:$.sibling=O,$=O,b=E}if(P===h.length)return r(v,b),x;if(b===null){for(;PP?(E=b,b=null):E=b.sibling;var D=d(v,b,O.value,_);if(D===null){b===null&&(b=E);break}e&&b&&D.alternate===null&&t(v,b),m=i(D,m,P),$===null?x=D:$.sibling=D,$=D,b=E}if(O.done)return r(v,b),x;if(b===null){for(;!O.done;P++,O=h.next())O=f(v,O.value,_),O!==null&&(m=i(O,m,P),$===null?x=O:$.sibling=O,$=O);return x}for(b=n(v,b);!O.done;P++,O=h.next())O=g(b,v,P,O.value,_),O!==null&&(e&&O.alternate!==null&&b.delete(O.key===null?P:O.key),m=i(O,m,P),$===null?x=O:$.sibling=O,$=O);return e&&b.forEach(function(z){return t(v,z)}),x}return function(v,m,h,_){var x=typeof h=="object"&&h!==null&&h.type===sr&&h.key===null;x&&(h=h.props.children);var $=typeof h=="object"&&h!==null;if($)switch(h.$$typeof){case Ao:e:{for($=h.key,x=m;x!==null;){if(x.key===$){switch(x.tag){case 7:if(h.type===sr){r(v,x.sibling),m=o(x,h.props.children),m.return=v,v=m;break e}break;default:if(x.elementType===h.type){r(v,x.sibling),m=o(x,h.props),m.ref=Oo(v,x,h),m.return=v,v=m;break e}}r(v,x);break}else t(v,x);x=x.sibling}h.type===sr?(m=Vn(h.props.children,v.mode,_,h.key),m.return=v,v=m):(_=Ll(h.type,h.key,h.props,null,v.mode,_),_.ref=Oo(v,m,h),_.return=v,v=_)}return l(v);case Xr:e:{for(x=h.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===h.containerInfo&&m.stateNode.implementation===h.implementation){r(v,m.sibling),m=o(m,h.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=Ju(h,v.mode,_),m.return=v,v=m}return l(v)}if(typeof h=="string"||typeof h=="number")return h=""+h,m!==null&&m.tag===6?(r(v,m.sibling),m=o(m,h),m.return=v,v=m):(r(v,m),m=Zu(h,v.mode,_),m.return=v,v=m),l(v);if(il(h))return y(v,m,h,_);if(_o(h))return w(v,m,h,_);if($&&ll(v,h),typeof h>"u"&&!x)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(I(152,Nn(v.type)||"Component"))}return r(v,m)}}var oa=Yy(!0),Xy=Yy(!1),zi={},Nt=zr(zi),wi=zr(zi),_i=zr(zi);function Qr(e){if(e===zi)throw Error(I(174));return e}function Qc(e,t){switch(he(_i,t),he(wi,e),he(Nt,zi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Tc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Tc(t,e)}fe(Nt),he(Nt,t)}function Gn(){fe(Nt),fe(wi),fe(_i)}function mg(e){Qr(_i.current);var t=Qr(Nt.current),r=Tc(t,e.type);t!==r&&(he(wi,e),he(Nt,r))}function xd(e){wi.current===e&&(fe(Nt),fe(wi))}var ve=zr(0);function ia(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&64)!==0)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 Yt=null,fr=null,zt=!1;function qy(e,t){var r=dt(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function vg(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Zc(e){if(zt){var t=fr;if(t){var r=t;if(!vg(e,t)){if(t=Mn(r.nextSibling),!t||!vg(e,t)){e.flags=e.flags&-1025|2,zt=!1,Yt=e;return}qy(Yt,r)}Yt=e,fr=Mn(t.firstChild)}else e.flags=e.flags&-1025|2,zt=!1,Yt=e}}function hg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yt=e}function al(e){if(e!==Yt)return!1;if(!zt)return hg(e),zt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Gc(t,e.memoizedProps))for(t=fr;t;)qy(e,t),t=Mn(t.nextSibling);if(hg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){fr=Mn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}fr=null}}else fr=Yt?Mn(e.stateNode.nextSibling):null;return!0}function Xu(){fr=Yt=null,zt=!1}var Ln=[];function bd(){for(var e=0;ei))throw Error(I(301));i+=1,ke=Le=null,t.updateQueue=null,Jo.current=l$,e=r(n,o)}while(ei)}if(Jo.current=ca,t=Le!==null&&Le.next!==null,Si=0,ke=Le=ye=null,la=!1,t)throw Error(I(300));return e}function Zr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ye.memoizedState=ke=e:ke=ke.next=e,ke}function cn(){if(Le===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=ke===null?ye.memoizedState:ke.next;if(t!==null)ke=t,Le=e;else{if(e===null)throw Error(I(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},ke===null?ye.memoizedState=ke=e:ke=ke.next=e}return ke}function kt(e,t){return typeof t=="function"?t(e):t}function Co(e){var t=cn(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;var n=Le,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}n.baseQueue=o=i,r.pending=null}if(o!==null){o=o.next,n=n.baseState;var a=l=i=null,s=o;do{var u=s.lane;if((Si&u)===u)a!==null&&(a=a.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),n=s.eagerReducer===e?s.eagerState:e(n,s.action);else{var c={lane:u,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};a===null?(l=a=c,i=n):a=a.next=c,ye.lanes|=u,Di|=u}s=s.next}while(s!==null&&s!==o);a===null?i=n:a.next=l,ft(n,t.memoizedState)||(Pt=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=a,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Eo(e){var t=cn(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);ft(i,t.memoizedState)||(Pt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function yg(e,t,r){var n=t._getVersion;n=n(t._source);var o=t._workInProgressVersionPrimary;if(o!==null?e=o===n:(e=e.mutableReadLanes,(e=(Si&e)===e)&&(t._workInProgressVersionPrimary=n,Ln.push(t))),e)return r(t._source);throw Ln.push(t),Error(I(350))}function Ky(e,t,r,n){var o=We;if(o===null)throw Error(I(349));var i=t._getVersion,l=i(t._source),a=Jo.current,s=a.useState(function(){return yg(o,t,r)}),u=s[1],c=s[0];s=ke;var f=e.memoizedState,d=f.refs,g=d.getSnapshot,y=f.source;f=f.subscribe;var w=ye;return e.memoizedState={refs:d,source:t,subscribe:n},a.useEffect(function(){d.getSnapshot=r,d.setSnapshot=u;var v=i(t._source);if(!ft(l,v)){v=r(t._source),ft(c,v)||(u(v),v=_r(w),o.mutableReadLanes|=v&o.pendingLanes),v=o.mutableReadLanes,o.entangledLanes|=v;for(var m=o.entanglements,h=v;0r?98:r,function(){e(!0)}),nn(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[cr]=t,e[Zl]=n,i1(e,t,!1,!1),t.stateNode=e,l=jc(r,n),r){case"dialog":ce("cancel",e),ce("close",e),o=n;break;case"iframe":case"object":case"embed":ce("load",e),o=n;break;case"video":case"audio":for(o=0;ouf&&(t.flags|=64,i=!0,ko(n,!1),t.lanes=33554432)}else{if(!i)if(e=ia(l),e!==null){if(t.flags|=64,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ko(n,!0),n.tail===null&&n.tailMode==="hidden"&&!l.alternate&&!zt)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Fe()-n.renderingStartTime>uf&&r!==1073741824&&(t.flags|=64,i=!0,ko(n,!1),t.lanes=33554432);n.isBackwards?(l.sibling=t.child,t.child=l):(r=n.last,r!==null?r.sibling=l:t.child=l,n.last=l)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Fe(),r.sibling=null,t=ve.current,he(ve,i?t&1|2:t&1),r):null;case 23:case 24:return zd(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(I(156,t.tag))}function u$(e){switch(e.tag){case 1:qe(e.type)&&Jl();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Gn(),fe(Xe),fe(Ve),bd(),t=e.flags,(t&64)!==0)throw Error(I(285));return e.flags=t&-4097|64,e;case 5:return xd(e),null;case 13:return fe(ve),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return fe(ve),null;case 4:return Gn(),null;case 10:return _d(e),null;case 23:case 24:return zd(),null;default:return null}}function Rd(e,t){try{var r="",n=t;do r+=Bb(n),n=n.return;while(n);var o=r}catch(i){o=` +Error generating stack: `+i.message+` +`+i.stack}return{value:e,source:t,stack:o}}function nf(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var c$=typeof WeakMap=="function"?WeakMap:Map;function s1(e,t,r){r=yr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){da||(da=!0,cf=n),nf(e,t)},r}function u1(e,t,r){r=yr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return nf(e,t),n(o)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(It===null?It=new Set([this]):It.add(this),nf(e,t));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),r}var f$=typeof WeakSet=="function"?WeakSet:Set;function Ig(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){xr(e,r)}else t.current=null}function d$(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:bt(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&vd(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(I(163))}function p$(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var o=e;n=o.next,o=o.tag,(o&4)!==0&&(o&1)!==0&&(y1(r,e),S$(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:bt(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&dg(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}dg(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&Dy(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&py(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(I(163))}function Ng(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var o=r.memoizedProps.style;o=o!=null&&o.hasOwnProperty("display")?o.display:null,n.style.display=ry("display",o)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function zg(e,t){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(hd,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,o=n.destroy;if(n=n.tag,o!==void 0)if((n&4)!==0)y1(t,r);else{n=t;try{o()}catch(i){xr(n,i)}}r=r.next}while(r!==e)}break;case 1:if(Ig(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){xr(t,i)}break;case 5:Ig(t);break;case 4:c1(e,t)}}function Dg(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Tg(e){return e.tag===5||e.tag===3||e.tag===4}function Mg(e){e:{for(var t=e.return;t!==null;){if(Tg(t))break e;t=t.return}throw Error(I(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(I(161))}r.flags&16&&(ui(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||Tg(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?of(e,r,t):lf(e,r,t)}function of(e,t,r){var n=e.tag,o=n===5||n===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ql));else if(n!==4&&(e=e.child,e!==null))for(of(e,t,r),e=e.sibling;e!==null;)of(e,t,r),e=e.sibling}function lf(e,t,r){var n=e.tag,o=n===5||n===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(lf(e,t,r),e=e.sibling;e!==null;)lf(e,t,r),e=e.sibling}function c1(e,t){for(var r=t,n=!1,o,i;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(I(160));switch(o=n.stateNode,n.tag){case 5:i=!1;break e;case 3:o=o.containerInfo,i=!0;break e;case 4:o=o.containerInfo,i=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var l=e,a=r,s=a;;)if(zg(l,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}i?(l=o,a=r.stateNode,l.nodeType===8?l.parentNode.removeChild(a):l.removeChild(a)):o.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){o=r.stateNode.containerInfo,i=!0,r.child.return=r,r=r.child;continue}}else if(zg(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function Qu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var o=e!==null?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,i!==null){for(r[Zl]=n,e==="input"&&n.type==="radio"&&n.name!=null&&Z0(r,n),jc(e,o),t=jc(e,n),o=0;oo&&(o=l),r&=~i}if(r=o,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*m$(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Ne!==5&&(Ne=2),s=Rd(s,a),d=l;do{switch(d.tag){case 3:i=s,d.flags|=4096,t&=-t,d.lanes|=t;var $=s1(d,i,t);fg(d,$);break e;case 1:i=s;var b=d.type,P=d.stateNode;if((d.flags&64)===0&&(typeof b.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(It===null||!It.has(P)))){d.flags|=4096,t&=-t,d.lanes|=t;var E=u1(d,i,t);fg(d,E);break e}}d=d.return}while(d!==null)}h1(r)}catch(O){t=O,Se===r&&r!==null&&(Se=r=r.return);continue}break}while(1)}function m1(){var e=fa.current;return fa.current=ca,e===null?ca:e}function Wo(e,t){var r=U;U|=16;var n=m1();We===e&&Ae===t||An(e,t);do try{h$();break}catch(o){g1(e,o)}while(1);if(wd(),U=r,fa.current=n,Se!==null)throw Error(I(261));return We=null,Ae=0,Ne}function h$(){for(;Se!==null;)v1(Se)}function y$(){for(;Se!==null&&!JP();)v1(Se)}function v1(e){var t=w1(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?h1(e):Se=t,kd.current=null}function h1(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)===0){if(r=s$(r,t,on),r!==null){Se=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(on&1073741824)!==0||(r.mode&4)===0){for(var n=0,o=r.child;o!==null;)n|=o.lanes|o.childLanes,o=o.sibling;r.childLanes=n}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1l&&(a=l,l=$,$=a),a=Kp(h,$),i=Kp(h,l),a&&i&&(x.rangeCount!==1||x.anchorNode!==a.node||x.anchorOffset!==a.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&(_=_.createRange(),_.setStart(a.node,a.offset),x.removeAllRanges(),$>l?(x.addRange(_),x.extend(i.node,i.offset)):(_.setEnd(i.node,i.offset),x.addRange(_)))))),_=[],x=h;x=x.parentNode;)x.nodeType===1&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<_.length;h++)x=_[h],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}kl=!!Bu,Wu=Bu=null,e.current=r,j=n;do try{for(h=e;j!==null;){var b=j.flags;if(b&36&&p$(h,j.alternate,j),b&128){_=void 0;var P=j.ref;if(P!==null){var E=j.stateNode;switch(j.tag){case 5:_=E;break;default:_=E}typeof P=="function"?P(_):P.current=_}}j=j.nextEffect}}catch(O){if(j===null)throw Error(I(330));xr(j,O),j=j.nextEffect}while(j!==null);j=null,t$(),U=o}else e.current=r;if(Er)Er=!1,ti=e,Bo=t;else for(j=n;j!==null;)t=j.nextEffect,j.nextEffect=null,j.flags&8&&(b=j,b.sibling=null,b.stateNode=null),j=t;if(n=e.pendingLanes,n===0&&(It=null),n===1?e===pf?ri++:(ri=0,pf=e):ri=0,r=r.stateNode,Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(hd,r,void 0,(r.current.flags&64)===64)}catch{}if(mt(e,Fe()),da)throw da=!1,e=cf,cf=null,e;return(U&8)!==0||jt(),null}function _$(){for(;j!==null;){var e=j.alternate;jl||ni===null||((j.flags&8)!==0?Mp(j,ni)&&(jl=!0):j.tag===13&&g$(e,j)&&Mp(j,ni)&&(jl=!0));var t=j.flags;(t&256)!==0&&d$(e,j),(t&512)===0||Er||(Er=!0,hi(97,function(){return Dr(),null})),j=j.nextEffect}}function Dr(){if(Bo!==90){var e=97Fe()-Nd?An(e,0):Id|=r),mt(e,t)}function P$(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=Un()===99?1:2:(Ut===0&&(Ut=to),t=bn(62914560&~Ut),t===0&&(t=4194304))),r=rt(),e=Ws(e,t),e!==null&&(Ms(e,t,r),mt(e,r))}var w1;w1=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)Pt=!0;else if((r&n)!==0)Pt=(e.flags&16384)!==0;else{switch(Pt=!1,t.tag){case 3:Pg(t),Xu();break;case 5:mg(t);break;case 1:qe(t.type)&&zl(t);break;case 4:Qc(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var o=t.type._context;he(ea,o._currentValue),o._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!==0?$g(e,t,r):(he(ve,ve.current&1),t=Xt(e,t,r),t!==null?t.sibling:null);he(ve,ve.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&64)!==0){if(n)return kg(e,t,r);t.flags|=64}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),he(ve,ve.current),n)break;return null;case 23:case 24:return t.lanes=0,qu(e,t,r)}return Xt(e,t,r)}else Pt=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=Wn(t,Ve.current),jn(t,r),o=$d(null,t,n,e,o,r),t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,qe(n)){var i=!0;zl(t)}else i=!1;t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Sd(t);var l=n.getDerivedStateFromProps;typeof l=="function"&&na(t,n,l,e),o.updater=Hs,t.stateNode=o,o._reactInternals=t,Kc(t,n,e,r),t=tf(null,t,n,!0,i,r)}else t.tag=0,Ye(null,t,o,r),t=t.child;return t;case 16:o=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=O$(o),e=bt(o,e),i){case 0:t=ef(null,t,o,e,r);break e;case 1:t=bg(null,t,o,e,r);break e;case 11:t=Sg(null,t,o,e,r);break e;case 14:t=xg(null,t,o,bt(o.type,e),n,r);break e}throw Error(I(306,o,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:bt(n,o),ef(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:bt(n,o),bg(e,t,n,o,r);case 3:if(Pg(t),n=t.updateQueue,e===null||n===null)throw Error(I(282));if(n=t.pendingProps,o=t.memoizedState,o=o!==null?o.element:null,Wy(e,t),yi(t,n,null,r),n=t.memoizedState.element,n===o)Xu(),t=Xt(e,t,r);else{if(o=t.stateNode,(i=o.hydrate)&&(fr=Mn(t.stateNode.containerInfo.firstChild),Yt=t,i=zt=!0),i){if(e=o.mutableSourceEagerHydrationData,e!=null)for(o=0;o"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(S1)}catch(e){console.error(e)}}S1(),ki.exports=yt;var z$=ki.exports;function ga(e,t){let r=e;for(;(r=r.parentElement)&&!r.matches(t););return r}function D$(e,t,r){for(let n=e-1;n>=0;n-=1)if(!t[n].disabled)return n;if(r){for(let n=t.length-1;n>-1;n-=1)if(!t[n].disabled)return n}return e}function T$(e,t,r){for(let n=e+1;n{var s;r?.(a);const u=Array.from(((s=ga(a.currentTarget,e))==null?void 0:s.querySelectorAll(t))||[]).filter(w=>M$(a.currentTarget,w,e)),c=u.findIndex(w=>a.currentTarget===w),f=T$(c,u,n),d=D$(c,u,n),g=i==="rtl"?d:f,y=i==="rtl"?f:d;switch(a.key){case"ArrowRight":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),u[g].focus(),o&&u[g].click());break}case"ArrowLeft":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),u[y].focus(),o&&u[y].click());break}case"ArrowUp":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),u[d].focus(),o&&u[d].click());break}case"ArrowDown":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),u[f].focus(),o&&u[f].click());break}case"Home":{a.stopPropagation(),a.preventDefault(),!u[0].disabled&&u[0].focus();break}case"End":{a.stopPropagation(),a.preventDefault();const w=u.length-1;!u[w].disabled&&u[w].focus();break}}}}function j$(e,t,r){var n;return r?Array.from(((n=ga(r,t))==null?void 0:n.querySelectorAll(e))||[]).findIndex(o=>o===r):null}var Gs={exports:{}},Mi={};/** @license React v17.0.2 + * react-jsx-runtime.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 L$=p.exports,b1=60103;Mi.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Ag=Symbol.for;b1=Ag("react.element"),Mi.Fragment=Ag("react.fragment")}var F$=L$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A$=Object.prototype.hasOwnProperty,V$={key:!0,ref:!0,__self:!0,__source:!0};function P1(e,t,r){var n,o={},i=null,l=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)A$.call(t,n)&&!V$.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:b1,type:e,key:i,ref:l,props:o,_owner:F$.current}}Mi.jsx=P1;Mi.jsxs=P1;Gs.exports=Mi;const S=Gs.exports.jsx,H=Gs.exports.jsxs,lt=Gs.exports.Fragment;function Ld(e){const t=p.exports.createContext(null);return[({children:o,value:i})=>S(t.Provider,{value:i,children:o}),()=>{const o=p.exports.useContext(t);if(o===null)throw new Error(e);return o}]}function xi(e){return Array.isArray(e)?e:[e]}function Vg(e,t){return r=>{if(typeof r!="string"||r.trim().length===0)throw new Error(t);return`${e}-${r}`}}function ji(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==C.Fragment:!1}const H$=()=>{};function B$(e,t={active:!0}){return typeof e!="function"||!t.active?H$:r=>{var n;r.key==="Escape"&&(e(),(n=t.onTrigger)==null||n.call(t))}}function qt(e,t){return r=>{e?.(r),t?.(r)}}function W$(){const[e,t]=p.exports.useState(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}function U$({data:e}){const t=[],r=[],n=e.reduce((o,i,l)=>(i.group?o[i.group]?o[i.group].push(l):o[i.group]=[l]:r.push(l),o),{});return Object.keys(n).forEach(o=>{t.push(...n[o].map(i=>e[i]))}),t.push(...r.map(o=>e[o])),t}function G$(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}const Y$=typeof window<"u"?p.exports.useLayoutEffect:p.exports.useEffect;function X$(e){function t(n){const o=Object.keys(n).reduce((i,l)=>(i[`${e}:${l}`]=a=>n[l](a.detail),i),{});Y$(()=>(Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i]),window.addEventListener(i,o[i])}),()=>Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i])})),[])}function r(n){return(...o)=>G$(`${e}:${String(n)}`,o[0])}return[t,r]}function $1(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"})}function K$(e){return()=>({WebkitTapHighlightColor:"transparent","&:focus":{outlineOffset:2,outline:e.focusRing==="always"||e.focusRing==="auto"?`2px solid ${e.colors[e.primaryColor][e.colorScheme==="dark"?7:5]}`:"none"},"&:focus:not(:focus-visible)":{outline:e.focusRing==="auto"||e.focusRing==="never"?"none":void 0}})}function Li(e){return t=>typeof e.primaryShade=="number"?e.primaryShade:e.primaryShade[t||e.colorScheme]}function Fd(e){const t=Li(e);return(r,n,o=!0,i=!0)=>{if(typeof r=="string"&&r.includes(".")){const[a,s]=r.split("."),u=parseInt(s,10);if(a in e.colors&&u>=0&&u<10)return e.colors[a][typeof n=="number"&&!i?n:u]}const l=typeof n=="number"?n:t();return r in e.colors?e.colors[r][l]:o?e.colors[e.primaryColor][l]:r}}function E1(e){let t="";for(let r=1;r{const o={from:n?.from||e.defaultGradient.from,to:n?.to||e.defaultGradient.to,deg:n?.deg||e.defaultGradient.deg};return`linear-gradient(${o.deg}deg, ${t(o.from,r(),!1)} 0%, ${t(o.to,r(),!1)} 100%)`}}function Ad(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 J$(e){return t=>`@media (min-width: ${Ad({size:t,sizes:e.breakpoints})+1}px)`}function eO(e){return t=>`@media (max-width: ${Ad({size:t,sizes:e.breakpoints})}px)`}function tO(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)}function rO(e){let t=e.replace("#","");if(t.length===3){const l=t.split("");t=[l[0],l[0],l[1],l[1],l[2],l[2]].join("")}const r=parseInt(t,16),n=r>>16&255,o=r>>8&255,i=r&255;return{r:n,g:o,b:i,a:1}}function nO(e){const[t,r,n,o]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:r,b:n,a:o||1}}function Vd(e){return tO(e)?rO(e):e.startsWith("rgb")?nO(e):{r:0,g:0,b:0,a:1}}function Pn(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";const{r,g:n,b:o}=Vd(e);return`rgba(${r}, ${n}, ${o}, ${t})`}function oO(e=0){return{position:"absolute",top:e,right:e,left:e,bottom:e}}function iO(e,t){const{r,g:n,b:o,a:i}=Vd(e),l=1-t,a=s=>Math.round(s*l);return`rgba(${a(r)}, ${a(n)}, ${a(o)}, ${i})`}function lO(e,t){const{r,g:n,b:o,a:i}=Vd(e),l=a=>Math.round(a+(255-a)*t);return`rgba(${l(r)}, ${l(n)}, ${l(o)}, ${i})`}function aO(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 sO(e,t){if(typeof e=="string"&&e.includes(".")){const[r,n]=e.split("."),o=parseInt(n,10);if(r in t.colors&&o>=0&&o<10)return{isSplittedColor:!0,key:r,shade:o}}return{isSplittedColor:!1}}function uO(e){const t=Fd(e),r=Li(e),n=R1(e);return({variant:o,color:i,gradient:l,primaryFallback:a})=>{const s=sO(i,e);if(o==="light")return{border:"transparent",background:Pn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1),color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Pn(t(i,e.colorScheme==="dark"?7:1,a,!1),e.colorScheme==="dark"?.25:.65)};if(o==="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]};if(o==="white")return{border:"transparent",background:e.white,color:t(i,r()),hover:null};if(o==="outline")return{border:t(i,e.colorScheme==="dark"?5:r("light")),background:"transparent",color:t(i,e.colorScheme==="dark"?5:r("light")),hover:e.colorScheme==="dark"?Pn(t(i,5,a,!1),.05):Pn(t(i,0,a,!1),.35)};if(o==="gradient")return{background:n(l),color:e.white,border:"transparent",hover:null};if(o==="subtle")return{border:"transparent",background:"transparent",color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Pn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1)};const u=r(),c=s.isSplittedColor?s.shade:u,f=s.isSplittedColor?s.key:i;return{border:"transparent",background:t(f,c,a),color:e.white,hover:t(f,c===9?8:c+1)}}}function cO(e){return t=>{const r=Li(e)(t);return e.colors[e.primaryColor][r]}}function fO(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}}const Oe={fontStyles:q$,themeColor:Fd,focusStyles:K$,linearGradient:Q$,radialGradient:Z$,smallerThan:eO,largerThan:J$,rgba:Pn,size:Ad,cover:oO,darken:iO,lighten:lO,radius:aO,variant:uO,primaryShade:Li,hover:fO,gradient:R1,primaryColor:cO};var dO=Object.defineProperty,pO=Object.defineProperties,gO=Object.getOwnPropertyDescriptors,Hg=Object.getOwnPropertySymbols,mO=Object.prototype.hasOwnProperty,vO=Object.prototype.propertyIsEnumerable,Bg=(e,t,r)=>t in e?dO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hO=(e,t)=>{for(var r in t||(t={}))mO.call(t,r)&&Bg(e,r,t[r]);if(Hg)for(var r of Hg(t))vO.call(t,r)&&Bg(e,r,t[r]);return e},yO=(e,t)=>pO(e,gO(t));function k1(e){return yO(hO({},e),{fn:{fontStyles:Oe.fontStyles(e),themeColor:Oe.themeColor(e),focusStyles:Oe.focusStyles(e),largerThan:Oe.largerThan(e),smallerThan:Oe.smallerThan(e),radialGradient:Oe.radialGradient,linearGradient:Oe.linearGradient,gradient:Oe.gradient(e),rgba:Oe.rgba,size:Oe.size,cover:Oe.cover,lighten:Oe.lighten,darken:Oe.darken,primaryShade:Oe.primaryShade(e),radius:Oe.radius(e),variant:Oe.variant(e),hover:Oe.hover,primaryColor:Oe.primaryColor(e)}})}Object.keys(C1);const wO=["xs","sm","md","lg","xl"],_O={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:C1,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"},Hd=k1(_O);function SO(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ie(oo,--Ke):0,Yn--,we===10&&(Yn=1,Xs--),we}function nt(){return we=Ke2||Pi(we)>3?"":" "}function DO(e,t){for(;--t&&nt()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return Fi(e,Fl()+(t<6&&Dt()==32&&nt()==32))}function vf(e){for(;nt();)switch(we){case e:return Ke;case 34:case 39:e!==34&&e!==39&&vf(we);break;case 40:e===41&&vf(e);break;case 92:nt();break}return Ke}function TO(e,t){for(;nt()&&e+we!==47+10;)if(e+we===42+42&&Dt()===47)break;return"/*"+Fi(t,Ke-1)+"*"+Ys(e===47?e:nt())}function MO(e){for(;!Pi(Dt());)nt();return Fi(e,Ke)}function jO(e){return M1(Vl("",null,null,null,[""],e=T1(e),0,[0],e))}function Vl(e,t,r,n,o,i,l,a,s){for(var u=0,c=0,f=l,d=0,g=0,y=0,w=1,v=1,m=1,h=0,_="",x=o,$=i,b=n,P=_;v;)switch(y=h,h=nt()){case 40:if(y!=108&&Ie(P,f-1)==58){mf(P+=re(Al(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:P+=Al(h);break;case 9:case 10:case 13:case 32:P+=zO(y);break;case 92:P+=DO(Fl()-1,7);continue;case 47:switch(Dt()){case 42:case 47:fl(LO(TO(nt(),Fl()),t,r),s);break;default:P+="/"}break;case 123*w:a[u++]=Ct(P)*m;case 125*w:case 59:case 0:switch(h){case 0:case 125:v=0;case 59+c:m==-1&&(P=re(P,/\f/g,"")),g>0&&Ct(P)-f&&fl(g>32?Ug(P+";",n,r,f-1):Ug(re(P," ","")+";",n,r,f-2),s);break;case 59:P+=";";default:if(fl(b=Wg(P,t,r,u,c,o,a,_,x=[],$=[],f),i),h===123)if(c===0)Vl(P,t,b,b,x,i,f,a,$);else switch(d===99&&Ie(P,3)===110?100:d){case 100:case 108:case 109:case 115:Vl(e,b,b,n&&fl(Wg(e,b,b,0,0,o,a,_,o,x=[],f),$),o,$,f,a,n?x:$);break;default:Vl(P,b,b,b,[""],$,0,a,$)}}u=c=g=0,w=m=1,_=P="",f=l;break;case 58:f=1+Ct(P),g=y;default:if(w<1){if(h==123)--w;else if(h==125&&w++==0&&NO()==125)continue}switch(P+=Ys(h),h*w){case 38:m=c>0?1:(P+="\f",-1);break;case 44:a[u++]=(Ct(P)-1)*m,m=1;break;case 64:Dt()===45&&(P+=Al(nt())),d=Dt(),c=f=Ct(_=P+=MO(Fl())),h++;break;case 45:y===45&&Ct(P)==2&&(w=0)}}return i}function Wg(e,t,r,n,o,i,l,a,s,u,c){for(var f=o-1,d=o===0?i:[""],g=Ud(d),y=0,w=0,v=0;y0?d[m]+" "+h:re(h,/&\f/g,d[m])))&&(s[v++]=_);return qs(e,t,r,o===0?Bd:a,s,u,c)}function LO(e,t,r){return qs(e,t,r,I1,Ys(IO()),bi(e,2,-2),0)}function Ug(e,t,r,n){return qs(e,t,r,Wd,bi(e,0,n),bi(e,n+1,-1),n)}function Hn(e,t){for(var r="",n=Ud(e),o=0;o6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+ma+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mf(e,"stretch")?j1(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,Ct(e)-3-(~mf(e,"!important")&&10))){case 107:return re(e,":",":"+te)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(Ie(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+je+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return te+e+je+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+je+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+je+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+je+e+e}return e}var XO=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Wd:t.return=j1(t.value,t.length);break;case N1:return Hn([No(t,{value:re(t.value,"@","@"+te)})],o);case Bd:if(t.length)return kO(t.props,function(i){switch(RO(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hn([No(t,{props:[re(i,/:(read-\w+)/,":"+ma+"$1")]})],o);case"::placeholder":return Hn([No(t,{props:[re(i,/:(plac\w+)/,":"+te+"input-$1")]}),No(t,{props:[re(i,/:(plac\w+)/,":"+ma+"$1")]}),No(t,{props:[re(i,/:(plac\w+)/,je+"input-$1")]})],o)}return""})}},qO=[XO],L1=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var v=w.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||qO,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var v=w.getAttribute("data-emotion").split(" "),m=1;m=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var aC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sC=/[A-Z]|^ms/g,uC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,W1=function(t){return t.charCodeAt(1)===45},Yg=function(t){return t!=null&&typeof t!="boolean"},tc=HO(function(e){return W1(e)?e:e.replace(sC,"-$&").toLowerCase()}),Xg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(uC,function(n,o,i){return Et={name:o,styles:i,next:Et},o})}return aC[t]!==1&&!W1(t)&&typeof r=="number"&&r!==0?r+"px":r};function $i(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 Et={name:r.name,styles:r.styles,next:Et},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Et={name:n.name,styles:n.styles,next:Et},n=n.next;var o=r.styles+";";return o}return cC(e,t,r)}case"function":{if(e!==void 0){var i=Et,l=r(e);return Et=i,$i(e,t,l)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function cC(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ot in e?gC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wC=(e,t)=>{for(var r in t||(t={}))hC.call(t,r)&&Zg(e,r,t[r]);if(Qg)for(var r of Qg(t))yC.call(t,r)&&Zg(e,r,t[r]);return e},_C=(e,t)=>mC(e,vC(t));function SC({theme:e}){return C.createElement(qd,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},body:_C(wC({},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 dl(e,t,r){Object.keys(t).forEach(n=>{e[`--mantine-${r}-${n}`]=typeof t[n]=="number"?`${t[n]}px`:t[n]})}function xC({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}`};dl(t,e.shadows,"shadow"),dl(t,e.fontSizes,"font-size"),dl(t,e.radius,"radius"),dl(t,e.spacing,"spacing"),Object.keys(e.colors).forEach(n=>{e.colors[n].forEach((o,i)=>{t[`--mantine-color-${n}-${i}`]=o})});const r=e.headings.sizes;return Object.keys(r).forEach(n=>{t[`--mantine-${n}-font-size`]=`${r[n].fontSize}px`,t[`--mantine-${n}-line-height`]=`${r[n].lineHeight}`}),C.createElement(qd,{styles:{":root":t}})}var bC=Object.defineProperty,PC=Object.defineProperties,$C=Object.getOwnPropertyDescriptors,Jg=Object.getOwnPropertySymbols,OC=Object.prototype.hasOwnProperty,CC=Object.prototype.propertyIsEnumerable,em=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fr=(e,t)=>{for(var r in t||(t={}))OC.call(t,r)&&em(e,r,t[r]);if(Jg)for(var r of Jg(t))CC.call(t,r)&&em(e,r,t[r]);return e},tm=(e,t)=>PC(e,$C(t));function EC(e,t){return t?Object.keys(e).reduce((r,n)=>{if(n==="headings"&&t.headings){const o=t.headings.sizes?Object.keys(e.headings.sizes).reduce((i,l)=>(i[l]=Fr(Fr({},e.headings.sizes[l]),t.headings.sizes[l]),i),{}):e.headings.sizes;return tm(Fr({},r),{headings:tm(Fr(Fr({},e.headings),t.headings),{sizes:o})})}return r[n]=typeof t[n]=="object"?Fr(Fr({},e[n]),t[n]):typeof t[n]=="number"||typeof t[n]=="boolean"?t[n]:t[n]||e[n],r},{}):e}function RC(e,t){return k1(EC(e,t))}function kC(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}const IC={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 NC(){return C.createElement(qd,{styles:IC})}var zC=Object.defineProperty,rm=Object.getOwnPropertySymbols,DC=Object.prototype.hasOwnProperty,TC=Object.prototype.propertyIsEnumerable,nm=(e,t,r)=>t in e?zC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oi=(e,t)=>{for(var r in t||(t={}))DC.call(t,r)&&nm(e,r,t[r]);if(rm)for(var r of rm(t))TC.call(t,r)&&nm(e,r,t[r]);return e};const va=p.exports.createContext({theme:Hd});function st(){var e;return((e=p.exports.useContext(va))==null?void 0:e.theme)||Hd}function MC(e){const t=st(),r=n=>{var o,i;return{styles:((o=t.components[n])==null?void 0:o.styles)||{},classNames:((i=t.components[n])==null?void 0:i.classNames)||{}}};return Array.isArray(e)?e.map(r):[r(e)]}function jC(){var e;return(e=p.exports.useContext(va))==null?void 0:e.emotionCache}function ee(e,t,r){var n;const i=(n=st().components[e])==null?void 0:n.defaultProps;return oi(oi(oi({},t),i),kC(r))}function Y1({theme:e,emotionCache:t,withNormalizeCSS:r=!1,withGlobalStyles:n=!1,withCSSVariables:o=!1,inherit:i=!1,children:l}){const a=p.exports.useContext(va),s=RC(Hd,i?oi(oi({},a.theme),e):e);return H(va.Provider,{value:{theme:s,emotionCache:t},children:[r&&S(NC,{}),n&&S(SC,{theme:s}),o&&S(xC,{theme:s}),l]})}Y1.displayName="@mantine/core/MantineProvider";const X1=p.exports.createContext({classNames:{},styles:{},unstyled:!1});function q1({children:e,classNames:t,unstyled:r,styles:n,staticSelector:o}){return S(X1.Provider,{value:{classNames:t,styles:n,unstyled:r,staticSelector:o},children:e})}function fn(){return p.exports.useContext(X1)}const LC={app:100,modal:200,popover:300,overlay:400,max:9999};function io(e){return LC[e]}var om=Object.getOwnPropertySymbols,FC=Object.prototype.hasOwnProperty,AC=Object.prototype.propertyIsEnumerable,VC=(e,t)=>{var r={};for(var n in e)FC.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&om)for(var n of om(e))t.indexOf(n)<0&&AC.call(e,n)&&(r[n]=e[n]);return r};function lu(e){const t=e,{m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:u,px:c,py:f,pt:d,pb:g,pl:y,pr:w}=t,v=VC(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr"]),m={m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:u,px:c,py:f,pt:d,pb:g,pl:y,pr:w};return Object.keys(m).forEach(h=>{m[h]===void 0&&delete m[h]}),{systemStyles:m,rest:v}}function HC(e,t){const r=p.exports.useRef();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map((n,o)=>n===t[o]).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}const BC=L1({key:"mantine",prepend:!0});function WC(){return jC()||BC}var UC=Object.defineProperty,im=Object.getOwnPropertySymbols,GC=Object.prototype.hasOwnProperty,YC=Object.prototype.propertyIsEnumerable,lm=(e,t,r)=>t in e?UC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XC=(e,t)=>{for(var r in t||(t={}))GC.call(t,r)&&lm(e,r,t[r]);if(im)for(var r of im(t))YC.call(t,r)&&lm(e,r,t[r]);return e};const rc="ref";function qC(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(!(rc in r))return{args:e,ref:t};t=r[rc];const n=XC({},r);return delete n[rc],{args:[n],ref:t}}const{cssFactory:KC}=(()=>{function e(r,n,o){const i=[],l=oC(r,i,o);return i.length<2?o:l+n(i)}function t(r){const{cache:n}=r,o=(...l)=>{const{ref:a,args:s}=qC(l),u=U1(s,n.registered);return B1(n,u,!1),`${n.key}-${u.name}${a===void 0?"":` ${a}`}`};return{css:o,cx:(...l)=>e(n.registered,o,O1(l))}}return{cssFactory:t}})();function K1(){const e=WC();return HC(()=>KC({cache:e}),[e])}function QC({cx:e,classes:t,context:r,classNames:n,name:o}){const i=r.reduce((l,a)=>(Object.keys(a.classNames).forEach(s=>{typeof l[s]!="string"?l[s]=`${a.classNames[s]}`:l[s]=`${l[s]} ${a.classNames[s]}`}),l),{});return Object.keys(t).reduce((l,a)=>(l[a]=e(t[a],i[a],n!=null&&n[a],Array.isArray(o)?o.filter(Boolean).map(s=>`mantine-${s}-${a}`).join(" "):o?`mantine-${o}-${a}`:null),l),{})}var ZC=Object.defineProperty,am=Object.getOwnPropertySymbols,JC=Object.prototype.hasOwnProperty,e2=Object.prototype.propertyIsEnumerable,sm=(e,t,r)=>t in e?ZC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nc=(e,t)=>{for(var r in t||(t={}))JC.call(t,r)&&sm(e,r,t[r]);if(am)for(var r of am(t))e2.call(t,r)&&sm(e,r,t[r]);return e};function t2(e){return`__mantine-ref-${e||""}`}function um(e,t,r){const n=o=>typeof o=="function"?o(t,r||{}):o||{};return Array.isArray(e)?e.map(o=>n(o.styles)).reduce((o,i)=>(Object.keys(i).forEach(l=>{o[l]?o[l]=nc(nc({},o[l]),i[l]):o[l]=nc({},i[l])}),o),{}):n(e)}function Q(e){const t=typeof e=="function"?e:()=>e;function r(n,o){const i=st(),l=MC(o?.name),{css:a,cx:s}=K1(),u=t(i,n,t2),c=um(o?.styles,i,n),f=um(l,i,n),d=Object.fromEntries(Object.keys(u).map(g=>{const y=s({[a(u[g])]:!o?.unstyled},a(f[g]),a(c[g]));return[g,y]}));return{classes:QC({cx:s,classes:d,context:l,classNames:o?.classNames,name:o?.name}),cx:s,theme:i}}return r}var r2=Object.defineProperty,n2=Object.defineProperties,o2=Object.getOwnPropertyDescriptors,cm=Object.getOwnPropertySymbols,i2=Object.prototype.hasOwnProperty,l2=Object.prototype.propertyIsEnumerable,fm=(e,t,r)=>t in e?r2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zo=(e,t)=>{for(var r in t||(t={}))i2.call(t,r)&&fm(e,r,t[r]);if(cm)for(var r of cm(t))l2.call(t,r)&&fm(e,r,t[r]);return e},Do=(e,t)=>n2(e,o2(t));const To={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(10px)"},transitionProperty:"transform, opacity"},pl={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:Do(zo({},To),{common:{transformOrigin:"center center"}}),"pop-bottom-left":Do(zo({},To),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":Do(zo({},To),{common:{transformOrigin:"bottom right"}}),"pop-top-left":Do(zo({},To),{common:{transformOrigin:"top left"}}),"pop-top-right":Do(zo({},To),{common:{transformOrigin:"top right"}})},dm=["mousedown","touchstart"];function a2(e,t,r){const n=p.exports.useRef();return p.exports.useEffect(()=>{const o=i=>{const{target:l}=i??{};if(Array.isArray(r)){const a=l?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(l);r.every(u=>!!u&&!u.contains(l))&&!a&&e()}else n.current&&!n.current.contains(l)&&e()};return(t||dm).forEach(i=>document.addEventListener(i,o)),()=>{(t||dm).forEach(i=>document.removeEventListener(i,o))}},[n,e,r]),n}function s2(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function u2(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function c2(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[n,o]=p.exports.useState(r?!1:u2(e,t)),i=p.exports.useRef();return p.exports.useEffect(()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),s2(i.current,l=>o(l.matches))},[e]),n}function oc(e,t,r){return Math.min(Math.max(e,t),r)}const Q1=typeof document<"u"?p.exports.useLayoutEffect:p.exports.useEffect;function kr(e,t){const r=p.exports.useRef(!1);p.exports.useEffect(()=>{r.current?e():r.current=!0},t)}function Z1({opened:e,shouldReturnFocus:t=!0}){const r=p.exports.useRef(),n=()=>{var o;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((o=r.current)==null||o.focus())};return kr(()=>{let o=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",i),e?r.current=document.activeElement:t&&(o=window.setTimeout(n,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",i)}},[e]),n}const f2=/input|select|textarea|button|object/,J1="a, input, select, textarea, button, object, [tabindex]";function d2(e){return e.style.display==="none"}function p2(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&r!==document.body;){if(d2(r))return!1;r=r.parentNode}return!0}function ew(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function hf(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(ew(e));return(f2.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&p2(e)}function tw(e){const t=ew(e);return(Number.isNaN(t)||t>=0)&&hf(e)}function g2(e){return Array.from(e.querySelectorAll(J1)).filter(tw)}function m2(e,t){const r=g2(e);if(!r.length){t.preventDefault();return}if(!(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement))return;t.preventDefault();const i=r[t.shiftKey?r.length-1:0];i&&i.focus()}function v2(e,t="body > :not(script)"){const r=Array.from(document.querySelectorAll(t)).map(n=>{if(n.contains(e))return;const o=n.getAttribute("aria-hidden");return(o===null||o==="false")&&n.setAttribute("aria-hidden","true"),{node:n,ariaHidden:o}});return()=>{r.forEach(n=>{!n||(n.ariaHidden===null?n.node.removeAttribute("aria-hidden"):n.node.setAttribute("aria-hidden",n.ariaHidden))})}}function rw(e=!0){const t=p.exports.useRef(),r=p.exports.useRef(null),n=p.exports.useCallback(o=>{if(!!e)if(r.current&&r.current(),o){const i=l=>{r.current=v2(l);let a=o.querySelector("[data-autofocus]");if(!a){const s=Array.from(o.querySelectorAll(J1));a=s.find(tw)||s.find(hf)||null,!a&&hf(o)&&(a=o)}a&&a.focus()};setTimeout(()=>{o.ownerDocument&&i(o)}),t.current=o}else t.current=null},[e]);return p.exports.useEffect(()=>{if(!e)return;const o=i=>{i.key==="Tab"&&t.current&&m2(t.current,i)};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}},[e]),n}const h2=()=>`mantine-${Math.random().toString(36).slice(2,11)}`,y2=C["useId".toString()]||(()=>{});function w2(){const[e,t]=p.exports.useState("");return Q1(()=>{t(h2())},[]),e}function _2(){const e=y2();return e?`mantine-${e.replace(/:/g,"")}`:""}function lo(e){return typeof e=="string"?e:_2()||w2()}function pm(e,t,r){p.exports.useEffect(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[])}function nw(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function S2(...e){return t=>{e.forEach(r=>nw(r,t))}}function dn(...e){return p.exports.useCallback(S2(...e),e)}function Ai({value:e,defaultValue:t,finalValue:r,onChange:n=()=>{}}){const[o,i]=p.exports.useState(t!==void 0?t:r),l=a=>{i(a),n?.(a)};return e!==void 0?[e,n,!0]:[o,l,!1]}function ir(e,t){const r=t-e+1;return Array.from({length:r},(n,o)=>o+e)}const gl="dots";function x2({total:e,siblings:t=1,boundaries:r=1,page:n,initialPage:o=1,onChange:i}){const[l,a]=Ai({value:n,onChange:i,defaultValue:o,finalValue:o}),s=y=>{y<=0?a(1):y>e?a(e):a(y)},u=()=>s(l+1),c=()=>s(l-1),f=()=>s(1),d=()=>s(e);return{range:p.exports.useMemo(()=>{if(t*2+3+r*2>=e)return ir(1,e);const w=Math.max(l-t,r),v=Math.min(l+t,e-r),m=w>r+2,h=ve<.5?2*e*e:-1+(4-2*e)*e,P2=({axis:e,target:t,parent:r,alignment:n,offset:o,isList:i})=>{if(!t||!r&&typeof document>"u")return 0;const l=!!r,s=(r||document.body).getBoundingClientRect(),u=t.getBoundingClientRect(),c=f=>u[f]-s[f];if(e==="y"){const f=c("top");if(f===0)return 0;if(n==="start"){const g=f-o;return g<=u.height*(i?0:1)||!i?g:0}const d=l?s.height:window.innerHeight;if(n==="end"){const g=f+o-d+u.height;return g>=-u.height*(i?0:1)||!i?g:0}return n==="center"?f-d/2+u.height/2:0}if(e==="x"){const f=c("left");if(f===0)return 0;if(n==="start"){const g=f-o;return g<=u.width||!i?g:0}const d=l?s.width:window.innerWidth;if(n==="end"){const g=f+o-d+u.width;return g>=-u.width||!i?g:0}return n==="center"?f-d/2+u.width/2:0}return 0},$2=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;const r=e==="y"?"scrollTop":"scrollLeft";if(t)return t[r];const{body:n,documentElement:o}=document;return n[r]+o[r]},O2=({axis:e,parent:t,distance:r})=>{if(!t&&typeof document>"u")return;const n=e==="y"?"scrollTop":"scrollLeft";if(t)t[n]=r;else{const{body:o,documentElement:i}=document;o[n]=r,i[n]=r}};function C2({duration:e=1250,axis:t="y",onScrollFinish:r,easing:n=b2,offset:o=0,cancelable:i=!0,isList:l=!1}={}){const a=p.exports.useRef(0),s=p.exports.useRef(0),u=p.exports.useRef(!1),c=p.exports.useRef(null),f=p.exports.useRef(null),d=ow(),g=()=>{a.current&&cancelAnimationFrame(a.current)},y=p.exports.useCallback(({alignment:v="start"}={})=>{var m;u.current=!1,a.current&&g();const h=(m=$2({parent:c.current,axis:t}))!=null?m:0,_=P2({parent:c.current,target:f.current,axis:t,alignment:v,offset:o,isList:l})-(c.current?0:h);function x(){s.current===0&&(s.current=performance.now());const b=performance.now()-s.current,P=d||e===0?1:b/e,E=h+_*n(P);O2({parent:c.current,axis:t,distance:E}),!u.current&&P<1?a.current=requestAnimationFrame(x):(typeof r=="function"&&r(),s.current=0,a.current=0,g())}x()},[c.current]),w=()=>{i&&(u.current=!0)};return pm("wheel",w,{passive:!0}),pm("touchmove",w,{passive:!0}),p.exports.useEffect(()=>g,[]),{scrollableRef:c,targetRef:f,scrollIntoView:y,cancel:g}}function E2(){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 R2=({disableBodyPadding:e})=>{const t=e?null:E2();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 k2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function I2(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}function N2(){const e=document.createElement("style");return e.type="text/css",e.setAttribute("mantine-scroll-lock",""),e}function z2(e,t={disableBodyPadding:!1}){const[r,n]=p.exports.useState(e||!1),o=p.exports.useRef(0),{disableBodyPadding:i}=t,l=p.exports.useRef(null),a=()=>{o.current=window.scrollY;const u=R2({disableBodyPadding:i}),c=N2();k2(c,u),I2(c),l.current=c},s=()=>{!l?.current||(l.current.parentNode.removeChild(l.current),l.current=null)};return p.exports.useEffect(()=>(r?a():s(),s),[r]),p.exports.useEffect(()=>{e!==void 0&&n(e)},[e]),p.exports.useEffect(()=>{e===void 0&&typeof window<"u"&&window.document.body.style.overflow==="hidden"&&n(!0)},[n]),[r,n]}function D2(){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 T2(){return typeof window<"u"?D2():"undetermined"}function Hl(){return`mantine-${Math.random().toString(36).slice(2,11)}`}const gm={mt:"marginTop",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",pt:"paddingTop",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight"},M2=["-xs","-sm","-md","-lg","-xl"];function Ar(e){return typeof e=="string"||typeof e=="number"}function Vr(e,t){return M2.includes(e)?t.fn.size({size:e.replace("-",""),sizes:t.spacing})*-1:t.fn.size({size:e,sizes:t.spacing})}function mm(e,t){const r={};if(Ar(e.p)){const n=Vr(e.p,t);r.padding=n}if(Ar(e.m)){const n=Vr(e.m,t);r.margin=n}if(Ar(e.py)){const n=Vr(e.py,t);r.paddingTop=n,r.paddingBottom=n}if(Ar(e.px)){const n=Vr(e.px,t);r.paddingLeft=n,r.paddingRight=n}if(Ar(e.my)){const n=Vr(e.my,t);r.marginTop=n,r.marginBottom=n}if(Ar(e.mx)){const n=Vr(e.mx,t);r.marginLeft=n,r.marginRight=n}return Object.keys(gm).forEach(n=>{Ar(e[n])&&(r[gm[n]]=t.fn.size({size:Vr(e[n],t),sizes:t.spacing}))}),r}function vm(e,t){return typeof e=="function"?e(t):e}function j2(e,t,r){const n=st(),{css:o,cx:i}=K1();return Array.isArray(e)?i(r,o(mm(t,n)),e.map(l=>o(vm(l,n)))):i(r,o(vm(e,n)),o(mm(t,n)))}var L2=Object.defineProperty,ha=Object.getOwnPropertySymbols,iw=Object.prototype.hasOwnProperty,lw=Object.prototype.propertyIsEnumerable,hm=(e,t,r)=>t in e?L2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F2=(e,t)=>{for(var r in t||(t={}))iw.call(t,r)&&hm(e,r,t[r]);if(ha)for(var r of ha(t))lw.call(t,r)&&hm(e,r,t[r]);return e},A2=(e,t)=>{var r={};for(var n in e)iw.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&&lw.call(e,n)&&(r[n]=e[n]);return r};const aw=p.exports.forwardRef((e,t)=>{var r=e,{className:n,component:o,style:i,sx:l}=r,a=A2(r,["className","component","style","sx"]);const{systemStyles:s,rest:u}=lu(a);return S(o||"div",{...F2({ref:t,className:j2(l,s,n),style:i},u)})});aw.displayName="@mantine/core/Box";const X=aw;var V2=Object.defineProperty,H2=Object.defineProperties,B2=Object.getOwnPropertyDescriptors,ym=Object.getOwnPropertySymbols,W2=Object.prototype.hasOwnProperty,U2=Object.prototype.propertyIsEnumerable,wm=(e,t,r)=>t in e?V2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_m=(e,t)=>{for(var r in t||(t={}))W2.call(t,r)&&wm(e,r,t[r]);if(ym)for(var r of ym(t))U2.call(t,r)&&wm(e,r,t[r]);return e},G2=(e,t)=>H2(e,B2(t)),Y2=Q(e=>({root:G2(_m(_m({},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"})})),X2=Y2,q2=Object.defineProperty,ya=Object.getOwnPropertySymbols,sw=Object.prototype.hasOwnProperty,uw=Object.prototype.propertyIsEnumerable,Sm=(e,t,r)=>t in e?q2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K2=(e,t)=>{for(var r in t||(t={}))sw.call(t,r)&&Sm(e,r,t[r]);if(ya)for(var r of ya(t))uw.call(t,r)&&Sm(e,r,t[r]);return e},Q2=(e,t)=>{var r={};for(var n in e)sw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ya)for(var n of ya(e))t.indexOf(n)<0&&uw.call(e,n)&&(r[n]=e[n]);return r};const cw=p.exports.forwardRef((e,t)=>{const r=ee("UnstyledButton",{},e),{className:n,component:o="button",unstyled:i}=r,l=Q2(r,["className","component","unstyled"]),{classes:a,cx:s}=X2(null,{name:"UnstyledButton",unstyled:i});return S(X,{...K2({component:o,ref:t,className:s(a.root,n),type:o==="button"?"button":void 0},l)})});cw.displayName="@mantine/core/UnstyledButton";const au=cw;var Z2=Object.defineProperty,J2=Object.defineProperties,eE=Object.getOwnPropertyDescriptors,xm=Object.getOwnPropertySymbols,tE=Object.prototype.hasOwnProperty,rE=Object.prototype.propertyIsEnumerable,bm=(e,t,r)=>t in e?Z2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fw=(e,t)=>{for(var r in t||(t={}))tE.call(t,r)&&bm(e,r,t[r]);if(xm)for(var r of xm(t))rE.call(t,r)&&bm(e,r,t[r]);return e},nE=(e,t)=>J2(e,eE(t));const Uo={xs:18,sm:22,md:28,lg:34,xl:44};function oE({variant:e,theme:t,color:r}){if(e==="transparent")return{border:"1px solid transparent",color:t.fn.variant({variant:"subtle",color:r}).color,backgroundColor:"transparent"};const n=t.fn.variant({color:r,variant:e});return fw({backgroundColor:n.background,color:n.color,border:`1px solid ${n.border}`},t.fn.hover({backgroundColor:n.hover}))}var iE=Q((e,{color:t,size:r,radius:n,variant:o})=>({root:nE(fw({},oE({variant:o,theme:e,color:t})),{position:"relative",height:e.fn.size({size:r,sizes:Uo}),minHeight:e.fn.size({size:r,sizes:Uo}),width:e.fn.size({size:r,sizes:Uo}),minWidth:e.fn.size({size:r,sizes:Uo}),borderRadius:e.fn.radius(n),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center","&:active":e.activeStyles,"&[data-disabled]":{color:e.colors.gray[e.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),borderColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),"&: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"}}})})),lE=iE,aE=Object.defineProperty,wa=Object.getOwnPropertySymbols,dw=Object.prototype.hasOwnProperty,pw=Object.prototype.propertyIsEnumerable,Pm=(e,t,r)=>t in e?aE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sE=(e,t)=>{for(var r in t||(t={}))dw.call(t,r)&&Pm(e,r,t[r]);if(wa)for(var r of wa(t))pw.call(t,r)&&Pm(e,r,t[r]);return e},uE=(e,t)=>{var r={};for(var n in e)dw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&wa)for(var n of wa(e))t.indexOf(n)<0&&pw.call(e,n)&&(r[n]=e[n]);return r};function cE(e){var t=e,{size:r,color:n}=t,o=uE(t,["size","color"]);return C.createElement("svg",sE({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,width:`${r}px`},o),C.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},C.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"}),C.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"})),C.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},C.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"}),C.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"})),C.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},C.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),C.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},C.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"}),C.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"})),C.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},C.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"}),C.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 fE=Object.defineProperty,_a=Object.getOwnPropertySymbols,gw=Object.prototype.hasOwnProperty,mw=Object.prototype.propertyIsEnumerable,$m=(e,t,r)=>t in e?fE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dE=(e,t)=>{for(var r in t||(t={}))gw.call(t,r)&&$m(e,r,t[r]);if(_a)for(var r of _a(t))mw.call(t,r)&&$m(e,r,t[r]);return e},pE=(e,t)=>{var r={};for(var n in e)gw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_a)for(var n of _a(e))t.indexOf(n)<0&&mw.call(e,n)&&(r[n]=e[n]);return r};function gE(e){var t=e,{size:r,color:n}=t,o=pE(t,["size","color"]);return C.createElement("svg",dE({width:`${r}px`,height:`${r}px`,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n},o),C.createElement("g",{fill:"none",fillRule:"evenodd"},C.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},C.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),C.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},C.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var mE=Object.defineProperty,Sa=Object.getOwnPropertySymbols,vw=Object.prototype.hasOwnProperty,hw=Object.prototype.propertyIsEnumerable,Om=(e,t,r)=>t in e?mE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vE=(e,t)=>{for(var r in t||(t={}))vw.call(t,r)&&Om(e,r,t[r]);if(Sa)for(var r of Sa(t))hw.call(t,r)&&Om(e,r,t[r]);return e},hE=(e,t)=>{var r={};for(var n in e)vw.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&&hw.call(e,n)&&(r[n]=e[n]);return r};function yE(e){var t=e,{size:r,color:n}=t,o=hE(t,["size","color"]);return C.createElement("svg",vE({width:`${r}px`,height:`${r/4}px`,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n},o),C.createElement("circle",{cx:"15",cy:"15",r:"15"},C.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),C.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},C.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),C.createElement("circle",{cx:"105",cy:"15",r:"15"},C.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var wE=Object.defineProperty,xa=Object.getOwnPropertySymbols,yw=Object.prototype.hasOwnProperty,ww=Object.prototype.propertyIsEnumerable,Cm=(e,t,r)=>t in e?wE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_E=(e,t)=>{for(var r in t||(t={}))yw.call(t,r)&&Cm(e,r,t[r]);if(xa)for(var r of xa(t))ww.call(t,r)&&Cm(e,r,t[r]);return e},SE=(e,t)=>{var r={};for(var n in e)yw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xa)for(var n of xa(e))t.indexOf(n)<0&&ww.call(e,n)&&(r[n]=e[n]);return r};const ic={bars:cE,oval:gE,dots:yE},xE={xs:18,sm:22,md:36,lg:44,xl:58},bE={size:"md"};function Kd(e){const t=ee("Loader",bE,e),{size:r,color:n,variant:o}=t,i=SE(t,["size","color","variant"]),l=st(),a=o in ic?o:l.loader;return C.createElement(X,_E({role:"presentation",component:ic[a]||ic.bars,size:l.fn.size({size:r,sizes:xE}),color:l.fn.variant({variant:"filled",primaryFallback:!1,color:n||l.primaryColor}).background},i))}Kd.displayName="@mantine/core/Loader";var PE=Object.defineProperty,ba=Object.getOwnPropertySymbols,_w=Object.prototype.hasOwnProperty,Sw=Object.prototype.propertyIsEnumerable,Em=(e,t,r)=>t in e?PE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rm=(e,t)=>{for(var r in t||(t={}))_w.call(t,r)&&Em(e,r,t[r]);if(ba)for(var r of ba(t))Sw.call(t,r)&&Em(e,r,t[r]);return e},$E=(e,t)=>{var r={};for(var n in e)_w.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ba)for(var n of ba(e))t.indexOf(n)<0&&Sw.call(e,n)&&(r[n]=e[n]);return r};const OE={color:"gray",size:"md",variant:"subtle",loading:!1},xw=p.exports.forwardRef((e,t)=>{const r=ee("ActionIcon",OE,e),{className:n,color:o,children:i,radius:l,size:a,variant:s,disabled:u,loaderProps:c,loading:f,unstyled:d}=r,g=$E(r,["className","color","children","radius","size","variant","disabled","loaderProps","loading","unstyled"]),{classes:y,cx:w,theme:v}=lE({size:a,radius:l,color:o,variant:s},{name:"ActionIcon",unstyled:d}),m=v.fn.variant({color:o,variant:"light"}),h=S(Kd,{...Rm({color:m.color,size:v.fn.size({size:a,sizes:Uo})-12},c)});return S(au,{...Rm({className:w(y.root,n),ref:t,disabled:u||f,"data-disabled":u||void 0,"data-loading":f||void 0,unstyled:d},g),children:f?h:i})});xw.displayName="@mantine/core/ActionIcon";const Ot=xw;function bw(e){const{children:t,target:r,className:n}=ee("Portal",{},e),o=st(),[i,l]=p.exports.useState(!1),a=p.exports.useRef();return Q1(()=>(l(!0),a.current=r?typeof r=="string"?document.querySelector(r):r:document.createElement("div"),r||document.body.appendChild(a.current),()=>{!r&&document.body.removeChild(a.current)}),[r]),i?ki.exports.createPortal(S("div",{className:n,dir:o.dir,children:t}),a.current):null}bw.displayName="@mantine/core/Portal";var CE=Object.defineProperty,Pa=Object.getOwnPropertySymbols,Pw=Object.prototype.hasOwnProperty,$w=Object.prototype.propertyIsEnumerable,km=(e,t,r)=>t in e?CE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,EE=(e,t)=>{for(var r in t||(t={}))Pw.call(t,r)&&km(e,r,t[r]);if(Pa)for(var r of Pa(t))$w.call(t,r)&&km(e,r,t[r]);return e},RE=(e,t)=>{var r={};for(var n in e)Pw.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&&$w.call(e,n)&&(r[n]=e[n]);return r};function Vi(e){var t=e,{withinPortal:r=!0,children:n}=t,o=RE(t,["withinPortal","children"]);return r?C.createElement(bw,EE({},o),n):C.createElement(C.Fragment,null,n)}Vi.displayName="@mantine/core/OptionalPortal";var kE=Object.defineProperty,Im=Object.getOwnPropertySymbols,IE=Object.prototype.hasOwnProperty,NE=Object.prototype.propertyIsEnumerable,Nm=(e,t,r)=>t in e?kE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zE=(e,t)=>{for(var r in t||(t={}))IE.call(t,r)&&Nm(e,r,t[r]);if(Im)for(var r of Im(t))NE.call(t,r)&&Nm(e,r,t[r]);return e};function Ow(e){return C.createElement("svg",zE({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.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"}))}Ow.displayName="@mantine/core/CloseIcon";var DE=Object.defineProperty,$a=Object.getOwnPropertySymbols,Cw=Object.prototype.hasOwnProperty,Ew=Object.prototype.propertyIsEnumerable,zm=(e,t,r)=>t in e?DE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TE=(e,t)=>{for(var r in t||(t={}))Cw.call(t,r)&&zm(e,r,t[r]);if($a)for(var r of $a(t))Ew.call(t,r)&&zm(e,r,t[r]);return e},ME=(e,t)=>{var r={};for(var n in e)Cw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$a)for(var n of $a(e))t.indexOf(n)<0&&Ew.call(e,n)&&(r[n]=e[n]);return r};const jE={xs:12,sm:14,md:16,lg:20,xl:24},LE={size:"md"},su=p.exports.forwardRef((e,t)=>{const r=ee("CloseButton",LE,e),{iconSize:n,size:o="md"}=r,i=ME(r,["iconSize","size"]),l=st(),a=n||l.fn.size({size:o,sizes:jE});return S(Ot,{...TE({size:o,ref:t},i),children:S(Ow,{width:a,height:a})})});su.displayName="@mantine/core/CloseButton";var FE=Object.defineProperty,AE=Object.defineProperties,VE=Object.getOwnPropertyDescriptors,Dm=Object.getOwnPropertySymbols,HE=Object.prototype.hasOwnProperty,BE=Object.prototype.propertyIsEnumerable,Tm=(e,t,r)=>t in e?FE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ml=(e,t)=>{for(var r in t||(t={}))HE.call(t,r)&&Tm(e,r,t[r]);if(Dm)for(var r of Dm(t))BE.call(t,r)&&Tm(e,r,t[r]);return e},WE=(e,t)=>AE(e,VE(t));function UE({underline:e,strikethrough:t}){const r=[];return e&&r.push("underline"),t&&r.push("line-through"),r.length>0?r.join(" "):"none"}function GE({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 YE(e){return typeof e=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}var XE=Q((e,{color:t,variant:r,size:n,lineClamp:o,inline:i,inherit:l,underline:a,gradient:s,weight:u,transform:c,align:f,strikethrough:d,italic:g})=>{const y=e.fn.variant({variant:"gradient",gradient:s});return{root:ml(WE(ml(ml(ml({},e.fn.fontStyles()),e.fn.focusStyles()),YE(o)),{color:GE({color:t,theme:e,variant:r}),fontFamily:l?"inherit":e.fontFamily,fontSize:l||n===void 0?"inherit":e.fn.size({size:n,sizes:e.fontSizes}),lineHeight:l?"inherit":i?1:e.lineHeight,textDecoration:UE({underline:a,strikethrough:d}),WebkitTapHighlightColor:"transparent",fontWeight:l?"inherit":u,textTransform:c,textAlign:f,fontStyle:g?"italic":void 0}),e.fn.hover(r==="link"&&a===void 0?{textDecoration:"underline"}:void 0)),gradient:{backgroundImage:y.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}}),qE=XE,KE=Object.defineProperty,Oa=Object.getOwnPropertySymbols,Rw=Object.prototype.hasOwnProperty,kw=Object.prototype.propertyIsEnumerable,Mm=(e,t,r)=>t in e?KE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QE=(e,t)=>{for(var r in t||(t={}))Rw.call(t,r)&&Mm(e,r,t[r]);if(Oa)for(var r of Oa(t))kw.call(t,r)&&Mm(e,r,t[r]);return e},ZE=(e,t)=>{var r={};for(var n in e)Rw.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&&kw.call(e,n)&&(r[n]=e[n]);return r};const JE={variant:"text"},Iw=p.exports.forwardRef((e,t)=>{const r=ee("Text",JE,e),{className:n,size:o,weight:i,transform:l,color:a,align:s,variant:u,lineClamp:c,gradient:f,inline:d,inherit:g,underline:y,strikethrough:w,italic:v,classNames:m,styles:h,unstyled:_,span:x}=r,$=ZE(r,["className","size","weight","transform","color","align","variant","lineClamp","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span"]),{classes:b,cx:P}=qE({variant:u,color:a,size:o,lineClamp:c,inline:d,inherit:g,underline:y,strikethrough:w,italic:v,weight:i,transform:l,align:s,gradient:f},{unstyled:_,name:"Text"});return S(X,{...QE({ref:t,className:P(b.root,{[b.gradient]:u==="gradient"},n),component:x?"span":"div"},$)})});Iw.displayName="@mantine/core/Text";const vt=Iw,vl={xs:1,sm:2,md:3,lg:4,xl:5};function hl(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 eR=Q((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:vl})}px ${r} ${hl(e,n)}`,marginRight:e.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${e.fn.size({size:t,sizes:vl})}px ${r} ${hl(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:vl}),borderTopColor:hl(e,n),borderTopStyle:r,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:e.fn.size({size:t,sizes:vl}),borderLeftColor:hl(e,n),borderLeftStyle:r}})),tR=eR,rR=Object.defineProperty,nR=Object.defineProperties,oR=Object.getOwnPropertyDescriptors,Ca=Object.getOwnPropertySymbols,Nw=Object.prototype.hasOwnProperty,zw=Object.prototype.propertyIsEnumerable,jm=(e,t,r)=>t in e?rR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lm=(e,t)=>{for(var r in t||(t={}))Nw.call(t,r)&&jm(e,r,t[r]);if(Ca)for(var r of Ca(t))zw.call(t,r)&&jm(e,r,t[r]);return e},iR=(e,t)=>nR(e,oR(t)),lR=(e,t)=>{var r={};for(var n in e)Nw.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&&zw.call(e,n)&&(r[n]=e[n]);return r};const aR={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},yf=p.exports.forwardRef((e,t)=>{const r=ee("Divider",aR,e),{className:n,color:o,orientation:i,size:l,label:a,labelPosition:s,labelProps:u,variant:c,styles:f,classNames:d,unstyled:g}=r,y=lR(r,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:w,cx:v}=tR({color:o,size:l,variant:c},{classNames:d,styles:f,unstyled:g,name:"Divider"}),m=i==="vertical",h=i==="horizontal",_=!!a&&h,x=!u?.color;return S(X,{...Lm({ref:t,className:v(w.root,{[w.vertical]:m,[w.horizontal]:h,[w.withLabel]:_},n),role:"separator"},y),children:_&&S(vt,{...iR(Lm({},u),{size:u?.size||"xs",sx:{marginTop:2},className:v(w.label,w[s],{[w.labelDefaultStyles]:x})}),children:a})})});yf.displayName="@mantine/core/Divider";var sR=Object.defineProperty,Fm=Object.getOwnPropertySymbols,uR=Object.prototype.hasOwnProperty,cR=Object.prototype.propertyIsEnumerable,Am=(e,t,r)=>t in e?sR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fR=(e,t)=>{for(var r in t||(t={}))uR.call(t,r)&&Am(e,r,t[r]);if(Fm)for(var r of Fm(t))cR.call(t,r)&&Am(e,r,t[r]);return e},dR=Q((e,{size:t})=>({item:{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.radius.sm,"&[data-hovered]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[1]},"&[data-selected]":fR({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]}})),pR=dR,gR=Object.defineProperty,Vm=Object.getOwnPropertySymbols,mR=Object.prototype.hasOwnProperty,vR=Object.prototype.propertyIsEnumerable,Hm=(e,t,r)=>t in e?gR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hR=(e,t)=>{for(var r in t||(t={}))mR.call(t,r)&&Hm(e,r,t[r]);if(Vm)for(var r of Vm(t))vR.call(t,r)&&Hm(e,r,t[r]);return e};function Dw({data:e,hovered:t,classNames:r,styles:n,isItemSelected:o,uuid:i,__staticSelector:l,onItemHover:a,onItemSelect:s,itemsRefs:u,itemComponent:c,size:f,nothingFound:d,creatable:g,createLabel:y,unstyled:w}){const{classes:v}=pR({size:f},{classNames:r,styles:n,unstyled:w,name:l}),m=[],h=[];let _=null;const x=(b,P)=>{const E=typeof o=="function"?o(b.value):!1;return C.createElement(c,hR({key:b.value,className:v.item,"data-disabled":b.disabled||void 0,"data-hovered":!b.disabled&&t===P||void 0,"data-selected":!b.disabled&&E||void 0,onMouseEnter:()=>a(P),id:`${i}-${P}`,role:"option","data-ignore-outside-clicks":!0,tabIndex:-1,"aria-selected":t===P,ref:O=>{u&&u.current&&(u.current[b.value]=O)},onMouseDown:b.disabled?null:O=>{O.preventDefault(),s(b)},disabled:b.disabled},b))};let $=null;if(e.forEach((b,P)=>{b.creatable?_=P:b.group?($!==b.group&&($=b.group,h.push(C.createElement("div",{className:v.separator,key:`__mantine-divider-${P}`},C.createElement(yf,{classNames:{label:v.separatorLabel},label:b.group})))),h.push(x(b,P))):m.push(x(b,P))}),g){const b=e[_];m.push(C.createElement("div",{key:Hl(),className:v.item,"data-hovered":t===_||void 0,onMouseEnter:()=>a(_),onMouseDown:P=>{P.preventDefault(),s(b)},tabIndex:-1,ref:P=>{u&&u.current&&(u.current[b.value]=P)}},y))}return h.length>0&&m.length>0&&m.unshift(C.createElement("div",{className:v.separator,key:"empty-group-separator"},C.createElement(yf,null))),h.length>0||m.length>0?C.createElement(C.Fragment,null,h,m):C.createElement(vt,{size:f,unstyled:w,className:v.nothingFound},d)}Dw.displayName="@mantine/core/SelectItems";var yR=Object.defineProperty,Ea=Object.getOwnPropertySymbols,Tw=Object.prototype.hasOwnProperty,Mw=Object.prototype.propertyIsEnumerable,Bm=(e,t,r)=>t in e?yR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wR=(e,t)=>{for(var r in t||(t={}))Tw.call(t,r)&&Bm(e,r,t[r]);if(Ea)for(var r of Ea(t))Mw.call(t,r)&&Bm(e,r,t[r]);return e},_R=(e,t)=>{var r={};for(var n in e)Tw.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&&Mw.call(e,n)&&(r[n]=e[n]);return r};const jw=p.exports.forwardRef((e,t)=>{var r=e,{label:n,value:o}=r,i=_R(r,["label","value"]);return S("div",{...wR({ref:t},i),children:n||o})});jw.displayName="@mantine/core/DefaultItem";function SR(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Lw(...e){return t=>e.forEach(r=>SR(r,t))}function pn(...e){return p.exports.useCallback(Lw(...e),e)}const Fw=p.exports.forwardRef((e,t)=>{const{children:r,...n}=e,o=p.exports.Children.toArray(r),i=o.find(bR);if(i){const l=i.props.children,a=o.map(s=>s===i?p.exports.Children.count(l)>1?p.exports.Children.only(null):p.exports.isValidElement(l)?l.props.children:null:s);return p.exports.createElement(wf,ge({},n,{ref:t}),p.exports.isValidElement(l)?p.exports.cloneElement(l,void 0,a):null)}return p.exports.createElement(wf,ge({},n,{ref:t}),r)});Fw.displayName="Slot";const wf=p.exports.forwardRef((e,t)=>{const{children:r,...n}=e;return p.exports.isValidElement(r)?p.exports.cloneElement(r,{...PR(n,r.props),ref:Lw(t,r.ref)}):p.exports.Children.count(r)>1?p.exports.Children.only(null):null});wf.displayName="SlotClone";const xR=({children:e})=>p.exports.createElement(p.exports.Fragment,null,e);function bR(e){return p.exports.isValidElement(e)&&e.type===xR}function PR(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?r[n]=(...a)=>{i?.(...a),o?.(...a)}:n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const $R=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Hi=$R.reduce((e,t)=>{const r=p.exports.forwardRef((n,o)=>{const{asChild:i,...l}=n,a=i?Fw:t;return p.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.exports.createElement(a,ge({},l,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),_f=Boolean(globalThis?.document)?p.exports.useLayoutEffect:()=>{};function OR(e,t){return p.exports.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const Bi=e=>{const{present:t,children:r}=e,n=CR(t),o=typeof r=="function"?r({present:n.isPresent}):p.exports.Children.only(r),i=pn(n.ref,o.ref);return typeof r=="function"||n.isPresent?p.exports.cloneElement(o,{ref:i}):null};Bi.displayName="Presence";function CR(e){const[t,r]=p.exports.useState(),n=p.exports.useRef({}),o=p.exports.useRef(e),i=p.exports.useRef("none"),l=e?"mounted":"unmounted",[a,s]=OR(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.exports.useEffect(()=>{const u=yl(n.current);i.current=a==="mounted"?u:"none"},[a]),_f(()=>{const u=n.current,c=o.current;if(c!==e){const d=i.current,g=yl(u);e?s("MOUNT"):g==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&d!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),_f(()=>{if(t){const u=f=>{const g=yl(n.current).includes(f.animationName);f.target===t&&g&&ki.exports.flushSync(()=>s("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=yl(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.exports.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function yl(e){return e?.animationName||"none"}function ER(e,t=[]){let r=[];function n(i,l){const a=p.exports.createContext(l),s=r.length;r=[...r,l];function u(f){const{scope:d,children:g,...y}=f,w=d?.[e][s]||a,v=p.exports.useMemo(()=>y,Object.values(y));return p.exports.createElement(w.Provider,{value:v},g)}function c(f,d){const g=d?.[e][s]||a,y=p.exports.useContext(g);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=r.map(l=>p.exports.createContext(l));return function(a){const s=a?.[e]||i;return p.exports.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return o.scopeName=e,[n,RR(o,...t)]}function RR(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=n.reduce((a,{useScope:s,scopeName:u})=>{const f=s(i)[`__scope${u}`];return{...a,...f}},{});return p.exports.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}function Gr(e){const t=p.exports.useRef(e);return p.exports.useEffect(()=>{t.current=e}),p.exports.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}const kR=p.exports.createContext(void 0);function IR(e){const t=p.exports.useContext(kR);return e||t||"ltr"}function NR(e,[t,r]){return Math.min(r,Math.max(t,e))}function en(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function zR(e,t){return p.exports.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const Aw="ScrollArea",[Vw,j7]=ER(Aw),[DR,wt]=Vw(Aw),TR=p.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...l}=e,[a,s]=p.exports.useState(null),[u,c]=p.exports.useState(null),[f,d]=p.exports.useState(null),[g,y]=p.exports.useState(null),[w,v]=p.exports.useState(null),[m,h]=p.exports.useState(0),[_,x]=p.exports.useState(0),[$,b]=p.exports.useState(!1),[P,E]=p.exports.useState(!1),O=pn(t,z=>s(z)),D=IR(o);return p.exports.createElement(DR,{scope:r,type:n,dir:D,scrollHideDelay:i,scrollArea:a,viewport:u,onViewportChange:c,content:f,onContentChange:d,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:$,onScrollbarXEnabledChange:b,scrollbarY:w,onScrollbarYChange:v,scrollbarYEnabled:P,onScrollbarYEnabledChange:E,onCornerWidthChange:h,onCornerHeightChange:x},p.exports.createElement(Hi.div,ge({dir:D},l,{ref:O,style:{position:"relative",["--radix-scroll-area-corner-width"]:m+"px",["--radix-scroll-area-corner-height"]:_+"px",...e.style}})))}),MR="ScrollAreaViewport",jR=p.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,...o}=e,i=wt(MR,r),l=p.exports.useRef(null),a=pn(t,l,i.onViewportChange);return p.exports.createElement(p.exports.Fragment,null,p.exports.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}"}}),p.exports.createElement(Hi.div,ge({"data-radix-scroll-area-viewport":""},o,{ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style}}),p.exports.createElement("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),tr="ScrollAreaScrollbar",LR=p.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=wt(tr,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=o,a=e.orientation==="horizontal";return p.exports.useEffect(()=>(a?i(!0):l(!0),()=>{a?i(!1):l(!1)}),[a,i,l]),o.type==="hover"?p.exports.createElement(FR,ge({},n,{ref:t,forceMount:r})):o.type==="scroll"?p.exports.createElement(AR,ge({},n,{ref:t,forceMount:r})):o.type==="auto"?p.exports.createElement(Hw,ge({},n,{ref:t,forceMount:r})):o.type==="always"?p.exports.createElement(Qd,ge({},n,{ref:t})):null}),FR=p.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=wt(tr,e.__scopeScrollArea),[i,l]=p.exports.useState(!1);return p.exports.useEffect(()=>{const a=o.scrollArea;let s=0;if(a){const u=()=>{window.clearTimeout(s),l(!0)},c=()=>{s=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),p.exports.createElement(Bi,{present:r||i},p.exports.createElement(Hw,ge({"data-state":i?"visible":"hidden"},n,{ref:t})))}),AR=p.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=wt(tr,e.__scopeScrollArea),i=e.orientation==="horizontal",l=cu(()=>s("SCROLL_END"),100),[a,s]=zR("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 p.exports.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,o.scrollHideDelay,s]),p.exports.useEffect(()=>{const u=o.viewport,c=i?"scrollLeft":"scrollTop";if(u){let f=u[c];const d=()=>{const g=u[c];f!==g&&(s("SCROLL"),l()),f=g};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[o.viewport,i,s,l]),p.exports.createElement(Bi,{present:r||a!=="hidden"},p.exports.createElement(Qd,ge({"data-state":a==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:en(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:en(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),Hw=p.exports.forwardRef((e,t)=>{const r=wt(tr,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,l]=p.exports.useState(!1),a=e.orientation==="horizontal",s=cu(()=>{if(r.viewport){const u=r.viewport.offsetWidth{const{orientation:r="vertical",...n}=e,o=wt(tr,e.__scopeScrollArea),i=p.exports.useRef(null),l=p.exports.useRef(0),[a,s]=p.exports.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Gw(a.viewport,a.content),c={...n,sizes:a,onSizesChange:s,hasThumb:Boolean(u>0&&u<1),onThumbChange:d=>i.current=d,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:d=>l.current=d};function f(d,g){return XR(d,l.current,a,g)}return r==="horizontal"?p.exports.createElement(VR,ge({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollLeft,g=Wm(d,a,o.dir);i.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=f(d,o.dir))}})):r==="vertical"?p.exports.createElement(HR,ge({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollTop,g=Wm(d,a);i.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=f(d))}})):null}),VR=p.exports.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=wt(tr,e.__scopeScrollArea),[l,a]=p.exports.useState(),s=p.exports.useRef(null),u=pn(t,s,i.onScrollbarXChange);return p.exports.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),p.exports.createElement(Ww,ge({"data-orientation":"horizontal"},o,{ref:u,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:uu(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,f)=>{if(i.viewport){const d=i.viewport.scrollLeft+c.deltaX;e.onWheelScroll(d),Xw(d,f)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Ra(l.paddingLeft),paddingEnd:Ra(l.paddingRight)}})}}))}),HR=p.exports.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=wt(tr,e.__scopeScrollArea),[l,a]=p.exports.useState(),s=p.exports.useRef(null),u=pn(t,s,i.onScrollbarYChange);return p.exports.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),p.exports.createElement(Ww,ge({"data-orientation":"vertical"},o,{ref:u,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:uu(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,f)=>{if(i.viewport){const d=i.viewport.scrollTop+c.deltaY;e.onWheelScroll(d),Xw(d,f)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Ra(l.paddingTop),paddingEnd:Ra(l.paddingBottom)}})}}))}),[BR,Bw]=Vw(tr),Ww=p.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:f,...d}=e,g=wt(tr,r),[y,w]=p.exports.useState(null),v=pn(t,O=>w(O)),m=p.exports.useRef(null),h=p.exports.useRef(""),_=g.viewport,x=n.content-n.viewport,$=Gr(c),b=Gr(s),P=cu(f,10);function E(O){if(m.current){const D=O.clientX-m.current.left,z=O.clientY-m.current.top;u({x:D,y:z})}}return p.exports.useEffect(()=>{const O=D=>{const z=D.target;y?.contains(z)&&$(D,x)};return document.addEventListener("wheel",O,{passive:!1}),()=>document.removeEventListener("wheel",O,{passive:!1})},[_,y,x,$]),p.exports.useEffect(b,[n,b]),Xn(y,P),Xn(g.content,P),p.exports.createElement(BR,{scope:r,scrollbar:y,hasThumb:o,onThumbChange:Gr(i),onThumbPointerUp:Gr(l),onThumbPositionChange:b,onThumbPointerDown:Gr(a)},p.exports.createElement(Hi.div,ge({},d,{ref:v,style:{position:"absolute",...d.style},onPointerDown:en(e.onPointerDown,O=>{O.button===0&&(O.target.setPointerCapture(O.pointerId),m.current=y.getBoundingClientRect(),h.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E(O))}),onPointerMove:en(e.onPointerMove,E),onPointerUp:en(e.onPointerUp,O=>{O.target.releasePointerCapture(O.pointerId),document.body.style.webkitUserSelect=h.current,m.current=null})})))}),Sf="ScrollAreaThumb",WR=p.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Bw(Sf,e.__scopeScrollArea);return p.exports.createElement(Bi,{present:r||o.hasThumb},p.exports.createElement(UR,ge({ref:t},n)))}),UR=p.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,i=wt(Sf,r),l=Bw(Sf,r),{onThumbPositionChange:a}=l,s=pn(t,f=>l.onThumbChange(f)),u=p.exports.useRef(),c=cu(()=>{u.current&&(u.current(),u.current=void 0)},100);return p.exports.useEffect(()=>{const f=i.viewport;if(f){const d=()=>{if(c(),!u.current){const g=qR(f,a);u.current=g,a()}};return a(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[i.viewport,c,a]),p.exports.createElement(Hi.div,ge({"data-state":l.hasThumb?"visible":"hidden"},o,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:en(e.onPointerDownCapture,f=>{const g=f.target.getBoundingClientRect(),y=f.clientX-g.left,w=f.clientY-g.top;l.onThumbPointerDown({x:y,y:w})}),onPointerUp:en(e.onPointerUp,l.onThumbPointerUp)}))}),Uw="ScrollAreaCorner",GR=p.exports.forwardRef((e,t)=>{const r=wt(Uw,e.__scopeScrollArea),n=Boolean(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.exports.createElement(YR,ge({},e,{ref:t})):null}),YR=p.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=wt(Uw,r),[i,l]=p.exports.useState(0),[a,s]=p.exports.useState(0),u=Boolean(i&&a);return Xn(o.scrollbarX,()=>{var c;const f=((c=o.scrollbarX)===null||c===void 0?void 0:c.offsetHeight)||0;o.onCornerHeightChange(f),s(f)}),Xn(o.scrollbarY,()=>{var c;const f=((c=o.scrollbarY)===null||c===void 0?void 0:c.offsetWidth)||0;o.onCornerWidthChange(f),l(f)}),u?p.exports.createElement(Hi.div,ge({},n,{ref:t,style:{width:i,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Ra(e){return e?parseInt(e,10):0}function Gw(e,t){const r=e/t;return isNaN(r)?0:r}function uu(e){const t=Gw(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function XR(e,t,r,n="ltr"){const o=uu(r),i=o/2,l=t||i,a=o-l,s=r.scrollbar.paddingStart+l,u=r.scrollbar.size-r.scrollbar.paddingEnd-a,c=r.content-r.viewport,f=n==="ltr"?[0,c]:[c*-1,0];return Yw([s,u],f)(e)}function Wm(e,t,r="ltr"){const n=uu(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,a=i-n,s=r==="ltr"?[0,l]:[l*-1,0],u=NR(e,s);return Yw([0,l],[0,a])(u)}function Yw(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 Xw(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},l=r.left!==i.left,a=r.top!==i.top;(l||a)&&t(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function cu(e,t){const r=Gr(e),n=p.exports.useRef(0);return p.exports.useEffect(()=>()=>window.clearTimeout(n.current),[]),p.exports.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Xn(e,t){const r=Gr(t);_f(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}const KR=TR,QR=jR,Um=LR,Gm=WR,ZR=GR;var JR=Q((e,{scrollbarSize:t,offsetScrollbars:r,scrollbarHovered:n,hidden:o},i)=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:r?t:void 0},scrollbar:{display:o?"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],[`& .${i("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:i("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:o?"none":void 0,"&::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:o?"none":void 0}})),ek=JR,tk=Object.defineProperty,rk=Object.defineProperties,nk=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,qw=Object.prototype.hasOwnProperty,Kw=Object.prototype.propertyIsEnumerable,Ym=(e,t,r)=>t in e?tk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qw=(e,t)=>{for(var r in t||(t={}))qw.call(t,r)&&Ym(e,r,t[r]);if(ka)for(var r of ka(t))Kw.call(t,r)&&Ym(e,r,t[r]);return e},ok=(e,t)=>rk(e,nk(t)),Zw=(e,t)=>{var r={};for(var n in e)qw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ka)for(var n of ka(e))t.indexOf(n)<0&&Kw.call(e,n)&&(r[n]=e[n]);return r};const Jw={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},fu=p.exports.forwardRef((e,t)=>{const r=ee("ScrollArea",Jw,e),{children:n,className:o,classNames:i,styles:l,scrollbarSize:a,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:g,unstyled:y}=r,w=Zw(r,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled"]),[v,m]=p.exports.useState(!1),h=st(),{classes:_,cx:x}=ek({scrollbarSize:a,offsetScrollbars:f,scrollbarHovered:v,hidden:u==="never"},{name:"ScrollArea",classNames:i,styles:l,unstyled:y});return S(KR,{type:u==="never"?"always":u,scrollHideDelay:s,dir:c||h.dir,ref:t,asChild:!0,children:H(X,{...Qw({className:x(_.root,o)},w),children:[S(QR,{className:_.viewport,ref:d,onScroll:typeof g=="function"?({currentTarget:$})=>g({x:$.scrollLeft,y:$.scrollTop}):void 0,children:n}),S(Um,{orientation:"horizontal",className:_.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:S(Gm,{className:_.thumb})}),S(Um,{orientation:"vertical",className:_.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:S(Gm,{className:_.thumb})}),S(ZR,{className:_.corner})]})})}),e_=p.exports.forwardRef((e,t)=>{const r=ee("ScrollAreaAutosize",Jw,e),{maxHeight:n,children:o,classNames:i,styles:l,scrollbarSize:a,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:g,unstyled:y,sx:w}=r,v=Zw(r,["maxHeight","children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx"]);return C.createElement(X,ok(Qw({},v),{ref:t,sx:[{display:"flex",maxHeight:n},...xi(w)]}),C.createElement(X,{sx:{display:"flex",flexDirection:"column",flex:1}},C.createElement(fu,{classNames:i,styles:l,scrollHideDelay:s,scrollbarSize:a,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:g,unstyled:y},o)))});e_.displayName="@mantine/core/ScrollAreaAutosize";fu.displayName="@mantine/core/ScrollArea";fu.Autosize=e_;const ik=fu;var lk=Object.defineProperty,ak=Object.defineProperties,sk=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,t_=Object.prototype.hasOwnProperty,r_=Object.prototype.propertyIsEnumerable,Xm=(e,t,r)=>t in e?lk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qm=(e,t)=>{for(var r in t||(t={}))t_.call(t,r)&&Xm(e,r,t[r]);if(Ia)for(var r of Ia(t))r_.call(t,r)&&Xm(e,r,t[r]);return e},uk=(e,t)=>ak(e,sk(t)),ck=(e,t)=>{var r={};for(var n in e)t_.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&&r_.call(e,n)&&(r[n]=e[n]);return r};const Zd=p.exports.forwardRef((e,t)=>{var r=e,{style:n}=r,o=ck(r,["style"]);return S(ik,{...uk(qm({},o),{style:qm({width:"100%"},n),viewportRef:t}),children:o.children})});Zd.displayName="@mantine/core/SelectScrollArea";function ao(e){return e.split("-")[0]}function du(e){return e.split("-")[1]}function pu(e){return["top","bottom"].includes(ao(e))?"x":"y"}function n_(e){return e==="y"?"height":"width"}function Km(e,t,r){let{reference:n,floating:o}=e;const i=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2,a=pu(t),s=n_(a),u=n[s]/2-o[s]/2,c=ao(t),f=a==="x";let d;switch(c){case"top":d={x:i,y:n.y-o.height};break;case"bottom":d={x:i,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:l};break;case"left":d={x:n.x-o.width,y:l};break;default:d={x:n.x,y:n.y}}switch(du(t)){case"start":d[a]-=u*(r&&f?-1:1);break;case"end":d[a]+=u*(r&&f?-1:1);break}return d}const fk=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=await(l.isRTL==null?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:c}=Km(s,n,a),f=n,d={},g=0;for(let y=0;ymk[t])}function vk(e,t,r){r===void 0&&(r=!1);const n=du(e),o=pu(e),i=n_(o);let l=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=za(l)),{main:l,cross:za(l)}}const hk={start:"end",end:"start"};function Zm(e){return e.replace(/start|end/g,t=>hk[t])}function yk(e){const t=za(e);return[Zm(e),t,Zm(t)]}const o_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:o,rects:i,initialPlacement:l,platform:a,elements:s}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:g=!0,...y}=e,w=ao(n),m=f||(w===l||!g?[za(l)]:yk(l)),h=[l,...m],_=await Jd(t,y),x=[];let $=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&x.push(_[w]),c){const{main:O,cross:D}=vk(n,i,await(a.isRTL==null?void 0:a.isRTL(s.floating)));x.push(_[O],_[D])}if($=[...$,{placement:n,overflows:x}],!x.every(O=>O<=0)){var b,P;const O=((b=(P=o.flip)==null?void 0:P.index)!=null?b:0)+1,D=h[O];if(D)return{data:{index:O,overflows:$},reset:{placement:D}};let z="bottom";switch(d){case"bestFit":{var E;const T=(E=$.map(F=>[F,F.overflows.filter(G=>G>0).reduce((G,q)=>G+q,0)]).sort((F,G)=>F[1]-G[1])[0])==null?void 0:E[0].placement;T&&(z=T);break}case"initialPlacement":z=l;break}if(n!==z)return{reset:{placement:z}}}return{}}}};async function wk(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),l=ao(r),a=du(r),s=pu(r)==="x",u=["left","top"].includes(l)?-1:1,c=i&&s?-1:1,f=typeof t=="function"?t(e):t;let{mainAxis:d,crossAxis:g,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof y=="number"&&(g=a==="end"?y*-1:y),s?{x:g*c,y:d*u}:{x:d*u,y:g*c}}const i_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await wk(t,e);return{x:r+o.x,y:n+o.y,data:o}}}};function _k(e){return e==="x"?"y":"x"}const ep=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:v=>{let{x:m,y:h}=v;return{x:m,y:h}}},...s}=e,u={x:r,y:n},c=await Jd(t,s),f=pu(ao(o)),d=_k(f);let g=u[f],y=u[d];if(i){const v=f==="y"?"top":"left",m=f==="y"?"bottom":"right",h=g+c[v],_=g-c[m];g=Qm(h,g,_)}if(l){const v=d==="y"?"top":"left",m=d==="y"?"bottom":"right",h=y+c[v],_=y-c[m];y=Qm(h,y,_)}const w=a.fn({...t,[f]:g,[d]:y});return{...w,data:{x:w.x-r,y:w.y-n}}}}},Sk=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:l,...a}=e,s=await Jd(t,a),u=ao(r),c=du(r);let f,d;u==="top"||u==="bottom"?(f=u,d=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(d=u,f=c==="end"?"top":"bottom");const g=Wr(s.left,0),y=Wr(s.right,0),w=Wr(s.top,0),v=Wr(s.bottom,0),m={availableHeight:n.floating.height-(["left","right"].includes(r)?2*(w!==0||v!==0?w+v:Wr(s.top,s.bottom)):s[f]),availableWidth:n.floating.width-(["top","bottom"].includes(r)?2*(g!==0||y!==0?g+y:Wr(s.left,s.right)):s[d])},h=await o.getDimensions(i.floating);l?.({...t,...m});const _=await o.getDimensions(i.floating);return h.width!==_.width||h.height!==_.height?{reset:{rects:!0}}:{}}}};function l_(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function rr(e){if(e==null)return window;if(!l_(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wi(e){return rr(e).getComputedStyle(e)}function Zt(e){return l_(e)?"":e?(e.nodeName||"").toLowerCase():""}function a_(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Tt(e){return e instanceof rr(e).HTMLElement}function Ir(e){return e instanceof rr(e).Element}function xk(e){return e instanceof rr(e).Node}function tp(e){if(typeof ShadowRoot>"u")return!1;const t=rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gu(e){const{overflow:t,overflowX:r,overflowY:n}=Wi(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function bk(e){return["table","td","th"].includes(Zt(e))}function s_(e){const t=/firefox/i.test(a_()),r=Wi(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}function u_(){return!/^((?!chrome|android).)*safari/i.test(a_())}const Jm=Math.min,ii=Math.max,Da=Math.round;function Jt(e,t,r){var n,o,i,l;t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect();let s=1,u=1;t&&Tt(e)&&(s=e.offsetWidth>0&&Da(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Da(a.height)/e.offsetHeight||1);const c=Ir(e)?rr(e):window,f=!u_()&&r,d=(a.left+(f&&(n=(o=c.visualViewport)==null?void 0:o.offsetLeft)!=null?n:0))/s,g=(a.top+(f&&(i=(l=c.visualViewport)==null?void 0:l.offsetTop)!=null?i:0))/u,y=a.width/s,w=a.height/u;return{width:y,height:w,top:g,right:d+y,bottom:g+w,left:d,x:d,y:g}}function Tr(e){return((xk(e)?e.ownerDocument:e.document)||window.document).documentElement}function mu(e){return Ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function c_(e){return Jt(Tr(e)).left+mu(e).scrollLeft}function Pk(e){const t=Jt(e);return Da(t.width)!==e.offsetWidth||Da(t.height)!==e.offsetHeight}function $k(e,t,r){const n=Tt(t),o=Tr(t),i=Jt(e,n&&Pk(t),r==="fixed");let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&r!=="fixed")if((Zt(t)!=="body"||gu(o))&&(l=mu(t)),Tt(t)){const s=Jt(t,!0);a.x=s.x+t.clientLeft,a.y=s.y+t.clientTop}else o&&(a.x=c_(o));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function f_(e){return Zt(e)==="html"?e:e.assignedSlot||e.parentNode||(tp(e)?e.host:null)||Tr(e)}function ev(e){return!Tt(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function Ok(e){let t=f_(e);for(tp(t)&&(t=t.host);Tt(t)&&!["html","body"].includes(Zt(t));){if(s_(t))return t;t=t.parentNode}return null}function xf(e){const t=rr(e);let r=ev(e);for(;r&&bk(r)&&getComputedStyle(r).position==="static";)r=ev(r);return r&&(Zt(r)==="html"||Zt(r)==="body"&&getComputedStyle(r).position==="static"&&!s_(r))?t:r||Ok(e)||t}function tv(e){if(Tt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Jt(e);return{width:t.width,height:t.height}}function Ck(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Tt(r),i=Tr(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((o||!o&&n!=="fixed")&&((Zt(r)!=="body"||gu(i))&&(l=mu(r)),Tt(r))){const s=Jt(r,!0);a.x=s.x+r.clientLeft,a.y=s.y+r.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}}function Ek(e,t){const r=rr(e),n=Tr(e),o=r.visualViewport;let i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const u=u_();(u||!u&&t==="fixed")&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}function Rk(e){var t;const r=Tr(e),n=mu(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ii(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ii(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let a=-n.scrollLeft+c_(e);const s=-n.scrollTop;return Wi(o||r).direction==="rtl"&&(a+=ii(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}function d_(e){const t=f_(e);return["html","body","#document"].includes(Zt(t))?e.ownerDocument.body:Tt(t)&&gu(t)?t:d_(t)}function ln(e,t){var r;t===void 0&&(t=[]);const n=d_(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=rr(n),l=o?[i].concat(i.visualViewport||[],gu(n)?n:[]):n,a=t.concat(l);return o?a:a.concat(ln(l))}function kk(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&tp(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function Ik(e,t){const r=Jt(e,!1,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function rv(e,t,r){return t==="viewport"?Na(Ek(e,r)):Ir(t)?Ik(t,r):Na(Rk(Tr(e)))}function Nk(e){const t=ln(e),n=["absolute","fixed"].includes(Wi(e).position)&&Tt(e)?xf(e):e;return Ir(n)?t.filter(o=>Ir(o)&&kk(o,n)&&Zt(o)!=="body"):[]}function zk(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const l=[...r==="clippingAncestors"?Nk(t):[].concat(r),n],a=l[0],s=l.reduce((u,c)=>{const f=rv(t,c,o);return u.top=ii(f.top,u.top),u.right=Jm(f.right,u.right),u.bottom=Jm(f.bottom,u.bottom),u.left=ii(f.left,u.left),u},rv(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}const Dk={getClippingRect:zk,convertOffsetParentRelativeRectToViewportRelativeRect:Ck,isElement:Ir,getDimensions:tv,getOffsetParent:xf,getDocumentElement:Tr,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:$k(t,xf(r),n),floating:{...tv(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Wi(e).direction==="rtl"};function Tk(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=n,s=o&&!a,u=i&&!a,c=s||u?[...Ir(e)?ln(e):[],...ln(t)]:[];c.forEach(w=>{s&&w.addEventListener("scroll",r,{passive:!0}),u&&w.addEventListener("resize",r)});let f=null;if(l){let w=!0;f=new ResizeObserver(()=>{w||r(),w=!1}),Ir(e)&&!a&&f.observe(e),f.observe(t)}let d,g=a?Jt(e):null;a&&y();function y(){const w=Jt(e);g&&(w.x!==g.x||w.y!==g.y||w.width!==g.width||w.height!==g.height)&&r(),g=w,d=requestAnimationFrame(y)}return r(),()=>{var w;c.forEach(v=>{s&&v.removeEventListener("scroll",r),u&&v.removeEventListener("resize",r)}),(w=f)==null||w.disconnect(),f=null,a&&cancelAnimationFrame(d)}}const Mk=(e,t,r)=>fk(e,t,{platform:Dk,...r});var bf=typeof document<"u"?p.exports.useLayoutEffect:p.exports.useEffect;function Pf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Pf(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Pf(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function jk(e){const t=p.exports.useRef(e);return bf(()=>{t.current=e}),t}function Lk(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:o}=e===void 0?{}:e;const i=p.exports.useRef(null),l=p.exports.useRef(null),a=jk(o),s=p.exports.useRef(null),[u,c]=p.exports.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[f,d]=p.exports.useState(t);Pf(f?.map(_=>{let{options:x}=_;return x}),t?.map(_=>{let{options:x}=_;return x}))||d(t);const g=p.exports.useCallback(()=>{!i.current||!l.current||Mk(i.current,l.current,{middleware:f,placement:r,strategy:n}).then(_=>{y.current&&ki.exports.flushSync(()=>{c(_)})})},[f,r,n]);bf(()=>{y.current&&g()},[g]);const y=p.exports.useRef(!1);bf(()=>(y.current=!0,()=>{y.current=!1}),[]);const w=p.exports.useCallback(()=>{if(typeof s.current=="function"&&(s.current(),s.current=null),i.current&&l.current)if(a.current){const _=a.current(i.current,l.current,g);s.current=_}else g()},[g,a]),v=p.exports.useCallback(_=>{i.current=_,w()},[w]),m=p.exports.useCallback(_=>{l.current=_,w()},[w]),h=p.exports.useMemo(()=>({reference:i,floating:l}),[]);return p.exports.useMemo(()=>({...u,update:g,refs:h,reference:v,floating:m}),[u,g,h,v,m])}var qn=typeof document<"u"?p.exports.useLayoutEffect:p.exports.useEffect;function Fk(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}let lc=!1,Ak=0;const nv=()=>"floating-ui-"+Ak++;function Vk(){const[e,t]=p.exports.useState(()=>lc?nv():void 0);return qn(()=>{e==null&&t(nv())},[]),p.exports.useEffect(()=>{lc||(lc=!0)},[]),e}const ov=ai["useId".toString()],iv=ov??Vk,Hk=p.exports.createContext(null),Bk=p.exports.createContext(null),Wk=()=>{var e,t;return(e=(t=p.exports.useContext(Hk))==null?void 0:t.id)!=null?e:null},rp=()=>p.exports.useContext(Bk);function Gt(e){var t;return(t=e?.ownerDocument)!=null?t:document}function p_(e){var t;return(t=Gt(e).defaultView)!=null?t:window}function Ta(e){return e?e instanceof p_(e).Element:!1}function g_(e){return e?e instanceof p_(e).HTMLElement:!1}function np(e){let{open:t=!1,onOpenChange:r=()=>{},whileElementsMounted:n,placement:o,middleware:i,strategy:l,nodeId:a}=e===void 0?{}:e;const s=rp(),u=p.exports.useRef(null),c=p.exports.useRef({}),f=p.exports.useState(()=>Fk())[0],d=Lk({placement:o,middleware:i,strategy:l,whileElementsMounted:n}),g=p.exports.useMemo(()=>({...d.refs,domReference:u}),[d.refs]),y=p.exports.useMemo(()=>({...d,refs:g,dataRef:c,nodeId:a,events:f,open:t,onOpenChange:r}),[d,a,f,t,r,g]);qn(()=>{const m=s?.nodesRef.current.find(h=>h.id===a);m&&(m.context=y)});const{reference:w}=d,v=p.exports.useCallback(m=>{(Ta(m)||m===null)&&(y.refs.domReference.current=m),w(m)},[w,y.refs]);return p.exports.useMemo(()=>({...d,context:y,refs:g,reference:v}),[d,g,y,v])}function ac(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(l=>{let[a,s]=l;if(a.indexOf("on")===0){if(n.has(a)||n.set(a,[]),typeof s=="function"){var u;(u=n.get(a))==null||u.push(s)}o[a]=function(){for(var c,f=arguments.length,d=new Array(f),g=0;gy(...d))}}else o[a]=s}),o),{})}}const Uk=function(e){return e===void 0&&(e=[]),{getReferenceProps:t=>ac(t,e,"reference"),getFloatingProps:t=>ac(t,e,"floating"),getItemProps:t=>ac(t,e,"item")}};function Gk(e,t){var r;let n=(r=e.filter(l=>{var a;return l.parentId===t&&((a=l.context)==null?void 0:a.open)}))!=null?r:[],o=n;for(;o.length;){var i;o=(i=e.filter(l=>{var a;return(a=o)==null?void 0:a.some(s=>{var u;return l.parentId===s.id&&((u=l.context)==null?void 0:u.open)})}))!=null?i:[],n=n.concat(o)}return n}function m_(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 Ma(e){const t=p.exports.useRef(e);return qn(()=>{t.current=e}),t}function Yk(e){const t=p.exports.useRef();return qn(()=>{t.current=e},[e]),t.current}function Bl(e,t,r){return r&&r!=="mouse"?0:typeof e=="number"?e:e?.[t]}const Xk=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:l=0}=t===void 0?{}:t;const{open:a,onOpenChange:s,dataRef:u,events:c,refs:f}=e,d=rp(),g=Wk(),y=Ma(s),w=Ma(o),v=Yk(a),m=p.exports.useRef(),h=p.exports.useRef(),_=p.exports.useRef(),x=p.exports.useRef(),$=p.exports.useRef(!0),b=p.exports.useRef(!1);p.exports.useEffect(()=>{if(!r)return;function z(){clearTimeout(h.current),clearTimeout(x.current),$.current=!0}return c.on("dismiss",z),()=>{c.off("dismiss",z)}},[r,c,f]),p.exports.useEffect(()=>{if(!r||!w.current)return;function z(){var F;(F=u.current.openEvent)!=null&&F.type.includes("mouse")&&y.current(!1)}const T=Gt(f.floating.current).documentElement;return T.addEventListener("mouseleave",z),()=>{T.removeEventListener("mouseleave",z)}},[f,y,r,w,u]);const P=p.exports.useCallback(function(z){z===void 0&&(z=!0);const T=Bl(n,"close",m.current);T&&!_.current?(clearTimeout(h.current),h.current=setTimeout(()=>y.current(!1),T)):z&&(clearTimeout(h.current),y.current(!1))},[n,y]),E=p.exports.useCallback(()=>{_.current&&(Gt(f.floating.current).removeEventListener("pointermove",_.current),_.current=void 0)},[f]),O=p.exports.useCallback(()=>{Gt(f.floating.current).body.style.pointerEvents="",b.current=!1},[f]);if(p.exports.useEffect(()=>{if(!r)return;function z(B){if(clearTimeout(h.current),$.current=!1,a||i&&m.current!=="mouse"||l>0&&Bl(n,"open")===0)return;u.current.openEvent=B;const ne=Bl(n,"open",m.current);ne?h.current=setTimeout(()=>{y.current(!0)},ne):y.current(!0)}function T(B){var ne,se;if(((ne=u.current.openEvent)==null?void 0:ne.type)==="click"||((se=u.current.openEvent)==null?void 0:se.type)==="pointerdown")return;const ie=Gt(f.floating.current);if(clearTimeout(x.current),w.current){clearTimeout(h.current),_.current&&ie.removeEventListener("pointermove",_.current),_.current=w.current({...e,tree:d,x:B.clientX,y:B.clientY,onClose(){E(),P()}}),ie.addEventListener("pointermove",_.current);return}P()}function F(B){w.current==null||w.current({...e,tree:d,x:B.clientX,y:B.clientY,leave:!0,onClose(){E(),P()}})(B)}const G=f.floating.current,q=f.domReference.current;if(Ta(q))return a&&q.addEventListener("mouseleave",F),G?.addEventListener("mouseleave",F),q.addEventListener("mousemove",z,{once:!0}),q.addEventListener("mouseenter",z),q.addEventListener("mouseleave",T),()=>{a&&q.removeEventListener("mouseleave",F),G?.removeEventListener("mouseleave",F),q.removeEventListener("mousemove",z),q.removeEventListener("mouseenter",z),q.removeEventListener("mouseleave",T)}},[r,P,e,n,w,u,i,y,a,d,l,E,f]),qn(()=>{if(!!r&&a&&w.current){Gt(f.floating.current).body.style.pointerEvents="none",b.current=!0;const F=f.domReference.current,G=f.floating.current;if(g_(F)&&G){var z,T;const q=d==null||(z=d.nodesRef.current.find(B=>B.id===g))==null||(T=z.context)==null?void 0:T.refs.floating.current;return q&&(q.style.pointerEvents=""),F.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{F.style.pointerEvents="",G.style.pointerEvents=""}}}},[r,a,g,f,d,w,u]),qn(()=>{v&&!a&&(m.current=void 0,E(),O())}),p.exports.useEffect(()=>()=>{E(),clearTimeout(h.current),clearTimeout(x.current),b.current&&O()},[E,O]),!r)return{};function D(z){m.current=z.pointerType}return{reference:{onPointerDown:D,onPointerEnter:D,onMouseMove(){a||l===0||(clearTimeout(x.current),x.current=setTimeout(()=>{$.current||s(!0)},l))}},floating:{onMouseEnter(){clearTimeout(h.current)},onMouseLeave(){P(!1)}}}},v_=p.exports.createContext({delay:1e3,initialDelay:1e3,currentId:null,setCurrentId:()=>{},setState:()=>{}}),h_=()=>p.exports.useContext(v_),qk=e=>{let{children:t,delay:r}=e;const[n,o]=p.exports.useState({delay:r,initialDelay:r,currentId:null}),i=p.exports.useCallback(l=>{o(a=>({...a,currentId:l}))},[]);return p.exports.createElement(v_.Provider,{value:p.exports.useMemo(()=>({...n,setState:o,setCurrentId:i}),[n,o,i])},t)},Kk=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,initialDelay:l,setState:a}=h_(),s=Ma(n);p.exports.useEffect(()=>{i&&s.current&&(a(u=>({...u,delay:{open:1,close:Bl(l,"close")}})),i!==o&&s.current(!1))},[o,s,a,i,l]),p.exports.useEffect(()=>{!r&&i===o&&s.current&&(s.current(!1),a(u=>({...u,delay:l,currentId:null})))},[r,a,i,o,s,l])},Qk=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=iv(),l=iv(),a={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:a}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:l}},floating:{...a,...o==="menu"&&{"aria-labelledby":l}}}:{}};function sc(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const Zk=function(e,t){let{open:r,onOpenChange:n,refs:o,events:i,nodeId:l}=e,{enabled:a=!0,escapeKey:s=!0,outsidePointerDown:u=!0,referencePointerDown:c=!1,ancestorScroll:f=!1,bubbles:d=!0}=t===void 0?{}:t;const g=rp(),y=Ma(n),w=p.exports.useCallback(()=>{var v;return(v=o.floating.current)==null?void 0:v.contains(m_(Gt(o.floating.current)))},[o]);return p.exports.useEffect(()=>{if(!r||!a)return;function v($){if($.key==="Escape"){if(!d&&!w())return;i.emit("dismiss"),y.current(!1),g_(o.domReference.current)&&o.domReference.current.focus()}}function m($){const b=g&&Gk(g.nodesRef.current,l).some(P=>{var E;return sc($,(E=P.context)==null?void 0:E.refs.floating.current)});sc($,o.floating.current)||sc($,o.domReference.current)||b||!d&&!w()||(i.emit("dismiss"),y.current(!1))}function h(){y.current(!1)}const _=Gt(o.floating.current);s&&_.addEventListener("keydown",v),u&&_.addEventListener("mousedown",m);const x=(f?[...Ta(o.reference.current)?ln(o.reference.current):[],...Ta(o.floating.current)?ln(o.floating.current):[]]:[]).filter($=>{var b;return $!==((b=_.defaultView)==null?void 0:b.visualViewport)});return x.forEach($=>$.addEventListener("scroll",h,{passive:!0})),()=>{s&&_.removeEventListener("keydown",v),u&&_.removeEventListener("mousedown",m),x.forEach($=>$.removeEventListener("scroll",h))}},[s,u,i,g,l,r,y,f,a,d,w,o]),a?{reference:{onPointerDown(){c&&(i.emit("dismiss"),n(!1))}}}:{}},Jk=function(e,t){let{open:r,onOpenChange:n,dataRef:o,refs:i,events:l}=e,{enabled:a=!0,keyboardOnly:s=!0}=t===void 0?{}:t;const u=p.exports.useRef(""),c=p.exports.useRef(!1);return p.exports.useEffect(()=>{var f;if(!a)return;const d=Gt(i.floating.current),g=(f=d.defaultView)!=null?f:window;function y(){u.current&&i.domReference.current===m_(d)&&(c.current=!r)}function w(){setTimeout(()=>{c.current=!1,u.current=""})}return g.addEventListener("focus",w),g.addEventListener("blur",y),()=>{g.removeEventListener("focus",w),g.removeEventListener("blur",y)}},[i,r,a]),p.exports.useEffect(()=>{if(!a)return;function f(){c.current=!0}return l.on("dismiss",f),()=>{l.off("dismiss",f)}},[l,a]),a?{reference:{onPointerDown(f){let{pointerType:d}=f;u.current=d,c.current=!!(d&&s)},onFocus(f){var d,g,y;c.current||f.type==="focus"&&((d=o.current.openEvent)==null?void 0:d.type)==="mousedown"&&(g=i.domReference.current)!=null&&g.contains((y=o.current.openEvent)==null?void 0:y.target)||(o.current.openEvent=f.nativeEvent,n(!0))},onBlur(f){var d,g;const y=f.relatedTarget;(d=i.floating.current)!=null&&d.contains(y)||(g=i.domReference.current)!=null&&g.contains(y)||(c.current=!1,n(!1))}}}:{}};function y_({opened:e,floating:t,positionDependencies:r}){const[n,o]=p.exports.useState(0);p.exports.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return Tk(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference,t.refs.floating,e,n]),kr(()=>{t.update()},r),kr(()=>{o(i=>i+1)},[e])}function e3(e){const t=[i_(e.offset)];return e.middlewares.shift&&t.push(ep()),e.middlewares.flip&&t.push(o_()),t}function t3(e){const[t,r]=Ai({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=()=>{var l;(l=e.onClose)==null||l.call(e),r(!1)},o=()=>{var l,a;t?((l=e.onClose)==null||l.call(e),r(!1)):((a=e.onOpen)==null||a.call(e),r(!0))},i=np({placement:e.position,middleware:[...e3(e),...e.width==="target"?[Sk({apply({rects:l}){var a,s;Object.assign((s=(a=i.refs.floating.current)==null?void 0:a.style)!=null?s:{},{width:`${l.reference.width}px`})}})]:[]]});return y_({opened:e.opened,positionDependencies:e.positionDependencies,floating:i}),kr(()=>{var l;(l=e.onPositionChange)==null||l.call(e,i.placement)},[i.placement]),{floating:i,controlled:typeof e.opened=="boolean",opened:t,onClose:n,onToggle:o}}const w_={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"},[r3,__]=Ld(w_.context);var n3=Object.defineProperty,o3=Object.defineProperties,i3=Object.getOwnPropertyDescriptors,ja=Object.getOwnPropertySymbols,S_=Object.prototype.hasOwnProperty,x_=Object.prototype.propertyIsEnumerable,lv=(e,t,r)=>t in e?n3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t)=>{for(var r in t||(t={}))S_.call(t,r)&&lv(e,r,t[r]);if(ja)for(var r of ja(t))x_.call(t,r)&&lv(e,r,t[r]);return e},l3=(e,t)=>o3(e,i3(t)),a3=(e,t)=>{var r={};for(var n in e)S_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ja)for(var n of ja(e))t.indexOf(n)<0&&x_.call(e,n)&&(r[n]=e[n]);return r};const b_=p.exports.forwardRef((e,t)=>{var r=e,{children:n,refProp:o="ref",popupType:i="dialog"}=r,l=a3(r,["children","refProp","popupType"]);if(!ji(n))throw new Error(w_.children);const a=l,s=__(),u=dn(s.reference,n.ref,t),c=s.withRoles?{"aria-haspopup":i,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return p.exports.cloneElement(n,wl(l3(wl(wl(wl({},a),c),s.targetProps),{className:O1(s.targetProps.className,a.className,n.props.className),[o]:u}),s.controlled?null:{onClick:s.onToggle}))});b_.displayName="@mantine/core/PopoverTarget";var s3=Q((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}})),u3=s3,c3=Object.defineProperty,av=Object.getOwnPropertySymbols,f3=Object.prototype.hasOwnProperty,d3=Object.prototype.propertyIsEnumerable,sv=(e,t,r)=>t in e?c3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wn=(e,t)=>{for(var r in t||(t={}))f3.call(t,r)&&sv(e,r,t[r]);if(av)for(var r of av(t))d3.call(t,r)&&sv(e,r,t[r]);return e};const uv={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function P_({transition:e,state:t,duration:r,timingFunction:n}){const o={transitionDuration:`${r}ms`,transitionTimingFunction:n};return typeof e=="string"?e in pl?wn(wn(wn({transitionProperty:pl[e].transitionProperty},o),pl[e].common),pl[e][uv[t]]):null:wn(wn(wn({transitionProperty:e.transitionProperty},o),e.common),e[uv[t]])}function $_({duration:e,exitDuration:t,timingFunction:r,mounted:n,onEnter:o,onExit:i,onEntered:l,onExited:a}){const s=st(),u=ow(),c=s.respectReducedMotion?u:!1,[f,d]=p.exports.useState(n?"entered":"exited");let g=c?0:e;const y=p.exports.useRef(-1),w=v=>{const m=v?o:i,h=v?l:a;if(d(v?"pre-entering":"pre-exiting"),window.clearTimeout(y.current),g=c?0:v?e:t,g===0)typeof m=="function"&&m(),typeof h=="function"&&h(),d(v?"entered":"exited");else{const _=window.setTimeout(()=>{typeof m=="function"&&m(),d(v?"entering":"exiting")},10);y.current=window.setTimeout(()=>{window.clearTimeout(_),typeof h=="function"&&h(),d(v?"entered":"exited")},g)}};return kr(()=>{w(n)},[n]),p.exports.useEffect(()=>()=>window.clearTimeout(y.current),[]),{transitionDuration:g,transitionStatus:f,transitionTimingFunction:r||s.transitionTimingFunction}}function vu({transition:e,duration:t=250,exitDuration:r=t,mounted:n,children:o,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u}){const{transitionDuration:c,transitionStatus:f,transitionTimingFunction:d}=$_({mounted:n,exitDuration:r,duration:t,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u});return c===0?n?C.createElement(C.Fragment,null,o({})):null:f==="exited"?null:C.createElement(C.Fragment,null,o(P_({transition:e,duration:c,state:f,timingFunction:d})))}vu.displayName="@mantine/core/Transition";function O_({children:e,active:t=!0,refProp:r="ref"}){const n=rw(t),o=dn(n,e?.ref);return ji(e)?p.exports.cloneElement(e,{[r]:o}):e}O_.displayName="@mantine/core/FocusTrap";var p3=Object.defineProperty,g3=Object.defineProperties,m3=Object.getOwnPropertyDescriptors,cv=Object.getOwnPropertySymbols,v3=Object.prototype.hasOwnProperty,h3=Object.prototype.propertyIsEnumerable,fv=(e,t,r)=>t in e?p3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t||(t={}))v3.call(t,r)&&fv(e,r,t[r]);if(cv)for(var r of cv(t))h3.call(t,r)&&fv(e,r,t[r]);return e},_l=(e,t)=>g3(e,m3(t));function dv(e,t,r){return e==="center"?{top:`calc(50% - ${t/2}px)`}:e==="end"?{bottom:r}:e==="start"?{top:r}:{}}function pv(e,t,r,n){return e==="center"?{left:`calc(50% - ${t/2}px)`}:e==="end"?{[n==="ltr"?"right":"left"]:r}:e==="start"?{[n==="ltr"?"left":"right"]:r}:{}}function y3({position:e,withBorder:t,arrowSize:r,arrowOffset:n,dir:o}){const[i,l="center"]=e.split("-"),a={width:r,height:r,transform:"rotate(45deg)",position:"absolute"},s=t?-r/2-1:-r/2;return i==="left"?_l(lr(lr({},a),dv(l,r,n)),{[o==="ltr"?"right":"left"]:s,[o==="ltr"?"borderLeft":"borderRight"]:0,borderBottom:0}):i==="right"?_l(lr(lr({},a),dv(l,r,n)),{[o==="ltr"?"left":"right"]:s,[o==="ltr"?"borderRight":"borderLeft"]:0,borderTop:0}):i==="top"?_l(lr(lr({},a),pv(l,r,n,o)),{bottom:s,borderTop:0,[o==="ltr"?"borderLeft":"borderRight"]:0}):i==="bottom"?_l(lr(lr({},a),pv(l,r,n,o)),{top:s,borderBottom:0,[o==="ltr"?"borderRight":"borderLeft"]:0}):{}}var w3=Object.defineProperty,_3=Object.defineProperties,S3=Object.getOwnPropertyDescriptors,La=Object.getOwnPropertySymbols,C_=Object.prototype.hasOwnProperty,E_=Object.prototype.propertyIsEnumerable,gv=(e,t,r)=>t in e?w3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x3=(e,t)=>{for(var r in t||(t={}))C_.call(t,r)&&gv(e,r,t[r]);if(La)for(var r of La(t))E_.call(t,r)&&gv(e,r,t[r]);return e},b3=(e,t)=>_3(e,S3(t)),P3=(e,t)=>{var r={};for(var n in e)C_.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&&E_.call(e,n)&&(r[n]=e[n]);return r};function op(e){var t=e,{withBorder:r,position:n,arrowSize:o,arrowOffset:i,visible:l}=t,a=P3(t,["withBorder","position","arrowSize","arrowOffset","visible"]);const s=st();return l?C.createElement("div",b3(x3({},a),{style:y3({withBorder:r,position:n,arrowSize:o,arrowOffset:i,dir:s.dir})})):null}op.displayName="@mantine/core/FloatingArrow";var $3=Object.defineProperty,O3=Object.defineProperties,C3=Object.getOwnPropertyDescriptors,Fa=Object.getOwnPropertySymbols,R_=Object.prototype.hasOwnProperty,k_=Object.prototype.propertyIsEnumerable,mv=(e,t,r)=>t in e?$3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sl=(e,t)=>{for(var r in t||(t={}))R_.call(t,r)&&mv(e,r,t[r]);if(Fa)for(var r of Fa(t))k_.call(t,r)&&mv(e,r,t[r]);return e},vv=(e,t)=>O3(e,C3(t)),E3=(e,t)=>{var r={};for(var n in e)R_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fa)for(var n of Fa(e))t.indexOf(n)<0&&k_.call(e,n)&&(r[n]=e[n]);return r};function I_(e){var t=e,{style:r,className:n,children:o}=t,i=E3(t,["style","className","children"]);const{classNames:l,styles:a,unstyled:s,staticSelector:u}=fn(),c=__(),{classes:f,cx:d}=u3({radius:c.radius,shadow:c.shadow},{name:u,classNames:l,styles:a,unstyled:s}),g=Z1({opened:c.opened,shouldReturnFocus:!1}),y=c.withRoles?{"aria-labelledby":c.getTargetId(),id:c.getDropdownId(),role:"dialog"}:{};return C.createElement(Vi,{withinPortal:c.withinPortal},C.createElement(vu,{mounted:c.opened,transition:c.transition,duration:c.transitionDuration,exitDuration:typeof c.exitTransitionDuration=="number"?c.exitTransitionDuration:c.transitionDuration},w=>{var v,m;return C.createElement(O_,{active:c.trapFocus},C.createElement(X,Sl(vv(Sl({},y),{tabIndex:-1,ref:c.floating,style:vv(Sl(Sl({},r),w),{zIndex:c.zIndex,top:(v=c.y)!=null?v:"",left:(m=c.x)!=null?m:"",width:c.width==="target"?void 0:c.width}),className:d(f.dropdown,n),onKeyDownCapture:B$(c.onClose,{active:c.closeOnEscape,onTrigger:g}),"data-position":c.placement}),i),o,C.createElement(op,{visible:c.withArrow,withBorder:!0,position:c.placement,arrowSize:c.arrowSize,arrowOffset:c.arrowOffset,className:f.arrow})))}))}I_.displayName="@mantine/core/PopoverDropdown";function N_(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[r,n]=t.split("-"),o=r==="right"?"left":"right";return n===void 0?o:`${o}-${n}`}return t}var hv=Object.getOwnPropertySymbols,R3=Object.prototype.hasOwnProperty,k3=Object.prototype.propertyIsEnumerable,I3=(e,t)=>{var r={};for(var n in e)R3.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hv)for(var n of hv(e))t.indexOf(n)<0&&k3.call(e,n)&&(r[n]=e[n]);return r};const N3={position:"bottom",offset:8,positionDependencies:[],transition:"fade",transitionDuration:150,middlewares:{flip:!0,shift:!0},arrowSize:7,arrowOffset:5,closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:io("popover"),__staticSelector:"Popover"};function nr(e){const t=ee("Popover",N3,e),{children:r,position:n,offset:o,onPositionChange:i,positionDependencies:l,opened:a,transition:s,transitionDuration:u,width:c,middlewares:f,withArrow:d,arrowSize:g,arrowOffset:y,unstyled:w,classNames:v,styles:m,closeOnClickOutside:h,withinPortal:_,closeOnEscape:x,clickOutsideEvents:$,trapFocus:b,onClose:P,onOpen:E,onChange:O,zIndex:D,radius:z,shadow:T,id:F,defaultOpened:G,exitTransitionDuration:q,__staticSelector:B,withRoles:ne}=t,se=I3(t,["children","position","offset","onPositionChange","positionDependencies","opened","transition","transitionDuration","width","middlewares","withArrow","arrowSize","arrowOffset","unstyled","classNames","styles","closeOnClickOutside","withinPortal","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","exitTransitionDuration","__staticSelector","withRoles"]),ie=lo(F),De=st(),k=t3({middlewares:f,width:c,position:N_(De.dir,n),offset:o+(d?g/2:0),onPositionChange:i,positionDependencies:l,opened:a,defaultOpened:G,onChange:O,onOpen:E,onClose:P});return a2(()=>h&&k.onClose(),$,[k.floating.refs.floating.current,k.floating.refs.reference.current]),C.createElement(q1,{classNames:v,styles:m,unstyled:w,staticSelector:B},C.createElement(r3,{value:{controlled:k.controlled,reference:k.floating.reference,floating:k.floating.floating,x:k.floating.x,y:k.floating.y,opened:k.opened,transition:s,transitionDuration:u,exitTransitionDuration:q,width:c,withArrow:d,arrowSize:g,arrowOffset:y,placement:k.floating.placement,trapFocus:b,withinPortal:_,zIndex:D,radius:z,shadow:T,closeOnEscape:x,onClose:k.onClose,onToggle:k.onToggle,getTargetId:()=>`${ie}-target`,getDropdownId:()=>`${ie}-dropdown`,withRoles:ne,targetProps:se}},r))}nr.Target=b_;nr.Dropdown=I_;nr.displayName="@mantine/core/Popover";var z3=Object.defineProperty,Aa=Object.getOwnPropertySymbols,z_=Object.prototype.hasOwnProperty,D_=Object.prototype.propertyIsEnumerable,yv=(e,t,r)=>t in e?z3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D3=(e,t)=>{for(var r in t||(t={}))z_.call(t,r)&&yv(e,r,t[r]);if(Aa)for(var r of Aa(t))D_.call(t,r)&&yv(e,r,t[r]);return e},T3=(e,t)=>{var r={};for(var n in e)z_.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&&D_.call(e,n)&&(r[n]=e[n]);return r};function M3(e){var t=e,{children:r,component:n="div",maxHeight:o=220,direction:i="column",id:l,innerRef:a}=t,s=T3(t,["children","component","maxHeight","direction","id","innerRef"]);return C.createElement(nr.Dropdown,D3({p:0,onMouseDown:u=>u.preventDefault()},s),C.createElement("div",{style:{maxHeight:o,display:"flex"}},C.createElement(X,{component:n||"div",id:`${l}-items`,"aria-labelledby":`${l}-label`,role:"listbox",onMouseDown:u=>u.preventDefault(),style:{flex:1,overflowY:n!==Zd?"auto":void 0},"data-combobox-popover":!0,ref:a},C.createElement("div",{style:{display:"flex",flexDirection:i,width:"100%",padding:4}},r))))}function li({opened:e,transition:t="fade",transitionDuration:r=0,shadow:n,withinPortal:o,children:i,__staticSelector:l,onDirectionChange:a,switchDirectionOnFlip:s,zIndex:u,dropdownPosition:c,positionDependencies:f=[],classNames:d,styles:g,unstyled:y}){return C.createElement(nr,{unstyled:y,classNames:d,styles:g,width:"target",withRoles:!1,opened:e,middlewares:{flip:c==="flip",shift:!1},position:c==="flip"?"bottom":c,positionDependencies:f,zIndex:u,__staticSelector:l,withinPortal:o,transition:t,transitionDuration:r,shadow:n,onPositionChange:w=>s&&a?.(w==="top"?"column-reverse":"column")},i)}li.Target=nr.Target;li.Dropdown=M3;var j3=Object.defineProperty,L3=Object.defineProperties,F3=Object.getOwnPropertyDescriptors,Va=Object.getOwnPropertySymbols,T_=Object.prototype.hasOwnProperty,M_=Object.prototype.propertyIsEnumerable,wv=(e,t,r)=>t in e?j3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uc=(e,t)=>{for(var r in t||(t={}))T_.call(t,r)&&wv(e,r,t[r]);if(Va)for(var r of Va(t))M_.call(t,r)&&wv(e,r,t[r]);return e},A3=(e,t)=>L3(e,F3(t)),V3=(e,t)=>{var r={};for(var n in e)T_.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&&M_.call(e,n)&&(r[n]=e[n]);return r};function j_(e,t,r){const n=ee(e,t,r),{label:o,description:i,error:l,required:a,classNames:s,styles:u,className:c,unstyled:f,__staticSelector:d,sx:g,errorProps:y,labelProps:w,descriptionProps:v,wrapperProps:m,id:h,size:_,style:x,inputContainer:$,inputWrapperOrder:b}=n,P=V3(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder"]),E=lo(h),{systemStyles:O,rest:D}=lu(P);return A3(uc({},D),{classNames:s,styles:u,unstyled:f,wrapperProps:uc(uc({label:o,description:i,error:l,required:a,classNames:s,className:c,__staticSelector:d,sx:g,errorProps:y,labelProps:w,descriptionProps:v,unstyled:f,styles:u,id:E,size:_,style:x,inputContainer:$,inputWrapperOrder:b},m),O),inputProps:{required:a,classNames:s,styles:u,unstyled:f,id:E,size:_,__staticSelector:d,invalid:!!l}})}var H3=Q((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}})),B3=H3,W3=Object.defineProperty,Ha=Object.getOwnPropertySymbols,L_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable,_v=(e,t,r)=>t in e?W3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U3=(e,t)=>{for(var r in t||(t={}))L_.call(t,r)&&_v(e,r,t[r]);if(Ha)for(var r of Ha(t))F_.call(t,r)&&_v(e,r,t[r]);return e},G3=(e,t)=>{var r={};for(var n in e)L_.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&&F_.call(e,n)&&(r[n]=e[n]);return r};const ip=p.exports.forwardRef((e,t)=>{var r=e,{labelElement:n="label",children:o,required:i,size:l="sm",classNames:a,styles:s,unstyled:u,className:c,htmlFor:f,__staticSelector:d}=r,g=G3(r,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector"]);const{classes:y,cx:w}=B3({size:l},{name:["InputWrapper",d],classNames:a,styles:s,unstyled:u});return H(X,{...U3({component:n,ref:t,className:w(y.label,c),htmlFor:n==="label"?f:void 0},g),children:[o,i&&S("span",{className:y.required,"aria-hidden":!0,children:" *"})]})});ip.displayName="@mantine/core/InputLabel";var Y3=Q((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"}})),X3=Y3,q3=Object.defineProperty,Ba=Object.getOwnPropertySymbols,A_=Object.prototype.hasOwnProperty,V_=Object.prototype.propertyIsEnumerable,Sv=(e,t,r)=>t in e?q3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K3=(e,t)=>{for(var r in t||(t={}))A_.call(t,r)&&Sv(e,r,t[r]);if(Ba)for(var r of Ba(t))V_.call(t,r)&&Sv(e,r,t[r]);return e},Q3=(e,t)=>{var r={};for(var n in e)A_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ba)for(var n of Ba(e))t.indexOf(n)<0&&V_.call(e,n)&&(r[n]=e[n]);return r};const lp=p.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s="sm",__staticSelector:u}=r,c=Q3(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]);const{classes:f,cx:d}=X3({size:s},{name:["InputWrapper",u],classNames:i,styles:l,unstyled:a});return S(vt,{...K3({className:d(f.error,o),ref:t,role:"alert"},c),children:n})});lp.displayName="@mantine/core/InputError";var Z3=Q((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"}})),J3=Z3,e5=Object.defineProperty,Wa=Object.getOwnPropertySymbols,H_=Object.prototype.hasOwnProperty,B_=Object.prototype.propertyIsEnumerable,xv=(e,t,r)=>t in e?e5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,t5=(e,t)=>{for(var r in t||(t={}))H_.call(t,r)&&xv(e,r,t[r]);if(Wa)for(var r of Wa(t))B_.call(t,r)&&xv(e,r,t[r]);return e},r5=(e,t)=>{var r={};for(var n in e)H_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wa)for(var n of Wa(e))t.indexOf(n)<0&&B_.call(e,n)&&(r[n]=e[n]);return r};const ap=p.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s="sm",__staticSelector:u}=r,c=r5(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]);const{classes:f,cx:d}=J3({size:s},{name:["InputWrapper",u],classNames:i,styles:l,unstyled:a});return S(vt,{...t5({color:"dimmed",className:d(f.description,o),ref:t,unstyled:a},c),children:n})});ap.displayName="@mantine/core/InputDescription";const W_=p.exports.createContext({offsetBottom:!1,offsetTop:!1}),n5=W_.Provider,o5=()=>p.exports.useContext(W_);function i5(e,{hasDescription:t,hasError:r}){const n=e.findIndex(s=>s==="input"),o=e[n-1],i=e[n+1];return{offsetBottom:t&&i==="description"||r&&i==="error",offsetTop:t&&o==="description"||r&&o==="error"}}var l5=Object.defineProperty,a5=Object.defineProperties,s5=Object.getOwnPropertyDescriptors,bv=Object.getOwnPropertySymbols,u5=Object.prototype.hasOwnProperty,c5=Object.prototype.propertyIsEnumerable,Pv=(e,t,r)=>t in e?l5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f5=(e,t)=>{for(var r in t||(t={}))u5.call(t,r)&&Pv(e,r,t[r]);if(bv)for(var r of bv(t))c5.call(t,r)&&Pv(e,r,t[r]);return e},d5=(e,t)=>a5(e,s5(t)),p5=Q(e=>({root:d5(f5({},e.fn.fontStyles()),{lineHeight:e.lineHeight})})),g5=p5,m5=Object.defineProperty,v5=Object.defineProperties,h5=Object.getOwnPropertyDescriptors,Ua=Object.getOwnPropertySymbols,U_=Object.prototype.hasOwnProperty,G_=Object.prototype.propertyIsEnumerable,$v=(e,t,r)=>t in e?m5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hr=(e,t)=>{for(var r in t||(t={}))U_.call(t,r)&&$v(e,r,t[r]);if(Ua)for(var r of Ua(t))G_.call(t,r)&&$v(e,r,t[r]);return e},y5=(e,t)=>v5(e,h5(t)),w5=(e,t)=>{var r={};for(var n in e)U_.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&&G_.call(e,n)&&(r[n]=e[n]);return r};const _5={labelElement:"label",size:"sm",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},Y_=p.exports.forwardRef((e,t)=>{const r=ee("InputWrapper",_5,e),{className:n,label:o,children:i,required:l,id:a,error:s,description:u,labelElement:c,labelProps:f,descriptionProps:d,errorProps:g,classNames:y,styles:w,size:v,inputContainer:m,__staticSelector:h,unstyled:_,inputWrapperOrder:x}=r,$=w5(r,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder"]),{classes:b,cx:P}=g5(null,{classNames:y,styles:w,name:["InputWrapper",h],unstyled:_}),E={classNames:y,styles:w,unstyled:_,size:v,__staticSelector:h},O=o&&S(ip,{...Hr(Hr({key:"label",labelElement:c,id:a?`${a}-label`:void 0,htmlFor:a,required:l},E),f),children:o}),D=u&&S(ap,{...Hr(Hr({key:"description"},E),d),children:u}),z=S(lt,{children:m(i)}),T=typeof s!="boolean"&&s&&S(lp,{...Hr(y5(Hr({},g),{key:"error"}),E),children:s}),F=x.map(G=>{switch(G){case"label":return O;case"input":return z;case"description":return D;case"error":return T;default:return null}});return S(n5,{value:i5(x,{hasDescription:!!D,hasError:!!T}),children:S(X,{...Hr({className:P(b.root,n),ref:t},$),children:F})})});Y_.displayName="@mantine/core/InputWrapper";var S5=Object.defineProperty,x5=Object.defineProperties,b5=Object.getOwnPropertyDescriptors,Ov=Object.getOwnPropertySymbols,P5=Object.prototype.hasOwnProperty,$5=Object.prototype.propertyIsEnumerable,Cv=(e,t,r)=>t in e?S5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cc=(e,t)=>{for(var r in t||(t={}))P5.call(t,r)&&Cv(e,r,t[r]);if(Ov)for(var r of Ov(t))$5.call(t,r)&&Cv(e,r,t[r]);return e},Ev=(e,t)=>x5(e,b5(t));const ct={xs:30,sm:36,md:42,lg:50,xl:60};function O5({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":{outline:"none",borderColor:e.colors[e.primaryColor][e.fn.primaryShade()]}}:t==="filled"?{border:"1px solid transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":{outline:"none",borderColor:`${e.colors[e.primaryColor][e.fn.primaryShade()]} !important`}}:{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 C5=Q((e,{size:t,multiline:r,radius:n,variant:o,invalid:i,rightSectionWidth:l,withRightSection:a,iconWidth:s,offsetBottom:u,offsetTop:c,pointer:f})=>{const d=e.fn.variant({variant:"filled",color:"red"}).background,g=o==="default"||o==="filled"?{minHeight:e.fn.size({size:t,sizes:ct}),paddingLeft:e.fn.size({size:t,sizes:ct})/3,paddingRight:a?l:e.fn.size({size:t,sizes:ct})/3,borderRadius:e.fn.radius(n)}:null;return{wrapper:{position:"relative",marginTop:c?e.spacing.xs/2:void 0,marginBottom:u?e.spacing.xs/2:void 0},input:cc(Ev(cc(Ev(cc({},e.fn.fontStyles()),{height:r?o==="unstyled"?void 0:"auto":e.fn.size({size:t,sizes:ct}),WebkitTapHighlightColor:"transparent",lineHeight:r?e.lineHeight:`${e.fn.size({size:t,sizes:ct})-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:f?"pointer":void 0}),g),{"&: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":{opacity:1,userSelect:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&::-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"}}),O5({theme:e,variant:o})),withIcon:{paddingLeft:typeof s=="number"?s:e.fn.size({size:t,sizes:ct})},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:ct}),color:i?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:l}}}),E5=C5,R5=Object.defineProperty,k5=Object.defineProperties,I5=Object.getOwnPropertyDescriptors,Ga=Object.getOwnPropertySymbols,X_=Object.prototype.hasOwnProperty,q_=Object.prototype.propertyIsEnumerable,Rv=(e,t,r)=>t in e?R5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xl=(e,t)=>{for(var r in t||(t={}))X_.call(t,r)&&Rv(e,r,t[r]);if(Ga)for(var r of Ga(t))q_.call(t,r)&&Rv(e,r,t[r]);return e},kv=(e,t)=>k5(e,I5(t)),N5=(e,t)=>{var r={};for(var n in e)X_.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&&q_.call(e,n)&&(r[n]=e[n]);return r};const z5={rightSectionWidth:36,size:"sm",variant:"default"},so=p.exports.forwardRef((e,t)=>{const r=ee("Input",z5,e),{className:n,invalid:o,required:i,disabled:l,variant:a,icon:s,style:u,rightSectionWidth:c,iconWidth:f,rightSection:d,rightSectionProps:g,radius:y,size:w,wrapperProps:v,classNames:m,styles:h,__staticSelector:_,multiline:x,sx:$,unstyled:b,pointer:P}=r,E=N5(r,["className","invalid","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:O,offsetTop:D}=o5(),{classes:z,cx:T}=E5({radius:y,size:w,multiline:x,variant:a,invalid:o,rightSectionWidth:c,iconWidth:f,withRightSection:!!d,offsetBottom:O,offsetTop:D,pointer:P},{classNames:m,styles:h,name:["Input",_],unstyled:b}),{systemStyles:F,rest:G}=lu(E);return H(X,{...xl(xl({className:T(z.wrapper,n),sx:$,style:u},F),v),children:[s&&S("div",{className:z.icon,children:s}),S(X,{...kv(xl({component:"input"},G),{ref:t,required:i,"aria-invalid":o,disabled:l,className:T(z[`${a}Variant`],z.input,{[z.withIcon]:s,[z.invalid]:o,[z.disabled]:l})})}),d&&S("div",{...kv(xl({},g),{className:z.rightSection}),children:d})]})});so.displayName="@mantine/core/Input";so.Wrapper=Y_;so.Label=ip;so.Description=ap;so.Error=lp;const Ya=so;var D5=Q((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}}}}})),T5=D5,M5=Object.defineProperty,Xa=Object.getOwnPropertySymbols,K_=Object.prototype.hasOwnProperty,Q_=Object.prototype.propertyIsEnumerable,Iv=(e,t,r)=>t in e?M5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j5=(e,t)=>{for(var r in t||(t={}))K_.call(t,r)&&Iv(e,r,t[r]);if(Xa)for(var r of Xa(t))Q_.call(t,r)&&Iv(e,r,t[r]);return e},L5=(e,t)=>{var r={};for(var n in e)K_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xa)for(var n of Xa(e))t.indexOf(n)<0&&Q_.call(e,n)&&(r[n]=e[n]);return r};const F5={orientation:"horizontal",buttonBorderWidth:1},Z_=p.exports.forwardRef((e,t)=>{const r=ee("ButtonGroup",F5,e),{className:n,orientation:o,buttonBorderWidth:i,unstyled:l}=r,a=L5(r,["className","orientation","buttonBorderWidth","unstyled"]),{classes:s,cx:u}=T5({orientation:o,buttonBorderWidth:i},{name:"ButtonGroup",unstyled:l});return S(X,{...j5({className:u(s.root,n),ref:t},a)})});Z_.displayName="@mantine/core/ButtonGroup";var A5=Object.defineProperty,V5=Object.defineProperties,H5=Object.getOwnPropertyDescriptors,Nv=Object.getOwnPropertySymbols,B5=Object.prototype.hasOwnProperty,W5=Object.prototype.propertyIsEnumerable,zv=(e,t,r)=>t in e?A5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yr=(e,t)=>{for(var r in t||(t={}))B5.call(t,r)&&zv(e,r,t[r]);if(Nv)for(var r of Nv(t))W5.call(t,r)&&zv(e,r,t[r]);return e},$f=(e,t)=>V5(e,H5(t));const Of={xs:{height:ct.xs,paddingLeft:14,paddingRight:14},sm:{height:ct.sm,paddingLeft:18,paddingRight:18},md:{height:ct.md,paddingLeft:22,paddingRight:22},lg:{height:ct.lg,paddingLeft:26,paddingRight:26},xl:{height:ct.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 U5({compact:e,size:t,withLeftIcon:r,withRightIcon:n}){if(e)return Of[`compact-${t}`];const o=Of[t];return $f(Yr({},o),{paddingLeft:r?o.paddingLeft/1.5:o.paddingLeft,paddingRight:n?o.paddingRight/1.5:o.paddingRight})}const G5=e=>({display:e?"block":"inline-block",width:e?"100%":"auto"});function Y5({variant:e,theme:t,color:r,gradient:n}){const o=t.fn.variant({color:r,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:o.background,color:o.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:Yr({border:`1px solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover}))}var X5=Q((e,{color:t,size:r,radius:n,fullWidth:o,compact:i,gradient:l,variant:a,withLeftIcon:s,withRightIcon:u})=>({root:$f(Yr($f(Yr(Yr(Yr(Yr({},U5({compact:i,size:r,withLeftIcon:s,withRightIcon:u})),e.fn.fontStyles()),e.fn.focusStyles()),G5(o)),{borderRadius:e.fn.radius(n),fontWeight:600,position:"relative",lineHeight:1,fontSize:e.fn.size({size:r,sizes:e.fontSizes}),userSelect:"none",cursor:"pointer"}),Y5({variant:a,theme:e,color:t,gradient:l})),{"&:active":e.activeStyles,"&[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","&: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},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}})),q5=X5,K5=Object.defineProperty,qa=Object.getOwnPropertySymbols,J_=Object.prototype.hasOwnProperty,eS=Object.prototype.propertyIsEnumerable,Dv=(e,t,r)=>t in e?K5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tv=(e,t)=>{for(var r in t||(t={}))J_.call(t,r)&&Dv(e,r,t[r]);if(qa)for(var r of qa(t))eS.call(t,r)&&Dv(e,r,t[r]);return e},Q5=(e,t)=>{var r={};for(var n in e)J_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qa)for(var n of qa(e))t.indexOf(n)<0&&eS.call(e,n)&&(r[n]=e[n]);return r};const Z5={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},sp=p.exports.forwardRef((e,t)=>{const r=ee("Button",Z5,e),{className:n,size:o,color:i,type:l,disabled:a,children:s,leftIcon:u,rightIcon:c,fullWidth:f,variant:d,radius:g,uppercase:y,compact:w,loading:v,loaderPosition:m,loaderProps:h,gradient:_,classNames:x,styles:$,unstyled:b}=r,P=Q5(r,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:E,cx:O,theme:D}=q5({radius:g,color:i,size:o,fullWidth:f,compact:w,gradient:_,variant:d,withLeftIcon:!!u,withRightIcon:!!c},{name:"Button",unstyled:b,classNames:x,styles:$}),z=D.fn.variant({color:i,variant:d}),T=S(Kd,{...Tv({color:z.color,size:D.fn.size({size:o,sizes:Of}).height/2},h)});return S(au,{...Tv({className:O(E.root,n),type:l,disabled:a||v,"data-button":!0,"data-disabled":a||void 0,"data-loading":v||void 0,ref:t,unstyled:b},P),children:H("div",{className:E.inner,children:[(u||v&&m==="left")&&S("span",{className:O(E.icon,E.leftIcon),children:v&&m==="left"?T:u}),S("span",{className:E.label,style:{textTransform:y?"uppercase":void 0},children:s}),(c||v&&m==="right")&&S("span",{className:O(E.icon,E.rightIcon),children:v&&m==="right"?T:c})]})})});sp.displayName="@mantine/core/Button";sp.Group=Z_;const Kn=sp;var J5=Q((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}})),e4=J5,t4=Object.defineProperty,Ka=Object.getOwnPropertySymbols,tS=Object.prototype.hasOwnProperty,rS=Object.prototype.propertyIsEnumerable,Mv=(e,t,r)=>t in e?t4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r4=(e,t)=>{for(var r in t||(t={}))tS.call(t,r)&&Mv(e,r,t[r]);if(Ka)for(var r of Ka(t))rS.call(t,r)&&Mv(e,r,t[r]);return e},n4=(e,t)=>{var r={};for(var n in e)tS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ka)for(var n of Ka(e))t.indexOf(n)<0&&rS.call(e,n)&&(r[n]=e[n]);return r};const o4={},nS=p.exports.forwardRef((e,t)=>{const r=ee("Paper",o4,e),{className:n,children:o,radius:i,withBorder:l,shadow:a,unstyled:s}=r,u=n4(r,["className","children","radius","withBorder","shadow","unstyled"]),{classes:c,cx:f}=e4({radius:i,shadow:a,withBorder:l},{name:"Paper",unstyled:s});return S(X,{...r4({className:f(c.root,n),ref:t},u),children:o})});nS.displayName="@mantine/core/Paper";const i4=nS;var l4=Object.defineProperty,Qa=Object.getOwnPropertySymbols,oS=Object.prototype.hasOwnProperty,iS=Object.prototype.propertyIsEnumerable,jv=(e,t,r)=>t in e?l4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a4=(e,t)=>{for(var r in t||(t={}))oS.call(t,r)&&jv(e,r,t[r]);if(Qa)for(var r of Qa(t))iS.call(t,r)&&jv(e,r,t[r]);return e},s4=(e,t)=>{var r={};for(var n in e)oS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qa)for(var n of Qa(e))t.indexOf(n)<0&&iS.call(e,n)&&(r[n]=e[n]);return r};const lS=p.exports.forwardRef((e,t)=>{const r=ee("Center",{},e),{inline:n,sx:o}=r,i=s4(r,["inline","sx"]);return S(X,{...a4({ref:t,sx:[{display:n?"inline-flex":"flex",alignItems:"center",justifyContent:"center"},...xi(o)]},i)})});lS.displayName="@mantine/core/Center";const aS=lS;function u4(e){return p.exports.Children.toArray(e).filter(Boolean)}const sS={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var c4=Q((e,{spacing:t,position:r,noWrap:n,grow:o,align:i,count:l})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:i||"center",flexWrap:n?"nowrap":"wrap",justifyContent:sS[r],gap:e.fn.size({size:t,sizes:e.spacing})},child:{boxSizing:"border-box",maxWidth:o?`calc(${100/l}% - ${e.fn.size({size:t,sizes:e.spacing})-e.fn.size({size:t,sizes:e.spacing})/l}px)`:void 0,flexGrow:o?1:0}})),f4=c4,d4=Object.defineProperty,Za=Object.getOwnPropertySymbols,uS=Object.prototype.hasOwnProperty,cS=Object.prototype.propertyIsEnumerable,Lv=(e,t,r)=>t in e?d4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p4=(e,t)=>{for(var r in t||(t={}))uS.call(t,r)&&Lv(e,r,t[r]);if(Za)for(var r of Za(t))cS.call(t,r)&&Lv(e,r,t[r]);return e},g4=(e,t)=>{var r={};for(var n in e)uS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Za)for(var n of Za(e))t.indexOf(n)<0&&cS.call(e,n)&&(r[n]=e[n]);return r};const m4={position:"left",spacing:"md"},Lt=p.exports.forwardRef((e,t)=>{const r=ee("Group",m4,e),{className:n,position:o,align:i,children:l,noWrap:a,grow:s,spacing:u,unstyled:c}=r,f=g4(r,["className","position","align","children","noWrap","grow","spacing","unstyled"]),d=u4(l),{classes:g,cx:y}=f4({align:i,grow:s,noWrap:a,spacing:u,position:o,count:d.length},{unstyled:c,name:"Group"}),w=d.map(v=>{var m;return typeof v=="object"&&v!==null&&"props"in v?C.cloneElement(v,{className:y(g.child,(m=v.props)==null?void 0:m.className)}):v});return S(X,{...p4({className:y(g.root,n),ref:t},f),children:w})});Lt.displayName="@mantine/core/Group";var v4=Q((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})}})),h4=v4,y4=Object.defineProperty,Ja=Object.getOwnPropertySymbols,fS=Object.prototype.hasOwnProperty,dS=Object.prototype.propertyIsEnumerable,Fv=(e,t,r)=>t in e?y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w4=(e,t)=>{for(var r in t||(t={}))fS.call(t,r)&&Fv(e,r,t[r]);if(Ja)for(var r of Ja(t))dS.call(t,r)&&Fv(e,r,t[r]);return e},_4=(e,t)=>{var r={};for(var n in e)fS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ja)for(var n of Ja(e))t.indexOf(n)<0&&dS.call(e,n)&&(r[n]=e[n]);return r};const S4={spacing:"md",align:"stretch",justify:"top"},Mt=p.exports.forwardRef((e,t)=>{const r=ee("Stack",S4,e),{spacing:n,className:o,align:i,justify:l,unstyled:a}=r,s=_4(r,["spacing","className","align","justify","unstyled"]),{classes:u,cx:c}=h4({spacing:n,align:i,justify:l},{name:"Stack",unstyled:a});return S(X,{...w4({className:c(u.root,o),ref:t},s)})});Mt.displayName="@mantine/core/Stack";function pS({transitions:e,duration:t=250,exitDuration:r=t,mounted:n,children:o,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u}){const{transitionDuration:c,transitionStatus:f,transitionTimingFunction:d}=$_({mounted:n,duration:t,exitDuration:r,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u});if(c===0)return n?C.createElement(C.Fragment,null,o({})):null;if(f==="exited")return null;const g=Object.keys(e).reduce((y,w)=>(y[w]=P_({duration:e[w].duration,transition:e[w].transition,timingFunction:e[w].timingFunction||d,state:f}),y),{});return C.createElement(C.Fragment,null,o(g))}pS.displayName="@mantine/core/GroupedTransition";var x4=Q((e,{zIndex:t})=>({root:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:t}})),b4=x4,P4=Object.defineProperty,$4=Object.defineProperties,O4=Object.getOwnPropertyDescriptors,es=Object.getOwnPropertySymbols,gS=Object.prototype.hasOwnProperty,mS=Object.prototype.propertyIsEnumerable,Av=(e,t,r)=>t in e?P4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fc=(e,t)=>{for(var r in t||(t={}))gS.call(t,r)&&Av(e,r,t[r]);if(es)for(var r of es(t))mS.call(t,r)&&Av(e,r,t[r]);return e},C4=(e,t)=>$4(e,O4(t)),E4=(e,t)=>{var r={};for(var n in e)gS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&es)for(var n of es(e))t.indexOf(n)<0&&mS.call(e,n)&&(r[n]=e[n]);return r};const R4={opacity:.6,color:"#fff",zIndex:io("modal"),radius:0,blur:0},vS=p.exports.forwardRef((e,t)=>{const r=ee("Overlay",R4,e),{opacity:n,blur:o,color:i,gradient:l,zIndex:a,radius:s,sx:u,unstyled:c,className:f}=r,d=E4(r,["opacity","blur","color","gradient","zIndex","radius","sx","unstyled","className"]),{classes:g,cx:y}=b4({zIndex:a},{name:"Overlay",unstyled:c}),w=l?{backgroundImage:l}:{backgroundColor:i},v=m=>S(X,{...fc({ref:t,className:y(g.root,f),sx:[h=>C4(fc({},w),{opacity:n,borderRadius:h.fn.size({size:s,sizes:h.radius})}),...xi(u)]},m)});return o?S(X,{...fc({className:y(g.root,f),sx:[{backdropFilter:`blur(${o}px)`},...xi(u)]},d),children:v()}):v(d)});vS.displayName="@mantine/core/Overlay";const k4=vS,hS=p.exports.createContext(null),I4=hS.Provider,N4=()=>p.exports.useContext(hS);var z4=Object.defineProperty,Vv=Object.getOwnPropertySymbols,D4=Object.prototype.hasOwnProperty,T4=Object.prototype.propertyIsEnumerable,Hv=(e,t,r)=>t in e?z4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M4=(e,t)=>{for(var r in t||(t={}))D4.call(t,r)&&Hv(e,r,t[r]);if(Vv)for(var r of Vv(t))T4.call(t,r)&&Hv(e,r,t[r]);return e};const ts=(e,t)=>`${100/(t/e)}%`,yS=(e,t)=>e?`${100/(t/e)}%`:void 0;function j4({sizes:e,offsets:t,theme:r,columns:n,grow:o}){return wO.reduce((i,l)=>(typeof e[l]=="number"&&(i[`@media (min-width: ${r.breakpoints[l]+1}px)`]={flexBasis:ts(e[l],n),flexShrink:0,maxWidth:o?"unset":ts(e[l],n),marginLeft:yS(t[l],n)}),i),{})}var L4=Q((e,{gutter:t,grow:r,offset:n,offsetXs:o,offsetSm:i,offsetMd:l,offsetLg:a,offsetXl:s,columns:u,span:c,xs:f,sm:d,md:g,lg:y,xl:w})=>({root:M4({boxSizing:"border-box",flexGrow:r?1:0,padding:e.fn.size({size:t,sizes:e.spacing})/2,marginLeft:yS(n,u),flexBasis:ts(c,u),flexShrink:0,maxWidth:r?"unset":ts(c,u)},j4({sizes:{xs:f,sm:d,md:g,lg:y,xl:w},offsets:{xs:o,sm:i,md:l,lg:a,xl:s},theme:e,columns:u,grow:r}))})),F4=L4,A4=Object.defineProperty,rs=Object.getOwnPropertySymbols,wS=Object.prototype.hasOwnProperty,_S=Object.prototype.propertyIsEnumerable,Bv=(e,t,r)=>t in e?A4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V4=(e,t)=>{for(var r in t||(t={}))wS.call(t,r)&&Bv(e,r,t[r]);if(rs)for(var r of rs(t))_S.call(t,r)&&Bv(e,r,t[r]);return e},H4=(e,t)=>{var r={};for(var n in e)wS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&rs)for(var n of rs(e))t.indexOf(n)<0&&_S.call(e,n)&&(r[n]=e[n]);return r};const B4={offset:0,offsetXs:0,offsetSm:0,offsetMd:0,offsetLg:0,offsetXl:0};function W4(e){return typeof e=="number"&&e>0&&e%1===0}const SS=p.exports.forwardRef((e,t)=>{const r=ee("Grid.Col",B4,e),{children:n,span:o,offset:i,offsetXs:l,offsetSm:a,offsetMd:s,offsetLg:u,offsetXl:c,xs:f,sm:d,md:g,lg:y,xl:w,className:v,id:m,unstyled:h}=r,_=H4(r,["children","span","offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","xs","sm","md","lg","xl","className","id","unstyled"]),x=N4();if(!x)throw new Error("[@mantine/core] Grid.Col was used outside of Grid context");const $=o||x.columns,{classes:b,cx:P}=F4({gutter:x.gutter,offset:i,offsetXs:l,offsetSm:a,offsetMd:s,offsetLg:u,offsetXl:c,xs:f,sm:d,md:g,lg:y,xl:w,grow:x.grow,columns:x.columns,span:$},{unstyled:h,name:"Col"});return!W4($)||$>x.columns?null:S(X,{...V4({className:P(b.root,v),ref:t},_),children:n})});SS.displayName="@mantine/core/Col";var U4=Q((e,{justify:t,align:r,gutter:n})=>({root:{margin:-e.fn.size({size:n,sizes:e.spacing})/2,display:"flex",flexWrap:"wrap",justifyContent:t,alignItems:r}})),G4=U4,Y4=Object.defineProperty,ns=Object.getOwnPropertySymbols,xS=Object.prototype.hasOwnProperty,bS=Object.prototype.propertyIsEnumerable,Wv=(e,t,r)=>t in e?Y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X4=(e,t)=>{for(var r in t||(t={}))xS.call(t,r)&&Wv(e,r,t[r]);if(ns)for(var r of ns(t))bS.call(t,r)&&Wv(e,r,t[r]);return e},q4=(e,t)=>{var r={};for(var n in e)xS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ns)for(var n of ns(e))t.indexOf(n)<0&&bS.call(e,n)&&(r[n]=e[n]);return r};const K4={gutter:"md",justify:"flex-start",align:"stretch",columns:12},hu=p.exports.forwardRef((e,t)=>{const r=ee("Grid",K4,e),{gutter:n,children:o,grow:i,justify:l,align:a,columns:s,className:u,id:c,unstyled:f}=r,d=q4(r,["gutter","children","grow","justify","align","columns","className","id","unstyled"]),{classes:g,cx:y}=G4({gutter:n,justify:l,align:a},{unstyled:f,name:"Grid"});return S(I4,{value:{gutter:n,grow:i,columns:s},children:S(X,{...X4({className:y(g.root,u),ref:t},d),children:o})})});hu.Col=SS;hu.displayName="@mantine/core/Grid";function Q4({open:e,close:t,openDelay:r,closeDelay:n}){const o=p.exports.useRef(-1),i=p.exports.useRef(-1),l=()=>{window.clearTimeout(o.current),window.clearTimeout(i.current)},a=()=>{l(),r===0?e():o.current=window.setTimeout(e,r)},s=()=>{l(),n===0?t():i.current=window.setTimeout(t,n)};return p.exports.useEffect(()=>l,[]),{openDropdown:a,closeDropdown:s}}var Z4=Q(e=>({divider:{margin:`${e.spacing.xs/2}px -5px`,borderTop:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`}})),J4=Z4,e6=Object.defineProperty,os=Object.getOwnPropertySymbols,PS=Object.prototype.hasOwnProperty,$S=Object.prototype.propertyIsEnumerable,Uv=(e,t,r)=>t in e?e6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,t6=(e,t)=>{for(var r in t||(t={}))PS.call(t,r)&&Uv(e,r,t[r]);if(os)for(var r of os(t))$S.call(t,r)&&Uv(e,r,t[r]);return e},r6=(e,t)=>{var r={};for(var n in e)PS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&os)for(var n of os(e))t.indexOf(n)<0&&$S.call(e,n)&&(r[n]=e[n]);return r};function OS(e){var t=e,{children:r,className:n}=t,o=r6(t,["children","className"]);const{classNames:i,styles:l,unstyled:a}=fn(),{classes:s,cx:u}=J4(null,{name:"Menu",classNames:i,styles:l,unstyled:a});return C.createElement(X,t6({className:u(s.divider,n)},o))}OS.displayName="@mantine/core/MenuDivider";const CS={context:"Menu component was not found in the tree",children:"Menu.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"},[n6,up]=Ld(CS.context);var o6=Object.defineProperty,is=Object.getOwnPropertySymbols,ES=Object.prototype.hasOwnProperty,RS=Object.prototype.propertyIsEnumerable,Gv=(e,t,r)=>t in e?o6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i6=(e,t)=>{for(var r in t||(t={}))ES.call(t,r)&&Gv(e,r,t[r]);if(is)for(var r of is(t))RS.call(t,r)&&Gv(e,r,t[r]);return e},l6=(e,t)=>{var r={};for(var n in e)ES.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&is)for(var n of is(e))t.indexOf(n)<0&&RS.call(e,n)&&(r[n]=e[n]);return r};function kS(e){var t=e,{children:r,onMouseEnter:n,onMouseLeave:o}=t,i=l6(t,["children","onMouseEnter","onMouseLeave"]);const l=p.exports.useRef(),a=up(),s=f=>{(f.key==="ArrowUp"||f.key==="ArrowDown")&&(f.preventDefault(),l.current.querySelectorAll("[data-menu-item]")[0].focus())},u=qt(n,()=>a.trigger==="hover"&&a.openDropdown()),c=qt(o,()=>a.trigger==="hover"&&a.closeDropdown());return S(nr.Dropdown,{...i6({onMouseEnter:u,onMouseLeave:c,role:"menu","aria-orientation":"vertical"},i),children:S("div",{tabIndex:-1,"data-menu-dropdown":!0,"data-autofocus":!0,onKeyDown:s,ref:l,style:{outline:0},children:r})})}kS.displayName="@mantine/core/MenuDropdown";var a6=Object.defineProperty,s6=Object.defineProperties,u6=Object.getOwnPropertyDescriptors,Yv=Object.getOwnPropertySymbols,c6=Object.prototype.hasOwnProperty,f6=Object.prototype.propertyIsEnumerable,Xv=(e,t,r)=>t in e?a6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d6=(e,t)=>{for(var r in t||(t={}))c6.call(t,r)&&Xv(e,r,t[r]);if(Yv)for(var r of Yv(t))f6.call(t,r)&&Xv(e,r,t[r]);return e},p6=(e,t)=>s6(e,u6(t)),g6=Q((e,{color:t,radius:r})=>({item:p6(d6({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fontSizes.sm,border:0,backgroundColor:"transparent",outline:0,width:"100%",textAlign:"left",textDecoration:"none",boxSizing:"border-box",padding:`${e.spacing.xs}px ${e.spacing.sm}px`,cursor:"pointer",borderRadius:e.fn.radius(r),color:t?e.fn.variant({variant:"filled",primaryFallback:!1,color:t}).background:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"flex",alignItems:"center","&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5],pointerEvents:"none",userSelect:"none"},"&[data-hovered]":{backgroundColor:t?e.fn.variant({variant:"light",color:t}).background:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[3],.35):e.colors.gray[0]}}),itemLabel:{flex:1},itemIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:e.spacing.xs},itemRightSection:{}})),m6=g6,v6=Object.defineProperty,h6=Object.defineProperties,y6=Object.getOwnPropertyDescriptors,ls=Object.getOwnPropertySymbols,IS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable,qv=(e,t,r)=>t in e?v6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w6=(e,t)=>{for(var r in t||(t={}))IS.call(t,r)&&qv(e,r,t[r]);if(ls)for(var r of ls(t))NS.call(t,r)&&qv(e,r,t[r]);return e},_6=(e,t)=>h6(e,y6(t)),S6=(e,t)=>{var r={};for(var n in e)IS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ls)for(var n of ls(e))t.indexOf(n)<0&&NS.call(e,n)&&(r[n]=e[n]);return r};const zS=p.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,color:i,closeMenuOnClick:l,icon:a,rightSection:s}=r,u=S6(r,["children","className","color","closeMenuOnClick","icon","rightSection"]);const c=up(),{classNames:f,styles:d,unstyled:g}=fn(),{classes:y,cx:w,theme:v}=m6({radius:c.radius,color:i},{name:"Menu",classNames:f,styles:d,unstyled:g}),m=p.exports.useRef(),h=c.getItemIndex(m.current),_=u,x=qt(_.onMouseLeave,()=>c.setHovered(-1)),$=qt(_.onMouseEnter,()=>c.setHovered(c.getItemIndex(m.current))),b=qt(_.onClick,()=>{typeof l=="boolean"?l&&c.closeDropdownImmediately():c.closeOnItemClick&&c.closeDropdownImmediately()}),P=qt(_.onFocus,()=>c.setHovered(c.getItemIndex(m.current)));return H(X,{..._6(w6({component:"button"},u),{type:"button",tabIndex:-1,onFocus:P,className:w(y.item,o),ref:dn(m,t),role:"menuitem","data-menu-item":!0,"data-hovered":c.hovered===h?!0:void 0,onMouseEnter:$,onMouseLeave:x,onClick:b,onKeyDown:x1({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:c.loop,dir:v.dir,orientation:"vertical",onKeyDown:_.onKeydown})}),children:[a&&S("div",{className:y.itemIcon,children:a}),n&&S("div",{className:y.itemLabel,children:n}),s&&S("div",{className:y.itemRightSection,children:s})]})});zS.displayName="@mantine/core/MenuItem";const x6=zS;var b6=Q(e=>({label:{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontWeight:500,fontSize:e.fontSizes.xs,padding:`${e.spacing.xs/2}px ${e.spacing.sm}px`,cursor:"default"}})),P6=b6,$6=Object.defineProperty,as=Object.getOwnPropertySymbols,DS=Object.prototype.hasOwnProperty,TS=Object.prototype.propertyIsEnumerable,Kv=(e,t,r)=>t in e?$6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O6=(e,t)=>{for(var r in t||(t={}))DS.call(t,r)&&Kv(e,r,t[r]);if(as)for(var r of as(t))TS.call(t,r)&&Kv(e,r,t[r]);return e},C6=(e,t)=>{var r={};for(var n in e)DS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&as)for(var n of as(e))t.indexOf(n)<0&&TS.call(e,n)&&(r[n]=e[n]);return r};function MS(e){var t=e,{children:r,className:n}=t,o=C6(t,["children","className"]);const{classNames:i,styles:l,unstyled:a}=fn(),{classes:s,cx:u}=P6(null,{name:"Menu",classNames:i,styles:l,unstyled:a});return C.createElement(vt,O6({className:u(s.label,n)},o),r)}MS.displayName="@mantine/core/MenuLabel";var E6=Object.defineProperty,ss=Object.getOwnPropertySymbols,jS=Object.prototype.hasOwnProperty,LS=Object.prototype.propertyIsEnumerable,Qv=(e,t,r)=>t in e?E6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R6=(e,t)=>{for(var r in t||(t={}))jS.call(t,r)&&Qv(e,r,t[r]);if(ss)for(var r of ss(t))LS.call(t,r)&&Qv(e,r,t[r]);return e},k6=(e,t)=>{var r={};for(var n in e)jS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ss)for(var n of ss(e))t.indexOf(n)<0&&LS.call(e,n)&&(r[n]=e[n]);return r};const FS=p.exports.forwardRef((e,t)=>{var r=e,{children:n,refProp:o="ref"}=r,i=k6(r,["children","refProp"]);if(!ji(n))throw new Error(CS.children);const l=up(),a=qt(n.props.onClick,()=>l.trigger==="click"&&l.toggleDropdown()),s=qt(n.props.onMouseEnter,()=>l.trigger==="hover"&&l.openDropdown()),u=qt(n.props.onMouseLeave,()=>l.trigger==="hover"&&l.closeDropdown());return S(nr.Target,{...R6({refProp:o,popupType:"menu",ref:t},i),children:p.exports.cloneElement(n,{onClick:a,onMouseEnter:s,onMouseLeave:u,"data-expanded":l.opened?!0:void 0})})});FS.displayName="@mantine/core/MenuTarget";var I6=Q({dropdown:{padding:4}}),N6=I6,z6=Object.defineProperty,D6=Object.defineProperties,T6=Object.getOwnPropertyDescriptors,us=Object.getOwnPropertySymbols,AS=Object.prototype.hasOwnProperty,VS=Object.prototype.propertyIsEnumerable,Zv=(e,t,r)=>t in e?z6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jv=(e,t)=>{for(var r in t||(t={}))AS.call(t,r)&&Zv(e,r,t[r]);if(us)for(var r of us(t))VS.call(t,r)&&Zv(e,r,t[r]);return e},eh=(e,t)=>D6(e,T6(t)),M6=(e,t)=>{var r={};for(var n in e)AS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&us)for(var n of us(e))t.indexOf(n)<0&&VS.call(e,n)&&(r[n]=e[n]);return r};const j6={closeOnItemClick:!0,loop:!0,trigger:"click",openDelay:0,closeDelay:100};function tt(e){const t=ee("Menu",j6,e),{children:r,onOpen:n,onClose:o,opened:i,defaultOpened:l,onChange:a,closeOnItemClick:s,loop:u,closeOnEscape:c,trigger:f,openDelay:d,closeDelay:g,classNames:y,styles:w,unstyled:v,radius:m}=t,h=M6(t,["children","onOpen","onClose","opened","defaultOpened","onChange","closeOnItemClick","loop","closeOnEscape","trigger","openDelay","closeDelay","classNames","styles","unstyled","radius"]),{classes:_,cx:x}=N6(),[$,{setHovered:b,resetHovered:P}]=W$(),[E,O]=Ai({value:i,defaultValue:l,finalValue:!1,onChange:a}),D=()=>{O(!1),E&&o?.()},z=()=>{O(!0),!E&&n?.()},T=()=>E?D():z(),{openDropdown:F,closeDropdown:G}=Q4({open:z,close:D,closeDelay:g,openDelay:d}),q=B=>j$("[data-menu-item]","[data-menu-dropdown]",B);return kr(()=>{P()},[E]),C.createElement(n6,{value:{opened:E,toggleDropdown:T,getItemIndex:q,hovered:$,setHovered:b,closeOnItemClick:s,closeDropdown:f==="click"?D:G,openDropdown:f==="click"?z:F,closeDropdownImmediately:D,loop:u,trigger:f,radius:m}},C.createElement(nr,eh(Jv({},h),{radius:m,opened:E,onChange:O,defaultOpened:l,trapFocus:f==="click",closeOnEscape:c&&f==="click",__staticSelector:"Menu",classNames:eh(Jv({},y),{dropdown:x(_.dropdown,y?.dropdown)}),styles:w,unstyled:v,onClose:D,onOpen:z}),r))}tt.displayName="@mantine/core/Menu";tt.Item=x6;tt.Label=MS;tt.Dropdown=kS;tt.Target=FS;tt.Divider=OS;var L6=Object.defineProperty,th=Object.getOwnPropertySymbols,F6=Object.prototype.hasOwnProperty,A6=Object.prototype.propertyIsEnumerable,rh=(e,t,r)=>t in e?L6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V6=(e,t)=>{for(var r in t||(t={}))F6.call(t,r)&&rh(e,r,t[r]);if(th)for(var r of th(t))A6.call(t,r)&&rh(e,r,t[r]);return e};const H6={xs:320,sm:380,md:440,lg:620,xl:780};function B6(e){return e?{position:"absolute",top:0,left:0,right:0,bottom:0}:{}}var W6=Q((e,{overflow:t,size:r,centered:n,zIndex:o,fullScreen:i})=>({close:{},overlay:{display:i?"none":void 0},root:{position:"fixed",zIndex:o,top:0,left:0,right:0,bottom:0},inner:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowY:"auto",padding:i?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:V6({position:"relative",width:i?void 0:e.fn.size({sizes:H6,size:r}),borderRadius:i?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,marginLeft:i?void 0:"calc(var(--removed-scroll-width, 0px) * -1)"},B6(i)),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"}})),U6=W6,G6=Object.defineProperty,cs=Object.getOwnPropertySymbols,HS=Object.prototype.hasOwnProperty,BS=Object.prototype.propertyIsEnumerable,nh=(e,t,r)=>t in e?G6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y6=(e,t)=>{for(var r in t||(t={}))HS.call(t,r)&&nh(e,r,t[r]);if(cs)for(var r of cs(t))BS.call(t,r)&&nh(e,r,t[r]);return e},X6=(e,t)=>{var r={};for(var n in e)HS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cs)for(var n of cs(e))t.indexOf(n)<0&&BS.call(e,n)&&(r[n]=e[n]);return r};const q6={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:io("modal")};function yu(e){const t=ee("Modal",q6,e),{className:r,opened:n,title:o,onClose:i,children:l,withCloseButton:a,overlayOpacity:s,size:u,transitionDuration:c,closeButtonLabel:f,overlayColor:d,overflow:g,transition:y,padding:w,shadow:v,radius:m,id:h,classNames:_,styles:x,closeOnClickOutside:$,trapFocus:b,closeOnEscape:P,centered:E,target:O,withinPortal:D,zIndex:z,overlayBlur:T,transitionTimingFunction:F,fullScreen:G,unstyled:q,lockScroll:B,withFocusReturn:ne}=t,se=X6(t,["className","opened","title","onClose","children","withCloseButton","overlayOpacity","size","transitionDuration","closeButtonLabel","overlayColor","overflow","transition","padding","shadow","radius","id","classNames","styles","closeOnClickOutside","trapFocus","closeOnEscape","centered","target","withinPortal","zIndex","overlayBlur","transitionTimingFunction","fullScreen","unstyled","lockScroll","withFocusReturn"]),ie=lo(h),De=`${ie}-title`,k=`${ie}-body`,{classes:N,cx:A,theme:R}=U6({size:u,overflow:g,centered:E,zIndex:z,fullScreen:G},{unstyled:q,classNames:_,styles:x,name:"Modal"}),M=rw(b&&n),W=typeof s=="number"?s:R.colorScheme==="dark"?.85:.75,[,Z]=z2(),Te=ae=>{!b&&ae.key==="Escape"&&P&&i()};return p.exports.useEffect(()=>{if(!b)return window.addEventListener("keydown",Te),()=>window.removeEventListener("keydown",Te)},[b]),Z1({opened:n,shouldReturnFocus:b&&ne}),S(Vi,{withinPortal:D,target:O,children:S(pS,{onExited:()=>B&&Z(!1),onEntered:()=>B&&Z(!0),mounted:n,duration:c,exitDuration:c,timingFunction:F,transitions:{modal:{duration:c,transition:y||(G?"fade":"pop")},overlay:{duration:c/2,transition:"fade",timingFunction:"ease"}},children:ae=>S(X,{...Y6({id:ie,className:A(N.root,r)},se),children:H("div",{className:N.inner,onKeyDownCapture:He=>{var or;((or=He.target)==null?void 0:or.getAttribute("data-mantine-stop-propagation"))!=="true"&&He.key==="Escape"&&P&&i()},ref:M,children:[H(i4,{className:N.modal,shadow:v,p:w,radius:m,role:"dialog","aria-labelledby":De,"aria-describedby":k,"aria-modal":!0,tabIndex:-1,style:ae.modal,unstyled:q,children:[(o||a)&&H("div",{className:N.header,children:[S(vt,{id:De,className:N.title,children:o}),a&&S(su,{iconSize:16,onClick:i,"aria-label":f,className:N.close})]}),S("div",{id:k,className:N.body,children:l})]}),S("div",{style:ae.overlay,children:S(k4,{className:N.overlay,sx:{position:"fixed"},zIndex:0,onMouseDown:()=>$&&i(),blur:T,color:d||(R.colorScheme==="dark"?R.colors.dark[9]:R.black),opacity:W,unstyled:q})})]})})})})}yu.displayName="@mantine/core/Modal";var K6=Object.defineProperty,fs=Object.getOwnPropertySymbols,WS=Object.prototype.hasOwnProperty,US=Object.prototype.propertyIsEnumerable,oh=(e,t,r)=>t in e?K6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ih=(e,t)=>{for(var r in t||(t={}))WS.call(t,r)&&oh(e,r,t[r]);if(fs)for(var r of fs(t))US.call(t,r)&&oh(e,r,t[r]);return e},Q6=(e,t)=>{var r={};for(var n in e)WS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&fs)for(var n of fs(e))t.indexOf(n)<0&&US.call(e,n)&&(r[n]=e[n]);return r};const Z6={xs:14,sm:18,md:20,lg:24,xl:28};function J6(e){var t=e,{size:r,error:n,style:o}=t,i=Q6(t,["size","error","style"]);const l=st(),a=l.fn.size({size:r,sizes:Z6});return C.createElement("svg",ih({width:a,height:a,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:ih({color:n?l.colors.red[6]:l.colors.gray[6]},o),"data-chevron":!0},i),C.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 GS({shouldClear:e,clearButtonLabel:t,onClear:r,size:n,error:o,clearButtonTabIndex:i}){return e?C.createElement(su,{variant:"transparent","aria-label":t,onClick:r,size:n,tabIndex:i}):C.createElement(J6,{error:o,size:n})}GS.displayName="@mantine/core/SelectRightSection";var eI=Object.defineProperty,tI=Object.defineProperties,rI=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,YS=Object.prototype.hasOwnProperty,XS=Object.prototype.propertyIsEnumerable,lh=(e,t,r)=>t in e?eI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dc=(e,t)=>{for(var r in t||(t={}))YS.call(t,r)&&lh(e,r,t[r]);if(ds)for(var r of ds(t))XS.call(t,r)&&lh(e,r,t[r]);return e},ah=(e,t)=>tI(e,rI(t)),nI=(e,t)=>{var r={};for(var n in e)YS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ds)for(var n of ds(e))t.indexOf(n)<0&&XS.call(e,n)&&(r[n]=e[n]);return r};const oI={xs:24,sm:30,md:34,lg:44,xl:54};function iI(e){var t=e,{styles:r,rightSection:n,rightSectionWidth:o,theme:i}=t,l=nI(t,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:o,styles:r};const a=typeof r=="function"?r(i):r;return{rightSectionWidth:i.fn.size({size:l.size,sizes:oI}),rightSection:!l.readOnly&&!(l.disabled&&l.shouldClear)&&C.createElement(GS,dc({},l)),styles:ah(dc({},a),{rightSection:ah(dc({},a?.rightSection),{pointerEvents:l.shouldClear?void 0:"none"})})}}const lI=(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 sh({direction:e,size:t}){return C.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"},C.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 qS={xs:20,sm:24,md:30,lg:34,xl:36};var aI=Q((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:qS}),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}})),sI=aI,uI=Object.defineProperty,cI=Object.defineProperties,fI=Object.getOwnPropertyDescriptors,ps=Object.getOwnPropertySymbols,KS=Object.prototype.hasOwnProperty,QS=Object.prototype.propertyIsEnumerable,uh=(e,t,r)=>t in e?uI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pc=(e,t)=>{for(var r in t||(t={}))KS.call(t,r)&&uh(e,r,t[r]);if(ps)for(var r of ps(t))QS.call(t,r)&&uh(e,r,t[r]);return e},dI=(e,t)=>cI(e,fI(t)),pI=(e,t)=>{var r={};for(var n in e)KS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ps)for(var n of ps(e))t.indexOf(n)<0&&QS.call(e,n)&&(r[n]=e[n]);return r};const gI={type:"text",size:"sm",__staticSelector:"TextInput"},Mr=p.exports.forwardRef((e,t)=>{const r=j_("TextInput",gI,e),{inputProps:n,wrapperProps:o}=r,i=pI(r,["inputProps","wrapperProps"]);return S(Ya.Wrapper,{...pc({},o),children:S(Ya,{...dI(pc(pc({},n),i),{ref:t})})})});Mr.displayName="@mantine/core/TextInput";var mI=Object.defineProperty,vI=Object.defineProperties,hI=Object.getOwnPropertyDescriptors,gs=Object.getOwnPropertySymbols,ZS=Object.prototype.hasOwnProperty,JS=Object.prototype.propertyIsEnumerable,ch=(e,t,r)=>t in e?mI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yI=(e,t)=>{for(var r in t||(t={}))ZS.call(t,r)&&ch(e,r,t[r]);if(gs)for(var r of gs(t))JS.call(t,r)&&ch(e,r,t[r]);return e},wI=(e,t)=>vI(e,hI(t)),_I=(e,t)=>{var r={};for(var n in e)ZS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gs)for(var n of gs(e))t.indexOf(n)<0&&JS.call(e,n)&&(r[n]=e[n]);return r};const SI=e=>e||"",xI=e=>{if(e==="-")return e;let t=e;t[0]==="."&&(t=`0${e}`);const r=parseFloat(t);if(!Number.isNaN(r))return e},fh={xs:10,sm:14,md:16,lg:18,xl:20},bI={step:1,hideControls:!1,size:"sm",precision:0,noClampOnBlur:!1,formatter:SI,parser:xI},Oi=p.exports.forwardRef((e,t)=>{const r=ee("NumberInput",bI,e),{disabled:n,value:o,onChange:i,decimalSeparator:l,min:a,max:s,startValue:u,step:c,stepHoldInterval:f,stepHoldDelay:d,onBlur:g,onFocus:y,hideControls:w,radius:v,variant:m,precision:h,defaultValue:_,noClampOnBlur:x,handlersRef:$,classNames:b,styles:P,size:E,rightSection:O,rightSectionWidth:D,formatter:z,parser:T,inputMode:F,unstyled:G}=r,q=_I(r,["disabled","value","onChange","decimalSeparator","min","max","startValue","step","stepHoldInterval","stepHoldDelay","onBlur","onFocus","hideControls","radius","variant","precision","defaultValue","noClampOnBlur","handlersRef","classNames","styles","size","rightSection","rightSectionWidth","formatter","parser","inputMode","unstyled"]),{classes:B,cx:ne,theme:se}=sI({radius:v,size:E},{classNames:b,styles:P,unstyled:G,name:"NumberInput"}),[ie,De]=p.exports.useState(!1),[k,N]=p.exports.useState(typeof o=="number"?o:typeof _=="number"?_:void 0),A=typeof o=="number"?o:k,[R,M]=p.exports.useState(typeof A=="number"?A.toFixed(h):""),W=p.exports.useRef(),Z=V=>{V!==k&&!Number.isNaN(V)&&(typeof i=="function"&&i(V),N(V))},Te=(V="")=>{let oe=typeof V=="number"?String(V):V;return l&&(oe=oe.replace(/\./g,l)),z(oe)},ae=V=>{let oe=V;return l&&(oe=oe.replace(new RegExp(`\\${l}`,"g"),".")),T(oe)},He=typeof a=="number"?a:-1/0,or=typeof s=="number"?s:1/0,mn=p.exports.useRef();mn.current=()=>{var V,oe,me;if(k===void 0)Z((V=u??a)!=null?V:0),M((me=(oe=u?.toFixed(h))!=null?oe:a?.toFixed(h))!=null?me:"0");else{const Be=oc(k+c,He,or).toFixed(h);Z(parseFloat(Be)),M(Be)}};const fo=p.exports.useRef();fo.current=()=>{var V,oe,me;if(k===void 0)Z((V=u??a)!=null?V:0),M((me=(oe=u?.toFixed(h))!=null?oe:a?.toFixed(h))!=null?me:"0");else{const Be=oc(k-c,He,or).toFixed(h);Z(parseFloat(Be)),M(Be)}},nw($,{increment:mn.current,decrement:fo.current}),p.exports.useEffect(()=>{typeof o=="number"&&!ie&&(N(o),M(o.toFixed(h))),_===void 0&&o===void 0&&!ie&&(N(o),M(""))},[o]);const po=d!==void 0&&f!==void 0,Qe=p.exports.useRef(null),go=p.exports.useRef(0),Ft=()=>{Qe.current&&window.clearTimeout(Qe.current),Qe.current=null,go.current=0},Xi=V=>{V?mn.current():fo.current(),go.current+=1},qi=V=>{if(Xi(V),po){const oe=typeof f=="number"?f:f(go.current);Qe.current=window.setTimeout(()=>qi(V),oe)}},Re=(V,oe)=>{V.preventDefault(),W.current.focus(),Xi(oe),po&&(Qe.current=window.setTimeout(()=>qi(oe),d))};p.exports.useEffect(()=>(Ft(),Ft),[]);const Eu=H("div",{className:B.rightSection,children:[S("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:A>=s,className:ne(B.control,B.controlUp),onPointerDown:V=>{Re(V,!0)},onPointerUp:Ft,onPointerLeave:Ft,children:S(sh,{size:se.fn.size({size:E,sizes:fh}),direction:"up"})}),S("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:A<=a,className:ne(B.control,B.controlDown),onPointerDown:V=>{Re(V,!1)},onPointerUp:Ft,onPointerLeave:Ft,children:S(sh,{size:se.fn.size({size:E,sizes:fh}),direction:"down"})})]}),_t=V=>{if(V.nativeEvent.isComposing)return;const me=V.target.value,Be=ae(me);M(Be),me===""||me==="-"?Z(void 0):me.trim()!==""&&!Number.isNaN(Be)&&Z(parseFloat(Be))},Me=V=>{var oe;if(V.target.value==="")M(""),Z(void 0);else{let me=V.target.value;(me[0]===`${l}`||me[0]===".")&&(me=`0${me}`);const Be=ae(me),vo=oc(parseFloat(Be),He,or);Number.isNaN(vo)?M((oe=A?.toFixed(h))!=null?oe:""):x||(M(vo.toFixed(h)),Z(parseFloat(vo.toFixed(h))))}De(!1),typeof g=="function"&&g(V)},mo=V=>{De(!0),typeof y=="function"&&y(V)},vn=V=>{if(V.repeat&&po&&(V.key==="ArrowUp"||V.key==="ArrowDown")){V.preventDefault();return}V.key==="ArrowUp"?Re(V,!0):V.key==="ArrowDown"&&Re(V,!1)},Ki=V=>{(V.key==="ArrowUp"||V.key==="ArrowDown")&&Ft()};return S(Mr,{...wI(yI({},q),{variant:m,value:Te(R),disabled:n,ref:dn(W,t),type:"text",onChange:_t,onBlur:Me,onFocus:mo,onKeyDown:vn,onKeyUp:Ki,rightSection:O||(n||w||m==="unstyled"?null:Eu),rightSectionWidth:D||se.fn.size({size:E,sizes:qS})+1,radius:v,max:s,min:a,step:c,size:E,styles:P,classNames:b,inputMode:F||lI(c,h,T2()),__staticSelector:"NumberInput",unstyled:G})})});Oi.displayName="@mantine/core/NumberInput";var PI=Object.defineProperty,dh=Object.getOwnPropertySymbols,$I=Object.prototype.hasOwnProperty,OI=Object.prototype.propertyIsEnumerable,ph=(e,t,r)=>t in e?PI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,CI=(e,t)=>{for(var r in t||(t={}))$I.call(t,r)&&ph(e,r,t[r]);if(dh)for(var r of dh(t))OI.call(t,r)&&ph(e,r,t[r]);return e};function ex(e){return C.createElement("svg",CI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.createElement("path",{d:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z",fill:"currentColor"}))}var EI=Object.defineProperty,gh=Object.getOwnPropertySymbols,RI=Object.prototype.hasOwnProperty,kI=Object.prototype.propertyIsEnumerable,mh=(e,t,r)=>t in e?EI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,II=(e,t)=>{for(var r in t||(t={}))RI.call(t,r)&&mh(e,r,t[r]);if(gh)for(var r of gh(t))kI.call(t,r)&&mh(e,r,t[r]);return e};function tx(e){return C.createElement("svg",II({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.createElement("path",{d:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",fill:"currentColor"}))}var NI=Object.defineProperty,vh=Object.getOwnPropertySymbols,zI=Object.prototype.hasOwnProperty,DI=Object.prototype.propertyIsEnumerable,hh=(e,t,r)=>t in e?NI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TI=(e,t)=>{for(var r in t||(t={}))zI.call(t,r)&&hh(e,r,t[r]);if(vh)for(var r of vh(t))DI.call(t,r)&&hh(e,r,t[r]);return e};function rx(e){return C.createElement("svg",TI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.createElement("path",{d:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",fill:"currentColor"}))}var MI=Object.defineProperty,yh=Object.getOwnPropertySymbols,jI=Object.prototype.hasOwnProperty,LI=Object.prototype.propertyIsEnumerable,wh=(e,t,r)=>t in e?MI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,FI=(e,t)=>{for(var r in t||(t={}))jI.call(t,r)&&wh(e,r,t[r]);if(yh)for(var r of yh(t))LI.call(t,r)&&wh(e,r,t[r]);return e};function nx(e){return C.createElement("svg",FI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.createElement("path",{d:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",fill:"currentColor"}))}var AI=Object.defineProperty,_h=Object.getOwnPropertySymbols,VI=Object.prototype.hasOwnProperty,HI=Object.prototype.propertyIsEnumerable,Sh=(e,t,r)=>t in e?AI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BI=(e,t)=>{for(var r in t||(t={}))VI.call(t,r)&&Sh(e,r,t[r]);if(_h)for(var r of _h(t))HI.call(t,r)&&Sh(e,r,t[r]);return e};function ox(e){return C.createElement("svg",BI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.createElement("path",{d:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",fill:"currentColor"}))}var WI=Object.defineProperty,ms=Object.getOwnPropertySymbols,ix=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,xh=(e,t,r)=>t in e?WI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UI=(e,t)=>{for(var r in t||(t={}))ix.call(t,r)&&xh(e,r,t[r]);if(ms)for(var r of ms(t))lx.call(t,r)&&xh(e,r,t[r]);return e},GI=(e,t)=>{var r={};for(var n in e)ix.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ms)for(var n of ms(e))t.indexOf(n)<0&&lx.call(e,n)&&(r[n]=e[n]);return r};const YI={dots:ex,next:tx,prev:rx,first:nx,last:ox},XI={dots:ex,prev:tx,next:rx,last:nx,first:ox};function ax(e){var t=e,{page:r,active:n,onClick:o}=t,i=GI(t,["page","active","onClick"]);const a=(st().dir==="rtl"?XI:YI)[r],s=a?C.createElement(a,null):r;return C.createElement("button",UI({type:"button",onClick:o},i),s)}ax.displayName="@mantine/core/Pagination/DefaultItem";var qI=Object.defineProperty,KI=Object.defineProperties,QI=Object.getOwnPropertyDescriptors,bh=Object.getOwnPropertySymbols,ZI=Object.prototype.hasOwnProperty,JI=Object.prototype.propertyIsEnumerable,Ph=(e,t,r)=>t in e?qI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eN=(e,t)=>{for(var r in t||(t={}))ZI.call(t,r)&&Ph(e,r,t[r]);if(bh)for(var r of bh(t))JI.call(t,r)&&Ph(e,r,t[r]);return e},tN=(e,t)=>KI(e,QI(t));const $h={xs:22,sm:26,md:32,lg:38,xl:44};var rN=Q((e,{size:t,radius:r,color:n})=>{const o=e.fn.variant({color:n,variant:"filled"});return{item:tN(eN({},e.fn.focusStyles()),{cursor:"pointer",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,height:e.fn.size({size:t,sizes:$h}),minWidth:e.fn.size({size:t,sizes:$h}),padding:`0 ${e.fn.size({size:t,sizes:e.spacing})/2}px`,fontSize:e.fn.size({size:t,sizes:e.fontSizes}),borderRadius:e.fn.radius(r),lineHeight:1,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,"&:active:not(:disabled):not([data-dots])":e.activeStyles,"&:disabled":{opacity:.6,cursor:"not-allowed",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&[data-dots]":{cursor:"default",borderColor:"transparent",backgroundColor:"transparent"},"&[data-active]":{borderColor:"transparent",color:o.color,backgroundColor:o.background}})}}),nN=rN,oN=Object.defineProperty,vs=Object.getOwnPropertySymbols,sx=Object.prototype.hasOwnProperty,ux=Object.prototype.propertyIsEnumerable,Oh=(e,t,r)=>t in e?oN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iN=(e,t)=>{for(var r in t||(t={}))sx.call(t,r)&&Oh(e,r,t[r]);if(vs)for(var r of vs(t))ux.call(t,r)&&Oh(e,r,t[r]);return e},lN=(e,t)=>{var r={};for(var n in e)sx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vs)for(var n of vs(e))t.indexOf(n)<0&&ux.call(e,n)&&(r[n]=e[n]);return r};const aN={itemComponent:ax,initialPage:1,siblings:1,boundaries:1,size:"md",radius:"sm",withEdges:!1,withControls:!0},cx=p.exports.forwardRef((e,t)=>{const r=ee("Pagination",aN,e),{itemComponent:n,classNames:o,styles:i,page:l,initialPage:a,color:s,total:u,siblings:c,boundaries:f,size:d,radius:g,onChange:y,getItemAriaLabel:w,spacing:v,withEdges:m,withControls:h,sx:_,unstyled:x}=r,$=lN(r,["itemComponent","classNames","styles","page","initialPage","color","total","siblings","boundaries","size","radius","onChange","getItemAriaLabel","spacing","withEdges","withControls","sx","unstyled"]),{classes:b,theme:P}=nN({color:s,size:d,radius:g},{classNames:o,styles:i,unstyled:x,name:"Pagination"}),{range:E,setPage:O,next:D,previous:z,active:T,first:F,last:G}=x2({page:l,siblings:c,total:u,onChange:y,initialPage:a,boundaries:f}),q=E.map((B,ne)=>S(n,{page:B,active:B===T,"aria-current":B===T?"page":void 0,"aria-label":typeof w=="function"?w(B):null,tabIndex:B==="dots"?-1:0,"data-dots":B==="dots"||void 0,"data-active":B===T||void 0,className:b.item,onClick:B!=="dots"?()=>O(B):void 0},ne));return H(Lt,{...iN({role:"navigation",spacing:v||P.fn.size({size:d,sizes:P.spacing})/2,ref:t,sx:_,unstyled:x},$),children:[m&&S(n,{page:"first",onClick:F,"aria-label":w?w("first"):void 0,"aria-disabled":T===1,className:b.item,disabled:T===1}),h&&S(n,{page:"prev",onClick:z,"aria-label":w?w("prev"):void 0,"aria-disabled":T===1,className:b.item,disabled:T===1}),q,h&&S(n,{page:"next",onClick:D,"aria-label":w?w("next"):void 0,"aria-disabled":T===u,className:b.item,disabled:T===u}),m&&S(n,{page:"last",onClick:G,"aria-label":w?w("last"):void 0,"aria-disabled":T===u,className:b.item,disabled:T===u})]})});cx.displayName="@mantine/core/Pagination";function sN({data:e,searchable:t,limit:r,searchValue:n,filter:o,value:i,filterDataOnExactSearchMatch:l}){if(!t)return e;const a=i!=null&&e.find(u=>u.value===i)||null;if(a&&!l&&a?.label===n)return e;const s=[];for(let u=0;u=r));u+=1);return s}var uN=Q(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}})),cN=uN,fN=Object.defineProperty,dN=Object.defineProperties,pN=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,fx=Object.prototype.hasOwnProperty,dx=Object.prototype.propertyIsEnumerable,Ch=(e,t,r)=>t in e?fN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mo=(e,t)=>{for(var r in t||(t={}))fx.call(t,r)&&Ch(e,r,t[r]);if(hs)for(var r of hs(t))dx.call(t,r)&&Ch(e,r,t[r]);return e},gc=(e,t)=>dN(e,pN(t)),gN=(e,t)=>{var r={};for(var n in e)fx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hs)for(var n of hs(e))t.indexOf(n)<0&&dx.call(e,n)&&(r[n]=e[n]);return r};function mN(e,t){return t.label.toLowerCase().trim().includes(e.toLowerCase().trim())}function vN(e,t){return!!e&&!t.some(r=>r.label.toLowerCase()===e.toLowerCase())}const hN={required:!1,size:"sm",shadow:"sm",itemComponent:jw,transition:"fade",transitionDuration:0,initiallyOpened:!1,filter:mN,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:vN,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:io("popover"),clearButtonTabIndex:0,positionDependencies:[],dropdownPosition:"flip"},Ci=p.exports.forwardRef((e,t)=>{const r=j_("Select",hN,e),{inputProps:n,wrapperProps:o,shadow:i,data:l,value:a,defaultValue:s,onChange:u,itemComponent:c,onKeyDown:f,onBlur:d,onFocus:g,transition:y,transitionDuration:w,initiallyOpened:v,transitionTimingFunction:m,unstyled:h,classNames:_,styles:x,filter:$,maxDropdownHeight:b,searchable:P,clearable:E,nothingFound:O,clearButtonLabel:D,limit:z,disabled:T,onSearchChange:F,rightSection:G,rightSectionWidth:q,creatable:B,getCreateLabel:ne,shouldCreate:se,selectOnBlur:ie,onCreate:De,dropdownComponent:k,onDropdownClose:N,onDropdownOpen:A,withinPortal:R,switchDirectionOnFlip:M,zIndex:W,name:Z,dropdownPosition:Te,allowDeselect:ae,placeholder:He,filterDataOnExactSearchMatch:or,clearButtonTabIndex:mn,form:fo,positionDependencies:po,readOnly:Qe}=r,go=gN(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","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","clearButtonTabIndex","form","positionDependencies","readOnly"]),{classes:Ft,cx:Xi,theme:qi}=cN(),[Re,Eu]=p.exports.useState(v),[_t,Me]=p.exports.useState(-1),mo=p.exports.useRef(),vn=p.exports.useRef({}),[Ki,V]=p.exports.useState("column"),oe=Ki==="column",{scrollIntoView:me,targetRef:Be,scrollableRef:vo}=C2({duration:0,offset:5,cancelable:!1,isList:!0}),wb=ae===void 0?E:ae,ut=L=>{if(Re!==L){Eu(L);const pe=L?A:N;typeof pe=="function"&&pe()}},Ru=B&&typeof ne=="function";let ku=null;const _b=l.map(L=>typeof L=="string"?{label:L,value:L}:L),Qi=U$({data:_b}),[St,hn,wp]=Ai({value:a,defaultValue:s,finalValue:null,onChange:u}),At=Qi.find(L=>L.value===St),[jr,Sb]=p.exports.useState(At?.label||""),Lr=L=>{Sb(L),P&&typeof F=="function"&&F(L)},xb=()=>{var L;Qe||(hn(null),wp||Lr(""),(L=mo.current)==null||L.focus())};p.exports.useEffect(()=>{const L=Qi.find(pe=>pe.value===St);L?Lr(L.label):(!Ru||!St)&&Lr("")},[St]),p.exports.useEffect(()=>{At&&(!P||!Re)&&Lr(At.label)},[At?.label]);const Zi=L=>{if(!Qe)if(wb&&At?.value===L.value)hn(null),ut(!1);else{if(L.creatable&&typeof De=="function"){const pe=De(L.value);hn(typeof pe=="string"?pe:pe.value)}else hn(L.value);wp||Lr(L.label),Me(-1),ut(!1),mo.current.focus()}},Pe=sN({data:Qi,searchable:P,limit:z,searchValue:jr,filter:$,filterDataOnExactSearchMatch:or,value:St});Ru&&se(jr,Pe)&&(ku=ne(jr),Pe.push({label:jr,value:jr,creatable:!0}));const _p=(L,pe,Ze)=>{let Je=L;for(;Ze(Je);)if(Je=pe(Je),!Pe[Je].disabled)return Je;return L};kr(()=>{Me(-1)},[jr]);const ho=St?Pe.findIndex(L=>L.value===St):0,Sp=()=>{Me(L=>{var pe;const Ze=_p(L,Je=>Je-1,Je=>Je>0);return Be.current=vn.current[(pe=Pe[Ze])==null?void 0:pe.value],me({alignment:oe?"start":"end"}),Ze})},xp=()=>{Me(L=>{var pe;const Ze=_p(L,Je=>Je+1,Je=>Jewindow.setTimeout(()=>{var L;Be.current=vn.current[(L=Pe[ho])==null?void 0:L.value],me({alignment:oe?"end":"start"})},0),bb=L=>{switch(typeof f=="function"&&f(L),L.key){case"ArrowUp":{L.preventDefault(),Re?oe?Sp():xp():(Me(ho),ut(!0),yo());break}case"ArrowDown":{L.preventDefault(),Re?oe?xp():Sp():(Me(ho),ut(!0),yo());break}case"Home":{if(!P){L.preventDefault(),Re||ut(!0);const pe=Pe.findIndex(Ze=>!Ze.disabled);Me(pe),me({alignment:oe?"end":"start"})}break}case"End":{if(!P){L.preventDefault(),Re||ut(!0);const pe=Pe.map(Ze=>!!Ze.disabled).lastIndexOf(!1);Me(pe),me({alignment:oe?"end":"start"})}break}case"Escape":{L.preventDefault(),ut(!1),Me(-1);break}case" ":{P||(Pe[_t]&&Re?(L.preventDefault(),Zi(Pe[_t])):(ut(!0),Me(ho),yo()));break}case"Enter":P||L.preventDefault(),Pe[_t]&&Re&&(L.preventDefault(),Zi(Pe[_t]))}},Pb=L=>{typeof d=="function"&&d(L);const pe=Qi.find(Ze=>Ze.value===St);ie&&Pe[_t]&&Re&&Zi(Pe[_t]),Lr(pe?.label||""),ut(!1)},$b=L=>{typeof g=="function"&&g(L),P&&(ut(!0),yo())},Ob=L=>{Qe||(Lr(L.currentTarget.value),E&&L.currentTarget.value===""&&hn(null),Me(-1),ut(!0))},Cb=()=>{if(!Qe){let L=!0;P||(L=!Re),ut(L),St&&L&&(Me(ho),yo())}},wo=!Qe&&(Pe.length>0?Re:Re&&!!O);return S(Ya.Wrapper,{...gc(Mo({},o),{__staticSelector:"Select"}),children:H(li,{opened:wo,transition:y,transitionDuration:w,shadow:"sm",withinPortal:R,__staticSelector:"Select",onDirectionChange:V,switchDirectionOnFlip:M,zIndex:W,dropdownPosition:Te,positionDependencies:po,classNames:_,styles:x,unstyled:h,children:[S(li.Target,{children:H("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":wo?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":wo,onMouseLeave:()=>Me(-1),tabIndex:-1,children:[S("input",{type:"hidden",name:Z,value:St||"",form:fo,disabled:T}),S(Ya,{...Mo(gc(Mo(Mo({autoComplete:"off",type:"search"},n),go),{ref:dn(t,mo),onKeyDown:bb,__staticSelector:"Select",value:jr,placeholder:He,onChange:Ob,"aria-autocomplete":"list","aria-controls":wo?`${n.id}-items`:null,"aria-activedescendant":_t>=0?`${n.id}-${_t}`:null,onClick:Cb,onBlur:Pb,onFocus:$b,readOnly:!P||Qe,disabled:T,"data-mantine-stop-propagation":wo,name:null,classNames:gc(Mo({},_),{input:Xi({[Ft.input]:!P},_?.input)})}),iI({theme:qi,rightSection:G,rightSectionWidth:q,styles:x,size:n.size,shouldClear:E&&!!At,clearButtonLabel:D,onClear:xb,error:o.error,clearButtonTabIndex:mn,disabled:T,readOnly:Qe}))})]})}),S(li.Dropdown,{component:k||Zd,maxHeight:b,direction:Ki,id:n.id,innerRef:vo,children:S(Dw,{data:Pe,hovered:_t,classNames:_,styles:x,isItemSelected:L=>L===St,uuid:n.id,__staticSelector:"Select",onItemHover:Me,onItemSelect:Zi,itemsRefs:vn,itemComponent:c,size:n.size,nothingFound:O,creatable:Ru&&!!ku,createLabel:ku,"aria-label":o.label,unstyled:h})})]})})});Ci.displayName="@mantine/core/Select";function yN(e,t){if(t.length===0)return t;const r="maxWidth"in t[0]?"maxWidth":"minWidth",n=[...t].sort((o,i)=>e.fn.size({size:i[r],sizes:e.breakpoints})-e.fn.size({size:o[r],sizes:e.breakpoints}));return r==="minWidth"?n.reverse():n}var wN=Object.defineProperty,Eh=Object.getOwnPropertySymbols,_N=Object.prototype.hasOwnProperty,SN=Object.prototype.propertyIsEnumerable,Rh=(e,t,r)=>t in e?wN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xN=(e,t)=>{for(var r in t||(t={}))_N.call(t,r)&&Rh(e,r,t[r]);if(Eh)for(var r of Eh(t))SN.call(t,r)&&Rh(e,r,t[r]);return e},bN=Q((e,{spacing:t,breakpoints:r,cols:n})=>{const o=yN(e,r).reduce((i,l)=>{const a="maxWidth"in l?"max-width":"min-width",s=e.fn.size({size:a==="max-width"?l.maxWidth:l.minWidth,sizes:e.breakpoints});return i[`@media (${a}: ${s+(a==="max-width"?0:1)}px)`]={gridTemplateColumns:`repeat(${l.cols}, minmax(0, 1fr))`,gap:e.fn.size({size:l.spacing||t,sizes:e.spacing})},i},{});return{root:xN({boxSizing:"border-box",display:"grid",gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,gap:e.fn.size({size:t,sizes:e.spacing})},o)}}),PN=bN,$N=Object.defineProperty,ys=Object.getOwnPropertySymbols,px=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable,kh=(e,t,r)=>t in e?$N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ON=(e,t)=>{for(var r in t||(t={}))px.call(t,r)&&kh(e,r,t[r]);if(ys)for(var r of ys(t))gx.call(t,r)&&kh(e,r,t[r]);return e},CN=(e,t)=>{var r={};for(var n in e)px.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ys)for(var n of ys(e))t.indexOf(n)<0&&gx.call(e,n)&&(r[n]=e[n]);return r};const EN={breakpoints:[],cols:1,spacing:"md"},mx=p.exports.forwardRef((e,t)=>{const r=ee("SimpleGrid",EN,e),{className:n,breakpoints:o,cols:i,spacing:l,children:a,unstyled:s}=r,u=CN(r,["className","breakpoints","cols","spacing","children","unstyled"]),{classes:c,cx:f}=PN({breakpoints:o,cols:i,spacing:l},{unstyled:s,name:"SimpleGrid"});return S(X,{...ON({className:f(c.root,n),ref:t},u),children:a})});mx.displayName="@mantine/core/SimpleGrid";var RN=Object.defineProperty,kN=Object.defineProperties,IN=Object.getOwnPropertyDescriptors,Ih=Object.getOwnPropertySymbols,NN=Object.prototype.hasOwnProperty,zN=Object.prototype.propertyIsEnumerable,Nh=(e,t,r)=>t in e?RN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zh=(e,t)=>{for(var r in t||(t={}))NN.call(t,r)&&Nh(e,r,t[r]);if(Ih)for(var r of Ih(t))zN.call(t,r)&&Nh(e,r,t[r]);return e},Dh=(e,t)=>kN(e,IN(t));const DN={xs:16,sm:20,md:24,lg:30,xl:36},mc={xs:30,sm:38,md:46,lg:56,xl:68},Th={xs:12,sm:14,md:18,lg:22,xl:28},TN={xs:5,sm:6,md:7,lg:9,xl:11};var MN=Q((e,{size:t,radius:r,color:n,offLabel:o,onLabel:i})=>{const l=e.fn.size({size:t,sizes:Th}),a=e.fn.size({size:r,sizes:e.radius}),s=e.fn.variant({variant:"filled",color:n});return{root:{display:"flex",alignItems:"center"},input:Dh(zh({},e.fn.focusStyles()),{overflow:"hidden",WebkitTapHighlightColor:"transparent",position:"relative",borderRadius:a,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[2],border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,height:e.fn.size({size:t,sizes:DN}),width:e.fn.size({size:t,sizes:mc}),minWidth:e.fn.size({size:t,sizes:mc}),margin:0,transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:"150ms",boxSizing:"border-box",appearance:"none",display:"flex",alignItems:"center",fontSize:e.fn.size({size:t,sizes:TN}),fontWeight:600,cursor:e.cursorType,"&::before":{zIndex:1,borderRadius:a,boxSizing:"border-box",content:'""',display:"block",backgroundColor:e.white,height:l,width:l,border:`1px solid ${e.colorScheme==="dark"?e.white:e.colors.gray[3]}`,transition:`transform 150ms ${e.transitionTimingFunction}`,transform:`translateX(${t==="xs"?1:2}px)`,"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":!1}},"&::after":{position:"absolute",zIndex:0,display:"flex",height:"100%",alignItems:"center",lineHeight:0,right:"10%",transform:"translateX(0)",content:o?`'${o}'`:"''",color:e.colorScheme==="dark"?e.colors.dark[1]:e.colors.gray[6],transition:`color 150ms ${e.transitionTimingFunction}`},"&:checked":{backgroundColor:s.background,borderColor:s.background,"&::before":{transform:`translateX(${e.fn.size({size:t,sizes:mc})-e.fn.size({size:t,sizes:Th})-(t==="xs"?3:4)}px)`,borderColor:e.white},"&::after":{position:"absolute",zIndex:0,display:"flex",height:"100%",alignItems:"center",lineHeight:0,left:"10%",transform:"translateX(0)",content:i?`'${i}'`:"''",color:e.white,transition:`color 150ms ${e.transitionTimingFunction}`}},"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],cursor:"not-allowed","&::before":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],backgroundColor:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[0]}}}),label:Dh(zh({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),fontFamily:e.fontFamily,paddingLeft:e.spacing.sm,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,cursor:e.cursorType})}}),jN=MN,LN=Object.defineProperty,FN=Object.defineProperties,AN=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,vx=Object.prototype.hasOwnProperty,hx=Object.prototype.propertyIsEnumerable,Mh=(e,t,r)=>t in e?LN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vc=(e,t)=>{for(var r in t||(t={}))vx.call(t,r)&&Mh(e,r,t[r]);if(ws)for(var r of ws(t))hx.call(t,r)&&Mh(e,r,t[r]);return e},VN=(e,t)=>FN(e,AN(t)),HN=(e,t)=>{var r={};for(var n in e)vx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ws)for(var n of ws(e))t.indexOf(n)<0&&hx.call(e,n)&&(r[n]=e[n]);return r};const BN={offLabel:"",onLabel:"",size:"sm",radius:"xl"},cp=p.exports.forwardRef((e,t)=>{const r=ee("Switch",BN,e),{className:n,color:o,label:i,offLabel:l,onLabel:a,id:s,style:u,size:c,radius:f,wrapperProps:d,children:g,unstyled:y,styles:w,classNames:v,sx:m}=r,h=HN(r,["className","color","label","offLabel","onLabel","id","style","size","radius","wrapperProps","children","unstyled","styles","classNames","sx"]),{classes:_,cx:x}=jN({size:c,color:o,radius:f,offLabel:l,onLabel:a},{unstyled:y,styles:w,classNames:v,name:"Switch"}),{systemStyles:$,rest:b}=lu(h),P=lo(s);return H(X,{...vc(vc({className:x(_.root,n),style:u,sx:m},$),d),children:[S("input",{...VN(vc({},b),{id:P,ref:t,type:"checkbox",className:_.input})}),i&&S("label",{className:_.label,htmlFor:P,children:i})]})});cp.displayName="@mantine/core/Switch";var WN=Object.defineProperty,UN=Object.defineProperties,GN=Object.getOwnPropertyDescriptors,jh=Object.getOwnPropertySymbols,YN=Object.prototype.hasOwnProperty,XN=Object.prototype.propertyIsEnumerable,Lh=(e,t,r)=>t in e?WN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qN=(e,t)=>{for(var r in t||(t={}))YN.call(t,r)&&Lh(e,r,t[r]);if(jh)for(var r of jh(t))XN.call(t,r)&&Lh(e,r,t[r]);return e},KN=(e,t)=>UN(e,GN(t)),QN=Q((e,{captionSide:t,horizontalSpacing:r,verticalSpacing:n,fontSize:o})=>({root:KN(qN({},e.fn.fontStyles()),{width:"100%",borderCollapse:"collapse",captionSide:t,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,"& caption":{marginTop:t==="top"?0:e.spacing.xs,marginBottom:t==="bottom"?0:e.spacing.xs,fontSize:e.fontSizes.sm,color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]},"& thead tr th, & tfoot tr th":{textAlign:"left",fontWeight:"bold",color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[7],fontSize:e.fn.size({size:o,sizes:e.fontSizes}),padding:`${e.fn.size({size:n,sizes:e.spacing})}px ${e.fn.size({size:r,sizes:e.spacing})}px`},"& thead tr th":{borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`},"& tfoot tr th":{borderTop:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`},"& tbody tr td":{padding:`${e.fn.size({size:n,sizes:e.spacing})}px ${e.fn.size({size:r,sizes:e.spacing})}px`,borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,fontSize:e.fn.size({size:o,sizes:e.fontSizes})},"& tbody tr:last-of-type td":{borderBottom:"none"},"&[data-striped] tbody tr:nth-of-type(odd)":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]},"&[data-hover] tbody tr":e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1]})})})),ZN=QN,JN=Object.defineProperty,e8=Object.defineProperties,t8=Object.getOwnPropertyDescriptors,_s=Object.getOwnPropertySymbols,yx=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable,Fh=(e,t,r)=>t in e?JN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r8=(e,t)=>{for(var r in t||(t={}))yx.call(t,r)&&Fh(e,r,t[r]);if(_s)for(var r of _s(t))wx.call(t,r)&&Fh(e,r,t[r]);return e},n8=(e,t)=>e8(e,t8(t)),o8=(e,t)=>{var r={};for(var n in e)yx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_s)for(var n of _s(e))t.indexOf(n)<0&&wx.call(e,n)&&(r[n]=e[n]);return r};const i8={striped:!1,highlightOnHover:!1,captionSide:"top",horizontalSpacing:"xs",fontSize:"sm",verticalSpacing:7},_x=p.exports.forwardRef((e,t)=>{const r=ee("Table",i8,e),{className:n,children:o,striped:i,highlightOnHover:l,captionSide:a,horizontalSpacing:s,verticalSpacing:u,fontSize:c,unstyled:f}=r,d=o8(r,["className","children","striped","highlightOnHover","captionSide","horizontalSpacing","verticalSpacing","fontSize","unstyled"]),{classes:g,cx:y}=ZN({captionSide:a,verticalSpacing:u,horizontalSpacing:s,fontSize:c},{unstyled:f,name:"Table"});return S(X,{...n8(r8({},d),{component:"table",ref:t,className:y(g.root,n),"data-striped":i||void 0,"data-hover":l||void 0}),children:o})});_x.displayName="@mantine/core/Table";const Cf={context:"Tabs component was not found in the tree",value:"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value"},[l8,fp]=Ld(Cf.context);var a8=Object.defineProperty,Ah=Object.getOwnPropertySymbols,s8=Object.prototype.hasOwnProperty,u8=Object.prototype.propertyIsEnumerable,Vh=(e,t,r)=>t in e?a8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c8=(e,t)=>{for(var r in t||(t={}))s8.call(t,r)&&Vh(e,r,t[r]);if(Ah)for(var r of Ah(t))u8.call(t,r)&&Vh(e,r,t[r]);return e};function f8({variant:e,orientation:t,inverted:r},n){const o=t==="vertical";return e==="default"?{[o?"borderRight":r?"borderTop":"borderBottom"]:`2px solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:e==="outline"?{[o?"borderRight":r?"borderTop":"borderBottom"]:`1px solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:e==="pills"?{gap:n.spacing.sm/2}:{}}var d8=Q((e,t)=>{const r=t.orientation==="vertical";return{tabsList:c8({display:"flex",flexDirection:r?"column":"row",justifyContent:sS[t.position],'& [role="tab"]':{flex:t.grow?1:void 0}},f8(t,e))}}),p8=d8,g8=Object.defineProperty,m8=Object.defineProperties,v8=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertySymbols,Sx=Object.prototype.hasOwnProperty,xx=Object.prototype.propertyIsEnumerable,Hh=(e,t,r)=>t in e?g8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h8=(e,t)=>{for(var r in t||(t={}))Sx.call(t,r)&&Hh(e,r,t[r]);if(Ss)for(var r of Ss(t))xx.call(t,r)&&Hh(e,r,t[r]);return e},y8=(e,t)=>m8(e,v8(t)),w8=(e,t)=>{var r={};for(var n in e)Sx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ss)for(var n of Ss(e))t.indexOf(n)<0&&xx.call(e,n)&&(r[n]=e[n]);return r};const bx=p.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,grow:i=!1,position:l="left"}=r,a=w8(r,["children","className","grow","position"]);const{orientation:s,variant:u,color:c,radius:f,inverted:d}=fp(),{classNames:g,styles:y,unstyled:w}=fn(),{classes:v,cx:m}=p8({orientation:s,grow:i,variant:u,color:c,position:l,radius:f,inverted:d},{name:"Tabs",unstyled:w,classNames:g,styles:y});return S(X,{...y8(h8({},a),{className:m(v.tabsList,o),ref:t,role:"tablist","aria-orientation":s}),children:n})});bx.displayName="@mantine/core/TabsList";var _8=Q((e,{orientation:t})=>({panel:{flex:t==="vertical"?1:void 0}})),S8=_8,x8=Object.defineProperty,b8=Object.defineProperties,P8=Object.getOwnPropertyDescriptors,xs=Object.getOwnPropertySymbols,Px=Object.prototype.hasOwnProperty,$x=Object.prototype.propertyIsEnumerable,Bh=(e,t,r)=>t in e?x8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$8=(e,t)=>{for(var r in t||(t={}))Px.call(t,r)&&Bh(e,r,t[r]);if(xs)for(var r of xs(t))$x.call(t,r)&&Bh(e,r,t[r]);return e},O8=(e,t)=>b8(e,P8(t)),C8=(e,t)=>{var r={};for(var n in e)Px.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xs)for(var n of xs(e))t.indexOf(n)<0&&$x.call(e,n)&&(r[n]=e[n]);return r};const Ox=p.exports.forwardRef((e,t)=>{var r=e,{value:n,children:o,sx:i,className:l}=r,a=C8(r,["value","children","sx","className"]);const s=fp(),{classNames:u,styles:c,unstyled:f}=fn(),{classes:d,cx:g}=S8({orientation:s.orientation,variant:s.variant,color:s.color,radius:s.radius,inverted:s.inverted},{name:"Tabs",unstyled:f,classNames:u,styles:c});return S(X,{...O8($8({},a),{ref:t,sx:[{display:s.value!==n?"none":void 0},...xi(i)],className:g(d.panel,l),role:"tabpanel",id:s.getPanelId(n),"aria-labelledby":s.getTabId(n)}),children:o})});Ox.displayName="@mantine/core/TabsPanel";var E8=Object.defineProperty,R8=Object.defineProperties,k8=Object.getOwnPropertyDescriptors,Wh=Object.getOwnPropertySymbols,I8=Object.prototype.hasOwnProperty,N8=Object.prototype.propertyIsEnumerable,Uh=(e,t,r)=>t in e?E8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,In=(e,t)=>{for(var r in t||(t={}))I8.call(t,r)&&Uh(e,r,t[r]);if(Wh)for(var r of Wh(t))N8.call(t,r)&&Uh(e,r,t[r]);return e},Gh=(e,t)=>R8(e,k8(t));function z8(e,{variant:t,orientation:r,color:n,radius:o,inverted:i}){const l=r==="vertical",a=e.fn.variant({color:n,variant:"filled"}),s=e.fn.radius(o),u=r==="vertical"?`${s}px 0 0 ${s}px`:i?`0 0 ${s}px ${s}px`:`${s}px ${s}px 0 0`;return t==="default"?Gh(In({[l?"borderRight":i?"borderTop":"borderBottom"]:"2px solid transparent",[l?"marginRight":i?"marginTop":"marginBottom"]:-2,borderRadius:u},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]})),{"&[data-active]":In({borderColor:a.background,color:e.colorScheme==="dark"?e.white:e.black},e.fn.hover({borderColor:a.background}))}):t==="outline"?{borderRadius:u,border:"1px solid transparent",[l?"borderRight":i?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3],"&::before":{content:'""',backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,position:"absolute",bottom:l?0:i?"unset":-1,top:l?0:i?-1:"unset",[l?"width":"height"]:1,right:l?-1:0,left:l?"unset":0}}}:t==="pills"?Gh(In({borderRadius:e.fn.radius(o)},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]})),{"&[data-active]":In({backgroundColor:a.background,color:e.white},e.fn.hover({backgroundColor:a.background}))}):{}}var D8=Q((e,t)=>({tabLabel:{},tab:In({position:"relative",padding:`${e.spacing.xs}px ${e.spacing.md}px`,paddingLeft:t.withIcon?e.spacing.xs:void 0,paddingRight:t.withRightSection?e.spacing.xs:void 0,fontSize:e.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:t.orientation==="horizontal"?"center":void 0,lineHeight:1,"&:disabled":In({opacity:.5,cursor:"not-allowed"},e.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},z8(e,t)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:7}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:7}}})),T8=D8,M8=Object.defineProperty,j8=Object.defineProperties,L8=Object.getOwnPropertyDescriptors,bs=Object.getOwnPropertySymbols,Cx=Object.prototype.hasOwnProperty,Ex=Object.prototype.propertyIsEnumerable,Yh=(e,t,r)=>t in e?M8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F8=(e,t)=>{for(var r in t||(t={}))Cx.call(t,r)&&Yh(e,r,t[r]);if(bs)for(var r of bs(t))Ex.call(t,r)&&Yh(e,r,t[r]);return e},A8=(e,t)=>j8(e,L8(t)),V8=(e,t)=>{var r={};for(var n in e)Cx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&bs)for(var n of bs(e))t.indexOf(n)<0&&Ex.call(e,n)&&(r[n]=e[n]);return r};const Rx=p.exports.forwardRef((e,t)=>{var r=e,{value:n,children:o,onKeyDown:i,onClick:l,className:a,icon:s,rightSection:u,color:c}=r,f=V8(r,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]);const d=fp(),{classNames:g,styles:y,unstyled:w}=fn(),v=!!s,m=!!u,{theme:h,classes:_,cx:x}=T8({withIcon:v||m&&!o,withRightSection:m||v&&!o,orientation:d.orientation,color:c||d.color,variant:d.variant,radius:d.radius,inverted:d.inverted},{name:"Tabs",unstyled:w,classNames:g,styles:y}),$=n===d.value,b=P=>{d.onTabChange(d.allowTabDeactivation&&n===d.value?null:n),l?.(P)};return H(au,{...A8(F8({},f),{unstyled:w,className:x(_.tab,a),"data-active":$||void 0,ref:t,type:"button",role:"tab",id:d.getTabId(n),"aria-selected":$,tabIndex:$||d.value===null?0:-1,"aria-controls":d.getPanelId(n),onClick:b,onKeyDown:x1({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:d.activateTabWithKeyboard,loop:d.loop,dir:h.dir,orientation:d.orientation,onKeyDown:i})}),children:[s&&S("div",{className:_.tabIcon,children:s}),o&&S("div",{className:_.tabLabel,children:o}),u&&S("div",{className:_.tabRightSection,children:u})]})});Rx.displayName="@mantine/core/Tab";function kx({defaultValue:e,value:t,onTabChange:r,orientation:n,children:o,loop:i,id:l,activateTabWithKeyboard:a,allowTabDeactivation:s,variant:u,color:c,radius:f,inverted:d}){const g=lo(l),[y,w]=Ai({value:t,defaultValue:e,finalValue:null,onChange:r});return C.createElement(l8,{value:{value:y,orientation:n,id:g,loop:i,activateTabWithKeyboard:a,getTabId:Vg(`${g}-tab`,Cf.value),getPanelId:Vg(`${g}-panel`,Cf.value),onTabChange:w,allowTabDeactivation:s,variant:u,color:c,radius:f,inverted:d}},o)}kx.displayName="@mantine/core/TabsProvider";var H8=Q((e,{orientation:t})=>({root:{display:t==="vertical"?"flex":void 0}})),B8=H8,W8=Object.defineProperty,U8=Object.defineProperties,G8=Object.getOwnPropertyDescriptors,Ps=Object.getOwnPropertySymbols,Ix=Object.prototype.hasOwnProperty,Nx=Object.prototype.propertyIsEnumerable,Xh=(e,t,r)=>t in e?W8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y8=(e,t)=>{for(var r in t||(t={}))Ix.call(t,r)&&Xh(e,r,t[r]);if(Ps)for(var r of Ps(t))Nx.call(t,r)&&Xh(e,r,t[r]);return e},X8=(e,t)=>U8(e,G8(t)),q8=(e,t)=>{var r={};for(var n in e)Ix.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ps)for(var n of Ps(e))t.indexOf(n)<0&&Nx.call(e,n)&&(r[n]=e[n]);return r};const K8={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default"},et=p.exports.forwardRef((e,t)=>{const r=ee("Tabs",K8,e),{defaultValue:n,value:o,orientation:i,loop:l,activateTabWithKeyboard:a,allowTabDeactivation:s,children:u,id:c,onTabChange:f,variant:d,color:g,className:y,unstyled:w,classNames:v,styles:m,radius:h,inverted:_}=r,x=q8(r,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted"]),{classes:$,cx:b}=B8({orientation:i,color:g,variant:d,radius:h,inverted:_},{unstyled:w,name:"Tabs",classNames:v,styles:m});return S(q1,{classNames:v,styles:m,unstyled:w,children:S(kx,{activateTabWithKeyboard:a,defaultValue:n,orientation:i,onTabChange:f,value:o,id:c,loop:l,allowTabDeactivation:s,color:g,variant:d,radius:h,inverted:_,children:S(X,{...X8(Y8({},x),{className:b($.root,y),id:c,ref:t}),children:u})})})});et.List=bx;et.Tab=Rx;et.Panel=Ox;et.displayName="@mantine/core/Tabs";var Q8=Object.defineProperty,Z8=Object.defineProperties,J8=Object.getOwnPropertyDescriptors,qh=Object.getOwnPropertySymbols,ez=Object.prototype.hasOwnProperty,tz=Object.prototype.propertyIsEnumerable,Kh=(e,t,r)=>t in e?Q8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rz=(e,t)=>{for(var r in t||(t={}))ez.call(t,r)&&Kh(e,r,t[r]);if(qh)for(var r of qh(t))tz.call(t,r)&&Kh(e,r,t[r]);return e},nz=(e,t)=>Z8(e,J8(t));const oz={xs:16,sm:20,md:26,lg:32,xl:40};var iz=Q((e,{color:t,size:r,radius:n,gradient:o,variant:i})=>{const l=e.fn.variant({variant:i,color:t||e.primaryColor,gradient:o,primaryFallback:!1}),a=e.fn.size({size:r,sizes:oz});return{root:nz(rz({},e.fn.fontStyles()),{display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:a,height:a,minWidth:a,minHeight:a,borderRadius:e.fn.radius(n),backgroundColor:l.background,color:l.color,backgroundImage:i==="gradient"?l.background:void 0,border:`${i==="gradient"?0:1}px solid ${l.border}`})}}),lz=iz,az=Object.defineProperty,$s=Object.getOwnPropertySymbols,zx=Object.prototype.hasOwnProperty,Dx=Object.prototype.propertyIsEnumerable,Qh=(e,t,r)=>t in e?az(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sz=(e,t)=>{for(var r in t||(t={}))zx.call(t,r)&&Qh(e,r,t[r]);if($s)for(var r of $s(t))Dx.call(t,r)&&Qh(e,r,t[r]);return e},uz=(e,t)=>{var r={};for(var n in e)zx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$s)for(var n of $s(e))t.indexOf(n)<0&&Dx.call(e,n)&&(r[n]=e[n]);return r};const cz={size:"md",variant:"filled",gradient:{from:"blue",to:"cyan",deg:45}},Ef=p.exports.forwardRef((e,t)=>{const r=ee("ThemeIcon",cz,e),{className:n,size:o,radius:i,variant:l,color:a,children:s,gradient:u,unstyled:c}=r,f=uz(r,["className","size","radius","variant","color","children","gradient","unstyled"]),{classes:d,cx:g}=lz({variant:l,radius:i,color:a,size:o,gradient:u},{name:"ThemeIcon",unstyled:c});return S(X,{...sz({className:g(d.root,n),ref:t},f),children:s})});Ef.displayName="@mantine/core/ThemeIcon";const Tx=p.exports.createContext(!1),fz=Tx.Provider,dz=()=>p.exports.useContext(Tx);function Mx({children:e,openDelay:t=0,closeDelay:r=0}){return C.createElement(fz,{value:!0},C.createElement(qk,{delay:{open:t,close:r}},e))}Mx.displayName="@mantine/core/TooltipGroup";var pz=Object.defineProperty,gz=Object.defineProperties,mz=Object.getOwnPropertyDescriptors,Zh=Object.getOwnPropertySymbols,vz=Object.prototype.hasOwnProperty,hz=Object.prototype.propertyIsEnumerable,Jh=(e,t,r)=>t in e?pz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,e0=(e,t)=>{for(var r in t||(t={}))vz.call(t,r)&&Jh(e,r,t[r]);if(Zh)for(var r of Zh(t))hz.call(t,r)&&Jh(e,r,t[r]);return e},yz=(e,t)=>gz(e,mz(t));function wz(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 _z=Q((e,{color:t,radius:r,width:n,multiline:o})=>({tooltip:yz(e0(e0({},e.fn.fontStyles()),wz(e,t)),{lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,borderRadius:e.fn.radius(r),padding:`${e.spacing.xs/2}px ${e.spacing.xs}px`,position:"absolute",whiteSpace:o?"unset":"nowrap",pointerEvents:"none",width:n}),arrow:{backgroundColor:"inherit",border:0,zIndex:1}})),jx=_z;const Lx={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 Sz({offset:e,position:t}){const[r,n]=p.exports.useState(!1),o=p.exports.useRef(),{x:i,y:l,reference:a,floating:s,refs:u,update:c,placement:f}=np({placement:t,middleware:[ep({crossAxis:!0,padding:5,rootBoundary:"document"})]}),d=f.includes("right")?e:t.includes("left")?e*-1:0,g=f.includes("bottom")?e:t.includes("top")?e*-1:0,y=p.exports.useCallback(({clientX:w,clientY:v})=>{a({getBoundingClientRect(){return{width:0,height:0,x:w,y:v,left:w+d,top:v+g,right:w,bottom:v}}})},[a]);return p.exports.useEffect(()=>{if(u.floating.current){const w=o.current;w.addEventListener("mousemove",y);const v=ln(u.floating.current);return v.forEach(m=>{m.addEventListener("scroll",c)}),()=>{w.removeEventListener("mousemove",y),v.forEach(m=>{m.removeEventListener("scroll",c)})}}},[a,u.floating,c,y,r]),{handleMouseMove:y,x:i,y:l,opened:r,setOpened:n,boundaryRef:o,floating:s}}var xz=Object.defineProperty,bz=Object.defineProperties,Pz=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,Fx=Object.prototype.hasOwnProperty,Ax=Object.prototype.propertyIsEnumerable,t0=(e,t,r)=>t in e?xz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hc=(e,t)=>{for(var r in t||(t={}))Fx.call(t,r)&&t0(e,r,t[r]);if(Os)for(var r of Os(t))Ax.call(t,r)&&t0(e,r,t[r]);return e},yc=(e,t)=>bz(e,Pz(t)),$z=(e,t)=>{var r={};for(var n in e)Fx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Os)for(var n of Os(e))t.indexOf(n)<0&&Ax.call(e,n)&&(r[n]=e[n]);return r};const Oz={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:io("popover")};function Vx(e){var t;const r=ee("TooltipFloating",Oz,e),{children:n,refProp:o,withinPortal:i,style:l,className:a,classNames:s,styles:u,unstyled:c,radius:f,color:d,label:g,offset:y,position:w,multiline:v,width:m,zIndex:h,disabled:_}=r,x=$z(r,["children","refProp","withinPortal","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled"]),{handleMouseMove:$,x:b,y:P,opened:E,boundaryRef:O,floating:D,setOpened:z}=Sz({offset:y,position:w}),{classes:T,cx:F}=jx({radius:f,color:d,multiline:v,width:m},{name:"Tooltip",classNames:s,styles:u,unstyled:c});if(!ji(n))throw new Error(Lx.children);const G=dn(O,n.ref),q=ne=>{var se,ie;(ie=(se=n.props).onMouseEnter)==null||ie.call(se,ne),$(ne),z(!0)},B=ne=>{var se,ie;(ie=(se=n.props).onMouseLeave)==null||ie.call(se,ne),z(!1)};return H(lt,{children:[S(Vi,{withinPortal:i,children:S(X,{...yc(hc({},x),{ref:D,className:F(T.tooltip,a),style:yc(hc({},l),{zIndex:h,display:E&&!_?"block":"none",top:P??"",left:(t=Math.round(b))!=null?t:""})}),children:g})}),p.exports.cloneElement(n,yc(hc({},n.props),{[o]:G,onMouseEnter:q,onMouseLeave:B}))]})}Vx.displayName="@mantine/core/TooltipFloating";function Cz(e){const[t,r]=p.exports.useState(!1),o=typeof e.opened=="boolean"?e.opened:t,i=dz(),l=lo(),{delay:a,currentId:s,setCurrentId:u}=h_(),c=p.exports.useCallback(b=>{r(b),b&&u(l)},[u,l]),{x:f,y:d,reference:g,floating:y,context:w,refs:v,update:m,placement:h}=np({placement:e.position,open:o,onOpenChange:c,middleware:[i_(e.offset),ep({padding:8}),o_()]}),{getReferenceProps:_,getFloatingProps:x}=Uk([Xk(w,{enabled:e.events.hover,delay:i?a:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events.touch}),Jk(w,{enabled:e.events.focus,keyboardOnly:!0}),Qk(w,{role:"tooltip"}),Zk(w,{enabled:typeof e.opened===void 0}),Kk(w,{id:l})]);return y_({opened:o,positionDependencies:e.positionDependencies,floating:{refs:v,update:m}}),kr(()=>{var b;(b=e.onPositionChange)==null||b.call(e,h)},[h]),{x:f,y:d,reference:g,floating:y,getFloatingProps:x,getReferenceProps:_,isGroupPhase:o&&s&&s!==l,opened:o,placement:h}}var Ez=Object.defineProperty,Rz=Object.defineProperties,kz=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,Hx=Object.prototype.hasOwnProperty,Bx=Object.prototype.propertyIsEnumerable,r0=(e,t,r)=>t in e?Ez(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jo=(e,t)=>{for(var r in t||(t={}))Hx.call(t,r)&&r0(e,r,t[r]);if(Cs)for(var r of Cs(t))Bx.call(t,r)&&r0(e,r,t[r]);return e},Iz=(e,t)=>Rz(e,kz(t)),Nz=(e,t)=>{var r={};for(var n in e)Hx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Cs)for(var n of Cs(e))t.indexOf(n)<0&&Bx.call(e,n)&&(r[n]=e[n]);return r};const zz={position:"top",refProp:"ref",withinPortal:!1,arrowSize:4,arrowOffset:5,offset:5,transition:"fade",transitionDuration:100,width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:io("popover"),positionDependencies:[]},wu=p.exports.forwardRef((e,t)=>{const r=ee("Tooltip",zz,e),{children:n,position:o,refProp:i,label:l,openDelay:a,closeDelay:s,onPositionChange:u,opened:c,withinPortal:f,radius:d,color:g,classNames:y,styles:w,unstyled:v,style:m,className:h,withArrow:_,arrowSize:x,arrowOffset:$,offset:b,transition:P,transitionDuration:E,multiline:O,width:D,events:z,zIndex:T,disabled:F,positionDependencies:G,onClick:q,onMouseEnter:B,onMouseLeave:ne}=r,se=Nz(r,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","offset","transition","transitionDuration","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave"]),{classes:ie,cx:De,theme:k}=jx({radius:d,color:g,width:D,multiline:O},{name:"Tooltip",classNames:y,styles:w,unstyled:v}),N=Cz({position:N_(k.dir,o),closeDelay:s,openDelay:a,onPositionChange:u,opened:c,events:z,offset:b+(_?x/2:0),positionDependencies:[...G,n]});if(!ji(n))throw new Error(Lx.children);const A=dn(N.reference,n.ref,t);return H(lt,{children:[S(Vi,{withinPortal:f,children:S(vu,{mounted:!F&&N.opened,transition:P,duration:N.isGroupPhase?10:E,children:R=>{var M,W;return H(X,{...jo(jo({},se),N.getFloatingProps({ref:N.floating,className:ie.tooltip,style:Iz(jo(jo({},m),R),{zIndex:T,top:(M=N.y)!=null?M:"",left:(W=N.x)!=null?W:""})})),children:[l,S(op,{visible:_,withBorder:!1,position:N.placement,arrowSize:x,arrowOffset:$,className:ie.arrow})]})}})}),p.exports.cloneElement(n,N.getReferenceProps(jo({onClick:q,onMouseEnter:B,onMouseLeave:ne,[i]:A,className:De(h,n.props.className)},n.props)))]})});wu.Group=Mx;wu.Floating=Vx;wu.displayName="@mantine/core/Tooltip";const ot=wu;/** + * @remix-run/router v1.9.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function _u(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Tz(){return Math.random().toString(36).substr(2,8)}function o0(e,t){return{usr:e.state,key:e.key,idx:t}}function Rf(e,t,r,n){return r===void 0&&(r=null),Ei({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gn(t):t,{state:r,key:t&&t.key||n||Tz()})}function Wx(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function gn(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Mz(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,l=o.history,a=dr.Pop,s=null,u=c();u==null&&(u=0,l.replaceState(Ei({},l.state,{idx:u}),""));function c(){return(l.state||{idx:null}).idx}function f(){a=dr.Pop;let v=c(),m=v==null?null:v-u;u=v,s&&s({action:a,location:w.location,delta:m})}function d(v,m){a=dr.Push;let h=Rf(w.location,v,m);r&&r(h,v),u=c()+1;let _=o0(h,u),x=w.createHref(h);try{l.pushState(_,"",x)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(x)}i&&s&&s({action:a,location:w.location,delta:1})}function g(v,m){a=dr.Replace;let h=Rf(w.location,v,m);r&&r(h,v),u=c();let _=o0(h,u),x=w.createHref(h);l.replaceState(_,"",x),i&&s&&s({action:a,location:w.location,delta:0})}function y(v){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof v=="string"?v:Wx(v);return xe(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let w={get action(){return a},get location(){return e(o,l)},listen(v){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(n0,f),s=v,()=>{o.removeEventListener(n0,f),s=null}},createHref(v){return t(o,v)},createURL:y,encodeLocation(v){let m=y(v);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:g,go(v){return l.go(v)}};return w}var i0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(i0||(i0={}));function jz(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?gn(t):t,o=Yx(n.pathname||"/",r);if(o==null)return null;let i=Ux(e);Lz(i);let l=null;for(let a=0;l==null&&a{let s={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};s.relativePath.startsWith("/")&&(xe(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let u=tn([n,s.relativePath]),c=r.concat(s);i.children&&i.children.length>0&&(xe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ux(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Uz(u,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let s of Gx(i.path))o(i,l,s)}),t}function Gx(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let l=Gx(n.join("/")),a=[];return a.push(...l.map(s=>s===""?i:[i,s].join("/"))),o&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function Lz(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Gz(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Fz=/^:\w+$/,Az=3,Vz=2,Hz=1,Bz=10,Wz=-2,l0=e=>e==="*";function Uz(e,t){let r=e.split("/"),n=r.length;return r.some(l0)&&(n+=Wz),t&&(n+=Vz),r.filter(o=>!l0(o)).reduce((o,i)=>o+(Fz.test(i)?Az:i===""?Hz:Bz),n)}function Gz(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Yz(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let l=0;l{if(c==="*"){let d=a[f]||"";l=i.slice(0,i.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=Qz(a[f]||"",c),u},{}),pathname:i,pathnameBase:l,pattern:e}}function qz(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),_u(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,a)=>(n.push(a),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Kz(e){try{return decodeURI(e)}catch(t){return _u(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Qz(e,t){try{return decodeURIComponent(e)}catch(r){return _u(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Yx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Zz(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?gn(e):e;return{pathname:r?r.startsWith("/")?r:Jz(r,t):t,search:nD(n),hash:oD(o)}}function Jz(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function wc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function eD(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function tD(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=gn(e):(o=Ei({},e),xe(!o.pathname||!o.pathname.includes("?"),wc("?","pathname","search",o)),xe(!o.pathname||!o.pathname.includes("#"),wc("#","pathname","hash",o)),xe(!o.search||!o.search.includes("#"),wc("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(n||l==null)a=r;else{let f=t.length-1;if(l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}a=f>=0?t[f]:"/"}let s=Zz(o,a),u=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const tn=e=>e.join("/").replace(/\/\/+/g,"/"),rD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lD=["post","put","patch","delete"];[...lD];/** + * React Router v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),l=p.exports.useRef(!1);return qx(()=>{l.current=!0}),p.exports.useCallback(function(s,u){if(u===void 0&&(u={}),!l.current)return;if(typeof s=="number"){r.go(s);return}let c=tD(s,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:tn([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,i,o,e])}function uD(e,t){return cD(e,t)}function cD(e,t,r){bu()||xe(!1);let{navigator:n}=p.exports.useContext(Su),{matches:o}=p.exports.useContext(uo),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let s=pp(),u;if(t){var c;let w=typeof t=="string"?gn(t):t;a==="/"||((c=w.pathname)==null?void 0:c.startsWith(a))||xe(!1),u=w}else u=s;let f=u.pathname||"/",d=a==="/"?f:f.slice(a.length)||"/",g=jz(e,{pathname:d}),y=mD(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:tn([a,n.encodeLocation?n.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:tn([a,n.encodeLocation?n.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,r);return t&&y?p.exports.createElement(xu.Provider,{value:{location:Es({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:dr.Pop}},y):y}function fD(){let e=wD(),t=iD(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return p.exports.createElement(p.exports.Fragment,null,p.exports.createElement("h2",null,"Unexpected Application Error!"),p.exports.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.exports.createElement("pre",{style:o},r):null,i)}const dD=p.exports.createElement(fD,null);class pD extends p.exports.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?p.exports.createElement(uo.Provider,{value:this.props.routeContext},p.exports.createElement(Xx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gD(e){let{routeContext:t,match:r,children:n}=e,o=p.exports.useContext(dp);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),p.exports.createElement(uo.Provider,{value:t},n)}function mD(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,l=(n=r)==null?void 0:n.errors;if(l!=null){let a=i.findIndex(s=>s.route.id&&l?.[s.route.id]);a>=0||xe(!1),i=i.slice(0,Math.min(i.length,a+1))}return i.reduceRight((a,s,u)=>{let c=s.route.id?l?.[s.route.id]:null,f=null;r&&(f=s.route.errorElement||dD);let d=t.concat(i.slice(0,u+1)),g=()=>{let y;return c?y=f:s.route.Component?y=p.exports.createElement(s.route.Component,null):s.route.element?y=s.route.element:y=a,p.exports.createElement(gD,{match:s,routeContext:{outlet:a,matches:d,isDataRoute:r!=null},children:y})};return r&&(s.route.ErrorBoundary||s.route.errorElement||u===0)?p.exports.createElement(pD,{location:r.location,revalidation:r.revalidation,component:f,error:c,children:g(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):g()},null)}var Kx=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Kx||{}),Rs=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rs||{});function vD(e){let t=p.exports.useContext(dp);return t||xe(!1),t}function hD(e){let t=p.exports.useContext(aD);return t||xe(!1),t}function yD(e){let t=p.exports.useContext(uo);return t||xe(!1),t}function Qx(e){let t=yD(),r=t.matches[t.matches.length-1];return r.route.id||xe(!1),r.route.id}function wD(){var e;let t=p.exports.useContext(Xx),r=hD(Rs.UseRouteError),n=Qx(Rs.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function _D(){let{router:e}=vD(Kx.UseNavigateStable),t=Qx(Rs.UseNavigateStable),r=p.exports.useRef(!1);return qx(()=>{r.current=!0}),p.exports.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Es({fromRouteId:t},i)))},[e,t])}const SD="startTransition";ai[SD];function Wt(e){xe(!1)}function xD(e){let{basename:t="/",children:r=null,location:n,navigationType:o=dr.Pop,navigator:i,static:l=!1}=e;bu()&&xe(!1);let a=t.replace(/^\/*/,"/"),s=p.exports.useMemo(()=>({basename:a,navigator:i,static:l}),[a,i,l]);typeof n=="string"&&(n=gn(n));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:g="default"}=n,y=p.exports.useMemo(()=>{let w=Yx(u,a);return w==null?null:{location:{pathname:w,search:c,hash:f,state:d,key:g},navigationType:o}},[a,u,c,f,d,g,o]);return y==null?null:p.exports.createElement(Su.Provider,{value:s},p.exports.createElement(xu.Provider,{children:r,value:y}))}function Zx(e){let{children:t,location:r}=e;return uD(kf(t),r)}new Promise(()=>{});function kf(e,t){t===void 0&&(t=[]);let r=[];return p.exports.Children.forEach(e,(n,o)=>{if(!p.exports.isValidElement(n))return;let i=[...t,o];if(n.type===p.exports.Fragment){r.push.apply(r,kf(n.props.children,i));return}n.type!==Wt&&xe(!1),!n.props.index||!n.props.children||xe(!1);let l={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=kf(n.props.children,i)),r.push(l)}),r}/** + * React Router DOM v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const bD="startTransition",a0=ai[bD];function PD(e){let{basename:t,children:r,future:n,window:o}=e,i=p.exports.useRef();i.current==null&&(i.current=Dz({window:o,v5Compat:!0}));let l=i.current,[a,s]=p.exports.useState({action:l.action,location:l.location}),{v7_startTransition:u}=n||{},c=p.exports.useCallback(f=>{u&&a0?a0(()=>s(f)):s(f)},[s,u]);return p.exports.useLayoutEffect(()=>l.listen(c),[l,c]),p.exports.createElement(xD,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:l})}var s0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(s0||(s0={}));var u0;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(u0||(u0={}));const $D=()=>!window.invokeNative,Jx=()=>{},bl=(e,t)=>{const r=p.exports.useRef(Jx);p.exports.useEffect(()=>{r.current=t},[t]),p.exports.useEffect(()=>{const n=o=>{const{action:i,data:l}=o.data;r.current&&i===e&&r.current(l)};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)},[e])};function OD(e){let t;const r=new Set,n=(u,c)=>{const f=typeof u=="function"?u(t):u;if(f!==t){const d=t;t=c?f:Object.assign({},t,f),r.forEach(g=>g(t,d))}},o=()=>t,i=(u,c=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=c(t);function g(){const y=c(t);if(!f(d,y)){const w=d;u(d=y,w)}}return r.add(g),()=>r.delete(g)},s={setState:n,getState:o,subscribe:(u,c,f)=>c||f?i(u,c,f):(r.add(u),()=>r.delete(u)),destroy:()=>r.clear()};return t=e(n,o,s),s}const CD=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),c0=CD?p.exports.useEffect:p.exports.useLayoutEffect;function co(e){const t=typeof e=="function"?OD(e):e,r=(n=t.getState,o=Object.is)=>{const[,i]=p.exports.useReducer(v=>v+1,0),l=t.getState(),a=p.exports.useRef(l),s=p.exports.useRef(n),u=p.exports.useRef(o),c=p.exports.useRef(!1),f=p.exports.useRef();f.current===void 0&&(f.current=n(l));let d,g=!1;(a.current!==l||s.current!==n||u.current!==o||c.current)&&(d=n(l),g=!o(f.current,d)),c0(()=>{g&&(f.current=d),a.current=l,s.current=n,u.current=o,c.current=!1});const y=p.exports.useRef(l);c0(()=>{const v=()=>{try{const h=t.getState(),_=s.current(h);u.current(f.current,_)||(a.current=h,f.current=_,i())}catch{c.current=!0,i()}},m=t.subscribe(v);return t.getState()!==y.current&&v(),m},[]);const w=g?d:f.current;return p.exports.useDebugValue(w),w};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const n=[r,t];return{next(){const o=n.length<=0;return{value:n.shift(),done:o}}}},r}const K=co(()=>({name:"",passcode:"",autolock:0,items:[{name:"",metadata:"",remove:!1}],characters:[""],groups:[{name:"",grade:void 0}],lockpickDifficulty:[""],maxDistance:0,doorRate:0,lockSound:"",unlockSound:"",auto:!1,state:!1,lockpick:!1,hideUi:!1,doors:!1,holdOpen:!1})),ED=K.getState(),_e=co((e,t)=>({sounds:[""],setSounds:r=>e({sounds:r}),setLockSound:r=>K.setState({lockSound:r}),setUnlockSound:r=>K.setState({unlockSound:r}),setName:r=>K.setState({name:r}),setPasscode:r=>K.setState({passcode:r}),setAutolock:r=>K.setState({autolock:r}),toggleCheckbox:r=>K.setState(n=>({[r]:!n[r]})),setMaxDistance:r=>K.setState(()=>({maxDistance:r})),setItems:r=>K.setState(({items:n})=>({items:r(n)})),setCharacters:r=>K.setState(({characters:n})=>({characters:r(n)})),setGroups:r=>K.setState(({groups:n})=>({groups:r(n)})),setLockpickDifficulty:r=>K.setState(({lockpickDifficulty:n})=>({lockpickDifficulty:r(n)})),setDoorRate:r=>K.setState({doorRate:r})}));var eb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},f0=C.createContext&&C.createContext(eb),br=globalThis&&globalThis.__assign||function(){return br=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({visible:!1,setVisible:t=>e({visible:t})}));async function Pr(e,t){const r={method:"post",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(t)},n=window.GetParentResourceName?window.GetParentResourceName():"nui-frame-app";return await(await fetch(`https://${n}/${e}`,r)).json()}function VD(e,t){const[r,n]=p.exports.useState(e);return p.exports.useEffect(()=>{const o=setTimeout(()=>n(e),t||500);return()=>{clearTimeout(o)}},[e,t]),r}const If=co(e=>({value:"",debouncedValue:"",setDebouncedValue:t=>e({debouncedValue:t}),setValue:t=>e({value:t})})),HD=()=>{const e=If(),t=VD(e.value);return p.exports.useEffect(()=>{e.setDebouncedValue(t)},[t]),S(lt,{children:S(Mr,{sx:{flex:"1 1 auto",padding:2},icon:S(nb,{size:20}),placeholder:"Search",value:e.value??"",onChange:r=>e.setValue(r.target.value)})})},BD=Q({main:{display:"flex",justifyContent:"flex-start",alignItems:"center",padding:16,paddingBottom:0}}),WD=()=>{const{classes:e}=BD(),t=Ui(),r=$u(n=>n.setVisible);return H(Lt,{className:e.main,children:[S(ot,{label:"Create a new door",transition:"pop",children:S(Ot,{variant:"light",color:"blue",size:"lg",onClick:()=>{K.setState(ED,!0),t("/settings/general")},children:S(rb,{size:20})})}),S(HD,{}),S(su,{iconSize:20,size:"lg",onClick:()=>{r(!1),Pr("exit")}})]})};/** + * react-table + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + *//** + * table-core + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function pr(e,t){return typeof e=="function"?e(t):e}function ht(e,t){return r=>{t.setState(n=>({...n,[e]:pr(r,n[e])}))}}function ks(e){return e instanceof Function}function UD(e,t){const r=[],n=o=>{o.forEach(i=>{r.push(i);const l=t(i);l!=null&&l.length&&n(l)})};return n(e),r}function Y(e,t,r){let n=[],o;return()=>{let i;r.key&&r.debug&&(i=Date.now());const l=e();if(!(l.length!==n.length||l.some((u,c)=>n[c]!==u)))return o;n=l;let s;if(r.key&&r.debug&&(s=Date.now()),o=t(...l),r==null||r.onChange==null||r.onChange(o),r.key&&r.debug&&r!=null&&r.debug()){const u=Math.round((Date.now()-i)*100)/100,c=Math.round((Date.now()-s)*100)/100,f=c/16,d=(g,y)=>{for(g=String(g);g.length{let g=d;for(const y of s.split("."))g=g[y];return g}:c=d=>d[a.accessorKey]),!u)throw new Error;let f={id:""+String(u),accessorFn:c,parent:n,depth:r,columnDef:a,columns:[],getFlatColumns:Y(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(g=>g.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}}),getLeafColumns:Y(()=>[e._getOrderColumnsFn()],d=>{var g;if((g=f.columns)!=null&&g.length){let y=f.columns.flatMap(w=>w.getLeafColumns());return d(y)}return[f]},{key:"column.getLeafColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}})};return f=e._features.reduce((d,g)=>Object.assign(d,g.createColumn==null?void 0:g.createColumn(f,e)),f),f}function d0(e,t,r){var n;let i={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],a=s=>{s.subHeaders&&s.subHeaders.length&&s.subHeaders.map(a),l.push(s)};return a(i),l},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(l=>{Object.assign(i,l.createHeader==null?void 0:l.createHeader(i,e))}),i}const YD={createTable:e=>({getHeaderGroups:Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>{var i,l;const a=(i=n?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?i:[],s=(l=o?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?l:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(o!=null&&o.includes(f.id)));return Pl(t,[...a,...u,...s],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterHeaderGroups:Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>(r=r.filter(i=>!(n!=null&&n.includes(i.id))&&!(o!=null&&o.includes(i.id))),Pl(t,r,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftHeaderGroups:Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var o;const i=(o=n?.map(l=>r.find(a=>a.id===l)).filter(Boolean))!=null?o:[];return Pl(t,i,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightHeaderGroups:Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var o;const i=(o=n?.map(l=>r.find(a=>a.id===l)).filter(Boolean))!=null?o:[];return Pl(t,i,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFooterGroups:Y(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFooterGroups:Y(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFooterGroups:Y(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFooterGroups:Y(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFlatHeaders:Y(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFlatHeaders:Y(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFlatHeaders:Y(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFlatHeaders:Y(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterLeafHeaders:Y(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftLeafHeaders:Y(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightLeafHeaders:Y(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeafHeaders:Y(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var o,i,l,a,s,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(l=(a=r[0])==null?void 0:a.headers)!=null?l:[],...(s=(u=n[0])==null?void 0:u.headers)!=null?s:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})})};function Pl(e,t,r,n){var o,i;let l=0;const a=function(d,g){g===void 0&&(g=1),l=Math.max(l,g),d.filter(y=>y.getIsVisible()).forEach(y=>{var w;(w=y.columns)!=null&&w.length&&a(y.columns,g+1)},0)};a(e);let s=[];const u=(d,g)=>{const y={depth:g,id:[n,""+g].filter(Boolean).join("_"),headers:[]},w=[];d.forEach(v=>{const m=[...w].reverse()[0],h=v.column.depth===y.depth;let _,x=!1;if(h&&v.column.parent?_=v.column.parent:(_=v.column,x=!0),m&&m?.column===_)m.subHeaders.push(v);else{const $=d0(r,_,{id:[n,g,_.id,v?.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?""+w.filter(b=>b.column===_).length:void 0,depth:g,index:w.length});$.subHeaders.push(v),w.push($)}y.headers.push(v),v.headerGroup=y}),s.push(y),g>0&&u(w,g-1)},c=t.map((d,g)=>d0(r,d,{depth:l,index:g}));u(c,l-1),s.reverse();const f=d=>d.filter(y=>y.column.getIsVisible()).map(y=>{let w=0,v=0,m=[0];y.subHeaders&&y.subHeaders.length?(m=[],f(y.subHeaders).forEach(_=>{let{colSpan:x,rowSpan:$}=_;w+=x,m.push($)})):w=1;const h=Math.min(...m);return v=v+h,y.colSpan=w,y.rowSpan=v,{colSpan:w,rowSpan:v}});return f((o=(i=s[0])==null?void 0:i.headers)!=null?o:[]),s}const $l={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},_c=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),XD={getDefaultColumnDef:()=>$l,getInitialState:e=>({columnSizing:{},columnSizingInfo:_c(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:ht("columnSizing",e),onColumnSizingInfoChange:ht("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var r,n,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:$l.minSize,(n=i??e.columnDef.size)!=null?n:$l.size),(o=e.columnDef.maxSize)!=null?o:$l.maxSize)},getStart:r=>{const n=r?r==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=n.findIndex(i=>i.id===e.id);if(o>0){const i=n[o-1];return i.getStart(r)+i.getSize()}return 0},resetSize:()=>{t.setColumnSizing(r=>{let{[e.id]:n,...o}=r;return o})},getCanResize:()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let r=0;const n=o=>{if(o.subHeaders.length)o.subHeaders.forEach(n);else{var i;r+=(i=o.column.getSize())!=null?i:0}};return n(e),r},getStart:()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},getResizeHandler:()=>{const r=t.getColumn(e.column.id),n=r.getCanResize();return o=>{if(!n||(o.persist==null||o.persist(),Sc(o)&&o.touches&&o.touches.length>1))return;const i=e.getSize(),l=e?e.getLeafHeaders().map(g=>[g.column.id,g.column.getSize()]):[[r.id,r.getSize()]],a=Sc(o)?Math.round(o.touches[0].clientX):o.clientX,s=(g,y)=>{if(typeof y!="number")return;let w={};t.setColumnSizingInfo(v=>{var m,h;const _=y-((m=v?.startOffset)!=null?m:0),x=Math.max(_/((h=v?.startSize)!=null?h:0),-.999999);return v.columnSizingStart.forEach($=>{let[b,P]=$;w[b]=Math.round(Math.max(P+P*x,0)*100)/100}),{...v,deltaOffset:_,deltaPercentage:x}}),(t.options.columnResizeMode==="onChange"||g==="end")&&t.setColumnSizing(v=>({...v,...w}))},u=g=>s("move",g),c=g=>{s("end",g),t.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f={moveHandler:g=>u(g.clientX),upHandler:g=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),c(g.clientX)}},d=qD()?{passive:!1}:!1;Sc(o)||(document.addEventListener("mousemove",f.moveHandler,d),document.addEventListener("mouseup",f.upHandler,d)),t.setColumnSizingInfo(g=>({...g,startOffset:a,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id}))}}}),createTable:e=>({setColumnSizing:t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},resetHeaderSizeInfo:t=>{var r;e.setColumnSizingInfo(t?_c():(r=e.initialState.columnSizingInfo)!=null?r:_c())},getTotalSize:()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getLeftTotalSize:()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getCenterTotalSize:()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getRightTotalSize:()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0}})};let Ol=null;function qD(){if(typeof Ol=="boolean")return Ol;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return Ol=e,Ol}function Sc(e){return e.type==="touchstart"}const KD={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:ht("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;return{_autoResetExpanded:()=>{var n,o;if(!t){e._queue(()=>{t=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},setExpanded:n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),toggleAllRowsExpanded:n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},resetExpanded:n=>{var o,i;e.setExpanded(n?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some(n=>n.getCanExpand()),getToggleAllRowsExpandedHandler:()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},getIsAllRowsExpanded:()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(o=>o.getIsExpanded()))},getExpandedDepth:()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const l=i.split(".");n=Math.max(n,l.length)}),n},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,t)=>({toggleExpanded:r=>{t.setExpanded(n=>{var o;const i=n===!0?!0:!!(n!=null&&n[e.id]);let l={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{l[a]=!0}):l=n,r=(o=r)!=null?o:!i,!i&&r)return{...l,[e.id]:!0};if(i&&!r){const{[e.id]:a,...s}=l;return s}return n})},getIsExpanded:()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n?.[e.id])},getCanExpand:()=>{var r,n,o;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((o=e.subRows)!=null&&o.length)},getToggleExpandedHandler:()=>{const r=e.getCanExpand();return()=>{!r||e.toggleExpanded()}}})},ob=(e,t,r)=>{var n;const o=r.toLowerCase();return(n=e.getValue(t))==null?void 0:n.toLowerCase().includes(o)};ob.autoRemove=e=>$t(e);const ib=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};ib.autoRemove=e=>$t(e);const lb=(e,t,r)=>{var n;return((n=e.getValue(t))==null?void 0:n.toLowerCase())===r.toLowerCase()};lb.autoRemove=e=>$t(e);const ab=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};ab.autoRemove=e=>$t(e)||!(e!=null&&e.length);const sb=(e,t,r)=>!r.some(n=>{var o;return!((o=e.getValue(t))!=null&&o.includes(n))});sb.autoRemove=e=>$t(e)||!(e!=null&&e.length);const ub=(e,t,r)=>r.some(n=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)});ub.autoRemove=e=>$t(e)||!(e!=null&&e.length);const cb=(e,t,r)=>e.getValue(t)===r;cb.autoRemove=e=>$t(e);const fb=(e,t,r)=>e.getValue(t)==r;fb.autoRemove=e=>$t(e);const gp=(e,t,r)=>{let[n,o]=r;const i=e.getValue(t);return i>=n&&i<=o};gp.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,o=typeof r!="number"?parseFloat(r):r,i=t===null||Number.isNaN(n)?-1/0:n,l=r===null||Number.isNaN(o)?1/0:o;if(i>l){const a=i;i=l,l=a}return[i,l]};gp.autoRemove=e=>$t(e)||$t(e[0])&&$t(e[1]);const Vt={includesString:ob,includesStringSensitive:ib,equalsString:lb,arrIncludes:ab,arrIncludesAll:sb,arrIncludesSome:ub,equals:cb,weakEquals:fb,inNumberRange:gp};function $t(e){return e==null||e===""}const QD={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:ht("columnFilters",e),onGlobalFilterChange:ht("globalFilter",e),filterFromLeafRows:!1,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r,n;const o=(r=e.getCoreRowModel().flatRows[0])==null||(n=r._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);return typeof n=="string"?Vt.includesString:typeof n=="number"?Vt.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Vt.equals:Array.isArray(n)?Vt.arrIncludes:Vt.weakEquals},getFilterFn:()=>{var r,n;return ks(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:Vt[e.columnDef.filterFn]},getCanFilter:()=>{var r,n,o;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},getCanGlobalFilter:()=>{var r,n,o,i;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var r,n;return(r=t.getState().columnFilters)==null||(n=r.find(o=>o.id===e.id))==null?void 0:n.value},getFilterIndex:()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?r:-1},setFilterValue:r=>{t.setColumnFilters(n=>{const o=e.getFilterFn(),i=n?.find(c=>c.id===e.id),l=pr(r,i?i.value:void 0);if(p0(o,l,e)){var a;return(a=n?.filter(c=>c.id!==e.id))!=null?a:[]}const s={id:e.id,value:l};if(i){var u;return(u=n?.map(c=>c.id===e.id?s:c))!=null?u:[]}return n!=null&&n.length?[...n,s]:[s]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(!!e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>Vt.includesString,getGlobalFilterFn:()=>{var t,r;const{globalFilterFn:n}=e.options;return ks(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:Vt[n]},setColumnFilters:t=>{const r=e.getAllLeafColumns(),n=o=>{var i;return(i=pr(t,o))==null?void 0:i.filter(l=>{const a=r.find(s=>s.id===l.id);if(a){const s=a.getFilterFn();if(p0(s,l.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},setGlobalFilter:t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(!!e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function p0(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const ZD=(e,t,r)=>r.reduce((n,o)=>{const i=o.getValue(e);return n+(typeof i=="number"?i:0)},0),JD=(e,t,r)=>{let n;return r.forEach(o=>{const i=o.getValue(e);i!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}),n},eT=(e,t,r)=>{let n;return r.forEach(o=>{const i=o.getValue(e);i!=null&&(n=i)&&(n=i)}),n},tT=(e,t,r)=>{let n,o;return r.forEach(i=>{const l=i.getValue(e);l!=null&&(n===void 0?l>=l&&(n=o=l):(n>l&&(n=l),o{let r=0,n=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++r,n+=i)}),r)return n/r},nT=(e,t)=>{if(!t.length)return;let r=0,n=0;return t.forEach(o=>{let i=o.getValue(e);typeof i=="number"&&(r=Math.min(r,i),n=Math.max(n,i))}),(r+n)/2},oT=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),iT=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,lT=(e,t)=>t.length,xc={sum:ZD,min:JD,max:eT,extent:tT,mean:rT,median:nT,unique:oT,uniqueCount:iT,count:lT},aT={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:ht("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},getCanGroup:()=>{var r,n,o,i;return(r=(n=(o=(i=e.columnDef.enableGrouping)!=null?i:!0)!=null?o:t.options.enableGrouping)!=null?n:!0)!=null?r:!!e.accessorFn},getIsGrouped:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},getGroupedIndex:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},getToggleGroupingHandler:()=>{const r=e.getCanGroup();return()=>{!r||e.toggleGrouping()}},getAutoAggregationFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);if(typeof n=="number")return xc.sum;if(Object.prototype.toString.call(n)==="[object Date]")return xc.extent},getAggregationFn:()=>{var r,n;if(!e)throw new Error;return ks(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:xc[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,r,n)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===r.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=r.subRows)!=null&&o.length)}})};function sT(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(i=>!t.includes(i.id));return r==="remove"?n:[...t.map(i=>e.find(l=>l.id===i)).filter(Boolean),...n]}const uT={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:ht("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},_getOrderColumnsFn:Y(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const l=[...t],a=[...o];for(;a.length&&l.length;){const s=l.shift(),u=a.findIndex(c=>c.id===s);u>-1&&i.push(a.splice(u,1)[0])}i=[...i,...a]}return sT(i,r,n)},{key:!1})})},Nf=0,zf=10,bc=()=>({pageIndex:Nf,pageSize:zf}),cT={getInitialState:e=>({...e,pagination:{...bc(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:ht("pagination",e)}),createTable:e=>{let t=!1,r=!1;return{_autoResetPageIndex:()=>{var n,o;if(!t){e._queue(()=>{t=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},setPagination:n=>{const o=i=>pr(n,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},resetPagination:n=>{var o;e.setPagination(n?bc():(o=e.initialState.pagination)!=null?o:bc())},setPageIndex:n=>{e.setPagination(o=>{let i=pr(n,o.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.min(Math.max(0,i),l),{...o,pageIndex:i}})},resetPageIndex:n=>{var o,i,l;e.setPageIndex(n?Nf:(o=(i=e.initialState)==null||(l=i.pagination)==null?void 0:l.pageIndex)!=null?o:Nf)},resetPageSize:n=>{var o,i,l;e.setPageSize(n?zf:(o=(i=e.initialState)==null||(l=i.pagination)==null?void 0:l.pageSize)!=null?o:zf)},setPageSize:n=>{e.setPagination(o=>{const i=Math.max(1,pr(n,o.pageSize)),l=o.pageSize*o.pageIndex,a=Math.floor(l/i);return{...o,pageIndex:a,pageSize:i}})},setPageCount:n=>e.setPagination(o=>{var i;let l=pr(n,(i=e.options.pageCount)!=null?i:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...o,pageCount:l}}),getPageOptions:Y(()=>[e.getPageCount()],n=>{let o=[];return n&&n>0&&(o=[...new Array(n)].fill(null).map((i,l)=>l)),o},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:n}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:ne.setPageIndex(n=>n-1),nextPage:()=>e.setPageIndex(n=>n+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},Pc=()=>({left:[],right:[]}),fT={getInitialState:e=>({columnPinning:Pc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:ht("columnPinning",e)}),createColumn:(e,t)=>({pin:r=>{const n=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,l;if(r==="right"){var a,s;return{left:((a=o?.left)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((s=o?.right)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=o?.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=o?.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((i=o?.left)!=null?i:[]).filter(f=>!(n!=null&&n.includes(f))),right:((l=o?.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f)))}})},getCanPin:()=>e.getLeafColumns().some(n=>{var o,i;return((o=n.columnDef.enablePinning)!=null?o:!0)&&((i=t.options.enablePinning)!=null?i:!0)}),getIsPinned:()=>{const r=e.getLeafColumns().map(a=>a.id),{left:n,right:o}=t.getState().columnPinning,i=r.some(a=>n?.includes(a)),l=r.some(a=>o?.includes(a));return i?"left":l?"right":!1},getPinnedIndex:()=>{var r,n,o;const i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(o=n[i])==null?void 0:o.indexOf(e.id))!=null?r:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:Y(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,o)=>{const i=[...n??[],...o??[]];return r.filter(l=>!i.includes(l.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getLeftVisibleCells:Y(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(r,n)=>(n??[]).map(i=>r.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getRightVisibleCells:Y(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(i=>r.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:"row.getRightVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var r,n;return e.setColumnPinning(t?Pc():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:Pc())},getIsSomeColumnsPinned:t=>{var r;const n=e.getState().columnPinning;if(!t){var o,i;return Boolean(((o=n.left)==null?void 0:o.length)||((i=n.right)==null?void 0:i.length))}return Boolean((r=n[t])==null?void 0:r.length)},getLeftLeafColumns:Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(o=>o.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getRightLeafColumns:Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(o=>o.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getCenterLeafColumns:Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const o=[...r??[],...n??[]];return t.filter(i=>!o.includes(i.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}})})},dT={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:ht("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},toggleAllRowsSelected:t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{!i.getCanSelect()||(n[i.id]=!0)}):o.forEach(i=>{delete n[i.id]}),n})},toggleAllPageRowsSelected:t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...r};return e.getRowModel().rows.forEach(i=>{Df(o,i.id,n,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:Y(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?$c(e,r):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getFilteredSelectedRowModel:Y(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?$c(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getGroupedSelectedRowModel:Y(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?$c(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=Boolean(t.length&&Object.keys(r).length);return n&&t.some(o=>o.getCanSelect()&&!r[o.id])&&(n=!1),n},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(o=>!r[o.id])&&(n=!1),n},getIsSomeRowsSelected:()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.some(r=>r.getIsSelected()||r.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:r=>{const n=e.getIsSelected();t.setRowSelection(o=>{if(r=typeof r<"u"?r:!n,n===r)return o;const i={...o};return Df(i,e.id,r,t),i})},getIsSelected:()=>{const{rowSelection:r}=t.getState();return mp(e,r)},getIsSomeSelected:()=>{const{rowSelection:r}=t.getState();return g0(e,r)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:r}=t.getState();return g0(e,r)==="all"},getCanSelect:()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},getCanSelectSubRows:()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},getCanMultiSelect:()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},getToggleSelectedHandler:()=>{const r=e.getCanSelect();return n=>{var o;!r||e.toggleSelected((o=n.target)==null?void 0:o.checked)}}})},Df=(e,t,r,n)=>{var o;const i=n.getRow(t);r?(i.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),i.getCanSelect()&&(e[t]=!0)):delete e[t],(o=i.subRows)!=null&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(l=>Df(e,l.id,r,n))};function $c(e,t){const r=e.getState().rowSelection,n=[],o={},i=function(l,a){return l.map(s=>{var u;const c=mp(s,r);if(c&&(n.push(s),o[s.id]=s),(u=s.subRows)!=null&&u.length&&(s={...s,subRows:i(s.subRows)}),c)return s}).filter(Boolean)};return{rows:i(t.rows),flatRows:n,rowsById:o}}function mp(e,t){var r;return(r=t[e.id])!=null?r:!1}function g0(e,t,r){if(e.subRows&&e.subRows.length){let n=!0,o=!1;return e.subRows.forEach(i=>{o&&!n||(mp(i,t)?o=!0:n=!1)}),n?"all":o?"some":!1}return!1}const Tf=/([0-9]+)/gm,pT=(e,t,r)=>db(Nr(e.getValue(r)).toLowerCase(),Nr(t.getValue(r)).toLowerCase()),gT=(e,t,r)=>db(Nr(e.getValue(r)),Nr(t.getValue(r))),mT=(e,t,r)=>vp(Nr(e.getValue(r)).toLowerCase(),Nr(t.getValue(r)).toLowerCase()),vT=(e,t,r)=>vp(Nr(e.getValue(r)),Nr(t.getValue(r))),hT=(e,t,r)=>{const n=e.getValue(r),o=t.getValue(r);return n>o?1:nvp(e.getValue(r),t.getValue(r));function vp(e,t){return e===t?0:e>t?1:-1}function Nr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function db(e,t){const r=e.split(Tf).filter(Boolean),n=t.split(Tf).filter(Boolean);for(;r.length&&n.length;){const o=r.shift(),i=n.shift(),l=parseInt(o,10),a=parseInt(i,10),s=[l,a].sort();if(isNaN(s[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(s[1]))return isNaN(l)?-1:1;if(l>a)return 1;if(a>l)return-1}return r.length-n.length}const Lo={alphanumeric:pT,alphanumericCaseSensitive:gT,text:mT,textCaseSensitive:vT,datetime:hT,basic:yT},wT={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:ht("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const o of r){const i=o?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Lo.datetime;if(typeof i=="string"&&(n=!0,i.split(Tf).length>1))return Lo.alphanumeric}return n?Lo.text:Lo.basic},getAutoSortDir:()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof r?.getValue(e.id)=="string"?"asc":"desc"},getSortingFn:()=>{var r,n;if(!e)throw new Error;return ks(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:Lo[e.columnDef.sortingFn]},toggleSorting:(r,n)=>{const o=e.getNextSortingOrder(),i=typeof r<"u"&&r!==null;t.setSorting(l=>{const a=l?.find(g=>g.id===e.id),s=l?.findIndex(g=>g.id===e.id);let u=[],c,f=i?r:o==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&n?a?c="toggle":c="add":l!=null&&l.length&&s!==l.length-1?c="replace":a?c="toggle":c="replace",c==="toggle"&&(i||o||(c="remove")),c==="add"){var d;u=[...l,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=l.map(g=>g.id===e.id?{...g,desc:f}:g):c==="remove"?u=l.filter(g=>g.id!==e.id):u=[{id:e.id,desc:f}];return u})},getFirstSortDir:()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},getNextSortingOrder:r=>{var n,o;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==i&&((n=t.options.enableSortingRemoval)!=null?n:!0)&&(r&&(o=t.options.enableMultiRemove)!=null?o:!0)?!1:l==="desc"?"asc":"desc":i},getCanSort:()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},getCanMultiSort:()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},getIsSorted:()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(o=>o.id===e.id);return n?n.desc?"desc":"asc":!1},getSortIndex:()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?r:-1},clearSorting:()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},getToggleSortingHandler:()=>{const r=e.getCanSort();return n=>{!r||(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}}),createTable:e=>({setSorting:t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),resetSorting:t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},_T={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:ht("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},getIsVisible:()=>{var r,n;return(r=(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},getCanHide:()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},getToggleVisibilityHandler:()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:Y(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getVisibleCells:Y(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,o)=>[...r,...n,...o],{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>{const t=(r,n)=>Y(()=>[n(),n().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),{key:r,debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),resetColumnVisibility:r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},toggleAllColumnsVisible:r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:r||!(i.getCanHide!=null&&i.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}}},m0=[YD,_T,uT,fT,QD,wT,aT,KD,cT,dT,XD];function ST(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r={_features:m0};const n=r._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(r)),{}),o=c=>r.options.mergeOptions?r.options.mergeOptions(n,c):{...n,...c};let l={...{},...(t=e.initialState)!=null?t:{}};r._features.forEach(c=>{var f;l=(f=c.getInitialState==null?void 0:c.getInitialState(l))!=null?f:l});const a=[];let s=!1;const u={_features:m0,options:{...n,...e},initialState:l,_queue:c=>{a.push(c),s||(s=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();s=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{r.setState(r.initialState)},setOptions:c=>{const f=pr(c,r.options);r.options=o(f)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,f,d)=>{var g;return(g=r.options.getRowId==null?void 0:r.options.getRowId(c,f,d))!=null?g:""+(d?[d.id,f].join("."):f)},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:c=>{const f=r.getRowModel().rowsById[c];if(!f)throw new Error;return f},_getDefaultColumnDef:Y(()=>[r.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:d=>{const g=d.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:d=>{var g,y;return(g=(y=d.renderValue())==null||y.toString==null?void 0:y.toString())!=null?g:null},...r._features.reduce((d,g)=>Object.assign(d,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns},key:!1}),_getColumnDefs:()=>r.options.columns,getAllColumns:Y(()=>[r._getColumnDefs()],c=>{const f=function(d,g,y){return y===void 0&&(y=0),d.map(w=>{const v=GD(r,w,y,g),m=w;return v.columns=m.columns?f(m.columns,v,y+1):[],v})};return f(c)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllFlatColumns:Y(()=>[r.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),_getAllFlatColumnsById:Y(()=>[r.getAllFlatColumns()],c=>c.reduce((f,d)=>(f[d.id]=d,f),{}),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllLeafColumns:Y(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(c,f)=>{let d=c.flatMap(g=>g.getLeafColumns());return f(d)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getColumn:c=>{const f=r._getAllFlatColumnsById()[c];if(!f)throw new Error;return f}};return Object.assign(r,u),r._features.forEach(c=>Object.assign(r,c.createTable==null?void 0:c.createTable(r))),r}function xT(e,t,r,n){const o=()=>{var l;return(l=i.getValue())!=null?l:e.options.renderFallbackValue},i={id:t.id+"_"+r.id,row:t,column:r,getValue:()=>t.getValue(n),renderValue:o,getContext:()=>({table:e,column:r,row:t,cell:i,getValue:i.getValue,renderValue:i.renderValue})};return e._features.forEach(l=>{Object.assign(i,l.createCell==null?void 0:l.createCell(i,r,t,e))},{}),i}const hp=(e,t,r,n,o,i)=>{let l={id:t,index:n,original:r,depth:o,_valuesCache:{},getValue:a=>{if(l._valuesCache.hasOwnProperty(a))return l._valuesCache[a];const s=e.getColumn(a);if(!!s.accessorFn)return l._valuesCache[a]=s.accessorFn(l.original,n),l._valuesCache[a]},renderValue:a=>{var s;return(s=l.getValue(a))!=null?s:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>UD(l.subRows,a=>a.subRows),getAllCells:Y(()=>[e.getAllLeafColumns()],a=>a.map(s=>xT(e,l,s,s.id)),{key:!1,debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}}),_getAllCellsByColumnId:Y(()=>[l.getAllCells()],a=>a.reduce((s,u)=>(s[u.column.id]=u,s),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}})};for(let a=0;aY(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(o,i,l){i===void 0&&(i=0);const a=[];for(let u=0;u{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function PT(e,t,r){return r.options.filterFromLeafRows?$T(e,t,r):OT(e,t,r)}function $T(e,t,r){const n=[],o={},i=function(l,a){const s=[];for(let c=0;cY(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,n)=>{if(!t.rows.length||!(r!=null&&r.length)&&!n){for(let d=0;d{var g;const w=e.getColumn(d.id).getFilterFn();!w||o.push({id:d.id,filterFn:w,resolvedValue:(g=w.resolveFilterValue==null?void 0:w.resolveFilterValue(d.value))!=null?g:d.value})});const l=r.map(d=>d.id),a=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter(d=>d.getCanGlobalFilter());n&&a&&s.length&&(l.push("__global__"),s.forEach(d=>{var g;i.push({id:d.id,filterFn:a,resolvedValue:(g=a.resolveFilterValue==null?void 0:a.resolveFilterValue(n))!=null?g:n})}));let u,c;for(let d=0;d{g.columnFiltersMeta[w]=v})}if(i.length){for(let y=0;y{g.columnFiltersMeta[w]=v})){g.columnFilters.__global__=!0;break}}g.columnFilters.__global__!==!0&&(g.columnFilters.__global__=!1)}}const f=d=>{for(let g=0;g{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function ET(){return e=>Y(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,o=[],i=n.filter(s=>e.getColumn(s.id).getCanSort()),l={};i.forEach(s=>{const u=e.getColumn(s.id);l[s.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()}});const a=s=>{const u=s.slice();return u.sort((c,f)=>{for(let g=0;g"u",$=typeof _>"u";if(x||$)return x&&$?0:x?w.sortUndefined:-w.sortUndefined}let m=w.sortingFn(c,f,y.id);if(m!==0)return v&&(m*=-1),w.invertSorting&&(m*=-1),m}return c.index-f.index}),u.forEach(c=>{o.push(c),!(!c.subRows||c.subRows.length<=1)&&(c.subRows=a(c.subRows))}),u};return{rows:a(r.rows),flatRows:o,rowsById:r.rowsById}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function RT(e){const t=[],r=n=>{var o;t.push(n),(o=n.subRows)!=null&&o.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function kT(e){return t=>Y(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(r,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:i}=r;let{rows:l,flatRows:a,rowsById:s}=n;const u=o*i,c=u+o;l=l.slice(u,c);let f;t.options.paginateExpandedRows?f={rows:l,flatRows:a,rowsById:s}:f=RT({rows:l,flatRows:a,rowsById:s}),f.flatRows=[];const d=g=>{f.flatRows.push(g),g.subRows.length&&g.subRows.forEach(d)};return f.rows.forEach(d),f},{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugTable}})}function v0(e,t){return e?IT(e)?p.exports.createElement(e,t):e:null}function IT(e){return NT(e)||typeof e=="function"||zT(e)}function NT(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function zT(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function DT(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=p.exports.useState(()=>({current:ST(t)})),[n,o]=p.exports.useState(()=>r.current.initialState);return r.current.setOptions(i=>({...i,...e,state:{...n,...e.state},onStateChange:l=>{o(l),e.onStateChange==null||e.onStateChange(l)}})),r.current}const Mf=co(e=>({doors:[],setDoors:t=>e({doors:t})}));function TT(e){return be({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M249.334 22.717c-18.64 2.424-35.677 23.574-37.043 51.49v.02c-.057 1.186-.097 2.38-.097 3.59 0 16.362 5.658 30.827 13.942 40.818l10.127 12.213-15.592 2.933c-10.75 2.025-18.622 7.702-25.373 16.978-2.285 3.14-4.384 6.707-6.31 10.62-57.54-6.44-97.91-21.06-97.91-37.952 0-17.363 42.647-31.983 102.75-37.97-.213-2.51-.323-5.057-.323-7.636v-.002c0-.84.024-1.674.047-2.51-96.43 6.77-167.298 29.15-167.3 55.71-.002 25.33 64.462 46.86 154.074 54.67-.19.742-.394 1.465-.576 2.216-2.36 9.72-4.05 20.22-5.268 31.03-.01 0-.02 0-.03.002-.418 3.653-.78 7.34-1.095 11.046l.05-.005c-1.316 15.777-1.772 31.88-1.893 46.95h35.894l2.115 28.4c-68.24-4.994-118.444-21.004-118.444-39.843 0-13.243 24.83-24.89 63.27-32.33.3-4.056.66-8.115 1.076-12.162-76.42 9.353-129.17 29.168-129.172 52.086-.002 28.17 79.71 51.643 185.098 56.768l5.94 79.77c10.5 2.648 24.84 4.162 39.017 4.068 13.79-.092 27.235-1.71 36.45-4l5.263-79.846c105.308-5.14 184.935-28.605 184.935-56.76 0-23.013-53.196-42.895-130.13-52.2.304 4.02.557 8.047.755 12.07 38.883 7.43 63.965 19.17 63.965 32.536 0 18.84-49.804 34.85-117.908 39.844l1.87-28.402h34.18c-.012-15.113-.127-31.27-1.033-47.094.01 0 .02.002.032.004-.214-3.687-.472-7.352-.782-10.986l-.02-.002c-.94-11.157-2.367-21.984-4.546-31.967-.09-.405-.184-.803-.275-1.206 89.518-7.826 153.893-29.344 153.893-54.656 0-26.787-72.076-49.332-169.77-55.887.025.895.053 1.788.053 2.688 0 2.5-.104 4.97-.304 7.407 61.19 5.836 104.61 20.61 104.61 38.2 0 16.805-39.633 31.355-96.524 37.848-2.01-4.283-4.26-8.15-6.762-11.505-6.83-9.167-15.063-14.81-27.14-16.682l-15.913-2.47 10.037-12.59c6.928-8.69 11.912-20.715 13.057-34.268h.002c.163-1.95.25-3.93.25-5.938 0-.77-.022-1.532-.048-2.29-.015-.48-.033-.958-.057-1.434h-.002c-1.48-29.745-20.507-51.3-41.076-51.3-2.528 0-3.966-.087-4.03-.08h-.003zM194.54 355.822c-97.11 6.655-168.573 29.11-168.573 55.8 0 31.932 102.243 57.815 228.367 57.815S482.7 443.555 482.7 411.623c0-26.608-71.02-49.004-167.67-55.736l-.655 9.93c60.363 6.055 103.074 20.956 103.074 38.394 0 22.81-73.032 41.298-163.12 41.298-90.088 0-163.12-18.49-163.12-41.297 0-17.533 43.18-32.502 104.07-38.493l-.74-9.895z"}}]})(e)}function jf(e){return be({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}},{tag:"path",attr:{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"}}]})(e)}function MT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}}]})(e)}function jT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"}}]})(e)}function LT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}}]})(e)}const Lf=e=>{let t=[];if(e.groups){const r=Object.entries(e.groups);for(let n=0;n({clipboard:!1,setClipboard:t=>e({clipboard:t})})),yp=p.exports.createContext(null);yp.displayName="@mantine/modals/ModalsContext";function FT(){const e=p.exports.useContext(yp);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}var AT=Object.defineProperty,VT=Object.defineProperties,HT=Object.getOwnPropertyDescriptors,h0=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,WT=Object.prototype.propertyIsEnumerable,y0=(e,t,r)=>t in e?AT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oc=(e,t)=>{for(var r in t||(t={}))BT.call(t,r)&&y0(e,r,t[r]);if(h0)for(var r of h0(t))WT.call(t,r)&&y0(e,r,t[r]);return e},w0=(e,t)=>VT(e,HT(t));function UT({id:e,cancelProps:t,confirmProps:r,labels:n={cancel:"",confirm:""},closeOnConfirm:o=!0,closeOnCancel:i=!0,groupProps:l,onCancel:a,onConfirm:s,children:u}){const{cancel:c,confirm:f}=n,d=FT(),g=w=>{typeof t?.onClick=="function"&&t?.onClick(w),typeof a=="function"&&a(),i&&d.closeModal(e)},y=w=>{typeof r?.onClick=="function"&&r?.onClick(w),typeof s=="function"&&s(),o&&d.closeModal(e)};return C.createElement(C.Fragment,null,u&&C.createElement(X,{mb:"md"},u),C.createElement(Lt,Oc({position:"right"},l),C.createElement(Kn,w0(Oc({variant:"default"},t),{onClick:g}),t?.children||c),C.createElement(Kn,w0(Oc({},r),{onClick:y}),r?.children||f)))}function GT(e,t){switch(t.type){case"OPEN":return{current:t.payload,modals:[...e.modals,t.payload]};case"CLOSE":return{current:e.modals[e.modals.length-2]||null,modals:e.modals.filter(r=>r.id!==t.payload)};case"CLOSE_ALL":return{current:e.current,modals:[]};default:return e}}const[YT,Yi]=X$("mantine-modals");Yi("openModal");Yi("closeModal");Yi("closeAllModals");const gb=Yi("openConfirmModal");Yi("openContextModal");var XT=Object.defineProperty,qT=Object.defineProperties,KT=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,mb=Object.prototype.hasOwnProperty,vb=Object.prototype.propertyIsEnumerable,_0=(e,t,r)=>t in e?XT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wl=(e,t)=>{for(var r in t||(t={}))mb.call(t,r)&&_0(e,r,t[r]);if(Is)for(var r of Is(t))vb.call(t,r)&&_0(e,r,t[r]);return e},S0=(e,t)=>qT(e,KT(t)),Ur=(e,t)=>{var r={};for(var n in e)mb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Is)for(var n of Is(e))t.indexOf(n)<0&&vb.call(e,n)&&(r[n]=e[n]);return r};function QT(e){if(!e)return{confirmProps:{},modalProps:{}};const t=e,{id:r,children:n,onCancel:o,onConfirm:i,closeOnConfirm:l,closeOnCancel:a,cancelProps:s,confirmProps:u,groupProps:c,labels:f}=t,d=Ur(t,["id","children","onCancel","onConfirm","closeOnConfirm","closeOnCancel","cancelProps","confirmProps","groupProps","labels"]);return{confirmProps:{id:r,children:n,onCancel:o,onConfirm:i,closeOnConfirm:l,closeOnCancel:a,cancelProps:s,confirmProps:u,groupProps:c,labels:f},modalProps:Wl({id:r},d)}}function ZT({children:e,modalProps:t,labels:r,modals:n}){const[o,i]=p.exports.useReducer(GT,{modals:[],current:null}),l=w=>{o.modals.forEach(v=>{var m,h,_,x;v.type==="confirm"&&w&&((h=(m=v.props)==null?void 0:m.onCancel)==null||h.call(m)),(x=(_=v.props)==null?void 0:_.onClose)==null||x.call(_)}),i({type:"CLOSE_ALL"})},a=w=>{var v=w,{modalId:m}=v,h=Ur(v,["modalId"]);const _=m||Hl();return i({type:"OPEN",payload:{id:_,type:"content",props:h}}),_},s=w=>{var v=w,{modalId:m}=v,h=Ur(v,["modalId"]);const _=m||Hl();return i({type:"OPEN",payload:{id:_,type:"confirm",props:h}}),_},u=(w,v)=>{var m=v,{modalId:h}=m,_=Ur(m,["modalId"]);const x=h||Hl();return i({type:"OPEN",payload:{id:x,type:"context",props:_,ctx:w}}),x},c=(w,v)=>{var m,h,_,x;if(o.modals.length<=1){l(v);return}const $=o.modals.find(b=>b.id===w);$?.type==="confirm"&&v&&((h=(m=$.props)==null?void 0:m.onCancel)==null||h.call(m)),(x=(_=$?.props)==null?void 0:_.onClose)==null||x.call(_),i({type:"CLOSE",payload:$.id})};YT({openModal:a,openConfirmModal:s,openContextModal:w=>{var v=w,{modal:m}=v,h=Ur(v,["modal"]);return u(m,h)},closeModal:c,closeAllModals:l});const f={modals:o.modals,openModal:a,openConfirmModal:s,openContextModal:u,closeModal:c,closeAll:l},d=()=>{var w;switch((w=o.current)==null?void 0:w.type){case"context":{const v=o.current.props,{innerProps:m}=v,h=Ur(v,["innerProps"]),_=n[o.current.ctx];return{modalProps:h,content:S(_,{innerProps:m,context:f,id:o.current.id})}}case"confirm":{const{modalProps:v,confirmProps:m}=QT(o.current.props);return{modalProps:v,content:S(UT,{...S0(Wl({},m),{id:o.current.id,labels:o.current.props.labels||r})})}}case"content":{const v=o.current.props,{children:m}=v;return{modalProps:Ur(v,["children"]),content:S(lt,{children:m})}}default:return{modalProps:{},content:null}}},{modalProps:g,content:y}=d();return H(yp.Provider,{value:f,children:[S(yu,{...S0(Wl(Wl({},t),g),{opened:o.modals.length>0,onClose:()=>c(o.current.id)}),children:y}),e]})}const JT=({data:e})=>{const t=Ui(),r=pb(o=>o.setClipboard),n=$u(o=>o.setVisible);return H(tt,{position:"right-start",width:200,children:[S(tt.Target,{children:S(ot,{label:"Door actions",children:S(Ot,{color:"blue.4",variant:"transparent",children:S(jD,{size:24})})})}),H(tt.Dropdown,{children:[S(tt.Item,{icon:S(Pu,{size:18}),onClick:()=>{K.setState(Lf(e.row.original),!0),t("/settings/general")},children:"Settings"}),S(tt.Item,{icon:S(jT,{size:18}),onClick:()=>{r(Lf(e.row.original)),Pr("notify","Settings copied")},children:"Copy settings"}),S(tt.Item,{icon:S(TT,{size:18}),onClick:()=>{n(!1),Pr("teleportToDoor",e.row.getValue("id"))},children:"Teleport to door"}),S(tt.Item,{color:"red",icon:S(Gi,{size:18}),onClick:()=>gb({title:"Confirm deletion",centered:!0,withCloseButton:!1,children:H(vt,{children:["Are you sure you want to delete",S(vt,{component:"span",weight:700,children:` ${e.row.getValue("name")}`}),"?"]}),labels:{confirm:"Confirm",cancel:"Cancel"},confirmProps:{color:"red"},onConfirm:()=>{Pr("deleteDoor",e.row.getValue("id"))}}),children:"Delete door"})]})]})},e7=()=>{const[e,t]=p.exports.useState([]),[r,n]=p.exports.useState(1),o=If(s=>s.debouncedValue),i=Mf(s=>s.doors),l=p.exports.useMemo(()=>[{id:"id",header:"ID",accessorKey:"id",cell:s=>s.getValue(),enableHiding:!1,enableGlobalFilter:!1},{id:"name",header:"Name",accessorKey:"name",cell:s=>s.getValue(),enableHiding:!1},{id:"zone",header:"Zone",accessorKey:"zone",cell:s=>s.getValue(),enableHiding:!1},{id:"options-menu",cell:s=>S(JT,{data:s})}],[]),a=DT({data:i,columns:l,initialState:{pagination:{pageSize:8,pageIndex:0}},state:{sorting:e,globalFilter:o},onGlobalFilterChange:If(s=>s.setValue),onSortingChange:t,getCoreRowModel:bT(),getSortedRowModel:ET(),getFilteredRowModel:CT(),getPaginationRowModel:kT()});return p.exports.useEffect(()=>{a.setPageIndex(r-1)},[r,i]),H(Mt,{justify:"space-between",align:"center",sx:{height:"100%",paddingBottom:16},spacing:0,children:[a.getFilteredRowModel().rows.length>0?H(_x,{children:[S("thead",{children:a.getHeaderGroups().map(s=>S("tr",{children:s.headers.map(u=>S("th",{children:S(au,{onClick:u.column.getToggleSortingHandler(),children:H(Lt,{children:[S(vt,{children:v0(u.column.columnDef.header,u.getContext())}),u.column.getIsSorted()==="desc"?S(TD,{}):u.column.getIsSorted()==="asc"?S(MD,{}):u.column.getCanHide()?S(lt,{}):S(FD,{})]})})},u.id))},s.id))}),S("tbody",{children:a.getRowModel().rows.map(s=>S("tr",{children:s.getAllCells().map(u=>S("td",{children:v0(u.column.columnDef.cell,u.getContext())},u.id))},s.id))})]}):S(aS,{sx:{height:"100%"},children:H(Mt,{align:"center",children:[S(nb,{size:48}),S(vt,{size:"lg",children:"No results found"})]})}),a.getPageCount()>1&&S(cx,{page:r,total:a.getPageCount(),onChange:s=>n(s)})]})},t7=()=>H(Mt,{sx:{height:"100%"},children:[S(WD,{}),S(e7,{})]}),Fo=({label:e,type:t,infoCircle:r,span:n,value:o,setValue:i})=>S(hu.Col,{span:n||1,children:S(X,{children:t==="text"?S(Mr,{value:o,onChange:l=>i(l.target.value),label:e,rightSection:r&&S(ot,{label:r,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(Ef,{variant:"light",mr:10,children:S(jf,{size:18})})})}):S(Oi,{label:e,step:.1,precision:1,value:typeof o=="number"?o:void 0,onChange:l=>i(l),hideControls:!0,rightSection:r&&S(ot,{label:r,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(Ef,{variant:"light",mr:10,children:S(jf,{size:18})})})})})}),r7=()=>{const e=K(c=>c.name),t=K(c=>c.passcode),r=K(c=>c.autolock),n=K(c=>c.maxDistance),o=K(c=>c.doorRate),i=_e(c=>c.setName),l=_e(c=>c.setPasscode),a=_e(c=>c.setAutolock),s=_e(c=>c.setMaxDistance),u=_e(c=>c.setDoorRate);return S(lt,{children:H(hu,{columns:2,sx:{fontSize:16},children:[S(Fo,{label:"Door name",type:"text",value:e||"",setValue:c=>i(c)}),S(Fo,{label:"Passcode",type:"text",value:t||"",setValue:c=>l(c)}),S(Fo,{label:"Autolock Interval",type:"number",value:r||0,setValue:c=>a(c),infoCircle:"Time in seconds after which the door will be locked"}),S(Fo,{label:"Interact Distance",type:"number",value:n||0,setValue:c=>s(c),infoCircle:"Controls the distance from which the player can interact with the door"}),S(Fo,{label:"Door Rate",type:"number",span:2,value:o||0,setValue:c=>u(c),infoCircle:"Speed the automatic door will move at"})]})})},_n=({infoCircle:e,label:t,value:r,toggle:n})=>H(Lt,{spacing:8,align:"center",children:[S(cp,{label:t,checked:r,onChange:()=>n()}),S(ot,{label:e,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(X,{sx:{display:"flex"},children:S(jf,{size:18})})})]}),n7=()=>{const e=K(a=>a.state),t=K(a=>a.doors),r=K(a=>a.auto),n=K(a=>a.lockpick),o=K(a=>a.hideUi),i=K(a=>a.holdOpen),l=_e(a=>a.toggleCheckbox);return S(lt,{children:H(mx,{cols:2,pt:16,children:[S(_n,{label:"Locked",infoCircle:"Sets whether the targeting door is locked by default",value:e||!1,toggle:()=>l("state")}),S(_n,{label:"Double",infoCircle:"Enable if the targeting door is a double door",value:t||!1,toggle:()=>l("doors")}),S(_n,{label:"Automatic",infoCircle:"Enable if the targeting door is moving automatically (Garage, poles, etc...)",value:r||!1,toggle:()=>l("auto")}),S(_n,{label:"Lockpick",infoCircle:"Enables the targeting door to be lockpicked. Can define skill check difficulties in Lockpick tab, otherwise uses config defaults",value:n||!1,toggle:()=>l("lockpick")}),S(_n,{label:"Hide UI",infoCircle:"Hides UI indicators for the targeting door",value:o||!1,toggle:()=>l("hideUi")}),S(_n,{label:"Hold Open",infoCircle:"Sets whether the targeting door(s) should stay open while unlocked",value:i||!1,toggle:()=>l("holdOpen")})]})})},o7=()=>S(Mt,{justify:"space-between",sx:{height:"100%"},children:H(X,{children:[S(r7,{}),S(n7,{})]})}),i7=()=>{const e=K(o=>o.characters),t=_e(o=>o.setCharacters),r=(o,i)=>{t(l=>l.map((a,s)=>i===s?o:a))},n=o=>{t(i=>i.filter((l,a)=>a!==o))};return S(lt,{children:e.map((o,i)=>H(Lt,{position:"center",mt:i===0?0:16,noWrap:!0,spacing:16,sx:{fontSize:16},children:[S(Mr,{sx:{width:"100%"},placeholder:"Character Id",value:o,onChange:l=>r(l.target.value,i)}),S(ot,{label:"Delete row",children:S(Ot,{color:"red.4",variant:"transparent",onClick:()=>n(i),children:S(Gi,{size:24})})})]},`group-${i}`))})},Ou=({children:e,setter:t})=>S(Mt,{justify:"space-between",align:"center",sx:{height:"100%"},children:H(X,{sx:{width:"100%",overflowY:"auto",height:410},children:[e,S(ot,{label:"Create a new row",withArrow:!0,arrowSize:10,children:S(Kn,{mt:16,fullWidth:!0,variant:"light",onClick:t,children:S(rb,{size:24})})})]})}),l7=()=>{const e=_e(t=>t.setCharacters);return p.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>r!==""||n===0))},[]),S(Ou,{setter:()=>e(t=>[...t,""]),children:S(i7,{})})},a7=()=>{const e=K(o=>o.groups),t=_e(o=>o.setGroups),r=(o,i,l)=>{t(a=>a.map((s,u)=>i===u?{...s,[l]:o}:s))},n=o=>{t(i=>i.filter((l,a)=>a!==o))};return S(lt,{children:e.map((o,i)=>H(Lt,{position:"center",mt:i===0?0:16,noWrap:!0,spacing:16,sx:{fontSize:16},children:[S(Mr,{sx:{width:"100%"},placeholder:"Group",value:o.name,onChange:l=>r(l.target.value,i,"name")}),S(Oi,{sx:{width:"100%"},placeholder:"Grade",value:o.grade,onChange:l=>r(l,i,"grade")}),S(ot,{label:"Delete row",children:S(Ot,{color:"red.4",variant:"transparent",onClick:()=>n(i),children:S(Gi,{size:24})})})]},`group-${i}`))})},s7=()=>{const e=_e(t=>t.setGroups);return p.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>r.name!==""||r.grade!==null||n===0))},[]),S(Ou,{setter:()=>e(t=>[...t,{name:"",grade:null}]),children:S(a7,{})})};var x0=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var l=i[o];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r};function Ff(e){return e===null||typeof e!="object"?{}:Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&n!==!1&&(t[r]=n),t},{})}var u7=Object.defineProperty,b0=Object.getOwnPropertySymbols,c7=Object.prototype.hasOwnProperty,f7=Object.prototype.propertyIsEnumerable,P0=(e,t,r)=>t in e?u7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d7=(e,t)=>{for(var r in t||(t={}))c7.call(t,r)&&P0(e,r,t[r]);if(b0)for(var r of b0(t))f7.call(t,r)&&P0(e,r,t[r]);return e};function $0(e,t){if(t===null||typeof t!="object")return{};const r=d7({},t);return Object.keys(t).forEach(n=>{n.includes(`${String(e)}.`)&&delete r[n]}),r}const p7="__MANTINE_FORM_INDEX__";function O0(e,t){return t?typeof t=="boolean"?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]/g,`.${p7}`)):!1:!1}function Ht(e){if(typeof e!="object")return e;var t,r,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){r=new e.constructor;for(t in e)e.hasOwnProperty(t)&&r[t]!==e[t]&&(r[t]=Ht(e[t]))}else{r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Ht(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=Ht(e[t])}return r}if(n==="[object Array]"){for(t=e.length,r=Array(t);t--;)r[t]=Ht(e[t]);return r}return n==="[object Set]"?(r=new Set,e.forEach(function(o){r.add(Ht(o))}),r):n==="[object Map]"?(r=new Map,e.forEach(function(o,i){r.set(Ht(i),Ht(o))}),r):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(r=new RegExp(e.source,e.flags),r.lastIndex=e.lastIndex,r):n==="[object DataView]"?new e.constructor(Ht(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}function hb(e){return typeof e!="string"?[]:e.split(".")}function Cu(e,t,r){const n=hb(e);if(n.length===0)return r;const o=Ht(r);if(n.length===1)return o[n[0]]=t,o;let i=o[n[0]];for(let l=1;l0,errors:t}}function Af(e,t,r="",n={}){return typeof e!="object"||e===null?n:Object.keys(e).reduce((o,i)=>{const l=e[i],a=`${r===""?"":`${r}.`}${i}`,s=gr(a,t);let u=!1;return typeof l=="function"&&(o[a]=l(s,t,a)),typeof l=="object"&&Array.isArray(s)&&(u=!0,s.forEach((c,f)=>Af(l,t,`${a}.${f}`,o))),typeof l=="object"&&typeof s=="object"&&s!==null&&(u||Af(l,t,a,o)),o},n)}function Vf(e,t){return C0(typeof e=="function"?e(t):Af(e,t))}function Cl(e,t,r){if(typeof e!="string")return{hasError:!1,error:null};const n=Vf(t,r),o=Object.keys(n.errors).find(i=>e.split(".").every((l,a)=>l===i.split(".")[a]));return{hasError:!!o,error:o?n.errors[o]:null}}function g7(e,{from:t,to:r},n){const o=gr(e,n);if(!Array.isArray(o))return n;const i=[...o],l=o[t];return i.splice(t,1),i.splice(r,0,l),Cu(e,i,n)}function m7(e,t,r){const n=gr(e,r);return Array.isArray(n)?Cu(e,n.filter((o,i)=>i!==t),r):r}function v7(e,t,r,n){const o=gr(e,n);if(!Array.isArray(o))return n;const i=[...o];return i.splice(typeof r=="number"?r:i.length,0,t),Cu(e,i,n)}function E0(e,t){const r=Object.keys(e);if(typeof t=="string"){const n=r.filter(o=>o.includes(`${t}.`));return e[t]||n.some(o=>e[o])||!1}return r.some(n=>e[n])}function h7(e){return t=>{if(!t)e(t);else if(typeof t=="function")e(t);else if(typeof t=="object"&&"nativeEvent"in t){const{currentTarget:r}=t;r instanceof HTMLInputElement?r.type==="checkbox"?e(r.checked):e(r.value):(r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&e(r.value)}else e(t)}}var y7=Object.defineProperty,w7=Object.defineProperties,_7=Object.getOwnPropertyDescriptors,R0=Object.getOwnPropertySymbols,S7=Object.prototype.hasOwnProperty,x7=Object.prototype.propertyIsEnumerable,k0=(e,t,r)=>t in e?y7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t)=>{for(var r in t||(t={}))S7.call(t,r)&&k0(e,r,t[r]);if(R0)for(var r of R0(t))x7.call(t,r)&&k0(e,r,t[r]);return e},Cc=(e,t)=>w7(e,_7(t));function yb({initialValues:e={},initialErrors:t={},initialDirty:r={},initialTouched:n={},clearInputErrorOnChange:o=!0,validateInputOnChange:i=!1,validateInputOnBlur:l=!1,transformValues:a=u=>u,validate:s}={}){const[u,c]=p.exports.useState(n),[f,d]=p.exports.useState(r),[g,y]=p.exports.useState(e),[w,v]=p.exports.useState(Ff(t)),m=p.exports.useRef(e),h=R=>{m.current=R},_=p.exports.useCallback(()=>c({}),[]),x=R=>{h(R||g),d({})},$=p.exports.useCallback(R=>v(M=>Ff(typeof R=="function"?R(M):R)),[]),b=p.exports.useCallback(()=>v({}),[]),P=p.exports.useCallback(()=>{y(e),b(),x(e),_()},[]),E=p.exports.useCallback((R,M)=>$(W=>Cc(Sn({},W),{[R]:M})),[]),O=p.exports.useCallback(R=>$(M=>{if(typeof R!="string")return M;const W=Sn({},M);return delete W[R],W}),[]),D=p.exports.useCallback(R=>d(M=>{if(typeof R!="string")return M;const W=$0(R,M);return delete W[R],W}),[]),z=p.exports.useCallback((R,M)=>{const W=O0(R,i);D(R),c(Z=>Cc(Sn({},Z),{[R]:!0})),y(Z=>{const Te=Cu(R,M,Z);if(W){const ae=Cl(R,s,Te);ae.hasError?E(R,ae.error):O(R)}return Te}),!W&&o&&E(R,null)},[]),T=p.exports.useCallback(R=>{y(M=>{const W=typeof R=="function"?R(M):R;return Sn(Sn({},M),W)}),o&&b()},[]),F=p.exports.useCallback((R,M)=>{D(R),y(W=>g7(R,M,W))},[]),G=p.exports.useCallback((R,M)=>{D(R),y(W=>m7(R,M,W)),v(W=>$0(R,W))},[]),q=p.exports.useCallback((R,M,W)=>{D(R),y(Z=>v7(R,M,W,Z))},[]),B=p.exports.useCallback(()=>{const R=Vf(s,g);return v(R.errors),R},[g,s]),ne=p.exports.useCallback(R=>{const M=Cl(R,s,g);return M.hasError?E(R,M.error):O(R),M},[g,s]),se=(R,{type:M="input",withError:W=M==="input",withFocus:Z=!0}={})=>{const ae={onChange:h7(He=>z(R,He))};return W&&(ae.error=w[R]),M==="checkbox"?ae.checked=gr(R,g):ae.value=gr(R,g),Z&&(ae.onFocus=()=>c(He=>Cc(Sn({},He),{[R]:!0})),ae.onBlur=()=>{if(O0(R,l)){const He=Cl(R,s,g);He.hasError?E(R,He.error):O(R)}}),ae},ie=(R,M)=>W=>{W?.preventDefault();const Z=B();Z.hasErrors?M?.(Z.errors,g,W):R(a(g),W)},De=p.exports.useCallback(R=>{R.preventDefault(),P()},[]),k=R=>{if(Object.keys(f).length>0)return E0(f,R);if(R){const W=gr(R,g),Z=gr(R,m.current);return!x0(W,Z)}return!x0(g,m.current)},N=p.exports.useCallback(R=>E0(u,R),[u]),A=p.exports.useCallback(R=>R?!Cl(R,s,g).hasError:!Vf(s,g).hasErrors,[g,s]);return{values:g,errors:w,setValues:T,setErrors:$,setFieldValue:z,setFieldError:E,clearFieldError:O,clearErrors:b,reset:P,validate:B,validateField:ne,reorderListItem:F,removeListItem:G,insertListItem:q,getInputProps:se,onSubmit:ie,onReset:De,isDirty:k,isTouched:N,setTouched:c,setDirty:d,resetTouched:_,resetDirty:x,isValid:A}}const b7=({modal:e,setModal:t})=>{const r=K(a=>a.items),n=_e(a=>a.setItems),o=p.exports.useMemo(()=>r[e.index],[e,r]),i=yb({initialValues:{metadata:o.metadata,remove:o.remove}}),l=a=>{t(s=>({...s,opened:!1})),n(s=>s.map((u,c)=>c===e.index?{...u,metadata:a.metadata,remove:a.remove}:u))};return S("form",{onSubmit:i.onSubmit(a=>l(a)),children:H(Mt,{children:[S(Mr,{label:"Metadata type",defaultValue:o.metadata,...i.getInputProps("metadata")}),S(cp,{label:"Remove on use",defaultChecked:o.remove,...i.getInputProps("remove")}),S(Kn,{uppercase:!0,variant:"light",type:"submit",children:"Confirm"})]})})},P7=()=>{const e=K(l=>l.items),t=_e(l=>l.setItems),[r,n]=p.exports.useState({opened:!1,index:0}),o=(l,a)=>{const s=[...e];switch(l.target.id){case"name":s[a].name=l.target.value;break}t(()=>s)},i=l=>{t(a=>a.filter((s,u)=>u!==l))};return H(X,{children:[e.length>0&&S(lt,{children:e.map((l,a)=>H(Lt,{sx:{width:"100%"},position:"apart",spacing:16,mt:a===0?void 0:16,children:[S(Mr,{sx:{width:"80%"},value:l.name||"",id:"name",placeholder:"Item",onChange:s=>o(s,a)}),S(ot,{label:"Item options",children:S(Ot,{color:"blue.4",variant:"transparent",onClick:()=>n({opened:!0,index:a}),children:S(Pu,{size:24})})}),S(ot,{label:"Delete row",children:S(Ot,{color:"red.4",variant:"transparent",onClick:()=>i(a),children:S(Gi,{size:24})})})]},`item-field-${a}`))}),S(yu,{opened:r.opened,onClose:()=>n({...r,opened:!1}),transition:"fade",title:"Item options",centered:!0,size:"xs",withCloseButton:!1,children:S(b7,{modal:r,setModal:n})})]})},$7=()=>{const e=_e(t=>t.setItems);return p.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>n===0||r.name!==""))},[]),S(Ou,{setter:()=>e(t=>[...t,{name:"",metadata:"",remove:!1}]),children:S(P7,{})})},O7=()=>{const e=_e(i=>i.sounds),t=K(i=>i.lockSound),r=K(i=>i.unlockSound),n=_e(i=>i.setLockSound),o=_e(i=>i.setUnlockSound);return H(Mt,{children:[S(Ci,{data:e,label:"Lock sound",value:t||"",searchable:!0,clearable:!0,nothingFound:"No such sound",onChange:i=>n(i)}),S(Ci,{data:e,label:"Unlock sound",value:r||"",searchable:!0,clearable:!0,nothingFound:"No such sound",onChange:i=>o(i)})]})},C7=()=>{const e=Ui(),t=pb(o=>o.clipboard),r=$u(o=>o.setVisible),n=()=>{const o={...K.getState()};if(o.name===""&&(o.name=null),o.passcode===""&&(o.passcode=null),o.lockSound===""&&(o.lockSound=null),o.unlockSound===""&&(o.unlockSound=null),o.autolock=o.autolock||null,o.maxDistance=o.maxDistance||2,o.doorRate=o.doorRate?o.doorRate+0:null,o.auto=o.auto||null,o.lockpick=o.lockpick||null,o.hideUi=o.hideUi||null,o.holdOpen=o.holdOpen||null,o.items&&o.items.length>0){const i=[];for(let l=0;l0){const i=[];for(let l=0;l0){const i={};for(let l=0;l0){const i=[];for(let l=0;ln(),fullWidth:!0,children:"Confirm door"}),S(ot,{label:t?"Apply copied settings":"No door settings copied",withArrow:!0,arrowSize:10,children:S(Ot,{variant:"outline",disabled:!t,size:"lg",ml:16,sx:{width:36,height:36},color:"blue",onClick:()=>{K.setState({name:"",passcode:t.passcode,autolock:t.autolock,items:t.items,characters:t.characters,groups:t.groups,maxDistance:t.maxDistance,doorRate:t.doorRate,lockSound:t.lockSound,unlockSound:t.unlockSound,auto:t.auto,state:t.state,lockpick:t.lockpick,hideUi:t.hideUi,doors:t.doors,lockpickDifficulty:t.lockpickDifficulty,holdOpen:t.holdOpen},!0),Pr("notify","Settings applied")},children:S(MT,{size:20})})}),S(Ot,{variant:"outline",size:"lg",ml:16,sx:{width:36,height:36},color:"red",disabled:!K.getState().id,onClick:()=>gb({title:"Confirm deletion",centered:!0,withCloseButton:!1,children:H(vt,{children:["Are you sure you want to delete",S(vt,{component:"span",weight:700,children:` ${K.getState().name}`}),"?"]}),labels:{confirm:"Confirm",cancel:"Cancel"},confirmProps:{color:"red"},onConfirm:()=>{Pr("deleteDoor",K.getState().id),e("/")}}),children:S(LT,{size:20})})]})},E7=({selectData:e,setModal:t,modal:r})=>{const[n,o]=p.exports.useState(null),i=K(c=>c.lockpickDifficulty),l=_e(c=>c.setLockpickDifficulty),a=p.exports.useMemo(()=>i[r.index],[r,i]);p.exports.useEffect(()=>o(typeof a=="string"?a:"custom"),[a]);const s=yb({initialValues:{select:n,areaSize:typeof a=="string"?null:a.areaSize,speedMultiplier:typeof a=="string"?null:a.speedMultiplier},validate:{select:c=>c===null?"Difficulty is required":null,areaSize:(c,f)=>c===null&&f.select==="custom"?"Area size is required":null,speedMultiplier:(c,f)=>c===null&&f.select==="custom"?"Speed multiplier is required":null}});p.exports.useEffect(()=>s.setFieldValue("select",n),[n]);const u=c=>{t(d=>({...d,opened:!1}));const f=c.select==="custom"?{areaSize:c.areaSize,speedMultiplier:c.speedMultiplier}:c.select;!f||l(d=>{const g=[...d];return f&&(g[r.index]=f),g})};return S("form",{onSubmit:s.onSubmit(c=>u(c)),children:H(Mt,{children:[S(Ci,{data:e,placeholder:"Difficulty",...s.getInputProps("select"),value:n,onChange:o,required:!0}),S(Oi,{label:"Area size",defaultValue:typeof a=="object"?a.areaSize:null,description:"Skill check area size in degrees",disabled:n!=="custom",max:360,hideControls:!0,required:n==="custom",...s.getInputProps("areaSize")}),S(Oi,{label:"Speed multiplier",description:"Number the indicator speed will be multiplied by",disabled:n!=="custom",defaultValue:typeof a=="object"?a.speedMultiplier:null,hideControls:!0,precision:2,required:n==="custom",...s.getInputProps("speedMultiplier")}),S(Kn,{type:"submit",uppercase:!0,variant:"light",children:"Confirm"})]})})},I0=[{label:"Easy",value:"easy"},{label:"Medium",value:"medium"},{label:"Hard",value:"hard"},{label:"Custom",value:"custom"}],R7=()=>{const e=K(i=>i.lockpickDifficulty),t=_e(i=>i.setLockpickDifficulty),[r,n]=p.exports.useState({opened:!1,index:0}),o=i=>{t(l=>l.filter((a,s)=>s!==i))};return H(lt,{children:[e.map((i,l)=>H(Lt,{sx:{width:"100%"},spacing:16,mt:l===0?void 0:16,position:"apart",children:[S(Ci,{data:I0,value:typeof i=="string"?i:"custom",readOnly:!0,placeholder:"Edit row to select value",sx:{width:"80%"}}),S(ot,{label:"Edit row",children:S(Ot,{color:"blue.4",variant:"transparent",onClick:()=>n({opened:!0,index:l}),children:S(Pu,{size:24})})}),S(ot,{label:"Delete row",children:S(Ot,{color:"red.4",variant:"transparent",onClick:()=>o(l),children:S(Gi,{size:24})})})]},`${typeof i=="string"?i:i.areaSize}-${l}`)),S(yu,{opened:r.opened,onClose:()=>n({...r,opened:!1}),transition:"fade",title:"Lockpick difficulty",centered:!0,size:"xs",withCloseButton:!1,children:S(E7,{selectData:I0,setModal:n,modal:r})})]})},k7=()=>{const e=_e(t=>t.setLockpickDifficulty);return p.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>n===0||r!==""))},[]),S(Ou,{setter:()=>e(t=>[...t,""]),children:S(R7,{})})},I7=()=>{const e=Ui(),t=pp(),r=K(n=>n.lockpick);return S(lt,{children:H(X,{sx:{height:"100%",display:"flex"},children:[S(et,{orientation:"vertical",color:"blue",sx:{height:"100%"},value:t.pathname.substring(10),onTabChange:n=>e(`/settings/${n}`),children:H(et.List,{children:[S(et.Tab,{value:"back",onClick:()=>e("/"),icon:S(ID,{size:20}),children:"Doors"}),S(et.Tab,{value:"general",icon:S(Pu,{size:20}),children:"General"}),S(et.Tab,{value:"characters",icon:S(AD,{size:20}),children:"Characters"}),S(et.Tab,{value:"groups",icon:S(DD,{size:20}),children:"Groups"}),S(et.Tab,{value:"items",icon:S(zD,{size:20}),children:"Items"}),S(et.Tab,{value:"lockpick",disabled:!r,icon:S(LD,{size:20}),children:"Lockpick"}),S(et.Tab,{value:"sound",icon:S(ND,{size:20}),children:"Sound"})]})}),H(Mt,{p:16,sx:{width:"100%"},justify:"space-between",children:[H(Zx,{children:[S(Wt,{path:"/general",element:S(o7,{})}),S(Wt,{path:"/characters",element:S(l7,{})}),S(Wt,{path:"/groups",element:S(s7,{})}),S(Wt,{path:"/items",element:S($7,{})}),S(Wt,{path:"/sound",element:S(O7,{})}),S(Wt,{path:"/lockpick",element:S(k7,{})})]}),S(C7,{})]})]})})},N7=["Escape"],z7=(e,t)=>{const r=p.exports.useRef(Jx);p.exports.useEffect(()=>{r.current=e},[e]),p.exports.useEffect(()=>{const n=o=>{N7.includes(o.code)&&(r.current(!1),t&&t(),Pr("exit"))};return window.addEventListener("keyup",n),()=>window.removeEventListener("keyup",n)},[])},D7=Q(e=>({container:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},main:{width:700,height:500,backgroundColor:e.colors.dark[8],borderRadius:e.radius.sm},search:{width:"40%",transition:"300ms","&:focus-within":{width:"50%"}}})),T7=()=>{const{classes:e}=D7(),t=_e(a=>a.setSounds),[r,n]=$u(a=>[a.visible,a.setVisible]),o=Mf(a=>a.doors),i=Mf(a=>a.setDoors),l=Ui();return bl("playSound",async a=>{const s=new Audio(`./sounds/${a.sound}.ogg`);s.volume=a.volume,await s.play()}),bl("setSoundFiles",a=>t(a)),bl("setVisible",a=>{if(n(!0),a===void 0)return l("/");for(let s=0;s{if(typeof a=="number")return i(o.filter(s=>s.id!==a));if(a.hasOwnProperty("id")){let s=o.length;for(let u=0;uS(X,{className:e.main,style:a,children:H(Zx,{children:[S(Wt,{path:"/",element:S(t7,{})}),S(Wt,{path:"/settings/*",element:S(I7,{})})]})})})})},M7={colorScheme:"dark",fontFamily:"Roboto",components:{Tooltip:{defaultProps:{transition:"pop"}}}};if($D()){const e=document.getElementById("root");e.style.backgroundImage='url("https://i.imgur.com/3pzRj9n.png")',e.style.backgroundSize="cover",e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center"}z$.render(S(C.StrictMode,{children:S(Y1,{withNormalizeCSS:!0,withGlobalStyles:!0,theme:M7,children:S(ZT,{modalProps:{transition:"slide-up"},children:S(PD,{children:S(T7,{})})})})}),document.getElementById("root")); diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.9f535db0.js b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.9f535db0.js deleted file mode 100644 index c879b3963..000000000 --- a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.9f535db0.js +++ /dev/null @@ -1,93 +0,0 @@ -function mx(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const vx=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}};vx();var g={exports:{}},J={};/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var vp=Object.getOwnPropertySymbols,hx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable;function wx(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function _x(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var x0=_x()?Object.assign:function(e,t){for(var r,n=wx(e),o,i=1;i"u"||typeof MessageChannel!="function"){var s=null,u=null,c=function(){if(s!==null)try{var R=e.unstable_now();s(!0,R),s=null}catch(T){throw setTimeout(c,0),T}};t=function(R){s!==null?setTimeout(t,0,R):(s=R,setTimeout(c,0))},r=function(R,T){u=setTimeout(R,T)},n=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,d=window.clearTimeout;if(typeof console<"u"){var p=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof p!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,w=null,v=-1,m=5,h=0;e.unstable_shouldYield=function(){return e.unstable_now()>=h},o=function(){},e.unstable_forceFrameRate=function(R){0>R||125>>1,M=R[k];if(M!==void 0&&0<$(M,T))R[k]=T,R[A]=M,A=k;else break e}}function x(R){return R=R[0],R===void 0?null:R}function P(R){var T=R[0];if(T!==void 0){var A=R.pop();if(A!==T){R[0]=A;e:for(var k=0,M=R.length;k$(Z,A))ae!==void 0&&0>$(ae,Z)?(R[k]=ae,R[De]=A,k=De):(R[k]=Z,R[G]=A,k=G);else if(ae!==void 0&&0>$(ae,A))R[k]=ae,R[De]=A,k=De;else break e}}return T}return null}function $(R,T){var A=R.sortIndex-T.sortIndex;return A!==0?A:R.id-T.id}var C=[],I=[],z=1,D=null,j=3,B=!1,V=!1,W=!1;function ne(R){for(var T=x(I);T!==null;){if(T.callback===null)P(I);else if(T.startTime<=R)P(I),T.sortIndex=T.expirationTime,O(C,T);else break;T=x(I)}}function se(R){if(W=!1,ne(R),!V)if(x(C)!==null)V=!0,t(ie);else{var T=x(I);T!==null&&r(se,T.startTime-R)}}function ie(R,T){V=!1,W&&(W=!1,n()),B=!0;var A=j;try{for(ne(T),D=x(C);D!==null&&(!(D.expirationTime>T)||R&&!e.unstable_shouldYield());){var k=D.callback;if(typeof k=="function"){D.callback=null,j=D.priorityLevel;var M=k(D.expirationTime<=T);T=e.unstable_now(),typeof M=="function"?D.callback=M:D===x(C)&&P(C),ne(T)}else P(C);D=x(C)}if(D!==null)var G=!0;else{var Z=x(I);Z!==null&&r(se,Z.startTime-T),G=!1}return G}finally{D=null,j=A,B=!1}}var ze=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){V||B||(V=!0,t(ie))},e.unstable_getCurrentPriorityLevel=function(){return j},e.unstable_getFirstCallbackNode=function(){return x(C)},e.unstable_next=function(R){switch(j){case 1:case 2:case 3:var T=3;break;default:T=j}var A=j;j=T;try{return R()}finally{j=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=ze,e.unstable_runWithPriority=function(R,T){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var A=j;j=R;try{return T()}finally{j=A}},e.unstable_scheduleCallback=function(R,T,A){var k=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0k?(R.sortIndex=A,O(I,R),x(C)===null&&R===x(I)&&(W?n():W=!0,r(se,A-k))):(R.sortIndex=M,O(C,R),V||B||(V=!0,t(ie))),R},e.unstable_wrapCallback=function(R){var T=j;return function(){var A=j;j=T;try{return R.apply(this,arguments)}finally{j=A}}}})(L0);j0.exports=L0;/** @license React v17.0.2 - * 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 Es=g.exports,pe=x0,Oe=j0.exports;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ox=/^[: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]*$/,wp=Object.prototype.hasOwnProperty,_p={},Sp={};function Cx(e){return wp.call(Sp,e)?!0:wp.call(_p,e)?!1:Ox.test(e)?Sp[e]=!0:(_p[e]=!0,!1)}function Ex(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 kx(e,t,r,n){if(t===null||typeof t>"u"||Ex(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 We(e,t,r,n,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new We(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new We(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new We(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){Ne[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new We(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new We(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new We(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ff=/[\-:]([a-z])/g;function Af(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(Ff,Af);Ne[t]=new We(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(Ff,Af);Ne[t]=new We(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(Ff,Af);Ne[t]=new We(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new We(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new We(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vf(e,t,r,n){var o=Ne.hasOwnProperty(t)?Ne[t]:null,i=o!==null?o.type===0:n?!1:!(!(2a||o[l]!==i[a])return` -`+o[l].replace(" at new "," at ");while(1<=l&&0<=a);break}}}finally{Ou=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ao(e):""}function Rx(e){switch(e.tag){case 5:return Ao(e.type);case 16:return Ao("Lazy");case 13:return Ao("Suspense");case 19:return Ao("SuspenseList");case 0:case 2:case 15:return e=Zi(e.type,!1),e;case 11:return e=Zi(e.type.render,!1),e;case 22:return e=Zi(e.type._render,!1),e;case 1:return e=Zi(e.type,!0),e;default:return""}}function Nn(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 sr:return"Fragment";case Yr:return"Portal";case Uo:return"Profiler";case Hf:return"StrictMode";case Go:return"Suspense";case Bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wf:return(e.displayName||"Context")+".Consumer";case Bf:return(e._context.displayName||"Context")+".Provider";case ks:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Rs:return Nn(e.type);case Gf:return Nn(e._render);case Uf:t=e._payload,e=e._init;try{return Nn(e(t))}catch{}}return null}function Pr(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function V0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ix(e){var t=V0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){n=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ji(e){e._valueTracker||(e._valueTracker=Ix(e))}function H0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=V0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Wl(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 bc(e,t){var r=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function xp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Pr(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 B0(e,t){t=t.checked,t!=null&&Vf(e,"checked",t,!1)}function xc(e,t){B0(e,t);var r=Pr(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")?Pc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Pc(e,t.type,Pr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pp(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 Pc(e,t,r){(t!=="number"||Wl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Nx(e){var t="";return Es.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function $c(e,t){return e=pe({children:void 0},t),(t=Nx(t.children))&&(e.children=t),e}function zn(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o=r.length))throw Error(N(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Pr(r)}}function W0(e,t){var r=Pr(t.value),n=Pr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Op(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Cc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function U0(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ec(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?U0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var el,G0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!==Cc.svg||"innerHTML"in e)e.innerHTML=t;else{for(el=el||document.createElement("div"),el.innerHTML=""+t.valueOf().toString()+"",t=el.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function si(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Yo={animationIterationCount:!0,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},zx=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(e){zx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yo[t]=Yo[e]})});function Y0(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Yo.hasOwnProperty(e)&&Yo[e]?(""+t).trim():t+"px"}function X0(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Y0(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Dx=pe({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 kc(e,t){if(t){if(Dx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Rc(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}}function Kf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ic=null,Dn=null,Tn=null;function Cp(e){if(e=Ri(e)){if(typeof Ic!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Ms(t),Ic(e.stateNode,e.type,t))}}function K0(e){Dn?Tn?Tn.push(e):Tn=[e]:Dn=e}function q0(){if(Dn){var e=Dn,t=Tn;if(Tn=Dn=null,Cp(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Ns(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-$r(t),e[t]=r}var $r=Math.clz32?Math.clz32:qx,Xx=Math.log,Kx=Math.LN2;function qx(e){return e===0?32:31-(Xx(e)/Kx|0)|0}var Qx=Oe.unstable_UserBlockingPriority,Zx=Oe.unstable_runWithPriority,El=!0;function Jx(e,t,r,n){Xr||Qf();var o=rd,i=Xr;Xr=!0;try{Q0(o,e,t,r,n)}finally{(Xr=i)||Zf()}}function eP(e,t,r,n){Zx(Qx,rd.bind(null,e,t,r,n))}function rd(e,t,r,n){if(El){var o;if((o=(t&4)===0)&&0=Ko),jp=String.fromCharCode(32),Lp=!1;function gy(e,t){switch(e){case"keyup":return xP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function my(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var On=!1;function $P(e,t){switch(e){case"compositionend":return my(t);case"keypress":return t.which!==32?null:(Lp=!0,jp);case"textInput":return e=t.data,e===jp&&Lp?null:e;default:return null}}function OP(e,t){if(On)return e==="compositionend"||!ad&&gy(e,t)?(e=dy(),kl=od=ur=null,On=!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=Hp(r)}}function wy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wp(){for(var e=window,t=Wl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Wl(e.document)}return t}function Mc(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")}var MP=qt&&"documentMode"in document&&11>=document.documentMode,Cn=null,jc=null,Qo=null,Lc=!1;function Up(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Lc||Cn==null||Cn!==Wl(n)||(n=Cn,"selectionStart"in n&&Mc(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}),Qo&&gi(Qo,n)||(Qo=n,n=Xl(jc,"onSelect"),0kn||(e.current=Ac[kn],Ac[kn]=null,kn--)}function he(e,t){kn++,Ac[kn]=e.current,e.current=t}var Or={},Ae=Nr(Or),Ye=Nr(!1),rn=Or;function Wn(e,t){var r=e.type.contextTypes;if(!r)return Or;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Xe(e){return e=e.childContextTypes,e!=null}function Ql(){fe(Ye),fe(Ae)}function eg(e,t,r){if(Ae.current!==Or)throw Error(N(168));he(Ae,t),he(Ye,r)}function Cy(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in e))throw Error(N(108,Nn(t)||"Unknown",o));return pe({},r,n)}function Il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Or,rn=Ae.current,he(Ae,e),he(Ye,Ye.current),!0}function tg(e,t,r){var n=e.stateNode;if(!n)throw Error(N(169));r?(e=Cy(e,t,rn),n.__reactInternalMemoizedMergedChildContext=e,fe(Ye),fe(Ae),he(Ae,e)):fe(Ye),he(Ye,r)}var ud=null,Jr=null,FP=Oe.unstable_runWithPriority,cd=Oe.unstable_scheduleCallback,Vc=Oe.unstable_cancelCallback,AP=Oe.unstable_shouldYield,rg=Oe.unstable_requestPaint,Hc=Oe.unstable_now,VP=Oe.unstable_getCurrentPriorityLevel,js=Oe.unstable_ImmediatePriority,Ey=Oe.unstable_UserBlockingPriority,ky=Oe.unstable_NormalPriority,Ry=Oe.unstable_LowPriority,Iy=Oe.unstable_IdlePriority,Fu={},HP=rg!==void 0?rg:function(){},Ht=null,Nl=null,Au=!1,ng=Hc(),Le=1e4>ng?Hc:function(){return Hc()-ng};function Un(){switch(VP()){case js:return 99;case Ey:return 98;case ky:return 97;case Ry:return 96;case Iy:return 95;default:throw Error(N(332))}}function Ny(e){switch(e){case 99:return js;case 98:return Ey;case 97:return ky;case 96:return Ry;case 95:return Iy;default:throw Error(N(332))}}function nn(e,t){return e=Ny(e),FP(e,t)}function vi(e,t,r){return e=Ny(e),cd(e,t,r)}function Mt(){if(Nl!==null){var e=Nl;Nl=null,Vc(e)}zy()}function zy(){if(!Au&&Ht!==null){Au=!0;var e=0;try{var t=Ht;nn(99,function(){for(;eP?($=x,x=null):$=x.sibling;var C=d(v,x,h[P],_);if(C===null){x===null&&(x=$);break}e&&x&&C.alternate===null&&t(v,x),m=i(C,m,P),O===null?b=C:O.sibling=C,O=C,x=$}if(P===h.length)return r(v,x),b;if(x===null){for(;PP?($=x,x=null):$=x.sibling;var I=d(v,x,C.value,_);if(I===null){x===null&&(x=$);break}e&&x&&I.alternate===null&&t(v,x),m=i(I,m,P),O===null?b=I:O.sibling=I,O=I,x=$}if(C.done)return r(v,x),b;if(x===null){for(;!C.done;P++,C=h.next())C=f(v,C.value,_),C!==null&&(m=i(C,m,P),O===null?b=C:O.sibling=C,O=C);return b}for(x=n(v,x);!C.done;P++,C=h.next())C=p(x,v,P,C.value,_),C!==null&&(e&&C.alternate!==null&&x.delete(C.key===null?P:C.key),m=i(C,m,P),O===null?b=C:O.sibling=C,O=C);return e&&x.forEach(function(z){return t(v,z)}),b}return function(v,m,h,_){var b=typeof h=="object"&&h!==null&&h.type===sr&&h.key===null;b&&(h=h.props.children);var O=typeof h=="object"&&h!==null;if(O)switch(h.$$typeof){case Fo:e:{for(O=h.key,b=m;b!==null;){if(b.key===O){switch(b.tag){case 7:if(h.type===sr){r(v,b.sibling),m=o(b,h.props.children),m.return=v,v=m;break e}break;default:if(b.elementType===h.type){r(v,b.sibling),m=o(b,h.props),m.ref=$o(v,b,h),m.return=v,v=m;break e}}r(v,b);break}else t(v,b);b=b.sibling}h.type===sr?(m=Vn(h.props.children,v.mode,_,h.key),m.return=v,v=m):(_=Ml(h.type,h.key,h.props,null,v.mode,_),_.ref=$o(v,m,h),_.return=v,v=_)}return l(v);case Yr:e:{for(b=h.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===h.containerInfo&&m.stateNode.implementation===h.implementation){r(v,m.sibling),m=o(m,h.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=Gu(h,v.mode,_),m.return=v,v=m}return l(v)}if(typeof h=="string"||typeof h=="number")return h=""+h,m!==null&&m.tag===6?(r(v,m.sibling),m=o(m,h),m.return=v,v=m):(r(v,m),m=Uu(h,v.mode,_),m.return=v,v=m),l(v);if(nl(h))return y(v,m,h,_);if(wo(h))return w(v,m,h,_);if(O&&ol(v,h),typeof h>"u"&&!b)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(N(152,Nn(v.type)||"Component"))}return r(v,m)}}var ra=Ly(!0),Fy=Ly(!1),Ii={},It=Nr(Ii),yi=Nr(Ii),wi=Nr(Ii);function qr(e){if(e===Ii)throw Error(N(174));return e}function Wc(e,t){switch(he(wi,t),he(yi,e),he(It,Ii),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ec(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ec(t,e)}fe(It),he(It,t)}function Gn(){fe(It),fe(yi),fe(wi)}function sg(e){qr(wi.current);var t=qr(It.current),r=Ec(t,e.type);t!==r&&(he(yi,e),he(It,r))}function gd(e){yi.current===e&&(fe(It),fe(yi))}var ve=Nr(0);function na(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&64)!==0)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 Gt=null,fr=null,Nt=!1;function Ay(e,t){var r=ft(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function ug(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Uc(e){if(Nt){var t=fr;if(t){var r=t;if(!ug(e,t)){if(t=Mn(r.nextSibling),!t||!ug(e,t)){e.flags=e.flags&-1025|2,Nt=!1,Gt=e;return}Ay(Gt,r)}Gt=e,fr=Mn(t.firstChild)}else e.flags=e.flags&-1025|2,Nt=!1,Gt=e}}function cg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Gt=e}function il(e){if(e!==Gt)return!1;if(!Nt)return cg(e),Nt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Fc(t,e.memoizedProps))for(t=fr;t;)Ay(e,t),t=Mn(t.nextSibling);if(cg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){fr=Mn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}fr=null}}else fr=Gt?Mn(e.stateNode.nextSibling):null;return!0}function Vu(){fr=Gt=null,Nt=!1}var Ln=[];function md(){for(var e=0;ei))throw Error(N(301));i+=1,ke=je=null,t.updateQueue=null,Zo.current=YP,e=r(n,o)}while(Jo)}if(Zo.current=sa,t=je!==null&&je.next!==null,_i=0,ke=je=ye=null,oa=!1,t)throw Error(N(300));return e}function Qr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ye.memoizedState=ke=e:ke=ke.next=e,ke}function fn(){if(je===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=ke===null?ye.memoizedState:ke.next;if(t!==null)ke=t,je=e;else{if(e===null)throw Error(N(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},ke===null?ye.memoizedState=ke=e:ke=ke.next=e}return ke}function kt(e,t){return typeof t=="function"?t(e):t}function Oo(e){var t=fn(),r=t.queue;if(r===null)throw Error(N(311));r.lastRenderedReducer=e;var n=je,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}n.baseQueue=o=i,r.pending=null}if(o!==null){o=o.next,n=n.baseState;var a=l=i=null,s=o;do{var u=s.lane;if((_i&u)===u)a!==null&&(a=a.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),n=s.eagerReducer===e?s.eagerState:e(n,s.action);else{var c={lane:u,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};a===null?(l=a=c,i=n):a=a.next=c,ye.lanes|=u,Ni|=u}s=s.next}while(s!==null&&s!==o);a===null?i=n:a.next=l,ct(n,t.memoizedState)||(xt=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=a,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Co(e){var t=fn(),r=t.queue;if(r===null)throw Error(N(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);ct(i,t.memoizedState)||(xt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function fg(e,t,r){var n=t._getVersion;n=n(t._source);var o=t._workInProgressVersionPrimary;if(o!==null?e=o===n:(e=e.mutableReadLanes,(e=(_i&e)===e)&&(t._workInProgressVersionPrimary=n,Ln.push(t))),e)return r(t._source);throw Ln.push(t),Error(N(350))}function Vy(e,t,r,n){var o=Be;if(o===null)throw Error(N(349));var i=t._getVersion,l=i(t._source),a=Zo.current,s=a.useState(function(){return fg(o,t,r)}),u=s[1],c=s[0];s=ke;var f=e.memoizedState,d=f.refs,p=d.getSnapshot,y=f.source;f=f.subscribe;var w=ye;return e.memoizedState={refs:d,source:t,subscribe:n},a.useEffect(function(){d.getSnapshot=r,d.setSnapshot=u;var v=i(t._source);if(!ct(l,v)){v=r(t._source),ct(c,v)||(u(v),v=wr(w),o.mutableReadLanes|=v&o.pendingLanes),v=o.mutableReadLanes,o.entangledLanes|=v;for(var m=o.entanglements,h=v;0r?98:r,function(){e(!0)}),nn(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[cr]=t,e[ql]=n,qy(e,t,!1,!1),t.stateNode=e,l=Rc(r,n),r){case"dialog":ce("cancel",e),ce("close",e),o=n;break;case"iframe":case"object":case"embed":ce("load",e),o=n;break;case"video":case"audio":for(o=0;otf&&(t.flags|=64,i=!0,ko(n,!1),t.lanes=33554432)}else{if(!i)if(e=na(l),e!==null){if(t.flags|=64,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ko(n,!0),n.tail===null&&n.tailMode==="hidden"&&!l.alternate&&!Nt)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Le()-n.renderingStartTime>tf&&r!==1073741824&&(t.flags|=64,i=!0,ko(n,!1),t.lanes=33554432);n.isBackwards?(l.sibling=t.child,t.child=l):(r=n.last,r!==null?r.sibling=l:t.child=l,n.last=l)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Le(),r.sibling=null,t=ve.current,he(ve,i?t&1|2:t&1),r):null;case 23:case 24:return $d(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(N(156,t.tag))}function qP(e){switch(e.tag){case 1:Xe(e.type)&&Ql();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Gn(),fe(Ye),fe(Ae),md(),t=e.flags,(t&64)!==0)throw Error(N(285));return e.flags=t&-4097|64,e;case 5:return gd(e),null;case 13:return fe(ve),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return fe(ve),null;case 4:return Gn(),null;case 10:return dd(e),null;case 23:case 24:return $d(),null;default:return null}}function Sd(e,t){try{var r="",n=t;do r+=Rx(n),n=n.return;while(n);var o=r}catch(i){o=` -Error generating stack: `+i.message+` -`+i.stack}return{value:e,source:t,stack:o}}function qc(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var QP=typeof WeakMap=="function"?WeakMap:Map;function Jy(e,t,r){r=hr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ca||(ca=!0,rf=n),qc(e,t)},r}function e1(e,t,r){r=hr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return qc(e,t),n(o)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Rt===null?Rt=new Set([this]):Rt.add(this),qc(e,t));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),r}var ZP=typeof WeakSet=="function"?WeakSet:Set;function Pg(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Sr(e,r)}else t.current=null}function JP(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:bt(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&sd(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(N(163))}function e$(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var o=e;n=o.next,o=o.tag,(o&4)!==0&&(o&1)!==0&&(u1(r,e),s$(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:bt(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&ig(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}ig(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&$y(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&oy(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(N(163))}function $g(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var o=r.memoizedProps.style;o=o!=null&&o.hasOwnProperty("display")?o.display:null,n.style.display=Y0("display",o)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function Og(e,t){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(ud,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,o=n.destroy;if(n=n.tag,o!==void 0)if((n&4)!==0)u1(t,r);else{n=t;try{o()}catch(i){Sr(n,i)}}r=r.next}while(r!==e)}break;case 1:if(Pg(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Sr(t,i)}break;case 5:Pg(t);break;case 4:t1(e,t)}}function Cg(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Eg(e){return e.tag===5||e.tag===3||e.tag===4}function kg(e){e:{for(var t=e.return;t!==null;){if(Eg(t))break e;t=t.return}throw Error(N(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(N(161))}r.flags&16&&(si(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||Eg(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?Qc(e,r,t):Zc(e,r,t)}function Qc(e,t,r){var n=e.tag,o=n===5||n===6;if(o)e=o?e.stateNode:e.stateNode.instance,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=Kl));else if(n!==4&&(e=e.child,e!==null))for(Qc(e,t,r),e=e.sibling;e!==null;)Qc(e,t,r),e=e.sibling}function Zc(e,t,r){var n=e.tag,o=n===5||n===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Zc(e,t,r),e=e.sibling;e!==null;)Zc(e,t,r),e=e.sibling}function t1(e,t){for(var r=t,n=!1,o,i;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(N(160));switch(o=n.stateNode,n.tag){case 5:i=!1;break e;case 3:o=o.containerInfo,i=!0;break e;case 4:o=o.containerInfo,i=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var l=e,a=r,s=a;;)if(Og(l,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}i?(l=o,a=r.stateNode,l.nodeType===8?l.parentNode.removeChild(a):l.removeChild(a)):o.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){o=r.stateNode.containerInfo,i=!0,r.child.return=r,r=r.child;continue}}else if(Og(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function Wu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var o=e!==null?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,i!==null){for(r[ql]=n,e==="input"&&n.type==="radio"&&n.name!=null&&B0(r,n),Rc(e,o),t=Rc(e,n),o=0;oo&&(o=l),r&=~i}if(r=o,r=Le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*r$(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Ie!==5&&(Ie=2),s=Sd(s,a),d=l;do{switch(d.tag){case 3:i=s,d.flags|=4096,t&=-t,d.lanes|=t;var O=Jy(d,i,t);og(d,O);break e;case 1:i=s;var x=d.type,P=d.stateNode;if((d.flags&64)===0&&(typeof x.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Rt===null||!Rt.has(P)))){d.flags|=4096,t&=-t,d.lanes|=t;var $=e1(d,i,t);og(d,$);break e}}d=d.return}while(d!==null)}s1(r)}catch(C){t=C,Se===r&&r!==null&&(Se=r=r.return);continue}break}while(1)}function l1(){var e=ua.current;return ua.current=sa,e===null?sa:e}function Bo(e,t){var r=Y;Y|=16;var n=l1();Be===e&&Fe===t||An(e,t);do try{o$();break}catch(o){i1(e,o)}while(1);if(fd(),Y=r,ua.current=n,Se!==null)throw Error(N(261));return Be=null,Fe=0,Ie}function o$(){for(;Se!==null;)a1(Se)}function i$(){for(;Se!==null&&!AP();)a1(Se)}function a1(e){var t=c1(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?s1(e):Se=t,bd.current=null}function s1(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)===0){if(r=KP(r,t,on),r!==null){Se=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(on&1073741824)!==0||(r.mode&4)===0){for(var n=0,o=r.child;o!==null;)n|=o.lanes|o.childLanes,o=o.sibling;r.childLanes=n}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1l&&(a=l,l=O,O=a),a=Bp(h,O),i=Bp(h,l),a&&i&&(b.rangeCount!==1||b.anchorNode!==a.node||b.anchorOffset!==a.offset||b.focusNode!==i.node||b.focusOffset!==i.offset)&&(_=_.createRange(),_.setStart(a.node,a.offset),b.removeAllRanges(),O>l?(b.addRange(_),b.extend(i.node,i.offset)):(_.setEnd(i.node,i.offset),b.addRange(_)))))),_=[],b=h;b=b.parentNode;)b.nodeType===1&&_.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<_.length;h++)b=_[h],b.element.scrollLeft=b.left,b.element.scrollTop=b.top}El=!!Mu,ju=Mu=null,e.current=r,L=n;do try{for(h=e;L!==null;){var x=L.flags;if(x&36&&e$(h,L.alternate,L),x&128){_=void 0;var P=L.ref;if(P!==null){var $=L.stateNode;switch(L.tag){case 5:_=$;break;default:_=$}typeof P=="function"?P(_):P.current=_}}L=L.nextEffect}}catch(C){if(L===null)throw Error(N(330));Sr(L,C),L=L.nextEffect}while(L!==null);L=null,HP(),Y=o}else e.current=r;if(Cr)Cr=!1,ei=e,Ho=t;else for(L=n;L!==null;)t=L.nextEffect,L.nextEffect=null,L.flags&8&&(x=L,x.sibling=null,x.stateNode=null),L=t;if(n=e.pendingLanes,n===0&&(Rt=null),n===1?e===lf?ti++:(ti=0,lf=e):ti=0,r=r.stateNode,Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(ud,r,void 0,(r.current.flags&64)===64)}catch{}if(gt(e,Le()),ca)throw ca=!1,e=rf,rf=null,e;return(Y&8)!==0||Mt(),null}function a$(){for(;L!==null;){var e=L.alternate;Tl||ri===null||((L.flags&8)!==0?kp(L,ri)&&(Tl=!0):L.tag===13&&t$(e,L)&&kp(L,ri)&&(Tl=!0));var t=L.flags;(t&256)!==0&&JP(e,L),(t&512)===0||Cr||(Cr=!0,vi(97,function(){return zr(),null})),L=L.nextEffect}}function zr(){if(Ho!==90){var e=97Le()-Pd?An(e,0):xd|=r),gt(e,t)}function f$(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=Un()===99?1:2:(Wt===0&&(Wt=to),t=xn(62914560&~Wt),t===0&&(t=4194304))),r=tt(),e=As(e,t),e!==null&&(Ns(e,t,r),gt(e,r))}var c1;c1=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)xt=!0;else if((r&n)!==0)xt=(e.flags&16384)!==0;else{switch(xt=!1,t.tag){case 3:hg(t),Vu();break;case 5:sg(t);break;case 1:Xe(t.type)&&Il(t);break;case 4:Wc(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var o=t.type._context;he(Zl,o._currentValue),o._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!==0?yg(e,t,r):(he(ve,ve.current&1),t=Yt(e,t,r),t!==null?t.sibling:null);he(ve,ve.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&64)!==0){if(n)return xg(e,t,r);t.flags|=64}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),he(ve,ve.current),n)break;return null;case 23:case 24:return t.lanes=0,Hu(e,t,r)}return Yt(e,t,r)}else xt=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=Wn(t,Ae.current),jn(t,r),o=hd(null,t,n,e,o,r),t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(n)){var i=!0;Il(t)}else i=!1;t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,pd(t);var l=n.getDerivedStateFromProps;typeof l=="function"&&ta(t,n,l,e),o.updater=Ls,t.stateNode=o,o._reactInternals=t,Bc(t,n,e,r),t=Xc(null,t,n,!0,i,r)}else t.tag=0,Ge(null,t,o,r),t=t.child;return t;case 16:o=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=p$(o),e=bt(o,e),i){case 0:t=Yc(null,t,o,e,r);break e;case 1:t=vg(null,t,o,e,r);break e;case 11:t=gg(null,t,o,e,r);break e;case 14:t=mg(null,t,o,bt(o.type,e),n,r);break e}throw Error(N(306,o,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:bt(n,o),Yc(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:bt(n,o),vg(e,t,n,o,r);case 3:if(hg(t),n=t.updateQueue,e===null||n===null)throw Error(N(282));if(n=t.pendingProps,o=t.memoizedState,o=o!==null?o.element:null,Ty(e,t),hi(t,n,null,r),n=t.memoizedState.element,n===o)Vu(),t=Yt(e,t,r);else{if(o=t.stateNode,(i=o.hydrate)&&(fr=Mn(t.stateNode.containerInfo.firstChild),Gt=t,i=Nt=!0),i){if(e=o.mutableSourceEagerHydrationData,e!=null)for(o=0;o"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d1)}catch(e){console.error(e)}}d1(),Ei.exports=ht;var _$=Ei.exports;function da(e,t){let r=e;for(;(r=r.parentElement)&&!r.matches(t););return r}function S$(e,t,r){for(let n=e-1;n>=0;n-=1)if(!t[n].disabled)return n;if(r){for(let n=t.length-1;n>-1;n-=1)if(!t[n].disabled)return n}return e}function b$(e,t,r){for(let n=e+1;n{var s;r?.(a);const u=Array.from(((s=da(a.currentTarget,e))==null?void 0:s.querySelectorAll(t))||[]).filter(w=>x$(a.currentTarget,w,e)),c=u.findIndex(w=>a.currentTarget===w),f=b$(c,u,n),d=S$(c,u,n),p=i==="rtl"?d:f,y=i==="rtl"?f:d;switch(a.key){case"ArrowRight":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),u[p].focus(),o&&u[p].click());break}case"ArrowLeft":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),u[y].focus(),o&&u[y].click());break}case"ArrowUp":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),u[d].focus(),o&&u[d].click());break}case"ArrowDown":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),u[f].focus(),o&&u[f].click());break}case"Home":{a.stopPropagation(),a.preventDefault(),!u[0].disabled&&u[0].focus();break}case"End":{a.stopPropagation(),a.preventDefault();const w=u.length-1;!u[w].disabled&&u[w].focus();break}}}}function P$(e,t,r){var n;return r?Array.from(((n=da(r,t))==null?void 0:n.querySelectorAll(e))||[]).findIndex(o=>o===r):null}var Hs={exports:{}},Di={};/** @license React v17.0.2 - * react-jsx-runtime.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 $$=g.exports,g1=60103;Di.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var zg=Symbol.for;g1=zg("react.element"),Di.Fragment=zg("react.fragment")}var O$=$$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,C$=Object.prototype.hasOwnProperty,E$={key:!0,ref:!0,__self:!0,__source:!0};function m1(e,t,r){var n,o={},i=null,l=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)C$.call(t,n)&&!E$.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:g1,type:e,key:i,ref:l,props:o,_owner:O$.current}}Di.jsx=m1;Di.jsxs=m1;Hs.exports=Di;const S=Hs.exports.jsx,U=Hs.exports.jsxs,it=Hs.exports.Fragment;function Rd(e){const t=g.exports.createContext(null);return[({children:o,value:i})=>S(t.Provider,{value:i,children:o}),()=>{const o=g.exports.useContext(t);if(o===null)throw new Error(e);return o}]}function Si(e){return Array.isArray(e)?e:[e]}function Dg(e,t){return r=>{if(typeof r!="string"||r.trim().length===0)throw new Error(t);return`${e}-${r}`}}function Ti(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==E.Fragment:!1}const k$=()=>{};function R$(e,t={active:!0}){return typeof e!="function"||!t.active?k$:r=>{var n;r.key==="Escape"&&(e(),(n=t.onTrigger)==null||n.call(t))}}function Xt(e,t){return r=>{e?.(r),t?.(r)}}function I$(){const[e,t]=g.exports.useState(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}function N$({data:e}){const t=[],r=[],n=e.reduce((o,i,l)=>(i.group?o[i.group]?o[i.group].push(l):o[i.group]=[l]:r.push(l),o),{});return Object.keys(n).forEach(o=>{t.push(...n[o].map(i=>e[i]))}),t.push(...r.map(o=>e[o])),t}function z$(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}const D$=typeof window<"u"?g.exports.useLayoutEffect:g.exports.useEffect;function T$(e){function t(n){const o=Object.keys(n).reduce((i,l)=>(i[`${e}:${l}`]=a=>n[l](a.detail),i),{});D$(()=>(Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i]),window.addEventListener(i,o[i])}),()=>Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i])})),[])}function r(n){return(...o)=>z$(`${e}:${String(n)}`,o[0])}return[t,r]}function v1(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"})}function j$(e){return()=>({WebkitTapHighlightColor:"transparent","&:focus":{outlineOffset:2,outline:e.focusRing==="always"||e.focusRing==="auto"?`2px solid ${e.colors[e.primaryColor][e.colorScheme==="dark"?7:5]}`:"none"},"&:focus:not(:focus-visible)":{outline:e.focusRing==="auto"||e.focusRing==="never"?"none":void 0}})}function Mi(e){return t=>typeof e.primaryShade=="number"?e.primaryShade:e.primaryShade[t||e.colorScheme]}function Id(e){const t=Mi(e);return(r,n,o=!0,i=!0)=>{if(typeof r=="string"&&r.includes(".")){const[a,s]=r.split("."),u=parseInt(s,10);if(a in e.colors&&u>=0&&u<10)return e.colors[a][typeof n=="number"&&!i?n:u]}const l=typeof n=="number"?n:t();return r in e.colors?e.colors[r][l]:o?e.colors[e.primaryColor][l]:r}}function w1(e){let t="";for(let r=1;r{const o={from:n?.from||e.defaultGradient.from,to:n?.to||e.defaultGradient.to,deg:n?.deg||e.defaultGradient.deg};return`linear-gradient(${o.deg}deg, ${t(o.from,r(),!1)} 0%, ${t(o.to,r(),!1)} 100%)`}}function Nd(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 A$(e){return t=>`@media (min-width: ${Nd({size:t,sizes:e.breakpoints})+1}px)`}function V$(e){return t=>`@media (max-width: ${Nd({size:t,sizes:e.breakpoints})}px)`}function H$(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)}function B$(e){let t=e.replace("#","");if(t.length===3){const l=t.split("");t=[l[0],l[0],l[1],l[1],l[2],l[2]].join("")}const r=parseInt(t,16),n=r>>16&255,o=r>>8&255,i=r&255;return{r:n,g:o,b:i,a:1}}function W$(e){const[t,r,n,o]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:r,b:n,a:o||1}}function zd(e){return H$(e)?B$(e):e.startsWith("rgb")?W$(e):{r:0,g:0,b:0,a:1}}function Pn(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";const{r,g:n,b:o}=zd(e);return`rgba(${r}, ${n}, ${o}, ${t})`}function U$(e=0){return{position:"absolute",top:e,right:e,left:e,bottom:e}}function G$(e,t){const{r,g:n,b:o,a:i}=zd(e),l=1-t,a=s=>Math.round(s*l);return`rgba(${a(r)}, ${a(n)}, ${a(o)}, ${i})`}function Y$(e,t){const{r,g:n,b:o,a:i}=zd(e),l=a=>Math.round(a+(255-a)*t);return`rgba(${l(r)}, ${l(n)}, ${l(o)}, ${i})`}function X$(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 K$(e,t){if(typeof e=="string"&&e.includes(".")){const[r,n]=e.split("."),o=parseInt(n,10);if(r in t.colors&&o>=0&&o<10)return{isSplittedColor:!0,key:r,shade:o}}return{isSplittedColor:!1}}function q$(e){const t=Id(e),r=Mi(e),n=_1(e);return({variant:o,color:i,gradient:l,primaryFallback:a})=>{const s=K$(i,e);if(o==="light")return{border:"transparent",background:Pn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1),color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Pn(t(i,e.colorScheme==="dark"?7:1,a,!1),e.colorScheme==="dark"?.25:.65)};if(o==="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]};if(o==="white")return{border:"transparent",background:e.white,color:t(i,r()),hover:null};if(o==="outline")return{border:t(i,e.colorScheme==="dark"?5:r("light")),background:"transparent",color:t(i,e.colorScheme==="dark"?5:r("light")),hover:e.colorScheme==="dark"?Pn(t(i,5,a,!1),.05):Pn(t(i,0,a,!1),.35)};if(o==="gradient")return{background:n(l),color:e.white,border:"transparent",hover:null};if(o==="subtle")return{border:"transparent",background:"transparent",color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Pn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1)};const u=r(),c=s.isSplittedColor?s.shade:u,f=s.isSplittedColor?s.key:i;return{border:"transparent",background:t(f,c,a),color:e.white,hover:t(f,c===9?8:c+1)}}}function Q$(e){return t=>{const r=Mi(e)(t);return e.colors[e.primaryColor][r]}}function Z$(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}}const $e={fontStyles:M$,themeColor:Id,focusStyles:j$,linearGradient:L$,radialGradient:F$,smallerThan:V$,largerThan:A$,rgba:Pn,size:Nd,cover:U$,darken:G$,lighten:Y$,radius:X$,variant:q$,primaryShade:Mi,hover:Z$,gradient:_1,primaryColor:Q$};var J$=Object.defineProperty,eO=Object.defineProperties,tO=Object.getOwnPropertyDescriptors,Tg=Object.getOwnPropertySymbols,rO=Object.prototype.hasOwnProperty,nO=Object.prototype.propertyIsEnumerable,Mg=(e,t,r)=>t in e?J$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oO=(e,t)=>{for(var r in t||(t={}))rO.call(t,r)&&Mg(e,r,t[r]);if(Tg)for(var r of Tg(t))nO.call(t,r)&&Mg(e,r,t[r]);return e},iO=(e,t)=>eO(e,tO(t));function S1(e){return iO(oO({},e),{fn:{fontStyles:$e.fontStyles(e),themeColor:$e.themeColor(e),focusStyles:$e.focusStyles(e),largerThan:$e.largerThan(e),smallerThan:$e.smallerThan(e),radialGradient:$e.radialGradient,linearGradient:$e.linearGradient,gradient:$e.gradient(e),rgba:$e.rgba,size:$e.size,cover:$e.cover,lighten:$e.lighten,darken:$e.darken,primaryShade:$e.primaryShade(e),radius:$e.radius(e),variant:$e.variant(e),hover:$e.hover,primaryColor:$e.primaryColor(e)}})}Object.keys(y1);const lO=["xs","sm","md","lg","xl"],aO={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:y1,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"},Dd=S1(aO);function sO(e){if(e.sheet)return e.sheet;for(var t=0;t0?Re(oo,--Ke):0,Yn--,we===10&&(Yn=1,Ws--),we}function rt(){return we=Ke<$1?Re(oo,Ke++):0,Yn++,we===10&&(Yn=1,Ws++),we}function zt(){return Re(oo,Ke)}function jl(){return Ke}function ji(e,t){return bi(oo,e,t)}function xi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function O1(e){return Ws=Yn=1,$1=Ot(oo=e),Ke=0,[]}function C1(e){return oo="",e}function Ll(e){return P1(ji(Ke-1,uf(e===91?e+2:e===40?e+1:e)))}function _O(e){for(;(we=zt())&&we<33;)rt();return xi(e)>2||xi(we)>3?"":" "}function SO(e,t){for(;--t&&rt()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return ji(e,jl()+(t<6&&zt()==32&&rt()==32))}function uf(e){for(;rt();)switch(we){case e:return Ke;case 34:case 39:e!==34&&e!==39&&uf(we);break;case 40:e===41&&uf(e);break;case 92:rt();break}return Ke}function bO(e,t){for(;rt()&&e+we!==47+10;)if(e+we===42+42&&zt()===47)break;return"/*"+ji(t,Ke-1)+"*"+Bs(e===47?e:rt())}function xO(e){for(;!xi(zt());)rt();return ji(e,Ke)}function PO(e){return C1(Fl("",null,null,null,[""],e=O1(e),0,[0],e))}function Fl(e,t,r,n,o,i,l,a,s){for(var u=0,c=0,f=l,d=0,p=0,y=0,w=1,v=1,m=1,h=0,_="",b=o,O=i,x=n,P=_;v;)switch(y=h,h=rt()){case 40:if(y!=108&&Re(P,f-1)==58){sf(P+=re(Ll(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:P+=Ll(h);break;case 9:case 10:case 13:case 32:P+=_O(y);break;case 92:P+=SO(jl()-1,7);continue;case 47:switch(zt()){case 42:case 47:ul($O(bO(rt(),jl()),t,r),s);break;default:P+="/"}break;case 123*w:a[u++]=Ot(P)*m;case 125*w:case 59:case 0:switch(h){case 0:case 125:v=0;case 59+c:m==-1&&(P=re(P,/\f/g,"")),p>0&&Ot(P)-f&&ul(p>32?Lg(P+";",n,r,f-1):Lg(re(P," ","")+";",n,r,f-2),s);break;case 59:P+=";";default:if(ul(x=jg(P,t,r,u,c,o,a,_,b=[],O=[],f),i),h===123)if(c===0)Fl(P,t,x,x,b,i,f,a,O);else switch(d===99&&Re(P,3)===110?100:d){case 100:case 108:case 109:case 115:Fl(e,x,x,n&&ul(jg(e,x,x,0,0,o,a,_,o,b=[],f),O),o,O,f,a,n?b:O);break;default:Fl(P,x,x,x,[""],O,0,a,O)}}u=c=p=0,w=m=1,_=P="",f=l;break;case 58:f=1+Ot(P),p=y;default:if(w<1){if(h==123)--w;else if(h==125&&w++==0&&wO()==125)continue}switch(P+=Bs(h),h*w){case 38:m=c>0?1:(P+="\f",-1);break;case 44:a[u++]=(Ot(P)-1)*m,m=1;break;case 64:zt()===45&&(P+=Ll(rt())),d=zt(),c=f=Ot(_=P+=xO(jl())),h++;break;case 45:y===45&&Ot(P)==2&&(w=0)}}return i}function jg(e,t,r,n,o,i,l,a,s,u,c){for(var f=o-1,d=o===0?i:[""],p=jd(d),y=0,w=0,v=0;y0?d[m]+" "+h:re(h,/&\f/g,d[m])))&&(s[v++]=_);return Us(e,t,r,o===0?Td:a,s,u,c)}function $O(e,t,r){return Us(e,t,r,b1,Bs(yO()),bi(e,2,-2),0)}function Lg(e,t,r,n){return Us(e,t,r,Md,bi(e,0,n),bi(e,n+1,-1),n)}function Hn(e,t){for(var r="",n=jd(e),o=0;o6)switch(Re(e,t+1)){case 109:if(Re(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+pa+(Re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sf(e,"stretch")?E1(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Re(e,t+1)!==115)break;case 6444:switch(Re(e,Ot(e)-3-(~sf(e,"!important")&&10))){case 107:return re(e,":",":"+te)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(Re(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+Me+"$2box$3")+e}break;case 5936:switch(Re(e,t+11)){case 114:return te+e+Me+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+Me+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+Me+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+Me+e+e}return e}var TO=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Md:t.return=E1(t.value,t.length);break;case x1:return Hn([Io(t,{value:re(t.value,"@","@"+te)})],o);case Td:if(t.length)return hO(t.props,function(i){switch(vO(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hn([Io(t,{props:[re(i,/:(read-\w+)/,":"+pa+"$1")]})],o);case"::placeholder":return Hn([Io(t,{props:[re(i,/:(plac\w+)/,":"+te+"input-$1")]}),Io(t,{props:[re(i,/:(plac\w+)/,":"+pa+"$1")]}),Io(t,{props:[re(i,/:(plac\w+)/,Me+"input-$1")]})],o)}return""})}},MO=[TO],k1=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var v=w.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||MO,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var v=w.getAttribute("data-emotion").split(" "),m=1;m=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},KO=/[A-Z]|^ms/g,qO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,T1=function(t){return t.charCodeAt(1)===45},Ag=function(t){return t!=null&&typeof t!="boolean"},Xu=kO(function(e){return T1(e)?e:e.replace(KO,"-$&").toLowerCase()}),Vg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(qO,function(n,o,i){return Ct={name:o,styles:i,next:Ct},o})}return XO[t]!==1&&!T1(t)&&typeof r=="number"&&r!==0?r+"px":r};function Pi(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Ct={name:r.name,styles:r.styles,next:Ct},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Ct={name:n.name,styles:n.styles,next:Ct},n=n.next;var o=r.styles+";";return o}return QO(e,t,r)}case"function":{if(e!==void 0){var i=Ct,l=r(e);return Ct=i,Pi(e,t,l)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function QO(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ot in e?eC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iC=(e,t)=>{for(var r in t||(t={}))nC.call(t,r)&&Ug(e,r,t[r]);if(Wg)for(var r of Wg(t))oC.call(t,r)&&Ug(e,r,t[r]);return e},lC=(e,t)=>tC(e,rC(t));function aC({theme:e}){return E.createElement(Vd,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},body:lC(iC({},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 cl(e,t,r){Object.keys(t).forEach(n=>{e[`--mantine-${r}-${n}`]=typeof t[n]=="number"?`${t[n]}px`:t[n]})}function sC({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}`};cl(t,e.shadows,"shadow"),cl(t,e.fontSizes,"font-size"),cl(t,e.radius,"radius"),cl(t,e.spacing,"spacing"),Object.keys(e.colors).forEach(n=>{e.colors[n].forEach((o,i)=>{t[`--mantine-color-${n}-${i}`]=o})});const r=e.headings.sizes;return Object.keys(r).forEach(n=>{t[`--mantine-${n}-font-size`]=`${r[n].fontSize}px`,t[`--mantine-${n}-line-height`]=`${r[n].lineHeight}`}),E.createElement(Vd,{styles:{":root":t}})}var uC=Object.defineProperty,cC=Object.defineProperties,fC=Object.getOwnPropertyDescriptors,Gg=Object.getOwnPropertySymbols,dC=Object.prototype.hasOwnProperty,pC=Object.prototype.propertyIsEnumerable,Yg=(e,t,r)=>t in e?uC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lr=(e,t)=>{for(var r in t||(t={}))dC.call(t,r)&&Yg(e,r,t[r]);if(Gg)for(var r of Gg(t))pC.call(t,r)&&Yg(e,r,t[r]);return e},Xg=(e,t)=>cC(e,fC(t));function gC(e,t){return t?Object.keys(e).reduce((r,n)=>{if(n==="headings"&&t.headings){const o=t.headings.sizes?Object.keys(e.headings.sizes).reduce((i,l)=>(i[l]=Lr(Lr({},e.headings.sizes[l]),t.headings.sizes[l]),i),{}):e.headings.sizes;return Xg(Lr({},r),{headings:Xg(Lr(Lr({},e.headings),t.headings),{sizes:o})})}return r[n]=typeof t[n]=="object"?Lr(Lr({},e[n]),t[n]):typeof t[n]=="number"||typeof t[n]=="boolean"?t[n]:t[n]||e[n],r},{}):e}function mC(e,t){return S1(gC(e,t))}function vC(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}const hC={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 yC(){return E.createElement(Vd,{styles:hC})}var wC=Object.defineProperty,Kg=Object.getOwnPropertySymbols,_C=Object.prototype.hasOwnProperty,SC=Object.prototype.propertyIsEnumerable,qg=(e,t,r)=>t in e?wC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ni=(e,t)=>{for(var r in t||(t={}))_C.call(t,r)&&qg(e,r,t[r]);if(Kg)for(var r of Kg(t))SC.call(t,r)&&qg(e,r,t[r]);return e};const ga=g.exports.createContext({theme:Dd});function at(){var e;return((e=g.exports.useContext(ga))==null?void 0:e.theme)||Dd}function bC(e){const t=at(),r=n=>{var o,i;return{styles:((o=t.components[n])==null?void 0:o.styles)||{},classNames:((i=t.components[n])==null?void 0:i.classNames)||{}}};return Array.isArray(e)?e.map(r):[r(e)]}function xC(){var e;return(e=g.exports.useContext(ga))==null?void 0:e.emotionCache}function ee(e,t,r){var n;const i=(n=at().components[e])==null?void 0:n.defaultProps;return ni(ni(ni({},t),i),vC(r))}function L1({theme:e,emotionCache:t,withNormalizeCSS:r=!1,withGlobalStyles:n=!1,withCSSVariables:o=!1,inherit:i=!1,children:l}){const a=g.exports.useContext(ga),s=mC(Dd,i?ni(ni({},a.theme),e):e);return U(ga.Provider,{value:{theme:s,emotionCache:t},children:[r&&S(yC,{}),n&&S(aC,{theme:s}),o&&S(sC,{theme:s}),l]})}L1.displayName="@mantine/core/MantineProvider";const F1=g.exports.createContext({classNames:{},styles:{},unstyled:!1});function A1({children:e,classNames:t,unstyled:r,styles:n,staticSelector:o}){return S(F1.Provider,{value:{classNames:t,styles:n,unstyled:r,staticSelector:o},children:e})}function dn(){return g.exports.useContext(F1)}const PC={app:100,modal:200,popover:300,overlay:400,max:9999};function io(e){return PC[e]}var Qg=Object.getOwnPropertySymbols,$C=Object.prototype.hasOwnProperty,OC=Object.prototype.propertyIsEnumerable,CC=(e,t)=>{var r={};for(var n in e)$C.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qg)for(var n of Qg(e))t.indexOf(n)<0&&OC.call(e,n)&&(r[n]=e[n]);return r};function ru(e){const t=e,{m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:u,px:c,py:f,pt:d,pb:p,pl:y,pr:w}=t,v=CC(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr"]),m={m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:u,px:c,py:f,pt:d,pb:p,pl:y,pr:w};return Object.keys(m).forEach(h=>{m[h]===void 0&&delete m[h]}),{systemStyles:m,rest:v}}function EC(e,t){const r=g.exports.useRef();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map((n,o)=>n===t[o]).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}const kC=k1({key:"mantine",prepend:!0});function RC(){return xC()||kC}var IC=Object.defineProperty,Zg=Object.getOwnPropertySymbols,NC=Object.prototype.hasOwnProperty,zC=Object.prototype.propertyIsEnumerable,Jg=(e,t,r)=>t in e?IC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,DC=(e,t)=>{for(var r in t||(t={}))NC.call(t,r)&&Jg(e,r,t[r]);if(Zg)for(var r of Zg(t))zC.call(t,r)&&Jg(e,r,t[r]);return e};const Ku="ref";function TC(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(!(Ku in r))return{args:e,ref:t};t=r[Ku];const n=DC({},r);return delete n[Ku],{args:[n],ref:t}}const{cssFactory:MC}=(()=>{function e(r,n,o){const i=[],l=UO(r,i,o);return i.length<2?o:l+n(i)}function t(r){const{cache:n}=r,o=(...l)=>{const{ref:a,args:s}=TC(l),u=M1(s,n.registered);return D1(n,u,!1),`${n.key}-${u.name}${a===void 0?"":` ${a}`}`};return{css:o,cx:(...l)=>e(n.registered,o,h1(l))}}return{cssFactory:t}})();function V1(){const e=RC();return EC(()=>MC({cache:e}),[e])}function jC({cx:e,classes:t,context:r,classNames:n,name:o}){const i=r.reduce((l,a)=>(Object.keys(a.classNames).forEach(s=>{typeof l[s]!="string"?l[s]=`${a.classNames[s]}`:l[s]=`${l[s]} ${a.classNames[s]}`}),l),{});return Object.keys(t).reduce((l,a)=>(l[a]=e(t[a],i[a],n!=null&&n[a],Array.isArray(o)?o.filter(Boolean).map(s=>`mantine-${s}-${a}`).join(" "):o?`mantine-${o}-${a}`:null),l),{})}var LC=Object.defineProperty,em=Object.getOwnPropertySymbols,FC=Object.prototype.hasOwnProperty,AC=Object.prototype.propertyIsEnumerable,tm=(e,t,r)=>t in e?LC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qu=(e,t)=>{for(var r in t||(t={}))FC.call(t,r)&&tm(e,r,t[r]);if(em)for(var r of em(t))AC.call(t,r)&&tm(e,r,t[r]);return e};function VC(e){return`__mantine-ref-${e||""}`}function rm(e,t,r){const n=o=>typeof o=="function"?o(t,r||{}):o||{};return Array.isArray(e)?e.map(o=>n(o.styles)).reduce((o,i)=>(Object.keys(i).forEach(l=>{o[l]?o[l]=qu(qu({},o[l]),i[l]):o[l]=qu({},i[l])}),o),{}):n(e)}function Q(e){const t=typeof e=="function"?e:()=>e;function r(n,o){const i=at(),l=bC(o?.name),{css:a,cx:s}=V1(),u=t(i,n,VC),c=rm(o?.styles,i,n),f=rm(l,i,n),d=Object.fromEntries(Object.keys(u).map(p=>{const y=s({[a(u[p])]:!o?.unstyled},a(f[p]),a(c[p]));return[p,y]}));return{classes:jC({cx:s,classes:d,context:l,classNames:o?.classNames,name:o?.name}),cx:s,theme:i}}return r}var HC=Object.defineProperty,BC=Object.defineProperties,WC=Object.getOwnPropertyDescriptors,nm=Object.getOwnPropertySymbols,UC=Object.prototype.hasOwnProperty,GC=Object.prototype.propertyIsEnumerable,om=(e,t,r)=>t in e?HC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,No=(e,t)=>{for(var r in t||(t={}))UC.call(t,r)&&om(e,r,t[r]);if(nm)for(var r of nm(t))GC.call(t,r)&&om(e,r,t[r]);return e},zo=(e,t)=>BC(e,WC(t));const Do={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(10px)"},transitionProperty:"transform, opacity"},fl={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:zo(No({},Do),{common:{transformOrigin:"center center"}}),"pop-bottom-left":zo(No({},Do),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":zo(No({},Do),{common:{transformOrigin:"bottom right"}}),"pop-top-left":zo(No({},Do),{common:{transformOrigin:"top left"}}),"pop-top-right":zo(No({},Do),{common:{transformOrigin:"top right"}})},im=["mousedown","touchstart"];function YC(e,t,r){const n=g.exports.useRef();return g.exports.useEffect(()=>{const o=i=>{const{target:l}=i??{};if(Array.isArray(r)){const a=l?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(l);r.every(u=>!!u&&!u.contains(l))&&!a&&e()}else n.current&&!n.current.contains(l)&&e()};return(t||im).forEach(i=>document.addEventListener(i,o)),()=>{(t||im).forEach(i=>document.removeEventListener(i,o))}},[n,e,r]),n}function XC(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function KC(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function qC(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[n,o]=g.exports.useState(r?!1:KC(e,t)),i=g.exports.useRef();return g.exports.useEffect(()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),XC(i.current,l=>o(l.matches))},[e]),n}function Qu(e,t,r){return Math.min(Math.max(e,t),r)}const H1=typeof document<"u"?g.exports.useLayoutEffect:g.exports.useEffect;function kr(e,t){const r=g.exports.useRef(!1);g.exports.useEffect(()=>{r.current?e():r.current=!0},t)}function B1({opened:e,shouldReturnFocus:t=!0}){const r=g.exports.useRef(),n=()=>{var o;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((o=r.current)==null||o.focus())};return kr(()=>{let o=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",i),e?r.current=document.activeElement:t&&(o=window.setTimeout(n,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",i)}},[e]),n}const QC=/input|select|textarea|button|object/,W1="a, input, select, textarea, button, object, [tabindex]";function ZC(e){return e.style.display==="none"}function JC(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&r!==document.body;){if(ZC(r))return!1;r=r.parentNode}return!0}function U1(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function cf(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(U1(e));return(QC.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&JC(e)}function G1(e){const t=U1(e);return(Number.isNaN(t)||t>=0)&&cf(e)}function e2(e){return Array.from(e.querySelectorAll(W1)).filter(G1)}function t2(e,t){const r=e2(e);if(!r.length){t.preventDefault();return}if(!(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement))return;t.preventDefault();const i=r[t.shiftKey?r.length-1:0];i&&i.focus()}function r2(e,t="body > :not(script)"){const r=Array.from(document.querySelectorAll(t)).map(n=>{if(n.contains(e))return;const o=n.getAttribute("aria-hidden");return(o===null||o==="false")&&n.setAttribute("aria-hidden","true"),{node:n,ariaHidden:o}});return()=>{r.forEach(n=>{!n||(n.ariaHidden===null?n.node.removeAttribute("aria-hidden"):n.node.setAttribute("aria-hidden",n.ariaHidden))})}}function Y1(e=!0){const t=g.exports.useRef(),r=g.exports.useRef(null),n=g.exports.useCallback(o=>{if(!!e)if(r.current&&r.current(),o){const i=l=>{r.current=r2(l);let a=o.querySelector("[data-autofocus]");if(!a){const s=Array.from(o.querySelectorAll(W1));a=s.find(G1)||s.find(cf)||null,!a&&cf(o)&&(a=o)}a&&a.focus()};setTimeout(()=>{o.ownerDocument&&i(o)}),t.current=o}else t.current=null},[e]);return g.exports.useEffect(()=>{if(!e)return;const o=i=>{i.key==="Tab"&&t.current&&t2(t.current,i)};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}},[e]),n}const n2=()=>`mantine-${Math.random().toString(36).slice(2,11)}`,o2=E["useId".toString()]||(()=>{});function i2(){const[e,t]=g.exports.useState("");return H1(()=>{t(n2())},[]),e}function l2(){const e=o2();return e?`mantine-${e.replace(/:/g,"")}`:""}function lo(e){return typeof e=="string"?e:l2()||i2()}function lm(e,t,r){g.exports.useEffect(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[])}function X1(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function a2(...e){return t=>{e.forEach(r=>X1(r,t))}}function pn(...e){return g.exports.useCallback(a2(...e),e)}function Li({value:e,defaultValue:t,finalValue:r,onChange:n=()=>{}}){const[o,i]=g.exports.useState(t!==void 0?t:r),l=a=>{i(a),n?.(a)};return e!==void 0?[e,n,!0]:[o,l,!1]}function ir(e,t){const r=t-e+1;return Array.from({length:r},(n,o)=>o+e)}const dl="dots";function s2({total:e,siblings:t=1,boundaries:r=1,page:n,initialPage:o=1,onChange:i}){const[l,a]=Li({value:n,onChange:i,defaultValue:o,finalValue:o}),s=y=>{y<=0?a(1):y>e?a(e):a(y)},u=()=>s(l+1),c=()=>s(l-1),f=()=>s(1),d=()=>s(e);return{range:g.exports.useMemo(()=>{if(t*2+3+r*2>=e)return ir(1,e);const w=Math.max(l-t,r),v=Math.min(l+t,e-r),m=w>r+2,h=ve<.5?2*e*e:-1+(4-2*e)*e,c2=({axis:e,target:t,parent:r,alignment:n,offset:o,isList:i})=>{if(!t||!r&&typeof document>"u")return 0;const l=!!r,s=(r||document.body).getBoundingClientRect(),u=t.getBoundingClientRect(),c=f=>u[f]-s[f];if(e==="y"){const f=c("top");if(f===0)return 0;if(n==="start"){const p=f-o;return p<=u.height*(i?0:1)||!i?p:0}const d=l?s.height:window.innerHeight;if(n==="end"){const p=f+o-d+u.height;return p>=-u.height*(i?0:1)||!i?p:0}return n==="center"?f-d/2+u.height/2:0}if(e==="x"){const f=c("left");if(f===0)return 0;if(n==="start"){const p=f-o;return p<=u.width||!i?p:0}const d=l?s.width:window.innerWidth;if(n==="end"){const p=f+o-d+u.width;return p>=-u.width||!i?p:0}return n==="center"?f-d/2+u.width/2:0}return 0},f2=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;const r=e==="y"?"scrollTop":"scrollLeft";if(t)return t[r];const{body:n,documentElement:o}=document;return n[r]+o[r]},d2=({axis:e,parent:t,distance:r})=>{if(!t&&typeof document>"u")return;const n=e==="y"?"scrollTop":"scrollLeft";if(t)t[n]=r;else{const{body:o,documentElement:i}=document;o[n]=r,i[n]=r}};function p2({duration:e=1250,axis:t="y",onScrollFinish:r,easing:n=u2,offset:o=0,cancelable:i=!0,isList:l=!1}={}){const a=g.exports.useRef(0),s=g.exports.useRef(0),u=g.exports.useRef(!1),c=g.exports.useRef(null),f=g.exports.useRef(null),d=K1(),p=()=>{a.current&&cancelAnimationFrame(a.current)},y=g.exports.useCallback(({alignment:v="start"}={})=>{var m;u.current=!1,a.current&&p();const h=(m=f2({parent:c.current,axis:t}))!=null?m:0,_=c2({parent:c.current,target:f.current,axis:t,alignment:v,offset:o,isList:l})-(c.current?0:h);function b(){s.current===0&&(s.current=performance.now());const x=performance.now()-s.current,P=d||e===0?1:x/e,$=h+_*n(P);d2({parent:c.current,axis:t,distance:$}),!u.current&&P<1?a.current=requestAnimationFrame(b):(typeof r=="function"&&r(),s.current=0,a.current=0,p())}b()},[c.current]),w=()=>{i&&(u.current=!0)};return lm("wheel",w,{passive:!0}),lm("touchmove",w,{passive:!0}),g.exports.useEffect(()=>p,[]),{scrollableRef:c,targetRef:f,scrollIntoView:y,cancel:p}}function g2(){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 m2=({disableBodyPadding:e})=>{const t=e?null:g2();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 v2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function h2(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}function y2(){const e=document.createElement("style");return e.type="text/css",e.setAttribute("mantine-scroll-lock",""),e}function w2(e,t={disableBodyPadding:!1}){const[r,n]=g.exports.useState(e||!1),o=g.exports.useRef(0),{disableBodyPadding:i}=t,l=g.exports.useRef(null),a=()=>{o.current=window.scrollY;const u=m2({disableBodyPadding:i}),c=y2();v2(c,u),h2(c),l.current=c},s=()=>{!l?.current||(l.current.parentNode.removeChild(l.current),l.current=null)};return g.exports.useEffect(()=>(r?a():s(),s),[r]),g.exports.useEffect(()=>{e!==void 0&&n(e)},[e]),g.exports.useEffect(()=>{e===void 0&&typeof window<"u"&&window.document.body.style.overflow==="hidden"&&n(!0)},[n]),[r,n]}function _2(){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 S2(){return typeof window<"u"?_2():"undetermined"}function Al(){return`mantine-${Math.random().toString(36).slice(2,11)}`}const am={mt:"marginTop",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",pt:"paddingTop",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight"},b2=["-xs","-sm","-md","-lg","-xl"];function Fr(e){return typeof e=="string"||typeof e=="number"}function Ar(e,t){return b2.includes(e)?t.fn.size({size:e.replace("-",""),sizes:t.spacing})*-1:t.fn.size({size:e,sizes:t.spacing})}function sm(e,t){const r={};if(Fr(e.p)){const n=Ar(e.p,t);r.padding=n}if(Fr(e.m)){const n=Ar(e.m,t);r.margin=n}if(Fr(e.py)){const n=Ar(e.py,t);r.paddingTop=n,r.paddingBottom=n}if(Fr(e.px)){const n=Ar(e.px,t);r.paddingLeft=n,r.paddingRight=n}if(Fr(e.my)){const n=Ar(e.my,t);r.marginTop=n,r.marginBottom=n}if(Fr(e.mx)){const n=Ar(e.mx,t);r.marginLeft=n,r.marginRight=n}return Object.keys(am).forEach(n=>{Fr(e[n])&&(r[am[n]]=t.fn.size({size:Ar(e[n],t),sizes:t.spacing}))}),r}function um(e,t){return typeof e=="function"?e(t):e}function x2(e,t,r){const n=at(),{css:o,cx:i}=V1();return Array.isArray(e)?i(r,o(sm(t,n)),e.map(l=>o(um(l,n)))):i(r,o(um(e,n)),o(sm(t,n)))}var P2=Object.defineProperty,ma=Object.getOwnPropertySymbols,q1=Object.prototype.hasOwnProperty,Q1=Object.prototype.propertyIsEnumerable,cm=(e,t,r)=>t in e?P2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$2=(e,t)=>{for(var r in t||(t={}))q1.call(t,r)&&cm(e,r,t[r]);if(ma)for(var r of ma(t))Q1.call(t,r)&&cm(e,r,t[r]);return e},O2=(e,t)=>{var r={};for(var n in e)q1.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&&Q1.call(e,n)&&(r[n]=e[n]);return r};const Z1=g.exports.forwardRef((e,t)=>{var r=e,{className:n,component:o,style:i,sx:l}=r,a=O2(r,["className","component","style","sx"]);const{systemStyles:s,rest:u}=ru(a);return S(o||"div",{...$2({ref:t,className:x2(l,s,n),style:i},u)})});Z1.displayName="@mantine/core/Box";const K=Z1;var C2=Object.defineProperty,E2=Object.defineProperties,k2=Object.getOwnPropertyDescriptors,fm=Object.getOwnPropertySymbols,R2=Object.prototype.hasOwnProperty,I2=Object.prototype.propertyIsEnumerable,dm=(e,t,r)=>t in e?C2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pm=(e,t)=>{for(var r in t||(t={}))R2.call(t,r)&&dm(e,r,t[r]);if(fm)for(var r of fm(t))I2.call(t,r)&&dm(e,r,t[r]);return e},N2=(e,t)=>E2(e,k2(t)),z2=Q(e=>({root:N2(pm(pm({},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"})})),D2=z2,T2=Object.defineProperty,va=Object.getOwnPropertySymbols,J1=Object.prototype.hasOwnProperty,ew=Object.prototype.propertyIsEnumerable,gm=(e,t,r)=>t in e?T2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M2=(e,t)=>{for(var r in t||(t={}))J1.call(t,r)&&gm(e,r,t[r]);if(va)for(var r of va(t))ew.call(t,r)&&gm(e,r,t[r]);return e},j2=(e,t)=>{var r={};for(var n in e)J1.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&&ew.call(e,n)&&(r[n]=e[n]);return r};const tw=g.exports.forwardRef((e,t)=>{const r=ee("UnstyledButton",{},e),{className:n,component:o="button",unstyled:i}=r,l=j2(r,["className","component","unstyled"]),{classes:a,cx:s}=D2(null,{name:"UnstyledButton",unstyled:i});return S(K,{...M2({component:o,ref:t,className:s(a.root,n),type:o==="button"?"button":void 0},l)})});tw.displayName="@mantine/core/UnstyledButton";const nu=tw;var L2=Object.defineProperty,F2=Object.defineProperties,A2=Object.getOwnPropertyDescriptors,mm=Object.getOwnPropertySymbols,V2=Object.prototype.hasOwnProperty,H2=Object.prototype.propertyIsEnumerable,vm=(e,t,r)=>t in e?L2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rw=(e,t)=>{for(var r in t||(t={}))V2.call(t,r)&&vm(e,r,t[r]);if(mm)for(var r of mm(t))H2.call(t,r)&&vm(e,r,t[r]);return e},B2=(e,t)=>F2(e,A2(t));const Wo={xs:18,sm:22,md:28,lg:34,xl:44};function W2({variant:e,theme:t,color:r}){if(e==="transparent")return{border:"1px solid transparent",color:t.fn.variant({variant:"subtle",color:r}).color,backgroundColor:"transparent"};const n=t.fn.variant({color:r,variant:e});return rw({backgroundColor:n.background,color:n.color,border:`1px solid ${n.border}`},t.fn.hover({backgroundColor:n.hover}))}var U2=Q((e,{color:t,size:r,radius:n,variant:o})=>({root:B2(rw({},W2({variant:o,theme:e,color:t})),{position:"relative",height:e.fn.size({size:r,sizes:Wo}),minHeight:e.fn.size({size:r,sizes:Wo}),width:e.fn.size({size:r,sizes:Wo}),minWidth:e.fn.size({size:r,sizes:Wo}),borderRadius:e.fn.radius(n),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center","&:active":e.activeStyles,"&[data-disabled]":{color:e.colors.gray[e.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),borderColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),"&: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"}}})})),G2=U2,Y2=Object.defineProperty,ha=Object.getOwnPropertySymbols,nw=Object.prototype.hasOwnProperty,ow=Object.prototype.propertyIsEnumerable,hm=(e,t,r)=>t in e?Y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X2=(e,t)=>{for(var r in t||(t={}))nw.call(t,r)&&hm(e,r,t[r]);if(ha)for(var r of ha(t))ow.call(t,r)&&hm(e,r,t[r]);return e},K2=(e,t)=>{var r={};for(var n in e)nw.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&&ow.call(e,n)&&(r[n]=e[n]);return r};function q2(e){var t=e,{size:r,color:n}=t,o=K2(t,["size","color"]);return E.createElement("svg",X2({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,width:`${r}px`},o),E.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},E.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"}),E.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"})),E.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},E.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"}),E.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"})),E.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},E.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),E.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},E.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"}),E.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"})),E.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},E.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"}),E.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 Q2=Object.defineProperty,ya=Object.getOwnPropertySymbols,iw=Object.prototype.hasOwnProperty,lw=Object.prototype.propertyIsEnumerable,ym=(e,t,r)=>t in e?Q2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z2=(e,t)=>{for(var r in t||(t={}))iw.call(t,r)&&ym(e,r,t[r]);if(ya)for(var r of ya(t))lw.call(t,r)&&ym(e,r,t[r]);return e},J2=(e,t)=>{var r={};for(var n in e)iw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ya)for(var n of ya(e))t.indexOf(n)<0&&lw.call(e,n)&&(r[n]=e[n]);return r};function eE(e){var t=e,{size:r,color:n}=t,o=J2(t,["size","color"]);return E.createElement("svg",Z2({width:`${r}px`,height:`${r}px`,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n},o),E.createElement("g",{fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},E.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),E.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},E.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var tE=Object.defineProperty,wa=Object.getOwnPropertySymbols,aw=Object.prototype.hasOwnProperty,sw=Object.prototype.propertyIsEnumerable,wm=(e,t,r)=>t in e?tE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rE=(e,t)=>{for(var r in t||(t={}))aw.call(t,r)&&wm(e,r,t[r]);if(wa)for(var r of wa(t))sw.call(t,r)&&wm(e,r,t[r]);return e},nE=(e,t)=>{var r={};for(var n in e)aw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&wa)for(var n of wa(e))t.indexOf(n)<0&&sw.call(e,n)&&(r[n]=e[n]);return r};function oE(e){var t=e,{size:r,color:n}=t,o=nE(t,["size","color"]);return E.createElement("svg",rE({width:`${r}px`,height:`${r/4}px`,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n},o),E.createElement("circle",{cx:"15",cy:"15",r:"15"},E.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),E.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},E.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),E.createElement("circle",{cx:"105",cy:"15",r:"15"},E.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var iE=Object.defineProperty,_a=Object.getOwnPropertySymbols,uw=Object.prototype.hasOwnProperty,cw=Object.prototype.propertyIsEnumerable,_m=(e,t,r)=>t in e?iE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lE=(e,t)=>{for(var r in t||(t={}))uw.call(t,r)&&_m(e,r,t[r]);if(_a)for(var r of _a(t))cw.call(t,r)&&_m(e,r,t[r]);return e},aE=(e,t)=>{var r={};for(var n in e)uw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_a)for(var n of _a(e))t.indexOf(n)<0&&cw.call(e,n)&&(r[n]=e[n]);return r};const Zu={bars:q2,oval:eE,dots:oE},sE={xs:18,sm:22,md:36,lg:44,xl:58},uE={size:"md"};function Hd(e){const t=ee("Loader",uE,e),{size:r,color:n,variant:o}=t,i=aE(t,["size","color","variant"]),l=at(),a=o in Zu?o:l.loader;return E.createElement(K,lE({role:"presentation",component:Zu[a]||Zu.bars,size:l.fn.size({size:r,sizes:sE}),color:l.fn.variant({variant:"filled",primaryFallback:!1,color:n||l.primaryColor}).background},i))}Hd.displayName="@mantine/core/Loader";var cE=Object.defineProperty,Sa=Object.getOwnPropertySymbols,fw=Object.prototype.hasOwnProperty,dw=Object.prototype.propertyIsEnumerable,Sm=(e,t,r)=>t in e?cE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bm=(e,t)=>{for(var r in t||(t={}))fw.call(t,r)&&Sm(e,r,t[r]);if(Sa)for(var r of Sa(t))dw.call(t,r)&&Sm(e,r,t[r]);return e},fE=(e,t)=>{var r={};for(var n in e)fw.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&&dw.call(e,n)&&(r[n]=e[n]);return r};const dE={color:"gray",size:"md",variant:"subtle",loading:!1},pw=g.exports.forwardRef((e,t)=>{const r=ee("ActionIcon",dE,e),{className:n,color:o,children:i,radius:l,size:a,variant:s,disabled:u,loaderProps:c,loading:f,unstyled:d}=r,p=fE(r,["className","color","children","radius","size","variant","disabled","loaderProps","loading","unstyled"]),{classes:y,cx:w,theme:v}=G2({size:a,radius:l,color:o,variant:s},{name:"ActionIcon",unstyled:d}),m=v.fn.variant({color:o,variant:"light"}),h=S(Hd,{...bm({color:m.color,size:v.fn.size({size:a,sizes:Wo})-12},c)});return S(nu,{...bm({className:w(y.root,n),ref:t,disabled:u||f,"data-disabled":u||void 0,"data-loading":f||void 0,unstyled:d},p),children:f?h:i})});pw.displayName="@mantine/core/ActionIcon";const $t=pw;function gw(e){const{children:t,target:r,className:n}=ee("Portal",{},e),o=at(),[i,l]=g.exports.useState(!1),a=g.exports.useRef();return H1(()=>(l(!0),a.current=r?typeof r=="string"?document.querySelector(r):r:document.createElement("div"),r||document.body.appendChild(a.current),()=>{!r&&document.body.removeChild(a.current)}),[r]),i?Ei.exports.createPortal(S("div",{className:n,dir:o.dir,children:t}),a.current):null}gw.displayName="@mantine/core/Portal";var pE=Object.defineProperty,ba=Object.getOwnPropertySymbols,mw=Object.prototype.hasOwnProperty,vw=Object.prototype.propertyIsEnumerable,xm=(e,t,r)=>t in e?pE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gE=(e,t)=>{for(var r in t||(t={}))mw.call(t,r)&&xm(e,r,t[r]);if(ba)for(var r of ba(t))vw.call(t,r)&&xm(e,r,t[r]);return e},mE=(e,t)=>{var r={};for(var n in e)mw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ba)for(var n of ba(e))t.indexOf(n)<0&&vw.call(e,n)&&(r[n]=e[n]);return r};function Fi(e){var t=e,{withinPortal:r=!0,children:n}=t,o=mE(t,["withinPortal","children"]);return r?E.createElement(gw,gE({},o),n):E.createElement(E.Fragment,null,n)}Fi.displayName="@mantine/core/OptionalPortal";var vE=Object.defineProperty,Pm=Object.getOwnPropertySymbols,hE=Object.prototype.hasOwnProperty,yE=Object.prototype.propertyIsEnumerable,$m=(e,t,r)=>t in e?vE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wE=(e,t)=>{for(var r in t||(t={}))hE.call(t,r)&&$m(e,r,t[r]);if(Pm)for(var r of Pm(t))yE.call(t,r)&&$m(e,r,t[r]);return e};function hw(e){return E.createElement("svg",wE({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.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"}))}hw.displayName="@mantine/core/CloseIcon";var _E=Object.defineProperty,xa=Object.getOwnPropertySymbols,yw=Object.prototype.hasOwnProperty,ww=Object.prototype.propertyIsEnumerable,Om=(e,t,r)=>t in e?_E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SE=(e,t)=>{for(var r in t||(t={}))yw.call(t,r)&&Om(e,r,t[r]);if(xa)for(var r of xa(t))ww.call(t,r)&&Om(e,r,t[r]);return e},bE=(e,t)=>{var r={};for(var n in e)yw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xa)for(var n of xa(e))t.indexOf(n)<0&&ww.call(e,n)&&(r[n]=e[n]);return r};const xE={xs:12,sm:14,md:16,lg:20,xl:24},PE={size:"md"},ou=g.exports.forwardRef((e,t)=>{const r=ee("CloseButton",PE,e),{iconSize:n,size:o="md"}=r,i=bE(r,["iconSize","size"]),l=at(),a=n||l.fn.size({size:o,sizes:xE});return S($t,{...SE({size:o,ref:t},i),children:S(hw,{width:a,height:a})})});ou.displayName="@mantine/core/CloseButton";var $E=Object.defineProperty,OE=Object.defineProperties,CE=Object.getOwnPropertyDescriptors,Cm=Object.getOwnPropertySymbols,EE=Object.prototype.hasOwnProperty,kE=Object.prototype.propertyIsEnumerable,Em=(e,t,r)=>t in e?$E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pl=(e,t)=>{for(var r in t||(t={}))EE.call(t,r)&&Em(e,r,t[r]);if(Cm)for(var r of Cm(t))kE.call(t,r)&&Em(e,r,t[r]);return e},RE=(e,t)=>OE(e,CE(t));function IE({underline:e,strikethrough:t}){const r=[];return e&&r.push("underline"),t&&r.push("line-through"),r.length>0?r.join(" "):"none"}function NE({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 zE(e){return typeof e=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}var DE=Q((e,{color:t,variant:r,size:n,lineClamp:o,inline:i,inherit:l,underline:a,gradient:s,weight:u,transform:c,align:f,strikethrough:d,italic:p})=>{const y=e.fn.variant({variant:"gradient",gradient:s});return{root:pl(RE(pl(pl(pl({},e.fn.fontStyles()),e.fn.focusStyles()),zE(o)),{color:NE({color:t,theme:e,variant:r}),fontFamily:l?"inherit":e.fontFamily,fontSize:l||n===void 0?"inherit":e.fn.size({size:n,sizes:e.fontSizes}),lineHeight:l?"inherit":i?1:e.lineHeight,textDecoration:IE({underline:a,strikethrough:d}),WebkitTapHighlightColor:"transparent",fontWeight:l?"inherit":u,textTransform:c,textAlign:f,fontStyle:p?"italic":void 0}),e.fn.hover(r==="link"&&a===void 0?{textDecoration:"underline"}:void 0)),gradient:{backgroundImage:y.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}}),TE=DE,ME=Object.defineProperty,Pa=Object.getOwnPropertySymbols,_w=Object.prototype.hasOwnProperty,Sw=Object.prototype.propertyIsEnumerable,km=(e,t,r)=>t in e?ME(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jE=(e,t)=>{for(var r in t||(t={}))_w.call(t,r)&&km(e,r,t[r]);if(Pa)for(var r of Pa(t))Sw.call(t,r)&&km(e,r,t[r]);return e},LE=(e,t)=>{var r={};for(var n in e)_w.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&&Sw.call(e,n)&&(r[n]=e[n]);return r};const FE={variant:"text"},bw=g.exports.forwardRef((e,t)=>{const r=ee("Text",FE,e),{className:n,size:o,weight:i,transform:l,color:a,align:s,variant:u,lineClamp:c,gradient:f,inline:d,inherit:p,underline:y,strikethrough:w,italic:v,classNames:m,styles:h,unstyled:_,span:b}=r,O=LE(r,["className","size","weight","transform","color","align","variant","lineClamp","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span"]),{classes:x,cx:P}=TE({variant:u,color:a,size:o,lineClamp:c,inline:d,inherit:p,underline:y,strikethrough:w,italic:v,weight:i,transform:l,align:s,gradient:f},{unstyled:_,name:"Text"});return S(K,{...jE({ref:t,className:P(x.root,{[x.gradient]:u==="gradient"},n),component:b?"span":"div"},O)})});bw.displayName="@mantine/core/Text";const mt=bw,gl={xs:1,sm:2,md:3,lg:4,xl:5};function ml(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 AE=Q((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:gl})}px ${r} ${ml(e,n)}`,marginRight:e.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${e.fn.size({size:t,sizes:gl})}px ${r} ${ml(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:gl}),borderTopColor:ml(e,n),borderTopStyle:r,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:e.fn.size({size:t,sizes:gl}),borderLeftColor:ml(e,n),borderLeftStyle:r}})),VE=AE,HE=Object.defineProperty,BE=Object.defineProperties,WE=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,xw=Object.prototype.hasOwnProperty,Pw=Object.prototype.propertyIsEnumerable,Rm=(e,t,r)=>t in e?HE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Im=(e,t)=>{for(var r in t||(t={}))xw.call(t,r)&&Rm(e,r,t[r]);if($a)for(var r of $a(t))Pw.call(t,r)&&Rm(e,r,t[r]);return e},UE=(e,t)=>BE(e,WE(t)),GE=(e,t)=>{var r={};for(var n in e)xw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$a)for(var n of $a(e))t.indexOf(n)<0&&Pw.call(e,n)&&(r[n]=e[n]);return r};const YE={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},ff=g.exports.forwardRef((e,t)=>{const r=ee("Divider",YE,e),{className:n,color:o,orientation:i,size:l,label:a,labelPosition:s,labelProps:u,variant:c,styles:f,classNames:d,unstyled:p}=r,y=GE(r,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:w,cx:v}=VE({color:o,size:l,variant:c},{classNames:d,styles:f,unstyled:p,name:"Divider"}),m=i==="vertical",h=i==="horizontal",_=!!a&&h,b=!u?.color;return S(K,{...Im({ref:t,className:v(w.root,{[w.vertical]:m,[w.horizontal]:h,[w.withLabel]:_},n),role:"separator"},y),children:_&&S(mt,{...UE(Im({},u),{size:u?.size||"xs",sx:{marginTop:2},className:v(w.label,w[s],{[w.labelDefaultStyles]:b})}),children:a})})});ff.displayName="@mantine/core/Divider";var XE=Object.defineProperty,Nm=Object.getOwnPropertySymbols,KE=Object.prototype.hasOwnProperty,qE=Object.prototype.propertyIsEnumerable,zm=(e,t,r)=>t in e?XE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QE=(e,t)=>{for(var r in t||(t={}))KE.call(t,r)&&zm(e,r,t[r]);if(Nm)for(var r of Nm(t))qE.call(t,r)&&zm(e,r,t[r]);return e},ZE=Q((e,{size:t})=>({item:{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.radius.sm,"&[data-hovered]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[1]},"&[data-selected]":QE({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]}})),JE=ZE,ek=Object.defineProperty,Dm=Object.getOwnPropertySymbols,tk=Object.prototype.hasOwnProperty,rk=Object.prototype.propertyIsEnumerable,Tm=(e,t,r)=>t in e?ek(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nk=(e,t)=>{for(var r in t||(t={}))tk.call(t,r)&&Tm(e,r,t[r]);if(Dm)for(var r of Dm(t))rk.call(t,r)&&Tm(e,r,t[r]);return e};function $w({data:e,hovered:t,classNames:r,styles:n,isItemSelected:o,uuid:i,__staticSelector:l,onItemHover:a,onItemSelect:s,itemsRefs:u,itemComponent:c,size:f,nothingFound:d,creatable:p,createLabel:y,unstyled:w}){const{classes:v}=JE({size:f},{classNames:r,styles:n,unstyled:w,name:l}),m=[],h=[];let _=null;const b=(x,P)=>{const $=typeof o=="function"?o(x.value):!1;return E.createElement(c,nk({key:x.value,className:v.item,"data-disabled":x.disabled||void 0,"data-hovered":!x.disabled&&t===P||void 0,"data-selected":!x.disabled&&$||void 0,onMouseEnter:()=>a(P),id:`${i}-${P}`,role:"option","data-ignore-outside-clicks":!0,tabIndex:-1,"aria-selected":t===P,ref:C=>{u&&u.current&&(u.current[x.value]=C)},onMouseDown:x.disabled?null:C=>{C.preventDefault(),s(x)},disabled:x.disabled},x))};let O=null;if(e.forEach((x,P)=>{x.creatable?_=P:x.group?(O!==x.group&&(O=x.group,h.push(E.createElement("div",{className:v.separator,key:`__mantine-divider-${P}`},E.createElement(ff,{classNames:{label:v.separatorLabel},label:x.group})))),h.push(b(x,P))):m.push(b(x,P))}),p){const x=e[_];m.push(E.createElement("div",{key:Al(),className:v.item,"data-hovered":t===_||void 0,onMouseEnter:()=>a(_),onMouseDown:P=>{P.preventDefault(),s(x)},tabIndex:-1,ref:P=>{u&&u.current&&(u.current[x.value]=P)}},y))}return h.length>0&&m.length>0&&m.unshift(E.createElement("div",{className:v.separator,key:"empty-group-separator"},E.createElement(ff,null))),h.length>0||m.length>0?E.createElement(E.Fragment,null,h,m):E.createElement(mt,{size:f,unstyled:w,className:v.nothingFound},d)}$w.displayName="@mantine/core/SelectItems";var ok=Object.defineProperty,Oa=Object.getOwnPropertySymbols,Ow=Object.prototype.hasOwnProperty,Cw=Object.prototype.propertyIsEnumerable,Mm=(e,t,r)=>t in e?ok(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ik=(e,t)=>{for(var r in t||(t={}))Ow.call(t,r)&&Mm(e,r,t[r]);if(Oa)for(var r of Oa(t))Cw.call(t,r)&&Mm(e,r,t[r]);return e},lk=(e,t)=>{var r={};for(var n in e)Ow.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&&Cw.call(e,n)&&(r[n]=e[n]);return r};const Ew=g.exports.forwardRef((e,t)=>{var r=e,{label:n,value:o}=r,i=lk(r,["label","value"]);return S("div",{...ik({ref:t},i),children:n||o})});Ew.displayName="@mantine/core/DefaultItem";function ak(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function kw(...e){return t=>e.forEach(r=>ak(r,t))}function gn(...e){return g.exports.useCallback(kw(...e),e)}const Rw=g.exports.forwardRef((e,t)=>{const{children:r,...n}=e,o=g.exports.Children.toArray(r),i=o.find(uk);if(i){const l=i.props.children,a=o.map(s=>s===i?g.exports.Children.count(l)>1?g.exports.Children.only(null):g.exports.isValidElement(l)?l.props.children:null:s);return g.exports.createElement(df,de({},n,{ref:t}),g.exports.isValidElement(l)?g.exports.cloneElement(l,void 0,a):null)}return g.exports.createElement(df,de({},n,{ref:t}),r)});Rw.displayName="Slot";const df=g.exports.forwardRef((e,t)=>{const{children:r,...n}=e;return g.exports.isValidElement(r)?g.exports.cloneElement(r,{...ck(n,r.props),ref:kw(t,r.ref)}):g.exports.Children.count(r)>1?g.exports.Children.only(null):null});df.displayName="SlotClone";const sk=({children:e})=>g.exports.createElement(g.exports.Fragment,null,e);function uk(e){return g.exports.isValidElement(e)&&e.type===sk}function ck(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?r[n]=(...a)=>{i?.(...a),o?.(...a)}:n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const fk=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Ai=fk.reduce((e,t)=>{const r=g.exports.forwardRef((n,o)=>{const{asChild:i,...l}=n,a=i?Rw:t;return g.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.exports.createElement(a,de({},l,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),pf=Boolean(globalThis?.document)?g.exports.useLayoutEffect:()=>{};function dk(e,t){return g.exports.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const Vi=e=>{const{present:t,children:r}=e,n=pk(t),o=typeof r=="function"?r({present:n.isPresent}):g.exports.Children.only(r),i=gn(n.ref,o.ref);return typeof r=="function"||n.isPresent?g.exports.cloneElement(o,{ref:i}):null};Vi.displayName="Presence";function pk(e){const[t,r]=g.exports.useState(),n=g.exports.useRef({}),o=g.exports.useRef(e),i=g.exports.useRef("none"),l=e?"mounted":"unmounted",[a,s]=dk(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.exports.useEffect(()=>{const u=vl(n.current);i.current=a==="mounted"?u:"none"},[a]),pf(()=>{const u=n.current,c=o.current;if(c!==e){const d=i.current,p=vl(u);e?s("MOUNT"):p==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),pf(()=>{if(t){const u=f=>{const p=vl(n.current).includes(f.animationName);f.target===t&&p&&Ei.exports.flushSync(()=>s("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=vl(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.exports.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function vl(e){return e?.animationName||"none"}function gk(e,t=[]){let r=[];function n(i,l){const a=g.exports.createContext(l),s=r.length;r=[...r,l];function u(f){const{scope:d,children:p,...y}=f,w=d?.[e][s]||a,v=g.exports.useMemo(()=>y,Object.values(y));return g.exports.createElement(w.Provider,{value:v},p)}function c(f,d){const p=d?.[e][s]||a,y=g.exports.useContext(p);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=r.map(l=>g.exports.createContext(l));return function(a){const s=a?.[e]||i;return g.exports.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return o.scopeName=e,[n,mk(o,...t)]}function mk(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=n.reduce((a,{useScope:s,scopeName:u})=>{const f=s(i)[`__scope${u}`];return{...a,...f}},{});return g.exports.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}function Ur(e){const t=g.exports.useRef(e);return g.exports.useEffect(()=>{t.current=e}),g.exports.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}const vk=g.exports.createContext(void 0);function hk(e){const t=g.exports.useContext(vk);return e||t||"ltr"}function yk(e,[t,r]){return Math.min(r,Math.max(t,e))}function en(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function wk(e,t){return g.exports.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const Iw="ScrollArea",[Nw,i7]=gk(Iw),[_k,yt]=Nw(Iw),Sk=g.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...l}=e,[a,s]=g.exports.useState(null),[u,c]=g.exports.useState(null),[f,d]=g.exports.useState(null),[p,y]=g.exports.useState(null),[w,v]=g.exports.useState(null),[m,h]=g.exports.useState(0),[_,b]=g.exports.useState(0),[O,x]=g.exports.useState(!1),[P,$]=g.exports.useState(!1),C=gn(t,z=>s(z)),I=hk(o);return g.exports.createElement(_k,{scope:r,type:n,dir:I,scrollHideDelay:i,scrollArea:a,viewport:u,onViewportChange:c,content:f,onContentChange:d,scrollbarX:p,onScrollbarXChange:y,scrollbarXEnabled:O,onScrollbarXEnabledChange:x,scrollbarY:w,onScrollbarYChange:v,scrollbarYEnabled:P,onScrollbarYEnabledChange:$,onCornerWidthChange:h,onCornerHeightChange:b},g.exports.createElement(Ai.div,de({dir:I},l,{ref:C,style:{position:"relative",["--radix-scroll-area-corner-width"]:m+"px",["--radix-scroll-area-corner-height"]:_+"px",...e.style}})))}),bk="ScrollAreaViewport",xk=g.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,...o}=e,i=yt(bk,r),l=g.exports.useRef(null),a=gn(t,l,i.onViewportChange);return g.exports.createElement(g.exports.Fragment,null,g.exports.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),g.exports.createElement(Ai.div,de({"data-radix-scroll-area-viewport":""},o,{ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style}}),g.exports.createElement("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),tr="ScrollAreaScrollbar",Pk=g.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=yt(tr,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=o,a=e.orientation==="horizontal";return g.exports.useEffect(()=>(a?i(!0):l(!0),()=>{a?i(!1):l(!1)}),[a,i,l]),o.type==="hover"?g.exports.createElement($k,de({},n,{ref:t,forceMount:r})):o.type==="scroll"?g.exports.createElement(Ok,de({},n,{ref:t,forceMount:r})):o.type==="auto"?g.exports.createElement(zw,de({},n,{ref:t,forceMount:r})):o.type==="always"?g.exports.createElement(Bd,de({},n,{ref:t})):null}),$k=g.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=yt(tr,e.__scopeScrollArea),[i,l]=g.exports.useState(!1);return g.exports.useEffect(()=>{const a=o.scrollArea;let s=0;if(a){const u=()=>{window.clearTimeout(s),l(!0)},c=()=>{s=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),g.exports.createElement(Vi,{present:r||i},g.exports.createElement(zw,de({"data-state":i?"visible":"hidden"},n,{ref:t})))}),Ok=g.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=yt(tr,e.__scopeScrollArea),i=e.orientation==="horizontal",l=lu(()=>s("SCROLL_END"),100),[a,s]=wk("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return g.exports.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,o.scrollHideDelay,s]),g.exports.useEffect(()=>{const u=o.viewport,c=i?"scrollLeft":"scrollTop";if(u){let f=u[c];const d=()=>{const p=u[c];f!==p&&(s("SCROLL"),l()),f=p};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[o.viewport,i,s,l]),g.exports.createElement(Vi,{present:r||a!=="hidden"},g.exports.createElement(Bd,de({"data-state":a==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:en(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:en(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),zw=g.exports.forwardRef((e,t)=>{const r=yt(tr,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,l]=g.exports.useState(!1),a=e.orientation==="horizontal",s=lu(()=>{if(r.viewport){const u=r.viewport.offsetWidth{const{orientation:r="vertical",...n}=e,o=yt(tr,e.__scopeScrollArea),i=g.exports.useRef(null),l=g.exports.useRef(0),[a,s]=g.exports.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=jw(a.viewport,a.content),c={...n,sizes:a,onSizesChange:s,hasThumb:Boolean(u>0&&u<1),onThumbChange:d=>i.current=d,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:d=>l.current=d};function f(d,p){return Dk(d,l.current,a,p)}return r==="horizontal"?g.exports.createElement(Ck,de({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollLeft,p=jm(d,a,o.dir);i.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=f(d,o.dir))}})):r==="vertical"?g.exports.createElement(Ek,de({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollTop,p=jm(d,a);i.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=f(d))}})):null}),Ck=g.exports.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=yt(tr,e.__scopeScrollArea),[l,a]=g.exports.useState(),s=g.exports.useRef(null),u=gn(t,s,i.onScrollbarXChange);return g.exports.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),g.exports.createElement(Tw,de({"data-orientation":"horizontal"},o,{ref:u,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:iu(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,f)=>{if(i.viewport){const d=i.viewport.scrollLeft+c.deltaX;e.onWheelScroll(d),Fw(d,f)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Ca(l.paddingLeft),paddingEnd:Ca(l.paddingRight)}})}}))}),Ek=g.exports.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=yt(tr,e.__scopeScrollArea),[l,a]=g.exports.useState(),s=g.exports.useRef(null),u=gn(t,s,i.onScrollbarYChange);return g.exports.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),g.exports.createElement(Tw,de({"data-orientation":"vertical"},o,{ref:u,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:iu(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,f)=>{if(i.viewport){const d=i.viewport.scrollTop+c.deltaY;e.onWheelScroll(d),Fw(d,f)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Ca(l.paddingTop),paddingEnd:Ca(l.paddingBottom)}})}}))}),[kk,Dw]=Nw(tr),Tw=g.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:f,...d}=e,p=yt(tr,r),[y,w]=g.exports.useState(null),v=gn(t,C=>w(C)),m=g.exports.useRef(null),h=g.exports.useRef(""),_=p.viewport,b=n.content-n.viewport,O=Ur(c),x=Ur(s),P=lu(f,10);function $(C){if(m.current){const I=C.clientX-m.current.left,z=C.clientY-m.current.top;u({x:I,y:z})}}return g.exports.useEffect(()=>{const C=I=>{const z=I.target;y?.contains(z)&&O(I,b)};return document.addEventListener("wheel",C,{passive:!1}),()=>document.removeEventListener("wheel",C,{passive:!1})},[_,y,b,O]),g.exports.useEffect(x,[n,x]),Xn(y,P),Xn(p.content,P),g.exports.createElement(kk,{scope:r,scrollbar:y,hasThumb:o,onThumbChange:Ur(i),onThumbPointerUp:Ur(l),onThumbPositionChange:x,onThumbPointerDown:Ur(a)},g.exports.createElement(Ai.div,de({},d,{ref:v,style:{position:"absolute",...d.style},onPointerDown:en(e.onPointerDown,C=>{C.button===0&&(C.target.setPointerCapture(C.pointerId),m.current=y.getBoundingClientRect(),h.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",$(C))}),onPointerMove:en(e.onPointerMove,$),onPointerUp:en(e.onPointerUp,C=>{C.target.releasePointerCapture(C.pointerId),document.body.style.webkitUserSelect=h.current,m.current=null})})))}),gf="ScrollAreaThumb",Rk=g.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Dw(gf,e.__scopeScrollArea);return g.exports.createElement(Vi,{present:r||o.hasThumb},g.exports.createElement(Ik,de({ref:t},n)))}),Ik=g.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,i=yt(gf,r),l=Dw(gf,r),{onThumbPositionChange:a}=l,s=gn(t,f=>l.onThumbChange(f)),u=g.exports.useRef(),c=lu(()=>{u.current&&(u.current(),u.current=void 0)},100);return g.exports.useEffect(()=>{const f=i.viewport;if(f){const d=()=>{if(c(),!u.current){const p=Tk(f,a);u.current=p,a()}};return a(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[i.viewport,c,a]),g.exports.createElement(Ai.div,de({"data-state":l.hasThumb?"visible":"hidden"},o,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:en(e.onPointerDownCapture,f=>{const p=f.target.getBoundingClientRect(),y=f.clientX-p.left,w=f.clientY-p.top;l.onThumbPointerDown({x:y,y:w})}),onPointerUp:en(e.onPointerUp,l.onThumbPointerUp)}))}),Mw="ScrollAreaCorner",Nk=g.exports.forwardRef((e,t)=>{const r=yt(Mw,e.__scopeScrollArea),n=Boolean(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?g.exports.createElement(zk,de({},e,{ref:t})):null}),zk=g.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=yt(Mw,r),[i,l]=g.exports.useState(0),[a,s]=g.exports.useState(0),u=Boolean(i&&a);return Xn(o.scrollbarX,()=>{var c;const f=((c=o.scrollbarX)===null||c===void 0?void 0:c.offsetHeight)||0;o.onCornerHeightChange(f),s(f)}),Xn(o.scrollbarY,()=>{var c;const f=((c=o.scrollbarY)===null||c===void 0?void 0:c.offsetWidth)||0;o.onCornerWidthChange(f),l(f)}),u?g.exports.createElement(Ai.div,de({},n,{ref:t,style:{width:i,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Ca(e){return e?parseInt(e,10):0}function jw(e,t){const r=e/t;return isNaN(r)?0:r}function iu(e){const t=jw(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Dk(e,t,r,n="ltr"){const o=iu(r),i=o/2,l=t||i,a=o-l,s=r.scrollbar.paddingStart+l,u=r.scrollbar.size-r.scrollbar.paddingEnd-a,c=r.content-r.viewport,f=n==="ltr"?[0,c]:[c*-1,0];return Lw([s,u],f)(e)}function jm(e,t,r="ltr"){const n=iu(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,a=i-n,s=r==="ltr"?[0,l]:[l*-1,0],u=yk(e,s);return Lw([0,l],[0,a])(u)}function Lw(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 Fw(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},l=r.left!==i.left,a=r.top!==i.top;(l||a)&&t(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function lu(e,t){const r=Ur(e),n=g.exports.useRef(0);return g.exports.useEffect(()=>()=>window.clearTimeout(n.current),[]),g.exports.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Xn(e,t){const r=Ur(t);pf(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}const Mk=Sk,jk=xk,Lm=Pk,Fm=Rk,Lk=Nk;var Fk=Q((e,{scrollbarSize:t,offsetScrollbars:r,scrollbarHovered:n,hidden:o},i)=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:r?t:void 0},scrollbar:{display:o?"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],[`& .${i("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:i("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:o?"none":void 0,"&::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:o?"none":void 0}})),Ak=Fk,Vk=Object.defineProperty,Hk=Object.defineProperties,Bk=Object.getOwnPropertyDescriptors,Ea=Object.getOwnPropertySymbols,Aw=Object.prototype.hasOwnProperty,Vw=Object.prototype.propertyIsEnumerable,Am=(e,t,r)=>t in e?Vk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hw=(e,t)=>{for(var r in t||(t={}))Aw.call(t,r)&&Am(e,r,t[r]);if(Ea)for(var r of Ea(t))Vw.call(t,r)&&Am(e,r,t[r]);return e},Wk=(e,t)=>Hk(e,Bk(t)),Bw=(e,t)=>{var r={};for(var n in e)Aw.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&&Vw.call(e,n)&&(r[n]=e[n]);return r};const Ww={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},au=g.exports.forwardRef((e,t)=>{const r=ee("ScrollArea",Ww,e),{children:n,className:o,classNames:i,styles:l,scrollbarSize:a,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:y}=r,w=Bw(r,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled"]),[v,m]=g.exports.useState(!1),h=at(),{classes:_,cx:b}=Ak({scrollbarSize:a,offsetScrollbars:f,scrollbarHovered:v,hidden:u==="never"},{name:"ScrollArea",classNames:i,styles:l,unstyled:y});return S(Mk,{type:u==="never"?"always":u,scrollHideDelay:s,dir:c||h.dir,ref:t,asChild:!0,children:U(K,{...Hw({className:b(_.root,o)},w),children:[S(jk,{className:_.viewport,ref:d,onScroll:typeof p=="function"?({currentTarget:O})=>p({x:O.scrollLeft,y:O.scrollTop}):void 0,children:n}),S(Lm,{orientation:"horizontal",className:_.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:S(Fm,{className:_.thumb})}),S(Lm,{orientation:"vertical",className:_.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:S(Fm,{className:_.thumb})}),S(Lk,{className:_.corner})]})})}),Uw=g.exports.forwardRef((e,t)=>{const r=ee("ScrollAreaAutosize",Ww,e),{maxHeight:n,children:o,classNames:i,styles:l,scrollbarSize:a,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:y,sx:w}=r,v=Bw(r,["maxHeight","children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx"]);return E.createElement(K,Wk(Hw({},v),{ref:t,sx:[{display:"flex",maxHeight:n},...Si(w)]}),E.createElement(K,{sx:{display:"flex",flexDirection:"column",flex:1}},E.createElement(au,{classNames:i,styles:l,scrollHideDelay:s,scrollbarSize:a,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:y},o)))});Uw.displayName="@mantine/core/ScrollAreaAutosize";au.displayName="@mantine/core/ScrollArea";au.Autosize=Uw;const Uk=au;var Gk=Object.defineProperty,Yk=Object.defineProperties,Xk=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,Gw=Object.prototype.hasOwnProperty,Yw=Object.prototype.propertyIsEnumerable,Vm=(e,t,r)=>t in e?Gk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hm=(e,t)=>{for(var r in t||(t={}))Gw.call(t,r)&&Vm(e,r,t[r]);if(ka)for(var r of ka(t))Yw.call(t,r)&&Vm(e,r,t[r]);return e},Kk=(e,t)=>Yk(e,Xk(t)),qk=(e,t)=>{var r={};for(var n in e)Gw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ka)for(var n of ka(e))t.indexOf(n)<0&&Yw.call(e,n)&&(r[n]=e[n]);return r};const Wd=g.exports.forwardRef((e,t)=>{var r=e,{style:n}=r,o=qk(r,["style"]);return S(Uk,{...Kk(Hm({},o),{style:Hm({width:"100%"},n),viewportRef:t}),children:o.children})});Wd.displayName="@mantine/core/SelectScrollArea";function ao(e){return e.split("-")[0]}function su(e){return e.split("-")[1]}function uu(e){return["top","bottom"].includes(ao(e))?"x":"y"}function Xw(e){return e==="y"?"height":"width"}function Bm(e,t,r){let{reference:n,floating:o}=e;const i=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2,a=uu(t),s=Xw(a),u=n[s]/2-o[s]/2,c=ao(t),f=a==="x";let d;switch(c){case"top":d={x:i,y:n.y-o.height};break;case"bottom":d={x:i,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:l};break;case"left":d={x:n.x-o.width,y:l};break;default:d={x:n.x,y:n.y}}switch(su(t)){case"start":d[a]-=u*(r&&f?-1:1);break;case"end":d[a]+=u*(r&&f?-1:1);break}return d}const Qk=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=await(l.isRTL==null?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:c}=Bm(s,n,a),f=n,d={},p=0;for(let y=0;yt3[t])}function r3(e,t,r){r===void 0&&(r=!1);const n=su(e),o=uu(e),i=Xw(o);let l=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ia(l)),{main:l,cross:Ia(l)}}const n3={start:"end",end:"start"};function Um(e){return e.replace(/start|end/g,t=>n3[t])}function o3(e){const t=Ia(e);return[Um(e),t,Um(t)]}const Kw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:o,rects:i,initialPlacement:l,platform:a,elements:s}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...y}=e,w=ao(n),m=f||(w===l||!p?[Ia(l)]:o3(l)),h=[l,...m],_=await Ud(t,y),b=[];let O=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&b.push(_[w]),c){const{main:C,cross:I}=r3(n,i,await(a.isRTL==null?void 0:a.isRTL(s.floating)));b.push(_[C],_[I])}if(O=[...O,{placement:n,overflows:b}],!b.every(C=>C<=0)){var x,P;const C=((x=(P=o.flip)==null?void 0:P.index)!=null?x:0)+1,I=h[C];if(I)return{data:{index:C,overflows:O},reset:{placement:I}};let z="bottom";switch(d){case"bestFit":{var $;const D=($=O.map(j=>[j,j.overflows.filter(B=>B>0).reduce((B,V)=>B+V,0)]).sort((j,B)=>j[1]-B[1])[0])==null?void 0:$[0].placement;D&&(z=D);break}case"initialPlacement":z=l;break}if(n!==z)return{reset:{placement:z}}}return{}}}};async function i3(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),l=ao(r),a=su(r),s=uu(r)==="x",u=["left","top"].includes(l)?-1:1,c=i&&s?-1:1,f=typeof t=="function"?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof y=="number"&&(p=a==="end"?y*-1:y),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const qw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await i3(t,e);return{x:r+o.x,y:n+o.y,data:o}}}};function l3(e){return e==="x"?"y":"x"}const Gd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:v=>{let{x:m,y:h}=v;return{x:m,y:h}}},...s}=e,u={x:r,y:n},c=await Ud(t,s),f=uu(ao(o)),d=l3(f);let p=u[f],y=u[d];if(i){const v=f==="y"?"top":"left",m=f==="y"?"bottom":"right",h=p+c[v],_=p-c[m];p=Wm(h,p,_)}if(l){const v=d==="y"?"top":"left",m=d==="y"?"bottom":"right",h=y+c[v],_=y-c[m];y=Wm(h,y,_)}const w=a.fn({...t,[f]:p,[d]:y});return{...w,data:{x:w.x-r,y:w.y-n}}}}},a3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:l,...a}=e,s=await Ud(t,a),u=ao(r),c=su(r);let f,d;u==="top"||u==="bottom"?(f=u,d=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(d=u,f=c==="end"?"top":"bottom");const p=Br(s.left,0),y=Br(s.right,0),w=Br(s.top,0),v=Br(s.bottom,0),m={availableHeight:n.floating.height-(["left","right"].includes(r)?2*(w!==0||v!==0?w+v:Br(s.top,s.bottom)):s[f]),availableWidth:n.floating.width-(["top","bottom"].includes(r)?2*(p!==0||y!==0?p+y:Br(s.left,s.right)):s[d])},h=await o.getDimensions(i.floating);l?.({...t,...m});const _=await o.getDimensions(i.floating);return h.width!==_.width||h.height!==_.height?{reset:{rects:!0}}:{}}}};function Qw(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function rr(e){if(e==null)return window;if(!Qw(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hi(e){return rr(e).getComputedStyle(e)}function Qt(e){return Qw(e)?"":e?(e.nodeName||"").toLowerCase():""}function Zw(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Dt(e){return e instanceof rr(e).HTMLElement}function Rr(e){return e instanceof rr(e).Element}function s3(e){return e instanceof rr(e).Node}function Yd(e){if(typeof ShadowRoot>"u")return!1;const t=rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function cu(e){const{overflow:t,overflowX:r,overflowY:n}=Hi(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function u3(e){return["table","td","th"].includes(Qt(e))}function Jw(e){const t=/firefox/i.test(Zw()),r=Hi(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}function e_(){return!/^((?!chrome|android).)*safari/i.test(Zw())}const Gm=Math.min,oi=Math.max,Na=Math.round;function Zt(e,t,r){var n,o,i,l;t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect();let s=1,u=1;t&&Dt(e)&&(s=e.offsetWidth>0&&Na(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Na(a.height)/e.offsetHeight||1);const c=Rr(e)?rr(e):window,f=!e_()&&r,d=(a.left+(f&&(n=(o=c.visualViewport)==null?void 0:o.offsetLeft)!=null?n:0))/s,p=(a.top+(f&&(i=(l=c.visualViewport)==null?void 0:l.offsetTop)!=null?i:0))/u,y=a.width/s,w=a.height/u;return{width:y,height:w,top:p,right:d+y,bottom:p+w,left:d,x:d,y:p}}function Dr(e){return((s3(e)?e.ownerDocument:e.document)||window.document).documentElement}function fu(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function t_(e){return Zt(Dr(e)).left+fu(e).scrollLeft}function c3(e){const t=Zt(e);return Na(t.width)!==e.offsetWidth||Na(t.height)!==e.offsetHeight}function f3(e,t,r){const n=Dt(t),o=Dr(t),i=Zt(e,n&&c3(t),r==="fixed");let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&r!=="fixed")if((Qt(t)!=="body"||cu(o))&&(l=fu(t)),Dt(t)){const s=Zt(t,!0);a.x=s.x+t.clientLeft,a.y=s.y+t.clientTop}else o&&(a.x=t_(o));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function r_(e){return Qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Yd(e)?e.host:null)||Dr(e)}function Ym(e){return!Dt(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function d3(e){let t=r_(e);for(Yd(t)&&(t=t.host);Dt(t)&&!["html","body"].includes(Qt(t));){if(Jw(t))return t;t=t.parentNode}return null}function mf(e){const t=rr(e);let r=Ym(e);for(;r&&u3(r)&&getComputedStyle(r).position==="static";)r=Ym(r);return r&&(Qt(r)==="html"||Qt(r)==="body"&&getComputedStyle(r).position==="static"&&!Jw(r))?t:r||d3(e)||t}function Xm(e){if(Dt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Zt(e);return{width:t.width,height:t.height}}function p3(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Dt(r),i=Dr(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((o||!o&&n!=="fixed")&&((Qt(r)!=="body"||cu(i))&&(l=fu(r)),Dt(r))){const s=Zt(r,!0);a.x=s.x+r.clientLeft,a.y=s.y+r.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}}function g3(e,t){const r=rr(e),n=Dr(e),o=r.visualViewport;let i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const u=e_();(u||!u&&t==="fixed")&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}function m3(e){var t;const r=Dr(e),n=fu(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=oi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=oi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let a=-n.scrollLeft+t_(e);const s=-n.scrollTop;return Hi(o||r).direction==="rtl"&&(a+=oi(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}function n_(e){const t=r_(e);return["html","body","#document"].includes(Qt(t))?e.ownerDocument.body:Dt(t)&&cu(t)?t:n_(t)}function ln(e,t){var r;t===void 0&&(t=[]);const n=n_(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=rr(n),l=o?[i].concat(i.visualViewport||[],cu(n)?n:[]):n,a=t.concat(l);return o?a:a.concat(ln(l))}function v3(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Yd(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function h3(e,t){const r=Zt(e,!1,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function Km(e,t,r){return t==="viewport"?Ra(g3(e,r)):Rr(t)?h3(t,r):Ra(m3(Dr(e)))}function y3(e){const t=ln(e),n=["absolute","fixed"].includes(Hi(e).position)&&Dt(e)?mf(e):e;return Rr(n)?t.filter(o=>Rr(o)&&v3(o,n)&&Qt(o)!=="body"):[]}function w3(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const l=[...r==="clippingAncestors"?y3(t):[].concat(r),n],a=l[0],s=l.reduce((u,c)=>{const f=Km(t,c,o);return u.top=oi(f.top,u.top),u.right=Gm(f.right,u.right),u.bottom=Gm(f.bottom,u.bottom),u.left=oi(f.left,u.left),u},Km(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}const _3={getClippingRect:w3,convertOffsetParentRelativeRectToViewportRelativeRect:p3,isElement:Rr,getDimensions:Xm,getOffsetParent:mf,getDocumentElement:Dr,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:f3(t,mf(r),n),floating:{...Xm(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Hi(e).direction==="rtl"};function S3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=n,s=o&&!a,u=i&&!a,c=s||u?[...Rr(e)?ln(e):[],...ln(t)]:[];c.forEach(w=>{s&&w.addEventListener("scroll",r,{passive:!0}),u&&w.addEventListener("resize",r)});let f=null;if(l){let w=!0;f=new ResizeObserver(()=>{w||r(),w=!1}),Rr(e)&&!a&&f.observe(e),f.observe(t)}let d,p=a?Zt(e):null;a&&y();function y(){const w=Zt(e);p&&(w.x!==p.x||w.y!==p.y||w.width!==p.width||w.height!==p.height)&&r(),p=w,d=requestAnimationFrame(y)}return r(),()=>{var w;c.forEach(v=>{s&&v.removeEventListener("scroll",r),u&&v.removeEventListener("resize",r)}),(w=f)==null||w.disconnect(),f=null,a&&cancelAnimationFrame(d)}}const b3=(e,t,r)=>Qk(e,t,{platform:_3,...r});var vf=typeof document<"u"?g.exports.useLayoutEffect:g.exports.useEffect;function hf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!hf(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!hf(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function x3(e){const t=g.exports.useRef(e);return vf(()=>{t.current=e}),t}function P3(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:o}=e===void 0?{}:e;const i=g.exports.useRef(null),l=g.exports.useRef(null),a=x3(o),s=g.exports.useRef(null),[u,c]=g.exports.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[f,d]=g.exports.useState(t);hf(f?.map(_=>{let{options:b}=_;return b}),t?.map(_=>{let{options:b}=_;return b}))||d(t);const p=g.exports.useCallback(()=>{!i.current||!l.current||b3(i.current,l.current,{middleware:f,placement:r,strategy:n}).then(_=>{y.current&&Ei.exports.flushSync(()=>{c(_)})})},[f,r,n]);vf(()=>{y.current&&p()},[p]);const y=g.exports.useRef(!1);vf(()=>(y.current=!0,()=>{y.current=!1}),[]);const w=g.exports.useCallback(()=>{if(typeof s.current=="function"&&(s.current(),s.current=null),i.current&&l.current)if(a.current){const _=a.current(i.current,l.current,p);s.current=_}else p()},[p,a]),v=g.exports.useCallback(_=>{i.current=_,w()},[w]),m=g.exports.useCallback(_=>{l.current=_,w()},[w]),h=g.exports.useMemo(()=>({reference:i,floating:l}),[]);return g.exports.useMemo(()=>({...u,update:p,refs:h,reference:v,floating:m}),[u,p,h,v,m])}var Kn=typeof document<"u"?g.exports.useLayoutEffect:g.exports.useEffect;function $3(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}let Ju=!1,O3=0;const qm=()=>"floating-ui-"+O3++;function C3(){const[e,t]=g.exports.useState(()=>Ju?qm():void 0);return Kn(()=>{e==null&&t(qm())},[]),g.exports.useEffect(()=>{Ju||(Ju=!0)},[]),e}const Qm=li["useId".toString()],Zm=Qm??C3,E3=g.exports.createContext(null),k3=g.exports.createContext(null),R3=()=>{var e,t;return(e=(t=g.exports.useContext(E3))==null?void 0:t.id)!=null?e:null},Xd=()=>g.exports.useContext(k3);function Ut(e){var t;return(t=e?.ownerDocument)!=null?t:document}function o_(e){var t;return(t=Ut(e).defaultView)!=null?t:window}function za(e){return e?e instanceof o_(e).Element:!1}function i_(e){return e?e instanceof o_(e).HTMLElement:!1}function Kd(e){let{open:t=!1,onOpenChange:r=()=>{},whileElementsMounted:n,placement:o,middleware:i,strategy:l,nodeId:a}=e===void 0?{}:e;const s=Xd(),u=g.exports.useRef(null),c=g.exports.useRef({}),f=g.exports.useState(()=>$3())[0],d=P3({placement:o,middleware:i,strategy:l,whileElementsMounted:n}),p=g.exports.useMemo(()=>({...d.refs,domReference:u}),[d.refs]),y=g.exports.useMemo(()=>({...d,refs:p,dataRef:c,nodeId:a,events:f,open:t,onOpenChange:r}),[d,a,f,t,r,p]);Kn(()=>{const m=s?.nodesRef.current.find(h=>h.id===a);m&&(m.context=y)});const{reference:w}=d,v=g.exports.useCallback(m=>{(za(m)||m===null)&&(y.refs.domReference.current=m),w(m)},[w,y.refs]);return g.exports.useMemo(()=>({...d,context:y,refs:p,reference:v}),[d,p,y,v])}function ec(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(l=>{let[a,s]=l;if(a.indexOf("on")===0){if(n.has(a)||n.set(a,[]),typeof s=="function"){var u;(u=n.get(a))==null||u.push(s)}o[a]=function(){for(var c,f=arguments.length,d=new Array(f),p=0;py(...d))}}else o[a]=s}),o),{})}}const I3=function(e){return e===void 0&&(e=[]),{getReferenceProps:t=>ec(t,e,"reference"),getFloatingProps:t=>ec(t,e,"floating"),getItemProps:t=>ec(t,e,"item")}};function N3(e,t){var r;let n=(r=e.filter(l=>{var a;return l.parentId===t&&((a=l.context)==null?void 0:a.open)}))!=null?r:[],o=n;for(;o.length;){var i;o=(i=e.filter(l=>{var a;return(a=o)==null?void 0:a.some(s=>{var u;return l.parentId===s.id&&((u=l.context)==null?void 0:u.open)})}))!=null?i:[],n=n.concat(o)}return n}function l_(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 Da(e){const t=g.exports.useRef(e);return Kn(()=>{t.current=e}),t}function z3(e){const t=g.exports.useRef();return Kn(()=>{t.current=e},[e]),t.current}function Vl(e,t,r){return r&&r!=="mouse"?0:typeof e=="number"?e:e?.[t]}const D3=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:l=0}=t===void 0?{}:t;const{open:a,onOpenChange:s,dataRef:u,events:c,refs:f}=e,d=Xd(),p=R3(),y=Da(s),w=Da(o),v=z3(a),m=g.exports.useRef(),h=g.exports.useRef(),_=g.exports.useRef(),b=g.exports.useRef(),O=g.exports.useRef(!0),x=g.exports.useRef(!1);g.exports.useEffect(()=>{if(!r)return;function z(){clearTimeout(h.current),clearTimeout(b.current),O.current=!0}return c.on("dismiss",z),()=>{c.off("dismiss",z)}},[r,c,f]),g.exports.useEffect(()=>{if(!r||!w.current)return;function z(){var j;(j=u.current.openEvent)!=null&&j.type.includes("mouse")&&y.current(!1)}const D=Ut(f.floating.current).documentElement;return D.addEventListener("mouseleave",z),()=>{D.removeEventListener("mouseleave",z)}},[f,y,r,w,u]);const P=g.exports.useCallback(function(z){z===void 0&&(z=!0);const D=Vl(n,"close",m.current);D&&!_.current?(clearTimeout(h.current),h.current=setTimeout(()=>y.current(!1),D)):z&&(clearTimeout(h.current),y.current(!1))},[n,y]),$=g.exports.useCallback(()=>{_.current&&(Ut(f.floating.current).removeEventListener("pointermove",_.current),_.current=void 0)},[f]),C=g.exports.useCallback(()=>{Ut(f.floating.current).body.style.pointerEvents="",x.current=!1},[f]);if(g.exports.useEffect(()=>{if(!r)return;function z(W){if(clearTimeout(h.current),O.current=!1,a||i&&m.current!=="mouse"||l>0&&Vl(n,"open")===0)return;u.current.openEvent=W;const ne=Vl(n,"open",m.current);ne?h.current=setTimeout(()=>{y.current(!0)},ne):y.current(!0)}function D(W){var ne,se;if(((ne=u.current.openEvent)==null?void 0:ne.type)==="click"||((se=u.current.openEvent)==null?void 0:se.type)==="pointerdown")return;const ie=Ut(f.floating.current);if(clearTimeout(b.current),w.current){clearTimeout(h.current),_.current&&ie.removeEventListener("pointermove",_.current),_.current=w.current({...e,tree:d,x:W.clientX,y:W.clientY,onClose(){$(),P()}}),ie.addEventListener("pointermove",_.current);return}P()}function j(W){w.current==null||w.current({...e,tree:d,x:W.clientX,y:W.clientY,leave:!0,onClose(){$(),P()}})(W)}const B=f.floating.current,V=f.domReference.current;if(za(V))return a&&V.addEventListener("mouseleave",j),B?.addEventListener("mouseleave",j),V.addEventListener("mousemove",z,{once:!0}),V.addEventListener("mouseenter",z),V.addEventListener("mouseleave",D),()=>{a&&V.removeEventListener("mouseleave",j),B?.removeEventListener("mouseleave",j),V.removeEventListener("mousemove",z),V.removeEventListener("mouseenter",z),V.removeEventListener("mouseleave",D)}},[r,P,e,n,w,u,i,y,a,d,l,$,f]),Kn(()=>{if(!!r&&a&&w.current){Ut(f.floating.current).body.style.pointerEvents="none",x.current=!0;const j=f.domReference.current,B=f.floating.current;if(i_(j)&&B){var z,D;const V=d==null||(z=d.nodesRef.current.find(W=>W.id===p))==null||(D=z.context)==null?void 0:D.refs.floating.current;return V&&(V.style.pointerEvents=""),j.style.pointerEvents="auto",B.style.pointerEvents="auto",()=>{j.style.pointerEvents="",B.style.pointerEvents=""}}}},[r,a,p,f,d,w,u]),Kn(()=>{v&&!a&&(m.current=void 0,$(),C())}),g.exports.useEffect(()=>()=>{$(),clearTimeout(h.current),clearTimeout(b.current),x.current&&C()},[$,C]),!r)return{};function I(z){m.current=z.pointerType}return{reference:{onPointerDown:I,onPointerEnter:I,onMouseMove(){a||l===0||(clearTimeout(b.current),b.current=setTimeout(()=>{O.current||s(!0)},l))}},floating:{onMouseEnter(){clearTimeout(h.current)},onMouseLeave(){P(!1)}}}},a_=g.exports.createContext({delay:1e3,initialDelay:1e3,currentId:null,setCurrentId:()=>{},setState:()=>{}}),s_=()=>g.exports.useContext(a_),T3=e=>{let{children:t,delay:r}=e;const[n,o]=g.exports.useState({delay:r,initialDelay:r,currentId:null}),i=g.exports.useCallback(l=>{o(a=>({...a,currentId:l}))},[]);return g.exports.createElement(a_.Provider,{value:g.exports.useMemo(()=>({...n,setState:o,setCurrentId:i}),[n,o,i])},t)},M3=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,initialDelay:l,setState:a}=s_(),s=Da(n);g.exports.useEffect(()=>{i&&s.current&&(a(u=>({...u,delay:{open:1,close:Vl(l,"close")}})),i!==o&&s.current(!1))},[o,s,a,i,l]),g.exports.useEffect(()=>{!r&&i===o&&s.current&&(s.current(!1),a(u=>({...u,delay:l,currentId:null})))},[r,a,i,o,s,l])},j3=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=Zm(),l=Zm(),a={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:a}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:l}},floating:{...a,...o==="menu"&&{"aria-labelledby":l}}}:{}};function tc(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const L3=function(e,t){let{open:r,onOpenChange:n,refs:o,events:i,nodeId:l}=e,{enabled:a=!0,escapeKey:s=!0,outsidePointerDown:u=!0,referencePointerDown:c=!1,ancestorScroll:f=!1,bubbles:d=!0}=t===void 0?{}:t;const p=Xd(),y=Da(n),w=g.exports.useCallback(()=>{var v;return(v=o.floating.current)==null?void 0:v.contains(l_(Ut(o.floating.current)))},[o]);return g.exports.useEffect(()=>{if(!r||!a)return;function v(O){if(O.key==="Escape"){if(!d&&!w())return;i.emit("dismiss"),y.current(!1),i_(o.domReference.current)&&o.domReference.current.focus()}}function m(O){const x=p&&N3(p.nodesRef.current,l).some(P=>{var $;return tc(O,($=P.context)==null?void 0:$.refs.floating.current)});tc(O,o.floating.current)||tc(O,o.domReference.current)||x||!d&&!w()||(i.emit("dismiss"),y.current(!1))}function h(){y.current(!1)}const _=Ut(o.floating.current);s&&_.addEventListener("keydown",v),u&&_.addEventListener("mousedown",m);const b=(f?[...za(o.reference.current)?ln(o.reference.current):[],...za(o.floating.current)?ln(o.floating.current):[]]:[]).filter(O=>{var x;return O!==((x=_.defaultView)==null?void 0:x.visualViewport)});return b.forEach(O=>O.addEventListener("scroll",h,{passive:!0})),()=>{s&&_.removeEventListener("keydown",v),u&&_.removeEventListener("mousedown",m),b.forEach(O=>O.removeEventListener("scroll",h))}},[s,u,i,p,l,r,y,f,a,d,w,o]),a?{reference:{onPointerDown(){c&&(i.emit("dismiss"),n(!1))}}}:{}},F3=function(e,t){let{open:r,onOpenChange:n,dataRef:o,refs:i,events:l}=e,{enabled:a=!0,keyboardOnly:s=!0}=t===void 0?{}:t;const u=g.exports.useRef(""),c=g.exports.useRef(!1);return g.exports.useEffect(()=>{var f;if(!a)return;const d=Ut(i.floating.current),p=(f=d.defaultView)!=null?f:window;function y(){u.current&&i.domReference.current===l_(d)&&(c.current=!r)}function w(){setTimeout(()=>{c.current=!1,u.current=""})}return p.addEventListener("focus",w),p.addEventListener("blur",y),()=>{p.removeEventListener("focus",w),p.removeEventListener("blur",y)}},[i,r,a]),g.exports.useEffect(()=>{if(!a)return;function f(){c.current=!0}return l.on("dismiss",f),()=>{l.off("dismiss",f)}},[l,a]),a?{reference:{onPointerDown(f){let{pointerType:d}=f;u.current=d,c.current=!!(d&&s)},onFocus(f){var d,p,y;c.current||f.type==="focus"&&((d=o.current.openEvent)==null?void 0:d.type)==="mousedown"&&(p=i.domReference.current)!=null&&p.contains((y=o.current.openEvent)==null?void 0:y.target)||(o.current.openEvent=f.nativeEvent,n(!0))},onBlur(f){var d,p;const y=f.relatedTarget;(d=i.floating.current)!=null&&d.contains(y)||(p=i.domReference.current)!=null&&p.contains(y)||(c.current=!1,n(!1))}}}:{}};function u_({opened:e,floating:t,positionDependencies:r}){const[n,o]=g.exports.useState(0);g.exports.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return S3(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference,t.refs.floating,e,n]),kr(()=>{t.update()},r),kr(()=>{o(i=>i+1)},[e])}function A3(e){const t=[qw(e.offset)];return e.middlewares.shift&&t.push(Gd()),e.middlewares.flip&&t.push(Kw()),t}function V3(e){const[t,r]=Li({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=()=>{var l;(l=e.onClose)==null||l.call(e),r(!1)},o=()=>{var l,a;t?((l=e.onClose)==null||l.call(e),r(!1)):((a=e.onOpen)==null||a.call(e),r(!0))},i=Kd({placement:e.position,middleware:[...A3(e),...e.width==="target"?[a3({apply({rects:l}){var a,s;Object.assign((s=(a=i.refs.floating.current)==null?void 0:a.style)!=null?s:{},{width:`${l.reference.width}px`})}})]:[]]});return u_({opened:e.opened,positionDependencies:e.positionDependencies,floating:i}),kr(()=>{var l;(l=e.onPositionChange)==null||l.call(e,i.placement)},[i.placement]),{floating:i,controlled:typeof e.opened=="boolean",opened:t,onClose:n,onToggle:o}}const c_={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"},[H3,f_]=Rd(c_.context);var B3=Object.defineProperty,W3=Object.defineProperties,U3=Object.getOwnPropertyDescriptors,Ta=Object.getOwnPropertySymbols,d_=Object.prototype.hasOwnProperty,p_=Object.prototype.propertyIsEnumerable,Jm=(e,t,r)=>t in e?B3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hl=(e,t)=>{for(var r in t||(t={}))d_.call(t,r)&&Jm(e,r,t[r]);if(Ta)for(var r of Ta(t))p_.call(t,r)&&Jm(e,r,t[r]);return e},G3=(e,t)=>W3(e,U3(t)),Y3=(e,t)=>{var r={};for(var n in e)d_.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&&p_.call(e,n)&&(r[n]=e[n]);return r};const g_=g.exports.forwardRef((e,t)=>{var r=e,{children:n,refProp:o="ref",popupType:i="dialog"}=r,l=Y3(r,["children","refProp","popupType"]);if(!Ti(n))throw new Error(c_.children);const a=l,s=f_(),u=pn(s.reference,n.ref,t),c=s.withRoles?{"aria-haspopup":i,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return g.exports.cloneElement(n,hl(G3(hl(hl(hl({},a),c),s.targetProps),{className:h1(s.targetProps.className,a.className,n.props.className),[o]:u}),s.controlled?null:{onClick:s.onToggle}))});g_.displayName="@mantine/core/PopoverTarget";var X3=Q((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}})),K3=X3,q3=Object.defineProperty,ev=Object.getOwnPropertySymbols,Q3=Object.prototype.hasOwnProperty,Z3=Object.prototype.propertyIsEnumerable,tv=(e,t,r)=>t in e?q3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wn=(e,t)=>{for(var r in t||(t={}))Q3.call(t,r)&&tv(e,r,t[r]);if(ev)for(var r of ev(t))Z3.call(t,r)&&tv(e,r,t[r]);return e};const rv={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function m_({transition:e,state:t,duration:r,timingFunction:n}){const o={transitionDuration:`${r}ms`,transitionTimingFunction:n};return typeof e=="string"?e in fl?wn(wn(wn({transitionProperty:fl[e].transitionProperty},o),fl[e].common),fl[e][rv[t]]):null:wn(wn(wn({transitionProperty:e.transitionProperty},o),e.common),e[rv[t]])}function v_({duration:e,exitDuration:t,timingFunction:r,mounted:n,onEnter:o,onExit:i,onEntered:l,onExited:a}){const s=at(),u=K1(),c=s.respectReducedMotion?u:!1,[f,d]=g.exports.useState(n?"entered":"exited");let p=c?0:e;const y=g.exports.useRef(-1),w=v=>{const m=v?o:i,h=v?l:a;if(d(v?"pre-entering":"pre-exiting"),window.clearTimeout(y.current),p=c?0:v?e:t,p===0)typeof m=="function"&&m(),typeof h=="function"&&h(),d(v?"entered":"exited");else{const _=window.setTimeout(()=>{typeof m=="function"&&m(),d(v?"entering":"exiting")},10);y.current=window.setTimeout(()=>{window.clearTimeout(_),typeof h=="function"&&h(),d(v?"entered":"exited")},p)}};return kr(()=>{w(n)},[n]),g.exports.useEffect(()=>()=>window.clearTimeout(y.current),[]),{transitionDuration:p,transitionStatus:f,transitionTimingFunction:r||s.transitionTimingFunction}}function du({transition:e,duration:t=250,exitDuration:r=t,mounted:n,children:o,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u}){const{transitionDuration:c,transitionStatus:f,transitionTimingFunction:d}=v_({mounted:n,exitDuration:r,duration:t,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u});return c===0?n?E.createElement(E.Fragment,null,o({})):null:f==="exited"?null:E.createElement(E.Fragment,null,o(m_({transition:e,duration:c,state:f,timingFunction:d})))}du.displayName="@mantine/core/Transition";function h_({children:e,active:t=!0,refProp:r="ref"}){const n=Y1(t),o=pn(n,e?.ref);return Ti(e)?g.exports.cloneElement(e,{[r]:o}):e}h_.displayName="@mantine/core/FocusTrap";var J3=Object.defineProperty,e5=Object.defineProperties,t5=Object.getOwnPropertyDescriptors,nv=Object.getOwnPropertySymbols,r5=Object.prototype.hasOwnProperty,n5=Object.prototype.propertyIsEnumerable,ov=(e,t,r)=>t in e?J3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t||(t={}))r5.call(t,r)&&ov(e,r,t[r]);if(nv)for(var r of nv(t))n5.call(t,r)&&ov(e,r,t[r]);return e},yl=(e,t)=>e5(e,t5(t));function iv(e,t,r){return e==="center"?{top:`calc(50% - ${t/2}px)`}:e==="end"?{bottom:r}:e==="start"?{top:r}:{}}function lv(e,t,r,n){return e==="center"?{left:`calc(50% - ${t/2}px)`}:e==="end"?{[n==="ltr"?"right":"left"]:r}:e==="start"?{[n==="ltr"?"left":"right"]:r}:{}}function o5({position:e,withBorder:t,arrowSize:r,arrowOffset:n,dir:o}){const[i,l="center"]=e.split("-"),a={width:r,height:r,transform:"rotate(45deg)",position:"absolute"},s=t?-r/2-1:-r/2;return i==="left"?yl(lr(lr({},a),iv(l,r,n)),{[o==="ltr"?"right":"left"]:s,[o==="ltr"?"borderLeft":"borderRight"]:0,borderBottom:0}):i==="right"?yl(lr(lr({},a),iv(l,r,n)),{[o==="ltr"?"left":"right"]:s,[o==="ltr"?"borderRight":"borderLeft"]:0,borderTop:0}):i==="top"?yl(lr(lr({},a),lv(l,r,n,o)),{bottom:s,borderTop:0,[o==="ltr"?"borderLeft":"borderRight"]:0}):i==="bottom"?yl(lr(lr({},a),lv(l,r,n,o)),{top:s,borderBottom:0,[o==="ltr"?"borderRight":"borderLeft"]:0}):{}}var i5=Object.defineProperty,l5=Object.defineProperties,a5=Object.getOwnPropertyDescriptors,Ma=Object.getOwnPropertySymbols,y_=Object.prototype.hasOwnProperty,w_=Object.prototype.propertyIsEnumerable,av=(e,t,r)=>t in e?i5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s5=(e,t)=>{for(var r in t||(t={}))y_.call(t,r)&&av(e,r,t[r]);if(Ma)for(var r of Ma(t))w_.call(t,r)&&av(e,r,t[r]);return e},u5=(e,t)=>l5(e,a5(t)),c5=(e,t)=>{var r={};for(var n in e)y_.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&&w_.call(e,n)&&(r[n]=e[n]);return r};function qd(e){var t=e,{withBorder:r,position:n,arrowSize:o,arrowOffset:i,visible:l}=t,a=c5(t,["withBorder","position","arrowSize","arrowOffset","visible"]);const s=at();return l?E.createElement("div",u5(s5({},a),{style:o5({withBorder:r,position:n,arrowSize:o,arrowOffset:i,dir:s.dir})})):null}qd.displayName="@mantine/core/FloatingArrow";var f5=Object.defineProperty,d5=Object.defineProperties,p5=Object.getOwnPropertyDescriptors,ja=Object.getOwnPropertySymbols,__=Object.prototype.hasOwnProperty,S_=Object.prototype.propertyIsEnumerable,sv=(e,t,r)=>t in e?f5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t)=>{for(var r in t||(t={}))__.call(t,r)&&sv(e,r,t[r]);if(ja)for(var r of ja(t))S_.call(t,r)&&sv(e,r,t[r]);return e},uv=(e,t)=>d5(e,p5(t)),g5=(e,t)=>{var r={};for(var n in e)__.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ja)for(var n of ja(e))t.indexOf(n)<0&&S_.call(e,n)&&(r[n]=e[n]);return r};function b_(e){var t=e,{style:r,className:n,children:o}=t,i=g5(t,["style","className","children"]);const{classNames:l,styles:a,unstyled:s,staticSelector:u}=dn(),c=f_(),{classes:f,cx:d}=K3({radius:c.radius,shadow:c.shadow},{name:u,classNames:l,styles:a,unstyled:s}),p=B1({opened:c.opened,shouldReturnFocus:!1}),y=c.withRoles?{"aria-labelledby":c.getTargetId(),id:c.getDropdownId(),role:"dialog"}:{};return E.createElement(Fi,{withinPortal:c.withinPortal},E.createElement(du,{mounted:c.opened,transition:c.transition,duration:c.transitionDuration,exitDuration:typeof c.exitTransitionDuration=="number"?c.exitTransitionDuration:c.transitionDuration},w=>{var v,m;return E.createElement(h_,{active:c.trapFocus},E.createElement(K,wl(uv(wl({},y),{tabIndex:-1,ref:c.floating,style:uv(wl(wl({},r),w),{zIndex:c.zIndex,top:(v=c.y)!=null?v:"",left:(m=c.x)!=null?m:"",width:c.width==="target"?void 0:c.width}),className:d(f.dropdown,n),onKeyDownCapture:R$(c.onClose,{active:c.closeOnEscape,onTrigger:p}),"data-position":c.placement}),i),o,E.createElement(qd,{visible:c.withArrow,withBorder:!0,position:c.placement,arrowSize:c.arrowSize,arrowOffset:c.arrowOffset,className:f.arrow})))}))}b_.displayName="@mantine/core/PopoverDropdown";function x_(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[r,n]=t.split("-"),o=r==="right"?"left":"right";return n===void 0?o:`${o}-${n}`}return t}var cv=Object.getOwnPropertySymbols,m5=Object.prototype.hasOwnProperty,v5=Object.prototype.propertyIsEnumerable,h5=(e,t)=>{var r={};for(var n in e)m5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cv)for(var n of cv(e))t.indexOf(n)<0&&v5.call(e,n)&&(r[n]=e[n]);return r};const y5={position:"bottom",offset:8,positionDependencies:[],transition:"fade",transitionDuration:150,middlewares:{flip:!0,shift:!0},arrowSize:7,arrowOffset:5,closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:io("popover"),__staticSelector:"Popover"};function nr(e){const t=ee("Popover",y5,e),{children:r,position:n,offset:o,onPositionChange:i,positionDependencies:l,opened:a,transition:s,transitionDuration:u,width:c,middlewares:f,withArrow:d,arrowSize:p,arrowOffset:y,unstyled:w,classNames:v,styles:m,closeOnClickOutside:h,withinPortal:_,closeOnEscape:b,clickOutsideEvents:O,trapFocus:x,onClose:P,onOpen:$,onChange:C,zIndex:I,radius:z,shadow:D,id:j,defaultOpened:B,exitTransitionDuration:V,__staticSelector:W,withRoles:ne}=t,se=h5(t,["children","position","offset","onPositionChange","positionDependencies","opened","transition","transitionDuration","width","middlewares","withArrow","arrowSize","arrowOffset","unstyled","classNames","styles","closeOnClickOutside","withinPortal","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","exitTransitionDuration","__staticSelector","withRoles"]),ie=lo(j),ze=at(),R=V3({middlewares:f,width:c,position:x_(ze.dir,n),offset:o+(d?p/2:0),onPositionChange:i,positionDependencies:l,opened:a,defaultOpened:B,onChange:C,onOpen:$,onClose:P});return YC(()=>h&&R.onClose(),O,[R.floating.refs.floating.current,R.floating.refs.reference.current]),E.createElement(A1,{classNames:v,styles:m,unstyled:w,staticSelector:W},E.createElement(H3,{value:{controlled:R.controlled,reference:R.floating.reference,floating:R.floating.floating,x:R.floating.x,y:R.floating.y,opened:R.opened,transition:s,transitionDuration:u,exitTransitionDuration:V,width:c,withArrow:d,arrowSize:p,arrowOffset:y,placement:R.floating.placement,trapFocus:x,withinPortal:_,zIndex:I,radius:z,shadow:D,closeOnEscape:b,onClose:R.onClose,onToggle:R.onToggle,getTargetId:()=>`${ie}-target`,getDropdownId:()=>`${ie}-dropdown`,withRoles:ne,targetProps:se}},r))}nr.Target=g_;nr.Dropdown=b_;nr.displayName="@mantine/core/Popover";var w5=Object.defineProperty,La=Object.getOwnPropertySymbols,P_=Object.prototype.hasOwnProperty,$_=Object.prototype.propertyIsEnumerable,fv=(e,t,r)=>t in e?w5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_5=(e,t)=>{for(var r in t||(t={}))P_.call(t,r)&&fv(e,r,t[r]);if(La)for(var r of La(t))$_.call(t,r)&&fv(e,r,t[r]);return e},S5=(e,t)=>{var r={};for(var n in e)P_.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&&$_.call(e,n)&&(r[n]=e[n]);return r};function b5(e){var t=e,{children:r,component:n="div",maxHeight:o=220,direction:i="column",id:l,innerRef:a}=t,s=S5(t,["children","component","maxHeight","direction","id","innerRef"]);return E.createElement(nr.Dropdown,_5({p:0,onMouseDown:u=>u.preventDefault()},s),E.createElement("div",{style:{maxHeight:o,display:"flex"}},E.createElement(K,{component:n||"div",id:`${l}-items`,"aria-labelledby":`${l}-label`,role:"listbox",onMouseDown:u=>u.preventDefault(),style:{flex:1,overflowY:n!==Wd?"auto":void 0},"data-combobox-popover":!0,ref:a},E.createElement("div",{style:{display:"flex",flexDirection:i,width:"100%",padding:4}},r))))}function ii({opened:e,transition:t="fade",transitionDuration:r=0,shadow:n,withinPortal:o,children:i,__staticSelector:l,onDirectionChange:a,switchDirectionOnFlip:s,zIndex:u,dropdownPosition:c,positionDependencies:f=[],classNames:d,styles:p,unstyled:y}){return E.createElement(nr,{unstyled:y,classNames:d,styles:p,width:"target",withRoles:!1,opened:e,middlewares:{flip:c==="flip",shift:!1},position:c==="flip"?"bottom":c,positionDependencies:f,zIndex:u,__staticSelector:l,withinPortal:o,transition:t,transitionDuration:r,shadow:n,onPositionChange:w=>s&&a?.(w==="top"?"column-reverse":"column")},i)}ii.Target=nr.Target;ii.Dropdown=b5;var x5=Object.defineProperty,P5=Object.defineProperties,$5=Object.getOwnPropertyDescriptors,Fa=Object.getOwnPropertySymbols,O_=Object.prototype.hasOwnProperty,C_=Object.prototype.propertyIsEnumerable,dv=(e,t,r)=>t in e?x5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rc=(e,t)=>{for(var r in t||(t={}))O_.call(t,r)&&dv(e,r,t[r]);if(Fa)for(var r of Fa(t))C_.call(t,r)&&dv(e,r,t[r]);return e},O5=(e,t)=>P5(e,$5(t)),C5=(e,t)=>{var r={};for(var n in e)O_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fa)for(var n of Fa(e))t.indexOf(n)<0&&C_.call(e,n)&&(r[n]=e[n]);return r};function E_(e,t,r){const n=ee(e,t,r),{label:o,description:i,error:l,required:a,classNames:s,styles:u,className:c,unstyled:f,__staticSelector:d,sx:p,errorProps:y,labelProps:w,descriptionProps:v,wrapperProps:m,id:h,size:_,style:b,inputContainer:O,inputWrapperOrder:x}=n,P=C5(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder"]),$=lo(h),{systemStyles:C,rest:I}=ru(P);return O5(rc({},I),{classNames:s,styles:u,unstyled:f,wrapperProps:rc(rc({label:o,description:i,error:l,required:a,classNames:s,className:c,__staticSelector:d,sx:p,errorProps:y,labelProps:w,descriptionProps:v,unstyled:f,styles:u,id:$,size:_,style:b,inputContainer:O,inputWrapperOrder:x},m),C),inputProps:{required:a,classNames:s,styles:u,unstyled:f,id:$,size:_,__staticSelector:d,invalid:!!l}})}var E5=Q((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}})),k5=E5,R5=Object.defineProperty,Aa=Object.getOwnPropertySymbols,k_=Object.prototype.hasOwnProperty,R_=Object.prototype.propertyIsEnumerable,pv=(e,t,r)=>t in e?R5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I5=(e,t)=>{for(var r in t||(t={}))k_.call(t,r)&&pv(e,r,t[r]);if(Aa)for(var r of Aa(t))R_.call(t,r)&&pv(e,r,t[r]);return e},N5=(e,t)=>{var r={};for(var n in e)k_.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&&R_.call(e,n)&&(r[n]=e[n]);return r};const Qd=g.exports.forwardRef((e,t)=>{var r=e,{labelElement:n="label",children:o,required:i,size:l="sm",classNames:a,styles:s,unstyled:u,className:c,htmlFor:f,__staticSelector:d}=r,p=N5(r,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector"]);const{classes:y,cx:w}=k5({size:l},{name:["InputWrapper",d],classNames:a,styles:s,unstyled:u});return U(K,{...I5({component:n,ref:t,className:w(y.label,c),htmlFor:n==="label"?f:void 0},p),children:[o,i&&S("span",{className:y.required,"aria-hidden":!0,children:" *"})]})});Qd.displayName="@mantine/core/InputLabel";var z5=Q((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"}})),D5=z5,T5=Object.defineProperty,Va=Object.getOwnPropertySymbols,I_=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable,gv=(e,t,r)=>t in e?T5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M5=(e,t)=>{for(var r in t||(t={}))I_.call(t,r)&&gv(e,r,t[r]);if(Va)for(var r of Va(t))N_.call(t,r)&&gv(e,r,t[r]);return e},j5=(e,t)=>{var r={};for(var n in e)I_.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&&N_.call(e,n)&&(r[n]=e[n]);return r};const Zd=g.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s="sm",__staticSelector:u}=r,c=j5(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]);const{classes:f,cx:d}=D5({size:s},{name:["InputWrapper",u],classNames:i,styles:l,unstyled:a});return S(mt,{...M5({className:d(f.error,o),ref:t,role:"alert"},c),children:n})});Zd.displayName="@mantine/core/InputError";var L5=Q((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"}})),F5=L5,A5=Object.defineProperty,Ha=Object.getOwnPropertySymbols,z_=Object.prototype.hasOwnProperty,D_=Object.prototype.propertyIsEnumerable,mv=(e,t,r)=>t in e?A5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V5=(e,t)=>{for(var r in t||(t={}))z_.call(t,r)&&mv(e,r,t[r]);if(Ha)for(var r of Ha(t))D_.call(t,r)&&mv(e,r,t[r]);return e},H5=(e,t)=>{var r={};for(var n in e)z_.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&&D_.call(e,n)&&(r[n]=e[n]);return r};const Jd=g.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s="sm",__staticSelector:u}=r,c=H5(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]);const{classes:f,cx:d}=F5({size:s},{name:["InputWrapper",u],classNames:i,styles:l,unstyled:a});return S(mt,{...V5({color:"dimmed",className:d(f.description,o),ref:t,unstyled:a},c),children:n})});Jd.displayName="@mantine/core/InputDescription";const T_=g.exports.createContext({offsetBottom:!1,offsetTop:!1}),B5=T_.Provider,W5=()=>g.exports.useContext(T_);function U5(e,{hasDescription:t,hasError:r}){const n=e.findIndex(s=>s==="input"),o=e[n-1],i=e[n+1];return{offsetBottom:t&&i==="description"||r&&i==="error",offsetTop:t&&o==="description"||r&&o==="error"}}var G5=Object.defineProperty,Y5=Object.defineProperties,X5=Object.getOwnPropertyDescriptors,vv=Object.getOwnPropertySymbols,K5=Object.prototype.hasOwnProperty,q5=Object.prototype.propertyIsEnumerable,hv=(e,t,r)=>t in e?G5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q5=(e,t)=>{for(var r in t||(t={}))K5.call(t,r)&&hv(e,r,t[r]);if(vv)for(var r of vv(t))q5.call(t,r)&&hv(e,r,t[r]);return e},Z5=(e,t)=>Y5(e,X5(t)),J5=Q(e=>({root:Z5(Q5({},e.fn.fontStyles()),{lineHeight:e.lineHeight})})),eR=J5,tR=Object.defineProperty,rR=Object.defineProperties,nR=Object.getOwnPropertyDescriptors,Ba=Object.getOwnPropertySymbols,M_=Object.prototype.hasOwnProperty,j_=Object.prototype.propertyIsEnumerable,yv=(e,t,r)=>t in e?tR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vr=(e,t)=>{for(var r in t||(t={}))M_.call(t,r)&&yv(e,r,t[r]);if(Ba)for(var r of Ba(t))j_.call(t,r)&&yv(e,r,t[r]);return e},oR=(e,t)=>rR(e,nR(t)),iR=(e,t)=>{var r={};for(var n in e)M_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ba)for(var n of Ba(e))t.indexOf(n)<0&&j_.call(e,n)&&(r[n]=e[n]);return r};const lR={labelElement:"label",size:"sm",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},L_=g.exports.forwardRef((e,t)=>{const r=ee("InputWrapper",lR,e),{className:n,label:o,children:i,required:l,id:a,error:s,description:u,labelElement:c,labelProps:f,descriptionProps:d,errorProps:p,classNames:y,styles:w,size:v,inputContainer:m,__staticSelector:h,unstyled:_,inputWrapperOrder:b}=r,O=iR(r,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder"]),{classes:x,cx:P}=eR(null,{classNames:y,styles:w,name:["InputWrapper",h],unstyled:_}),$={classNames:y,styles:w,unstyled:_,size:v,__staticSelector:h},C=o&&S(Qd,{...Vr(Vr({key:"label",labelElement:c,id:a?`${a}-label`:void 0,htmlFor:a,required:l},$),f),children:o}),I=u&&S(Jd,{...Vr(Vr({key:"description"},$),d),children:u}),z=S(it,{children:m(i)}),D=typeof s!="boolean"&&s&&S(Zd,{...Vr(oR(Vr({},p),{key:"error"}),$),children:s}),j=b.map(B=>{switch(B){case"label":return C;case"input":return z;case"description":return I;case"error":return D;default:return null}});return S(B5,{value:U5(b,{hasDescription:!!I,hasError:!!D}),children:S(K,{...Vr({className:P(x.root,n),ref:t},O),children:j})})});L_.displayName="@mantine/core/InputWrapper";var aR=Object.defineProperty,sR=Object.defineProperties,uR=Object.getOwnPropertyDescriptors,wv=Object.getOwnPropertySymbols,cR=Object.prototype.hasOwnProperty,fR=Object.prototype.propertyIsEnumerable,_v=(e,t,r)=>t in e?aR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nc=(e,t)=>{for(var r in t||(t={}))cR.call(t,r)&&_v(e,r,t[r]);if(wv)for(var r of wv(t))fR.call(t,r)&&_v(e,r,t[r]);return e},Sv=(e,t)=>sR(e,uR(t));const ut={xs:30,sm:36,md:42,lg:50,xl:60};function dR({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":{outline:"none",borderColor:e.colors[e.primaryColor][e.fn.primaryShade()]}}:t==="filled"?{border:"1px solid transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":{outline:"none",borderColor:`${e.colors[e.primaryColor][e.fn.primaryShade()]} !important`}}:{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 pR=Q((e,{size:t,multiline:r,radius:n,variant:o,invalid:i,rightSectionWidth:l,withRightSection:a,iconWidth:s,offsetBottom:u,offsetTop:c,pointer:f})=>{const d=e.fn.variant({variant:"filled",color:"red"}).background,p=o==="default"||o==="filled"?{minHeight:e.fn.size({size:t,sizes:ut}),paddingLeft:e.fn.size({size:t,sizes:ut})/3,paddingRight:a?l:e.fn.size({size:t,sizes:ut})/3,borderRadius:e.fn.radius(n)}:null;return{wrapper:{position:"relative",marginTop:c?e.spacing.xs/2:void 0,marginBottom:u?e.spacing.xs/2:void 0},input:nc(Sv(nc(Sv(nc({},e.fn.fontStyles()),{height:r?o==="unstyled"?void 0:"auto":e.fn.size({size:t,sizes:ut}),WebkitTapHighlightColor:"transparent",lineHeight:r?e.lineHeight:`${e.fn.size({size:t,sizes:ut})-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:f?"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":{opacity:1,userSelect:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&::-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"}}),dR({theme:e,variant:o})),withIcon:{paddingLeft:typeof s=="number"?s:e.fn.size({size:t,sizes:ut})},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:ut}),color:i?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:l}}}),gR=pR,mR=Object.defineProperty,vR=Object.defineProperties,hR=Object.getOwnPropertyDescriptors,Wa=Object.getOwnPropertySymbols,F_=Object.prototype.hasOwnProperty,A_=Object.prototype.propertyIsEnumerable,bv=(e,t,r)=>t in e?mR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_l=(e,t)=>{for(var r in t||(t={}))F_.call(t,r)&&bv(e,r,t[r]);if(Wa)for(var r of Wa(t))A_.call(t,r)&&bv(e,r,t[r]);return e},xv=(e,t)=>vR(e,hR(t)),yR=(e,t)=>{var r={};for(var n in e)F_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wa)for(var n of Wa(e))t.indexOf(n)<0&&A_.call(e,n)&&(r[n]=e[n]);return r};const wR={rightSectionWidth:36,size:"sm",variant:"default"},so=g.exports.forwardRef((e,t)=>{const r=ee("Input",wR,e),{className:n,invalid:o,required:i,disabled:l,variant:a,icon:s,style:u,rightSectionWidth:c,iconWidth:f,rightSection:d,rightSectionProps:p,radius:y,size:w,wrapperProps:v,classNames:m,styles:h,__staticSelector:_,multiline:b,sx:O,unstyled:x,pointer:P}=r,$=yR(r,["className","invalid","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:C,offsetTop:I}=W5(),{classes:z,cx:D}=gR({radius:y,size:w,multiline:b,variant:a,invalid:o,rightSectionWidth:c,iconWidth:f,withRightSection:!!d,offsetBottom:C,offsetTop:I,pointer:P},{classNames:m,styles:h,name:["Input",_],unstyled:x}),{systemStyles:j,rest:B}=ru($);return U(K,{..._l(_l({className:D(z.wrapper,n),sx:O,style:u},j),v),children:[s&&S("div",{className:z.icon,children:s}),S(K,{...xv(_l({component:"input"},B),{ref:t,required:i,"aria-invalid":o,disabled:l,className:D(z[`${a}Variant`],z.input,{[z.withIcon]:s,[z.invalid]:o,[z.disabled]:l})})}),d&&S("div",{...xv(_l({},p),{className:z.rightSection}),children:d})]})});so.displayName="@mantine/core/Input";so.Wrapper=L_;so.Label=Qd;so.Description=Jd;so.Error=Zd;const Ua=so;var _R=Q((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}}}}})),SR=_R,bR=Object.defineProperty,Ga=Object.getOwnPropertySymbols,V_=Object.prototype.hasOwnProperty,H_=Object.prototype.propertyIsEnumerable,Pv=(e,t,r)=>t in e?bR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xR=(e,t)=>{for(var r in t||(t={}))V_.call(t,r)&&Pv(e,r,t[r]);if(Ga)for(var r of Ga(t))H_.call(t,r)&&Pv(e,r,t[r]);return e},PR=(e,t)=>{var r={};for(var n in e)V_.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&&H_.call(e,n)&&(r[n]=e[n]);return r};const $R={orientation:"horizontal",buttonBorderWidth:1},B_=g.exports.forwardRef((e,t)=>{const r=ee("ButtonGroup",$R,e),{className:n,orientation:o,buttonBorderWidth:i,unstyled:l}=r,a=PR(r,["className","orientation","buttonBorderWidth","unstyled"]),{classes:s,cx:u}=SR({orientation:o,buttonBorderWidth:i},{name:"ButtonGroup",unstyled:l});return S(K,{...xR({className:u(s.root,n),ref:t},a)})});B_.displayName="@mantine/core/ButtonGroup";var OR=Object.defineProperty,CR=Object.defineProperties,ER=Object.getOwnPropertyDescriptors,$v=Object.getOwnPropertySymbols,kR=Object.prototype.hasOwnProperty,RR=Object.prototype.propertyIsEnumerable,Ov=(e,t,r)=>t in e?OR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gr=(e,t)=>{for(var r in t||(t={}))kR.call(t,r)&&Ov(e,r,t[r]);if($v)for(var r of $v(t))RR.call(t,r)&&Ov(e,r,t[r]);return e},yf=(e,t)=>CR(e,ER(t));const wf={xs:{height:ut.xs,paddingLeft:14,paddingRight:14},sm:{height:ut.sm,paddingLeft:18,paddingRight:18},md:{height:ut.md,paddingLeft:22,paddingRight:22},lg:{height:ut.lg,paddingLeft:26,paddingRight:26},xl:{height:ut.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 IR({compact:e,size:t,withLeftIcon:r,withRightIcon:n}){if(e)return wf[`compact-${t}`];const o=wf[t];return yf(Gr({},o),{paddingLeft:r?o.paddingLeft/1.5:o.paddingLeft,paddingRight:n?o.paddingRight/1.5:o.paddingRight})}const NR=e=>({display:e?"block":"inline-block",width:e?"100%":"auto"});function zR({variant:e,theme:t,color:r,gradient:n}){const o=t.fn.variant({color:r,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:o.background,color:o.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:Gr({border:`1px solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover}))}var DR=Q((e,{color:t,size:r,radius:n,fullWidth:o,compact:i,gradient:l,variant:a,withLeftIcon:s,withRightIcon:u})=>({root:yf(Gr(yf(Gr(Gr(Gr(Gr({},IR({compact:i,size:r,withLeftIcon:s,withRightIcon:u})),e.fn.fontStyles()),e.fn.focusStyles()),NR(o)),{borderRadius:e.fn.radius(n),fontWeight:600,position:"relative",lineHeight:1,fontSize:e.fn.size({size:r,sizes:e.fontSizes}),userSelect:"none",cursor:"pointer"}),zR({variant:a,theme:e,color:t,gradient:l})),{"&:active":e.activeStyles,"&[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","&: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},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}})),TR=DR,MR=Object.defineProperty,Ya=Object.getOwnPropertySymbols,W_=Object.prototype.hasOwnProperty,U_=Object.prototype.propertyIsEnumerable,Cv=(e,t,r)=>t in e?MR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ev=(e,t)=>{for(var r in t||(t={}))W_.call(t,r)&&Cv(e,r,t[r]);if(Ya)for(var r of Ya(t))U_.call(t,r)&&Cv(e,r,t[r]);return e},jR=(e,t)=>{var r={};for(var n in e)W_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ya)for(var n of Ya(e))t.indexOf(n)<0&&U_.call(e,n)&&(r[n]=e[n]);return r};const LR={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},ep=g.exports.forwardRef((e,t)=>{const r=ee("Button",LR,e),{className:n,size:o,color:i,type:l,disabled:a,children:s,leftIcon:u,rightIcon:c,fullWidth:f,variant:d,radius:p,uppercase:y,compact:w,loading:v,loaderPosition:m,loaderProps:h,gradient:_,classNames:b,styles:O,unstyled:x}=r,P=jR(r,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:$,cx:C,theme:I}=TR({radius:p,color:i,size:o,fullWidth:f,compact:w,gradient:_,variant:d,withLeftIcon:!!u,withRightIcon:!!c},{name:"Button",unstyled:x,classNames:b,styles:O}),z=I.fn.variant({color:i,variant:d}),D=S(Hd,{...Ev({color:z.color,size:I.fn.size({size:o,sizes:wf}).height/2},h)});return S(nu,{...Ev({className:C($.root,n),type:l,disabled:a||v,"data-button":!0,"data-disabled":a||void 0,"data-loading":v||void 0,ref:t,unstyled:x},P),children:U("div",{className:$.inner,children:[(u||v&&m==="left")&&S("span",{className:C($.icon,$.leftIcon),children:v&&m==="left"?D:u}),S("span",{className:$.label,style:{textTransform:y?"uppercase":void 0},children:s}),(c||v&&m==="right")&&S("span",{className:C($.icon,$.rightIcon),children:v&&m==="right"?D:c})]})})});ep.displayName="@mantine/core/Button";ep.Group=B_;const qn=ep;var FR=Q((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}})),AR=FR,VR=Object.defineProperty,Xa=Object.getOwnPropertySymbols,G_=Object.prototype.hasOwnProperty,Y_=Object.prototype.propertyIsEnumerable,kv=(e,t,r)=>t in e?VR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HR=(e,t)=>{for(var r in t||(t={}))G_.call(t,r)&&kv(e,r,t[r]);if(Xa)for(var r of Xa(t))Y_.call(t,r)&&kv(e,r,t[r]);return e},BR=(e,t)=>{var r={};for(var n in e)G_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xa)for(var n of Xa(e))t.indexOf(n)<0&&Y_.call(e,n)&&(r[n]=e[n]);return r};const WR={},X_=g.exports.forwardRef((e,t)=>{const r=ee("Paper",WR,e),{className:n,children:o,radius:i,withBorder:l,shadow:a,unstyled:s}=r,u=BR(r,["className","children","radius","withBorder","shadow","unstyled"]),{classes:c,cx:f}=AR({radius:i,shadow:a,withBorder:l},{name:"Paper",unstyled:s});return S(K,{...HR({className:f(c.root,n),ref:t},u),children:o})});X_.displayName="@mantine/core/Paper";const UR=X_;var GR=Object.defineProperty,Ka=Object.getOwnPropertySymbols,K_=Object.prototype.hasOwnProperty,q_=Object.prototype.propertyIsEnumerable,Rv=(e,t,r)=>t in e?GR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,YR=(e,t)=>{for(var r in t||(t={}))K_.call(t,r)&&Rv(e,r,t[r]);if(Ka)for(var r of Ka(t))q_.call(t,r)&&Rv(e,r,t[r]);return e},XR=(e,t)=>{var r={};for(var n in e)K_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ka)for(var n of Ka(e))t.indexOf(n)<0&&q_.call(e,n)&&(r[n]=e[n]);return r};const Q_=g.exports.forwardRef((e,t)=>{const r=ee("Center",{},e),{inline:n,sx:o}=r,i=XR(r,["inline","sx"]);return S(K,{...YR({ref:t,sx:[{display:n?"inline-flex":"flex",alignItems:"center",justifyContent:"center"},...Si(o)]},i)})});Q_.displayName="@mantine/core/Center";const Z_=Q_;function KR(e){return g.exports.Children.toArray(e).filter(Boolean)}const J_={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var qR=Q((e,{spacing:t,position:r,noWrap:n,grow:o,align:i,count:l})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:i||"center",flexWrap:n?"nowrap":"wrap",justifyContent:J_[r],gap:e.fn.size({size:t,sizes:e.spacing})},child:{boxSizing:"border-box",maxWidth:o?`calc(${100/l}% - ${e.fn.size({size:t,sizes:e.spacing})-e.fn.size({size:t,sizes:e.spacing})/l}px)`:void 0,flexGrow:o?1:0}})),QR=qR,ZR=Object.defineProperty,qa=Object.getOwnPropertySymbols,eS=Object.prototype.hasOwnProperty,tS=Object.prototype.propertyIsEnumerable,Iv=(e,t,r)=>t in e?ZR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JR=(e,t)=>{for(var r in t||(t={}))eS.call(t,r)&&Iv(e,r,t[r]);if(qa)for(var r of qa(t))tS.call(t,r)&&Iv(e,r,t[r]);return e},e4=(e,t)=>{var r={};for(var n in e)eS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qa)for(var n of qa(e))t.indexOf(n)<0&&tS.call(e,n)&&(r[n]=e[n]);return r};const t4={position:"left",spacing:"md"},jt=g.exports.forwardRef((e,t)=>{const r=ee("Group",t4,e),{className:n,position:o,align:i,children:l,noWrap:a,grow:s,spacing:u,unstyled:c}=r,f=e4(r,["className","position","align","children","noWrap","grow","spacing","unstyled"]),d=KR(l),{classes:p,cx:y}=QR({align:i,grow:s,noWrap:a,spacing:u,position:o,count:d.length},{unstyled:c,name:"Group"}),w=d.map(v=>{var m;return typeof v=="object"&&v!==null&&"props"in v?E.cloneElement(v,{className:y(p.child,(m=v.props)==null?void 0:m.className)}):v});return S(K,{...JR({className:y(p.root,n),ref:t},f),children:w})});jt.displayName="@mantine/core/Group";var r4=Q((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})}})),n4=r4,o4=Object.defineProperty,Qa=Object.getOwnPropertySymbols,rS=Object.prototype.hasOwnProperty,nS=Object.prototype.propertyIsEnumerable,Nv=(e,t,r)=>t in e?o4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i4=(e,t)=>{for(var r in t||(t={}))rS.call(t,r)&&Nv(e,r,t[r]);if(Qa)for(var r of Qa(t))nS.call(t,r)&&Nv(e,r,t[r]);return e},l4=(e,t)=>{var r={};for(var n in e)rS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qa)for(var n of Qa(e))t.indexOf(n)<0&&nS.call(e,n)&&(r[n]=e[n]);return r};const a4={spacing:"md",align:"stretch",justify:"top"},Tt=g.exports.forwardRef((e,t)=>{const r=ee("Stack",a4,e),{spacing:n,className:o,align:i,justify:l,unstyled:a}=r,s=l4(r,["spacing","className","align","justify","unstyled"]),{classes:u,cx:c}=n4({spacing:n,align:i,justify:l},{name:"Stack",unstyled:a});return S(K,{...i4({className:c(u.root,o),ref:t},s)})});Tt.displayName="@mantine/core/Stack";function oS({transitions:e,duration:t=250,exitDuration:r=t,mounted:n,children:o,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u}){const{transitionDuration:c,transitionStatus:f,transitionTimingFunction:d}=v_({mounted:n,duration:t,exitDuration:r,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u});if(c===0)return n?E.createElement(E.Fragment,null,o({})):null;if(f==="exited")return null;const p=Object.keys(e).reduce((y,w)=>(y[w]=m_({duration:e[w].duration,transition:e[w].transition,timingFunction:e[w].timingFunction||d,state:f}),y),{});return E.createElement(E.Fragment,null,o(p))}oS.displayName="@mantine/core/GroupedTransition";var s4=Q((e,{zIndex:t})=>({root:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:t}})),u4=s4,c4=Object.defineProperty,f4=Object.defineProperties,d4=Object.getOwnPropertyDescriptors,Za=Object.getOwnPropertySymbols,iS=Object.prototype.hasOwnProperty,lS=Object.prototype.propertyIsEnumerable,zv=(e,t,r)=>t in e?c4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oc=(e,t)=>{for(var r in t||(t={}))iS.call(t,r)&&zv(e,r,t[r]);if(Za)for(var r of Za(t))lS.call(t,r)&&zv(e,r,t[r]);return e},p4=(e,t)=>f4(e,d4(t)),g4=(e,t)=>{var r={};for(var n in e)iS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Za)for(var n of Za(e))t.indexOf(n)<0&&lS.call(e,n)&&(r[n]=e[n]);return r};const m4={opacity:.6,color:"#fff",zIndex:io("modal"),radius:0,blur:0},aS=g.exports.forwardRef((e,t)=>{const r=ee("Overlay",m4,e),{opacity:n,blur:o,color:i,gradient:l,zIndex:a,radius:s,sx:u,unstyled:c,className:f}=r,d=g4(r,["opacity","blur","color","gradient","zIndex","radius","sx","unstyled","className"]),{classes:p,cx:y}=u4({zIndex:a},{name:"Overlay",unstyled:c}),w=l?{backgroundImage:l}:{backgroundColor:i},v=m=>S(K,{...oc({ref:t,className:y(p.root,f),sx:[h=>p4(oc({},w),{opacity:n,borderRadius:h.fn.size({size:s,sizes:h.radius})}),...Si(u)]},m)});return o?S(K,{...oc({className:y(p.root,f),sx:[{backdropFilter:`blur(${o}px)`},...Si(u)]},d),children:v()}):v(d)});aS.displayName="@mantine/core/Overlay";const v4=aS,sS=g.exports.createContext(null),h4=sS.Provider,y4=()=>g.exports.useContext(sS);var w4=Object.defineProperty,Dv=Object.getOwnPropertySymbols,_4=Object.prototype.hasOwnProperty,S4=Object.prototype.propertyIsEnumerable,Tv=(e,t,r)=>t in e?w4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b4=(e,t)=>{for(var r in t||(t={}))_4.call(t,r)&&Tv(e,r,t[r]);if(Dv)for(var r of Dv(t))S4.call(t,r)&&Tv(e,r,t[r]);return e};const Ja=(e,t)=>`${100/(t/e)}%`,uS=(e,t)=>e?`${100/(t/e)}%`:void 0;function x4({sizes:e,offsets:t,theme:r,columns:n,grow:o}){return lO.reduce((i,l)=>(typeof e[l]=="number"&&(i[`@media (min-width: ${r.breakpoints[l]+1}px)`]={flexBasis:Ja(e[l],n),flexShrink:0,maxWidth:o?"unset":Ja(e[l],n),marginLeft:uS(t[l],n)}),i),{})}var P4=Q((e,{gutter:t,grow:r,offset:n,offsetXs:o,offsetSm:i,offsetMd:l,offsetLg:a,offsetXl:s,columns:u,span:c,xs:f,sm:d,md:p,lg:y,xl:w})=>({root:b4({boxSizing:"border-box",flexGrow:r?1:0,padding:e.fn.size({size:t,sizes:e.spacing})/2,marginLeft:uS(n,u),flexBasis:Ja(c,u),flexShrink:0,maxWidth:r?"unset":Ja(c,u)},x4({sizes:{xs:f,sm:d,md:p,lg:y,xl:w},offsets:{xs:o,sm:i,md:l,lg:a,xl:s},theme:e,columns:u,grow:r}))})),$4=P4,O4=Object.defineProperty,es=Object.getOwnPropertySymbols,cS=Object.prototype.hasOwnProperty,fS=Object.prototype.propertyIsEnumerable,Mv=(e,t,r)=>t in e?O4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C4=(e,t)=>{for(var r in t||(t={}))cS.call(t,r)&&Mv(e,r,t[r]);if(es)for(var r of es(t))fS.call(t,r)&&Mv(e,r,t[r]);return e},E4=(e,t)=>{var r={};for(var n in e)cS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&es)for(var n of es(e))t.indexOf(n)<0&&fS.call(e,n)&&(r[n]=e[n]);return r};const k4={offset:0,offsetXs:0,offsetSm:0,offsetMd:0,offsetLg:0,offsetXl:0};function R4(e){return typeof e=="number"&&e>0&&e%1===0}const dS=g.exports.forwardRef((e,t)=>{const r=ee("Grid.Col",k4,e),{children:n,span:o,offset:i,offsetXs:l,offsetSm:a,offsetMd:s,offsetLg:u,offsetXl:c,xs:f,sm:d,md:p,lg:y,xl:w,className:v,id:m,unstyled:h}=r,_=E4(r,["children","span","offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","xs","sm","md","lg","xl","className","id","unstyled"]),b=y4();if(!b)throw new Error("[@mantine/core] Grid.Col was used outside of Grid context");const O=o||b.columns,{classes:x,cx:P}=$4({gutter:b.gutter,offset:i,offsetXs:l,offsetSm:a,offsetMd:s,offsetLg:u,offsetXl:c,xs:f,sm:d,md:p,lg:y,xl:w,grow:b.grow,columns:b.columns,span:O},{unstyled:h,name:"Col"});return!R4(O)||O>b.columns?null:S(K,{...C4({className:P(x.root,v),ref:t},_),children:n})});dS.displayName="@mantine/core/Col";var I4=Q((e,{justify:t,align:r,gutter:n})=>({root:{margin:-e.fn.size({size:n,sizes:e.spacing})/2,display:"flex",flexWrap:"wrap",justifyContent:t,alignItems:r}})),N4=I4,z4=Object.defineProperty,ts=Object.getOwnPropertySymbols,pS=Object.prototype.hasOwnProperty,gS=Object.prototype.propertyIsEnumerable,jv=(e,t,r)=>t in e?z4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D4=(e,t)=>{for(var r in t||(t={}))pS.call(t,r)&&jv(e,r,t[r]);if(ts)for(var r of ts(t))gS.call(t,r)&&jv(e,r,t[r]);return e},T4=(e,t)=>{var r={};for(var n in e)pS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ts)for(var n of ts(e))t.indexOf(n)<0&&gS.call(e,n)&&(r[n]=e[n]);return r};const M4={gutter:"md",justify:"flex-start",align:"stretch",columns:12},pu=g.exports.forwardRef((e,t)=>{const r=ee("Grid",M4,e),{gutter:n,children:o,grow:i,justify:l,align:a,columns:s,className:u,id:c,unstyled:f}=r,d=T4(r,["gutter","children","grow","justify","align","columns","className","id","unstyled"]),{classes:p,cx:y}=N4({gutter:n,justify:l,align:a},{unstyled:f,name:"Grid"});return S(h4,{value:{gutter:n,grow:i,columns:s},children:S(K,{...D4({className:y(p.root,u),ref:t},d),children:o})})});pu.Col=dS;pu.displayName="@mantine/core/Grid";function j4({open:e,close:t,openDelay:r,closeDelay:n}){const o=g.exports.useRef(-1),i=g.exports.useRef(-1),l=()=>{window.clearTimeout(o.current),window.clearTimeout(i.current)},a=()=>{l(),r===0?e():o.current=window.setTimeout(e,r)},s=()=>{l(),n===0?t():i.current=window.setTimeout(t,n)};return g.exports.useEffect(()=>l,[]),{openDropdown:a,closeDropdown:s}}var L4=Q(e=>({divider:{margin:`${e.spacing.xs/2}px -5px`,borderTop:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`}})),F4=L4,A4=Object.defineProperty,rs=Object.getOwnPropertySymbols,mS=Object.prototype.hasOwnProperty,vS=Object.prototype.propertyIsEnumerable,Lv=(e,t,r)=>t in e?A4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V4=(e,t)=>{for(var r in t||(t={}))mS.call(t,r)&&Lv(e,r,t[r]);if(rs)for(var r of rs(t))vS.call(t,r)&&Lv(e,r,t[r]);return e},H4=(e,t)=>{var r={};for(var n in e)mS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&rs)for(var n of rs(e))t.indexOf(n)<0&&vS.call(e,n)&&(r[n]=e[n]);return r};function hS(e){var t=e,{children:r,className:n}=t,o=H4(t,["children","className"]);const{classNames:i,styles:l,unstyled:a}=dn(),{classes:s,cx:u}=F4(null,{name:"Menu",classNames:i,styles:l,unstyled:a});return E.createElement(K,V4({className:u(s.divider,n)},o))}hS.displayName="@mantine/core/MenuDivider";const yS={context:"Menu component was not found in the tree",children:"Menu.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"},[B4,tp]=Rd(yS.context);var W4=Object.defineProperty,ns=Object.getOwnPropertySymbols,wS=Object.prototype.hasOwnProperty,_S=Object.prototype.propertyIsEnumerable,Fv=(e,t,r)=>t in e?W4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U4=(e,t)=>{for(var r in t||(t={}))wS.call(t,r)&&Fv(e,r,t[r]);if(ns)for(var r of ns(t))_S.call(t,r)&&Fv(e,r,t[r]);return e},G4=(e,t)=>{var r={};for(var n in e)wS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ns)for(var n of ns(e))t.indexOf(n)<0&&_S.call(e,n)&&(r[n]=e[n]);return r};function SS(e){var t=e,{children:r,onMouseEnter:n,onMouseLeave:o}=t,i=G4(t,["children","onMouseEnter","onMouseLeave"]);const l=g.exports.useRef(),a=tp(),s=f=>{(f.key==="ArrowUp"||f.key==="ArrowDown")&&(f.preventDefault(),l.current.querySelectorAll("[data-menu-item]")[0].focus())},u=Xt(n,()=>a.trigger==="hover"&&a.openDropdown()),c=Xt(o,()=>a.trigger==="hover"&&a.closeDropdown());return S(nr.Dropdown,{...U4({onMouseEnter:u,onMouseLeave:c,role:"menu","aria-orientation":"vertical"},i),children:S("div",{tabIndex:-1,"data-menu-dropdown":!0,"data-autofocus":!0,onKeyDown:s,ref:l,style:{outline:0},children:r})})}SS.displayName="@mantine/core/MenuDropdown";var Y4=Object.defineProperty,X4=Object.defineProperties,K4=Object.getOwnPropertyDescriptors,Av=Object.getOwnPropertySymbols,q4=Object.prototype.hasOwnProperty,Q4=Object.prototype.propertyIsEnumerable,Vv=(e,t,r)=>t in e?Y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z4=(e,t)=>{for(var r in t||(t={}))q4.call(t,r)&&Vv(e,r,t[r]);if(Av)for(var r of Av(t))Q4.call(t,r)&&Vv(e,r,t[r]);return e},J4=(e,t)=>X4(e,K4(t)),e6=Q((e,{color:t,radius:r})=>({item:J4(Z4({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fontSizes.sm,border:0,backgroundColor:"transparent",outline:0,width:"100%",textAlign:"left",textDecoration:"none",boxSizing:"border-box",padding:`${e.spacing.xs}px ${e.spacing.sm}px`,cursor:"pointer",borderRadius:e.fn.radius(r),color:t?e.fn.variant({variant:"filled",primaryFallback:!1,color:t}).background:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"flex",alignItems:"center","&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5],pointerEvents:"none",userSelect:"none"},"&[data-hovered]":{backgroundColor:t?e.fn.variant({variant:"light",color:t}).background:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[3],.35):e.colors.gray[0]}}),itemLabel:{flex:1},itemIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:e.spacing.xs},itemRightSection:{}})),t6=e6,r6=Object.defineProperty,n6=Object.defineProperties,o6=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,bS=Object.prototype.hasOwnProperty,xS=Object.prototype.propertyIsEnumerable,Hv=(e,t,r)=>t in e?r6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i6=(e,t)=>{for(var r in t||(t={}))bS.call(t,r)&&Hv(e,r,t[r]);if(os)for(var r of os(t))xS.call(t,r)&&Hv(e,r,t[r]);return e},l6=(e,t)=>n6(e,o6(t)),a6=(e,t)=>{var r={};for(var n in e)bS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&os)for(var n of os(e))t.indexOf(n)<0&&xS.call(e,n)&&(r[n]=e[n]);return r};const PS=g.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,color:i,closeMenuOnClick:l,icon:a,rightSection:s}=r,u=a6(r,["children","className","color","closeMenuOnClick","icon","rightSection"]);const c=tp(),{classNames:f,styles:d,unstyled:p}=dn(),{classes:y,cx:w,theme:v}=t6({radius:c.radius,color:i},{name:"Menu",classNames:f,styles:d,unstyled:p}),m=g.exports.useRef(),h=c.getItemIndex(m.current),_=u,b=Xt(_.onMouseLeave,()=>c.setHovered(-1)),O=Xt(_.onMouseEnter,()=>c.setHovered(c.getItemIndex(m.current))),x=Xt(_.onClick,()=>{typeof l=="boolean"?l&&c.closeDropdownImmediately():c.closeOnItemClick&&c.closeDropdownImmediately()}),P=Xt(_.onFocus,()=>c.setHovered(c.getItemIndex(m.current)));return U(K,{...l6(i6({component:"button"},u),{type:"button",tabIndex:-1,onFocus:P,className:w(y.item,o),ref:pn(m,t),role:"menuitem","data-menu-item":!0,"data-hovered":c.hovered===h?!0:void 0,onMouseEnter:O,onMouseLeave:b,onClick:x,onKeyDown:p1({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:c.loop,dir:v.dir,orientation:"vertical",onKeyDown:_.onKeydown})}),children:[a&&S("div",{className:y.itemIcon,children:a}),n&&S("div",{className:y.itemLabel,children:n}),s&&S("div",{className:y.itemRightSection,children:s})]})});PS.displayName="@mantine/core/MenuItem";const s6=PS;var u6=Q(e=>({label:{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontWeight:500,fontSize:e.fontSizes.xs,padding:`${e.spacing.xs/2}px ${e.spacing.sm}px`,cursor:"default"}})),c6=u6,f6=Object.defineProperty,is=Object.getOwnPropertySymbols,$S=Object.prototype.hasOwnProperty,OS=Object.prototype.propertyIsEnumerable,Bv=(e,t,r)=>t in e?f6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d6=(e,t)=>{for(var r in t||(t={}))$S.call(t,r)&&Bv(e,r,t[r]);if(is)for(var r of is(t))OS.call(t,r)&&Bv(e,r,t[r]);return e},p6=(e,t)=>{var r={};for(var n in e)$S.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&is)for(var n of is(e))t.indexOf(n)<0&&OS.call(e,n)&&(r[n]=e[n]);return r};function CS(e){var t=e,{children:r,className:n}=t,o=p6(t,["children","className"]);const{classNames:i,styles:l,unstyled:a}=dn(),{classes:s,cx:u}=c6(null,{name:"Menu",classNames:i,styles:l,unstyled:a});return E.createElement(mt,d6({className:u(s.label,n)},o),r)}CS.displayName="@mantine/core/MenuLabel";var g6=Object.defineProperty,ls=Object.getOwnPropertySymbols,ES=Object.prototype.hasOwnProperty,kS=Object.prototype.propertyIsEnumerable,Wv=(e,t,r)=>t in e?g6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m6=(e,t)=>{for(var r in t||(t={}))ES.call(t,r)&&Wv(e,r,t[r]);if(ls)for(var r of ls(t))kS.call(t,r)&&Wv(e,r,t[r]);return e},v6=(e,t)=>{var r={};for(var n in e)ES.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ls)for(var n of ls(e))t.indexOf(n)<0&&kS.call(e,n)&&(r[n]=e[n]);return r};const RS=g.exports.forwardRef((e,t)=>{var r=e,{children:n,refProp:o="ref"}=r,i=v6(r,["children","refProp"]);if(!Ti(n))throw new Error(yS.children);const l=tp(),a=Xt(n.props.onClick,()=>l.trigger==="click"&&l.toggleDropdown()),s=Xt(n.props.onMouseEnter,()=>l.trigger==="hover"&&l.openDropdown()),u=Xt(n.props.onMouseLeave,()=>l.trigger==="hover"&&l.closeDropdown());return S(nr.Target,{...m6({refProp:o,popupType:"menu",ref:t},i),children:g.exports.cloneElement(n,{onClick:a,onMouseEnter:s,onMouseLeave:u,"data-expanded":l.opened?!0:void 0})})});RS.displayName="@mantine/core/MenuTarget";var h6=Q({dropdown:{padding:4}}),y6=h6,w6=Object.defineProperty,_6=Object.defineProperties,S6=Object.getOwnPropertyDescriptors,as=Object.getOwnPropertySymbols,IS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable,Uv=(e,t,r)=>t in e?w6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gv=(e,t)=>{for(var r in t||(t={}))IS.call(t,r)&&Uv(e,r,t[r]);if(as)for(var r of as(t))NS.call(t,r)&&Uv(e,r,t[r]);return e},Yv=(e,t)=>_6(e,S6(t)),b6=(e,t)=>{var r={};for(var n in e)IS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&as)for(var n of as(e))t.indexOf(n)<0&&NS.call(e,n)&&(r[n]=e[n]);return r};const x6={closeOnItemClick:!0,loop:!0,trigger:"click",openDelay:0,closeDelay:100};function et(e){const t=ee("Menu",x6,e),{children:r,onOpen:n,onClose:o,opened:i,defaultOpened:l,onChange:a,closeOnItemClick:s,loop:u,closeOnEscape:c,trigger:f,openDelay:d,closeDelay:p,classNames:y,styles:w,unstyled:v,radius:m}=t,h=b6(t,["children","onOpen","onClose","opened","defaultOpened","onChange","closeOnItemClick","loop","closeOnEscape","trigger","openDelay","closeDelay","classNames","styles","unstyled","radius"]),{classes:_,cx:b}=y6(),[O,{setHovered:x,resetHovered:P}]=I$(),[$,C]=Li({value:i,defaultValue:l,finalValue:!1,onChange:a}),I=()=>{C(!1),$&&o?.()},z=()=>{C(!0),!$&&n?.()},D=()=>$?I():z(),{openDropdown:j,closeDropdown:B}=j4({open:z,close:I,closeDelay:p,openDelay:d}),V=W=>P$("[data-menu-item]","[data-menu-dropdown]",W);return kr(()=>{P()},[$]),E.createElement(B4,{value:{opened:$,toggleDropdown:D,getItemIndex:V,hovered:O,setHovered:x,closeOnItemClick:s,closeDropdown:f==="click"?I:B,openDropdown:f==="click"?z:j,closeDropdownImmediately:I,loop:u,trigger:f,radius:m}},E.createElement(nr,Yv(Gv({},h),{radius:m,opened:$,onChange:C,defaultOpened:l,trapFocus:f==="click",closeOnEscape:c&&f==="click",__staticSelector:"Menu",classNames:Yv(Gv({},y),{dropdown:b(_.dropdown,y?.dropdown)}),styles:w,unstyled:v,onClose:I,onOpen:z}),r))}et.displayName="@mantine/core/Menu";et.Item=s6;et.Label=CS;et.Dropdown=SS;et.Target=RS;et.Divider=hS;var P6=Object.defineProperty,Xv=Object.getOwnPropertySymbols,$6=Object.prototype.hasOwnProperty,O6=Object.prototype.propertyIsEnumerable,Kv=(e,t,r)=>t in e?P6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C6=(e,t)=>{for(var r in t||(t={}))$6.call(t,r)&&Kv(e,r,t[r]);if(Xv)for(var r of Xv(t))O6.call(t,r)&&Kv(e,r,t[r]);return e};const E6={xs:320,sm:380,md:440,lg:620,xl:780};function k6(e){return e?{position:"absolute",top:0,left:0,right:0,bottom:0}:{}}var R6=Q((e,{overflow:t,size:r,centered:n,zIndex:o,fullScreen:i})=>({close:{},overlay:{display:i?"none":void 0},root:{position:"fixed",zIndex:o,top:0,left:0,right:0,bottom:0},inner:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowY:"auto",padding:i?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:C6({position:"relative",width:i?void 0:e.fn.size({sizes:E6,size:r}),borderRadius:i?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,marginLeft:i?void 0:"calc(var(--removed-scroll-width, 0px) * -1)"},k6(i)),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"}})),I6=R6,N6=Object.defineProperty,ss=Object.getOwnPropertySymbols,zS=Object.prototype.hasOwnProperty,DS=Object.prototype.propertyIsEnumerable,qv=(e,t,r)=>t in e?N6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z6=(e,t)=>{for(var r in t||(t={}))zS.call(t,r)&&qv(e,r,t[r]);if(ss)for(var r of ss(t))DS.call(t,r)&&qv(e,r,t[r]);return e},D6=(e,t)=>{var r={};for(var n in e)zS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ss)for(var n of ss(e))t.indexOf(n)<0&&DS.call(e,n)&&(r[n]=e[n]);return r};const T6={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:io("modal")};function gu(e){const t=ee("Modal",T6,e),{className:r,opened:n,title:o,onClose:i,children:l,withCloseButton:a,overlayOpacity:s,size:u,transitionDuration:c,closeButtonLabel:f,overlayColor:d,overflow:p,transition:y,padding:w,shadow:v,radius:m,id:h,classNames:_,styles:b,closeOnClickOutside:O,trapFocus:x,closeOnEscape:P,centered:$,target:C,withinPortal:I,zIndex:z,overlayBlur:D,transitionTimingFunction:j,fullScreen:B,unstyled:V,lockScroll:W,withFocusReturn:ne}=t,se=D6(t,["className","opened","title","onClose","children","withCloseButton","overlayOpacity","size","transitionDuration","closeButtonLabel","overlayColor","overflow","transition","padding","shadow","radius","id","classNames","styles","closeOnClickOutside","trapFocus","closeOnEscape","centered","target","withinPortal","zIndex","overlayBlur","transitionTimingFunction","fullScreen","unstyled","lockScroll","withFocusReturn"]),ie=lo(h),ze=`${ie}-title`,R=`${ie}-body`,{classes:T,cx:A,theme:k}=I6({size:u,overflow:p,centered:$,zIndex:z,fullScreen:B},{unstyled:V,classNames:_,styles:b,name:"Modal"}),M=Y1(x&&n),G=typeof s=="number"?s:k.colorScheme==="dark"?.85:.75,[,Z]=w2(),De=ae=>{!x&&ae.key==="Escape"&&P&&i()};return g.exports.useEffect(()=>{if(!x)return window.addEventListener("keydown",De),()=>window.removeEventListener("keydown",De)},[x]),B1({opened:n,shouldReturnFocus:x&&ne}),S(Fi,{withinPortal:I,target:C,children:S(oS,{onExited:()=>W&&Z(!1),onEntered:()=>W&&Z(!0),mounted:n,duration:c,exitDuration:c,timingFunction:j,transitions:{modal:{duration:c,transition:y||(B?"fade":"pop")},overlay:{duration:c/2,transition:"fade",timingFunction:"ease"}},children:ae=>S(K,{...z6({id:ie,className:A(T.root,r)},se),children:U("div",{className:T.inner,onKeyDownCapture:Ve=>{var or;((or=Ve.target)==null?void 0:or.getAttribute("data-mantine-stop-propagation"))!=="true"&&Ve.key==="Escape"&&P&&i()},ref:M,children:[U(UR,{className:T.modal,shadow:v,p:w,radius:m,role:"dialog","aria-labelledby":ze,"aria-describedby":R,"aria-modal":!0,tabIndex:-1,style:ae.modal,unstyled:V,children:[(o||a)&&U("div",{className:T.header,children:[S(mt,{id:ze,className:T.title,children:o}),a&&S(ou,{iconSize:16,onClick:i,"aria-label":f,className:T.close})]}),S("div",{id:R,className:T.body,children:l})]}),S("div",{style:ae.overlay,children:S(v4,{className:T.overlay,sx:{position:"fixed"},zIndex:0,onMouseDown:()=>O&&i(),blur:D,color:d||(k.colorScheme==="dark"?k.colors.dark[9]:k.black),opacity:G,unstyled:V})})]})})})})}gu.displayName="@mantine/core/Modal";var M6=Object.defineProperty,us=Object.getOwnPropertySymbols,TS=Object.prototype.hasOwnProperty,MS=Object.prototype.propertyIsEnumerable,Qv=(e,t,r)=>t in e?M6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zv=(e,t)=>{for(var r in t||(t={}))TS.call(t,r)&&Qv(e,r,t[r]);if(us)for(var r of us(t))MS.call(t,r)&&Qv(e,r,t[r]);return e},j6=(e,t)=>{var r={};for(var n in e)TS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&us)for(var n of us(e))t.indexOf(n)<0&&MS.call(e,n)&&(r[n]=e[n]);return r};const L6={xs:14,sm:18,md:20,lg:24,xl:28};function F6(e){var t=e,{size:r,error:n,style:o}=t,i=j6(t,["size","error","style"]);const l=at(),a=l.fn.size({size:r,sizes:L6});return E.createElement("svg",Zv({width:a,height:a,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Zv({color:n?l.colors.red[6]:l.colors.gray[6]},o),"data-chevron":!0},i),E.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 jS({shouldClear:e,clearButtonLabel:t,onClear:r,size:n,error:o,clearButtonTabIndex:i}){return e?E.createElement(ou,{variant:"transparent","aria-label":t,onClick:r,size:n,tabIndex:i}):E.createElement(F6,{error:o,size:n})}jS.displayName="@mantine/core/SelectRightSection";var A6=Object.defineProperty,V6=Object.defineProperties,H6=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertySymbols,LS=Object.prototype.hasOwnProperty,FS=Object.prototype.propertyIsEnumerable,Jv=(e,t,r)=>t in e?A6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ic=(e,t)=>{for(var r in t||(t={}))LS.call(t,r)&&Jv(e,r,t[r]);if(cs)for(var r of cs(t))FS.call(t,r)&&Jv(e,r,t[r]);return e},eh=(e,t)=>V6(e,H6(t)),B6=(e,t)=>{var r={};for(var n in e)LS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cs)for(var n of cs(e))t.indexOf(n)<0&&FS.call(e,n)&&(r[n]=e[n]);return r};const W6={xs:24,sm:30,md:34,lg:44,xl:54};function U6(e){var t=e,{styles:r,rightSection:n,rightSectionWidth:o,theme:i}=t,l=B6(t,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:o,styles:r};const a=typeof r=="function"?r(i):r;return{rightSectionWidth:i.fn.size({size:l.size,sizes:W6}),rightSection:!l.readOnly&&!(l.disabled&&l.shouldClear)&&E.createElement(jS,ic({},l)),styles:eh(ic({},a),{rightSection:eh(ic({},a?.rightSection),{pointerEvents:l.shouldClear?void 0:"none"})})}}const G6=(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 th({direction:e,size:t}){return E.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"},E.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 AS={xs:20,sm:24,md:30,lg:34,xl:36};var Y6=Q((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:AS}),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}})),X6=Y6,K6=Object.defineProperty,q6=Object.defineProperties,Q6=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,VS=Object.prototype.hasOwnProperty,HS=Object.prototype.propertyIsEnumerable,rh=(e,t,r)=>t in e?K6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lc=(e,t)=>{for(var r in t||(t={}))VS.call(t,r)&&rh(e,r,t[r]);if(fs)for(var r of fs(t))HS.call(t,r)&&rh(e,r,t[r]);return e},Z6=(e,t)=>q6(e,Q6(t)),J6=(e,t)=>{var r={};for(var n in e)VS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&fs)for(var n of fs(e))t.indexOf(n)<0&&HS.call(e,n)&&(r[n]=e[n]);return r};const eI={type:"text",size:"sm",__staticSelector:"TextInput"},Tr=g.exports.forwardRef((e,t)=>{const r=E_("TextInput",eI,e),{inputProps:n,wrapperProps:o}=r,i=J6(r,["inputProps","wrapperProps"]);return S(Ua.Wrapper,{...lc({},o),children:S(Ua,{...Z6(lc(lc({},n),i),{ref:t})})})});Tr.displayName="@mantine/core/TextInput";var tI=Object.defineProperty,rI=Object.defineProperties,nI=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,BS=Object.prototype.hasOwnProperty,WS=Object.prototype.propertyIsEnumerable,nh=(e,t,r)=>t in e?tI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oI=(e,t)=>{for(var r in t||(t={}))BS.call(t,r)&&nh(e,r,t[r]);if(ds)for(var r of ds(t))WS.call(t,r)&&nh(e,r,t[r]);return e},iI=(e,t)=>rI(e,nI(t)),lI=(e,t)=>{var r={};for(var n in e)BS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ds)for(var n of ds(e))t.indexOf(n)<0&&WS.call(e,n)&&(r[n]=e[n]);return r};const aI=e=>e||"",sI=e=>{if(e==="-")return e;let t=e;t[0]==="."&&(t=`0${e}`);const r=parseFloat(t);if(!Number.isNaN(r))return e},oh={xs:10,sm:14,md:16,lg:18,xl:20},uI={step:1,hideControls:!1,size:"sm",precision:0,noClampOnBlur:!1,formatter:aI,parser:sI},$i=g.exports.forwardRef((e,t)=>{const r=ee("NumberInput",uI,e),{disabled:n,value:o,onChange:i,decimalSeparator:l,min:a,max:s,startValue:u,step:c,stepHoldInterval:f,stepHoldDelay:d,onBlur:p,onFocus:y,hideControls:w,radius:v,variant:m,precision:h,defaultValue:_,noClampOnBlur:b,handlersRef:O,classNames:x,styles:P,size:$,rightSection:C,rightSectionWidth:I,formatter:z,parser:D,inputMode:j,unstyled:B}=r,V=lI(r,["disabled","value","onChange","decimalSeparator","min","max","startValue","step","stepHoldInterval","stepHoldDelay","onBlur","onFocus","hideControls","radius","variant","precision","defaultValue","noClampOnBlur","handlersRef","classNames","styles","size","rightSection","rightSectionWidth","formatter","parser","inputMode","unstyled"]),{classes:W,cx:ne,theme:se}=X6({radius:v,size:$},{classNames:x,styles:P,unstyled:B,name:"NumberInput"}),[ie,ze]=g.exports.useState(!1),[R,T]=g.exports.useState(typeof o=="number"?o:typeof _=="number"?_:void 0),A=typeof o=="number"?o:R,[k,M]=g.exports.useState(typeof A=="number"?A.toFixed(h):""),G=g.exports.useRef(),Z=H=>{H!==R&&!Number.isNaN(H)&&(typeof i=="function"&&i(H),T(H))},De=(H="")=>{let oe=typeof H=="number"?String(H):H;return l&&(oe=oe.replace(/\./g,l)),z(oe)},ae=H=>{let oe=H;return l&&(oe=oe.replace(new RegExp(`\\${l}`,"g"),".")),D(oe)},Ve=typeof a=="number"?a:-1/0,or=typeof s=="number"?s:1/0,mn=g.exports.useRef();mn.current=()=>{var H,oe,me;if(R===void 0)Z((H=u??a)!=null?H:0),M((me=(oe=u?.toFixed(h))!=null?oe:a?.toFixed(h))!=null?me:"0");else{const He=Qu(R+c,Ve,or).toFixed(h);Z(parseFloat(He)),M(He)}};const co=g.exports.useRef();co.current=()=>{var H,oe,me;if(R===void 0)Z((H=u??a)!=null?H:0),M((me=(oe=u?.toFixed(h))!=null?oe:a?.toFixed(h))!=null?me:"0");else{const He=Qu(R-c,Ve,or).toFixed(h);Z(parseFloat(He)),M(He)}},X1(O,{increment:mn.current,decrement:co.current}),g.exports.useEffect(()=>{typeof o=="number"&&!ie&&(T(o),M(o.toFixed(h))),_===void 0&&o===void 0&&!ie&&(T(o),M(""))},[o]);const fo=d!==void 0&&f!==void 0,qe=g.exports.useRef(null),po=g.exports.useRef(0),Lt=()=>{qe.current&&window.clearTimeout(qe.current),qe.current=null,po.current=0},Gi=H=>{H?mn.current():co.current(),po.current+=1},Yi=H=>{if(Gi(H),fo){const oe=typeof f=="number"?f:f(po.current);qe.current=window.setTimeout(()=>Yi(H),oe)}},Ee=(H,oe)=>{H.preventDefault(),G.current.focus(),Gi(oe),fo&&(qe.current=window.setTimeout(()=>Yi(oe),d))};g.exports.useEffect(()=>(Lt(),Lt),[]);const Su=U("div",{className:W.rightSection,children:[S("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:A>=s,className:ne(W.control,W.controlUp),onPointerDown:H=>{Ee(H,!0)},onPointerUp:Lt,onPointerLeave:Lt,children:S(th,{size:se.fn.size({size:$,sizes:oh}),direction:"up"})}),S("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:A<=a,className:ne(W.control,W.controlDown),onPointerDown:H=>{Ee(H,!1)},onPointerUp:Lt,onPointerLeave:Lt,children:S(th,{size:se.fn.size({size:$,sizes:oh}),direction:"down"})})]}),wt=H=>{if(H.nativeEvent.isComposing)return;const me=H.target.value,He=ae(me);M(He),me===""||me==="-"?Z(void 0):me.trim()!==""&&!Number.isNaN(He)&&Z(parseFloat(He))},Te=H=>{var oe;if(H.target.value==="")M(""),Z(void 0);else{let me=H.target.value;(me[0]===`${l}`||me[0]===".")&&(me=`0${me}`);const He=ae(me),mo=Qu(parseFloat(He),Ve,or);Number.isNaN(mo)?M((oe=A?.toFixed(h))!=null?oe:""):b||(M(mo.toFixed(h)),Z(parseFloat(mo.toFixed(h))))}ze(!1),typeof p=="function"&&p(H)},go=H=>{ze(!0),typeof y=="function"&&y(H)},vn=H=>{if(H.repeat&&fo&&(H.key==="ArrowUp"||H.key==="ArrowDown")){H.preventDefault();return}H.key==="ArrowUp"?Ee(H,!0):H.key==="ArrowDown"&&Ee(H,!1)},Xi=H=>{(H.key==="ArrowUp"||H.key==="ArrowDown")&&Lt()};return S(Tr,{...iI(oI({},V),{variant:m,value:De(k),disabled:n,ref:pn(G,t),type:"text",onChange:wt,onBlur:Te,onFocus:go,onKeyDown:vn,onKeyUp:Xi,rightSection:C||(n||w||m==="unstyled"?null:Su),rightSectionWidth:I||se.fn.size({size:$,sizes:AS})+1,radius:v,max:s,min:a,step:c,size:$,styles:P,classNames:x,inputMode:j||G6(c,h,S2()),__staticSelector:"NumberInput",unstyled:B})})});$i.displayName="@mantine/core/NumberInput";var cI=Object.defineProperty,ih=Object.getOwnPropertySymbols,fI=Object.prototype.hasOwnProperty,dI=Object.prototype.propertyIsEnumerable,lh=(e,t,r)=>t in e?cI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pI=(e,t)=>{for(var r in t||(t={}))fI.call(t,r)&&lh(e,r,t[r]);if(ih)for(var r of ih(t))dI.call(t,r)&&lh(e,r,t[r]);return e};function US(e){return E.createElement("svg",pI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.createElement("path",{d:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z",fill:"currentColor"}))}var gI=Object.defineProperty,ah=Object.getOwnPropertySymbols,mI=Object.prototype.hasOwnProperty,vI=Object.prototype.propertyIsEnumerable,sh=(e,t,r)=>t in e?gI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hI=(e,t)=>{for(var r in t||(t={}))mI.call(t,r)&&sh(e,r,t[r]);if(ah)for(var r of ah(t))vI.call(t,r)&&sh(e,r,t[r]);return e};function GS(e){return E.createElement("svg",hI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.createElement("path",{d:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",fill:"currentColor"}))}var yI=Object.defineProperty,uh=Object.getOwnPropertySymbols,wI=Object.prototype.hasOwnProperty,_I=Object.prototype.propertyIsEnumerable,ch=(e,t,r)=>t in e?yI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SI=(e,t)=>{for(var r in t||(t={}))wI.call(t,r)&&ch(e,r,t[r]);if(uh)for(var r of uh(t))_I.call(t,r)&&ch(e,r,t[r]);return e};function YS(e){return E.createElement("svg",SI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.createElement("path",{d:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",fill:"currentColor"}))}var bI=Object.defineProperty,fh=Object.getOwnPropertySymbols,xI=Object.prototype.hasOwnProperty,PI=Object.prototype.propertyIsEnumerable,dh=(e,t,r)=>t in e?bI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$I=(e,t)=>{for(var r in t||(t={}))xI.call(t,r)&&dh(e,r,t[r]);if(fh)for(var r of fh(t))PI.call(t,r)&&dh(e,r,t[r]);return e};function XS(e){return E.createElement("svg",$I({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.createElement("path",{d:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",fill:"currentColor"}))}var OI=Object.defineProperty,ph=Object.getOwnPropertySymbols,CI=Object.prototype.hasOwnProperty,EI=Object.prototype.propertyIsEnumerable,gh=(e,t,r)=>t in e?OI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kI=(e,t)=>{for(var r in t||(t={}))CI.call(t,r)&&gh(e,r,t[r]);if(ph)for(var r of ph(t))EI.call(t,r)&&gh(e,r,t[r]);return e};function KS(e){return E.createElement("svg",kI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.createElement("path",{d:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",fill:"currentColor"}))}var RI=Object.defineProperty,ps=Object.getOwnPropertySymbols,qS=Object.prototype.hasOwnProperty,QS=Object.prototype.propertyIsEnumerable,mh=(e,t,r)=>t in e?RI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,II=(e,t)=>{for(var r in t||(t={}))qS.call(t,r)&&mh(e,r,t[r]);if(ps)for(var r of ps(t))QS.call(t,r)&&mh(e,r,t[r]);return e},NI=(e,t)=>{var r={};for(var n in e)qS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ps)for(var n of ps(e))t.indexOf(n)<0&&QS.call(e,n)&&(r[n]=e[n]);return r};const zI={dots:US,next:GS,prev:YS,first:XS,last:KS},DI={dots:US,prev:GS,next:YS,last:XS,first:KS};function ZS(e){var t=e,{page:r,active:n,onClick:o}=t,i=NI(t,["page","active","onClick"]);const a=(at().dir==="rtl"?DI:zI)[r],s=a?E.createElement(a,null):r;return E.createElement("button",II({type:"button",onClick:o},i),s)}ZS.displayName="@mantine/core/Pagination/DefaultItem";var TI=Object.defineProperty,MI=Object.defineProperties,jI=Object.getOwnPropertyDescriptors,vh=Object.getOwnPropertySymbols,LI=Object.prototype.hasOwnProperty,FI=Object.prototype.propertyIsEnumerable,hh=(e,t,r)=>t in e?TI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,AI=(e,t)=>{for(var r in t||(t={}))LI.call(t,r)&&hh(e,r,t[r]);if(vh)for(var r of vh(t))FI.call(t,r)&&hh(e,r,t[r]);return e},VI=(e,t)=>MI(e,jI(t));const yh={xs:22,sm:26,md:32,lg:38,xl:44};var HI=Q((e,{size:t,radius:r,color:n})=>{const o=e.fn.variant({color:n,variant:"filled"});return{item:VI(AI({},e.fn.focusStyles()),{cursor:"pointer",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,height:e.fn.size({size:t,sizes:yh}),minWidth:e.fn.size({size:t,sizes:yh}),padding:`0 ${e.fn.size({size:t,sizes:e.spacing})/2}px`,fontSize:e.fn.size({size:t,sizes:e.fontSizes}),borderRadius:e.fn.radius(r),lineHeight:1,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,"&:active:not(:disabled):not([data-dots])":e.activeStyles,"&:disabled":{opacity:.6,cursor:"not-allowed",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&[data-dots]":{cursor:"default",borderColor:"transparent",backgroundColor:"transparent"},"&[data-active]":{borderColor:"transparent",color:o.color,backgroundColor:o.background}})}}),BI=HI,WI=Object.defineProperty,gs=Object.getOwnPropertySymbols,JS=Object.prototype.hasOwnProperty,eb=Object.prototype.propertyIsEnumerable,wh=(e,t,r)=>t in e?WI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UI=(e,t)=>{for(var r in t||(t={}))JS.call(t,r)&&wh(e,r,t[r]);if(gs)for(var r of gs(t))eb.call(t,r)&&wh(e,r,t[r]);return e},GI=(e,t)=>{var r={};for(var n in e)JS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gs)for(var n of gs(e))t.indexOf(n)<0&&eb.call(e,n)&&(r[n]=e[n]);return r};const YI={itemComponent:ZS,initialPage:1,siblings:1,boundaries:1,size:"md",radius:"sm",withEdges:!1,withControls:!0},tb=g.exports.forwardRef((e,t)=>{const r=ee("Pagination",YI,e),{itemComponent:n,classNames:o,styles:i,page:l,initialPage:a,color:s,total:u,siblings:c,boundaries:f,size:d,radius:p,onChange:y,getItemAriaLabel:w,spacing:v,withEdges:m,withControls:h,sx:_,unstyled:b}=r,O=GI(r,["itemComponent","classNames","styles","page","initialPage","color","total","siblings","boundaries","size","radius","onChange","getItemAriaLabel","spacing","withEdges","withControls","sx","unstyled"]),{classes:x,theme:P}=BI({color:s,size:d,radius:p},{classNames:o,styles:i,unstyled:b,name:"Pagination"}),{range:$,setPage:C,next:I,previous:z,active:D,first:j,last:B}=s2({page:l,siblings:c,total:u,onChange:y,initialPage:a,boundaries:f}),V=$.map((W,ne)=>S(n,{page:W,active:W===D,"aria-current":W===D?"page":void 0,"aria-label":typeof w=="function"?w(W):null,tabIndex:W==="dots"?-1:0,"data-dots":W==="dots"||void 0,"data-active":W===D||void 0,className:x.item,onClick:W!=="dots"?()=>C(W):void 0},ne));return U(jt,{...UI({role:"navigation",spacing:v||P.fn.size({size:d,sizes:P.spacing})/2,ref:t,sx:_,unstyled:b},O),children:[m&&S(n,{page:"first",onClick:j,"aria-label":w?w("first"):void 0,"aria-disabled":D===1,className:x.item,disabled:D===1}),h&&S(n,{page:"prev",onClick:z,"aria-label":w?w("prev"):void 0,"aria-disabled":D===1,className:x.item,disabled:D===1}),V,h&&S(n,{page:"next",onClick:I,"aria-label":w?w("next"):void 0,"aria-disabled":D===u,className:x.item,disabled:D===u}),m&&S(n,{page:"last",onClick:B,"aria-label":w?w("last"):void 0,"aria-disabled":D===u,className:x.item,disabled:D===u})]})});tb.displayName="@mantine/core/Pagination";function XI({data:e,searchable:t,limit:r,searchValue:n,filter:o,value:i,filterDataOnExactSearchMatch:l}){if(!t)return e;const a=i!=null&&e.find(u=>u.value===i)||null;if(a&&!l&&a?.label===n)return e;const s=[];for(let u=0;u=r));u+=1);return s}var KI=Q(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}})),qI=KI,QI=Object.defineProperty,ZI=Object.defineProperties,JI=Object.getOwnPropertyDescriptors,ms=Object.getOwnPropertySymbols,rb=Object.prototype.hasOwnProperty,nb=Object.prototype.propertyIsEnumerable,_h=(e,t,r)=>t in e?QI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,To=(e,t)=>{for(var r in t||(t={}))rb.call(t,r)&&_h(e,r,t[r]);if(ms)for(var r of ms(t))nb.call(t,r)&&_h(e,r,t[r]);return e},ac=(e,t)=>ZI(e,JI(t)),e8=(e,t)=>{var r={};for(var n in e)rb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ms)for(var n of ms(e))t.indexOf(n)<0&&nb.call(e,n)&&(r[n]=e[n]);return r};function t8(e,t){return t.label.toLowerCase().trim().includes(e.toLowerCase().trim())}function r8(e,t){return!!e&&!t.some(r=>r.label.toLowerCase()===e.toLowerCase())}const n8={required:!1,size:"sm",shadow:"sm",itemComponent:Ew,transition:"fade",transitionDuration:0,initiallyOpened:!1,filter:t8,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:r8,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:io("popover"),clearButtonTabIndex:0,positionDependencies:[],dropdownPosition:"flip"},Oi=g.exports.forwardRef((e,t)=>{const r=E_("Select",n8,e),{inputProps:n,wrapperProps:o,shadow:i,data:l,value:a,defaultValue:s,onChange:u,itemComponent:c,onKeyDown:f,onBlur:d,onFocus:p,transition:y,transitionDuration:w,initiallyOpened:v,transitionTimingFunction:m,unstyled:h,classNames:_,styles:b,filter:O,maxDropdownHeight:x,searchable:P,clearable:$,nothingFound:C,clearButtonLabel:I,limit:z,disabled:D,onSearchChange:j,rightSection:B,rightSectionWidth:V,creatable:W,getCreateLabel:ne,shouldCreate:se,selectOnBlur:ie,onCreate:ze,dropdownComponent:R,onDropdownClose:T,onDropdownOpen:A,withinPortal:k,switchDirectionOnFlip:M,zIndex:G,name:Z,dropdownPosition:De,allowDeselect:ae,placeholder:Ve,filterDataOnExactSearchMatch:or,clearButtonTabIndex:mn,form:co,positionDependencies:fo,readOnly:qe}=r,po=e8(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","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","clearButtonTabIndex","form","positionDependencies","readOnly"]),{classes:Lt,cx:Gi,theme:Yi}=qI(),[Ee,Su]=g.exports.useState(v),[wt,Te]=g.exports.useState(-1),go=g.exports.useRef(),vn=g.exports.useRef({}),[Xi,H]=g.exports.useState("column"),oe=Xi==="column",{scrollIntoView:me,targetRef:He,scrollableRef:mo}=p2({duration:0,offset:5,cancelable:!1,isList:!0}),lx=ae===void 0?$:ae,st=F=>{if(Ee!==F){Su(F);const ge=F?A:T;typeof ge=="function"&&ge()}},bu=W&&typeof ne=="function";let xu=null;const ax=l.map(F=>typeof F=="string"?{label:F,value:F}:F),Ki=N$({data:ax}),[_t,hn,dp]=Li({value:a,defaultValue:s,finalValue:null,onChange:u}),Ft=Ki.find(F=>F.value===_t),[Mr,sx]=g.exports.useState(Ft?.label||""),jr=F=>{sx(F),P&&typeof j=="function"&&j(F)},ux=()=>{var F;qe||(hn(null),dp||jr(""),(F=go.current)==null||F.focus())};g.exports.useEffect(()=>{const F=Ki.find(ge=>ge.value===_t);F?jr(F.label):(!bu||!_t)&&jr("")},[_t]),g.exports.useEffect(()=>{Ft&&(!P||!Ee)&&jr(Ft.label)},[Ft?.label]);const qi=F=>{if(!qe)if(lx&&Ft?.value===F.value)hn(null),st(!1);else{if(F.creatable&&typeof ze=="function"){const ge=ze(F.value);hn(typeof ge=="string"?ge:ge.value)}else hn(F.value);dp||jr(F.label),Te(-1),st(!1),go.current.focus()}},xe=XI({data:Ki,searchable:P,limit:z,searchValue:Mr,filter:O,filterDataOnExactSearchMatch:or,value:_t});bu&&se(Mr,xe)&&(xu=ne(Mr),xe.push({label:Mr,value:Mr,creatable:!0}));const pp=(F,ge,Qe)=>{let Ze=F;for(;Qe(Ze);)if(Ze=ge(Ze),!xe[Ze].disabled)return Ze;return F};kr(()=>{Te(-1)},[Mr]);const vo=_t?xe.findIndex(F=>F.value===_t):0,gp=()=>{Te(F=>{var ge;const Qe=pp(F,Ze=>Ze-1,Ze=>Ze>0);return He.current=vn.current[(ge=xe[Qe])==null?void 0:ge.value],me({alignment:oe?"start":"end"}),Qe})},mp=()=>{Te(F=>{var ge;const Qe=pp(F,Ze=>Ze+1,Ze=>Zewindow.setTimeout(()=>{var F;He.current=vn.current[(F=xe[vo])==null?void 0:F.value],me({alignment:oe?"end":"start"})},0),cx=F=>{switch(typeof f=="function"&&f(F),F.key){case"ArrowUp":{F.preventDefault(),Ee?oe?gp():mp():(Te(vo),st(!0),ho());break}case"ArrowDown":{F.preventDefault(),Ee?oe?mp():gp():(Te(vo),st(!0),ho());break}case"Home":{if(!P){F.preventDefault(),Ee||st(!0);const ge=xe.findIndex(Qe=>!Qe.disabled);Te(ge),me({alignment:oe?"end":"start"})}break}case"End":{if(!P){F.preventDefault(),Ee||st(!0);const ge=xe.map(Qe=>!!Qe.disabled).lastIndexOf(!1);Te(ge),me({alignment:oe?"end":"start"})}break}case"Escape":{F.preventDefault(),st(!1),Te(-1);break}case" ":{P||(xe[wt]&&Ee?(F.preventDefault(),qi(xe[wt])):(st(!0),Te(vo),ho()));break}case"Enter":P||F.preventDefault(),xe[wt]&&Ee&&(F.preventDefault(),qi(xe[wt]))}},fx=F=>{typeof d=="function"&&d(F);const ge=Ki.find(Qe=>Qe.value===_t);ie&&xe[wt]&&Ee&&qi(xe[wt]),jr(ge?.label||""),st(!1)},dx=F=>{typeof p=="function"&&p(F),P&&(st(!0),ho())},px=F=>{qe||(jr(F.currentTarget.value),$&&F.currentTarget.value===""&&hn(null),Te(-1),st(!0))},gx=()=>{if(!qe){let F=!0;P||(F=!Ee),st(F),_t&&F&&(Te(vo),ho())}},yo=!qe&&(xe.length>0?Ee:Ee&&!!C);return S(Ua.Wrapper,{...ac(To({},o),{__staticSelector:"Select"}),children:U(ii,{opened:yo,transition:y,transitionDuration:w,shadow:"sm",withinPortal:k,__staticSelector:"Select",onDirectionChange:H,switchDirectionOnFlip:M,zIndex:G,dropdownPosition:De,positionDependencies:fo,classNames:_,styles:b,unstyled:h,children:[S(ii.Target,{children:U("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":yo?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":yo,onMouseLeave:()=>Te(-1),tabIndex:-1,children:[S("input",{type:"hidden",name:Z,value:_t||"",form:co,disabled:D}),S(Ua,{...To(ac(To(To({autoComplete:"off",type:"search"},n),po),{ref:pn(t,go),onKeyDown:cx,__staticSelector:"Select",value:Mr,placeholder:Ve,onChange:px,"aria-autocomplete":"list","aria-controls":yo?`${n.id}-items`:null,"aria-activedescendant":wt>=0?`${n.id}-${wt}`:null,onClick:gx,onBlur:fx,onFocus:dx,readOnly:!P||qe,disabled:D,"data-mantine-stop-propagation":yo,name:null,classNames:ac(To({},_),{input:Gi({[Lt.input]:!P},_?.input)})}),U6({theme:Yi,rightSection:B,rightSectionWidth:V,styles:b,size:n.size,shouldClear:$&&!!Ft,clearButtonLabel:I,onClear:ux,error:o.error,clearButtonTabIndex:mn,disabled:D,readOnly:qe}))})]})}),S(ii.Dropdown,{component:R||Wd,maxHeight:x,direction:Xi,id:n.id,innerRef:mo,children:S($w,{data:xe,hovered:wt,classNames:_,styles:b,isItemSelected:F=>F===_t,uuid:n.id,__staticSelector:"Select",onItemHover:Te,onItemSelect:qi,itemsRefs:vn,itemComponent:c,size:n.size,nothingFound:C,creatable:bu&&!!xu,createLabel:xu,"aria-label":o.label,unstyled:h})})]})})});Oi.displayName="@mantine/core/Select";function o8(e,t){if(t.length===0)return t;const r="maxWidth"in t[0]?"maxWidth":"minWidth",n=[...t].sort((o,i)=>e.fn.size({size:i[r],sizes:e.breakpoints})-e.fn.size({size:o[r],sizes:e.breakpoints}));return r==="minWidth"?n.reverse():n}var i8=Object.defineProperty,Sh=Object.getOwnPropertySymbols,l8=Object.prototype.hasOwnProperty,a8=Object.prototype.propertyIsEnumerable,bh=(e,t,r)=>t in e?i8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s8=(e,t)=>{for(var r in t||(t={}))l8.call(t,r)&&bh(e,r,t[r]);if(Sh)for(var r of Sh(t))a8.call(t,r)&&bh(e,r,t[r]);return e},u8=Q((e,{spacing:t,breakpoints:r,cols:n})=>{const o=o8(e,r).reduce((i,l)=>{const a="maxWidth"in l?"max-width":"min-width",s=e.fn.size({size:a==="max-width"?l.maxWidth:l.minWidth,sizes:e.breakpoints});return i[`@media (${a}: ${s+(a==="max-width"?0:1)}px)`]={gridTemplateColumns:`repeat(${l.cols}, minmax(0, 1fr))`,gap:e.fn.size({size:l.spacing||t,sizes:e.spacing})},i},{});return{root:s8({boxSizing:"border-box",display:"grid",gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,gap:e.fn.size({size:t,sizes:e.spacing})},o)}}),c8=u8,f8=Object.defineProperty,vs=Object.getOwnPropertySymbols,ob=Object.prototype.hasOwnProperty,ib=Object.prototype.propertyIsEnumerable,xh=(e,t,r)=>t in e?f8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d8=(e,t)=>{for(var r in t||(t={}))ob.call(t,r)&&xh(e,r,t[r]);if(vs)for(var r of vs(t))ib.call(t,r)&&xh(e,r,t[r]);return e},p8=(e,t)=>{var r={};for(var n in e)ob.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vs)for(var n of vs(e))t.indexOf(n)<0&&ib.call(e,n)&&(r[n]=e[n]);return r};const g8={breakpoints:[],cols:1,spacing:"md"},lb=g.exports.forwardRef((e,t)=>{const r=ee("SimpleGrid",g8,e),{className:n,breakpoints:o,cols:i,spacing:l,children:a,unstyled:s}=r,u=p8(r,["className","breakpoints","cols","spacing","children","unstyled"]),{classes:c,cx:f}=c8({breakpoints:o,cols:i,spacing:l},{unstyled:s,name:"SimpleGrid"});return S(K,{...d8({className:f(c.root,n),ref:t},u),children:a})});lb.displayName="@mantine/core/SimpleGrid";var m8=Object.defineProperty,v8=Object.defineProperties,h8=Object.getOwnPropertyDescriptors,Ph=Object.getOwnPropertySymbols,y8=Object.prototype.hasOwnProperty,w8=Object.prototype.propertyIsEnumerable,$h=(e,t,r)=>t in e?m8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oh=(e,t)=>{for(var r in t||(t={}))y8.call(t,r)&&$h(e,r,t[r]);if(Ph)for(var r of Ph(t))w8.call(t,r)&&$h(e,r,t[r]);return e},Ch=(e,t)=>v8(e,h8(t));const _8={xs:16,sm:20,md:24,lg:30,xl:36},sc={xs:30,sm:38,md:46,lg:56,xl:68},Eh={xs:12,sm:14,md:18,lg:22,xl:28},S8={xs:5,sm:6,md:7,lg:9,xl:11};var b8=Q((e,{size:t,radius:r,color:n,offLabel:o,onLabel:i})=>{const l=e.fn.size({size:t,sizes:Eh}),a=e.fn.size({size:r,sizes:e.radius}),s=e.fn.variant({variant:"filled",color:n});return{root:{display:"flex",alignItems:"center"},input:Ch(Oh({},e.fn.focusStyles()),{overflow:"hidden",WebkitTapHighlightColor:"transparent",position:"relative",borderRadius:a,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[2],border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,height:e.fn.size({size:t,sizes:_8}),width:e.fn.size({size:t,sizes:sc}),minWidth:e.fn.size({size:t,sizes:sc}),margin:0,transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:"150ms",boxSizing:"border-box",appearance:"none",display:"flex",alignItems:"center",fontSize:e.fn.size({size:t,sizes:S8}),fontWeight:600,cursor:e.cursorType,"&::before":{zIndex:1,borderRadius:a,boxSizing:"border-box",content:'""',display:"block",backgroundColor:e.white,height:l,width:l,border:`1px solid ${e.colorScheme==="dark"?e.white:e.colors.gray[3]}`,transition:`transform 150ms ${e.transitionTimingFunction}`,transform:`translateX(${t==="xs"?1:2}px)`,"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":!1}},"&::after":{position:"absolute",zIndex:0,display:"flex",height:"100%",alignItems:"center",lineHeight:0,right:"10%",transform:"translateX(0)",content:o?`'${o}'`:"''",color:e.colorScheme==="dark"?e.colors.dark[1]:e.colors.gray[6],transition:`color 150ms ${e.transitionTimingFunction}`},"&:checked":{backgroundColor:s.background,borderColor:s.background,"&::before":{transform:`translateX(${e.fn.size({size:t,sizes:sc})-e.fn.size({size:t,sizes:Eh})-(t==="xs"?3:4)}px)`,borderColor:e.white},"&::after":{position:"absolute",zIndex:0,display:"flex",height:"100%",alignItems:"center",lineHeight:0,left:"10%",transform:"translateX(0)",content:i?`'${i}'`:"''",color:e.white,transition:`color 150ms ${e.transitionTimingFunction}`}},"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],cursor:"not-allowed","&::before":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],backgroundColor:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[0]}}}),label:Ch(Oh({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),fontFamily:e.fontFamily,paddingLeft:e.spacing.sm,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,cursor:e.cursorType})}}),x8=b8,P8=Object.defineProperty,$8=Object.defineProperties,O8=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,ab=Object.prototype.hasOwnProperty,sb=Object.prototype.propertyIsEnumerable,kh=(e,t,r)=>t in e?P8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uc=(e,t)=>{for(var r in t||(t={}))ab.call(t,r)&&kh(e,r,t[r]);if(hs)for(var r of hs(t))sb.call(t,r)&&kh(e,r,t[r]);return e},C8=(e,t)=>$8(e,O8(t)),E8=(e,t)=>{var r={};for(var n in e)ab.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hs)for(var n of hs(e))t.indexOf(n)<0&&sb.call(e,n)&&(r[n]=e[n]);return r};const k8={offLabel:"",onLabel:"",size:"sm",radius:"xl"},rp=g.exports.forwardRef((e,t)=>{const r=ee("Switch",k8,e),{className:n,color:o,label:i,offLabel:l,onLabel:a,id:s,style:u,size:c,radius:f,wrapperProps:d,children:p,unstyled:y,styles:w,classNames:v,sx:m}=r,h=E8(r,["className","color","label","offLabel","onLabel","id","style","size","radius","wrapperProps","children","unstyled","styles","classNames","sx"]),{classes:_,cx:b}=x8({size:c,color:o,radius:f,offLabel:l,onLabel:a},{unstyled:y,styles:w,classNames:v,name:"Switch"}),{systemStyles:O,rest:x}=ru(h),P=lo(s);return U(K,{...uc(uc({className:b(_.root,n),style:u,sx:m},O),d),children:[S("input",{...C8(uc({},x),{id:P,ref:t,type:"checkbox",className:_.input})}),i&&S("label",{className:_.label,htmlFor:P,children:i})]})});rp.displayName="@mantine/core/Switch";var R8=Object.defineProperty,I8=Object.defineProperties,N8=Object.getOwnPropertyDescriptors,Rh=Object.getOwnPropertySymbols,z8=Object.prototype.hasOwnProperty,D8=Object.prototype.propertyIsEnumerable,Ih=(e,t,r)=>t in e?R8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T8=(e,t)=>{for(var r in t||(t={}))z8.call(t,r)&&Ih(e,r,t[r]);if(Rh)for(var r of Rh(t))D8.call(t,r)&&Ih(e,r,t[r]);return e},M8=(e,t)=>I8(e,N8(t)),j8=Q((e,{captionSide:t,horizontalSpacing:r,verticalSpacing:n,fontSize:o})=>({root:M8(T8({},e.fn.fontStyles()),{width:"100%",borderCollapse:"collapse",captionSide:t,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,"& caption":{marginTop:t==="top"?0:e.spacing.xs,marginBottom:t==="bottom"?0:e.spacing.xs,fontSize:e.fontSizes.sm,color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]},"& thead tr th, & tfoot tr th":{textAlign:"left",fontWeight:"bold",color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[7],fontSize:e.fn.size({size:o,sizes:e.fontSizes}),padding:`${e.fn.size({size:n,sizes:e.spacing})}px ${e.fn.size({size:r,sizes:e.spacing})}px`},"& thead tr th":{borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`},"& tfoot tr th":{borderTop:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`},"& tbody tr td":{padding:`${e.fn.size({size:n,sizes:e.spacing})}px ${e.fn.size({size:r,sizes:e.spacing})}px`,borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,fontSize:e.fn.size({size:o,sizes:e.fontSizes})},"& tbody tr:last-of-type td":{borderBottom:"none"},"&[data-striped] tbody tr:nth-of-type(odd)":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]},"&[data-hover] tbody tr":e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1]})})})),L8=j8,F8=Object.defineProperty,A8=Object.defineProperties,V8=Object.getOwnPropertyDescriptors,ys=Object.getOwnPropertySymbols,ub=Object.prototype.hasOwnProperty,cb=Object.prototype.propertyIsEnumerable,Nh=(e,t,r)=>t in e?F8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H8=(e,t)=>{for(var r in t||(t={}))ub.call(t,r)&&Nh(e,r,t[r]);if(ys)for(var r of ys(t))cb.call(t,r)&&Nh(e,r,t[r]);return e},B8=(e,t)=>A8(e,V8(t)),W8=(e,t)=>{var r={};for(var n in e)ub.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ys)for(var n of ys(e))t.indexOf(n)<0&&cb.call(e,n)&&(r[n]=e[n]);return r};const U8={striped:!1,highlightOnHover:!1,captionSide:"top",horizontalSpacing:"xs",fontSize:"sm",verticalSpacing:7},fb=g.exports.forwardRef((e,t)=>{const r=ee("Table",U8,e),{className:n,children:o,striped:i,highlightOnHover:l,captionSide:a,horizontalSpacing:s,verticalSpacing:u,fontSize:c,unstyled:f}=r,d=W8(r,["className","children","striped","highlightOnHover","captionSide","horizontalSpacing","verticalSpacing","fontSize","unstyled"]),{classes:p,cx:y}=L8({captionSide:a,verticalSpacing:u,horizontalSpacing:s,fontSize:c},{unstyled:f,name:"Table"});return S(K,{...B8(H8({},d),{component:"table",ref:t,className:y(p.root,n),"data-striped":i||void 0,"data-hover":l||void 0}),children:o})});fb.displayName="@mantine/core/Table";const _f={context:"Tabs component was not found in the tree",value:"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value"},[G8,np]=Rd(_f.context);var Y8=Object.defineProperty,zh=Object.getOwnPropertySymbols,X8=Object.prototype.hasOwnProperty,K8=Object.prototype.propertyIsEnumerable,Dh=(e,t,r)=>t in e?Y8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q8=(e,t)=>{for(var r in t||(t={}))X8.call(t,r)&&Dh(e,r,t[r]);if(zh)for(var r of zh(t))K8.call(t,r)&&Dh(e,r,t[r]);return e};function Q8({variant:e,orientation:t,inverted:r},n){const o=t==="vertical";return e==="default"?{[o?"borderRight":r?"borderTop":"borderBottom"]:`2px solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:e==="outline"?{[o?"borderRight":r?"borderTop":"borderBottom"]:`1px solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:e==="pills"?{gap:n.spacing.sm/2}:{}}var Z8=Q((e,t)=>{const r=t.orientation==="vertical";return{tabsList:q8({display:"flex",flexDirection:r?"column":"row",justifyContent:J_[t.position],'& [role="tab"]':{flex:t.grow?1:void 0}},Q8(t,e))}}),J8=Z8,eN=Object.defineProperty,tN=Object.defineProperties,rN=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,db=Object.prototype.hasOwnProperty,pb=Object.prototype.propertyIsEnumerable,Th=(e,t,r)=>t in e?eN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nN=(e,t)=>{for(var r in t||(t={}))db.call(t,r)&&Th(e,r,t[r]);if(ws)for(var r of ws(t))pb.call(t,r)&&Th(e,r,t[r]);return e},oN=(e,t)=>tN(e,rN(t)),iN=(e,t)=>{var r={};for(var n in e)db.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ws)for(var n of ws(e))t.indexOf(n)<0&&pb.call(e,n)&&(r[n]=e[n]);return r};const gb=g.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,grow:i=!1,position:l="left"}=r,a=iN(r,["children","className","grow","position"]);const{orientation:s,variant:u,color:c,radius:f,inverted:d}=np(),{classNames:p,styles:y,unstyled:w}=dn(),{classes:v,cx:m}=J8({orientation:s,grow:i,variant:u,color:c,position:l,radius:f,inverted:d},{name:"Tabs",unstyled:w,classNames:p,styles:y});return S(K,{...oN(nN({},a),{className:m(v.tabsList,o),ref:t,role:"tablist","aria-orientation":s}),children:n})});gb.displayName="@mantine/core/TabsList";var lN=Q((e,{orientation:t})=>({panel:{flex:t==="vertical"?1:void 0}})),aN=lN,sN=Object.defineProperty,uN=Object.defineProperties,cN=Object.getOwnPropertyDescriptors,_s=Object.getOwnPropertySymbols,mb=Object.prototype.hasOwnProperty,vb=Object.prototype.propertyIsEnumerable,Mh=(e,t,r)=>t in e?sN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fN=(e,t)=>{for(var r in t||(t={}))mb.call(t,r)&&Mh(e,r,t[r]);if(_s)for(var r of _s(t))vb.call(t,r)&&Mh(e,r,t[r]);return e},dN=(e,t)=>uN(e,cN(t)),pN=(e,t)=>{var r={};for(var n in e)mb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_s)for(var n of _s(e))t.indexOf(n)<0&&vb.call(e,n)&&(r[n]=e[n]);return r};const hb=g.exports.forwardRef((e,t)=>{var r=e,{value:n,children:o,sx:i,className:l}=r,a=pN(r,["value","children","sx","className"]);const s=np(),{classNames:u,styles:c,unstyled:f}=dn(),{classes:d,cx:p}=aN({orientation:s.orientation,variant:s.variant,color:s.color,radius:s.radius,inverted:s.inverted},{name:"Tabs",unstyled:f,classNames:u,styles:c});return S(K,{...dN(fN({},a),{ref:t,sx:[{display:s.value!==n?"none":void 0},...Si(i)],className:p(d.panel,l),role:"tabpanel",id:s.getPanelId(n),"aria-labelledby":s.getTabId(n)}),children:o})});hb.displayName="@mantine/core/TabsPanel";var gN=Object.defineProperty,mN=Object.defineProperties,vN=Object.getOwnPropertyDescriptors,jh=Object.getOwnPropertySymbols,hN=Object.prototype.hasOwnProperty,yN=Object.prototype.propertyIsEnumerable,Lh=(e,t,r)=>t in e?gN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,In=(e,t)=>{for(var r in t||(t={}))hN.call(t,r)&&Lh(e,r,t[r]);if(jh)for(var r of jh(t))yN.call(t,r)&&Lh(e,r,t[r]);return e},Fh=(e,t)=>mN(e,vN(t));function wN(e,{variant:t,orientation:r,color:n,radius:o,inverted:i}){const l=r==="vertical",a=e.fn.variant({color:n,variant:"filled"}),s=e.fn.radius(o),u=r==="vertical"?`${s}px 0 0 ${s}px`:i?`0 0 ${s}px ${s}px`:`${s}px ${s}px 0 0`;return t==="default"?Fh(In({[l?"borderRight":i?"borderTop":"borderBottom"]:"2px solid transparent",[l?"marginRight":i?"marginTop":"marginBottom"]:-2,borderRadius:u},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]})),{"&[data-active]":In({borderColor:a.background,color:e.colorScheme==="dark"?e.white:e.black},e.fn.hover({borderColor:a.background}))}):t==="outline"?{borderRadius:u,border:"1px solid transparent",[l?"borderRight":i?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3],"&::before":{content:'""',backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,position:"absolute",bottom:l?0:i?"unset":-1,top:l?0:i?-1:"unset",[l?"width":"height"]:1,right:l?-1:0,left:l?"unset":0}}}:t==="pills"?Fh(In({borderRadius:e.fn.radius(o)},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]})),{"&[data-active]":In({backgroundColor:a.background,color:e.white},e.fn.hover({backgroundColor:a.background}))}):{}}var _N=Q((e,t)=>({tabLabel:{},tab:In({position:"relative",padding:`${e.spacing.xs}px ${e.spacing.md}px`,paddingLeft:t.withIcon?e.spacing.xs:void 0,paddingRight:t.withRightSection?e.spacing.xs:void 0,fontSize:e.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:t.orientation==="horizontal"?"center":void 0,lineHeight:1,"&:disabled":In({opacity:.5,cursor:"not-allowed"},e.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},wN(e,t)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:7}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:7}}})),SN=_N,bN=Object.defineProperty,xN=Object.defineProperties,PN=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertySymbols,yb=Object.prototype.hasOwnProperty,wb=Object.prototype.propertyIsEnumerable,Ah=(e,t,r)=>t in e?bN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$N=(e,t)=>{for(var r in t||(t={}))yb.call(t,r)&&Ah(e,r,t[r]);if(Ss)for(var r of Ss(t))wb.call(t,r)&&Ah(e,r,t[r]);return e},ON=(e,t)=>xN(e,PN(t)),CN=(e,t)=>{var r={};for(var n in e)yb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ss)for(var n of Ss(e))t.indexOf(n)<0&&wb.call(e,n)&&(r[n]=e[n]);return r};const _b=g.exports.forwardRef((e,t)=>{var r=e,{value:n,children:o,onKeyDown:i,onClick:l,className:a,icon:s,rightSection:u,color:c}=r,f=CN(r,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]);const d=np(),{classNames:p,styles:y,unstyled:w}=dn(),v=!!s,m=!!u,{theme:h,classes:_,cx:b}=SN({withIcon:v||m&&!o,withRightSection:m||v&&!o,orientation:d.orientation,color:c||d.color,variant:d.variant,radius:d.radius,inverted:d.inverted},{name:"Tabs",unstyled:w,classNames:p,styles:y}),O=n===d.value,x=P=>{d.onTabChange(d.allowTabDeactivation&&n===d.value?null:n),l?.(P)};return U(nu,{...ON($N({},f),{unstyled:w,className:b(_.tab,a),"data-active":O||void 0,ref:t,type:"button",role:"tab",id:d.getTabId(n),"aria-selected":O,tabIndex:O||d.value===null?0:-1,"aria-controls":d.getPanelId(n),onClick:x,onKeyDown:p1({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:d.activateTabWithKeyboard,loop:d.loop,dir:h.dir,orientation:d.orientation,onKeyDown:i})}),children:[s&&S("div",{className:_.tabIcon,children:s}),o&&S("div",{className:_.tabLabel,children:o}),u&&S("div",{className:_.tabRightSection,children:u})]})});_b.displayName="@mantine/core/Tab";function Sb({defaultValue:e,value:t,onTabChange:r,orientation:n,children:o,loop:i,id:l,activateTabWithKeyboard:a,allowTabDeactivation:s,variant:u,color:c,radius:f,inverted:d}){const p=lo(l),[y,w]=Li({value:t,defaultValue:e,finalValue:null,onChange:r});return E.createElement(G8,{value:{value:y,orientation:n,id:p,loop:i,activateTabWithKeyboard:a,getTabId:Dg(`${p}-tab`,_f.value),getPanelId:Dg(`${p}-panel`,_f.value),onTabChange:w,allowTabDeactivation:s,variant:u,color:c,radius:f,inverted:d}},o)}Sb.displayName="@mantine/core/TabsProvider";var EN=Q((e,{orientation:t})=>({root:{display:t==="vertical"?"flex":void 0}})),kN=EN,RN=Object.defineProperty,IN=Object.defineProperties,NN=Object.getOwnPropertyDescriptors,bs=Object.getOwnPropertySymbols,bb=Object.prototype.hasOwnProperty,xb=Object.prototype.propertyIsEnumerable,Vh=(e,t,r)=>t in e?RN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zN=(e,t)=>{for(var r in t||(t={}))bb.call(t,r)&&Vh(e,r,t[r]);if(bs)for(var r of bs(t))xb.call(t,r)&&Vh(e,r,t[r]);return e},DN=(e,t)=>IN(e,NN(t)),TN=(e,t)=>{var r={};for(var n in e)bb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&bs)for(var n of bs(e))t.indexOf(n)<0&&xb.call(e,n)&&(r[n]=e[n]);return r};const MN={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default"},Je=g.exports.forwardRef((e,t)=>{const r=ee("Tabs",MN,e),{defaultValue:n,value:o,orientation:i,loop:l,activateTabWithKeyboard:a,allowTabDeactivation:s,children:u,id:c,onTabChange:f,variant:d,color:p,className:y,unstyled:w,classNames:v,styles:m,radius:h,inverted:_}=r,b=TN(r,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted"]),{classes:O,cx:x}=kN({orientation:i,color:p,variant:d,radius:h,inverted:_},{unstyled:w,name:"Tabs",classNames:v,styles:m});return S(A1,{classNames:v,styles:m,unstyled:w,children:S(Sb,{activateTabWithKeyboard:a,defaultValue:n,orientation:i,onTabChange:f,value:o,id:c,loop:l,allowTabDeactivation:s,color:p,variant:d,radius:h,inverted:_,children:S(K,{...DN(zN({},b),{className:x(O.root,y),id:c,ref:t}),children:u})})})});Je.List=gb;Je.Tab=_b;Je.Panel=hb;Je.displayName="@mantine/core/Tabs";var jN=Object.defineProperty,LN=Object.defineProperties,FN=Object.getOwnPropertyDescriptors,Hh=Object.getOwnPropertySymbols,AN=Object.prototype.hasOwnProperty,VN=Object.prototype.propertyIsEnumerable,Bh=(e,t,r)=>t in e?jN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HN=(e,t)=>{for(var r in t||(t={}))AN.call(t,r)&&Bh(e,r,t[r]);if(Hh)for(var r of Hh(t))VN.call(t,r)&&Bh(e,r,t[r]);return e},BN=(e,t)=>LN(e,FN(t));const WN={xs:16,sm:20,md:26,lg:32,xl:40};var UN=Q((e,{color:t,size:r,radius:n,gradient:o,variant:i})=>{const l=e.fn.variant({variant:i,color:t||e.primaryColor,gradient:o,primaryFallback:!1}),a=e.fn.size({size:r,sizes:WN});return{root:BN(HN({},e.fn.fontStyles()),{display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:a,height:a,minWidth:a,minHeight:a,borderRadius:e.fn.radius(n),backgroundColor:l.background,color:l.color,backgroundImage:i==="gradient"?l.background:void 0,border:`${i==="gradient"?0:1}px solid ${l.border}`})}}),GN=UN,YN=Object.defineProperty,xs=Object.getOwnPropertySymbols,Pb=Object.prototype.hasOwnProperty,$b=Object.prototype.propertyIsEnumerable,Wh=(e,t,r)=>t in e?YN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XN=(e,t)=>{for(var r in t||(t={}))Pb.call(t,r)&&Wh(e,r,t[r]);if(xs)for(var r of xs(t))$b.call(t,r)&&Wh(e,r,t[r]);return e},KN=(e,t)=>{var r={};for(var n in e)Pb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xs)for(var n of xs(e))t.indexOf(n)<0&&$b.call(e,n)&&(r[n]=e[n]);return r};const qN={size:"md",variant:"filled",gradient:{from:"blue",to:"cyan",deg:45}},Sf=g.exports.forwardRef((e,t)=>{const r=ee("ThemeIcon",qN,e),{className:n,size:o,radius:i,variant:l,color:a,children:s,gradient:u,unstyled:c}=r,f=KN(r,["className","size","radius","variant","color","children","gradient","unstyled"]),{classes:d,cx:p}=GN({variant:l,radius:i,color:a,size:o,gradient:u},{name:"ThemeIcon",unstyled:c});return S(K,{...XN({className:p(d.root,n),ref:t},f),children:s})});Sf.displayName="@mantine/core/ThemeIcon";const Ob=g.exports.createContext(!1),QN=Ob.Provider,ZN=()=>g.exports.useContext(Ob);function Cb({children:e,openDelay:t=0,closeDelay:r=0}){return E.createElement(QN,{value:!0},E.createElement(T3,{delay:{open:t,close:r}},e))}Cb.displayName="@mantine/core/TooltipGroup";var JN=Object.defineProperty,ez=Object.defineProperties,tz=Object.getOwnPropertyDescriptors,Uh=Object.getOwnPropertySymbols,rz=Object.prototype.hasOwnProperty,nz=Object.prototype.propertyIsEnumerable,Gh=(e,t,r)=>t in e?JN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yh=(e,t)=>{for(var r in t||(t={}))rz.call(t,r)&&Gh(e,r,t[r]);if(Uh)for(var r of Uh(t))nz.call(t,r)&&Gh(e,r,t[r]);return e},oz=(e,t)=>ez(e,tz(t));function iz(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 lz=Q((e,{color:t,radius:r,width:n,multiline:o})=>({tooltip:oz(Yh(Yh({},e.fn.fontStyles()),iz(e,t)),{lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,borderRadius:e.fn.radius(r),padding:`${e.spacing.xs/2}px ${e.spacing.xs}px`,position:"absolute",whiteSpace:o?"unset":"nowrap",pointerEvents:"none",width:n}),arrow:{backgroundColor:"inherit",border:0,zIndex:1}})),Eb=lz;const kb={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 az({offset:e,position:t}){const[r,n]=g.exports.useState(!1),o=g.exports.useRef(),{x:i,y:l,reference:a,floating:s,refs:u,update:c,placement:f}=Kd({placement:t,middleware:[Gd({crossAxis:!0,padding:5,rootBoundary:"document"})]}),d=f.includes("right")?e:t.includes("left")?e*-1:0,p=f.includes("bottom")?e:t.includes("top")?e*-1:0,y=g.exports.useCallback(({clientX:w,clientY:v})=>{a({getBoundingClientRect(){return{width:0,height:0,x:w,y:v,left:w+d,top:v+p,right:w,bottom:v}}})},[a]);return g.exports.useEffect(()=>{if(u.floating.current){const w=o.current;w.addEventListener("mousemove",y);const v=ln(u.floating.current);return v.forEach(m=>{m.addEventListener("scroll",c)}),()=>{w.removeEventListener("mousemove",y),v.forEach(m=>{m.removeEventListener("scroll",c)})}}},[a,u.floating,c,y,r]),{handleMouseMove:y,x:i,y:l,opened:r,setOpened:n,boundaryRef:o,floating:s}}var sz=Object.defineProperty,uz=Object.defineProperties,cz=Object.getOwnPropertyDescriptors,Ps=Object.getOwnPropertySymbols,Rb=Object.prototype.hasOwnProperty,Ib=Object.prototype.propertyIsEnumerable,Xh=(e,t,r)=>t in e?sz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cc=(e,t)=>{for(var r in t||(t={}))Rb.call(t,r)&&Xh(e,r,t[r]);if(Ps)for(var r of Ps(t))Ib.call(t,r)&&Xh(e,r,t[r]);return e},fc=(e,t)=>uz(e,cz(t)),fz=(e,t)=>{var r={};for(var n in e)Rb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ps)for(var n of Ps(e))t.indexOf(n)<0&&Ib.call(e,n)&&(r[n]=e[n]);return r};const dz={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:io("popover")};function Nb(e){var t;const r=ee("TooltipFloating",dz,e),{children:n,refProp:o,withinPortal:i,style:l,className:a,classNames:s,styles:u,unstyled:c,radius:f,color:d,label:p,offset:y,position:w,multiline:v,width:m,zIndex:h,disabled:_}=r,b=fz(r,["children","refProp","withinPortal","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled"]),{handleMouseMove:O,x,y:P,opened:$,boundaryRef:C,floating:I,setOpened:z}=az({offset:y,position:w}),{classes:D,cx:j}=Eb({radius:f,color:d,multiline:v,width:m},{name:"Tooltip",classNames:s,styles:u,unstyled:c});if(!Ti(n))throw new Error(kb.children);const B=pn(C,n.ref),V=ne=>{var se,ie;(ie=(se=n.props).onMouseEnter)==null||ie.call(se,ne),O(ne),z(!0)},W=ne=>{var se,ie;(ie=(se=n.props).onMouseLeave)==null||ie.call(se,ne),z(!1)};return U(it,{children:[S(Fi,{withinPortal:i,children:S(K,{...fc(cc({},b),{ref:I,className:j(D.tooltip,a),style:fc(cc({},l),{zIndex:h,display:$&&!_?"block":"none",top:P??"",left:(t=Math.round(x))!=null?t:""})}),children:p})}),g.exports.cloneElement(n,fc(cc({},n.props),{[o]:B,onMouseEnter:V,onMouseLeave:W}))]})}Nb.displayName="@mantine/core/TooltipFloating";function pz(e){const[t,r]=g.exports.useState(!1),o=typeof e.opened=="boolean"?e.opened:t,i=ZN(),l=lo(),{delay:a,currentId:s,setCurrentId:u}=s_(),c=g.exports.useCallback(x=>{r(x),x&&u(l)},[u,l]),{x:f,y:d,reference:p,floating:y,context:w,refs:v,update:m,placement:h}=Kd({placement:e.position,open:o,onOpenChange:c,middleware:[qw(e.offset),Gd({padding:8}),Kw()]}),{getReferenceProps:_,getFloatingProps:b}=I3([D3(w,{enabled:e.events.hover,delay:i?a:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events.touch}),F3(w,{enabled:e.events.focus,keyboardOnly:!0}),j3(w,{role:"tooltip"}),L3(w,{enabled:typeof e.opened===void 0}),M3(w,{id:l})]);return u_({opened:o,positionDependencies:e.positionDependencies,floating:{refs:v,update:m}}),kr(()=>{var x;(x=e.onPositionChange)==null||x.call(e,h)},[h]),{x:f,y:d,reference:p,floating:y,getFloatingProps:b,getReferenceProps:_,isGroupPhase:o&&s&&s!==l,opened:o,placement:h}}var gz=Object.defineProperty,mz=Object.defineProperties,vz=Object.getOwnPropertyDescriptors,$s=Object.getOwnPropertySymbols,zb=Object.prototype.hasOwnProperty,Db=Object.prototype.propertyIsEnumerable,Kh=(e,t,r)=>t in e?gz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mo=(e,t)=>{for(var r in t||(t={}))zb.call(t,r)&&Kh(e,r,t[r]);if($s)for(var r of $s(t))Db.call(t,r)&&Kh(e,r,t[r]);return e},hz=(e,t)=>mz(e,vz(t)),yz=(e,t)=>{var r={};for(var n in e)zb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$s)for(var n of $s(e))t.indexOf(n)<0&&Db.call(e,n)&&(r[n]=e[n]);return r};const wz={position:"top",refProp:"ref",withinPortal:!1,arrowSize:4,arrowOffset:5,offset:5,transition:"fade",transitionDuration:100,width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:io("popover"),positionDependencies:[]},mu=g.exports.forwardRef((e,t)=>{const r=ee("Tooltip",wz,e),{children:n,position:o,refProp:i,label:l,openDelay:a,closeDelay:s,onPositionChange:u,opened:c,withinPortal:f,radius:d,color:p,classNames:y,styles:w,unstyled:v,style:m,className:h,withArrow:_,arrowSize:b,arrowOffset:O,offset:x,transition:P,transitionDuration:$,multiline:C,width:I,events:z,zIndex:D,disabled:j,positionDependencies:B,onClick:V,onMouseEnter:W,onMouseLeave:ne}=r,se=yz(r,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","offset","transition","transitionDuration","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave"]),{classes:ie,cx:ze,theme:R}=Eb({radius:d,color:p,width:I,multiline:C},{name:"Tooltip",classNames:y,styles:w,unstyled:v}),T=pz({position:x_(R.dir,o),closeDelay:s,openDelay:a,onPositionChange:u,opened:c,events:z,offset:x+(_?b/2:0),positionDependencies:[...B,n]});if(!Ti(n))throw new Error(kb.children);const A=pn(T.reference,n.ref,t);return U(it,{children:[S(Fi,{withinPortal:f,children:S(du,{mounted:!j&&T.opened,transition:P,duration:T.isGroupPhase?10:$,children:k=>{var M,G;return U(K,{...Mo(Mo({},se),T.getFloatingProps({ref:T.floating,className:ie.tooltip,style:hz(Mo(Mo({},m),k),{zIndex:D,top:(M=T.y)!=null?M:"",left:(G=T.x)!=null?G:""})})),children:[l,S(qd,{visible:_,withBorder:!1,position:T.placement,arrowSize:b,arrowOffset:O,className:ie.arrow})]})}})}),g.exports.cloneElement(n,T.getReferenceProps(Mo({onClick:V,onMouseEnter:W,onMouseLeave:ne,[i]:A,className:ze(h,n.props.className)},n.props)))]})});mu.Group=Cb;mu.Floating=Nb;mu.displayName="@mantine/core/Tooltip";const nt=mu;var Zr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Zr||(Zr={}));var qh=function(e){return e},Qh="beforeunload",_z="hashchange",Sz="popstate";function bz(e){e===void 0&&(e={});var t=e,r=t.window,n=r===void 0?document.defaultView:r,o=n.history;function i(){var $=an(n.location.hash.substr(1)),C=$.pathname,I=C===void 0?"/":C,z=$.search,D=z===void 0?"":z,j=$.hash,B=j===void 0?"":j,V=o.state||{};return[V.idx,qh({pathname:I,search:D,hash:B,state:V.usr||null,key:V.key||"default"})]}var l=null;function a(){if(l)p.call(l),l=null;else{var $=Zr.Pop,C=i(),I=C[0],z=C[1];if(p.length){if(I!=null){var D=c-I;D&&(l={action:$,location:z,retry:function(){x(D*-1)}},x(D))}}else _($)}}n.addEventListener(Sz,a),n.addEventListener(_z,function(){var $=i(),C=$[1];dc(C)!==dc(f)&&a()});var s=Zr.Pop,u=i(),c=u[0],f=u[1],d=Jh(),p=Jh();c==null&&(c=0,o.replaceState(de({},o.state,{idx:c}),""));function y(){var $=document.querySelector("base"),C="";if($&&$.getAttribute("href")){var I=n.location.href,z=I.indexOf("#");C=z===-1?I:I.slice(0,z)}return C}function w($){return y()+"#"+(typeof $=="string"?$:dc($))}function v($,C){return C===void 0&&(C=null),qh(de({pathname:f.pathname,hash:"",search:""},typeof $=="string"?an($):$,{state:C,key:xz()}))}function m($,C){return[{usr:$.state,key:$.key,idx:C},w($)]}function h($,C,I){return!p.length||(p.call({action:$,location:C,retry:I}),!1)}function _($){s=$;var C=i();c=C[0],f=C[1],d.call({action:s,location:f})}function b($,C){var I=Zr.Push,z=v($,C);function D(){b($,C)}if(h(I,z,D)){var j=m(z,c+1),B=j[0],V=j[1];try{o.pushState(B,"",V)}catch{n.location.assign(V)}_(I)}}function O($,C){var I=Zr.Replace,z=v($,C);function D(){O($,C)}if(h(I,z,D)){var j=m(z,c),B=j[0],V=j[1];o.replaceState(B,"",V),_(I)}}function x($){o.go($)}var P={get action(){return s},get location(){return f},createHref:w,push:b,replace:O,go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(C){return d.push(C)},block:function(C){var I=p.push(C);return p.length===1&&n.addEventListener(Qh,Zh),function(){I(),p.length||n.removeEventListener(Qh,Zh)}}};return P}function Zh(e){e.preventDefault(),e.returnValue=""}function Jh(){var e=[];return{get length(){return e.length},push:function(r){return e.push(r),function(){e=e.filter(function(n){return n!==r})}},call:function(r){e.forEach(function(n){return n&&n(r)})}}}function xz(){return Math.random().toString(36).substr(2,8)}function dc(e){var t=e.pathname,r=t===void 0?"/":t,n=e.search,o=n===void 0?"":n,i=e.hash,l=i===void 0?"":i;return o&&o!=="?"&&(r+=o.charAt(0)==="?"?o:"?"+o),l&&l!=="#"&&(r+=l.charAt(0)==="#"?l:"#"+l),r}function an(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}/** - * React Router v6.3.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const Tb=g.exports.createContext(null),op=g.exports.createContext(null),ip=g.exports.createContext({outlet:null,matches:[]});function Jt(e,t){if(!e)throw new Error(t)}function Pz(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?an(t):t,o=jb(n.pathname||"/",r);if(o==null)return null;let i=Mb(e);$z(i);let l=null;for(let a=0;l==null&&a{let l={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(l.relativePath.startsWith(n)||Jt(!1),l.relativePath=l.relativePath.slice(n.length));let a=tn([n,l.relativePath]),s=r.concat(l);o.children&&o.children.length>0&&(o.index===!0&&Jt(!1),Mb(o.children,t,s,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Nz(a,o.index),routesMeta:s})}),t}function $z(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:zz(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Oz=/^:\w+$/,Cz=3,Ez=2,kz=1,Rz=10,Iz=-2,e0=e=>e==="*";function Nz(e,t){let r=e.split("/"),n=r.length;return r.some(e0)&&(n+=Iz),t&&(n+=Ez),r.filter(o=>!e0(o)).reduce((o,i)=>o+(Oz.test(i)?Cz:i===""?kz:Rz),n)}function zz(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Dz(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let l=0;l{if(c==="*"){let d=a[f]||"";l=i.slice(0,i.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=jz(a[f]||""),u},{}),pathname:i,pathnameBase:l,pattern:e}}function Mz(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(l,a)=>(n.push(a),"([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o+=r?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(o,t?void 0:"i"),n]}function jz(e,t){try{return decodeURIComponent(e)}catch{return e}}function Lz(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?an(e):e;return{pathname:r?r.startsWith("/")?r:Fz(r,t):t,search:Vz(n),hash:Hz(o)}}function Fz(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Az(e,t,r){let n=typeof e=="string"?an(e):e,o=e===""||n.pathname===""?"/":n.pathname,i;if(o==null)i=r;else{let a=t.length-1;if(o.startsWith("..")){let s=o.split("/");for(;s[0]==="..";)s.shift(),a-=1;n.pathname=s.join("/")}i=a>=0?t[a]:"/"}let l=Lz(n,i);return o&&o!=="/"&&o.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function jb(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=e.charAt(t.length);return r&&r!=="/"?null:e.slice(t.length)||"/"}const tn=e=>e.join("/").replace(/\/\/+/g,"/"),Lb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Vz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Hz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function vu(){return g.exports.useContext(op)!=null}function lp(){return vu()||Jt(!1),g.exports.useContext(op).location}function Bi(){vu()||Jt(!1);let{basename:e,navigator:t}=g.exports.useContext(Tb),{matches:r}=g.exports.useContext(ip),{pathname:n}=lp(),o=JSON.stringify(r.map(a=>a.pathnameBase)),i=g.exports.useRef(!1);return g.exports.useEffect(()=>{i.current=!0}),g.exports.useCallback(function(a,s){if(s===void 0&&(s={}),!i.current)return;if(typeof a=="number"){t.go(a);return}let u=Az(a,JSON.parse(o),n);e!=="/"&&(u.pathname=tn([e,u.pathname])),(s.replace?t.replace:t.push)(u,s.state)},[e,t,o,n])}function Bz(e,t){vu()||Jt(!1);let{matches:r}=g.exports.useContext(ip),n=r[r.length-1],o=n?n.params:{};n&&n.pathname;let i=n?n.pathnameBase:"/";n&&n.route;let l=lp(),a;if(t){var s;let d=typeof t=="string"?an(t):t;i==="/"||((s=d.pathname)==null?void 0:s.startsWith(i))||Jt(!1),a=d}else a=l;let u=a.pathname||"/",c=i==="/"?u:u.slice(i.length)||"/",f=Pz(e,{pathname:c});return Wz(f&&f.map(d=>Object.assign({},d,{params:Object.assign({},o,d.params),pathname:tn([i,d.pathname]),pathnameBase:d.pathnameBase==="/"?i:tn([i,d.pathnameBase])})),r)}function Wz(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((r,n,o)=>g.exports.createElement(ip.Provider,{children:n.route.element!==void 0?n.route.element:r,value:{outlet:r,matches:t.concat(e.slice(0,o+1))}}),null)}function Bt(e){Jt(!1)}function Uz(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Zr.Pop,navigator:i,static:l=!1}=e;vu()&&Jt(!1);let a=Lb(t),s=g.exports.useMemo(()=>({basename:a,navigator:i,static:l}),[a,i,l]);typeof n=="string"&&(n=an(n));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:p="default"}=n,y=g.exports.useMemo(()=>{let w=jb(u,a);return w==null?null:{pathname:w,search:c,hash:f,state:d,key:p}},[a,u,c,f,d,p]);return y==null?null:g.exports.createElement(Tb.Provider,{value:s},g.exports.createElement(op.Provider,{children:r,value:{location:y,navigationType:o}}))}function Fb(e){let{children:t,location:r}=e;return Bz(bf(t),r)}function bf(e){let t=[];return g.exports.Children.forEach(e,r=>{if(!g.exports.isValidElement(r))return;if(r.type===g.exports.Fragment){t.push.apply(t,bf(r.props.children));return}r.type!==Bt&&Jt(!1);let n={caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path};r.props.children&&(n.children=bf(r.props.children)),t.push(n)}),t}/** - * React Router DOM v6.3.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Gz(e){let{basename:t,children:r,window:n}=e,o=g.exports.useRef();o.current==null&&(o.current=bz({window:n}));let i=o.current,[l,a]=g.exports.useState({action:i.action,location:i.location});return g.exports.useLayoutEffect(()=>i.listen(a),[i]),g.exports.createElement(Uz,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i})}const Yz=()=>!window.invokeNative,Ab=()=>{},Sl=(e,t)=>{const r=g.exports.useRef(Ab);g.exports.useEffect(()=>{r.current=t},[t]),g.exports.useEffect(()=>{const n=o=>{const{action:i,data:l}=o.data;r.current&&i===e&&r.current(l)};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)},[e])};function Xz(e){let t;const r=new Set,n=(u,c)=>{const f=typeof u=="function"?u(t):u;if(f!==t){const d=t;t=c?f:Object.assign({},t,f),r.forEach(p=>p(t,d))}},o=()=>t,i=(u,c=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=c(t);function p(){const y=c(t);if(!f(d,y)){const w=d;u(d=y,w)}}return r.add(p),()=>r.delete(p)},s={setState:n,getState:o,subscribe:(u,c,f)=>c||f?i(u,c,f):(r.add(u),()=>r.delete(u)),destroy:()=>r.clear()};return t=e(n,o,s),s}const Kz=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),t0=Kz?g.exports.useEffect:g.exports.useLayoutEffect;function uo(e){const t=typeof e=="function"?Xz(e):e,r=(n=t.getState,o=Object.is)=>{const[,i]=g.exports.useReducer(v=>v+1,0),l=t.getState(),a=g.exports.useRef(l),s=g.exports.useRef(n),u=g.exports.useRef(o),c=g.exports.useRef(!1),f=g.exports.useRef();f.current===void 0&&(f.current=n(l));let d,p=!1;(a.current!==l||s.current!==n||u.current!==o||c.current)&&(d=n(l),p=!o(f.current,d)),t0(()=>{p&&(f.current=d),a.current=l,s.current=n,u.current=o,c.current=!1});const y=g.exports.useRef(l);t0(()=>{const v=()=>{try{const h=t.getState(),_=s.current(h);u.current(f.current,_)||(a.current=h,f.current=_,i())}catch{c.current=!0,i()}},m=t.subscribe(v);return t.getState()!==y.current&&v(),m},[]);const w=p?d:f.current;return g.exports.useDebugValue(w),w};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const n=[r,t];return{next(){const o=n.length<=0;return{value:n.shift(),done:o}}}},r}const q=uo(()=>({name:"",passcode:"",autolock:0,items:[{name:"",metadata:"",remove:!1}],characters:[""],groups:[{name:"",grade:void 0}],lockpickDifficulty:[""],maxDistance:0,doorRate:0,lockSound:"",unlockSound:"",auto:!1,state:!1,lockpick:!1,hideUi:!1,doors:!1,holdOpen:!1})),qz=q.getState(),_e=uo((e,t)=>({sounds:[""],setSounds:r=>e({sounds:r}),setLockSound:r=>q.setState({lockSound:r}),setUnlockSound:r=>q.setState({unlockSound:r}),setName:r=>q.setState({name:r}),setPasscode:r=>q.setState({passcode:r}),setAutolock:r=>q.setState({autolock:r}),toggleCheckbox:r=>q.setState(n=>({[r]:!n[r]})),setMaxDistance:r=>q.setState(()=>({maxDistance:r})),setItems:r=>q.setState(({items:n})=>({items:r(n)})),setCharacters:r=>q.setState(({characters:n})=>({characters:r(n)})),setGroups:r=>q.setState(({groups:n})=>({groups:r(n)})),setLockpickDifficulty:r=>q.setState(({lockpickDifficulty:n})=>({lockpickDifficulty:r(n)})),setDoorRate:r=>q.setState({doorRate:r})}));var Vb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},r0=E.createContext&&E.createContext(Vb),br=globalThis&&globalThis.__assign||function(){return br=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({visible:!1,setVisible:t=>e({visible:t})}));async function xr(e,t){const r={method:"post",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(t)},n=window.GetParentResourceName?window.GetParentResourceName():"nui-frame-app";return await(await fetch(`https://${n}/${e}`,r)).json()}function uD(e,t){const[r,n]=g.exports.useState(e);return g.exports.useEffect(()=>{const o=setTimeout(()=>n(e),t||500);return()=>{clearTimeout(o)}},[e,t]),r}const xf=uo(e=>({value:"",debouncedValue:"",setDebouncedValue:t=>e({debouncedValue:t}),setValue:t=>e({value:t})})),cD=()=>{const e=xf(),t=uD(e.value);return g.exports.useEffect(()=>{e.setDebouncedValue(t)},[t]),S(it,{children:S(Tr,{sx:{flex:"1 1 auto",padding:2},icon:S(Wb,{size:20}),placeholder:"Search",value:e.value??"",onChange:r=>e.setValue(r.target.value)})})},fD=Q({main:{display:"flex",justifyContent:"flex-start",alignItems:"center",padding:16,paddingBottom:0}}),dD=()=>{const{classes:e}=fD(),t=Bi(),r=yu(n=>n.setVisible);return U(jt,{className:e.main,children:[S(nt,{label:"Create a new door",transition:"pop",children:S($t,{variant:"light",color:"blue",size:"lg",onClick:()=>{q.setState(qz,!0),t("/settings/general")},children:S(Bb,{size:20})})}),S(cD,{}),S(ou,{iconSize:20,size:"lg",onClick:()=>{r(!1),xr("exit")}})]})};/** - * react-table - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - *//** - * table-core - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function dr(e,t){return typeof e=="function"?e(t):e}function vt(e,t){return r=>{t.setState(n=>({...n,[e]:dr(r,n[e])}))}}function Os(e){return e instanceof Function}function pD(e,t){const r=[],n=o=>{o.forEach(i=>{r.push(i);const l=t(i);l!=null&&l.length&&n(l)})};return n(e),r}function X(e,t,r){let n=[],o;return()=>{let i;r.key&&r.debug&&(i=Date.now());const l=e();if(!(l.length!==n.length||l.some((u,c)=>n[c]!==u)))return o;n=l;let s;if(r.key&&r.debug&&(s=Date.now()),o=t(...l),r==null||r.onChange==null||r.onChange(o),r.key&&r.debug&&r!=null&&r.debug()){const u=Math.round((Date.now()-i)*100)/100,c=Math.round((Date.now()-s)*100)/100,f=c/16,d=(p,y)=>{for(p=String(p);p.length{let p=d;for(const y of s.split("."))p=p[y];return p}:c=d=>d[a.accessorKey]),!u)throw new Error;let f={id:""+String(u),accessorFn:c,parent:n,depth:r,columnDef:a,columns:[],getFlatColumns:X(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(p=>p.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}}),getLeafColumns:X(()=>[e._getOrderColumnsFn()],d=>{var p;if((p=f.columns)!=null&&p.length){let y=f.columns.flatMap(w=>w.getLeafColumns());return d(y)}return[f]},{key:"column.getLeafColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}})};return f=e._features.reduce((d,p)=>Object.assign(d,p.createColumn==null?void 0:p.createColumn(f,e)),f),f}function n0(e,t,r){var n;let i={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],a=s=>{s.subHeaders&&s.subHeaders.length&&s.subHeaders.map(a),l.push(s)};return a(i),l},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(l=>{Object.assign(i,l.createHeader==null?void 0:l.createHeader(i,e))}),i}const mD={createTable:e=>({getHeaderGroups:X(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>{var i,l;const a=(i=n?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?i:[],s=(l=o?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?l:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(o!=null&&o.includes(f.id)));return bl(t,[...a,...u,...s],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterHeaderGroups:X(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>(r=r.filter(i=>!(n!=null&&n.includes(i.id))&&!(o!=null&&o.includes(i.id))),bl(t,r,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftHeaderGroups:X(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var o;const i=(o=n?.map(l=>r.find(a=>a.id===l)).filter(Boolean))!=null?o:[];return bl(t,i,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightHeaderGroups:X(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var o;const i=(o=n?.map(l=>r.find(a=>a.id===l)).filter(Boolean))!=null?o:[];return bl(t,i,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFooterGroups:X(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFooterGroups:X(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFooterGroups:X(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFooterGroups:X(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFlatHeaders:X(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFlatHeaders:X(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFlatHeaders:X(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFlatHeaders:X(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterLeafHeaders:X(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftLeafHeaders:X(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightLeafHeaders:X(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeafHeaders:X(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var o,i,l,a,s,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(l=(a=r[0])==null?void 0:a.headers)!=null?l:[],...(s=(u=n[0])==null?void 0:u.headers)!=null?s:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})})};function bl(e,t,r,n){var o,i;let l=0;const a=function(d,p){p===void 0&&(p=1),l=Math.max(l,p),d.filter(y=>y.getIsVisible()).forEach(y=>{var w;(w=y.columns)!=null&&w.length&&a(y.columns,p+1)},0)};a(e);let s=[];const u=(d,p)=>{const y={depth:p,id:[n,""+p].filter(Boolean).join("_"),headers:[]},w=[];d.forEach(v=>{const m=[...w].reverse()[0],h=v.column.depth===y.depth;let _,b=!1;if(h&&v.column.parent?_=v.column.parent:(_=v.column,b=!0),m&&m?.column===_)m.subHeaders.push(v);else{const O=n0(r,_,{id:[n,p,_.id,v?.id].filter(Boolean).join("_"),isPlaceholder:b,placeholderId:b?""+w.filter(x=>x.column===_).length:void 0,depth:p,index:w.length});O.subHeaders.push(v),w.push(O)}y.headers.push(v),v.headerGroup=y}),s.push(y),p>0&&u(w,p-1)},c=t.map((d,p)=>n0(r,d,{depth:l,index:p}));u(c,l-1),s.reverse();const f=d=>d.filter(y=>y.column.getIsVisible()).map(y=>{let w=0,v=0,m=[0];y.subHeaders&&y.subHeaders.length?(m=[],f(y.subHeaders).forEach(_=>{let{colSpan:b,rowSpan:O}=_;w+=b,m.push(O)})):w=1;const h=Math.min(...m);return v=v+h,y.colSpan=w,y.rowSpan=v,{colSpan:w,rowSpan:v}});return f((o=(i=s[0])==null?void 0:i.headers)!=null?o:[]),s}const xl={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},pc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),vD={getDefaultColumnDef:()=>xl,getInitialState:e=>({columnSizing:{},columnSizingInfo:pc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:vt("columnSizing",e),onColumnSizingInfoChange:vt("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var r,n,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:xl.minSize,(n=i??e.columnDef.size)!=null?n:xl.size),(o=e.columnDef.maxSize)!=null?o:xl.maxSize)},getStart:r=>{const n=r?r==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=n.findIndex(i=>i.id===e.id);if(o>0){const i=n[o-1];return i.getStart(r)+i.getSize()}return 0},resetSize:()=>{t.setColumnSizing(r=>{let{[e.id]:n,...o}=r;return o})},getCanResize:()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let r=0;const n=o=>{if(o.subHeaders.length)o.subHeaders.forEach(n);else{var i;r+=(i=o.column.getSize())!=null?i:0}};return n(e),r},getStart:()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},getResizeHandler:()=>{const r=t.getColumn(e.column.id),n=r.getCanResize();return o=>{if(!n||(o.persist==null||o.persist(),gc(o)&&o.touches&&o.touches.length>1))return;const i=e.getSize(),l=e?e.getLeafHeaders().map(p=>[p.column.id,p.column.getSize()]):[[r.id,r.getSize()]],a=gc(o)?Math.round(o.touches[0].clientX):o.clientX,s=(p,y)=>{if(typeof y!="number")return;let w={};t.setColumnSizingInfo(v=>{var m,h;const _=y-((m=v?.startOffset)!=null?m:0),b=Math.max(_/((h=v?.startSize)!=null?h:0),-.999999);return v.columnSizingStart.forEach(O=>{let[x,P]=O;w[x]=Math.round(Math.max(P+P*b,0)*100)/100}),{...v,deltaOffset:_,deltaPercentage:b}}),(t.options.columnResizeMode==="onChange"||p==="end")&&t.setColumnSizing(v=>({...v,...w}))},u=p=>s("move",p),c=p=>{s("end",p),t.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f={moveHandler:p=>u(p.clientX),upHandler:p=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),c(p.clientX)}},d=hD()?{passive:!1}:!1;gc(o)||(document.addEventListener("mousemove",f.moveHandler,d),document.addEventListener("mouseup",f.upHandler,d)),t.setColumnSizingInfo(p=>({...p,startOffset:a,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id}))}}}),createTable:e=>({setColumnSizing:t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},resetHeaderSizeInfo:t=>{var r;e.setColumnSizingInfo(t?pc():(r=e.initialState.columnSizingInfo)!=null?r:pc())},getTotalSize:()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getLeftTotalSize:()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getCenterTotalSize:()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getRightTotalSize:()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0}})};let Pl=null;function hD(){if(typeof Pl=="boolean")return Pl;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return Pl=e,Pl}function gc(e){return e.type==="touchstart"}const yD={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:vt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;return{_autoResetExpanded:()=>{var n,o;if(!t){e._queue(()=>{t=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},setExpanded:n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),toggleAllRowsExpanded:n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},resetExpanded:n=>{var o,i;e.setExpanded(n?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some(n=>n.getCanExpand()),getToggleAllRowsExpandedHandler:()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},getIsAllRowsExpanded:()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(o=>o.getIsExpanded()))},getExpandedDepth:()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const l=i.split(".");n=Math.max(n,l.length)}),n},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,t)=>({toggleExpanded:r=>{t.setExpanded(n=>{var o;const i=n===!0?!0:!!(n!=null&&n[e.id]);let l={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{l[a]=!0}):l=n,r=(o=r)!=null?o:!i,!i&&r)return{...l,[e.id]:!0};if(i&&!r){const{[e.id]:a,...s}=l;return s}return n})},getIsExpanded:()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n?.[e.id])},getCanExpand:()=>{var r,n,o;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((o=e.subRows)!=null&&o.length)},getToggleExpandedHandler:()=>{const r=e.getCanExpand();return()=>{!r||e.toggleExpanded()}}})},Ub=(e,t,r)=>{var n;const o=r.toLowerCase();return(n=e.getValue(t))==null?void 0:n.toLowerCase().includes(o)};Ub.autoRemove=e=>Pt(e);const Gb=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};Gb.autoRemove=e=>Pt(e);const Yb=(e,t,r)=>{var n;return((n=e.getValue(t))==null?void 0:n.toLowerCase())===r.toLowerCase()};Yb.autoRemove=e=>Pt(e);const Xb=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};Xb.autoRemove=e=>Pt(e)||!(e!=null&&e.length);const Kb=(e,t,r)=>!r.some(n=>{var o;return!((o=e.getValue(t))!=null&&o.includes(n))});Kb.autoRemove=e=>Pt(e)||!(e!=null&&e.length);const qb=(e,t,r)=>r.some(n=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)});qb.autoRemove=e=>Pt(e)||!(e!=null&&e.length);const Qb=(e,t,r)=>e.getValue(t)===r;Qb.autoRemove=e=>Pt(e);const Zb=(e,t,r)=>e.getValue(t)==r;Zb.autoRemove=e=>Pt(e);const ap=(e,t,r)=>{let[n,o]=r;const i=e.getValue(t);return i>=n&&i<=o};ap.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,o=typeof r!="number"?parseFloat(r):r,i=t===null||Number.isNaN(n)?-1/0:n,l=r===null||Number.isNaN(o)?1/0:o;if(i>l){const a=i;i=l,l=a}return[i,l]};ap.autoRemove=e=>Pt(e)||Pt(e[0])&&Pt(e[1]);const At={includesString:Ub,includesStringSensitive:Gb,equalsString:Yb,arrIncludes:Xb,arrIncludesAll:Kb,arrIncludesSome:qb,equals:Qb,weakEquals:Zb,inNumberRange:ap};function Pt(e){return e==null||e===""}const wD={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:vt("columnFilters",e),onGlobalFilterChange:vt("globalFilter",e),filterFromLeafRows:!1,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r,n;const o=(r=e.getCoreRowModel().flatRows[0])==null||(n=r._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);return typeof n=="string"?At.includesString:typeof n=="number"?At.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?At.equals:Array.isArray(n)?At.arrIncludes:At.weakEquals},getFilterFn:()=>{var r,n;return Os(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:At[e.columnDef.filterFn]},getCanFilter:()=>{var r,n,o;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},getCanGlobalFilter:()=>{var r,n,o,i;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var r,n;return(r=t.getState().columnFilters)==null||(n=r.find(o=>o.id===e.id))==null?void 0:n.value},getFilterIndex:()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?r:-1},setFilterValue:r=>{t.setColumnFilters(n=>{const o=e.getFilterFn(),i=n?.find(c=>c.id===e.id),l=dr(r,i?i.value:void 0);if(o0(o,l,e)){var a;return(a=n?.filter(c=>c.id!==e.id))!=null?a:[]}const s={id:e.id,value:l};if(i){var u;return(u=n?.map(c=>c.id===e.id?s:c))!=null?u:[]}return n!=null&&n.length?[...n,s]:[s]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(!!e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>At.includesString,getGlobalFilterFn:()=>{var t,r;const{globalFilterFn:n}=e.options;return Os(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:At[n]},setColumnFilters:t=>{const r=e.getAllLeafColumns(),n=o=>{var i;return(i=dr(t,o))==null?void 0:i.filter(l=>{const a=r.find(s=>s.id===l.id);if(a){const s=a.getFilterFn();if(o0(s,l.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},setGlobalFilter:t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(!!e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function o0(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const _D=(e,t,r)=>r.reduce((n,o)=>{const i=o.getValue(e);return n+(typeof i=="number"?i:0)},0),SD=(e,t,r)=>{let n;return r.forEach(o=>{const i=o.getValue(e);i!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}),n},bD=(e,t,r)=>{let n;return r.forEach(o=>{const i=o.getValue(e);i!=null&&(n=i)&&(n=i)}),n},xD=(e,t,r)=>{let n,o;return r.forEach(i=>{const l=i.getValue(e);l!=null&&(n===void 0?l>=l&&(n=o=l):(n>l&&(n=l),o{let r=0,n=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++r,n+=i)}),r)return n/r},$D=(e,t)=>{if(!t.length)return;let r=0,n=0;return t.forEach(o=>{let i=o.getValue(e);typeof i=="number"&&(r=Math.min(r,i),n=Math.max(n,i))}),(r+n)/2},OD=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),CD=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,ED=(e,t)=>t.length,mc={sum:_D,min:SD,max:bD,extent:xD,mean:PD,median:$D,unique:OD,uniqueCount:CD,count:ED},kD={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:vt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},getCanGroup:()=>{var r,n,o,i;return(r=(n=(o=(i=e.columnDef.enableGrouping)!=null?i:!0)!=null?o:t.options.enableGrouping)!=null?n:!0)!=null?r:!!e.accessorFn},getIsGrouped:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},getGroupedIndex:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},getToggleGroupingHandler:()=>{const r=e.getCanGroup();return()=>{!r||e.toggleGrouping()}},getAutoAggregationFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);if(typeof n=="number")return mc.sum;if(Object.prototype.toString.call(n)==="[object Date]")return mc.extent},getAggregationFn:()=>{var r,n;if(!e)throw new Error;return Os(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:mc[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,r,n)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===r.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=r.subRows)!=null&&o.length)}})};function RD(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(i=>!t.includes(i.id));return r==="remove"?n:[...t.map(i=>e.find(l=>l.id===i)).filter(Boolean),...n]}const ID={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:vt("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},_getOrderColumnsFn:X(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const l=[...t],a=[...o];for(;a.length&&l.length;){const s=l.shift(),u=a.findIndex(c=>c.id===s);u>-1&&i.push(a.splice(u,1)[0])}i=[...i,...a]}return RD(i,r,n)},{key:!1})})},Pf=0,$f=10,vc=()=>({pageIndex:Pf,pageSize:$f}),ND={getInitialState:e=>({...e,pagination:{...vc(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:vt("pagination",e)}),createTable:e=>{let t=!1,r=!1;return{_autoResetPageIndex:()=>{var n,o;if(!t){e._queue(()=>{t=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},setPagination:n=>{const o=i=>dr(n,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},resetPagination:n=>{var o;e.setPagination(n?vc():(o=e.initialState.pagination)!=null?o:vc())},setPageIndex:n=>{e.setPagination(o=>{let i=dr(n,o.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.min(Math.max(0,i),l),{...o,pageIndex:i}})},resetPageIndex:n=>{var o,i,l;e.setPageIndex(n?Pf:(o=(i=e.initialState)==null||(l=i.pagination)==null?void 0:l.pageIndex)!=null?o:Pf)},resetPageSize:n=>{var o,i,l;e.setPageSize(n?$f:(o=(i=e.initialState)==null||(l=i.pagination)==null?void 0:l.pageSize)!=null?o:$f)},setPageSize:n=>{e.setPagination(o=>{const i=Math.max(1,dr(n,o.pageSize)),l=o.pageSize*o.pageIndex,a=Math.floor(l/i);return{...o,pageIndex:a,pageSize:i}})},setPageCount:n=>e.setPagination(o=>{var i;let l=dr(n,(i=e.options.pageCount)!=null?i:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...o,pageCount:l}}),getPageOptions:X(()=>[e.getPageCount()],n=>{let o=[];return n&&n>0&&(o=[...new Array(n)].fill(null).map((i,l)=>l)),o},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:n}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:ne.setPageIndex(n=>n-1),nextPage:()=>e.setPageIndex(n=>n+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},hc=()=>({left:[],right:[]}),zD={getInitialState:e=>({columnPinning:hc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:vt("columnPinning",e)}),createColumn:(e,t)=>({pin:r=>{const n=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,l;if(r==="right"){var a,s;return{left:((a=o?.left)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((s=o?.right)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=o?.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=o?.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((i=o?.left)!=null?i:[]).filter(f=>!(n!=null&&n.includes(f))),right:((l=o?.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f)))}})},getCanPin:()=>e.getLeafColumns().some(n=>{var o,i;return((o=n.columnDef.enablePinning)!=null?o:!0)&&((i=t.options.enablePinning)!=null?i:!0)}),getIsPinned:()=>{const r=e.getLeafColumns().map(a=>a.id),{left:n,right:o}=t.getState().columnPinning,i=r.some(a=>n?.includes(a)),l=r.some(a=>o?.includes(a));return i?"left":l?"right":!1},getPinnedIndex:()=>{var r,n,o;const i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(o=n[i])==null?void 0:o.indexOf(e.id))!=null?r:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:X(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,o)=>{const i=[...n??[],...o??[]];return r.filter(l=>!i.includes(l.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getLeftVisibleCells:X(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(r,n)=>(n??[]).map(i=>r.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getRightVisibleCells:X(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(i=>r.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:"row.getRightVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var r,n;return e.setColumnPinning(t?hc():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:hc())},getIsSomeColumnsPinned:t=>{var r;const n=e.getState().columnPinning;if(!t){var o,i;return Boolean(((o=n.left)==null?void 0:o.length)||((i=n.right)==null?void 0:i.length))}return Boolean((r=n[t])==null?void 0:r.length)},getLeftLeafColumns:X(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(o=>o.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getRightLeafColumns:X(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(o=>o.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getCenterLeafColumns:X(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const o=[...r??[],...n??[]];return t.filter(i=>!o.includes(i.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}})})},DD={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:vt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},toggleAllRowsSelected:t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{!i.getCanSelect()||(n[i.id]=!0)}):o.forEach(i=>{delete n[i.id]}),n})},toggleAllPageRowsSelected:t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...r};return e.getRowModel().rows.forEach(i=>{Of(o,i.id,n,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:X(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?yc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getFilteredSelectedRowModel:X(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?yc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getGroupedSelectedRowModel:X(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?yc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=Boolean(t.length&&Object.keys(r).length);return n&&t.some(o=>o.getCanSelect()&&!r[o.id])&&(n=!1),n},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(o=>!r[o.id])&&(n=!1),n},getIsSomeRowsSelected:()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.some(r=>r.getIsSelected()||r.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:r=>{const n=e.getIsSelected();t.setRowSelection(o=>{if(r=typeof r<"u"?r:!n,n===r)return o;const i={...o};return Of(i,e.id,r,t),i})},getIsSelected:()=>{const{rowSelection:r}=t.getState();return sp(e,r)},getIsSomeSelected:()=>{const{rowSelection:r}=t.getState();return i0(e,r)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:r}=t.getState();return i0(e,r)==="all"},getCanSelect:()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},getCanSelectSubRows:()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},getCanMultiSelect:()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},getToggleSelectedHandler:()=>{const r=e.getCanSelect();return n=>{var o;!r||e.toggleSelected((o=n.target)==null?void 0:o.checked)}}})},Of=(e,t,r,n)=>{var o;const i=n.getRow(t);r?(i.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),i.getCanSelect()&&(e[t]=!0)):delete e[t],(o=i.subRows)!=null&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(l=>Of(e,l.id,r,n))};function yc(e,t){const r=e.getState().rowSelection,n=[],o={},i=function(l,a){return l.map(s=>{var u;const c=sp(s,r);if(c&&(n.push(s),o[s.id]=s),(u=s.subRows)!=null&&u.length&&(s={...s,subRows:i(s.subRows)}),c)return s}).filter(Boolean)};return{rows:i(t.rows),flatRows:n,rowsById:o}}function sp(e,t){var r;return(r=t[e.id])!=null?r:!1}function i0(e,t,r){if(e.subRows&&e.subRows.length){let n=!0,o=!1;return e.subRows.forEach(i=>{o&&!n||(sp(i,t)?o=!0:n=!1)}),n?"all":o?"some":!1}return!1}const Cf=/([0-9]+)/gm,TD=(e,t,r)=>Jb(Ir(e.getValue(r)).toLowerCase(),Ir(t.getValue(r)).toLowerCase()),MD=(e,t,r)=>Jb(Ir(e.getValue(r)),Ir(t.getValue(r))),jD=(e,t,r)=>up(Ir(e.getValue(r)).toLowerCase(),Ir(t.getValue(r)).toLowerCase()),LD=(e,t,r)=>up(Ir(e.getValue(r)),Ir(t.getValue(r))),FD=(e,t,r)=>{const n=e.getValue(r),o=t.getValue(r);return n>o?1:nup(e.getValue(r),t.getValue(r));function up(e,t){return e===t?0:e>t?1:-1}function Ir(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Jb(e,t){const r=e.split(Cf).filter(Boolean),n=t.split(Cf).filter(Boolean);for(;r.length&&n.length;){const o=r.shift(),i=n.shift(),l=parseInt(o,10),a=parseInt(i,10),s=[l,a].sort();if(isNaN(s[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(s[1]))return isNaN(l)?-1:1;if(l>a)return 1;if(a>l)return-1}return r.length-n.length}const jo={alphanumeric:TD,alphanumericCaseSensitive:MD,text:jD,textCaseSensitive:LD,datetime:FD,basic:AD},VD={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:vt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const o of r){const i=o?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return jo.datetime;if(typeof i=="string"&&(n=!0,i.split(Cf).length>1))return jo.alphanumeric}return n?jo.text:jo.basic},getAutoSortDir:()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof r?.getValue(e.id)=="string"?"asc":"desc"},getSortingFn:()=>{var r,n;if(!e)throw new Error;return Os(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:jo[e.columnDef.sortingFn]},toggleSorting:(r,n)=>{const o=e.getNextSortingOrder(),i=typeof r<"u"&&r!==null;t.setSorting(l=>{const a=l?.find(p=>p.id===e.id),s=l?.findIndex(p=>p.id===e.id);let u=[],c,f=i?r:o==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&n?a?c="toggle":c="add":l!=null&&l.length&&s!==l.length-1?c="replace":a?c="toggle":c="replace",c==="toggle"&&(i||o||(c="remove")),c==="add"){var d;u=[...l,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=l.map(p=>p.id===e.id?{...p,desc:f}:p):c==="remove"?u=l.filter(p=>p.id!==e.id):u=[{id:e.id,desc:f}];return u})},getFirstSortDir:()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},getNextSortingOrder:r=>{var n,o;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==i&&((n=t.options.enableSortingRemoval)!=null?n:!0)&&(r&&(o=t.options.enableMultiRemove)!=null?o:!0)?!1:l==="desc"?"asc":"desc":i},getCanSort:()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},getCanMultiSort:()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},getIsSorted:()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(o=>o.id===e.id);return n?n.desc?"desc":"asc":!1},getSortIndex:()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?r:-1},clearSorting:()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},getToggleSortingHandler:()=>{const r=e.getCanSort();return n=>{!r||(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}}),createTable:e=>({setSorting:t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),resetSorting:t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},HD={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:vt("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},getIsVisible:()=>{var r,n;return(r=(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},getCanHide:()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},getToggleVisibilityHandler:()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:X(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getVisibleCells:X(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,o)=>[...r,...n,...o],{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>{const t=(r,n)=>X(()=>[n(),n().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),{key:r,debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),resetColumnVisibility:r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},toggleAllColumnsVisible:r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:r||!(i.getCanHide!=null&&i.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}}},l0=[mD,HD,ID,zD,wD,VD,kD,yD,ND,DD,vD];function BD(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r={_features:l0};const n=r._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(r)),{}),o=c=>r.options.mergeOptions?r.options.mergeOptions(n,c):{...n,...c};let l={...{},...(t=e.initialState)!=null?t:{}};r._features.forEach(c=>{var f;l=(f=c.getInitialState==null?void 0:c.getInitialState(l))!=null?f:l});const a=[];let s=!1;const u={_features:l0,options:{...n,...e},initialState:l,_queue:c=>{a.push(c),s||(s=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();s=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{r.setState(r.initialState)},setOptions:c=>{const f=dr(c,r.options);r.options=o(f)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,f,d)=>{var p;return(p=r.options.getRowId==null?void 0:r.options.getRowId(c,f,d))!=null?p:""+(d?[d.id,f].join("."):f)},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:c=>{const f=r.getRowModel().rowsById[c];if(!f)throw new Error;return f},_getDefaultColumnDef:X(()=>[r.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:d=>{const p=d.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:d=>{var p,y;return(p=(y=d.renderValue())==null||y.toString==null?void 0:y.toString())!=null?p:null},...r._features.reduce((d,p)=>Object.assign(d,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns},key:!1}),_getColumnDefs:()=>r.options.columns,getAllColumns:X(()=>[r._getColumnDefs()],c=>{const f=function(d,p,y){return y===void 0&&(y=0),d.map(w=>{const v=gD(r,w,y,p),m=w;return v.columns=m.columns?f(m.columns,v,y+1):[],v})};return f(c)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllFlatColumns:X(()=>[r.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),_getAllFlatColumnsById:X(()=>[r.getAllFlatColumns()],c=>c.reduce((f,d)=>(f[d.id]=d,f),{}),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllLeafColumns:X(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(c,f)=>{let d=c.flatMap(p=>p.getLeafColumns());return f(d)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getColumn:c=>{const f=r._getAllFlatColumnsById()[c];if(!f)throw new Error;return f}};return Object.assign(r,u),r._features.forEach(c=>Object.assign(r,c.createTable==null?void 0:c.createTable(r))),r}function WD(e,t,r,n){const o=()=>{var l;return(l=i.getValue())!=null?l:e.options.renderFallbackValue},i={id:t.id+"_"+r.id,row:t,column:r,getValue:()=>t.getValue(n),renderValue:o,getContext:()=>({table:e,column:r,row:t,cell:i,getValue:i.getValue,renderValue:i.renderValue})};return e._features.forEach(l=>{Object.assign(i,l.createCell==null?void 0:l.createCell(i,r,t,e))},{}),i}const cp=(e,t,r,n,o,i)=>{let l={id:t,index:n,original:r,depth:o,_valuesCache:{},getValue:a=>{if(l._valuesCache.hasOwnProperty(a))return l._valuesCache[a];const s=e.getColumn(a);if(!!s.accessorFn)return l._valuesCache[a]=s.accessorFn(l.original,n),l._valuesCache[a]},renderValue:a=>{var s;return(s=l.getValue(a))!=null?s:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>pD(l.subRows,a=>a.subRows),getAllCells:X(()=>[e.getAllLeafColumns()],a=>a.map(s=>WD(e,l,s,s.id)),{key:!1,debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}}),_getAllCellsByColumnId:X(()=>[l.getAllCells()],a=>a.reduce((s,u)=>(s[u.column.id]=u,s),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}})};for(let a=0;aX(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(o,i,l){i===void 0&&(i=0);const a=[];for(let u=0;u{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function GD(e,t,r){return r.options.filterFromLeafRows?YD(e,t,r):XD(e,t,r)}function YD(e,t,r){const n=[],o={},i=function(l,a){const s=[];for(let c=0;cX(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,n)=>{if(!t.rows.length||!(r!=null&&r.length)&&!n){for(let d=0;d{var p;const w=e.getColumn(d.id).getFilterFn();!w||o.push({id:d.id,filterFn:w,resolvedValue:(p=w.resolveFilterValue==null?void 0:w.resolveFilterValue(d.value))!=null?p:d.value})});const l=r.map(d=>d.id),a=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter(d=>d.getCanGlobalFilter());n&&a&&s.length&&(l.push("__global__"),s.forEach(d=>{var p;i.push({id:d.id,filterFn:a,resolvedValue:(p=a.resolveFilterValue==null?void 0:a.resolveFilterValue(n))!=null?p:n})}));let u,c;for(let d=0;d{p.columnFiltersMeta[w]=v})}if(i.length){for(let y=0;y{p.columnFiltersMeta[w]=v})){p.columnFilters.__global__=!0;break}}p.columnFilters.__global__!==!0&&(p.columnFilters.__global__=!1)}}const f=d=>{for(let p=0;p{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function qD(){return e=>X(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,o=[],i=n.filter(s=>e.getColumn(s.id).getCanSort()),l={};i.forEach(s=>{const u=e.getColumn(s.id);l[s.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()}});const a=s=>{const u=s.slice();return u.sort((c,f)=>{for(let p=0;p"u",O=typeof _>"u";if(b||O)return b&&O?0:b?w.sortUndefined:-w.sortUndefined}let m=w.sortingFn(c,f,y.id);if(m!==0)return v&&(m*=-1),w.invertSorting&&(m*=-1),m}return c.index-f.index}),u.forEach(c=>{o.push(c),!(!c.subRows||c.subRows.length<=1)&&(c.subRows=a(c.subRows))}),u};return{rows:a(r.rows),flatRows:o,rowsById:r.rowsById}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function QD(e){const t=[],r=n=>{var o;t.push(n),(o=n.subRows)!=null&&o.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function ZD(e){return t=>X(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(r,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:i}=r;let{rows:l,flatRows:a,rowsById:s}=n;const u=o*i,c=u+o;l=l.slice(u,c);let f;t.options.paginateExpandedRows?f={rows:l,flatRows:a,rowsById:s}:f=QD({rows:l,flatRows:a,rowsById:s}),f.flatRows=[];const d=p=>{f.flatRows.push(p),p.subRows.length&&p.subRows.forEach(d)};return f.rows.forEach(d),f},{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugTable}})}function a0(e,t){return e?JD(e)?g.exports.createElement(e,t):e:null}function JD(e){return eT(e)||typeof e=="function"||tT(e)}function eT(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function tT(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function rT(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=g.exports.useState(()=>({current:BD(t)})),[n,o]=g.exports.useState(()=>r.current.initialState);return r.current.setOptions(i=>({...i,...e,state:{...n,...e.state},onStateChange:l=>{o(l),e.onStateChange==null||e.onStateChange(l)}})),r.current}const Ef=uo(e=>({doors:[],setDoors:t=>e({doors:t})}));function nT(e){return be({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M249.334 22.717c-18.64 2.424-35.677 23.574-37.043 51.49v.02c-.057 1.186-.097 2.38-.097 3.59 0 16.362 5.658 30.827 13.942 40.818l10.127 12.213-15.592 2.933c-10.75 2.025-18.622 7.702-25.373 16.978-2.285 3.14-4.384 6.707-6.31 10.62-57.54-6.44-97.91-21.06-97.91-37.952 0-17.363 42.647-31.983 102.75-37.97-.213-2.51-.323-5.057-.323-7.636v-.002c0-.84.024-1.674.047-2.51-96.43 6.77-167.298 29.15-167.3 55.71-.002 25.33 64.462 46.86 154.074 54.67-.19.742-.394 1.465-.576 2.216-2.36 9.72-4.05 20.22-5.268 31.03-.01 0-.02 0-.03.002-.418 3.653-.78 7.34-1.095 11.046l.05-.005c-1.316 15.777-1.772 31.88-1.893 46.95h35.894l2.115 28.4c-68.24-4.994-118.444-21.004-118.444-39.843 0-13.243 24.83-24.89 63.27-32.33.3-4.056.66-8.115 1.076-12.162-76.42 9.353-129.17 29.168-129.172 52.086-.002 28.17 79.71 51.643 185.098 56.768l5.94 79.77c10.5 2.648 24.84 4.162 39.017 4.068 13.79-.092 27.235-1.71 36.45-4l5.263-79.846c105.308-5.14 184.935-28.605 184.935-56.76 0-23.013-53.196-42.895-130.13-52.2.304 4.02.557 8.047.755 12.07 38.883 7.43 63.965 19.17 63.965 32.536 0 18.84-49.804 34.85-117.908 39.844l1.87-28.402h34.18c-.012-15.113-.127-31.27-1.033-47.094.01 0 .02.002.032.004-.214-3.687-.472-7.352-.782-10.986l-.02-.002c-.94-11.157-2.367-21.984-4.546-31.967-.09-.405-.184-.803-.275-1.206 89.518-7.826 153.893-29.344 153.893-54.656 0-26.787-72.076-49.332-169.77-55.887.025.895.053 1.788.053 2.688 0 2.5-.104 4.97-.304 7.407 61.19 5.836 104.61 20.61 104.61 38.2 0 16.805-39.633 31.355-96.524 37.848-2.01-4.283-4.26-8.15-6.762-11.505-6.83-9.167-15.063-14.81-27.14-16.682l-15.913-2.47 10.037-12.59c6.928-8.69 11.912-20.715 13.057-34.268h.002c.163-1.95.25-3.93.25-5.938 0-.77-.022-1.532-.048-2.29-.015-.48-.033-.958-.057-1.434h-.002c-1.48-29.745-20.507-51.3-41.076-51.3-2.528 0-3.966-.087-4.03-.08h-.003zM194.54 355.822c-97.11 6.655-168.573 29.11-168.573 55.8 0 31.932 102.243 57.815 228.367 57.815S482.7 443.555 482.7 411.623c0-26.608-71.02-49.004-167.67-55.736l-.655 9.93c60.363 6.055 103.074 20.956 103.074 38.394 0 22.81-73.032 41.298-163.12 41.298-90.088 0-163.12-18.49-163.12-41.297 0-17.533 43.18-32.502 104.07-38.493l-.74-9.895z"}}]})(e)}function kf(e){return be({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}},{tag:"path",attr:{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"}}]})(e)}function oT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}}]})(e)}function iT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"}}]})(e)}function lT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}}]})(e)}const Rf=e=>{let t=[];if(e.groups){const r=Object.entries(e.groups);for(let n=0;n({clipboard:!1,setClipboard:t=>e({clipboard:t})})),fp=g.exports.createContext(null);fp.displayName="@mantine/modals/ModalsContext";function aT(){const e=g.exports.useContext(fp);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}var sT=Object.defineProperty,uT=Object.defineProperties,cT=Object.getOwnPropertyDescriptors,s0=Object.getOwnPropertySymbols,fT=Object.prototype.hasOwnProperty,dT=Object.prototype.propertyIsEnumerable,u0=(e,t,r)=>t in e?sT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wc=(e,t)=>{for(var r in t||(t={}))fT.call(t,r)&&u0(e,r,t[r]);if(s0)for(var r of s0(t))dT.call(t,r)&&u0(e,r,t[r]);return e},c0=(e,t)=>uT(e,cT(t));function pT({id:e,cancelProps:t,confirmProps:r,labels:n={cancel:"",confirm:""},closeOnConfirm:o=!0,closeOnCancel:i=!0,groupProps:l,onCancel:a,onConfirm:s,children:u}){const{cancel:c,confirm:f}=n,d=aT(),p=w=>{typeof t?.onClick=="function"&&t?.onClick(w),typeof a=="function"&&a(),i&&d.closeModal(e)},y=w=>{typeof r?.onClick=="function"&&r?.onClick(w),typeof s=="function"&&s(),o&&d.closeModal(e)};return E.createElement(E.Fragment,null,u&&E.createElement(K,{mb:"md"},u),E.createElement(jt,wc({position:"right"},l),E.createElement(qn,c0(wc({variant:"default"},t),{onClick:p}),t?.children||c),E.createElement(qn,c0(wc({},r),{onClick:y}),r?.children||f)))}function gT(e,t){switch(t.type){case"OPEN":return{current:t.payload,modals:[...e.modals,t.payload]};case"CLOSE":return{current:e.modals[e.modals.length-2]||null,modals:e.modals.filter(r=>r.id!==t.payload)};case"CLOSE_ALL":return{current:e.current,modals:[]};default:return e}}const[mT,Ui]=T$("mantine-modals");Ui("openModal");Ui("closeModal");Ui("closeAllModals");const tx=Ui("openConfirmModal");Ui("openContextModal");var vT=Object.defineProperty,hT=Object.defineProperties,yT=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,rx=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,f0=(e,t,r)=>t in e?vT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hl=(e,t)=>{for(var r in t||(t={}))rx.call(t,r)&&f0(e,r,t[r]);if(Cs)for(var r of Cs(t))nx.call(t,r)&&f0(e,r,t[r]);return e},d0=(e,t)=>hT(e,yT(t)),Wr=(e,t)=>{var r={};for(var n in e)rx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Cs)for(var n of Cs(e))t.indexOf(n)<0&&nx.call(e,n)&&(r[n]=e[n]);return r};function wT(e){if(!e)return{confirmProps:{},modalProps:{}};const t=e,{id:r,children:n,onCancel:o,onConfirm:i,closeOnConfirm:l,closeOnCancel:a,cancelProps:s,confirmProps:u,groupProps:c,labels:f}=t,d=Wr(t,["id","children","onCancel","onConfirm","closeOnConfirm","closeOnCancel","cancelProps","confirmProps","groupProps","labels"]);return{confirmProps:{id:r,children:n,onCancel:o,onConfirm:i,closeOnConfirm:l,closeOnCancel:a,cancelProps:s,confirmProps:u,groupProps:c,labels:f},modalProps:Hl({id:r},d)}}function _T({children:e,modalProps:t,labels:r,modals:n}){const[o,i]=g.exports.useReducer(gT,{modals:[],current:null}),l=w=>{o.modals.forEach(v=>{var m,h,_,b;v.type==="confirm"&&w&&((h=(m=v.props)==null?void 0:m.onCancel)==null||h.call(m)),(b=(_=v.props)==null?void 0:_.onClose)==null||b.call(_)}),i({type:"CLOSE_ALL"})},a=w=>{var v=w,{modalId:m}=v,h=Wr(v,["modalId"]);const _=m||Al();return i({type:"OPEN",payload:{id:_,type:"content",props:h}}),_},s=w=>{var v=w,{modalId:m}=v,h=Wr(v,["modalId"]);const _=m||Al();return i({type:"OPEN",payload:{id:_,type:"confirm",props:h}}),_},u=(w,v)=>{var m=v,{modalId:h}=m,_=Wr(m,["modalId"]);const b=h||Al();return i({type:"OPEN",payload:{id:b,type:"context",props:_,ctx:w}}),b},c=(w,v)=>{var m,h,_,b;if(o.modals.length<=1){l(v);return}const O=o.modals.find(x=>x.id===w);O?.type==="confirm"&&v&&((h=(m=O.props)==null?void 0:m.onCancel)==null||h.call(m)),(b=(_=O?.props)==null?void 0:_.onClose)==null||b.call(_),i({type:"CLOSE",payload:O.id})};mT({openModal:a,openConfirmModal:s,openContextModal:w=>{var v=w,{modal:m}=v,h=Wr(v,["modal"]);return u(m,h)},closeModal:c,closeAllModals:l});const f={modals:o.modals,openModal:a,openConfirmModal:s,openContextModal:u,closeModal:c,closeAll:l},d=()=>{var w;switch((w=o.current)==null?void 0:w.type){case"context":{const v=o.current.props,{innerProps:m}=v,h=Wr(v,["innerProps"]),_=n[o.current.ctx];return{modalProps:h,content:S(_,{innerProps:m,context:f,id:o.current.id})}}case"confirm":{const{modalProps:v,confirmProps:m}=wT(o.current.props);return{modalProps:v,content:S(pT,{...d0(Hl({},m),{id:o.current.id,labels:o.current.props.labels||r})})}}case"content":{const v=o.current.props,{children:m}=v;return{modalProps:Wr(v,["children"]),content:S(it,{children:m})}}default:return{modalProps:{},content:null}}},{modalProps:p,content:y}=d();return U(fp.Provider,{value:f,children:[S(gu,{...d0(Hl(Hl({},t),p),{opened:o.modals.length>0,onClose:()=>c(o.current.id)}),children:y}),e]})}const ST=({data:e})=>{const t=Bi(),r=ex(o=>o.setClipboard),n=yu(o=>o.setVisible);return U(et,{position:"right-start",width:200,children:[S(et.Target,{children:S(nt,{label:"Door actions",children:S($t,{color:"blue.4",variant:"transparent",children:S(iD,{size:24})})})}),U(et.Dropdown,{children:[S(et.Item,{icon:S(hu,{size:18}),onClick:()=>{q.setState(Rf(e.row.original),!0),t("/settings/general")},children:"Settings"}),S(et.Item,{icon:S(iT,{size:18}),onClick:()=>{r(Rf(e.row.original)),xr("notify","Settings copied")},children:"Copy settings"}),S(et.Item,{icon:S(nT,{size:18}),onClick:()=>{n(!1),xr("teleportToDoor",e.row.getValue("id"))},children:"Teleport to door"}),S(et.Item,{color:"red",icon:S(Wi,{size:18}),onClick:()=>tx({title:"Confirm deletion",centered:!0,withCloseButton:!1,children:U(mt,{children:["Are you sure you want to delete",S(mt,{component:"span",weight:700,children:` ${e.row.getValue("name")}`}),"?"]}),labels:{confirm:"Confirm",cancel:"Cancel"},confirmProps:{color:"red"},onConfirm:()=>{xr("deleteDoor",e.row.getValue("id"))}}),children:"Delete door"})]})]})},bT=()=>{const[e,t]=g.exports.useState([]),[r,n]=g.exports.useState(1),o=xf(s=>s.debouncedValue),i=Ef(s=>s.doors),l=g.exports.useMemo(()=>[{id:"id",header:"ID",accessorKey:"id",cell:s=>s.getValue(),enableHiding:!1,enableGlobalFilter:!1},{id:"name",header:"Name",accessorKey:"name",cell:s=>s.getValue(),enableHiding:!1},{id:"zone",header:"Zone",accessorKey:"zone",cell:s=>s.getValue(),enableHiding:!1},{id:"options-menu",cell:s=>S(ST,{data:s})}],[]),a=rT({data:i,columns:l,initialState:{pagination:{pageSize:8,pageIndex:0}},state:{sorting:e,globalFilter:o},onGlobalFilterChange:xf(s=>s.setValue),onSortingChange:t,getCoreRowModel:UD(),getSortedRowModel:qD(),getFilteredRowModel:KD(),getPaginationRowModel:ZD()});return g.exports.useEffect(()=>{a.setPageIndex(r-1)},[r,i]),U(Tt,{justify:"space-between",align:"center",sx:{height:"100%",paddingBottom:16},spacing:0,children:[a.getFilteredRowModel().rows.length>0?U(fb,{children:[S("thead",{children:a.getHeaderGroups().map(s=>S("tr",{children:s.headers.map(u=>S("th",{children:S(nu,{onClick:u.column.getToggleSortingHandler(),children:U(jt,{children:[S(mt,{children:a0(u.column.columnDef.header,u.getContext())}),u.column.getIsSorted()==="desc"?S(nD,{}):u.column.getIsSorted()==="asc"?S(oD,{}):u.column.getCanHide()?S(it,{}):S(aD,{})]})})},u.id))},s.id))}),S("tbody",{children:a.getRowModel().rows.map(s=>S("tr",{children:s.getAllCells().map(u=>S("td",{children:a0(u.column.columnDef.cell,u.getContext())},u.id))},s.id))})]}):S(Z_,{sx:{height:"100%"},children:U(Tt,{align:"center",children:[S(Wb,{size:48}),S(mt,{size:"lg",children:"No results found"})]})}),a.getPageCount()>1&&S(tb,{page:r,total:a.getPageCount(),onChange:s=>n(s)})]})},xT=()=>U(Tt,{sx:{height:"100%"},children:[S(dD,{}),S(bT,{})]}),Lo=({label:e,type:t,infoCircle:r,span:n,value:o,setValue:i})=>S(pu.Col,{span:n||1,children:S(K,{children:t==="text"?S(Tr,{value:o,onChange:l=>i(l.target.value),label:e,rightSection:r&&S(nt,{label:r,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(Sf,{variant:"light",mr:10,children:S(kf,{size:18})})})}):S($i,{label:e,step:.1,precision:1,value:typeof o=="number"?o:void 0,onChange:l=>i(l),hideControls:!0,rightSection:r&&S(nt,{label:r,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(Sf,{variant:"light",mr:10,children:S(kf,{size:18})})})})})}),PT=()=>{const e=q(c=>c.name),t=q(c=>c.passcode),r=q(c=>c.autolock),n=q(c=>c.maxDistance),o=q(c=>c.doorRate),i=_e(c=>c.setName),l=_e(c=>c.setPasscode),a=_e(c=>c.setAutolock),s=_e(c=>c.setMaxDistance),u=_e(c=>c.setDoorRate);return S(it,{children:U(pu,{columns:2,sx:{fontSize:16},children:[S(Lo,{label:"Door name",type:"text",value:e||"",setValue:c=>i(c)}),S(Lo,{label:"Passcode",type:"text",value:t||"",setValue:c=>l(c)}),S(Lo,{label:"Autolock Interval",type:"number",value:r||0,setValue:c=>a(c),infoCircle:"Time in seconds after which the door will be locked"}),S(Lo,{label:"Interact Distance",type:"number",value:n||0,setValue:c=>s(c),infoCircle:"Controls the distance from which the player can interact with the door"}),S(Lo,{label:"Door Rate",type:"number",span:2,value:o||0,setValue:c=>u(c),infoCircle:"Speed the automatic door will move at"})]})})},_n=({infoCircle:e,label:t,value:r,toggle:n})=>U(jt,{spacing:8,align:"center",children:[S(rp,{label:t,checked:r,onChange:()=>n()}),S(nt,{label:e,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(K,{sx:{display:"flex"},children:S(kf,{size:18})})})]}),$T=()=>{const e=q(a=>a.state),t=q(a=>a.doors),r=q(a=>a.auto),n=q(a=>a.lockpick),o=q(a=>a.hideUi),i=q(a=>a.holdOpen),l=_e(a=>a.toggleCheckbox);return S(it,{children:U(lb,{cols:2,pt:16,children:[S(_n,{label:"Locked",infoCircle:"Sets whether the targeting door is locked by default",value:e||!1,toggle:()=>l("state")}),S(_n,{label:"Double",infoCircle:"Enable if the targeting door is a double door",value:t||!1,toggle:()=>l("doors")}),S(_n,{label:"Automatic",infoCircle:"Enable if the targeting door is moving automatically (Garage, poles, etc...)",value:r||!1,toggle:()=>l("auto")}),S(_n,{label:"Lockpick",infoCircle:"Enables the targeting door to be lockpicked. Can define skill check difficulties in Lockpick tab, otherwise uses config defaults",value:n||!1,toggle:()=>l("lockpick")}),S(_n,{label:"Hide UI",infoCircle:"Hides UI indicators for the targeting door",value:o||!1,toggle:()=>l("hideUi")}),S(_n,{label:"Hold Open",infoCircle:"Sets whether the targeting door(s) should stay open while unlocked",value:i||!1,toggle:()=>l("holdOpen")})]})})},OT=()=>S(Tt,{justify:"space-between",sx:{height:"100%"},children:U(K,{children:[S(PT,{}),S($T,{})]})}),CT=()=>{const e=q(o=>o.characters),t=_e(o=>o.setCharacters),r=(o,i)=>{t(l=>l.map((a,s)=>i===s?o:a))},n=o=>{t(i=>i.filter((l,a)=>a!==o))};return S(it,{children:e.map((o,i)=>U(jt,{position:"center",mt:i===0?0:16,noWrap:!0,spacing:16,sx:{fontSize:16},children:[S(Tr,{sx:{width:"100%"},placeholder:"Character Id",value:o,onChange:l=>r(l.target.value,i)}),S(nt,{label:"Delete row",children:S($t,{color:"red.4",variant:"transparent",onClick:()=>n(i),children:S(Wi,{size:24})})})]},`group-${i}`))})},wu=({children:e,setter:t})=>S(Tt,{justify:"space-between",align:"center",sx:{height:"100%"},children:U(K,{sx:{width:"100%",overflowY:"auto",height:410},children:[e,S(nt,{label:"Create a new row",withArrow:!0,arrowSize:10,children:S(qn,{mt:16,fullWidth:!0,variant:"light",onClick:t,children:S(Bb,{size:24})})})]})}),ET=()=>{const e=_e(t=>t.setCharacters);return g.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>r!==""||n===0))},[]),S(wu,{setter:()=>e(t=>[...t,""]),children:S(CT,{})})},kT=()=>{const e=q(o=>o.groups),t=_e(o=>o.setGroups),r=(o,i,l)=>{t(a=>a.map((s,u)=>i===u?{...s,[l]:o}:s))},n=o=>{t(i=>i.filter((l,a)=>a!==o))};return S(it,{children:e.map((o,i)=>U(jt,{position:"center",mt:i===0?0:16,noWrap:!0,spacing:16,sx:{fontSize:16},children:[S(Tr,{sx:{width:"100%"},placeholder:"Group",value:o.name,onChange:l=>r(l.target.value,i,"name")}),S($i,{sx:{width:"100%"},placeholder:"Grade",value:o.grade,onChange:l=>r(l,i,"grade")}),S(nt,{label:"Delete row",children:S($t,{color:"red.4",variant:"transparent",onClick:()=>n(i),children:S(Wi,{size:24})})})]},`group-${i}`))})},RT=()=>{const e=_e(t=>t.setGroups);return g.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>r.name!==""||r.grade!==null||n===0))},[]),S(wu,{setter:()=>e(t=>[...t,{name:"",grade:null}]),children:S(kT,{})})};var p0=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var l=i[o];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r};function If(e){return e===null||typeof e!="object"?{}:Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&n!==!1&&(t[r]=n),t},{})}var IT=Object.defineProperty,g0=Object.getOwnPropertySymbols,NT=Object.prototype.hasOwnProperty,zT=Object.prototype.propertyIsEnumerable,m0=(e,t,r)=>t in e?IT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,DT=(e,t)=>{for(var r in t||(t={}))NT.call(t,r)&&m0(e,r,t[r]);if(g0)for(var r of g0(t))zT.call(t,r)&&m0(e,r,t[r]);return e};function v0(e,t){if(t===null||typeof t!="object")return{};const r=DT({},t);return Object.keys(t).forEach(n=>{n.includes(`${String(e)}.`)&&delete r[n]}),r}const TT="__MANTINE_FORM_INDEX__";function h0(e,t){return t?typeof t=="boolean"?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]/g,`.${TT}`)):!1:!1}function Vt(e){if(typeof e!="object")return e;var t,r,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){r=new e.constructor;for(t in e)e.hasOwnProperty(t)&&r[t]!==e[t]&&(r[t]=Vt(e[t]))}else{r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Vt(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=Vt(e[t])}return r}if(n==="[object Array]"){for(t=e.length,r=Array(t);t--;)r[t]=Vt(e[t]);return r}return n==="[object Set]"?(r=new Set,e.forEach(function(o){r.add(Vt(o))}),r):n==="[object Map]"?(r=new Map,e.forEach(function(o,i){r.set(Vt(i),Vt(o))}),r):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(r=new RegExp(e.source,e.flags),r.lastIndex=e.lastIndex,r):n==="[object DataView]"?new e.constructor(Vt(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}function ox(e){return typeof e!="string"?[]:e.split(".")}function _u(e,t,r){const n=ox(e);if(n.length===0)return r;const o=Vt(r);if(n.length===1)return o[n[0]]=t,o;let i=o[n[0]];for(let l=1;l0,errors:t}}function Nf(e,t,r="",n={}){return typeof e!="object"||e===null?n:Object.keys(e).reduce((o,i)=>{const l=e[i],a=`${r===""?"":`${r}.`}${i}`,s=pr(a,t);let u=!1;return typeof l=="function"&&(o[a]=l(s,t,a)),typeof l=="object"&&Array.isArray(s)&&(u=!0,s.forEach((c,f)=>Nf(l,t,`${a}.${f}`,o))),typeof l=="object"&&typeof s=="object"&&s!==null&&(u||Nf(l,t,a,o)),o},n)}function zf(e,t){return y0(typeof e=="function"?e(t):Nf(e,t))}function $l(e,t,r){if(typeof e!="string")return{hasError:!1,error:null};const n=zf(t,r),o=Object.keys(n.errors).find(i=>e.split(".").every((l,a)=>l===i.split(".")[a]));return{hasError:!!o,error:o?n.errors[o]:null}}function MT(e,{from:t,to:r},n){const o=pr(e,n);if(!Array.isArray(o))return n;const i=[...o],l=o[t];return i.splice(t,1),i.splice(r,0,l),_u(e,i,n)}function jT(e,t,r){const n=pr(e,r);return Array.isArray(n)?_u(e,n.filter((o,i)=>i!==t),r):r}function LT(e,t,r,n){const o=pr(e,n);if(!Array.isArray(o))return n;const i=[...o];return i.splice(typeof r=="number"?r:i.length,0,t),_u(e,i,n)}function w0(e,t){const r=Object.keys(e);if(typeof t=="string"){const n=r.filter(o=>o.includes(`${t}.`));return e[t]||n.some(o=>e[o])||!1}return r.some(n=>e[n])}function FT(e){return t=>{if(!t)e(t);else if(typeof t=="function")e(t);else if(typeof t=="object"&&"nativeEvent"in t){const{currentTarget:r}=t;r instanceof HTMLInputElement?r.type==="checkbox"?e(r.checked):e(r.value):(r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&e(r.value)}else e(t)}}var AT=Object.defineProperty,VT=Object.defineProperties,HT=Object.getOwnPropertyDescriptors,_0=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,WT=Object.prototype.propertyIsEnumerable,S0=(e,t,r)=>t in e?AT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t)=>{for(var r in t||(t={}))BT.call(t,r)&&S0(e,r,t[r]);if(_0)for(var r of _0(t))WT.call(t,r)&&S0(e,r,t[r]);return e},_c=(e,t)=>VT(e,HT(t));function ix({initialValues:e={},initialErrors:t={},initialDirty:r={},initialTouched:n={},clearInputErrorOnChange:o=!0,validateInputOnChange:i=!1,validateInputOnBlur:l=!1,transformValues:a=u=>u,validate:s}={}){const[u,c]=g.exports.useState(n),[f,d]=g.exports.useState(r),[p,y]=g.exports.useState(e),[w,v]=g.exports.useState(If(t)),m=g.exports.useRef(e),h=k=>{m.current=k},_=g.exports.useCallback(()=>c({}),[]),b=k=>{h(k||p),d({})},O=g.exports.useCallback(k=>v(M=>If(typeof k=="function"?k(M):k)),[]),x=g.exports.useCallback(()=>v({}),[]),P=g.exports.useCallback(()=>{y(e),x(),b(e),_()},[]),$=g.exports.useCallback((k,M)=>O(G=>_c(Sn({},G),{[k]:M})),[]),C=g.exports.useCallback(k=>O(M=>{if(typeof k!="string")return M;const G=Sn({},M);return delete G[k],G}),[]),I=g.exports.useCallback(k=>d(M=>{if(typeof k!="string")return M;const G=v0(k,M);return delete G[k],G}),[]),z=g.exports.useCallback((k,M)=>{const G=h0(k,i);I(k),c(Z=>_c(Sn({},Z),{[k]:!0})),y(Z=>{const De=_u(k,M,Z);if(G){const ae=$l(k,s,De);ae.hasError?$(k,ae.error):C(k)}return De}),!G&&o&&$(k,null)},[]),D=g.exports.useCallback(k=>{y(M=>{const G=typeof k=="function"?k(M):k;return Sn(Sn({},M),G)}),o&&x()},[]),j=g.exports.useCallback((k,M)=>{I(k),y(G=>MT(k,M,G))},[]),B=g.exports.useCallback((k,M)=>{I(k),y(G=>jT(k,M,G)),v(G=>v0(k,G))},[]),V=g.exports.useCallback((k,M,G)=>{I(k),y(Z=>LT(k,M,G,Z))},[]),W=g.exports.useCallback(()=>{const k=zf(s,p);return v(k.errors),k},[p,s]),ne=g.exports.useCallback(k=>{const M=$l(k,s,p);return M.hasError?$(k,M.error):C(k),M},[p,s]),se=(k,{type:M="input",withError:G=M==="input",withFocus:Z=!0}={})=>{const ae={onChange:FT(Ve=>z(k,Ve))};return G&&(ae.error=w[k]),M==="checkbox"?ae.checked=pr(k,p):ae.value=pr(k,p),Z&&(ae.onFocus=()=>c(Ve=>_c(Sn({},Ve),{[k]:!0})),ae.onBlur=()=>{if(h0(k,l)){const Ve=$l(k,s,p);Ve.hasError?$(k,Ve.error):C(k)}}),ae},ie=(k,M)=>G=>{G?.preventDefault();const Z=W();Z.hasErrors?M?.(Z.errors,p,G):k(a(p),G)},ze=g.exports.useCallback(k=>{k.preventDefault(),P()},[]),R=k=>{if(Object.keys(f).length>0)return w0(f,k);if(k){const G=pr(k,p),Z=pr(k,m.current);return!p0(G,Z)}return!p0(p,m.current)},T=g.exports.useCallback(k=>w0(u,k),[u]),A=g.exports.useCallback(k=>k?!$l(k,s,p).hasError:!zf(s,p).hasErrors,[p,s]);return{values:p,errors:w,setValues:D,setErrors:O,setFieldValue:z,setFieldError:$,clearFieldError:C,clearErrors:x,reset:P,validate:W,validateField:ne,reorderListItem:j,removeListItem:B,insertListItem:V,getInputProps:se,onSubmit:ie,onReset:ze,isDirty:R,isTouched:T,setTouched:c,setDirty:d,resetTouched:_,resetDirty:b,isValid:A}}const UT=({modal:e,setModal:t})=>{const r=q(a=>a.items),n=_e(a=>a.setItems),o=g.exports.useMemo(()=>r[e.index],[e,r]),i=ix({initialValues:{metadata:o.metadata,remove:o.remove}}),l=a=>{t(s=>({...s,opened:!1})),n(s=>s.map((u,c)=>c===e.index?{...u,metadata:a.metadata,remove:a.remove}:u))};return S("form",{onSubmit:i.onSubmit(a=>l(a)),children:U(Tt,{children:[S(Tr,{label:"Metadata type",defaultValue:o.metadata,...i.getInputProps("metadata")}),S(rp,{label:"Remove on use",defaultChecked:o.remove,...i.getInputProps("remove")}),S(qn,{uppercase:!0,variant:"light",type:"submit",children:"Confirm"})]})})},GT=()=>{const e=q(l=>l.items),t=_e(l=>l.setItems),[r,n]=g.exports.useState({opened:!1,index:0}),o=(l,a)=>{const s=[...e];switch(l.target.id){case"name":s[a].name=l.target.value;break}t(()=>s)},i=l=>{t(a=>a.filter((s,u)=>u!==l))};return U(K,{children:[e.length>0&&S(it,{children:e.map((l,a)=>U(jt,{sx:{width:"100%"},position:"apart",spacing:16,mt:a===0?void 0:16,children:[S(Tr,{sx:{width:"80%"},value:l.name||"",id:"name",placeholder:"Item",onChange:s=>o(s,a)}),S(nt,{label:"Item options",children:S($t,{color:"blue.4",variant:"transparent",onClick:()=>n({opened:!0,index:a}),children:S(hu,{size:24})})}),S(nt,{label:"Delete row",children:S($t,{color:"red.4",variant:"transparent",onClick:()=>i(a),children:S(Wi,{size:24})})})]},`item-field-${a}`))}),S(gu,{opened:r.opened,onClose:()=>n({...r,opened:!1}),transition:"fade",title:"Item options",centered:!0,size:"xs",withCloseButton:!1,children:S(UT,{modal:r,setModal:n})})]})},YT=()=>{const e=_e(t=>t.setItems);return g.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>n===0||r.name!==""))},[]),S(wu,{setter:()=>e(t=>[...t,{name:"",metadata:"",remove:!1}]),children:S(GT,{})})},XT=()=>{const e=_e(i=>i.sounds),t=q(i=>i.lockSound),r=q(i=>i.unlockSound),n=_e(i=>i.setLockSound),o=_e(i=>i.setUnlockSound);return U(Tt,{children:[S(Oi,{data:e,label:"Lock sound",value:t||"",searchable:!0,clearable:!0,nothingFound:"No such sound",onChange:i=>n(i)}),S(Oi,{data:e,label:"Unlock sound",value:r||"",searchable:!0,clearable:!0,nothingFound:"No such sound",onChange:i=>o(i)})]})},KT=()=>{const e=Bi(),t=ex(o=>o.clipboard),r=yu(o=>o.setVisible),n=()=>{const o={...q.getState()};if(o.name===""&&(o.name=null),o.passcode===""&&(o.passcode=null),o.lockSound===""&&(o.lockSound=null),o.unlockSound===""&&(o.unlockSound=null),o.autolock=o.autolock||null,o.maxDistance=o.maxDistance||2,o.doorRate=o.doorRate?o.doorRate+0:null,o.auto=o.auto||null,o.lockpick=o.lockpick||null,o.hideUi=o.hideUi||null,o.holdOpen=o.holdOpen||null,o.items&&o.items.length>0){const i=[];for(let l=0;l0){const i=[];for(let l=0;l0){const i={};for(let l=0;l0){const i=[];for(let l=0;ln(),fullWidth:!0,children:"Confirm door"}),S(nt,{label:t?"Apply copied settings":"No door settings copied",withArrow:!0,arrowSize:10,children:S($t,{variant:"outline",disabled:!t,size:"lg",ml:16,sx:{width:36,height:36},color:"blue",onClick:()=>{q.setState({name:"",passcode:t.passcode,autolock:t.autolock,items:t.items,characters:t.characters,groups:t.groups,maxDistance:t.maxDistance,doorRate:t.doorRate,lockSound:t.lockSound,unlockSound:t.unlockSound,auto:t.auto,state:t.state,lockpick:t.lockpick,hideUi:t.hideUi,doors:t.doors,lockpickDifficulty:t.lockpickDifficulty,holdOpen:t.holdOpen},!0),xr("notify","Settings applied")},children:S(oT,{size:20})})}),S($t,{variant:"outline",size:"lg",ml:16,sx:{width:36,height:36},color:"red",disabled:!q.getState().id,onClick:()=>tx({title:"Confirm deletion",centered:!0,withCloseButton:!1,children:U(mt,{children:["Are you sure you want to delete",S(mt,{component:"span",weight:700,children:` ${q.getState().name}`}),"?"]}),labels:{confirm:"Confirm",cancel:"Cancel"},confirmProps:{color:"red"},onConfirm:()=>{xr("deleteDoor",q.getState().id),e("/")}}),children:S(lT,{size:20})})]})},qT=({selectData:e,setModal:t,modal:r})=>{const[n,o]=g.exports.useState(null),i=q(c=>c.lockpickDifficulty),l=_e(c=>c.setLockpickDifficulty),a=g.exports.useMemo(()=>i[r.index],[r,i]);g.exports.useEffect(()=>o(typeof a=="string"?a:"custom"),[a]);const s=ix({initialValues:{select:n,areaSize:typeof a=="string"?null:a.areaSize,speedMultiplier:typeof a=="string"?null:a.speedMultiplier},validate:{select:c=>c===null?"Difficulty is required":null,areaSize:(c,f)=>c===null&&f.select==="custom"?"Area size is required":null,speedMultiplier:(c,f)=>c===null&&f.select==="custom"?"Speed multiplier is required":null}});g.exports.useEffect(()=>s.setFieldValue("select",n),[n]);const u=c=>{t(d=>({...d,opened:!1}));const f=c.select==="custom"?{areaSize:c.areaSize,speedMultiplier:c.speedMultiplier}:c.select;!f||l(d=>{const p=[...d];return f&&(p[r.index]=f),p})};return S("form",{onSubmit:s.onSubmit(c=>u(c)),children:U(Tt,{children:[S(Oi,{data:e,placeholder:"Difficulty",...s.getInputProps("select"),value:n,onChange:o,required:!0}),S($i,{label:"Area size",defaultValue:typeof a=="object"?a.areaSize:null,description:"Skill check area size in degrees",disabled:n!=="custom",max:360,hideControls:!0,required:n==="custom",...s.getInputProps("areaSize")}),S($i,{label:"Speed multiplier",description:"Number the indicator speed will be multiplied by",disabled:n!=="custom",defaultValue:typeof a=="object"?a.speedMultiplier:null,hideControls:!0,precision:2,required:n==="custom",...s.getInputProps("speedMultiplier")}),S(qn,{type:"submit",uppercase:!0,variant:"light",children:"Confirm"})]})})},b0=[{label:"Easy",value:"easy"},{label:"Medium",value:"medium"},{label:"Hard",value:"hard"},{label:"Custom",value:"custom"}],QT=()=>{const e=q(i=>i.lockpickDifficulty),t=_e(i=>i.setLockpickDifficulty),[r,n]=g.exports.useState({opened:!1,index:0}),o=i=>{t(l=>l.filter((a,s)=>s!==i))};return U(it,{children:[e.map((i,l)=>U(jt,{sx:{width:"100%"},spacing:16,mt:l===0?void 0:16,position:"apart",children:[S(Oi,{data:b0,value:typeof i=="string"?i:"custom",readOnly:!0,placeholder:"Edit row to select value",sx:{width:"80%"}}),S(nt,{label:"Edit row",children:S($t,{color:"blue.4",variant:"transparent",onClick:()=>n({opened:!0,index:l}),children:S(hu,{size:24})})}),S(nt,{label:"Delete row",children:S($t,{color:"red.4",variant:"transparent",onClick:()=>o(l),children:S(Wi,{size:24})})})]},`${typeof i=="string"?i:i.areaSize}-${l}`)),S(gu,{opened:r.opened,onClose:()=>n({...r,opened:!1}),transition:"fade",title:"Lockpick difficulty",centered:!0,size:"xs",withCloseButton:!1,children:S(qT,{selectData:b0,setModal:n,modal:r})})]})},ZT=()=>{const e=_e(t=>t.setLockpickDifficulty);return g.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>n===0||r!==""))},[]),S(wu,{setter:()=>e(t=>[...t,""]),children:S(QT,{})})},JT=()=>{const e=Bi(),t=lp(),r=q(n=>n.lockpick);return S(it,{children:U(K,{sx:{height:"100%",display:"flex"},children:[S(Je,{orientation:"vertical",color:"blue",sx:{height:"100%"},value:t.pathname.substring(10),onTabChange:n=>e(`/settings/${n}`),children:U(Je.List,{children:[S(Je.Tab,{value:"back",onClick:()=>e("/"),icon:S(Jz,{size:20}),children:"Doors"}),S(Je.Tab,{value:"general",icon:S(hu,{size:20}),children:"General"}),S(Je.Tab,{value:"characters",icon:S(sD,{size:20}),children:"Characters"}),S(Je.Tab,{value:"groups",icon:S(rD,{size:20}),children:"Groups"}),S(Je.Tab,{value:"items",icon:S(tD,{size:20}),children:"Items"}),S(Je.Tab,{value:"lockpick",disabled:!r,icon:S(lD,{size:20}),children:"Lockpick"}),S(Je.Tab,{value:"sound",icon:S(eD,{size:20}),children:"Sound"})]})}),U(Tt,{p:16,sx:{width:"100%"},justify:"space-between",children:[U(Fb,{children:[S(Bt,{path:"/general",element:S(OT,{})}),S(Bt,{path:"/characters",element:S(ET,{})}),S(Bt,{path:"/groups",element:S(RT,{})}),S(Bt,{path:"/items",element:S(YT,{})}),S(Bt,{path:"/sound",element:S(XT,{})}),S(Bt,{path:"/lockpick",element:S(ZT,{})})]}),S(KT,{})]})]})})},e7=["Escape"],t7=(e,t)=>{const r=g.exports.useRef(Ab);g.exports.useEffect(()=>{r.current=e},[e]),g.exports.useEffect(()=>{const n=o=>{e7.includes(o.code)&&(r.current(!1),t&&t(),xr("exit"))};return window.addEventListener("keyup",n),()=>window.removeEventListener("keyup",n)},[])},r7=Q(e=>({container:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},main:{width:700,height:500,backgroundColor:e.colors.dark[8],borderRadius:e.radius.sm},search:{width:"40%",transition:"300ms","&:focus-within":{width:"50%"}}})),n7=()=>{const{classes:e}=r7(),t=_e(a=>a.setSounds),[r,n]=yu(a=>[a.visible,a.setVisible]),o=Ef(a=>a.doors),i=Ef(a=>a.setDoors),l=Bi();return Sl("playSound",async a=>{const s=new Audio(`./sounds/${a.sound}.ogg`);s.volume=a.volume,await s.play()}),Sl("setSoundFiles",a=>t(a)),Sl("setVisible",a=>{if(n(!0),a===void 0)return l("/");for(let s=0;s{if(typeof a=="number")return i(o.filter(s=>s.id!==a));if(a.hasOwnProperty("id")){let s=o.length;for(let u=0;uS(K,{className:e.main,style:a,children:U(Fb,{children:[S(Bt,{path:"/",element:S(xT,{})}),S(Bt,{path:"/settings/*",element:S(JT,{})})]})})})})},o7={colorScheme:"dark",fontFamily:"Roboto",components:{Tooltip:{defaultProps:{transition:"pop"}}}};if(Yz()){const e=document.getElementById("root");e.style.backgroundImage='url("https://i.imgur.com/3pzRj9n.png")',e.style.backgroundSize="cover",e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center"}_$.render(S(E.StrictMode,{children:S(L1,{withNormalizeCSS:!0,withGlobalStyles:!0,theme:o7,children:S(_T,{modalProps:{transition:"slide-up"},children:S(Gz,{children:S(n7,{})})})})}),document.getElementById("root")); diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html index d5098d668..782b1a1cf 100644 --- a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html +++ b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html @@ -5,7 +5,7 @@ NUI React Boilerplate - +